@antdv-next/x 1.2.0 → 1.2.1
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/actions/ActionsFeedback.js +1 -1
- package/dist/actions/ActionsItem.js +1 -1
- package/dist/attachments/index.js +1 -2
- package/dist/bubble/hooks/useCompatibleScroll.js +1 -1
- package/dist/code-highlighter/CodeHighlighter.js +2 -1
- package/dist/code-highlighter/shiki.js +1 -1
- package/dist/code-highlighter/style/index.d.ts +76 -4
- package/dist/code-highlighter/style/index.js +54 -29
- package/dist/folder/Folder.js +2 -1
- package/dist/index.umd.js +82 -49
- package/dist/mermaid/Mermaid.js +1 -1
- package/dist/package.js +1 -1
- package/dist/sender/components/SlotTextArea.js +3 -2
- package/dist/sender/components/SpeechButton/RecordingIcon.js +1 -1
- package/dist/theme/themes/seed.js +3 -0
- package/dist/thought-chain/ThoughtChain.js +2 -2
- package/es/Serializer-Sc9uEpQk.js +262 -0
- package/es/{_basePickBy-DFHEGO2M.js → _basePickBy-BL4DHvHb.js} +2 -2
- package/es/{_baseUniq-BlS7rXTs.js → _baseUniq-CyFYmJd-.js} +3 -3
- package/es/antdv-next-x.esm.js +2708 -2688
- package/es/{arc-BuXEd18J.js → arc-NI3ROx5X.js} +2 -2
- package/es/architecture-PBZL5I3N-M9p1teRv.js +3 -0
- package/es/{architectureDiagram-2XIMDMQ5-CmfsCwJk.js → architectureDiagram-2XIMDMQ5-zW5aGalx.js} +52 -52
- package/es/{blockDiagram-WCTKOSBZ-lJAan65A.js → blockDiagram-WCTKOSBZ-0QujSG-h.js} +20 -18
- package/es/{c4Diagram-IC4MRINW-B1c2x_1Q.js → c4Diagram-IC4MRINW-B7y07WFn.js} +6 -6
- package/es/{channel-DFgF_2F7.js → channel-CxLj88Pg.js} +1 -1
- package/es/{chunk-4BX2VUAB-J2N81Fpp.js → chunk-4BX2VUAB-CprgMM4u.js} +1 -1
- package/es/{chunk-55IACEB6-DGtfGRgi.js → chunk-55IACEB6-BpkEkHy8.js} +1 -1
- package/es/{chunk-7R4GIKGN-QT6IorJ_.js → chunk-7R4GIKGN-mKY502R8.js} +8 -6
- package/es/{chunk-FMBD7UC4-DCcRjunY.js → chunk-FMBD7UC4-B88neS61.js} +1 -1
- package/es/{chunk-GEFDOKGD-BWpC-zoH.js → chunk-GEFDOKGD-oBEpn5hN.js} +7 -7
- package/es/{chunk-GLR3WWYH-DiXcKb5Y.js → chunk-GLR3WWYH-B2D9kjtF.js} +9 -9
- package/es/{chunk-HHEYEP7N-Cxc7E4dX.js → chunk-HHEYEP7N-DcZkCke2.js} +2 -2
- package/es/{chunk-JSJVCQXG-D8_heHOp.js → chunk-JSJVCQXG-BbVOaXjl.js} +3 -3
- package/es/{chunk-KX2RTZJC-D5cc4rj6.js → chunk-KX2RTZJC-Dw3D7Wrw.js} +2 -2
- package/es/{chunk-KYZI473N-BHJ3T5Zv.js → chunk-KYZI473N-33-uii7Y.js} +7 -7
- package/es/{chunk-MX3YWQON-BxE-Aq9c.js → chunk-MX3YWQON-D4cz36rq.js} +1 -1
- package/es/{chunk-NQ4KR5QH-EYQBXkqP.js → chunk-NQ4KR5QH-CprADZhD.js} +7 -7
- package/es/{chunk-O4XLMI2P-qjOoGpnx.js → chunk-O4XLMI2P-DBAvycZ-.js} +10 -10
- package/es/{chunk-PQ6SQG4A-D3jtNCWN.js → chunk-PQ6SQG4A-BITIwHAS.js} +2 -2
- package/es/{chunk-PU5JKC2W-DdP8BS-S.js → chunk-PU5JKC2W-DIl8TkGX.js} +5 -5
- package/es/{chunk-QZHKN3VN-CW3cFN-h.js → chunk-QZHKN3VN-Cg0ROtzE.js} +1 -1
- package/es/{chunk-WL4C6EOR-BDbxJyGk.js → chunk-WL4C6EOR-Bhp_3T_o.js} +12 -10
- package/es/{chunk-XPW4576I-B0KVSHwE.js → chunk-XPW4576I-255j2Rgd.js} +2 -2
- package/es/{chunk-XZSTWKYB-CucN1XvM.js → chunk-XZSTWKYB-kjAdbx6i.js} +1589 -1541
- package/es/{chunk-YBOYWFTD-CvaddD9G.js → chunk-YBOYWFTD-C2IdGsg8.js} +3 -3
- package/es/classDiagram-VBA2DB6C-BQonl2jX.js +29 -0
- package/es/classDiagram-v2-RAHNMMFH-C9U3lqTc.js +29 -0
- package/es/{clone-r3YukIBB.js → clone-DIGEZsKS.js} +1 -1
- package/es/{cose-bilkent-S5V4N54A-B5OQuIhl.js → cose-bilkent-S5V4N54A-Cyxewg9z.js} +20 -20
- package/es/css-CRY9BUqw.js +2 -0
- package/es/{cytoscape.esm-i2CZcWd-.js → cytoscape.esm-DBPri10E.js} +121 -124
- package/es/{dagre-5aGJFKmT.js → dagre-BHOjJWBG.js} +6 -6
- package/es/{dagre-KLK3FWXG-BI5QQMXo.js → dagre-KLK3FWXG-CnJPDj7X.js} +18 -15
- package/es/{diagram-E7M64L7V-Dz62Vz_a.js → diagram-E7M64L7V-CBOCgbMd.js} +63 -63
- package/es/{diagram-IFDJBPK2-9fjvFkSc.js → diagram-IFDJBPK2-BtubJp0H.js} +20 -20
- package/es/{diagram-P4PSJMXO-BlX6jFjZ.js → diagram-P4PSJMXO-CI30BBYG.js} +17 -17
- package/es/{dist-BX_roQzC.js → dist-BpM0Gz7z.js} +1 -1
- package/es/{erDiagram-INFDFZHY-BcRXu8Cp.js → erDiagram-INFDFZHY-C8hYuPxm.js} +14 -14
- package/es/{flowDiagram-PKNHOUZH-UeyfgU8z.js → flowDiagram-PKNHOUZH-D5vrDkks.js} +18 -18
- package/es/{ganttDiagram-A5KZAMGK-txCzqgQ5.js → ganttDiagram-A5KZAMGK-BmIEQBGq.js} +25 -26
- package/es/gitGraph-HDMCJU4V-x8fnR2OX.js +3 -0
- package/es/{gitGraphDiagram-K3NZZRJ6-DghWYaFU.js → gitGraphDiagram-K3NZZRJ6-PO0pMJD3.js} +20 -20
- package/es/{graphlib-dRkI1OCL.js → graphlib-DqWOhV4K.js} +4 -4
- package/es/{html-CWvNBSxv.js → html-C4rrmxbP.js} +2 -2
- package/es/info-3K5VOQVL-CRBCVSej.js +3 -0
- package/es/{infoDiagram-LFFYTUFH-CA-vlAvP.js → infoDiagram-LFFYTUFH-DOcKfbXf.js} +9 -9
- package/es/{isArrayLikeObject-jl2bjkAJ.js → isArrayLikeObject-Dqk_yOP-.js} +5 -4
- package/es/{isEmpty-CmA-HYrg.js → isEmpty-BJdINx-6.js} +1 -1
- package/es/{ishikawaDiagram-PHBUUO56-DjdpS9Lb.js → ishikawaDiagram-PHBUUO56-DM1elxPS.js} +6 -6
- package/es/javascript--0qAxhnA.js +2 -0
- package/es/{journeyDiagram-4ABVD52K-CIJfC1fp.js → journeyDiagram-4ABVD52K-BnYWOH1P.js} +9 -9
- package/es/{kanban-definition-K7BYSVSG-CC2vwGck.js → kanban-definition-K7BYSVSG-Ys7nAs7y.js} +11 -11
- package/es/{katex-DCMiIo1z.js → katex-olkKUfKs.js} +16 -16
- package/es/{line-Cu9NTacD.js → line-Cm2n2y9Z.js} +3 -3
- package/es/{linear-C0rAYYmp.js → linear-D-yDc6KG.js} +3 -3
- package/es/mermaid-parser.core-DFgQn74w.js +259 -0
- package/es/{mermaid.core-Bvy_Q6Hu.js → mermaid.core-BzgA0NbC.js} +45 -45
- package/es/{mindmap-definition-YRQLILUH-BzTYDYmK.js → mindmap-definition-YRQLILUH-Ca8psfLi.js} +14 -14
- package/es/{ordinal-F3U6aXtP.js → ordinal-95c16pGC.js} +1 -1
- package/es/packet-RMMSAZCW-CyE-elPF.js +3 -0
- package/es/{path-Dm3C8WEs.js → path-CqWAdh69.js} +4 -7
- package/es/pie-UPGHQEXC-EfdQ-_OF.js +3 -0
- package/es/{pieDiagram-SKSYHLDU-COvqE_C6.js → pieDiagram-SKSYHLDU-DhQSMJCw.js} +48 -48
- package/es/{quadrantDiagram-337W2JSQ-Dgv8ccjt.js → quadrantDiagram-337W2JSQ-jOtIC8r0.js} +4 -4
- package/es/radar-KQ55EAFF-B68vkNB4.js +3 -0
- package/es/{requirementDiagram-Z7DCOOCP-B2NyhxO-.js → requirementDiagram-Z7DCOOCP-CNngzPE4.js} +13 -13
- package/es/{chunk-WQLz0Won.js → rolldown-runtime-Dv1pqm0U.js} +8 -1
- package/es/{rough.esm-BhGP2Udb.js → rough.esm-D1ibUQD-.js} +1 -1
- package/es/{sankeyDiagram-WA2Y5GQK-BfnH_gpl.js → sankeyDiagram-WA2Y5GQK-BgsyVNdD.js} +4 -4
- package/es/{sequenceDiagram-2WXFIKYE-DXssVQOF.js → sequenceDiagram-2WXFIKYE-BAc5PP9P.js} +98 -98
- package/es/{shiki-runtime-D0MO6er5.js → shiki-runtime-BlKUZiZP.js} +944 -952
- package/es/{src-CUQ6oOYk.js → src-3T61hYex.js} +26 -26
- package/es/{stateDiagram-RAJIS63D-DvDLfupV.js → stateDiagram-RAJIS63D-153LjStx.js} +16 -16
- package/es/stateDiagram-v2-FVOUBMTO-BXEvy1YD.js +27 -0
- package/es/{timeline-definition-YZTLITO2-ErcRjbZf.js → timeline-definition-YZTLITO2-BLhlkb_X.js} +4 -4
- package/es/treemap-KZPCXAKY-Dg_ShzRB.js +3 -0
- package/es/{vennDiagram-LZ73GAT5-CDTZUtc8.js → vennDiagram-LZ73GAT5-BTYWphmf.js} +8 -8
- package/es/{xychartDiagram-JWTSCODW-Y21jBOTg.js → xychartDiagram-JWTSCODW-B9Nlu6S_.js} +10 -10
- package/package.json +1 -1
- package/es/Serializer-D1JYN1kI.js +0 -262
- package/es/architecture-PBZL5I3N-D7tS55xM.js +0 -3
- package/es/chunk-7E7YKBS2-CL2d4WAf.js +0 -23
- package/es/chunk-C72U2L5F-OHTVpS-m.js +0 -23
- package/es/chunk-EGIJ26TM-DyMPGYrB.js +0 -23
- package/es/chunk-L3YUKLVL-7oGaUOdc.js +0 -23
- package/es/chunk-OZEHJAEY-D82nx27s.js +0 -64
- package/es/chunk-R5LLSJPH-CreI2kO9.js +0 -35
- package/es/chunk-XIRO2GV7-S5KkbVnN.js +0 -30
- package/es/classDiagram-VBA2DB6C-Co3LMmg8.js +0 -29
- package/es/classDiagram-v2-RAHNMMFH-BZscgdF2.js +0 -29
- package/es/css-Bi5OTYo2.js +0 -2
- package/es/gitGraph-HDMCJU4V-CxsS0Qr1.js +0 -3
- package/es/info-3K5VOQVL-COqdvM99.js +0 -3
- package/es/javascript-CjdDmufJ.js +0 -2
- package/es/mermaid-parser.core-7Wn2L29P.js +0 -59
- package/es/packet-RMMSAZCW-2PTjWKLd.js +0 -3
- package/es/pie-UPGHQEXC-Du8-k-EA.js +0 -3
- package/es/radar-KQ55EAFF-jJOhyjxC.js +0 -3
- package/es/stateDiagram-v2-FVOUBMTO-DIXyaX9W.js +0 -27
- package/es/treemap-KZPCXAKY-CvZAIYVa.js +0 -3
- /package/es/{array-CWNufkl9.js → array-CApNbSU9.js} +0 -0
- /package/es/{css-v5r4VtJ6.js → css-DVAQAvTD.js} +0 -0
- /package/es/{defaultLocale-bckJcYh1.js → defaultLocale-aSMWOJHq.js} +0 -0
- /package/es/{init-B75p2clj.js → init-Co4dhKfe.js} +0 -0
- /package/es/{javascript-o_jd8Ivw.js → javascript-Bk0bJ4nQ.js} +0 -0
- /package/es/{json-DqMXJlo0.js → json-CAwkMa5O.js} +0 -0
- /package/es/{math-CoDOuve-.js → math-BZ_bUCIA.js} +0 -0
- /package/es/{python-CQPNJfOt.js → python-D0AaDoWC.js} +0 -0
- /package/es/{typescript-Ck7Pr_E3.js → typescript-DWy2KXvB.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as e } from "./
|
|
1
|
+
import { r as e } from "./rolldown-runtime-Dv1pqm0U.js";
|
|
2
2
|
//#region ../../node_modules/.pnpm/@shikijs+types@3.23.0/node_modules/@shikijs/types/dist/index.mjs
|
|
3
3
|
var t = class extends Error {
|
|
4
4
|
constructor(e) {
|
|
@@ -52,7 +52,7 @@ var c = /\$(\d+)|\${(\d+):\/(downcase|upcase)}/g, l = class {
|
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
54
|
function u(e, t) {
|
|
55
|
-
return e < t ? -1 : e > t
|
|
55
|
+
return e < t ? -1 : +(e > t);
|
|
56
56
|
}
|
|
57
57
|
function d(e, t) {
|
|
58
58
|
if (e === null && t === null) return 0;
|
|
@@ -131,7 +131,7 @@ var m = class {
|
|
|
131
131
|
return this.getSegments().join(" ");
|
|
132
132
|
}
|
|
133
133
|
extends(e) {
|
|
134
|
-
return this === e
|
|
134
|
+
return this === e || this.parent !== null && this.parent.extends(e);
|
|
135
135
|
}
|
|
136
136
|
getExtensionIfDefined(e) {
|
|
137
137
|
let t = [], n = this;
|
|
@@ -349,8 +349,8 @@ var ae = class {
|
|
|
349
349
|
return (e & 4278190080) >>> 24;
|
|
350
350
|
}
|
|
351
351
|
static set(t, n, r, i, a, o, s) {
|
|
352
|
-
let c = e.getLanguageId(t), l = e.getTokenType(t), u = e.containsBalancedBrackets(t)
|
|
353
|
-
return n !== 0 && (c = n), r !== 8 && (l = ue(r)), i !== null && (u = i
|
|
352
|
+
let c = e.getLanguageId(t), l = e.getTokenType(t), u = +!!e.containsBalancedBrackets(t), d = e.getFontStyle(t), f = e.getForeground(t), p = e.getBackground(t);
|
|
353
|
+
return n !== 0 && (c = n), r !== 8 && (l = ue(r)), i !== null && (u = +!!i), a !== -1 && (d = a), o !== 0 && (f = o), s !== 0 && (p = s), (c << 0 | l << 8 | u << 10 | d << 11 | f << 15 | p << 24) >>> 0;
|
|
354
354
|
}
|
|
355
355
|
};
|
|
356
356
|
function le(e) {
|
|
@@ -905,7 +905,11 @@ var Fe = class {
|
|
|
905
905
|
this._items[e].source !== t && (this._disposeCaches(), this._items[e].setSource(t));
|
|
906
906
|
}
|
|
907
907
|
compile(e) {
|
|
908
|
-
|
|
908
|
+
if (!this._cached) {
|
|
909
|
+
let t = this._items.map((e) => e.source);
|
|
910
|
+
this._cached = new We(e, t, this._items.map((e) => e.ruleId));
|
|
911
|
+
}
|
|
912
|
+
return this._cached;
|
|
909
913
|
}
|
|
910
914
|
compileAG(e, t, n) {
|
|
911
915
|
return this._hasAnchors ? t ? n ? (this._anchorCache.A1_G1 || (this._anchorCache.A1_G1 = this._resolveAnchors(e, t, n)), this._anchorCache.A1_G1) : (this._anchorCache.A1_G0 || (this._anchorCache.A1_G0 = this._resolveAnchors(e, t, n)), this._anchorCache.A1_G0) : n ? (this._anchorCache.A0_G1 || (this._anchorCache.A0_G1 = this._resolveAnchors(e, t, n)), this._anchorCache.A0_G1) : (this._anchorCache.A0_G0 || (this._anchorCache.A0_G0 = this._resolveAnchors(e, t, n)), this._anchorCache.A0_G0) : this.compile(e);
|
|
@@ -984,25 +988,25 @@ var Fe = class {
|
|
|
984
988
|
}
|
|
985
989
|
};
|
|
986
990
|
typeof process < "u" && {}.VSCODE_TEXTMATE_DEBUG;
|
|
987
|
-
var Je =
|
|
991
|
+
var Je = class {
|
|
988
992
|
constructor(e, t) {
|
|
989
993
|
this.stack = e, this.stoppedEarly = t;
|
|
990
994
|
}
|
|
991
995
|
};
|
|
992
|
-
function
|
|
996
|
+
function Ye(e, t, n, r, i, a, o, s) {
|
|
993
997
|
let c = t.content.length, l = !1, u = -1;
|
|
994
998
|
if (o) {
|
|
995
|
-
let o =
|
|
999
|
+
let o = Xe(e, t, n, r, i, a);
|
|
996
1000
|
i = o.stack, r = o.linePos, n = o.isFirstLine, u = o.anchorPosition;
|
|
997
1001
|
}
|
|
998
1002
|
let d = Date.now();
|
|
999
1003
|
for (; !l;) {
|
|
1000
|
-
if (s !== 0 && Date.now() - d > s) return new
|
|
1004
|
+
if (s !== 0 && Date.now() - d > s) return new Je(i, !0);
|
|
1001
1005
|
f();
|
|
1002
1006
|
}
|
|
1003
|
-
return new
|
|
1007
|
+
return new Je(i, !1);
|
|
1004
1008
|
function f() {
|
|
1005
|
-
let o =
|
|
1009
|
+
let o = Ze(e, t, n, r, i, u);
|
|
1006
1010
|
if (!o) {
|
|
1007
1011
|
a.produce(i, c), l = !0;
|
|
1008
1012
|
return;
|
|
@@ -1010,7 +1014,7 @@ function Xe(e, t, n, r, i, a, o, s) {
|
|
|
1010
1014
|
let s = o.captureIndices, d = o.matchedRuleId, f = s && s.length > 0 ? s[0].end > r : !1;
|
|
1011
1015
|
if (d === je) {
|
|
1012
1016
|
let o = i.getRule(e);
|
|
1013
|
-
a.produce(i, s[0].start), i = i.withContentNameScopesList(i.nameScopesList),
|
|
1017
|
+
a.produce(i, s[0].start), i = i.withContentNameScopesList(i.nameScopesList), nt(e, t, n, i, a, o.endCaptures, s), a.produce(i, s[0].end);
|
|
1014
1018
|
let d = i;
|
|
1015
1019
|
if (i = i.parent, u = d.getAnchorPos(), !f && d.getEnterPos() === r) {
|
|
1016
1020
|
i = d, a.produce(i, c), l = !0;
|
|
@@ -1022,7 +1026,7 @@ function Xe(e, t, n, r, i, a, o, s) {
|
|
|
1022
1026
|
let p = i, m = o.getName(t.content, s), h = i.contentNameScopesList.pushAttributed(m, e);
|
|
1023
1027
|
if (i = i.push(d, r, u, s[0].end === c, null, h, h), o instanceof ze) {
|
|
1024
1028
|
let r = o;
|
|
1025
|
-
|
|
1029
|
+
nt(e, t, n, i, a, r.beginCaptures, s), a.produce(i, s[0].end), u = s[0].end;
|
|
1026
1030
|
let d = r.getContentName(t.content, s), m = h.pushAttributed(d, e);
|
|
1027
1031
|
if (i = i.withContentNameScopesList(m), r.endHasBackReferences && (i = i.withEndRule(r.getEndWithResolvedBackReferences(t.content, s))), !f && p.hasSameRuleAs(i)) {
|
|
1028
1032
|
i = i.pop(), a.produce(i, c), l = !0;
|
|
@@ -1030,13 +1034,13 @@ function Xe(e, t, n, r, i, a, o, s) {
|
|
|
1030
1034
|
}
|
|
1031
1035
|
} else if (o instanceof Be) {
|
|
1032
1036
|
let r = o;
|
|
1033
|
-
|
|
1037
|
+
nt(e, t, n, i, a, r.beginCaptures, s), a.produce(i, s[0].end), u = s[0].end;
|
|
1034
1038
|
let d = r.getContentName(t.content, s), m = h.pushAttributed(d, e);
|
|
1035
1039
|
if (i = i.withContentNameScopesList(m), r.whileHasBackReferences && (i = i.withEndRule(r.getWhileWithResolvedBackReferences(t.content, s))), !f && p.hasSameRuleAs(i)) {
|
|
1036
1040
|
i = i.pop(), a.produce(i, c), l = !0;
|
|
1037
1041
|
return;
|
|
1038
1042
|
}
|
|
1039
|
-
} else if (
|
|
1043
|
+
} else if (nt(e, t, n, i, a, o.captures, s), a.produce(i, s[0].end), i = i.pop(), !f) {
|
|
1040
1044
|
i = i.safePop(), a.produce(i, c), l = !0;
|
|
1041
1045
|
return;
|
|
1042
1046
|
}
|
|
@@ -1044,7 +1048,7 @@ function Xe(e, t, n, r, i, a, o, s) {
|
|
|
1044
1048
|
s[0].end > r && (r = s[0].end, n = !1);
|
|
1045
1049
|
}
|
|
1046
1050
|
}
|
|
1047
|
-
function
|
|
1051
|
+
function Xe(e, t, n, r, i, a) {
|
|
1048
1052
|
let o = i.beginRuleCapturedEOL ? 0 : -1, s = [];
|
|
1049
1053
|
for (let t = i; t; t = t.pop()) {
|
|
1050
1054
|
let n = t.getRule(e);
|
|
@@ -1054,13 +1058,13 @@ function Ze(e, t, n, r, i, a) {
|
|
|
1054
1058
|
});
|
|
1055
1059
|
}
|
|
1056
1060
|
for (let c = s.pop(); c; c = s.pop()) {
|
|
1057
|
-
let { ruleScanner: s, findOptions: l } =
|
|
1061
|
+
let { ruleScanner: s, findOptions: l } = tt(c.rule, e, c.stack.endRule, n, r === o), u = s.findNextMatchSync(t, r, l);
|
|
1058
1062
|
if (u) {
|
|
1059
1063
|
if (u.ruleId !== Me) {
|
|
1060
1064
|
i = c.stack.pop();
|
|
1061
1065
|
break;
|
|
1062
1066
|
}
|
|
1063
|
-
u.captureIndices && u.captureIndices.length && (a.produce(c.stack, u.captureIndices[0].start),
|
|
1067
|
+
u.captureIndices && u.captureIndices.length && (a.produce(c.stack, u.captureIndices[0].start), nt(e, t, n, c.stack, a, c.rule.whileCaptures, u.captureIndices), a.produce(c.stack, u.captureIndices[0].end), o = u.captureIndices[0].end, u.captureIndices[0].end > r && (r = u.captureIndices[0].end, n = !1));
|
|
1064
1068
|
} else {
|
|
1065
1069
|
i = c.stack.pop();
|
|
1066
1070
|
break;
|
|
@@ -1073,28 +1077,28 @@ function Ze(e, t, n, r, i, a) {
|
|
|
1073
1077
|
isFirstLine: n
|
|
1074
1078
|
};
|
|
1075
1079
|
}
|
|
1076
|
-
function
|
|
1077
|
-
let o =
|
|
1080
|
+
function Ze(e, t, n, r, i, a) {
|
|
1081
|
+
let o = Qe(e, t, n, r, i, a), s = e.getInjections();
|
|
1078
1082
|
if (s.length === 0) return o;
|
|
1079
|
-
let c =
|
|
1083
|
+
let c = $e(s, e, t, n, r, i, a);
|
|
1080
1084
|
if (!c) return o;
|
|
1081
1085
|
if (!o) return c;
|
|
1082
1086
|
let l = o.captureIndices[0].start, u = c.captureIndices[0].start;
|
|
1083
1087
|
return u < l || c.priorityMatch && u === l ? c : o;
|
|
1084
1088
|
}
|
|
1085
|
-
function
|
|
1086
|
-
let { ruleScanner: o, findOptions: s } =
|
|
1089
|
+
function Qe(e, t, n, r, i, a) {
|
|
1090
|
+
let { ruleScanner: o, findOptions: s } = et(i.getRule(e), e, i.endRule, n, r === a), c = o.findNextMatchSync(t, r, s);
|
|
1087
1091
|
return c ? {
|
|
1088
1092
|
captureIndices: c.captureIndices,
|
|
1089
1093
|
matchedRuleId: c.ruleId
|
|
1090
1094
|
} : null;
|
|
1091
1095
|
}
|
|
1092
|
-
function
|
|
1096
|
+
function $e(e, t, n, r, i, a, o) {
|
|
1093
1097
|
let s = Number.MAX_VALUE, c = null, l, u = 0, d = a.contentNameScopesList.getScopeNames();
|
|
1094
1098
|
for (let a = 0, f = e.length; a < f; a++) {
|
|
1095
1099
|
let f = e[a];
|
|
1096
1100
|
if (!f.matcher(d)) continue;
|
|
1097
|
-
let { ruleScanner: p, findOptions: m } =
|
|
1101
|
+
let { ruleScanner: p, findOptions: m } = et(t.getRule(f.ruleId), t, null, r, i === o), h = p.findNextMatchSync(n, i, m);
|
|
1098
1102
|
if (!h) continue;
|
|
1099
1103
|
let g = h.captureIndices[0].start;
|
|
1100
1104
|
if (!(g >= s) && (s = g, c = h.captureIndices, l = h.ruleId, u = f.priority, s === i)) break;
|
|
@@ -1105,29 +1109,19 @@ function et(e, t, n, r, i, a, o) {
|
|
|
1105
1109
|
matchedRuleId: l
|
|
1106
1110
|
} : null;
|
|
1107
1111
|
}
|
|
1108
|
-
function
|
|
1109
|
-
return
|
|
1110
|
-
ruleScanner: e.compile(t, n),
|
|
1111
|
-
findOptions: rt(r, i)
|
|
1112
|
-
} : {
|
|
1112
|
+
function et(e, t, n, r, i) {
|
|
1113
|
+
return {
|
|
1113
1114
|
ruleScanner: e.compileAG(t, n, r, i),
|
|
1114
1115
|
findOptions: 0
|
|
1115
1116
|
};
|
|
1116
1117
|
}
|
|
1117
|
-
function
|
|
1118
|
-
return
|
|
1119
|
-
ruleScanner: e.compileWhile(t, n),
|
|
1120
|
-
findOptions: rt(r, i)
|
|
1121
|
-
} : {
|
|
1118
|
+
function tt(e, t, n, r, i) {
|
|
1119
|
+
return {
|
|
1122
1120
|
ruleScanner: e.compileWhileAG(t, n, r, i),
|
|
1123
1121
|
findOptions: 0
|
|
1124
1122
|
};
|
|
1125
1123
|
}
|
|
1126
|
-
function
|
|
1127
|
-
let n = 0;
|
|
1128
|
-
return e || (n |= 1), t || (n |= 4), n;
|
|
1129
|
-
}
|
|
1130
|
-
function it(e, t, n, r, i, a, o) {
|
|
1124
|
+
function nt(e, t, n, r, i, a, o) {
|
|
1131
1125
|
if (a.length === 0) return;
|
|
1132
1126
|
let s = t.content, c = Math.min(a.length, o.length), l = [], u = o[0].end;
|
|
1133
1127
|
for (let t = 0; t < c; t++) {
|
|
@@ -1139,29 +1133,29 @@ function it(e, t, n, r, i, a, o) {
|
|
|
1139
1133
|
for (; l.length > 0 && l[l.length - 1].endPos <= d.start;) i.produceFromScopes(l[l.length - 1].scopes, l[l.length - 1].endPos), l.pop();
|
|
1140
1134
|
if (l.length > 0 ? i.produceFromScopes(l[l.length - 1].scopes, d.start) : i.produce(r, d.start), c.retokenizeCapturedWithRuleId) {
|
|
1141
1135
|
let t = c.getName(s, o), a = r.contentNameScopesList.pushAttributed(t, e), l = c.getContentName(s, o), u = a.pushAttributed(l, e), f = r.push(c.retokenizeCapturedWithRuleId, d.start, -1, !1, null, a, u), p = e.createOnigString(s.substring(0, d.end));
|
|
1142
|
-
|
|
1136
|
+
Ye(e, p, n && d.start === 0, d.start, f, i, !1, 0), me(p);
|
|
1143
1137
|
continue;
|
|
1144
1138
|
}
|
|
1145
1139
|
let f = c.getName(s, o);
|
|
1146
1140
|
if (f !== null) {
|
|
1147
1141
|
let t = (l.length > 0 ? l[l.length - 1].scopes : r.contentNameScopesList).pushAttributed(f, e);
|
|
1148
|
-
l.push(new
|
|
1142
|
+
l.push(new rt(t, d.end));
|
|
1149
1143
|
}
|
|
1150
1144
|
}
|
|
1151
1145
|
for (; l.length > 0;) i.produceFromScopes(l[l.length - 1].scopes, l[l.length - 1].endPos), l.pop();
|
|
1152
1146
|
}
|
|
1153
|
-
var
|
|
1147
|
+
var rt = class {
|
|
1154
1148
|
scopes;
|
|
1155
1149
|
endPos;
|
|
1156
1150
|
constructor(e, t) {
|
|
1157
1151
|
this.scopes = e, this.endPos = t;
|
|
1158
1152
|
}
|
|
1159
1153
|
};
|
|
1160
|
-
function
|
|
1161
|
-
return new
|
|
1154
|
+
function it(e, t, n, r, i, a, o, s) {
|
|
1155
|
+
return new ct(e, t, n, r, i, a, o, s);
|
|
1162
1156
|
}
|
|
1163
|
-
function
|
|
1164
|
-
let a = de(t,
|
|
1157
|
+
function at(e, t, n, r, i) {
|
|
1158
|
+
let a = de(t, ot), o = Ve.getCompiledRuleId(n, r, i.repository);
|
|
1165
1159
|
for (let n of a) e.push({
|
|
1166
1160
|
debugSelector: t,
|
|
1167
1161
|
matcher: n.matcher,
|
|
@@ -1170,24 +1164,24 @@ function st(e, t, n, r, i) {
|
|
|
1170
1164
|
priority: n.priority
|
|
1171
1165
|
});
|
|
1172
1166
|
}
|
|
1173
|
-
function
|
|
1167
|
+
function ot(e, t) {
|
|
1174
1168
|
if (t.length < e.length) return !1;
|
|
1175
1169
|
let n = 0;
|
|
1176
1170
|
return e.every((e) => {
|
|
1177
|
-
for (let r = n; r < t.length; r++) if (
|
|
1171
|
+
for (let r = n; r < t.length; r++) if (st(t[r], e)) return n = r + 1, !0;
|
|
1178
1172
|
return !1;
|
|
1179
1173
|
});
|
|
1180
1174
|
}
|
|
1181
|
-
function
|
|
1175
|
+
function st(e, t) {
|
|
1182
1176
|
if (!e) return !1;
|
|
1183
1177
|
if (e === t) return !0;
|
|
1184
1178
|
let n = t.length;
|
|
1185
1179
|
return e.length > n && e.substr(0, n) === t && e[n] === ".";
|
|
1186
1180
|
}
|
|
1187
|
-
var
|
|
1181
|
+
var ct = class {
|
|
1188
1182
|
constructor(e, t, n, r, i, a, o, s) {
|
|
1189
|
-
if (this._rootScopeName = e, this.balancedBracketSelectors = a, this._onigLib = s, this._basicScopeAttributesProvider = new Ke(n, r), this._rootId = -1, this._lastRuleId = 0, this._ruleId2desc = [null], this._includedGrammars = {}, this._grammarRepository = o, this._grammar =
|
|
1190
|
-
let t = de(e,
|
|
1183
|
+
if (this._rootScopeName = e, this.balancedBracketSelectors = a, this._onigLib = s, this._basicScopeAttributesProvider = new Ke(n, r), this._rootId = -1, this._lastRuleId = 0, this._ruleId2desc = [null], this._includedGrammars = {}, this._grammarRepository = o, this._grammar = lt(t, null), this._injections = null, this._tokenTypeMatchers = [], i) for (let e of Object.keys(i)) {
|
|
1184
|
+
let t = de(e, ot);
|
|
1191
1185
|
for (let n of t) this._tokenTypeMatchers.push({
|
|
1192
1186
|
matcher: n.matcher,
|
|
1193
1187
|
type: i[e]
|
|
@@ -1225,13 +1219,13 @@ var ut = class {
|
|
|
1225
1219
|
}, t = [], n = this._rootScopeName, r = e.lookup(n);
|
|
1226
1220
|
if (r) {
|
|
1227
1221
|
let e = r.injections;
|
|
1228
|
-
if (e) for (let n in e)
|
|
1222
|
+
if (e) for (let n in e) at(t, n, e[n], this, r);
|
|
1229
1223
|
let i = this._grammarRepository.injections(n);
|
|
1230
1224
|
i && i.forEach((e) => {
|
|
1231
1225
|
let n = this.getExternalGrammar(e);
|
|
1232
1226
|
if (n) {
|
|
1233
1227
|
let e = n.injectionSelector;
|
|
1234
|
-
e &&
|
|
1228
|
+
e && at(t, e, n, this, n);
|
|
1235
1229
|
}
|
|
1236
1230
|
});
|
|
1237
1231
|
}
|
|
@@ -1251,7 +1245,7 @@ var ut = class {
|
|
|
1251
1245
|
if (this._includedGrammars[e]) return this._includedGrammars[e];
|
|
1252
1246
|
if (this._grammarRepository) {
|
|
1253
1247
|
let n = this._grammarRepository.lookup(e);
|
|
1254
|
-
if (n) return this._includedGrammars[e] =
|
|
1248
|
+
if (n) return this._includedGrammars[e] = lt(n, t && t.$base), this._includedGrammars[e];
|
|
1255
1249
|
}
|
|
1256
1250
|
}
|
|
1257
1251
|
tokenizeLine(e, t, n = 0) {
|
|
@@ -1273,13 +1267,13 @@ var ut = class {
|
|
|
1273
1267
|
_tokenize(e, t, n, r) {
|
|
1274
1268
|
this._rootId === -1 && (this._rootId = Ve.getCompiledRuleId(this._grammar.repository.$self, this, this._grammar.repository), this.getInjections());
|
|
1275
1269
|
let i;
|
|
1276
|
-
if (!t || t ===
|
|
1270
|
+
if (!t || t === dt.NULL) {
|
|
1277
1271
|
i = !0;
|
|
1278
1272
|
let e = this._basicScopeAttributesProvider.getDefaultAttributes(), n = this.themeProvider.getDefaults(), r = y.set(0, e.languageId, e.tokenType, null, n.fontStyle, n.foregroundId, n.backgroundId), a = this.getRule(this._rootId).getName(null, null), o;
|
|
1279
|
-
o = a ?
|
|
1273
|
+
o = a ? ut.createRootAndLookUpScopeName(a, r, this) : ut.createRoot("unknown", r), t = new dt(null, this._rootId, -1, -1, !1, null, o, o);
|
|
1280
1274
|
} else i = !1, t.reset();
|
|
1281
1275
|
e += "\n";
|
|
1282
|
-
let a = this.createOnigString(e), o = a.content.length, s = new
|
|
1276
|
+
let a = this.createOnigString(e), o = a.content.length, s = new pt(n, e, this._tokenTypeMatchers, this.balancedBracketSelectors), c = Ye(this, a, i, 0, t, s, !0, r);
|
|
1283
1277
|
return me(a), {
|
|
1284
1278
|
lineLength: o,
|
|
1285
1279
|
lineTokens: s,
|
|
@@ -1288,14 +1282,14 @@ var ut = class {
|
|
|
1288
1282
|
};
|
|
1289
1283
|
}
|
|
1290
1284
|
};
|
|
1291
|
-
function
|
|
1285
|
+
function lt(e, t) {
|
|
1292
1286
|
return e = n(e), e.repository = e.repository || {}, e.repository.$self = {
|
|
1293
1287
|
$vscodeTextmateLocation: e.$vscodeTextmateLocation,
|
|
1294
1288
|
patterns: e.patterns,
|
|
1295
1289
|
name: e.scopeName
|
|
1296
1290
|
}, e.repository.$base = t || e.repository.$self, e;
|
|
1297
1291
|
}
|
|
1298
|
-
var
|
|
1292
|
+
var ut = class e {
|
|
1299
1293
|
constructor(e, t, n) {
|
|
1300
1294
|
this.parent = e, this.scopePath = t, this.tokenAttributes = n;
|
|
1301
1295
|
}
|
|
@@ -1308,8 +1302,8 @@ var ft = class e {
|
|
|
1308
1302
|
return new e(null, new g(null, t), n);
|
|
1309
1303
|
}
|
|
1310
1304
|
static createRootAndLookUpScopeName(t, n, r) {
|
|
1311
|
-
let i = r.getMetadataForScope(t), a = new g(null, t), o = r.themeProvider.themeMatch(a);
|
|
1312
|
-
return new e(null, a,
|
|
1305
|
+
let i = r.getMetadataForScope(t), a = new g(null, t), o = r.themeProvider.themeMatch(a), s = e.mergeAttributes(n, i, o);
|
|
1306
|
+
return new e(null, a, s);
|
|
1313
1307
|
}
|
|
1314
1308
|
get scopeName() {
|
|
1315
1309
|
return this.scopePath.scopeName;
|
|
@@ -1339,8 +1333,8 @@ var ft = class e {
|
|
|
1339
1333
|
return i;
|
|
1340
1334
|
}
|
|
1341
1335
|
static _pushAttributed(t, n, r) {
|
|
1342
|
-
let i = r.getMetadataForScope(n), a = t.scopePath.push(n), o = r.themeProvider.themeMatch(a);
|
|
1343
|
-
return new e(t, a,
|
|
1336
|
+
let i = r.getMetadataForScope(n), a = t.scopePath.push(n), o = r.themeProvider.themeMatch(a), s = e.mergeAttributes(t.tokenAttributes, i, o);
|
|
1337
|
+
return new e(t, a, s);
|
|
1344
1338
|
}
|
|
1345
1339
|
getScopeNames() {
|
|
1346
1340
|
return this.scopePath.getSegments();
|
|
@@ -1353,7 +1347,7 @@ var ft = class e {
|
|
|
1353
1347
|
}), n = n.parent;
|
|
1354
1348
|
return n === e ? t.reverse() : void 0;
|
|
1355
1349
|
}
|
|
1356
|
-
},
|
|
1350
|
+
}, dt = class e {
|
|
1357
1351
|
constructor(e, t, n, r, i, a, o, s) {
|
|
1358
1352
|
this.parent = e, this.ruleId = t, this.beginRuleCapturedEOL = i, this.endRule = a, this.nameScopesList = o, this.contentNameScopesList = s, this.depth = this.parent ? this.parent.depth + 1 : 1, this._enterPos = n, this._anchorPos = r;
|
|
1359
1353
|
}
|
|
@@ -1363,10 +1357,10 @@ var ft = class e {
|
|
|
1363
1357
|
_anchorPos;
|
|
1364
1358
|
depth;
|
|
1365
1359
|
equals(t) {
|
|
1366
|
-
return t
|
|
1360
|
+
return t !== null && e._equals(this, t);
|
|
1367
1361
|
}
|
|
1368
1362
|
static _equals(e, t) {
|
|
1369
|
-
return e === t ? !0 : this._structuralEquals(e, t) ?
|
|
1363
|
+
return e === t ? !0 : this._structuralEquals(e, t) ? ut.equals(e.contentNameScopesList, t.contentNameScopesList) : !1;
|
|
1370
1364
|
}
|
|
1371
1365
|
static _structuralEquals(e, t) {
|
|
1372
1366
|
do {
|
|
@@ -1433,15 +1427,15 @@ var ft = class e {
|
|
|
1433
1427
|
};
|
|
1434
1428
|
}
|
|
1435
1429
|
static pushFrame(t, n) {
|
|
1436
|
-
let r =
|
|
1437
|
-
return new e(t, Ne(n.ruleId), n.enterPos ?? -1, n.anchorPos ?? -1, n.beginRuleCapturedEOL, n.endRule, r,
|
|
1430
|
+
let r = ut.fromExtension(t?.nameScopesList ?? null, n.nameScopesList);
|
|
1431
|
+
return new e(t, Ne(n.ruleId), n.enterPos ?? -1, n.anchorPos ?? -1, n.beginRuleCapturedEOL, n.endRule, r, ut.fromExtension(r, n.contentNameScopesList));
|
|
1438
1432
|
}
|
|
1439
|
-
},
|
|
1433
|
+
}, ft = class {
|
|
1440
1434
|
balancedBracketScopes;
|
|
1441
1435
|
unbalancedBracketScopes;
|
|
1442
1436
|
allowAny = !1;
|
|
1443
1437
|
constructor(e, t) {
|
|
1444
|
-
this.balancedBracketScopes = e.flatMap((e) => e === "*" ? (this.allowAny = !0, []) : de(e,
|
|
1438
|
+
this.balancedBracketScopes = e.flatMap((e) => e === "*" ? (this.allowAny = !0, []) : de(e, ot).map((e) => e.matcher)), this.unbalancedBracketScopes = t.flatMap((e) => de(e, ot).map((e) => e.matcher));
|
|
1445
1439
|
}
|
|
1446
1440
|
get matchesAlways() {
|
|
1447
1441
|
return this.allowAny && this.unbalancedBracketScopes.length === 0;
|
|
@@ -1454,7 +1448,7 @@ var ft = class e {
|
|
|
1454
1448
|
for (let t of this.balancedBracketScopes) if (t(e)) return !0;
|
|
1455
1449
|
return this.allowAny;
|
|
1456
1450
|
}
|
|
1457
|
-
},
|
|
1451
|
+
}, pt = class {
|
|
1458
1452
|
constructor(e, t, n, r) {
|
|
1459
1453
|
this.balancedBracketSelectors = r, this._emitBinaryTokens = e, this._tokenTypeOverrides = n, this._lineText = null, this._tokens = [], this._binaryTokens = [], this._lastTokenEndIndex = 0;
|
|
1460
1454
|
}
|
|
@@ -1499,7 +1493,7 @@ var ft = class e {
|
|
|
1499
1493
|
for (let e = 0, t = this._binaryTokens.length; e < t; e++) n[e] = this._binaryTokens[e];
|
|
1500
1494
|
return n;
|
|
1501
1495
|
}
|
|
1502
|
-
},
|
|
1496
|
+
}, mt = class {
|
|
1503
1497
|
constructor(e, t) {
|
|
1504
1498
|
this._onigLib = t, this._theme = e;
|
|
1505
1499
|
}
|
|
@@ -1535,16 +1529,16 @@ var ft = class e {
|
|
|
1535
1529
|
if (!this._grammars.has(e)) {
|
|
1536
1530
|
let a = this._rawGrammars.get(e);
|
|
1537
1531
|
if (!a) return null;
|
|
1538
|
-
this._grammars.set(e,
|
|
1532
|
+
this._grammars.set(e, it(e, a, t, n, r, i, this, this._onigLib));
|
|
1539
1533
|
}
|
|
1540
1534
|
return this._grammars.get(e);
|
|
1541
1535
|
}
|
|
1542
|
-
},
|
|
1536
|
+
}, ht = class {
|
|
1543
1537
|
_options;
|
|
1544
1538
|
_syncRegistry;
|
|
1545
1539
|
_ensureGrammarCache;
|
|
1546
1540
|
constructor(e) {
|
|
1547
|
-
this._options = e, this._syncRegistry = new
|
|
1541
|
+
this._options = e, this._syncRegistry = new mt(h.createFromRawTheme(e.theme, e.colorMap), e.onigLib), this._ensureGrammarCache = /* @__PURE__ */ new Map();
|
|
1548
1542
|
}
|
|
1549
1543
|
dispose() {
|
|
1550
1544
|
this._syncRegistry.dispose();
|
|
@@ -1559,7 +1553,7 @@ var ft = class e {
|
|
|
1559
1553
|
return this.loadGrammarWithConfiguration(e, t, { embeddedLanguages: n });
|
|
1560
1554
|
}
|
|
1561
1555
|
loadGrammarWithConfiguration(e, t, n) {
|
|
1562
|
-
return this._loadGrammar(e, t, n.embeddedLanguages, n.tokenTypes, new
|
|
1556
|
+
return this._loadGrammar(e, t, n.embeddedLanguages, n.tokenTypes, new ft(n.balancedBracketSelectors || [], n.unbalancedBracketSelectors || []));
|
|
1563
1557
|
}
|
|
1564
1558
|
loadGrammar(e) {
|
|
1565
1559
|
return this._loadGrammar(e, 0, null, null, null);
|
|
@@ -1585,7 +1579,7 @@ var ft = class e {
|
|
|
1585
1579
|
_grammarForScopeName(e, t = 0, n = null, r = null, i = null) {
|
|
1586
1580
|
return this._syncRegistry.grammarForScopeName(e, t, n, r, i);
|
|
1587
1581
|
}
|
|
1588
|
-
},
|
|
1582
|
+
}, gt = dt.NULL, _t = [
|
|
1589
1583
|
"area",
|
|
1590
1584
|
"base",
|
|
1591
1585
|
"basefont",
|
|
@@ -1606,22 +1600,22 @@ var ft = class e {
|
|
|
1606
1600
|
"source",
|
|
1607
1601
|
"track",
|
|
1608
1602
|
"wbr"
|
|
1609
|
-
],
|
|
1603
|
+
], vt = class {
|
|
1610
1604
|
constructor(e, t, n) {
|
|
1611
1605
|
this.normal = t, this.property = e, n && (this.space = n);
|
|
1612
1606
|
}
|
|
1613
1607
|
};
|
|
1614
|
-
|
|
1608
|
+
vt.prototype.normal = {}, vt.prototype.property = {}, vt.prototype.space = void 0;
|
|
1615
1609
|
//#endregion
|
|
1616
1610
|
//#region ../../node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/merge.js
|
|
1617
|
-
function
|
|
1611
|
+
function yt(e, t) {
|
|
1618
1612
|
let n = {}, r = {};
|
|
1619
1613
|
for (let t of e) Object.assign(n, t.property), Object.assign(r, t.normal);
|
|
1620
|
-
return new
|
|
1614
|
+
return new vt(n, r, t);
|
|
1621
1615
|
}
|
|
1622
1616
|
//#endregion
|
|
1623
1617
|
//#region ../../node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/normalize.js
|
|
1624
|
-
function
|
|
1618
|
+
function bt(e) {
|
|
1625
1619
|
return e.toLowerCase();
|
|
1626
1620
|
}
|
|
1627
1621
|
//#endregion
|
|
@@ -1634,46 +1628,46 @@ var b = class {
|
|
|
1634
1628
|
b.prototype.attribute = "", b.prototype.booleanish = !1, b.prototype.boolean = !1, b.prototype.commaOrSpaceSeparated = !1, b.prototype.commaSeparated = !1, b.prototype.defined = !1, b.prototype.mustUseProperty = !1, b.prototype.number = !1, b.prototype.overloadedBoolean = !1, b.prototype.property = "", b.prototype.spaceSeparated = !1, b.prototype.space = void 0;
|
|
1635
1629
|
//#endregion
|
|
1636
1630
|
//#region ../../node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/types.js
|
|
1637
|
-
var
|
|
1631
|
+
var xt = /* @__PURE__ */ e({
|
|
1638
1632
|
boolean: () => x,
|
|
1639
1633
|
booleanish: () => S,
|
|
1640
1634
|
commaOrSpaceSeparated: () => E,
|
|
1641
1635
|
commaSeparated: () => T,
|
|
1642
1636
|
number: () => C,
|
|
1643
|
-
overloadedBoolean: () =>
|
|
1637
|
+
overloadedBoolean: () => Ct,
|
|
1644
1638
|
spaceSeparated: () => w
|
|
1645
|
-
}),
|
|
1639
|
+
}), St = 0, x = D(), S = D(), Ct = D(), C = D(), w = D(), T = D(), E = D();
|
|
1646
1640
|
function D() {
|
|
1647
|
-
return 2 ** ++
|
|
1641
|
+
return 2 ** ++St;
|
|
1648
1642
|
}
|
|
1649
1643
|
//#endregion
|
|
1650
1644
|
//#region ../../node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/defined-info.js
|
|
1651
|
-
var
|
|
1645
|
+
var wt = Object.keys(xt), Tt = class extends b {
|
|
1652
1646
|
constructor(e, t, n, r) {
|
|
1653
1647
|
let i = -1;
|
|
1654
|
-
if (super(e, t),
|
|
1655
|
-
let e =
|
|
1656
|
-
|
|
1648
|
+
if (super(e, t), Et(this, "space", r), typeof n == "number") for (; ++i < wt.length;) {
|
|
1649
|
+
let e = wt[i];
|
|
1650
|
+
Et(this, wt[i], (n & xt[e]) === xt[e]);
|
|
1657
1651
|
}
|
|
1658
1652
|
}
|
|
1659
1653
|
};
|
|
1660
|
-
|
|
1661
|
-
function
|
|
1654
|
+
Tt.prototype.defined = !0;
|
|
1655
|
+
function Et(e, t, n) {
|
|
1662
1656
|
n && (e[t] = n);
|
|
1663
1657
|
}
|
|
1664
1658
|
//#endregion
|
|
1665
1659
|
//#region ../../node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/create.js
|
|
1666
|
-
function
|
|
1660
|
+
function O(e) {
|
|
1667
1661
|
let t = {}, n = {};
|
|
1668
1662
|
for (let [r, i] of Object.entries(e.properties)) {
|
|
1669
|
-
let a = new
|
|
1670
|
-
e.mustUseProperty && e.mustUseProperty.includes(r) && (a.mustUseProperty = !0), t[r] = a, n[
|
|
1663
|
+
let a = new Tt(r, e.transform(e.attributes || {}, r), i, e.space);
|
|
1664
|
+
e.mustUseProperty && e.mustUseProperty.includes(r) && (a.mustUseProperty = !0), t[r] = a, n[bt(r)] = r, n[bt(a.attribute)] = r;
|
|
1671
1665
|
}
|
|
1672
|
-
return new
|
|
1666
|
+
return new vt(t, n, e.space);
|
|
1673
1667
|
}
|
|
1674
1668
|
//#endregion
|
|
1675
1669
|
//#region ../../node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/aria.js
|
|
1676
|
-
var
|
|
1670
|
+
var Dt = O({
|
|
1677
1671
|
properties: {
|
|
1678
1672
|
ariaActiveDescendant: null,
|
|
1679
1673
|
ariaAtomic: S,
|
|
@@ -1731,17 +1725,17 @@ var At = kt({
|
|
|
1731
1725
|
});
|
|
1732
1726
|
//#endregion
|
|
1733
1727
|
//#region ../../node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-sensitive-transform.js
|
|
1734
|
-
function
|
|
1728
|
+
function Ot(e, t) {
|
|
1735
1729
|
return t in e ? e[t] : t;
|
|
1736
1730
|
}
|
|
1737
1731
|
//#endregion
|
|
1738
1732
|
//#region ../../node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-insensitive-transform.js
|
|
1739
|
-
function
|
|
1740
|
-
return
|
|
1733
|
+
function kt(e, t) {
|
|
1734
|
+
return Ot(e, t.toLowerCase());
|
|
1741
1735
|
}
|
|
1742
1736
|
//#endregion
|
|
1743
1737
|
//#region ../../node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/html.js
|
|
1744
|
-
var
|
|
1738
|
+
var At = O({
|
|
1745
1739
|
attributes: {
|
|
1746
1740
|
acceptcharset: "accept-charset",
|
|
1747
1741
|
classname: "class",
|
|
@@ -1793,7 +1787,7 @@ var Nt = kt({
|
|
|
1793
1787
|
dir: null,
|
|
1794
1788
|
dirName: null,
|
|
1795
1789
|
disabled: x,
|
|
1796
|
-
download:
|
|
1790
|
+
download: Ct,
|
|
1797
1791
|
draggable: S,
|
|
1798
1792
|
encType: null,
|
|
1799
1793
|
enterKeyHint: null,
|
|
@@ -1806,7 +1800,7 @@ var Nt = kt({
|
|
|
1806
1800
|
formTarget: null,
|
|
1807
1801
|
headers: w,
|
|
1808
1802
|
height: C,
|
|
1809
|
-
hidden:
|
|
1803
|
+
hidden: Ct,
|
|
1810
1804
|
high: C,
|
|
1811
1805
|
href: null,
|
|
1812
1806
|
hrefLang: null,
|
|
@@ -2049,8 +2043,8 @@ var Nt = kt({
|
|
|
2049
2043
|
unselectable: null
|
|
2050
2044
|
},
|
|
2051
2045
|
space: "html",
|
|
2052
|
-
transform:
|
|
2053
|
-
}),
|
|
2046
|
+
transform: kt
|
|
2047
|
+
}), jt = O({
|
|
2054
2048
|
attributes: {
|
|
2055
2049
|
accentHeight: "accent-height",
|
|
2056
2050
|
alignmentBaseline: "alignment-baseline",
|
|
@@ -2604,8 +2598,8 @@ var Nt = kt({
|
|
|
2604
2598
|
zoomAndPan: null
|
|
2605
2599
|
},
|
|
2606
2600
|
space: "svg",
|
|
2607
|
-
transform:
|
|
2608
|
-
}),
|
|
2601
|
+
transform: Ot
|
|
2602
|
+
}), Mt = O({
|
|
2609
2603
|
properties: {
|
|
2610
2604
|
xLinkActuate: null,
|
|
2611
2605
|
xLinkArcRole: null,
|
|
@@ -2619,15 +2613,15 @@ var Nt = kt({
|
|
|
2619
2613
|
transform(e, t) {
|
|
2620
2614
|
return "xlink:" + t.slice(5).toLowerCase();
|
|
2621
2615
|
}
|
|
2622
|
-
}),
|
|
2616
|
+
}), Nt = O({
|
|
2623
2617
|
attributes: { xmlnsxlink: "xmlns:xlink" },
|
|
2624
2618
|
properties: {
|
|
2625
2619
|
xmlnsXLink: null,
|
|
2626
2620
|
xmlns: null
|
|
2627
2621
|
},
|
|
2628
2622
|
space: "xmlns",
|
|
2629
|
-
transform:
|
|
2630
|
-
}),
|
|
2623
|
+
transform: kt
|
|
2624
|
+
}), Pt = O({
|
|
2631
2625
|
properties: {
|
|
2632
2626
|
xmlBase: null,
|
|
2633
2627
|
xmlLang: null,
|
|
@@ -2637,53 +2631,53 @@ var Nt = kt({
|
|
|
2637
2631
|
transform(e, t) {
|
|
2638
2632
|
return "xml:" + t.slice(3).toLowerCase();
|
|
2639
2633
|
}
|
|
2640
|
-
}),
|
|
2641
|
-
function
|
|
2642
|
-
let n =
|
|
2634
|
+
}), Ft = /[A-Z]/g, It = /-[a-z]/g, Lt = /^data[-\w.:]+$/i;
|
|
2635
|
+
function Rt(e, t) {
|
|
2636
|
+
let n = bt(t), r = t, i = b;
|
|
2643
2637
|
if (n in e.normal) return e.property[e.normal[n]];
|
|
2644
|
-
if (n.length > 4 && n.slice(0, 4) === "data" &&
|
|
2638
|
+
if (n.length > 4 && n.slice(0, 4) === "data" && Lt.test(t)) {
|
|
2645
2639
|
if (t.charAt(4) === "-") {
|
|
2646
|
-
let e = t.slice(5).replace(
|
|
2640
|
+
let e = t.slice(5).replace(It, Bt);
|
|
2647
2641
|
r = "data" + e.charAt(0).toUpperCase() + e.slice(1);
|
|
2648
2642
|
} else {
|
|
2649
2643
|
let e = t.slice(4);
|
|
2650
|
-
if (!
|
|
2651
|
-
let n = e.replace(
|
|
2644
|
+
if (!It.test(e)) {
|
|
2645
|
+
let n = e.replace(Ft, zt);
|
|
2652
2646
|
n.charAt(0) !== "-" && (n = "-" + n), t = "data" + n;
|
|
2653
2647
|
}
|
|
2654
2648
|
}
|
|
2655
|
-
i =
|
|
2649
|
+
i = Tt;
|
|
2656
2650
|
}
|
|
2657
2651
|
return new i(r, t);
|
|
2658
2652
|
}
|
|
2659
|
-
function
|
|
2653
|
+
function zt(e) {
|
|
2660
2654
|
return "-" + e.toLowerCase();
|
|
2661
2655
|
}
|
|
2662
|
-
function
|
|
2656
|
+
function Bt(e) {
|
|
2663
2657
|
return e.charAt(1).toUpperCase();
|
|
2664
2658
|
}
|
|
2665
2659
|
//#endregion
|
|
2666
2660
|
//#region ../../node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/index.js
|
|
2667
|
-
var
|
|
2661
|
+
var Vt = yt([
|
|
2662
|
+
Dt,
|
|
2668
2663
|
At,
|
|
2664
|
+
Mt,
|
|
2669
2665
|
Nt,
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
], "svg"), Kt = {}.hasOwnProperty;
|
|
2680
|
-
function qt(e, t) {
|
|
2666
|
+
Pt
|
|
2667
|
+
], "html"), Ht = yt([
|
|
2668
|
+
Dt,
|
|
2669
|
+
jt,
|
|
2670
|
+
Mt,
|
|
2671
|
+
Nt,
|
|
2672
|
+
Pt
|
|
2673
|
+
], "svg"), Ut = {}.hasOwnProperty;
|
|
2674
|
+
function Wt(e, t) {
|
|
2681
2675
|
let n = t || {};
|
|
2682
2676
|
function r(t, ...n) {
|
|
2683
2677
|
let i = r.invalid, a = r.handlers;
|
|
2684
|
-
if (t &&
|
|
2678
|
+
if (t && Ut.call(t, e)) {
|
|
2685
2679
|
let n = String(t[e]);
|
|
2686
|
-
i =
|
|
2680
|
+
i = Ut.call(a, n) ? a[n] : r.unknown;
|
|
2687
2681
|
}
|
|
2688
2682
|
if (i) return i.call(this, t, ...n);
|
|
2689
2683
|
}
|
|
@@ -2691,10 +2685,10 @@ function qt(e, t) {
|
|
|
2691
2685
|
}
|
|
2692
2686
|
//#endregion
|
|
2693
2687
|
//#region ../../node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/core.js
|
|
2694
|
-
var
|
|
2695
|
-
function
|
|
2696
|
-
if (e = e.replace(t.subset ?
|
|
2697
|
-
return e.replace(
|
|
2688
|
+
var Gt = /["&'<>`]/g, Kt = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, qt = /[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g, Jt = /[|\\{}()[\]^$+*?.]/g, Yt = /* @__PURE__ */ new WeakMap();
|
|
2689
|
+
function Xt(e, t) {
|
|
2690
|
+
if (e = e.replace(t.subset ? Zt(t.subset) : Gt, r), t.subset || t.escapeOnly) return e;
|
|
2691
|
+
return e.replace(Kt, n).replace(qt, r);
|
|
2698
2692
|
function n(e, n, r) {
|
|
2699
2693
|
return t.format((e.charCodeAt(0) - 55296) * 1024 + e.charCodeAt(1) - 56320 + 65536, r.charCodeAt(n + 2), t);
|
|
2700
2694
|
}
|
|
@@ -2702,32 +2696,32 @@ function $t(e, t) {
|
|
|
2702
2696
|
return t.format(e.charCodeAt(0), r.charCodeAt(n + 1), t);
|
|
2703
2697
|
}
|
|
2704
2698
|
}
|
|
2705
|
-
function
|
|
2706
|
-
let t =
|
|
2707
|
-
return t || (t =
|
|
2699
|
+
function Zt(e) {
|
|
2700
|
+
let t = Yt.get(e);
|
|
2701
|
+
return t || (t = Qt(e), Yt.set(e, t)), t;
|
|
2708
2702
|
}
|
|
2709
|
-
function
|
|
2703
|
+
function Qt(e) {
|
|
2710
2704
|
let t = [], n = -1;
|
|
2711
|
-
for (; ++n < e.length;) t.push(e[n].replace(
|
|
2705
|
+
for (; ++n < e.length;) t.push(e[n].replace(Jt, "\\$&"));
|
|
2712
2706
|
return RegExp("(?:" + t.join("|") + ")", "g");
|
|
2713
2707
|
}
|
|
2714
2708
|
//#endregion
|
|
2715
2709
|
//#region ../../node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-hexadecimal.js
|
|
2716
|
-
var
|
|
2717
|
-
function
|
|
2710
|
+
var $t = /[\dA-Fa-f]/;
|
|
2711
|
+
function en(e, t, n) {
|
|
2718
2712
|
let r = "&#x" + e.toString(16).toUpperCase();
|
|
2719
|
-
return n && t &&
|
|
2713
|
+
return n && t && !$t.test(String.fromCharCode(t)) ? r : r + ";";
|
|
2720
2714
|
}
|
|
2721
2715
|
//#endregion
|
|
2722
2716
|
//#region ../../node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-decimal.js
|
|
2723
|
-
var
|
|
2724
|
-
function
|
|
2717
|
+
var tn = /\d/;
|
|
2718
|
+
function nn(e, t, n) {
|
|
2725
2719
|
let r = "&#" + String(e);
|
|
2726
|
-
return n && t && !
|
|
2720
|
+
return n && t && !tn.test(String.fromCharCode(t)) ? r : r + ";";
|
|
2727
2721
|
}
|
|
2728
2722
|
//#endregion
|
|
2729
2723
|
//#region ../../node_modules/.pnpm/character-entities-legacy@3.0.0/node_modules/character-entities-legacy/index.js
|
|
2730
|
-
var
|
|
2724
|
+
var rn = /* @__PURE__ */ "AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml".split("."), an = {
|
|
2731
2725
|
nbsp: "\xA0",
|
|
2732
2726
|
iexcl: "¡",
|
|
2733
2727
|
cent: "¢",
|
|
@@ -2980,7 +2974,7 @@ var sn = /* @__PURE__ */ "AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.C
|
|
|
2980
2974
|
lsaquo: "‹",
|
|
2981
2975
|
rsaquo: "›",
|
|
2982
2976
|
euro: "€"
|
|
2983
|
-
},
|
|
2977
|
+
}, on = [
|
|
2984
2978
|
"cent",
|
|
2985
2979
|
"copy",
|
|
2986
2980
|
"divide",
|
|
@@ -2989,49 +2983,49 @@ var sn = /* @__PURE__ */ "AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.C
|
|
|
2989
2983
|
"not",
|
|
2990
2984
|
"para",
|
|
2991
2985
|
"times"
|
|
2992
|
-
],
|
|
2993
|
-
for (
|
|
2994
|
-
var
|
|
2995
|
-
function
|
|
2986
|
+
], sn = {}.hasOwnProperty, cn = {}, ln;
|
|
2987
|
+
for (ln in an) sn.call(an, ln) && (cn[an[ln]] = ln);
|
|
2988
|
+
var un = /[^\dA-Za-z]/;
|
|
2989
|
+
function dn(e, t, n, r) {
|
|
2996
2990
|
let i = String.fromCharCode(e);
|
|
2997
|
-
if (
|
|
2998
|
-
let e =
|
|
2999
|
-
return n &&
|
|
2991
|
+
if (sn.call(cn, i)) {
|
|
2992
|
+
let e = cn[i], a = "&" + e;
|
|
2993
|
+
return n && rn.includes(e) && !on.includes(e) && (!r || t && t !== 61 && un.test(String.fromCharCode(t))) ? a : a + ";";
|
|
3000
2994
|
}
|
|
3001
2995
|
return "";
|
|
3002
2996
|
}
|
|
3003
2997
|
//#endregion
|
|
3004
2998
|
//#region ../../node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/format-smart.js
|
|
3005
|
-
function
|
|
3006
|
-
let r =
|
|
3007
|
-
if ((n.useNamedReferences || n.useShortestReferences) && (i =
|
|
3008
|
-
let i =
|
|
2999
|
+
function fn(e, t, n) {
|
|
3000
|
+
let r = en(e, t, n.omitOptionalSemicolons), i;
|
|
3001
|
+
if ((n.useNamedReferences || n.useShortestReferences) && (i = dn(e, t, n.omitOptionalSemicolons, n.attribute)), (n.useShortestReferences || !i) && n.useShortestReferences) {
|
|
3002
|
+
let i = nn(e, t, n.omitOptionalSemicolons);
|
|
3009
3003
|
i.length < r.length && (r = i);
|
|
3010
3004
|
}
|
|
3011
3005
|
return i && (!n.useShortestReferences || i.length < r.length) ? i : r;
|
|
3012
3006
|
}
|
|
3013
3007
|
//#endregion
|
|
3014
3008
|
//#region ../../node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/index.js
|
|
3015
|
-
function
|
|
3016
|
-
return
|
|
3009
|
+
function k(e, t) {
|
|
3010
|
+
return Xt(e, Object.assign({ format: fn }, t));
|
|
3017
3011
|
}
|
|
3018
3012
|
//#endregion
|
|
3019
3013
|
//#region ../../node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/comment.js
|
|
3020
|
-
var
|
|
3021
|
-
function
|
|
3022
|
-
return r.settings.bogusComments ? "<?" +
|
|
3014
|
+
var pn = /^>|^->|<!--|-->|--!>|<!-$/g, mn = [">"], hn = ["<", ">"];
|
|
3015
|
+
function gn(e, t, n, r) {
|
|
3016
|
+
return r.settings.bogusComments ? "<?" + k(e.value, Object.assign({}, r.settings.characterReferences, { subset: mn })) + ">" : "<!--" + e.value.replace(pn, i) + "-->";
|
|
3023
3017
|
function i(e) {
|
|
3024
|
-
return
|
|
3018
|
+
return k(e, Object.assign({}, r.settings.characterReferences, { subset: hn }));
|
|
3025
3019
|
}
|
|
3026
3020
|
}
|
|
3027
3021
|
//#endregion
|
|
3028
3022
|
//#region ../../node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/doctype.js
|
|
3029
|
-
function
|
|
3023
|
+
function _n(e, t, n, r) {
|
|
3030
3024
|
return "<!" + (r.settings.upperDoctype ? "DOCTYPE" : "doctype") + (r.settings.tightDoctype ? "" : " ") + "html>";
|
|
3031
3025
|
}
|
|
3032
3026
|
//#endregion
|
|
3033
3027
|
//#region ../../node_modules/.pnpm/ccount@2.0.1/node_modules/ccount/index.js
|
|
3034
|
-
function
|
|
3028
|
+
function vn(e, t) {
|
|
3035
3029
|
let n = String(e);
|
|
3036
3030
|
if (typeof t != "string") throw TypeError("Expected character");
|
|
3037
3031
|
let r = 0, i = n.indexOf(t);
|
|
@@ -3040,140 +3034,140 @@ function Sn(e, t) {
|
|
|
3040
3034
|
}
|
|
3041
3035
|
//#endregion
|
|
3042
3036
|
//#region ../../node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.js
|
|
3043
|
-
function
|
|
3037
|
+
function yn(e, t) {
|
|
3044
3038
|
let n = t || {};
|
|
3045
3039
|
return (e[e.length - 1] === "" ? [...e, ""] : e).join((n.padRight ? " " : "") + "," + (n.padLeft === !1 ? "" : " ")).trim();
|
|
3046
3040
|
}
|
|
3047
3041
|
//#endregion
|
|
3048
3042
|
//#region ../../node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.js
|
|
3049
|
-
function
|
|
3043
|
+
function bn(e) {
|
|
3050
3044
|
return e.join(" ").trim();
|
|
3051
3045
|
}
|
|
3052
3046
|
//#endregion
|
|
3053
3047
|
//#region ../../node_modules/.pnpm/hast-util-whitespace@3.0.0/node_modules/hast-util-whitespace/lib/index.js
|
|
3054
|
-
var
|
|
3055
|
-
function
|
|
3056
|
-
return typeof e == "object" ? e.type === "text"
|
|
3048
|
+
var xn = /[ \t\n\f\r]/g;
|
|
3049
|
+
function Sn(e) {
|
|
3050
|
+
return typeof e == "object" ? e.type === "text" && Cn(e.value) : Cn(e);
|
|
3057
3051
|
}
|
|
3058
|
-
function
|
|
3059
|
-
return e.replace(
|
|
3052
|
+
function Cn(e) {
|
|
3053
|
+
return e.replace(xn, "") === "";
|
|
3060
3054
|
}
|
|
3061
3055
|
//#endregion
|
|
3062
3056
|
//#region ../../node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/util/siblings.js
|
|
3063
|
-
var
|
|
3064
|
-
function
|
|
3057
|
+
var A = En(1), wn = En(-1), Tn = [];
|
|
3058
|
+
function En(e) {
|
|
3065
3059
|
return t;
|
|
3066
3060
|
function t(t, n, r) {
|
|
3067
|
-
let i = t ? t.children :
|
|
3068
|
-
if (!r) for (; o &&
|
|
3061
|
+
let i = t ? t.children : Tn, a = (n || 0) + e, o = i[a];
|
|
3062
|
+
if (!r) for (; o && Sn(o);) a += e, o = i[a];
|
|
3069
3063
|
return o;
|
|
3070
3064
|
}
|
|
3071
3065
|
}
|
|
3072
3066
|
//#endregion
|
|
3073
3067
|
//#region ../../node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/omission.js
|
|
3074
|
-
var
|
|
3075
|
-
function
|
|
3068
|
+
var Dn = {}.hasOwnProperty;
|
|
3069
|
+
function On(e) {
|
|
3076
3070
|
return t;
|
|
3077
3071
|
function t(t, n, r) {
|
|
3078
|
-
return
|
|
3072
|
+
return Dn.call(e, t.tagName) && e[t.tagName](t, n, r);
|
|
3079
3073
|
}
|
|
3080
3074
|
}
|
|
3081
3075
|
//#endregion
|
|
3082
3076
|
//#region ../../node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/closing.js
|
|
3083
|
-
var
|
|
3084
|
-
body:
|
|
3085
|
-
caption:
|
|
3086
|
-
colgroup:
|
|
3087
|
-
dd:
|
|
3088
|
-
dt:
|
|
3089
|
-
head:
|
|
3090
|
-
html:
|
|
3091
|
-
li:
|
|
3092
|
-
optgroup:
|
|
3093
|
-
option:
|
|
3094
|
-
p:
|
|
3095
|
-
rp:
|
|
3096
|
-
rt:
|
|
3097
|
-
tbody:
|
|
3098
|
-
td:
|
|
3099
|
-
tfoot:
|
|
3100
|
-
th:
|
|
3101
|
-
thead:
|
|
3102
|
-
tr:
|
|
3077
|
+
var kn = On({
|
|
3078
|
+
body: Mn,
|
|
3079
|
+
caption: An,
|
|
3080
|
+
colgroup: An,
|
|
3081
|
+
dd: In,
|
|
3082
|
+
dt: Fn,
|
|
3083
|
+
head: An,
|
|
3084
|
+
html: jn,
|
|
3085
|
+
li: Pn,
|
|
3086
|
+
optgroup: Rn,
|
|
3087
|
+
option: zn,
|
|
3088
|
+
p: Nn,
|
|
3089
|
+
rp: Ln,
|
|
3090
|
+
rt: Ln,
|
|
3091
|
+
tbody: Vn,
|
|
3092
|
+
td: Wn,
|
|
3093
|
+
tfoot: Hn,
|
|
3094
|
+
th: Wn,
|
|
3095
|
+
thead: Bn,
|
|
3096
|
+
tr: Un
|
|
3103
3097
|
});
|
|
3104
|
-
function
|
|
3105
|
-
let r =
|
|
3106
|
-
return !r || r.type !== "comment" && !(r.type === "text" &&
|
|
3098
|
+
function An(e, t, n) {
|
|
3099
|
+
let r = A(n, t, !0);
|
|
3100
|
+
return !r || r.type !== "comment" && !(r.type === "text" && Sn(r.value.charAt(0)));
|
|
3107
3101
|
}
|
|
3108
|
-
function
|
|
3109
|
-
let r =
|
|
3102
|
+
function jn(e, t, n) {
|
|
3103
|
+
let r = A(n, t);
|
|
3110
3104
|
return !r || r.type !== "comment";
|
|
3111
3105
|
}
|
|
3112
|
-
function
|
|
3113
|
-
let r =
|
|
3106
|
+
function Mn(e, t, n) {
|
|
3107
|
+
let r = A(n, t);
|
|
3114
3108
|
return !r || r.type !== "comment";
|
|
3115
3109
|
}
|
|
3116
|
-
function
|
|
3117
|
-
let r =
|
|
3118
|
-
return r ? r.type === "element" && (r.tagName === "address" || r.tagName === "article" || r.tagName === "aside" || r.tagName === "blockquote" || r.tagName === "details" || r.tagName === "div" || r.tagName === "dl" || r.tagName === "fieldset" || r.tagName === "figcaption" || r.tagName === "figure" || r.tagName === "footer" || r.tagName === "form" || r.tagName === "h1" || r.tagName === "h2" || r.tagName === "h3" || r.tagName === "h4" || r.tagName === "h5" || r.tagName === "h6" || r.tagName === "header" || r.tagName === "hgroup" || r.tagName === "hr" || r.tagName === "main" || r.tagName === "menu" || r.tagName === "nav" || r.tagName === "ol" || r.tagName === "p" || r.tagName === "pre" || r.tagName === "section" || r.tagName === "table" || r.tagName === "ul") : !n ||
|
|
3110
|
+
function Nn(e, t, n) {
|
|
3111
|
+
let r = A(n, t);
|
|
3112
|
+
return r ? r.type === "element" && (r.tagName === "address" || r.tagName === "article" || r.tagName === "aside" || r.tagName === "blockquote" || r.tagName === "details" || r.tagName === "div" || r.tagName === "dl" || r.tagName === "fieldset" || r.tagName === "figcaption" || r.tagName === "figure" || r.tagName === "footer" || r.tagName === "form" || r.tagName === "h1" || r.tagName === "h2" || r.tagName === "h3" || r.tagName === "h4" || r.tagName === "h5" || r.tagName === "h6" || r.tagName === "header" || r.tagName === "hgroup" || r.tagName === "hr" || r.tagName === "main" || r.tagName === "menu" || r.tagName === "nav" || r.tagName === "ol" || r.tagName === "p" || r.tagName === "pre" || r.tagName === "section" || r.tagName === "table" || r.tagName === "ul") : !n || n.type !== "element" || n.tagName !== "a" && n.tagName !== "audio" && n.tagName !== "del" && n.tagName !== "ins" && n.tagName !== "map" && n.tagName !== "noscript" && n.tagName !== "video";
|
|
3119
3113
|
}
|
|
3120
|
-
function
|
|
3121
|
-
let r =
|
|
3114
|
+
function Pn(e, t, n) {
|
|
3115
|
+
let r = A(n, t);
|
|
3122
3116
|
return !r || r.type === "element" && r.tagName === "li";
|
|
3123
3117
|
}
|
|
3124
|
-
function
|
|
3125
|
-
let r =
|
|
3118
|
+
function Fn(e, t, n) {
|
|
3119
|
+
let r = A(n, t);
|
|
3126
3120
|
return !!(r && r.type === "element" && (r.tagName === "dt" || r.tagName === "dd"));
|
|
3127
3121
|
}
|
|
3128
|
-
function
|
|
3129
|
-
let r =
|
|
3122
|
+
function In(e, t, n) {
|
|
3123
|
+
let r = A(n, t);
|
|
3130
3124
|
return !r || r.type === "element" && (r.tagName === "dt" || r.tagName === "dd");
|
|
3131
3125
|
}
|
|
3132
|
-
function
|
|
3133
|
-
let r =
|
|
3126
|
+
function Ln(e, t, n) {
|
|
3127
|
+
let r = A(n, t);
|
|
3134
3128
|
return !r || r.type === "element" && (r.tagName === "rp" || r.tagName === "rt");
|
|
3135
3129
|
}
|
|
3136
|
-
function
|
|
3137
|
-
let r =
|
|
3130
|
+
function Rn(e, t, n) {
|
|
3131
|
+
let r = A(n, t);
|
|
3138
3132
|
return !r || r.type === "element" && r.tagName === "optgroup";
|
|
3139
3133
|
}
|
|
3140
|
-
function
|
|
3141
|
-
let r =
|
|
3134
|
+
function zn(e, t, n) {
|
|
3135
|
+
let r = A(n, t);
|
|
3142
3136
|
return !r || r.type === "element" && (r.tagName === "option" || r.tagName === "optgroup");
|
|
3143
3137
|
}
|
|
3144
|
-
function
|
|
3145
|
-
let r =
|
|
3138
|
+
function Bn(e, t, n) {
|
|
3139
|
+
let r = A(n, t);
|
|
3146
3140
|
return !!(r && r.type === "element" && (r.tagName === "tbody" || r.tagName === "tfoot"));
|
|
3147
3141
|
}
|
|
3148
|
-
function
|
|
3149
|
-
let r =
|
|
3142
|
+
function Vn(e, t, n) {
|
|
3143
|
+
let r = A(n, t);
|
|
3150
3144
|
return !r || r.type === "element" && (r.tagName === "tbody" || r.tagName === "tfoot");
|
|
3151
3145
|
}
|
|
3152
|
-
function
|
|
3153
|
-
return !
|
|
3146
|
+
function Hn(e, t, n) {
|
|
3147
|
+
return !A(n, t);
|
|
3154
3148
|
}
|
|
3155
|
-
function
|
|
3156
|
-
let r =
|
|
3149
|
+
function Un(e, t, n) {
|
|
3150
|
+
let r = A(n, t);
|
|
3157
3151
|
return !r || r.type === "element" && r.tagName === "tr";
|
|
3158
3152
|
}
|
|
3159
|
-
function
|
|
3160
|
-
let r =
|
|
3153
|
+
function Wn(e, t, n) {
|
|
3154
|
+
let r = A(n, t);
|
|
3161
3155
|
return !r || r.type === "element" && (r.tagName === "td" || r.tagName === "th");
|
|
3162
3156
|
}
|
|
3163
3157
|
//#endregion
|
|
3164
3158
|
//#region ../../node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/opening.js
|
|
3165
|
-
var
|
|
3166
|
-
body:
|
|
3167
|
-
colgroup:
|
|
3168
|
-
head:
|
|
3169
|
-
html:
|
|
3170
|
-
tbody:
|
|
3159
|
+
var Gn = On({
|
|
3160
|
+
body: Jn,
|
|
3161
|
+
colgroup: Yn,
|
|
3162
|
+
head: qn,
|
|
3163
|
+
html: Kn,
|
|
3164
|
+
tbody: Xn
|
|
3171
3165
|
});
|
|
3172
|
-
function
|
|
3173
|
-
let t =
|
|
3166
|
+
function Kn(e) {
|
|
3167
|
+
let t = A(e, -1);
|
|
3174
3168
|
return !t || t.type !== "comment";
|
|
3175
3169
|
}
|
|
3176
|
-
function
|
|
3170
|
+
function qn(e) {
|
|
3177
3171
|
let t = /* @__PURE__ */ new Set();
|
|
3178
3172
|
for (let n of e.children) if (n.type === "element" && (n.tagName === "base" || n.tagName === "title")) {
|
|
3179
3173
|
if (t.has(n.tagName)) return !1;
|
|
@@ -3182,37 +3176,37 @@ function Zn(e) {
|
|
|
3182
3176
|
let n = e.children[0];
|
|
3183
3177
|
return !n || n.type === "element";
|
|
3184
3178
|
}
|
|
3185
|
-
function
|
|
3186
|
-
let t =
|
|
3187
|
-
return !t || t.type !== "comment" && !(t.type === "text" &&
|
|
3179
|
+
function Jn(e) {
|
|
3180
|
+
let t = A(e, -1, !0);
|
|
3181
|
+
return !t || t.type !== "comment" && !(t.type === "text" && Sn(t.value.charAt(0))) && (t.type !== "element" || t.tagName !== "meta" && t.tagName !== "link" && t.tagName !== "script" && t.tagName !== "style" && t.tagName !== "template");
|
|
3188
3182
|
}
|
|
3189
|
-
function
|
|
3190
|
-
let r =
|
|
3191
|
-
return n && r && r.type === "element" && r.tagName === "colgroup" &&
|
|
3183
|
+
function Yn(e, t, n) {
|
|
3184
|
+
let r = wn(n, t), i = A(e, -1, !0);
|
|
3185
|
+
return n && r && r.type === "element" && r.tagName === "colgroup" && kn(r, n.children.indexOf(r), n) ? !1 : !!(i && i.type === "element" && i.tagName === "col");
|
|
3192
3186
|
}
|
|
3193
|
-
function
|
|
3194
|
-
let r =
|
|
3195
|
-
return n && r && r.type === "element" && (r.tagName === "thead" || r.tagName === "tbody") &&
|
|
3187
|
+
function Xn(e, t, n) {
|
|
3188
|
+
let r = wn(n, t), i = A(e, -1);
|
|
3189
|
+
return n && r && r.type === "element" && (r.tagName === "thead" || r.tagName === "tbody") && kn(r, n.children.indexOf(r), n) ? !1 : !!(i && i.type === "element" && i.tagName === "tr");
|
|
3196
3190
|
}
|
|
3197
3191
|
//#endregion
|
|
3198
3192
|
//#region ../../node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/element.js
|
|
3199
|
-
var
|
|
3193
|
+
var Zn = {
|
|
3200
3194
|
name: [[" \n\f\r &/=>".split(""), " \n\f\r \"&'/=>`".split("")], ["\0 \n\f\r \"&'/<=>".split(""), "\0 \n\f\r \"&'/<=>`".split("")]],
|
|
3201
3195
|
unquoted: [[" \n\f\r &>".split(""), "\0 \n\f\r \"&'<=>`".split("")], ["\0 \n\f\r \"&'<=>`".split(""), "\0 \n\f\r \"&'<=>`".split("")]],
|
|
3202
3196
|
single: [["&'".split(""), "\"&'`".split("")], ["\0&'".split(""), "\0\"&'`".split("")]],
|
|
3203
3197
|
double: [["\"&".split(""), "\"&'`".split("")], ["\0\"&".split(""), "\0\"&'`".split("")]]
|
|
3204
3198
|
};
|
|
3205
|
-
function
|
|
3206
|
-
let i = r.schema, a = i.space
|
|
3207
|
-
i.space === "html" && e.tagName === "svg" && (r.schema =
|
|
3208
|
-
let l =
|
|
3209
|
-
return r.schema = i, u && (o = !1), (l || !a || !
|
|
3199
|
+
function Qn(e, t, n, r) {
|
|
3200
|
+
let i = r.schema, a = i.space !== "svg" && r.settings.omitOptionalTags, o = i.space === "svg" ? r.settings.closeEmptyElements : r.settings.voids.includes(e.tagName.toLowerCase()), s = [], c;
|
|
3201
|
+
i.space === "html" && e.tagName === "svg" && (r.schema = Ht);
|
|
3202
|
+
let l = $n(r, e.properties), u = r.all(i.space === "html" && e.tagName === "template" ? e.content : e);
|
|
3203
|
+
return r.schema = i, u && (o = !1), (l || !a || !Gn(e, t, n)) && (s.push("<", e.tagName, l ? " " + l : ""), o && (i.space === "svg" || r.settings.closeSelfClosing) && (c = l.charAt(l.length - 1), (!r.settings.tightSelfClosing || c === "/" || c && c !== "\"" && c !== "'") && s.push(" "), s.push("/")), s.push(">")), s.push(u), !o && (!a || !kn(e, t, n)) && s.push("</" + e.tagName + ">"), s.join("");
|
|
3210
3204
|
}
|
|
3211
|
-
function
|
|
3205
|
+
function $n(e, t) {
|
|
3212
3206
|
let n = [], r = -1, i;
|
|
3213
3207
|
if (t) {
|
|
3214
3208
|
for (i in t) if (t[i] !== null && t[i] !== void 0) {
|
|
3215
|
-
let r =
|
|
3209
|
+
let r = er(e, i, t[i]);
|
|
3216
3210
|
r && n.push(r);
|
|
3217
3211
|
}
|
|
3218
3212
|
}
|
|
@@ -3222,63 +3216,63 @@ function rr(e, t) {
|
|
|
3222
3216
|
}
|
|
3223
3217
|
return n.join("");
|
|
3224
3218
|
}
|
|
3225
|
-
function
|
|
3226
|
-
let r =
|
|
3219
|
+
function er(e, t, n) {
|
|
3220
|
+
let r = Rt(e.schema, t), i = e.settings.allowParseErrors && e.schema.space === "html" ? 0 : 1, a = +!e.settings.allowDangerousCharacters, o = e.quote, s;
|
|
3227
3221
|
if (r.overloadedBoolean && (n === r.attribute || n === "") ? n = !0 : (r.boolean || r.overloadedBoolean) && (typeof n != "string" || n === r.attribute || n === "") && (n = !!n), n == null || n === !1 || typeof n == "number" && Number.isNaN(n)) return "";
|
|
3228
|
-
let c =
|
|
3229
|
-
return n === !0 || (n = Array.isArray(n) ? (r.commaSeparated ?
|
|
3222
|
+
let c = k(r.attribute, Object.assign({}, e.settings.characterReferences, { subset: Zn.name[i][a] }));
|
|
3223
|
+
return n === !0 || (n = Array.isArray(n) ? (r.commaSeparated ? yn : bn)(n, { padLeft: !e.settings.tightCommaSeparatedLists }) : String(n), e.settings.collapseEmptyAttributes && !n) ? c : (e.settings.preferUnquoted && (s = k(n, Object.assign({}, e.settings.characterReferences, {
|
|
3230
3224
|
attribute: !0,
|
|
3231
|
-
subset:
|
|
3232
|
-
}))), s !== n && (e.settings.quoteSmart &&
|
|
3233
|
-
subset: (o === "'" ?
|
|
3225
|
+
subset: Zn.unquoted[i][a]
|
|
3226
|
+
}))), s !== n && (e.settings.quoteSmart && vn(n, o) > vn(n, e.alternative) && (o = e.alternative), s = o + k(n, Object.assign({}, e.settings.characterReferences, {
|
|
3227
|
+
subset: (o === "'" ? Zn.single : Zn.double)[i][a],
|
|
3234
3228
|
attribute: !0
|
|
3235
3229
|
})) + o), c + (s && "=" + s));
|
|
3236
3230
|
}
|
|
3237
3231
|
//#endregion
|
|
3238
3232
|
//#region ../../node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/text.js
|
|
3239
|
-
var
|
|
3240
|
-
function
|
|
3241
|
-
return n && n.type === "element" && (n.tagName === "script" || n.tagName === "style") ? e.value :
|
|
3233
|
+
var tr = ["<", "&"];
|
|
3234
|
+
function nr(e, t, n, r) {
|
|
3235
|
+
return n && n.type === "element" && (n.tagName === "script" || n.tagName === "style") ? e.value : k(e.value, Object.assign({}, r.settings.characterReferences, { subset: tr }));
|
|
3242
3236
|
}
|
|
3243
3237
|
//#endregion
|
|
3244
3238
|
//#region ../../node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/raw.js
|
|
3245
|
-
function
|
|
3246
|
-
return r.settings.allowDangerousHtml ? e.value :
|
|
3239
|
+
function rr(e, t, n, r) {
|
|
3240
|
+
return r.settings.allowDangerousHtml ? e.value : nr(e, t, n, r);
|
|
3247
3241
|
}
|
|
3248
3242
|
//#endregion
|
|
3249
3243
|
//#region ../../node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/root.js
|
|
3250
|
-
function
|
|
3244
|
+
function ir(e, t, n, r) {
|
|
3251
3245
|
return r.all(e);
|
|
3252
3246
|
}
|
|
3253
3247
|
//#endregion
|
|
3254
3248
|
//#region ../../node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/index.js
|
|
3255
|
-
var
|
|
3256
|
-
invalid:
|
|
3257
|
-
unknown:
|
|
3249
|
+
var ar = Wt("type", {
|
|
3250
|
+
invalid: or,
|
|
3251
|
+
unknown: sr,
|
|
3258
3252
|
handlers: {
|
|
3259
|
-
comment:
|
|
3260
|
-
doctype:
|
|
3261
|
-
element:
|
|
3262
|
-
raw:
|
|
3263
|
-
root:
|
|
3264
|
-
text:
|
|
3253
|
+
comment: gn,
|
|
3254
|
+
doctype: _n,
|
|
3255
|
+
element: Qn,
|
|
3256
|
+
raw: rr,
|
|
3257
|
+
root: ir,
|
|
3258
|
+
text: nr
|
|
3265
3259
|
}
|
|
3266
3260
|
});
|
|
3267
|
-
function
|
|
3261
|
+
function or(e) {
|
|
3268
3262
|
throw Error("Expected node, not `" + e + "`");
|
|
3269
3263
|
}
|
|
3270
|
-
function
|
|
3264
|
+
function sr(e) {
|
|
3271
3265
|
throw Error("Cannot compile unknown node `" + e.type + "`");
|
|
3272
3266
|
}
|
|
3273
3267
|
//#endregion
|
|
3274
3268
|
//#region ../../node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/index.js
|
|
3275
|
-
var
|
|
3276
|
-
function
|
|
3277
|
-
let n = t ||
|
|
3269
|
+
var cr = {}, lr = {}, ur = [];
|
|
3270
|
+
function dr(e, t) {
|
|
3271
|
+
let n = t || cr, r = n.quote || "\"", i = r === "\"" ? "'" : "\"";
|
|
3278
3272
|
if (r !== "\"" && r !== "'") throw Error("Invalid quote `" + r + "`, expected `'` or `\"`");
|
|
3279
3273
|
return {
|
|
3280
|
-
one:
|
|
3281
|
-
all:
|
|
3274
|
+
one: fr,
|
|
3275
|
+
all: pr,
|
|
3282
3276
|
settings: {
|
|
3283
3277
|
omitOptionalTags: n.omitOptionalTags || !1,
|
|
3284
3278
|
allowParseErrors: n.allowParseErrors || !1,
|
|
@@ -3293,12 +3287,12 @@ function hr(e, t) {
|
|
|
3293
3287
|
tightSelfClosing: n.tightSelfClosing || !1,
|
|
3294
3288
|
collapseEmptyAttributes: n.collapseEmptyAttributes || !1,
|
|
3295
3289
|
allowDangerousHtml: n.allowDangerousHtml || !1,
|
|
3296
|
-
voids: n.voids ||
|
|
3297
|
-
characterReferences: n.characterReferences ||
|
|
3290
|
+
voids: n.voids || _t,
|
|
3291
|
+
characterReferences: n.characterReferences || lr,
|
|
3298
3292
|
closeSelfClosing: n.closeSelfClosing || !1,
|
|
3299
3293
|
closeEmptyElements: n.closeEmptyElements || !1
|
|
3300
3294
|
},
|
|
3301
|
-
schema: n.space === "svg" ?
|
|
3295
|
+
schema: n.space === "svg" ? Ht : Vt,
|
|
3302
3296
|
quote: r,
|
|
3303
3297
|
alternative: i
|
|
3304
3298
|
}.one(Array.isArray(e) ? {
|
|
@@ -3306,31 +3300,31 @@ function hr(e, t) {
|
|
|
3306
3300
|
children: e
|
|
3307
3301
|
} : e, void 0, void 0);
|
|
3308
3302
|
}
|
|
3309
|
-
function
|
|
3310
|
-
return
|
|
3303
|
+
function fr(e, t, n) {
|
|
3304
|
+
return ar(e, t, n, this);
|
|
3311
3305
|
}
|
|
3312
|
-
function
|
|
3313
|
-
let t = [], n = e && e.children ||
|
|
3306
|
+
function pr(e) {
|
|
3307
|
+
let t = [], n = e && e.children || ur, r = -1;
|
|
3314
3308
|
for (; ++r < n.length;) t[r] = this.one(n[r], r, e);
|
|
3315
3309
|
return t.join("");
|
|
3316
3310
|
}
|
|
3317
3311
|
//#endregion
|
|
3318
3312
|
//#region ../../node_modules/.pnpm/@shikijs+core@3.23.0/node_modules/@shikijs/core/dist/index.mjs
|
|
3319
|
-
function
|
|
3313
|
+
function mr(e, t) {
|
|
3320
3314
|
let n = typeof e == "string" ? {} : { ...e.colorReplacements }, r = typeof e == "string" ? e : e.name;
|
|
3321
3315
|
for (let [e, i] of Object.entries(t?.colorReplacements || {})) typeof i == "string" ? n[e] = i : e === r && Object.assign(n, i);
|
|
3322
3316
|
return n;
|
|
3323
3317
|
}
|
|
3324
|
-
function
|
|
3318
|
+
function j(e, t) {
|
|
3325
3319
|
return e && (t?.[e?.toLowerCase()] || e);
|
|
3326
3320
|
}
|
|
3327
|
-
function
|
|
3321
|
+
function hr(e) {
|
|
3328
3322
|
return Array.isArray(e) ? e : [e];
|
|
3329
3323
|
}
|
|
3330
|
-
async function
|
|
3324
|
+
async function gr(e) {
|
|
3331
3325
|
return Promise.resolve(typeof e == "function" ? e() : e).then((e) => e.default || e);
|
|
3332
3326
|
}
|
|
3333
|
-
function
|
|
3327
|
+
function _r(e) {
|
|
3334
3328
|
return !e || [
|
|
3335
3329
|
"plaintext",
|
|
3336
3330
|
"txt",
|
|
@@ -3338,23 +3332,23 @@ function xr(e) {
|
|
|
3338
3332
|
"plain"
|
|
3339
3333
|
].includes(e);
|
|
3340
3334
|
}
|
|
3341
|
-
function
|
|
3342
|
-
return e === "ansi" ||
|
|
3335
|
+
function vr(e) {
|
|
3336
|
+
return e === "ansi" || _r(e);
|
|
3343
3337
|
}
|
|
3344
|
-
function
|
|
3338
|
+
function yr(e) {
|
|
3345
3339
|
return e === "none";
|
|
3346
3340
|
}
|
|
3347
|
-
function
|
|
3348
|
-
return
|
|
3341
|
+
function br(e) {
|
|
3342
|
+
return yr(e);
|
|
3349
3343
|
}
|
|
3350
|
-
function
|
|
3344
|
+
function xr(e, t) {
|
|
3351
3345
|
if (!t) return e;
|
|
3352
3346
|
e.properties ||= {}, e.properties.class ||= [], typeof e.properties.class == "string" && (e.properties.class = e.properties.class.split(/\s+/g)), Array.isArray(e.properties.class) || (e.properties.class = []);
|
|
3353
3347
|
let n = Array.isArray(t) ? t : t.split(/\s+/g);
|
|
3354
3348
|
for (let t of n) t && !e.properties.class.includes(t) && e.properties.class.push(t);
|
|
3355
3349
|
return e;
|
|
3356
3350
|
}
|
|
3357
|
-
function
|
|
3351
|
+
function Sr(e, t = !1) {
|
|
3358
3352
|
if (e.length === 0) return [["", 0]];
|
|
3359
3353
|
let n = e.split(/(\r?\n)/g), r = 0, i = [];
|
|
3360
3354
|
for (let e = 0; e < n.length; e += 2) {
|
|
@@ -3363,8 +3357,8 @@ function Er(e, t = !1) {
|
|
|
3363
3357
|
}
|
|
3364
3358
|
return i;
|
|
3365
3359
|
}
|
|
3366
|
-
function
|
|
3367
|
-
let t =
|
|
3360
|
+
function Cr(e) {
|
|
3361
|
+
let t = Sr(e, !0).map(([e]) => e);
|
|
3368
3362
|
function n(n) {
|
|
3369
3363
|
if (n === e.length) return {
|
|
3370
3364
|
line: t.length - 1,
|
|
@@ -3391,8 +3385,8 @@ function Dr(e) {
|
|
|
3391
3385
|
posToIndex: r
|
|
3392
3386
|
};
|
|
3393
3387
|
}
|
|
3394
|
-
var
|
|
3395
|
-
function
|
|
3388
|
+
var wr = "light-dark()", Tr = ["color", "background-color"];
|
|
3389
|
+
function Er(e, t) {
|
|
3396
3390
|
let n = 0, r = [];
|
|
3397
3391
|
for (let i of t) i > n && r.push({
|
|
3398
3392
|
...e,
|
|
@@ -3405,35 +3399,36 @@ function Ar(e, t) {
|
|
|
3405
3399
|
offset: e.offset + n
|
|
3406
3400
|
}), r;
|
|
3407
3401
|
}
|
|
3408
|
-
function
|
|
3402
|
+
function Dr(e, t) {
|
|
3409
3403
|
let n = Array.from(t instanceof Set ? t : new Set(t)).sort((e, t) => e - t);
|
|
3410
3404
|
return n.length ? e.map((e) => e.flatMap((e) => {
|
|
3411
3405
|
let t = n.filter((t) => e.offset < t && t < e.offset + e.content.length).map((t) => t - e.offset).sort((e, t) => e - t);
|
|
3412
|
-
return t.length ?
|
|
3406
|
+
return t.length ? Er(e, t) : e;
|
|
3413
3407
|
})) : e;
|
|
3414
3408
|
}
|
|
3415
|
-
function
|
|
3409
|
+
function Or(e, n, r, i, a = "css-vars") {
|
|
3416
3410
|
let o = {
|
|
3417
3411
|
content: e.content,
|
|
3418
3412
|
explanation: e.explanation,
|
|
3419
3413
|
offset: e.offset
|
|
3420
|
-
}, s = n.map((t) =>
|
|
3414
|
+
}, s = n.map((t) => kr(e.variants[t])), c = new Set(s.flatMap((e) => Object.keys(e))), l = {}, u = (e, t) => {
|
|
3421
3415
|
let i = t === "color" ? "" : t === "background-color" ? "-bg" : `-${t}`;
|
|
3422
3416
|
return r + n[e] + (t === "color" ? "" : i);
|
|
3423
3417
|
};
|
|
3424
3418
|
return s.forEach((e, r) => {
|
|
3425
3419
|
for (let o of c) {
|
|
3426
3420
|
let c = e[o] || "inherit";
|
|
3427
|
-
if (r === 0 && i &&
|
|
3421
|
+
if (r === 0 && i && Tr.includes(o)) if (i === wr && s.length > 1) {
|
|
3428
3422
|
let e = n.findIndex((e) => e === "light"), i = n.findIndex((e) => e === "dark");
|
|
3429
3423
|
if (e === -1 || i === -1) throw new t("When using `defaultColor: \"light-dark()\"`, you must provide both `light` and `dark` themes");
|
|
3430
|
-
|
|
3424
|
+
let d = s[e][o] || "inherit", f = s[i][o] || "inherit";
|
|
3425
|
+
l[o] = `light-dark(${d}, ${f})`, a === "css-vars" && (l[u(r, o)] = c);
|
|
3431
3426
|
} else l[o] = c;
|
|
3432
3427
|
else a === "css-vars" && (l[u(r, o)] = c);
|
|
3433
3428
|
}
|
|
3434
3429
|
}), o.htmlStyle = l, o;
|
|
3435
3430
|
}
|
|
3436
|
-
function
|
|
3431
|
+
function kr(e) {
|
|
3437
3432
|
let t = {};
|
|
3438
3433
|
if (e.color && (t.color = e.color), e.bgColor && (t["background-color"] = e.bgColor), e.fontStyle) {
|
|
3439
3434
|
e.fontStyle & v.Italic && (t["font-style"] = "italic"), e.fontStyle & v.Bold && (t["font-weight"] = "bold");
|
|
@@ -3442,17 +3437,17 @@ function Nr(e) {
|
|
|
3442
3437
|
}
|
|
3443
3438
|
return t;
|
|
3444
3439
|
}
|
|
3445
|
-
function
|
|
3440
|
+
function Ar(e) {
|
|
3446
3441
|
return typeof e == "string" ? e : Object.entries(e).map(([e, t]) => `${e}:${t}`).join(";");
|
|
3447
3442
|
}
|
|
3448
|
-
var
|
|
3449
|
-
function
|
|
3450
|
-
|
|
3443
|
+
var jr = /* @__PURE__ */ new WeakMap();
|
|
3444
|
+
function Mr(e, t) {
|
|
3445
|
+
jr.set(e, t);
|
|
3451
3446
|
}
|
|
3452
|
-
function
|
|
3453
|
-
return
|
|
3447
|
+
function Nr(e) {
|
|
3448
|
+
return jr.get(e);
|
|
3454
3449
|
}
|
|
3455
|
-
var
|
|
3450
|
+
var Pr = class e {
|
|
3456
3451
|
_stacks = {};
|
|
3457
3452
|
lang;
|
|
3458
3453
|
get themes() {
|
|
@@ -3465,7 +3460,7 @@ var Rr = class e {
|
|
|
3465
3460
|
return this._stacks[this.theme];
|
|
3466
3461
|
}
|
|
3467
3462
|
static initial(t, n) {
|
|
3468
|
-
return new e(Object.fromEntries(
|
|
3463
|
+
return new e(Object.fromEntries(hr(n).map((e) => [e, gt])), t);
|
|
3469
3464
|
}
|
|
3470
3465
|
constructor(...e) {
|
|
3471
3466
|
if (e.length === 2) {
|
|
@@ -3480,7 +3475,7 @@ var Rr = class e {
|
|
|
3480
3475
|
return this._stacks[e];
|
|
3481
3476
|
}
|
|
3482
3477
|
getScopes(e = this.theme) {
|
|
3483
|
-
return
|
|
3478
|
+
return Fr(this._stacks[e]);
|
|
3484
3479
|
}
|
|
3485
3480
|
toJSON() {
|
|
3486
3481
|
return {
|
|
@@ -3491,7 +3486,7 @@ var Rr = class e {
|
|
|
3491
3486
|
};
|
|
3492
3487
|
}
|
|
3493
3488
|
};
|
|
3494
|
-
function
|
|
3489
|
+
function Fr(e) {
|
|
3495
3490
|
let t = [], n = /* @__PURE__ */ new Set();
|
|
3496
3491
|
function r(e) {
|
|
3497
3492
|
if (n.has(e)) return;
|
|
@@ -3501,11 +3496,11 @@ function zr(e) {
|
|
|
3501
3496
|
}
|
|
3502
3497
|
return r(e), t;
|
|
3503
3498
|
}
|
|
3504
|
-
function
|
|
3505
|
-
if (!(e instanceof
|
|
3499
|
+
function Ir(e, n) {
|
|
3500
|
+
if (!(e instanceof Pr)) throw new t("Invalid grammar state");
|
|
3506
3501
|
return e.getInternalStack(n);
|
|
3507
3502
|
}
|
|
3508
|
-
function
|
|
3503
|
+
function Lr() {
|
|
3509
3504
|
let e = /* @__PURE__ */ new WeakMap();
|
|
3510
3505
|
function n(n) {
|
|
3511
3506
|
if (!e.has(n.meta)) {
|
|
@@ -3527,12 +3522,12 @@ function Vr() {
|
|
|
3527
3522
|
offset: i.posToIndex(e.line, r)
|
|
3528
3523
|
};
|
|
3529
3524
|
}
|
|
3530
|
-
}, i =
|
|
3525
|
+
}, i = Cr(n.source), a = (n.options.decorations || []).map((e) => ({
|
|
3531
3526
|
...e,
|
|
3532
3527
|
start: r(e.start),
|
|
3533
3528
|
end: r(e.end)
|
|
3534
3529
|
}));
|
|
3535
|
-
|
|
3530
|
+
Rr(a), e.set(n.meta, {
|
|
3536
3531
|
decorations: a,
|
|
3537
3532
|
converter: i,
|
|
3538
3533
|
source: n.source
|
|
@@ -3543,7 +3538,7 @@ function Vr() {
|
|
|
3543
3538
|
return {
|
|
3544
3539
|
name: "shiki:decorations",
|
|
3545
3540
|
tokens(e) {
|
|
3546
|
-
if (this.options.decorations?.length) return
|
|
3541
|
+
if (this.options.decorations?.length) return Dr(e, n(this).decorations.flatMap((e) => [e.start.offset, e.end.offset]));
|
|
3547
3542
|
},
|
|
3548
3543
|
code(e) {
|
|
3549
3544
|
if (!this.options.decorations?.length) return;
|
|
@@ -3551,7 +3546,7 @@ function Vr() {
|
|
|
3551
3546
|
if (i.length !== r.converter.lines.length) throw new t(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);
|
|
3552
3547
|
function a(e, n, r, a) {
|
|
3553
3548
|
let o = i[e], c = "", l = -1, u = -1;
|
|
3554
|
-
if (n === 0 && (l = 0), r === 0 && (u = 0), r === Infinity && (u = o.children.length), l === -1 || u === -1) for (let e = 0; e < o.children.length; e++) c +=
|
|
3549
|
+
if (n === 0 && (l = 0), r === 0 && (u = 0), r === Infinity && (u = o.children.length), l === -1 || u === -1) for (let e = 0; e < o.children.length; e++) c += zr(o.children[e]), l === -1 && c.length === n && (l = e + 1), u === -1 && c.length === r && (u = e + 1);
|
|
3555
3550
|
if (l === -1) throw new t(`Failed to find start index for decoration ${JSON.stringify(a.start)}`);
|
|
3556
3551
|
if (u === -1) throw new t(`Failed to find end index for decoration ${JSON.stringify(a.end)}`);
|
|
3557
3552
|
let d = o.children.slice(l, u);
|
|
@@ -3576,7 +3571,7 @@ function Vr() {
|
|
|
3576
3571
|
...e.properties,
|
|
3577
3572
|
...r,
|
|
3578
3573
|
class: e.properties.class
|
|
3579
|
-
}, t.properties?.class &&
|
|
3574
|
+
}, t.properties?.class && xr(e, t.properties.class), e = i(e, n) || e, e;
|
|
3580
3575
|
}
|
|
3581
3576
|
let c = [], l = r.decorations.sort((e, t) => t.start.offset - e.start.offset || e.end.offset - t.end.offset);
|
|
3582
3577
|
for (let e of l) {
|
|
@@ -3592,7 +3587,7 @@ function Vr() {
|
|
|
3592
3587
|
}
|
|
3593
3588
|
};
|
|
3594
3589
|
}
|
|
3595
|
-
function
|
|
3590
|
+
function Rr(e) {
|
|
3596
3591
|
for (let n = 0; n < e.length; n++) {
|
|
3597
3592
|
let r = e[n];
|
|
3598
3593
|
if (r.start.offset > r.end.offset) throw new t(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);
|
|
@@ -3605,20 +3600,20 @@ function Hr(e) {
|
|
|
3605
3600
|
}
|
|
3606
3601
|
}
|
|
3607
3602
|
}
|
|
3608
|
-
function
|
|
3609
|
-
return e.type === "text" ? e.value : e.type === "element" ? e.children.map(
|
|
3603
|
+
function zr(e) {
|
|
3604
|
+
return e.type === "text" ? e.value : e.type === "element" ? e.children.map(zr).join("") : "";
|
|
3610
3605
|
}
|
|
3611
|
-
var
|
|
3612
|
-
function
|
|
3613
|
-
let t =
|
|
3606
|
+
var Br = [/* @__PURE__ */ Lr()];
|
|
3607
|
+
function Vr(e) {
|
|
3608
|
+
let t = Hr(e.transformers || []);
|
|
3614
3609
|
return [
|
|
3615
3610
|
...t.pre,
|
|
3616
3611
|
...t.normal,
|
|
3617
3612
|
...t.post,
|
|
3618
|
-
...
|
|
3613
|
+
...Br
|
|
3619
3614
|
];
|
|
3620
3615
|
}
|
|
3621
|
-
function
|
|
3616
|
+
function Hr(e) {
|
|
3622
3617
|
let t = [], n = [], r = [];
|
|
3623
3618
|
for (let i of e) switch (i.enforce) {
|
|
3624
3619
|
case "pre":
|
|
@@ -3635,7 +3630,7 @@ function Kr(e) {
|
|
|
3635
3630
|
normal: r
|
|
3636
3631
|
};
|
|
3637
3632
|
}
|
|
3638
|
-
var
|
|
3633
|
+
var M = [
|
|
3639
3634
|
"black",
|
|
3640
3635
|
"red",
|
|
3641
3636
|
"green",
|
|
@@ -3652,7 +3647,7 @@ var A = [
|
|
|
3652
3647
|
"brightMagenta",
|
|
3653
3648
|
"brightCyan",
|
|
3654
3649
|
"brightWhite"
|
|
3655
|
-
],
|
|
3650
|
+
], Ur = {
|
|
3656
3651
|
1: "bold",
|
|
3657
3652
|
2: "dim",
|
|
3658
3653
|
3: "italic",
|
|
@@ -3661,7 +3656,7 @@ var A = [
|
|
|
3661
3656
|
8: "hidden",
|
|
3662
3657
|
9: "strikethrough"
|
|
3663
3658
|
};
|
|
3664
|
-
function
|
|
3659
|
+
function Wr(e, t) {
|
|
3665
3660
|
let n = e.indexOf("\x1B", t);
|
|
3666
3661
|
if (n !== -1 && e[n + 1] === "[") {
|
|
3667
3662
|
let t = e.indexOf("m", n);
|
|
@@ -3673,7 +3668,7 @@ function Jr(e, t) {
|
|
|
3673
3668
|
}
|
|
3674
3669
|
return { position: e.length };
|
|
3675
3670
|
}
|
|
3676
|
-
function
|
|
3671
|
+
function Gr(e) {
|
|
3677
3672
|
let t = e.shift();
|
|
3678
3673
|
if (t === "2") {
|
|
3679
3674
|
let t = e.splice(0, 3).map((e) => Number.parseInt(e));
|
|
@@ -3689,19 +3684,19 @@ function Yr(e) {
|
|
|
3689
3684
|
};
|
|
3690
3685
|
}
|
|
3691
3686
|
}
|
|
3692
|
-
function
|
|
3687
|
+
function Kr(e) {
|
|
3693
3688
|
let t = [];
|
|
3694
3689
|
for (; e.length > 0;) {
|
|
3695
3690
|
let n = e.shift();
|
|
3696
3691
|
if (!n) continue;
|
|
3697
3692
|
let r = Number.parseInt(n);
|
|
3698
3693
|
if (!Number.isNaN(r)) if (r === 0) t.push({ type: "resetAll" });
|
|
3699
|
-
else if (r <= 9)
|
|
3694
|
+
else if (r <= 9) Ur[r] && t.push({
|
|
3700
3695
|
type: "setDecoration",
|
|
3701
|
-
value:
|
|
3696
|
+
value: Ur[r]
|
|
3702
3697
|
});
|
|
3703
3698
|
else if (r <= 29) {
|
|
3704
|
-
let e =
|
|
3699
|
+
let e = Ur[r - 20];
|
|
3705
3700
|
e && (t.push({
|
|
3706
3701
|
type: "resetDecoration",
|
|
3707
3702
|
value: e
|
|
@@ -3713,11 +3708,11 @@ function Xr(e) {
|
|
|
3713
3708
|
type: "setForegroundColor",
|
|
3714
3709
|
value: {
|
|
3715
3710
|
type: "named",
|
|
3716
|
-
name:
|
|
3711
|
+
name: M[r - 30]
|
|
3717
3712
|
}
|
|
3718
3713
|
});
|
|
3719
3714
|
else if (r === 38) {
|
|
3720
|
-
let n =
|
|
3715
|
+
let n = Gr(e);
|
|
3721
3716
|
n && t.push({
|
|
3722
3717
|
type: "setForegroundColor",
|
|
3723
3718
|
value: n
|
|
@@ -3727,11 +3722,11 @@ function Xr(e) {
|
|
|
3727
3722
|
type: "setBackgroundColor",
|
|
3728
3723
|
value: {
|
|
3729
3724
|
type: "named",
|
|
3730
|
-
name:
|
|
3725
|
+
name: M[r - 40]
|
|
3731
3726
|
}
|
|
3732
3727
|
});
|
|
3733
3728
|
else if (r === 48) {
|
|
3734
|
-
let n =
|
|
3729
|
+
let n = Gr(e);
|
|
3735
3730
|
n && t.push({
|
|
3736
3731
|
type: "setBackgroundColor",
|
|
3737
3732
|
value: n
|
|
@@ -3746,31 +3741,31 @@ function Xr(e) {
|
|
|
3746
3741
|
type: "setForegroundColor",
|
|
3747
3742
|
value: {
|
|
3748
3743
|
type: "named",
|
|
3749
|
-
name:
|
|
3744
|
+
name: M[r - 90 + 8]
|
|
3750
3745
|
}
|
|
3751
3746
|
}) : r >= 100 && r <= 107 && t.push({
|
|
3752
3747
|
type: "setBackgroundColor",
|
|
3753
3748
|
value: {
|
|
3754
3749
|
type: "named",
|
|
3755
|
-
name:
|
|
3750
|
+
name: M[r - 100 + 8]
|
|
3756
3751
|
}
|
|
3757
3752
|
});
|
|
3758
3753
|
}
|
|
3759
3754
|
return t;
|
|
3760
3755
|
}
|
|
3761
|
-
function
|
|
3756
|
+
function qr() {
|
|
3762
3757
|
let e = null, t = null, n = /* @__PURE__ */ new Set();
|
|
3763
3758
|
return { parse(r) {
|
|
3764
3759
|
let i = [], a = 0;
|
|
3765
3760
|
do {
|
|
3766
|
-
let o =
|
|
3761
|
+
let o = Wr(r, a), s = o.sequence ? r.substring(a, o.startPosition) : r.substring(a);
|
|
3767
3762
|
if (s.length > 0 && i.push({
|
|
3768
3763
|
value: s,
|
|
3769
3764
|
foreground: e,
|
|
3770
3765
|
background: t,
|
|
3771
3766
|
decorations: new Set(n)
|
|
3772
3767
|
}), o.sequence) {
|
|
3773
|
-
let r =
|
|
3768
|
+
let r = Kr(o.sequence);
|
|
3774
3769
|
for (let i of r) i.type === "resetAll" ? (e = null, t = null, n.clear()) : i.type === "resetForegroundColor" ? e = null : i.type === "resetBackgroundColor" ? t = null : i.type === "resetDecoration" && n.delete(i.value);
|
|
3775
3770
|
for (let i of r) i.type === "setForegroundColor" ? e = i.value : i.type === "setBackgroundColor" ? t = i.value : i.type === "setDecoration" && n.add(i.value);
|
|
3776
3771
|
}
|
|
@@ -3779,7 +3774,7 @@ function Zr() {
|
|
|
3779
3774
|
return i;
|
|
3780
3775
|
} };
|
|
3781
3776
|
}
|
|
3782
|
-
var
|
|
3777
|
+
var Jr = {
|
|
3783
3778
|
black: "#000000",
|
|
3784
3779
|
red: "#bb0000",
|
|
3785
3780
|
green: "#00bb00",
|
|
@@ -3797,7 +3792,7 @@ var Qr = {
|
|
|
3797
3792
|
brightCyan: "#55ffff",
|
|
3798
3793
|
brightWhite: "#ffffff"
|
|
3799
3794
|
};
|
|
3800
|
-
function
|
|
3795
|
+
function Yr(e = Jr) {
|
|
3801
3796
|
function t(t) {
|
|
3802
3797
|
return e[t];
|
|
3803
3798
|
}
|
|
@@ -3808,7 +3803,7 @@ function $r(e = Qr) {
|
|
|
3808
3803
|
function i() {
|
|
3809
3804
|
if (r) return r;
|
|
3810
3805
|
r = [];
|
|
3811
|
-
for (let e = 0; e <
|
|
3806
|
+
for (let e = 0; e < M.length; e++) r.push(t(M[e]));
|
|
3812
3807
|
let e = [
|
|
3813
3808
|
0,
|
|
3814
3809
|
95,
|
|
@@ -3842,7 +3837,7 @@ function $r(e = Qr) {
|
|
|
3842
3837
|
}
|
|
3843
3838
|
return { value: o };
|
|
3844
3839
|
}
|
|
3845
|
-
var
|
|
3840
|
+
var Xr = {
|
|
3846
3841
|
black: "#000000",
|
|
3847
3842
|
red: "#cd3131",
|
|
3848
3843
|
green: "#0DBC79",
|
|
@@ -3860,14 +3855,14 @@ var ei = {
|
|
|
3860
3855
|
brightCyan: "#29B8DB",
|
|
3861
3856
|
brightWhite: "#FFFFFF"
|
|
3862
3857
|
};
|
|
3863
|
-
function
|
|
3864
|
-
let r =
|
|
3858
|
+
function Zr(e, t, n) {
|
|
3859
|
+
let r = mr(e, n), i = Sr(t), a = Yr(Object.fromEntries(M.map((t) => {
|
|
3865
3860
|
let n = `terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`;
|
|
3866
|
-
return [t, e.colors?.[n] ||
|
|
3867
|
-
}))), o =
|
|
3861
|
+
return [t, e.colors?.[n] || Xr[t]];
|
|
3862
|
+
}))), o = qr();
|
|
3868
3863
|
return i.map((t) => o.parse(t[0]).map((n) => {
|
|
3869
3864
|
let i, o;
|
|
3870
|
-
n.decorations.has("reverse") ? (i = n.background ? a.value(n.background) : e.bg, o = n.foreground ? a.value(n.foreground) : e.fg) : (i = n.foreground ? a.value(n.foreground) : e.fg, o = n.background ? a.value(n.background) : void 0), i =
|
|
3865
|
+
n.decorations.has("reverse") ? (i = n.background ? a.value(n.background) : e.bg, o = n.foreground ? a.value(n.foreground) : e.fg) : (i = n.foreground ? a.value(n.foreground) : e.fg, o = n.background ? a.value(n.background) : void 0), i = j(i, r), o = j(o, r), n.decorations.has("dim") && (i = Qr(i));
|
|
3871
3866
|
let s = v.None;
|
|
3872
3867
|
return n.decorations.has("bold") && (s |= v.Bold), n.decorations.has("italic") && (s |= v.Italic), n.decorations.has("underline") && (s |= v.Underline), n.decorations.has("strikethrough") && (s |= v.Strikethrough), {
|
|
3873
3868
|
content: n.value,
|
|
@@ -3878,7 +3873,7 @@ function ti(e, t, n) {
|
|
|
3878
3873
|
};
|
|
3879
3874
|
}));
|
|
3880
3875
|
}
|
|
3881
|
-
function
|
|
3876
|
+
function Qr(e) {
|
|
3882
3877
|
let t = e.match(/#([0-9a-f]{3,8})/i);
|
|
3883
3878
|
if (t) {
|
|
3884
3879
|
let e = t[1];
|
|
@@ -3897,35 +3892,35 @@ function ni(e) {
|
|
|
3897
3892
|
let n = e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);
|
|
3898
3893
|
return n ? `var(${n[1]}-dim)` : e;
|
|
3899
3894
|
}
|
|
3900
|
-
function
|
|
3895
|
+
function $r(e, n, r = {}) {
|
|
3901
3896
|
let { theme: i = e.getLoadedThemes()[0] } = r, a = e.resolveLangAlias(r.lang || "text");
|
|
3902
|
-
if (
|
|
3897
|
+
if (_r(a) || yr(i)) return Sr(n).map((e) => [{
|
|
3903
3898
|
content: e[0],
|
|
3904
3899
|
offset: e[1]
|
|
3905
3900
|
}]);
|
|
3906
3901
|
let { theme: o, colorMap: s } = e.setTheme(i);
|
|
3907
|
-
if (a === "ansi") return
|
|
3902
|
+
if (a === "ansi") return Zr(o, n, r);
|
|
3908
3903
|
let c = e.getLanguage(r.lang || "text");
|
|
3909
3904
|
if (r.grammarState) {
|
|
3910
3905
|
if (r.grammarState.lang !== c.name) throw new t(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${c.name}"`);
|
|
3911
3906
|
if (!r.grammarState.themes.includes(o.name)) throw new t(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${o.name}"`);
|
|
3912
3907
|
}
|
|
3913
|
-
return
|
|
3908
|
+
return ti(n, c, o, s, r);
|
|
3914
3909
|
}
|
|
3915
|
-
function
|
|
3916
|
-
if (e.length === 2) return
|
|
3910
|
+
function ei(...e) {
|
|
3911
|
+
if (e.length === 2) return Nr(e[1]);
|
|
3917
3912
|
let [n, r, i = {}] = e, { lang: a = "text", theme: o = n.getLoadedThemes()[0] } = i;
|
|
3918
|
-
if (
|
|
3913
|
+
if (_r(a) || yr(o)) throw new t("Plain language does not have grammar state");
|
|
3919
3914
|
if (a === "ansi") throw new t("ANSI language does not have grammar state");
|
|
3920
3915
|
let { theme: s, colorMap: c } = n.setTheme(o), l = n.getLanguage(a);
|
|
3921
|
-
return new
|
|
3916
|
+
return new Pr(ni(r, l, s, c, i).stateStack, l.name, s.name);
|
|
3922
3917
|
}
|
|
3923
|
-
function
|
|
3924
|
-
let a =
|
|
3925
|
-
return
|
|
3918
|
+
function ti(e, t, n, r, i) {
|
|
3919
|
+
let a = ni(e, t, n, r, i), o = new Pr(a.stateStack, t.name, n.name);
|
|
3920
|
+
return Mr(a.tokens, o), a.tokens;
|
|
3926
3921
|
}
|
|
3927
|
-
function
|
|
3928
|
-
let a =
|
|
3922
|
+
function ni(e, t, n, r, i) {
|
|
3923
|
+
let a = mr(n, i), { tokenizeMaxLineLength: o = 0, tokenizeTimeLimit: s = 500 } = i, c = Sr(e), l = i.grammarState ? Ir(i.grammarState, n.name) ?? gt : i.grammarContextCode == null ? gt : ni(i.grammarContextCode, t, n, r, {
|
|
3929
3924
|
...i,
|
|
3930
3925
|
grammarState: void 0,
|
|
3931
3926
|
grammarContextCode: void 0
|
|
@@ -3951,7 +3946,7 @@ function oi(e, t, n, r, i) {
|
|
|
3951
3946
|
for (let e = 0; e < ee; e++) {
|
|
3952
3947
|
let t = _.tokens[2 * e], o = e + 1 < ee ? _.tokens[2 * e + 2] : f.length;
|
|
3953
3948
|
if (t === o) continue;
|
|
3954
|
-
let s = _.tokens[2 * e + 1], c =
|
|
3949
|
+
let s = _.tokens[2 * e + 1], c = j(r[y.getForeground(s)], a), l = y.getFontStyle(s), d = {
|
|
3955
3950
|
content: f.substring(t, o),
|
|
3956
3951
|
offset: p + t,
|
|
3957
3952
|
color: c,
|
|
@@ -3981,7 +3976,7 @@ function oi(e, t, n, r, i) {
|
|
|
3981
3976
|
let t = h[g], n = f.substring(t.startIndex, t.endIndex);
|
|
3982
3977
|
r += n.length, d.explanation.push({
|
|
3983
3978
|
content: n,
|
|
3984
|
-
scopes: i.includeExplanation === "scopeName" ?
|
|
3979
|
+
scopes: i.includeExplanation === "scopeName" ? ri(t.scopes) : ii(e, t.scopes)
|
|
3985
3980
|
}), g += 1;
|
|
3986
3981
|
}
|
|
3987
3982
|
}
|
|
@@ -3994,52 +3989,52 @@ function oi(e, t, n, r, i) {
|
|
|
3994
3989
|
stateStack: l
|
|
3995
3990
|
};
|
|
3996
3991
|
}
|
|
3997
|
-
function
|
|
3992
|
+
function ri(e) {
|
|
3998
3993
|
return e.map((e) => ({ scopeName: e }));
|
|
3999
3994
|
}
|
|
4000
|
-
function
|
|
3995
|
+
function ii(e, t) {
|
|
4001
3996
|
let n = [];
|
|
4002
3997
|
for (let r = 0, i = t.length; r < i; r++) {
|
|
4003
3998
|
let i = t[r];
|
|
4004
3999
|
n[r] = {
|
|
4005
4000
|
scopeName: i,
|
|
4006
|
-
themeMatches:
|
|
4001
|
+
themeMatches: si(e, i, t.slice(0, r))
|
|
4007
4002
|
};
|
|
4008
4003
|
}
|
|
4009
4004
|
return n;
|
|
4010
4005
|
}
|
|
4011
|
-
function
|
|
4006
|
+
function ai(e, t) {
|
|
4012
4007
|
return e === t || t.substring(0, e.length) === e && t[e.length] === ".";
|
|
4013
4008
|
}
|
|
4014
|
-
function
|
|
4015
|
-
if (!
|
|
4009
|
+
function oi(e, t, n) {
|
|
4010
|
+
if (!ai(e[e.length - 1], t)) return !1;
|
|
4016
4011
|
let r = e.length - 2, i = n.length - 1;
|
|
4017
|
-
for (; r >= 0 && i >= 0;)
|
|
4012
|
+
for (; r >= 0 && i >= 0;) ai(e[r], n[i]) && --r, --i;
|
|
4018
4013
|
return r === -1;
|
|
4019
4014
|
}
|
|
4020
|
-
function
|
|
4015
|
+
function si(e, t, n) {
|
|
4021
4016
|
let r = [];
|
|
4022
|
-
for (let { selectors: i, settings: a } of e) for (let e of i) if (
|
|
4017
|
+
for (let { selectors: i, settings: a } of e) for (let e of i) if (oi(e, t, n)) {
|
|
4023
4018
|
r.push(a);
|
|
4024
4019
|
break;
|
|
4025
4020
|
}
|
|
4026
4021
|
return r;
|
|
4027
4022
|
}
|
|
4028
|
-
function
|
|
4023
|
+
function ci(e, t, n) {
|
|
4029
4024
|
let r = Object.entries(n.themes).filter((e) => e[1]).map((e) => ({
|
|
4030
4025
|
color: e[0],
|
|
4031
4026
|
theme: e[1]
|
|
4032
4027
|
})), i = r.map((r) => {
|
|
4033
|
-
let i =
|
|
4028
|
+
let i = $r(e, t, {
|
|
4034
4029
|
...n,
|
|
4035
4030
|
theme: r.theme
|
|
4036
4031
|
});
|
|
4037
4032
|
return {
|
|
4038
4033
|
tokens: i,
|
|
4039
|
-
state:
|
|
4034
|
+
state: Nr(i),
|
|
4040
4035
|
theme: typeof r.theme == "string" ? r.theme : r.theme.name
|
|
4041
4036
|
};
|
|
4042
|
-
}), a =
|
|
4037
|
+
}), a = li(...i.map((e) => e.tokens)), o = a[0].map((e, t) => e.map((e, i) => {
|
|
4043
4038
|
let o = {
|
|
4044
4039
|
content: e.content,
|
|
4045
4040
|
variants: {},
|
|
@@ -4049,10 +4044,10 @@ function fi(e, t, n) {
|
|
|
4049
4044
|
let { content: a, explanation: s, offset: c, ...l } = e[t][i];
|
|
4050
4045
|
o.variants[r[n].color] = l;
|
|
4051
4046
|
}), o;
|
|
4052
|
-
})), s = i[0].state ? new
|
|
4053
|
-
return s &&
|
|
4047
|
+
})), s = i[0].state ? new Pr(Object.fromEntries(i.map((e) => [e.theme, e.state?.getInternalStack(e.theme)])), i[0].state.lang) : void 0;
|
|
4048
|
+
return s && Mr(o, s), o;
|
|
4054
4049
|
}
|
|
4055
|
-
function
|
|
4050
|
+
function li(...e) {
|
|
4056
4051
|
let t = e.map(() => []), n = e.length;
|
|
4057
4052
|
for (let r = 0; r < e[0].length; r++) {
|
|
4058
4053
|
let i = e.map((e) => e[r]), a = t.map(() => []);
|
|
@@ -4075,25 +4070,25 @@ function pi(...e) {
|
|
|
4075
4070
|
}
|
|
4076
4071
|
return t;
|
|
4077
4072
|
}
|
|
4078
|
-
function
|
|
4073
|
+
function ui(e, n, r) {
|
|
4079
4074
|
let i, a, o, s, c, l;
|
|
4080
4075
|
if ("themes" in r) {
|
|
4081
4076
|
let { defaultColor: u = "light", cssVariablePrefix: d = "--shiki-", colorsRendering: f = "css-vars" } = r, p = Object.entries(r.themes).filter((e) => e[1]).map((e) => ({
|
|
4082
4077
|
color: e[0],
|
|
4083
4078
|
theme: e[1]
|
|
4084
|
-
})).sort((e, t) => e.color === u ? -1 : t.color === u
|
|
4079
|
+
})).sort((e, t) => e.color === u ? -1 : +(t.color === u));
|
|
4085
4080
|
if (p.length === 0) throw new t("`themes` option must not be empty");
|
|
4086
|
-
let m =
|
|
4087
|
-
if (l =
|
|
4081
|
+
let m = ci(e, n, r);
|
|
4082
|
+
if (l = Nr(m), u && wr !== u && !p.find((e) => e.color === u)) throw new t(`\`themes\` option must contain the defaultColor key \`${u}\``);
|
|
4088
4083
|
let h = p.map((t) => e.getTheme(t.theme)), g = p.map((e) => e.color);
|
|
4089
|
-
o = m.map((e) => e.map((e) =>
|
|
4090
|
-
let _ = p.map((e) =>
|
|
4091
|
-
a =
|
|
4084
|
+
o = m.map((e) => e.map((e) => Or(e, g, d, u, f))), l && Mr(o, l);
|
|
4085
|
+
let _ = p.map((e) => mr(e.theme, r));
|
|
4086
|
+
a = di(p, h, _, d, u, "fg", f), i = di(p, h, _, d, u, "bg", f), s = `shiki-themes ${h.map((e) => e.name).join(" ")}`, c = u ? void 0 : [a, i].join(";");
|
|
4092
4087
|
} else if ("theme" in r) {
|
|
4093
|
-
let t =
|
|
4094
|
-
o =
|
|
4088
|
+
let t = mr(r.theme, r);
|
|
4089
|
+
o = $r(e, n, r);
|
|
4095
4090
|
let c = e.getTheme(r.theme);
|
|
4096
|
-
i =
|
|
4091
|
+
i = j(c.bg, t), a = j(c.fg, t), s = c.name, l = Nr(o);
|
|
4097
4092
|
} else throw new t("Invalid options, either `theme` or `themes` must be provided");
|
|
4098
4093
|
return {
|
|
4099
4094
|
tokens: o,
|
|
@@ -4104,38 +4099,38 @@ function mi(e, n, r) {
|
|
|
4104
4099
|
grammarState: l
|
|
4105
4100
|
};
|
|
4106
4101
|
}
|
|
4107
|
-
function
|
|
4102
|
+
function di(e, n, r, i, a, o, s) {
|
|
4108
4103
|
return e.map((c, l) => {
|
|
4109
|
-
let u =
|
|
4104
|
+
let u = j(n[l][o], r[l]) || "inherit", d = `${i + c.color}${o === "bg" ? "-bg" : ""}:${u}`;
|
|
4110
4105
|
if (l === 0 && a) {
|
|
4111
|
-
if (a ===
|
|
4106
|
+
if (a === wr && e.length > 1) {
|
|
4112
4107
|
let i = e.findIndex((e) => e.color === "light"), a = e.findIndex((e) => e.color === "dark");
|
|
4113
4108
|
if (i === -1 || a === -1) throw new t("When using `defaultColor: \"light-dark()\"`, you must provide both `light` and `dark` themes");
|
|
4114
|
-
return `light-dark(${
|
|
4109
|
+
return `light-dark(${j(n[i][o], r[i]) || "inherit"}, ${j(n[a][o], r[a]) || "inherit"});${d}`;
|
|
4115
4110
|
}
|
|
4116
4111
|
return u;
|
|
4117
4112
|
}
|
|
4118
4113
|
return s === "css-vars" ? d : null;
|
|
4119
4114
|
}).filter((e) => !!e).join(";");
|
|
4120
4115
|
}
|
|
4121
|
-
function
|
|
4116
|
+
function fi(e, t, n, r = {
|
|
4122
4117
|
meta: {},
|
|
4123
4118
|
options: n,
|
|
4124
|
-
codeToHast: (t, n) =>
|
|
4125
|
-
codeToTokens: (t, n) =>
|
|
4119
|
+
codeToHast: (t, n) => fi(e, t, n),
|
|
4120
|
+
codeToTokens: (t, n) => ui(e, t, n)
|
|
4126
4121
|
}) {
|
|
4127
4122
|
let i = t;
|
|
4128
|
-
for (let e of
|
|
4129
|
-
let { tokens: a, fg: o, bg: s, themeName: c, rootStyle: l, grammarState: u } =
|
|
4130
|
-
d === !0 ? a =
|
|
4123
|
+
for (let e of Vr(n)) i = e.preprocess?.call(r, i, n) || i;
|
|
4124
|
+
let { tokens: a, fg: o, bg: s, themeName: c, rootStyle: l, grammarState: u } = ui(e, i, n), { mergeWhitespaces: d = !0, mergeSameStyleTokens: f = !1 } = n;
|
|
4125
|
+
d === !0 ? a = mi(a) : d === "never" && (a = hi(a)), f && (a = gi(a));
|
|
4131
4126
|
let p = {
|
|
4132
4127
|
...r,
|
|
4133
4128
|
get source() {
|
|
4134
4129
|
return i;
|
|
4135
4130
|
}
|
|
4136
4131
|
};
|
|
4137
|
-
for (let e of
|
|
4138
|
-
return
|
|
4132
|
+
for (let e of Vr(n)) a = e.tokens?.call(p, a) || a;
|
|
4133
|
+
return pi(a, {
|
|
4139
4134
|
...n,
|
|
4140
4135
|
fg: o,
|
|
4141
4136
|
bg: s,
|
|
@@ -4143,8 +4138,8 @@ function gi(e, t, n, r = {
|
|
|
4143
4138
|
rootStyle: n.rootStyle === !1 ? !1 : n.rootStyle ?? l
|
|
4144
4139
|
}, p, u);
|
|
4145
4140
|
}
|
|
4146
|
-
function
|
|
4147
|
-
let i =
|
|
4141
|
+
function pi(e, t, n, r = Nr(e)) {
|
|
4142
|
+
let i = Vr(t), a = [], o = {
|
|
4148
4143
|
type: "root",
|
|
4149
4144
|
children: []
|
|
4150
4145
|
}, { structure: s = "classic", tabindex: c = "0" } = t, l = { class: `shiki ${t.themeName || ""}` };
|
|
@@ -4164,7 +4159,7 @@ function _i(e, t, n, r = Lr(e)) {
|
|
|
4164
4159
|
}, f = [], p = {
|
|
4165
4160
|
...n,
|
|
4166
4161
|
structure: s,
|
|
4167
|
-
addClassToHast:
|
|
4162
|
+
addClassToHast: xr,
|
|
4168
4163
|
get source() {
|
|
4169
4164
|
return n.source;
|
|
4170
4165
|
},
|
|
@@ -4212,7 +4207,7 @@ function _i(e, t, n, r = Lr(e)) {
|
|
|
4212
4207
|
type: "text",
|
|
4213
4208
|
value: a.content
|
|
4214
4209
|
}]
|
|
4215
|
-
}, c =
|
|
4210
|
+
}, c = Ar(a.htmlStyle || kr(a));
|
|
4216
4211
|
c && (e.properties.style = c);
|
|
4217
4212
|
for (let o of i) e = o?.span?.call(p, e, t + 1, r, n, a) || e;
|
|
4218
4213
|
s === "inline" ? o.children.push(e) : s === "classic" && n.children.push(e), r += a.content.length;
|
|
@@ -4261,9 +4256,9 @@ function _i(e, t, n, r = Lr(e)) {
|
|
|
4261
4256
|
}
|
|
4262
4257
|
let m = o;
|
|
4263
4258
|
for (let e of i) m = e?.root?.call(p, m) || m;
|
|
4264
|
-
return r &&
|
|
4259
|
+
return r && Mr(m, r), m;
|
|
4265
4260
|
}
|
|
4266
|
-
function
|
|
4261
|
+
function mi(e) {
|
|
4267
4262
|
return e.map((e) => {
|
|
4268
4263
|
let t = [], n = "", r;
|
|
4269
4264
|
return e.forEach((i, a) => {
|
|
@@ -4279,7 +4274,7 @@ function vi(e) {
|
|
|
4279
4274
|
}), t;
|
|
4280
4275
|
});
|
|
4281
4276
|
}
|
|
4282
|
-
function
|
|
4277
|
+
function hi(e) {
|
|
4283
4278
|
return e.map((e) => e.flatMap((e) => {
|
|
4284
4279
|
if (e.content.match(/^\s+$/)) return e;
|
|
4285
4280
|
let t = e.content.match(/^(\s*)(.*?)(\s*)$/);
|
|
@@ -4300,7 +4295,7 @@ function yi(e) {
|
|
|
4300
4295
|
}), a;
|
|
4301
4296
|
}));
|
|
4302
4297
|
}
|
|
4303
|
-
function
|
|
4298
|
+
function gi(e) {
|
|
4304
4299
|
return e.map((e) => {
|
|
4305
4300
|
let t = [];
|
|
4306
4301
|
for (let n of e) {
|
|
@@ -4308,38 +4303,38 @@ function bi(e) {
|
|
|
4308
4303
|
t.push({ ...n });
|
|
4309
4304
|
continue;
|
|
4310
4305
|
}
|
|
4311
|
-
let e = t[t.length - 1], r =
|
|
4306
|
+
let e = t[t.length - 1], r = Ar(e.htmlStyle || kr(e)), i = Ar(n.htmlStyle || kr(n)), a = e.fontStyle && (e.fontStyle & v.Underline || e.fontStyle & v.Strikethrough), o = n.fontStyle && (n.fontStyle & v.Underline || n.fontStyle & v.Strikethrough);
|
|
4312
4307
|
!a && !o && r === i ? e.content += n.content : t.push({ ...n });
|
|
4313
4308
|
}
|
|
4314
4309
|
return t;
|
|
4315
4310
|
});
|
|
4316
4311
|
}
|
|
4317
|
-
var
|
|
4318
|
-
function
|
|
4312
|
+
var _i = dr;
|
|
4313
|
+
function vi(e, t, n) {
|
|
4319
4314
|
let r = {
|
|
4320
4315
|
meta: {},
|
|
4321
4316
|
options: n,
|
|
4322
|
-
codeToHast: (t, n) =>
|
|
4323
|
-
codeToTokens: (t, n) =>
|
|
4324
|
-
}, i =
|
|
4325
|
-
for (let e of
|
|
4317
|
+
codeToHast: (t, n) => fi(e, t, n),
|
|
4318
|
+
codeToTokens: (t, n) => ui(e, t, n)
|
|
4319
|
+
}, i = _i(fi(e, t, n, r));
|
|
4320
|
+
for (let e of Vr(n)) i = e.postprocess?.call(r, i, n) || i;
|
|
4326
4321
|
return i;
|
|
4327
4322
|
}
|
|
4328
|
-
var
|
|
4323
|
+
var yi = {
|
|
4329
4324
|
light: "#333333",
|
|
4330
4325
|
dark: "#bbbbbb"
|
|
4331
|
-
},
|
|
4326
|
+
}, bi = {
|
|
4332
4327
|
light: "#fffffe",
|
|
4333
4328
|
dark: "#1e1e1e"
|
|
4334
|
-
},
|
|
4335
|
-
function
|
|
4336
|
-
if (e?.[
|
|
4329
|
+
}, xi = "__shiki_resolved";
|
|
4330
|
+
function Si(e) {
|
|
4331
|
+
if (e?.[xi]) return e;
|
|
4337
4332
|
let t = { ...e };
|
|
4338
4333
|
t.tokenColors && !t.settings && (t.settings = t.tokenColors, delete t.tokenColors), t.type ||= "dark", t.colorReplacements = { ...t.colorReplacements }, t.settings ||= [];
|
|
4339
4334
|
let { bg: n, fg: r } = t;
|
|
4340
4335
|
if (!n || !r) {
|
|
4341
4336
|
let e = t.settings ? t.settings.find((e) => !e.name && !e.scope) : void 0;
|
|
4342
|
-
e?.settings?.foreground && (r = e.settings.foreground), e?.settings?.background && (n = e.settings.background), !r && t?.colors?.["editor.foreground"] && (r = t.colors["editor.foreground"]), !n && t?.colors?.["editor.background"] && (n = t.colors["editor.background"]), r ||= t.type === "light" ?
|
|
4337
|
+
e?.settings?.foreground && (r = e.settings.foreground), e?.settings?.background && (n = e.settings.background), !r && t?.colors?.["editor.foreground"] && (r = t.colors["editor.foreground"]), !n && t?.colors?.["editor.background"] && (n = t.colors["editor.background"]), r ||= t.type === "light" ? yi.light : yi.dark, n ||= t.type === "light" ? bi.light : bi.dark, t.fg = r, t.bg = n;
|
|
4343
4338
|
}
|
|
4344
4339
|
t.settings[0] && t.settings[0].settings && !t.settings[0].scope || t.settings.unshift({ settings: {
|
|
4345
4340
|
foreground: t.fg,
|
|
@@ -4373,42 +4368,39 @@ function Ei(e) {
|
|
|
4373
4368
|
let n = o(t.colors[e]);
|
|
4374
4369
|
t.colorReplacements[n] = t.colors[e], t.colors[e] = n;
|
|
4375
4370
|
}
|
|
4376
|
-
return Object.defineProperty(t,
|
|
4371
|
+
return Object.defineProperty(t, xi, {
|
|
4377
4372
|
enumerable: !1,
|
|
4378
4373
|
writable: !1,
|
|
4379
4374
|
value: !0
|
|
4380
4375
|
}), t;
|
|
4381
4376
|
}
|
|
4382
|
-
async function
|
|
4383
|
-
return Array.from(new Set((await Promise.all(e.filter((e) => !
|
|
4377
|
+
async function Ci(e) {
|
|
4378
|
+
return Array.from(new Set((await Promise.all(e.filter((e) => !vr(e)).map(async (e) => await gr(e).then((e) => Array.isArray(e) ? e : [e])))).flat()));
|
|
4384
4379
|
}
|
|
4385
|
-
async function
|
|
4386
|
-
return (await Promise.all(e.map(async (e) =>
|
|
4380
|
+
async function wi(e) {
|
|
4381
|
+
return (await Promise.all(e.map(async (e) => br(e) ? null : Si(await gr(e))))).filter((e) => !!e);
|
|
4387
4382
|
}
|
|
4388
|
-
var
|
|
4389
|
-
function
|
|
4390
|
-
|
|
4391
|
-
if (Ai) throw Error(`[SHIKI DEPRECATE]: ${e}`);
|
|
4392
|
-
console.trace(`[SHIKI DEPRECATE]: ${e}`);
|
|
4393
|
-
}
|
|
4383
|
+
var Ti = 3;
|
|
4384
|
+
function Ei(e, t = 3) {
|
|
4385
|
+
Ti && (typeof Ti == "number" && t > Ti || console.trace(`[SHIKI DEPRECATE]: ${e}`));
|
|
4394
4386
|
}
|
|
4395
|
-
var
|
|
4387
|
+
var N = class extends Error {
|
|
4396
4388
|
constructor(e) {
|
|
4397
4389
|
super(e), this.name = "ShikiError";
|
|
4398
4390
|
}
|
|
4399
4391
|
};
|
|
4400
|
-
function
|
|
4392
|
+
function Di(e, t) {
|
|
4401
4393
|
if (!t) return e;
|
|
4402
4394
|
if (t[e]) {
|
|
4403
4395
|
let n = /* @__PURE__ */ new Set([e]);
|
|
4404
4396
|
for (; t[e];) {
|
|
4405
|
-
if (e = t[e], n.has(e)) throw new
|
|
4397
|
+
if (e = t[e], n.has(e)) throw new N(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);
|
|
4406
4398
|
n.add(e);
|
|
4407
4399
|
}
|
|
4408
4400
|
}
|
|
4409
4401
|
return e;
|
|
4410
4402
|
}
|
|
4411
|
-
var
|
|
4403
|
+
var Oi = class extends ht {
|
|
4412
4404
|
constructor(e, t, n, r = {}) {
|
|
4413
4405
|
super(e), this._resolver = e, this._themes = t, this._langs = n, this._alias = r, this._themes.map((e) => this.loadTheme(e)), this.loadLanguages(this._langs);
|
|
4414
4406
|
}
|
|
@@ -4423,7 +4415,7 @@ var Ni = class extends _t {
|
|
|
4423
4415
|
return typeof e == "string" ? this._resolvedThemes.get(e) : this.loadTheme(e);
|
|
4424
4416
|
}
|
|
4425
4417
|
loadTheme(e) {
|
|
4426
|
-
let t =
|
|
4418
|
+
let t = Si(e);
|
|
4427
4419
|
return t.name && (this._resolvedThemes.set(t.name, t), this._loadedThemesCache = null), t;
|
|
4428
4420
|
}
|
|
4429
4421
|
getLoadedThemes() {
|
|
@@ -4434,7 +4426,7 @@ var Ni = class extends _t {
|
|
|
4434
4426
|
t || (t = h.createFromRawTheme(e), this._textmateThemeCache.set(e, t)), this._syncRegistry.setTheme(t);
|
|
4435
4427
|
}
|
|
4436
4428
|
getGrammar(e) {
|
|
4437
|
-
return e =
|
|
4429
|
+
return e = Di(e, this._alias), this._resolvedGrammars.get(e);
|
|
4438
4430
|
}
|
|
4439
4431
|
loadLanguage(e) {
|
|
4440
4432
|
if (this.getGrammar(e.name)) return;
|
|
@@ -4458,7 +4450,7 @@ var Ni = class extends _t {
|
|
|
4458
4450
|
let t = Array.from(this._langGraph.entries()), n = t.filter(([e, t]) => !t);
|
|
4459
4451
|
if (n.length) {
|
|
4460
4452
|
let e = t.filter(([e, t]) => t ? (t.embeddedLanguages || t.embeddedLangs)?.some((e) => n.map(([e]) => e).includes(e)) : !1).filter((e) => !n.includes(e));
|
|
4461
|
-
throw new
|
|
4453
|
+
throw new N(`Missing languages ${n.map(([e]) => `\`${e}\``).join(", ")}, required by ${e.map(([e]) => `\`${e}\``).join(", ")}`);
|
|
4462
4454
|
}
|
|
4463
4455
|
for (let [e, n] of t) this._resolver.addLanguage(n);
|
|
4464
4456
|
for (let [e, n] of t) this.loadLanguage(n);
|
|
@@ -4471,7 +4463,7 @@ var Ni = class extends _t {
|
|
|
4471
4463
|
let t = e.embeddedLanguages ?? e.embeddedLangs;
|
|
4472
4464
|
if (t) for (let e of t) this._langGraph.set(e, this._langMap.get(e));
|
|
4473
4465
|
}
|
|
4474
|
-
},
|
|
4466
|
+
}, ki = class {
|
|
4475
4467
|
_langs = /* @__PURE__ */ new Map();
|
|
4476
4468
|
_scopeToLang = /* @__PURE__ */ new Map();
|
|
4477
4469
|
_injections = /* @__PURE__ */ new Map();
|
|
@@ -4506,19 +4498,19 @@ var Ni = class extends _t {
|
|
|
4506
4498
|
}
|
|
4507
4499
|
return n;
|
|
4508
4500
|
}
|
|
4509
|
-
},
|
|
4510
|
-
function
|
|
4511
|
-
|
|
4501
|
+
}, Ai = 0;
|
|
4502
|
+
function ji(e) {
|
|
4503
|
+
Ai += 1, e.warnings !== !1 && Ai >= 10 && Ai % 10 == 0 && console.warn(`[Shiki] ${Ai} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);
|
|
4512
4504
|
let t = !1;
|
|
4513
|
-
if (!e.engine) throw new
|
|
4514
|
-
let n = (e.langs || []).flat(1), r = (e.themes || []).flat(1).map(
|
|
4505
|
+
if (!e.engine) throw new N("`engine` option is required for synchronous mode");
|
|
4506
|
+
let n = (e.langs || []).flat(1), r = (e.themes || []).flat(1).map(Si), i = new Oi(new ki(e.engine, n), r, n, e.langAlias), a;
|
|
4515
4507
|
function o(t) {
|
|
4516
|
-
return
|
|
4508
|
+
return Di(t, e.langAlias);
|
|
4517
4509
|
}
|
|
4518
4510
|
function s(e) {
|
|
4519
4511
|
g();
|
|
4520
4512
|
let t = i.getGrammar(typeof e == "string" ? e : e.name);
|
|
4521
|
-
if (!t) throw new
|
|
4513
|
+
if (!t) throw new N(`Language \`${e}\` not found, you may need to load it first`);
|
|
4522
4514
|
return t;
|
|
4523
4515
|
}
|
|
4524
4516
|
function c(e) {
|
|
@@ -4531,7 +4523,7 @@ function Ii(e) {
|
|
|
4531
4523
|
};
|
|
4532
4524
|
g();
|
|
4533
4525
|
let t = i.getTheme(e);
|
|
4534
|
-
if (!t) throw new
|
|
4526
|
+
if (!t) throw new N(`Theme \`${e}\` not found, you may need to load it first`);
|
|
4535
4527
|
return t;
|
|
4536
4528
|
}
|
|
4537
4529
|
function l(e) {
|
|
@@ -4552,20 +4544,20 @@ function Ii(e) {
|
|
|
4552
4544
|
g(), i.loadLanguages(e.flat(1));
|
|
4553
4545
|
}
|
|
4554
4546
|
async function p(...e) {
|
|
4555
|
-
return f(await
|
|
4547
|
+
return f(await Ci(e));
|
|
4556
4548
|
}
|
|
4557
4549
|
function m(...e) {
|
|
4558
4550
|
g();
|
|
4559
4551
|
for (let t of e.flat(1)) i.loadTheme(t);
|
|
4560
4552
|
}
|
|
4561
4553
|
async function h(...e) {
|
|
4562
|
-
return g(), m(await
|
|
4554
|
+
return g(), m(await wi(e));
|
|
4563
4555
|
}
|
|
4564
4556
|
function g() {
|
|
4565
|
-
if (t) throw new
|
|
4557
|
+
if (t) throw new N("Shiki instance has been disposed");
|
|
4566
4558
|
}
|
|
4567
4559
|
function _() {
|
|
4568
|
-
t || (t = !0, i.dispose(), --
|
|
4560
|
+
t || (t = !0, i.dispose(), --Ai);
|
|
4569
4561
|
}
|
|
4570
4562
|
return {
|
|
4571
4563
|
setTheme: l,
|
|
@@ -4582,29 +4574,29 @@ function Ii(e) {
|
|
|
4582
4574
|
[Symbol.dispose]: _
|
|
4583
4575
|
};
|
|
4584
4576
|
}
|
|
4585
|
-
async function
|
|
4586
|
-
e.engine ||
|
|
4577
|
+
async function Mi(e) {
|
|
4578
|
+
e.engine || Ei("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");
|
|
4587
4579
|
let [t, n, r] = await Promise.all([
|
|
4588
|
-
|
|
4589
|
-
|
|
4580
|
+
wi(e.themes || []),
|
|
4581
|
+
Ci(e.langs || []),
|
|
4590
4582
|
e.engine
|
|
4591
4583
|
]);
|
|
4592
|
-
return
|
|
4584
|
+
return ji({
|
|
4593
4585
|
...e,
|
|
4594
4586
|
themes: t,
|
|
4595
4587
|
langs: n,
|
|
4596
4588
|
engine: r
|
|
4597
4589
|
});
|
|
4598
4590
|
}
|
|
4599
|
-
async function
|
|
4600
|
-
let t = await
|
|
4591
|
+
async function Ni(e) {
|
|
4592
|
+
let t = await Mi(e);
|
|
4601
4593
|
return {
|
|
4602
|
-
getLastGrammarState: (...e) =>
|
|
4603
|
-
codeToTokensBase: (e, n) =>
|
|
4604
|
-
codeToTokensWithThemes: (e, n) =>
|
|
4605
|
-
codeToTokens: (e, n) =>
|
|
4606
|
-
codeToHast: (e, n) =>
|
|
4607
|
-
codeToHtml: (e, n) =>
|
|
4594
|
+
getLastGrammarState: (...e) => ei(t, ...e),
|
|
4595
|
+
codeToTokensBase: (e, n) => $r(t, e, n),
|
|
4596
|
+
codeToTokensWithThemes: (e, n) => ci(t, e, n),
|
|
4597
|
+
codeToTokens: (e, n) => ui(t, e, n),
|
|
4598
|
+
codeToHast: (e, n) => fi(t, e, n),
|
|
4599
|
+
codeToHtml: (e, n) => vi(t, e, n),
|
|
4608
4600
|
getBundledLanguages: () => ({}),
|
|
4609
4601
|
getBundledThemes: () => ({}),
|
|
4610
4602
|
...t,
|
|
@@ -4613,17 +4605,17 @@ async function Ri(e) {
|
|
|
4613
4605
|
}
|
|
4614
4606
|
//#endregion
|
|
4615
4607
|
//#region ../../node_modules/.pnpm/@shikijs+themes@3.23.0/node_modules/@shikijs/themes/dist/vitesse-dark.mjs
|
|
4616
|
-
var zi = Object.freeze(JSON.parse("{\"colors\":{\"activityBar.activeBorder\":\"#4d9375\",\"activityBar.background\":\"#121212\",\"activityBar.border\":\"#191919\",\"activityBar.foreground\":\"#dbd7caee\",\"activityBar.inactiveForeground\":\"#dedcd550\",\"activityBarBadge.background\":\"#bfbaaa\",\"activityBarBadge.foreground\":\"#121212\",\"badge.background\":\"#dedcd590\",\"badge.foreground\":\"#121212\",\"breadcrumb.activeSelectionForeground\":\"#eeeeee18\",\"breadcrumb.background\":\"#181818\",\"breadcrumb.focusForeground\":\"#dbd7caee\",\"breadcrumb.foreground\":\"#959da5\",\"breadcrumbPicker.background\":\"#121212\",\"button.background\":\"#4d9375\",\"button.foreground\":\"#121212\",\"button.hoverBackground\":\"#4d9375\",\"checkbox.background\":\"#181818\",\"checkbox.border\":\"#2f363d\",\"debugToolBar.background\":\"#121212\",\"descriptionForeground\":\"#dedcd590\",\"diffEditor.insertedTextBackground\":\"#4d937550\",\"diffEditor.removedTextBackground\":\"#ab595950\",\"dropdown.background\":\"#121212\",\"dropdown.border\":\"#191919\",\"dropdown.foreground\":\"#dbd7caee\",\"dropdown.listBackground\":\"#181818\",\"editor.background\":\"#121212\",\"editor.findMatchBackground\":\"#e6cc7722\",\"editor.findMatchHighlightBackground\":\"#e6cc7744\",\"editor.focusedStackFrameHighlightBackground\":\"#b808\",\"editor.foldBackground\":\"#eeeeee10\",\"editor.foreground\":\"#dbd7caee\",\"editor.inactiveSelectionBackground\":\"#eeeeee10\",\"editor.lineHighlightBackground\":\"#181818\",\"editor.selectionBackground\":\"#eeeeee18\",\"editor.selectionHighlightBackground\":\"#eeeeee10\",\"editor.stackFrameHighlightBackground\":\"#a707\",\"editor.wordHighlightBackground\":\"#1c6b4805\",\"editor.wordHighlightStrongBackground\":\"#1c6b4810\",\"editorBracketHighlight.foreground1\":\"#5eaab5\",\"editorBracketHighlight.foreground2\":\"#4d9375\",\"editorBracketHighlight.foreground3\":\"#d4976c\",\"editorBracketHighlight.foreground4\":\"#d9739f\",\"editorBracketHighlight.foreground5\":\"#e6cc77\",\"editorBracketHighlight.foreground6\":\"#6394bf\",\"editorBracketMatch.background\":\"#4d937520\",\"editorError.foreground\":\"#cb7676\",\"editorGroup.border\":\"#191919\",\"editorGroupHeader.tabsBackground\":\"#121212\",\"editorGroupHeader.tabsBorder\":\"#191919\",\"editorGutter.addedBackground\":\"#4d9375\",\"editorGutter.commentRangeForeground\":\"#dedcd550\",\"editorGutter.deletedBackground\":\"#cb7676\",\"editorGutter.foldingControlForeground\":\"#dedcd590\",\"editorGutter.modifiedBackground\":\"#6394bf\",\"editorHint.foreground\":\"#4d9375\",\"editorIndentGuide.activeBackground\":\"#ffffff30\",\"editorIndentGuide.background\":\"#ffffff15\",\"editorInfo.foreground\":\"#6394bf\",\"editorInlayHint.background\":\"#181818\",\"editorInlayHint.foreground\":\"#666666\",\"editorLineNumber.activeForeground\":\"#bfbaaa\",\"editorLineNumber.foreground\":\"#dedcd550\",\"editorOverviewRuler.border\":\"#111\",\"editorStickyScroll.background\":\"#181818\",\"editorStickyScrollHover.background\":\"#181818\",\"editorWarning.foreground\":\"#d4976c\",\"editorWhitespace.foreground\":\"#ffffff15\",\"editorWidget.background\":\"#121212\",\"errorForeground\":\"#cb7676\",\"focusBorder\":\"#00000000\",\"foreground\":\"#dbd7caee\",\"gitDecoration.addedResourceForeground\":\"#4d9375\",\"gitDecoration.conflictingResourceForeground\":\"#d4976c\",\"gitDecoration.deletedResourceForeground\":\"#cb7676\",\"gitDecoration.ignoredResourceForeground\":\"#dedcd550\",\"gitDecoration.modifiedResourceForeground\":\"#6394bf\",\"gitDecoration.submoduleResourceForeground\":\"#dedcd590\",\"gitDecoration.untrackedResourceForeground\":\"#5eaab5\",\"input.background\":\"#181818\",\"input.border\":\"#191919\",\"input.foreground\":\"#dbd7caee\",\"input.placeholderForeground\":\"#dedcd590\",\"inputOption.activeBackground\":\"#dedcd550\",\"list.activeSelectionBackground\":\"#181818\",\"list.activeSelectionForeground\":\"#dbd7caee\",\"list.focusBackground\":\"#181818\",\"list.highlightForeground\":\"#4d9375\",\"list.hoverBackground\":\"#181818\",\"list.hoverForeground\":\"#dbd7caee\",\"list.inactiveFocusBackground\":\"#121212\",\"list.inactiveSelectionBackground\":\"#181818\",\"list.inactiveSelectionForeground\":\"#dbd7caee\",\"menu.separatorBackground\":\"#191919\",\"notificationCenterHeader.background\":\"#121212\",\"notificationCenterHeader.foreground\":\"#959da5\",\"notifications.background\":\"#121212\",\"notifications.border\":\"#191919\",\"notifications.foreground\":\"#dbd7caee\",\"notificationsErrorIcon.foreground\":\"#cb7676\",\"notificationsInfoIcon.foreground\":\"#6394bf\",\"notificationsWarningIcon.foreground\":\"#d4976c\",\"panel.background\":\"#121212\",\"panel.border\":\"#191919\",\"panelInput.border\":\"#2f363d\",\"panelTitle.activeBorder\":\"#4d9375\",\"panelTitle.activeForeground\":\"#dbd7caee\",\"panelTitle.inactiveForeground\":\"#959da5\",\"peekViewEditor.background\":\"#121212\",\"peekViewEditor.matchHighlightBackground\":\"#ffd33d33\",\"peekViewResult.background\":\"#121212\",\"peekViewResult.matchHighlightBackground\":\"#ffd33d33\",\"pickerGroup.border\":\"#191919\",\"pickerGroup.foreground\":\"#dbd7caee\",\"problemsErrorIcon.foreground\":\"#cb7676\",\"problemsInfoIcon.foreground\":\"#6394bf\",\"problemsWarningIcon.foreground\":\"#d4976c\",\"progressBar.background\":\"#4d9375\",\"quickInput.background\":\"#121212\",\"quickInput.foreground\":\"#dbd7caee\",\"quickInputList.focusBackground\":\"#181818\",\"scrollbar.shadow\":\"#0000\",\"scrollbarSlider.activeBackground\":\"#dedcd550\",\"scrollbarSlider.background\":\"#dedcd510\",\"scrollbarSlider.hoverBackground\":\"#dedcd550\",\"settings.headerForeground\":\"#dbd7caee\",\"settings.modifiedItemIndicator\":\"#4d9375\",\"sideBar.background\":\"#121212\",\"sideBar.border\":\"#191919\",\"sideBar.foreground\":\"#bfbaaa\",\"sideBarSectionHeader.background\":\"#121212\",\"sideBarSectionHeader.border\":\"#191919\",\"sideBarSectionHeader.foreground\":\"#dbd7caee\",\"sideBarTitle.foreground\":\"#dbd7caee\",\"statusBar.background\":\"#121212\",\"statusBar.border\":\"#191919\",\"statusBar.debuggingBackground\":\"#181818\",\"statusBar.debuggingForeground\":\"#bfbaaa\",\"statusBar.foreground\":\"#bfbaaa\",\"statusBar.noFolderBackground\":\"#121212\",\"statusBarItem.prominentBackground\":\"#181818\",\"tab.activeBackground\":\"#121212\",\"tab.activeBorder\":\"#191919\",\"tab.activeBorderTop\":\"#dedcd590\",\"tab.activeForeground\":\"#dbd7caee\",\"tab.border\":\"#191919\",\"tab.hoverBackground\":\"#181818\",\"tab.inactiveBackground\":\"#121212\",\"tab.inactiveForeground\":\"#959da5\",\"tab.unfocusedActiveBorder\":\"#191919\",\"tab.unfocusedActiveBorderTop\":\"#191919\",\"tab.unfocusedHoverBackground\":\"#121212\",\"terminal.ansiBlack\":\"#393a34\",\"terminal.ansiBlue\":\"#6394bf\",\"terminal.ansiBrightBlack\":\"#777777\",\"terminal.ansiBrightBlue\":\"#6394bf\",\"terminal.ansiBrightCyan\":\"#5eaab5\",\"terminal.ansiBrightGreen\":\"#4d9375\",\"terminal.ansiBrightMagenta\":\"#d9739f\",\"terminal.ansiBrightRed\":\"#cb7676\",\"terminal.ansiBrightWhite\":\"#ffffff\",\"terminal.ansiBrightYellow\":\"#e6cc77\",\"terminal.ansiCyan\":\"#5eaab5\",\"terminal.ansiGreen\":\"#4d9375\",\"terminal.ansiMagenta\":\"#d9739f\",\"terminal.ansiRed\":\"#cb7676\",\"terminal.ansiWhite\":\"#dbd7ca\",\"terminal.ansiYellow\":\"#e6cc77\",\"terminal.foreground\":\"#dbd7caee\",\"terminal.selectionBackground\":\"#eeeeee18\",\"textBlockQuote.background\":\"#121212\",\"textBlockQuote.border\":\"#191919\",\"textCodeBlock.background\":\"#121212\",\"textLink.activeForeground\":\"#4d9375\",\"textLink.foreground\":\"#4d9375\",\"textPreformat.foreground\":\"#d1d5da\",\"textSeparator.foreground\":\"#586069\",\"titleBar.activeBackground\":\"#121212\",\"titleBar.activeForeground\":\"#bfbaaa\",\"titleBar.border\":\"#181818\",\"titleBar.inactiveBackground\":\"#121212\",\"titleBar.inactiveForeground\":\"#959da5\",\"tree.indentGuidesStroke\":\"#2f363d\",\"welcomePage.buttonBackground\":\"#2f363d\",\"welcomePage.buttonHoverBackground\":\"#444d56\"},\"displayName\":\"Vitesse Dark\",\"name\":\"vitesse-dark\",\"semanticHighlighting\":true,\"semanticTokenColors\":{\"class\":\"#6872ab\",\"interface\":\"#5d99a9\",\"namespace\":\"#db889a\",\"property\":\"#b8a965\",\"type\":\"#5d99a9\"},\"tokenColors\":[{\"scope\":[\"comment\",\"punctuation.definition.comment\",\"string.comment\"],\"settings\":{\"foreground\":\"#758575dd\"}},{\"scope\":[\"delimiter.bracket\",\"delimiter\",\"invalid.illegal.character-not-allowed-here.html\",\"keyword.operator.rest\",\"keyword.operator.spread\",\"keyword.operator.type.annotation\",\"keyword.operator.relational\",\"keyword.operator.assignment\",\"keyword.operator.type\",\"meta.brace\",\"meta.tag.block.any.html\",\"meta.tag.inline.any.html\",\"meta.tag.structure.input.void.html\",\"meta.type.annotation\",\"meta.embedded.block.github-actions-expression\",\"storage.type.function.arrow\",\"meta.objectliteral.ts\",\"punctuation\",\"punctuation.definition.string.begin.html.vue\",\"punctuation.definition.string.end.html.vue\"],\"settings\":{\"foreground\":\"#666666\"}},{\"scope\":[\"constant\",\"entity.name.constant\",\"variable.language\",\"meta.definition.variable\"],\"settings\":{\"foreground\":\"#c99076\"}},{\"scope\":[\"entity\",\"entity.name\"],\"settings\":{\"foreground\":\"#80a665\"}},{\"scope\":\"variable.parameter.function\",\"settings\":{\"foreground\":\"#dbd7caee\"}},{\"scope\":[\"entity.name.tag\",\"tag.html\"],\"settings\":{\"foreground\":\"#4d9375\"}},{\"scope\":\"entity.name.function\",\"settings\":{\"foreground\":\"#80a665\"}},{\"scope\":[\"keyword\",\"storage.type.class.jsdoc\",\"punctuation.definition.template-expression\"],\"settings\":{\"foreground\":\"#4d9375\"}},{\"scope\":[\"storage\",\"storage.type\",\"support.type.builtin\",\"constant.language.undefined\",\"constant.language.null\",\"constant.language.import-export-all.ts\"],\"settings\":{\"foreground\":\"#cb7676\"}},{\"scope\":[\"text.html.derivative\",\"storage.modifier.package\",\"storage.modifier.import\",\"storage.type.java\"],\"settings\":{\"foreground\":\"#dbd7caee\"}},{\"scope\":[\"string\",\"string punctuation.section.embedded source\",\"attribute.value\"],\"settings\":{\"foreground\":\"#c98a7d\"}},{\"scope\":[\"punctuation.definition.string\"],\"settings\":{\"foreground\":\"#c98a7d77\"}},{\"scope\":[\"punctuation.support.type.property-name\"],\"settings\":{\"foreground\":\"#b8a96577\"}},{\"scope\":\"support\",\"settings\":{\"foreground\":\"#b8a965\"}},{\"scope\":[\"property\",\"meta.property-name\",\"meta.object-literal.key\",\"entity.name.tag.yaml\",\"attribute.name\"],\"settings\":{\"foreground\":\"#b8a965\"}},{\"scope\":[\"entity.other.attribute-name\",\"invalid.deprecated.entity.other.attribute-name.html\"],\"settings\":{\"foreground\":\"#bd976a\"}},{\"scope\":[\"variable\",\"identifier\"],\"settings\":{\"foreground\":\"#bd976a\"}},{\"scope\":[\"support.type.primitive\",\"entity.name.type\"],\"settings\":{\"foreground\":\"#5DA994\"}},{\"scope\":\"namespace\",\"settings\":{\"foreground\":\"#db889a\"}},{\"scope\":[\"keyword.operator\",\"keyword.operator.assignment.compound\",\"meta.var.expr.ts\"],\"settings\":{\"foreground\":\"#cb7676\"}},{\"scope\":\"invalid.broken\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#fdaeb7\"}},{\"scope\":\"invalid.deprecated\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#fdaeb7\"}},{\"scope\":\"invalid.illegal\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#fdaeb7\"}},{\"scope\":\"invalid.unimplemented\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#fdaeb7\"}},{\"scope\":\"carriage-return\",\"settings\":{\"background\":\"#f97583\",\"content\":\"^M\",\"fontStyle\":\"italic underline\",\"foreground\":\"#24292e\"}},{\"scope\":\"message.error\",\"settings\":{\"foreground\":\"#fdaeb7\"}},{\"scope\":\"string variable\",\"settings\":{\"foreground\":\"#c98a7d\"}},{\"scope\":[\"source.regexp\",\"string.regexp\"],\"settings\":{\"foreground\":\"#c4704f\"}},{\"scope\":[\"string.regexp.character-class\",\"string.regexp constant.character.escape\",\"string.regexp source.ruby.embedded\",\"string.regexp string.regexp.arbitrary-repitition\"],\"settings\":{\"foreground\":\"#c98a7d\"}},{\"scope\":\"string.regexp constant.character.escape\",\"settings\":{\"foreground\":\"#e6cc77\"}},{\"scope\":[\"support.constant\"],\"settings\":{\"foreground\":\"#c99076\"}},{\"scope\":[\"keyword.operator.quantifier.regexp\",\"constant.numeric\",\"number\"],\"settings\":{\"foreground\":\"#4C9A91\"}},{\"scope\":[\"keyword.other.unit\"],\"settings\":{\"foreground\":\"#cb7676\"}},{\"scope\":[\"constant.language.boolean\",\"constant.language\"],\"settings\":{\"foreground\":\"#4d9375\"}},{\"scope\":\"meta.module-reference\",\"settings\":{\"foreground\":\"#4d9375\"}},{\"scope\":\"punctuation.definition.list.begin.markdown\",\"settings\":{\"foreground\":\"#d4976c\"}},{\"scope\":[\"markup.heading\",\"markup.heading entity.name\"],\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#4d9375\"}},{\"scope\":\"markup.quote\",\"settings\":{\"foreground\":\"#5d99a9\"}},{\"scope\":\"markup.italic\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#dbd7caee\"}},{\"scope\":\"markup.bold\",\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#dbd7caee\"}},{\"scope\":\"markup.raw\",\"settings\":{\"foreground\":\"#4d9375\"}},{\"scope\":[\"markup.deleted\",\"meta.diff.header.from-file\",\"punctuation.definition.deleted\"],\"settings\":{\"background\":\"#86181d\",\"foreground\":\"#fdaeb7\"}},{\"scope\":[\"markup.inserted\",\"meta.diff.header.to-file\",\"punctuation.definition.inserted\"],\"settings\":{\"background\":\"#144620\",\"foreground\":\"#85e89d\"}},{\"scope\":[\"markup.changed\",\"punctuation.definition.changed\"],\"settings\":{\"background\":\"#c24e00\",\"foreground\":\"#ffab70\"}},{\"scope\":[\"markup.ignored\",\"markup.untracked\"],\"settings\":{\"background\":\"#79b8ff\",\"foreground\":\"#2f363d\"}},{\"scope\":\"meta.diff.range\",\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#b392f0\"}},{\"scope\":\"meta.diff.header\",\"settings\":{\"foreground\":\"#79b8ff\"}},{\"scope\":\"meta.separator\",\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#79b8ff\"}},{\"scope\":\"meta.output\",\"settings\":{\"foreground\":\"#79b8ff\"}},{\"scope\":[\"brackethighlighter.tag\",\"brackethighlighter.curly\",\"brackethighlighter.round\",\"brackethighlighter.square\",\"brackethighlighter.angle\",\"brackethighlighter.quote\"],\"settings\":{\"foreground\":\"#d1d5da\"}},{\"scope\":\"brackethighlighter.unmatched\",\"settings\":{\"foreground\":\"#fdaeb7\"}},{\"scope\":[\"constant.other.reference.link\",\"string.other.link\",\"punctuation.definition.string.begin.markdown\",\"punctuation.definition.string.end.markdown\"],\"settings\":{\"foreground\":\"#c98a7d\"}},{\"scope\":[\"markup.underline.link.markdown\",\"markup.underline.link.image.markdown\"],\"settings\":{\"fontStyle\":\"underline\",\"foreground\":\"#dedcd590\"}},{\"scope\":[\"type.identifier\",\"constant.other.character-class.regexp\"],\"settings\":{\"foreground\":\"#6872ab\"}},{\"scope\":[\"entity.other.attribute-name.html.vue\"],\"settings\":{\"foreground\":\"#80a665\"}},{\"scope\":[\"invalid.illegal.unrecognized-tag.html\"],\"settings\":{\"fontStyle\":\"normal\"}}],\"type\":\"dark\"}")), Bi = Object.freeze(JSON.parse("{\"colors\":{\"activityBar.activeBorder\":\"#1c6b48\",\"activityBar.background\":\"#ffffff\",\"activityBar.border\":\"#f0f0f0\",\"activityBar.foreground\":\"#393a34\",\"activityBar.inactiveForeground\":\"#393a3450\",\"activityBarBadge.background\":\"#4e4f47\",\"activityBarBadge.foreground\":\"#ffffff\",\"badge.background\":\"#393a3490\",\"badge.foreground\":\"#ffffff\",\"breadcrumb.activeSelectionForeground\":\"#22222218\",\"breadcrumb.background\":\"#f7f7f7\",\"breadcrumb.focusForeground\":\"#393a34\",\"breadcrumb.foreground\":\"#6a737d\",\"breadcrumbPicker.background\":\"#ffffff\",\"button.background\":\"#1c6b48\",\"button.foreground\":\"#ffffff\",\"button.hoverBackground\":\"#1c6b48\",\"checkbox.background\":\"#f7f7f7\",\"checkbox.border\":\"#d1d5da\",\"debugToolBar.background\":\"#ffffff\",\"descriptionForeground\":\"#393a3490\",\"diffEditor.insertedTextBackground\":\"#1c6b4830\",\"diffEditor.removedTextBackground\":\"#ab595940\",\"dropdown.background\":\"#ffffff\",\"dropdown.border\":\"#f0f0f0\",\"dropdown.foreground\":\"#393a34\",\"dropdown.listBackground\":\"#f7f7f7\",\"editor.background\":\"#ffffff\",\"editor.findMatchBackground\":\"#e6cc7744\",\"editor.findMatchHighlightBackground\":\"#e6cc7766\",\"editor.focusedStackFrameHighlightBackground\":\"#fff5b1\",\"editor.foldBackground\":\"#22222210\",\"editor.foreground\":\"#393a34\",\"editor.inactiveSelectionBackground\":\"#22222210\",\"editor.lineHighlightBackground\":\"#f7f7f7\",\"editor.selectionBackground\":\"#22222218\",\"editor.selectionHighlightBackground\":\"#22222210\",\"editor.stackFrameHighlightBackground\":\"#fffbdd\",\"editor.wordHighlightBackground\":\"#1c6b4805\",\"editor.wordHighlightStrongBackground\":\"#1c6b4810\",\"editorBracketHighlight.foreground1\":\"#2993a3\",\"editorBracketHighlight.foreground2\":\"#1e754f\",\"editorBracketHighlight.foreground3\":\"#a65e2b\",\"editorBracketHighlight.foreground4\":\"#a13865\",\"editorBracketHighlight.foreground5\":\"#bda437\",\"editorBracketHighlight.foreground6\":\"#296aa3\",\"editorBracketMatch.background\":\"#1c6b4820\",\"editorError.foreground\":\"#ab5959\",\"editorGroup.border\":\"#f0f0f0\",\"editorGroupHeader.tabsBackground\":\"#ffffff\",\"editorGroupHeader.tabsBorder\":\"#f0f0f0\",\"editorGutter.addedBackground\":\"#1e754f\",\"editorGutter.commentRangeForeground\":\"#393a3450\",\"editorGutter.deletedBackground\":\"#ab5959\",\"editorGutter.foldingControlForeground\":\"#393a3490\",\"editorGutter.modifiedBackground\":\"#296aa3\",\"editorHint.foreground\":\"#1e754f\",\"editorIndentGuide.activeBackground\":\"#00000030\",\"editorIndentGuide.background\":\"#00000015\",\"editorInfo.foreground\":\"#296aa3\",\"editorInlayHint.background\":\"#f7f7f7\",\"editorInlayHint.foreground\":\"#999999\",\"editorLineNumber.activeForeground\":\"#4e4f47\",\"editorLineNumber.foreground\":\"#393a3450\",\"editorOverviewRuler.border\":\"#fff\",\"editorStickyScroll.background\":\"#f7f7f7\",\"editorStickyScrollHover.background\":\"#f7f7f7\",\"editorWarning.foreground\":\"#a65e2b\",\"editorWhitespace.foreground\":\"#00000015\",\"editorWidget.background\":\"#ffffff\",\"errorForeground\":\"#ab5959\",\"focusBorder\":\"#00000000\",\"foreground\":\"#393a34\",\"gitDecoration.addedResourceForeground\":\"#1e754f\",\"gitDecoration.conflictingResourceForeground\":\"#a65e2b\",\"gitDecoration.deletedResourceForeground\":\"#ab5959\",\"gitDecoration.ignoredResourceForeground\":\"#393a3450\",\"gitDecoration.modifiedResourceForeground\":\"#296aa3\",\"gitDecoration.submoduleResourceForeground\":\"#393a3490\",\"gitDecoration.untrackedResourceForeground\":\"#2993a3\",\"input.background\":\"#f7f7f7\",\"input.border\":\"#f0f0f0\",\"input.foreground\":\"#393a34\",\"input.placeholderForeground\":\"#393a3490\",\"inputOption.activeBackground\":\"#393a3450\",\"list.activeSelectionBackground\":\"#f7f7f7\",\"list.activeSelectionForeground\":\"#393a34\",\"list.focusBackground\":\"#f7f7f7\",\"list.highlightForeground\":\"#1c6b48\",\"list.hoverBackground\":\"#f7f7f7\",\"list.hoverForeground\":\"#393a34\",\"list.inactiveFocusBackground\":\"#ffffff\",\"list.inactiveSelectionBackground\":\"#f7f7f7\",\"list.inactiveSelectionForeground\":\"#393a34\",\"menu.separatorBackground\":\"#f0f0f0\",\"notificationCenterHeader.background\":\"#ffffff\",\"notificationCenterHeader.foreground\":\"#6a737d\",\"notifications.background\":\"#ffffff\",\"notifications.border\":\"#f0f0f0\",\"notifications.foreground\":\"#393a34\",\"notificationsErrorIcon.foreground\":\"#ab5959\",\"notificationsInfoIcon.foreground\":\"#296aa3\",\"notificationsWarningIcon.foreground\":\"#a65e2b\",\"panel.background\":\"#ffffff\",\"panel.border\":\"#f0f0f0\",\"panelInput.border\":\"#e1e4e8\",\"panelTitle.activeBorder\":\"#1c6b48\",\"panelTitle.activeForeground\":\"#393a34\",\"panelTitle.inactiveForeground\":\"#6a737d\",\"peekViewEditor.background\":\"#ffffff\",\"peekViewResult.background\":\"#ffffff\",\"pickerGroup.border\":\"#f0f0f0\",\"pickerGroup.foreground\":\"#393a34\",\"problemsErrorIcon.foreground\":\"#ab5959\",\"problemsInfoIcon.foreground\":\"#296aa3\",\"problemsWarningIcon.foreground\":\"#a65e2b\",\"progressBar.background\":\"#1c6b48\",\"quickInput.background\":\"#ffffff\",\"quickInput.foreground\":\"#393a34\",\"quickInputList.focusBackground\":\"#f7f7f7\",\"scrollbar.shadow\":\"#6a737d33\",\"scrollbarSlider.activeBackground\":\"#393a3450\",\"scrollbarSlider.background\":\"#393a3410\",\"scrollbarSlider.hoverBackground\":\"#393a3450\",\"settings.headerForeground\":\"#393a34\",\"settings.modifiedItemIndicator\":\"#1c6b48\",\"sideBar.background\":\"#ffffff\",\"sideBar.border\":\"#f0f0f0\",\"sideBar.foreground\":\"#4e4f47\",\"sideBarSectionHeader.background\":\"#ffffff\",\"sideBarSectionHeader.border\":\"#f0f0f0\",\"sideBarSectionHeader.foreground\":\"#393a34\",\"sideBarTitle.foreground\":\"#393a34\",\"statusBar.background\":\"#ffffff\",\"statusBar.border\":\"#f0f0f0\",\"statusBar.debuggingBackground\":\"#f7f7f7\",\"statusBar.debuggingForeground\":\"#4e4f47\",\"statusBar.foreground\":\"#4e4f47\",\"statusBar.noFolderBackground\":\"#ffffff\",\"statusBarItem.prominentBackground\":\"#f7f7f7\",\"tab.activeBackground\":\"#ffffff\",\"tab.activeBorder\":\"#f0f0f0\",\"tab.activeBorderTop\":\"#393a3490\",\"tab.activeForeground\":\"#393a34\",\"tab.border\":\"#f0f0f0\",\"tab.hoverBackground\":\"#f7f7f7\",\"tab.inactiveBackground\":\"#ffffff\",\"tab.inactiveForeground\":\"#6a737d\",\"tab.unfocusedActiveBorder\":\"#f0f0f0\",\"tab.unfocusedActiveBorderTop\":\"#f0f0f0\",\"tab.unfocusedHoverBackground\":\"#ffffff\",\"terminal.ansiBlack\":\"#121212\",\"terminal.ansiBlue\":\"#296aa3\",\"terminal.ansiBrightBlack\":\"#aaaaaa\",\"terminal.ansiBrightBlue\":\"#296aa3\",\"terminal.ansiBrightCyan\":\"#2993a3\",\"terminal.ansiBrightGreen\":\"#1e754f\",\"terminal.ansiBrightMagenta\":\"#a13865\",\"terminal.ansiBrightRed\":\"#ab5959\",\"terminal.ansiBrightWhite\":\"#dddddd\",\"terminal.ansiBrightYellow\":\"#bda437\",\"terminal.ansiCyan\":\"#2993a3\",\"terminal.ansiGreen\":\"#1e754f\",\"terminal.ansiMagenta\":\"#a13865\",\"terminal.ansiRed\":\"#ab5959\",\"terminal.ansiWhite\":\"#dbd7ca\",\"terminal.ansiYellow\":\"#bda437\",\"terminal.foreground\":\"#393a34\",\"terminal.selectionBackground\":\"#22222218\",\"textBlockQuote.background\":\"#ffffff\",\"textBlockQuote.border\":\"#f0f0f0\",\"textCodeBlock.background\":\"#ffffff\",\"textLink.activeForeground\":\"#1c6b48\",\"textLink.foreground\":\"#1c6b48\",\"textPreformat.foreground\":\"#586069\",\"textSeparator.foreground\":\"#d1d5da\",\"titleBar.activeBackground\":\"#ffffff\",\"titleBar.activeForeground\":\"#4e4f47\",\"titleBar.border\":\"#f7f7f7\",\"titleBar.inactiveBackground\":\"#ffffff\",\"titleBar.inactiveForeground\":\"#6a737d\",\"tree.indentGuidesStroke\":\"#e1e4e8\",\"welcomePage.buttonBackground\":\"#f6f8fa\",\"welcomePage.buttonHoverBackground\":\"#e1e4e8\"},\"displayName\":\"Vitesse Light\",\"name\":\"vitesse-light\",\"semanticHighlighting\":true,\"semanticTokenColors\":{\"class\":\"#5a6aa6\",\"interface\":\"#2e808f\",\"namespace\":\"#b05a78\",\"property\":\"#998418\",\"type\":\"#2e808f\"},\"tokenColors\":[{\"scope\":[\"comment\",\"punctuation.definition.comment\",\"string.comment\"],\"settings\":{\"foreground\":\"#a0ada0\"}},{\"scope\":[\"delimiter.bracket\",\"delimiter\",\"invalid.illegal.character-not-allowed-here.html\",\"keyword.operator.rest\",\"keyword.operator.spread\",\"keyword.operator.type.annotation\",\"keyword.operator.relational\",\"keyword.operator.assignment\",\"keyword.operator.type\",\"meta.brace\",\"meta.tag.block.any.html\",\"meta.tag.inline.any.html\",\"meta.tag.structure.input.void.html\",\"meta.type.annotation\",\"meta.embedded.block.github-actions-expression\",\"storage.type.function.arrow\",\"meta.objectliteral.ts\",\"punctuation\",\"punctuation.definition.string.begin.html.vue\",\"punctuation.definition.string.end.html.vue\"],\"settings\":{\"foreground\":\"#999999\"}},{\"scope\":[\"constant\",\"entity.name.constant\",\"variable.language\",\"meta.definition.variable\"],\"settings\":{\"foreground\":\"#a65e2b\"}},{\"scope\":[\"entity\",\"entity.name\"],\"settings\":{\"foreground\":\"#59873a\"}},{\"scope\":\"variable.parameter.function\",\"settings\":{\"foreground\":\"#393a34\"}},{\"scope\":[\"entity.name.tag\",\"tag.html\"],\"settings\":{\"foreground\":\"#1e754f\"}},{\"scope\":\"entity.name.function\",\"settings\":{\"foreground\":\"#59873a\"}},{\"scope\":[\"keyword\",\"storage.type.class.jsdoc\",\"punctuation.definition.template-expression\"],\"settings\":{\"foreground\":\"#1e754f\"}},{\"scope\":[\"storage\",\"storage.type\",\"support.type.builtin\",\"constant.language.undefined\",\"constant.language.null\",\"constant.language.import-export-all.ts\"],\"settings\":{\"foreground\":\"#ab5959\"}},{\"scope\":[\"text.html.derivative\",\"storage.modifier.package\",\"storage.modifier.import\",\"storage.type.java\"],\"settings\":{\"foreground\":\"#393a34\"}},{\"scope\":[\"string\",\"string punctuation.section.embedded source\",\"attribute.value\"],\"settings\":{\"foreground\":\"#b56959\"}},{\"scope\":[\"punctuation.definition.string\"],\"settings\":{\"foreground\":\"#b5695977\"}},{\"scope\":[\"punctuation.support.type.property-name\"],\"settings\":{\"foreground\":\"#99841877\"}},{\"scope\":\"support\",\"settings\":{\"foreground\":\"#998418\"}},{\"scope\":[\"property\",\"meta.property-name\",\"meta.object-literal.key\",\"entity.name.tag.yaml\",\"attribute.name\"],\"settings\":{\"foreground\":\"#998418\"}},{\"scope\":[\"entity.other.attribute-name\",\"invalid.deprecated.entity.other.attribute-name.html\"],\"settings\":{\"foreground\":\"#b07d48\"}},{\"scope\":[\"variable\",\"identifier\"],\"settings\":{\"foreground\":\"#b07d48\"}},{\"scope\":[\"support.type.primitive\",\"entity.name.type\"],\"settings\":{\"foreground\":\"#2e8f82\"}},{\"scope\":\"namespace\",\"settings\":{\"foreground\":\"#b05a78\"}},{\"scope\":[\"keyword.operator\",\"keyword.operator.assignment.compound\",\"meta.var.expr.ts\"],\"settings\":{\"foreground\":\"#ab5959\"}},{\"scope\":\"invalid.broken\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#b31d28\"}},{\"scope\":\"invalid.deprecated\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#b31d28\"}},{\"scope\":\"invalid.illegal\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#b31d28\"}},{\"scope\":\"invalid.unimplemented\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#b31d28\"}},{\"scope\":\"carriage-return\",\"settings\":{\"background\":\"#d73a49\",\"content\":\"^M\",\"fontStyle\":\"italic underline\",\"foreground\":\"#fafbfc\"}},{\"scope\":\"message.error\",\"settings\":{\"foreground\":\"#b31d28\"}},{\"scope\":\"string variable\",\"settings\":{\"foreground\":\"#b56959\"}},{\"scope\":[\"source.regexp\",\"string.regexp\"],\"settings\":{\"foreground\":\"#ab5e3f\"}},{\"scope\":[\"string.regexp.character-class\",\"string.regexp constant.character.escape\",\"string.regexp source.ruby.embedded\",\"string.regexp string.regexp.arbitrary-repitition\"],\"settings\":{\"foreground\":\"#b56959\"}},{\"scope\":\"string.regexp constant.character.escape\",\"settings\":{\"foreground\":\"#bda437\"}},{\"scope\":[\"support.constant\"],\"settings\":{\"foreground\":\"#a65e2b\"}},{\"scope\":[\"keyword.operator.quantifier.regexp\",\"constant.numeric\",\"number\"],\"settings\":{\"foreground\":\"#2f798a\"}},{\"scope\":[\"keyword.other.unit\"],\"settings\":{\"foreground\":\"#ab5959\"}},{\"scope\":[\"constant.language.boolean\",\"constant.language\"],\"settings\":{\"foreground\":\"#1e754f\"}},{\"scope\":\"meta.module-reference\",\"settings\":{\"foreground\":\"#1c6b48\"}},{\"scope\":\"punctuation.definition.list.begin.markdown\",\"settings\":{\"foreground\":\"#a65e2b\"}},{\"scope\":[\"markup.heading\",\"markup.heading entity.name\"],\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#1c6b48\"}},{\"scope\":\"markup.quote\",\"settings\":{\"foreground\":\"#2e808f\"}},{\"scope\":\"markup.italic\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#393a34\"}},{\"scope\":\"markup.bold\",\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#393a34\"}},{\"scope\":\"markup.raw\",\"settings\":{\"foreground\":\"#1c6b48\"}},{\"scope\":[\"markup.deleted\",\"meta.diff.header.from-file\",\"punctuation.definition.deleted\"],\"settings\":{\"background\":\"#ffeef0\",\"foreground\":\"#b31d28\"}},{\"scope\":[\"markup.inserted\",\"meta.diff.header.to-file\",\"punctuation.definition.inserted\"],\"settings\":{\"background\":\"#f0fff4\",\"foreground\":\"#22863a\"}},{\"scope\":[\"markup.changed\",\"punctuation.definition.changed\"],\"settings\":{\"background\":\"#ffebda\",\"foreground\":\"#e36209\"}},{\"scope\":[\"markup.ignored\",\"markup.untracked\"],\"settings\":{\"background\":\"#005cc5\",\"foreground\":\"#f6f8fa\"}},{\"scope\":\"meta.diff.range\",\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#6f42c1\"}},{\"scope\":\"meta.diff.header\",\"settings\":{\"foreground\":\"#005cc5\"}},{\"scope\":\"meta.separator\",\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#005cc5\"}},{\"scope\":\"meta.output\",\"settings\":{\"foreground\":\"#005cc5\"}},{\"scope\":[\"brackethighlighter.tag\",\"brackethighlighter.curly\",\"brackethighlighter.round\",\"brackethighlighter.square\",\"brackethighlighter.angle\",\"brackethighlighter.quote\"],\"settings\":{\"foreground\":\"#586069\"}},{\"scope\":\"brackethighlighter.unmatched\",\"settings\":{\"foreground\":\"#b31d28\"}},{\"scope\":[\"constant.other.reference.link\",\"string.other.link\",\"punctuation.definition.string.begin.markdown\",\"punctuation.definition.string.end.markdown\"],\"settings\":{\"foreground\":\"#b56959\"}},{\"scope\":[\"markup.underline.link.markdown\",\"markup.underline.link.image.markdown\"],\"settings\":{\"fontStyle\":\"underline\",\"foreground\":\"#393a3490\"}},{\"scope\":[\"type.identifier\",\"constant.other.character-class.regexp\"],\"settings\":{\"foreground\":\"#5a6aa6\"}},{\"scope\":[\"entity.other.attribute-name.html.vue\"],\"settings\":{\"foreground\":\"#59873a\"}},{\"scope\":[\"invalid.illegal.unrecognized-tag.html\"],\"settings\":{\"fontStyle\":\"normal\"}}],\"type\":\"light\"}"));
|
|
4608
|
+
var Pi = Object.freeze(JSON.parse("{\"colors\":{\"activityBar.activeBorder\":\"#4d9375\",\"activityBar.background\":\"#121212\",\"activityBar.border\":\"#191919\",\"activityBar.foreground\":\"#dbd7caee\",\"activityBar.inactiveForeground\":\"#dedcd550\",\"activityBarBadge.background\":\"#bfbaaa\",\"activityBarBadge.foreground\":\"#121212\",\"badge.background\":\"#dedcd590\",\"badge.foreground\":\"#121212\",\"breadcrumb.activeSelectionForeground\":\"#eeeeee18\",\"breadcrumb.background\":\"#181818\",\"breadcrumb.focusForeground\":\"#dbd7caee\",\"breadcrumb.foreground\":\"#959da5\",\"breadcrumbPicker.background\":\"#121212\",\"button.background\":\"#4d9375\",\"button.foreground\":\"#121212\",\"button.hoverBackground\":\"#4d9375\",\"checkbox.background\":\"#181818\",\"checkbox.border\":\"#2f363d\",\"debugToolBar.background\":\"#121212\",\"descriptionForeground\":\"#dedcd590\",\"diffEditor.insertedTextBackground\":\"#4d937550\",\"diffEditor.removedTextBackground\":\"#ab595950\",\"dropdown.background\":\"#121212\",\"dropdown.border\":\"#191919\",\"dropdown.foreground\":\"#dbd7caee\",\"dropdown.listBackground\":\"#181818\",\"editor.background\":\"#121212\",\"editor.findMatchBackground\":\"#e6cc7722\",\"editor.findMatchHighlightBackground\":\"#e6cc7744\",\"editor.focusedStackFrameHighlightBackground\":\"#b808\",\"editor.foldBackground\":\"#eeeeee10\",\"editor.foreground\":\"#dbd7caee\",\"editor.inactiveSelectionBackground\":\"#eeeeee10\",\"editor.lineHighlightBackground\":\"#181818\",\"editor.selectionBackground\":\"#eeeeee18\",\"editor.selectionHighlightBackground\":\"#eeeeee10\",\"editor.stackFrameHighlightBackground\":\"#a707\",\"editor.wordHighlightBackground\":\"#1c6b4805\",\"editor.wordHighlightStrongBackground\":\"#1c6b4810\",\"editorBracketHighlight.foreground1\":\"#5eaab5\",\"editorBracketHighlight.foreground2\":\"#4d9375\",\"editorBracketHighlight.foreground3\":\"#d4976c\",\"editorBracketHighlight.foreground4\":\"#d9739f\",\"editorBracketHighlight.foreground5\":\"#e6cc77\",\"editorBracketHighlight.foreground6\":\"#6394bf\",\"editorBracketMatch.background\":\"#4d937520\",\"editorError.foreground\":\"#cb7676\",\"editorGroup.border\":\"#191919\",\"editorGroupHeader.tabsBackground\":\"#121212\",\"editorGroupHeader.tabsBorder\":\"#191919\",\"editorGutter.addedBackground\":\"#4d9375\",\"editorGutter.commentRangeForeground\":\"#dedcd550\",\"editorGutter.deletedBackground\":\"#cb7676\",\"editorGutter.foldingControlForeground\":\"#dedcd590\",\"editorGutter.modifiedBackground\":\"#6394bf\",\"editorHint.foreground\":\"#4d9375\",\"editorIndentGuide.activeBackground\":\"#ffffff30\",\"editorIndentGuide.background\":\"#ffffff15\",\"editorInfo.foreground\":\"#6394bf\",\"editorInlayHint.background\":\"#181818\",\"editorInlayHint.foreground\":\"#666666\",\"editorLineNumber.activeForeground\":\"#bfbaaa\",\"editorLineNumber.foreground\":\"#dedcd550\",\"editorOverviewRuler.border\":\"#111\",\"editorStickyScroll.background\":\"#181818\",\"editorStickyScrollHover.background\":\"#181818\",\"editorWarning.foreground\":\"#d4976c\",\"editorWhitespace.foreground\":\"#ffffff15\",\"editorWidget.background\":\"#121212\",\"errorForeground\":\"#cb7676\",\"focusBorder\":\"#00000000\",\"foreground\":\"#dbd7caee\",\"gitDecoration.addedResourceForeground\":\"#4d9375\",\"gitDecoration.conflictingResourceForeground\":\"#d4976c\",\"gitDecoration.deletedResourceForeground\":\"#cb7676\",\"gitDecoration.ignoredResourceForeground\":\"#dedcd550\",\"gitDecoration.modifiedResourceForeground\":\"#6394bf\",\"gitDecoration.submoduleResourceForeground\":\"#dedcd590\",\"gitDecoration.untrackedResourceForeground\":\"#5eaab5\",\"input.background\":\"#181818\",\"input.border\":\"#191919\",\"input.foreground\":\"#dbd7caee\",\"input.placeholderForeground\":\"#dedcd590\",\"inputOption.activeBackground\":\"#dedcd550\",\"list.activeSelectionBackground\":\"#181818\",\"list.activeSelectionForeground\":\"#dbd7caee\",\"list.focusBackground\":\"#181818\",\"list.highlightForeground\":\"#4d9375\",\"list.hoverBackground\":\"#181818\",\"list.hoverForeground\":\"#dbd7caee\",\"list.inactiveFocusBackground\":\"#121212\",\"list.inactiveSelectionBackground\":\"#181818\",\"list.inactiveSelectionForeground\":\"#dbd7caee\",\"menu.separatorBackground\":\"#191919\",\"notificationCenterHeader.background\":\"#121212\",\"notificationCenterHeader.foreground\":\"#959da5\",\"notifications.background\":\"#121212\",\"notifications.border\":\"#191919\",\"notifications.foreground\":\"#dbd7caee\",\"notificationsErrorIcon.foreground\":\"#cb7676\",\"notificationsInfoIcon.foreground\":\"#6394bf\",\"notificationsWarningIcon.foreground\":\"#d4976c\",\"panel.background\":\"#121212\",\"panel.border\":\"#191919\",\"panelInput.border\":\"#2f363d\",\"panelTitle.activeBorder\":\"#4d9375\",\"panelTitle.activeForeground\":\"#dbd7caee\",\"panelTitle.inactiveForeground\":\"#959da5\",\"peekViewEditor.background\":\"#121212\",\"peekViewEditor.matchHighlightBackground\":\"#ffd33d33\",\"peekViewResult.background\":\"#121212\",\"peekViewResult.matchHighlightBackground\":\"#ffd33d33\",\"pickerGroup.border\":\"#191919\",\"pickerGroup.foreground\":\"#dbd7caee\",\"problemsErrorIcon.foreground\":\"#cb7676\",\"problemsInfoIcon.foreground\":\"#6394bf\",\"problemsWarningIcon.foreground\":\"#d4976c\",\"progressBar.background\":\"#4d9375\",\"quickInput.background\":\"#121212\",\"quickInput.foreground\":\"#dbd7caee\",\"quickInputList.focusBackground\":\"#181818\",\"scrollbar.shadow\":\"#0000\",\"scrollbarSlider.activeBackground\":\"#dedcd550\",\"scrollbarSlider.background\":\"#dedcd510\",\"scrollbarSlider.hoverBackground\":\"#dedcd550\",\"settings.headerForeground\":\"#dbd7caee\",\"settings.modifiedItemIndicator\":\"#4d9375\",\"sideBar.background\":\"#121212\",\"sideBar.border\":\"#191919\",\"sideBar.foreground\":\"#bfbaaa\",\"sideBarSectionHeader.background\":\"#121212\",\"sideBarSectionHeader.border\":\"#191919\",\"sideBarSectionHeader.foreground\":\"#dbd7caee\",\"sideBarTitle.foreground\":\"#dbd7caee\",\"statusBar.background\":\"#121212\",\"statusBar.border\":\"#191919\",\"statusBar.debuggingBackground\":\"#181818\",\"statusBar.debuggingForeground\":\"#bfbaaa\",\"statusBar.foreground\":\"#bfbaaa\",\"statusBar.noFolderBackground\":\"#121212\",\"statusBarItem.prominentBackground\":\"#181818\",\"tab.activeBackground\":\"#121212\",\"tab.activeBorder\":\"#191919\",\"tab.activeBorderTop\":\"#dedcd590\",\"tab.activeForeground\":\"#dbd7caee\",\"tab.border\":\"#191919\",\"tab.hoverBackground\":\"#181818\",\"tab.inactiveBackground\":\"#121212\",\"tab.inactiveForeground\":\"#959da5\",\"tab.unfocusedActiveBorder\":\"#191919\",\"tab.unfocusedActiveBorderTop\":\"#191919\",\"tab.unfocusedHoverBackground\":\"#121212\",\"terminal.ansiBlack\":\"#393a34\",\"terminal.ansiBlue\":\"#6394bf\",\"terminal.ansiBrightBlack\":\"#777777\",\"terminal.ansiBrightBlue\":\"#6394bf\",\"terminal.ansiBrightCyan\":\"#5eaab5\",\"terminal.ansiBrightGreen\":\"#4d9375\",\"terminal.ansiBrightMagenta\":\"#d9739f\",\"terminal.ansiBrightRed\":\"#cb7676\",\"terminal.ansiBrightWhite\":\"#ffffff\",\"terminal.ansiBrightYellow\":\"#e6cc77\",\"terminal.ansiCyan\":\"#5eaab5\",\"terminal.ansiGreen\":\"#4d9375\",\"terminal.ansiMagenta\":\"#d9739f\",\"terminal.ansiRed\":\"#cb7676\",\"terminal.ansiWhite\":\"#dbd7ca\",\"terminal.ansiYellow\":\"#e6cc77\",\"terminal.foreground\":\"#dbd7caee\",\"terminal.selectionBackground\":\"#eeeeee18\",\"textBlockQuote.background\":\"#121212\",\"textBlockQuote.border\":\"#191919\",\"textCodeBlock.background\":\"#121212\",\"textLink.activeForeground\":\"#4d9375\",\"textLink.foreground\":\"#4d9375\",\"textPreformat.foreground\":\"#d1d5da\",\"textSeparator.foreground\":\"#586069\",\"titleBar.activeBackground\":\"#121212\",\"titleBar.activeForeground\":\"#bfbaaa\",\"titleBar.border\":\"#181818\",\"titleBar.inactiveBackground\":\"#121212\",\"titleBar.inactiveForeground\":\"#959da5\",\"tree.indentGuidesStroke\":\"#2f363d\",\"welcomePage.buttonBackground\":\"#2f363d\",\"welcomePage.buttonHoverBackground\":\"#444d56\"},\"displayName\":\"Vitesse Dark\",\"name\":\"vitesse-dark\",\"semanticHighlighting\":true,\"semanticTokenColors\":{\"class\":\"#6872ab\",\"interface\":\"#5d99a9\",\"namespace\":\"#db889a\",\"property\":\"#b8a965\",\"type\":\"#5d99a9\"},\"tokenColors\":[{\"scope\":[\"comment\",\"punctuation.definition.comment\",\"string.comment\"],\"settings\":{\"foreground\":\"#758575dd\"}},{\"scope\":[\"delimiter.bracket\",\"delimiter\",\"invalid.illegal.character-not-allowed-here.html\",\"keyword.operator.rest\",\"keyword.operator.spread\",\"keyword.operator.type.annotation\",\"keyword.operator.relational\",\"keyword.operator.assignment\",\"keyword.operator.type\",\"meta.brace\",\"meta.tag.block.any.html\",\"meta.tag.inline.any.html\",\"meta.tag.structure.input.void.html\",\"meta.type.annotation\",\"meta.embedded.block.github-actions-expression\",\"storage.type.function.arrow\",\"meta.objectliteral.ts\",\"punctuation\",\"punctuation.definition.string.begin.html.vue\",\"punctuation.definition.string.end.html.vue\"],\"settings\":{\"foreground\":\"#666666\"}},{\"scope\":[\"constant\",\"entity.name.constant\",\"variable.language\",\"meta.definition.variable\"],\"settings\":{\"foreground\":\"#c99076\"}},{\"scope\":[\"entity\",\"entity.name\"],\"settings\":{\"foreground\":\"#80a665\"}},{\"scope\":\"variable.parameter.function\",\"settings\":{\"foreground\":\"#dbd7caee\"}},{\"scope\":[\"entity.name.tag\",\"tag.html\"],\"settings\":{\"foreground\":\"#4d9375\"}},{\"scope\":\"entity.name.function\",\"settings\":{\"foreground\":\"#80a665\"}},{\"scope\":[\"keyword\",\"storage.type.class.jsdoc\",\"punctuation.definition.template-expression\"],\"settings\":{\"foreground\":\"#4d9375\"}},{\"scope\":[\"storage\",\"storage.type\",\"support.type.builtin\",\"constant.language.undefined\",\"constant.language.null\",\"constant.language.import-export-all.ts\"],\"settings\":{\"foreground\":\"#cb7676\"}},{\"scope\":[\"text.html.derivative\",\"storage.modifier.package\",\"storage.modifier.import\",\"storage.type.java\"],\"settings\":{\"foreground\":\"#dbd7caee\"}},{\"scope\":[\"string\",\"string punctuation.section.embedded source\",\"attribute.value\"],\"settings\":{\"foreground\":\"#c98a7d\"}},{\"scope\":[\"punctuation.definition.string\"],\"settings\":{\"foreground\":\"#c98a7d77\"}},{\"scope\":[\"punctuation.support.type.property-name\"],\"settings\":{\"foreground\":\"#b8a96577\"}},{\"scope\":\"support\",\"settings\":{\"foreground\":\"#b8a965\"}},{\"scope\":[\"property\",\"meta.property-name\",\"meta.object-literal.key\",\"entity.name.tag.yaml\",\"attribute.name\"],\"settings\":{\"foreground\":\"#b8a965\"}},{\"scope\":[\"entity.other.attribute-name\",\"invalid.deprecated.entity.other.attribute-name.html\"],\"settings\":{\"foreground\":\"#bd976a\"}},{\"scope\":[\"variable\",\"identifier\"],\"settings\":{\"foreground\":\"#bd976a\"}},{\"scope\":[\"support.type.primitive\",\"entity.name.type\"],\"settings\":{\"foreground\":\"#5DA994\"}},{\"scope\":\"namespace\",\"settings\":{\"foreground\":\"#db889a\"}},{\"scope\":[\"keyword.operator\",\"keyword.operator.assignment.compound\",\"meta.var.expr.ts\"],\"settings\":{\"foreground\":\"#cb7676\"}},{\"scope\":\"invalid.broken\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#fdaeb7\"}},{\"scope\":\"invalid.deprecated\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#fdaeb7\"}},{\"scope\":\"invalid.illegal\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#fdaeb7\"}},{\"scope\":\"invalid.unimplemented\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#fdaeb7\"}},{\"scope\":\"carriage-return\",\"settings\":{\"background\":\"#f97583\",\"content\":\"^M\",\"fontStyle\":\"italic underline\",\"foreground\":\"#24292e\"}},{\"scope\":\"message.error\",\"settings\":{\"foreground\":\"#fdaeb7\"}},{\"scope\":\"string variable\",\"settings\":{\"foreground\":\"#c98a7d\"}},{\"scope\":[\"source.regexp\",\"string.regexp\"],\"settings\":{\"foreground\":\"#c4704f\"}},{\"scope\":[\"string.regexp.character-class\",\"string.regexp constant.character.escape\",\"string.regexp source.ruby.embedded\",\"string.regexp string.regexp.arbitrary-repitition\"],\"settings\":{\"foreground\":\"#c98a7d\"}},{\"scope\":\"string.regexp constant.character.escape\",\"settings\":{\"foreground\":\"#e6cc77\"}},{\"scope\":[\"support.constant\"],\"settings\":{\"foreground\":\"#c99076\"}},{\"scope\":[\"keyword.operator.quantifier.regexp\",\"constant.numeric\",\"number\"],\"settings\":{\"foreground\":\"#4C9A91\"}},{\"scope\":[\"keyword.other.unit\"],\"settings\":{\"foreground\":\"#cb7676\"}},{\"scope\":[\"constant.language.boolean\",\"constant.language\"],\"settings\":{\"foreground\":\"#4d9375\"}},{\"scope\":\"meta.module-reference\",\"settings\":{\"foreground\":\"#4d9375\"}},{\"scope\":\"punctuation.definition.list.begin.markdown\",\"settings\":{\"foreground\":\"#d4976c\"}},{\"scope\":[\"markup.heading\",\"markup.heading entity.name\"],\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#4d9375\"}},{\"scope\":\"markup.quote\",\"settings\":{\"foreground\":\"#5d99a9\"}},{\"scope\":\"markup.italic\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#dbd7caee\"}},{\"scope\":\"markup.bold\",\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#dbd7caee\"}},{\"scope\":\"markup.raw\",\"settings\":{\"foreground\":\"#4d9375\"}},{\"scope\":[\"markup.deleted\",\"meta.diff.header.from-file\",\"punctuation.definition.deleted\"],\"settings\":{\"background\":\"#86181d\",\"foreground\":\"#fdaeb7\"}},{\"scope\":[\"markup.inserted\",\"meta.diff.header.to-file\",\"punctuation.definition.inserted\"],\"settings\":{\"background\":\"#144620\",\"foreground\":\"#85e89d\"}},{\"scope\":[\"markup.changed\",\"punctuation.definition.changed\"],\"settings\":{\"background\":\"#c24e00\",\"foreground\":\"#ffab70\"}},{\"scope\":[\"markup.ignored\",\"markup.untracked\"],\"settings\":{\"background\":\"#79b8ff\",\"foreground\":\"#2f363d\"}},{\"scope\":\"meta.diff.range\",\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#b392f0\"}},{\"scope\":\"meta.diff.header\",\"settings\":{\"foreground\":\"#79b8ff\"}},{\"scope\":\"meta.separator\",\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#79b8ff\"}},{\"scope\":\"meta.output\",\"settings\":{\"foreground\":\"#79b8ff\"}},{\"scope\":[\"brackethighlighter.tag\",\"brackethighlighter.curly\",\"brackethighlighter.round\",\"brackethighlighter.square\",\"brackethighlighter.angle\",\"brackethighlighter.quote\"],\"settings\":{\"foreground\":\"#d1d5da\"}},{\"scope\":\"brackethighlighter.unmatched\",\"settings\":{\"foreground\":\"#fdaeb7\"}},{\"scope\":[\"constant.other.reference.link\",\"string.other.link\",\"punctuation.definition.string.begin.markdown\",\"punctuation.definition.string.end.markdown\"],\"settings\":{\"foreground\":\"#c98a7d\"}},{\"scope\":[\"markup.underline.link.markdown\",\"markup.underline.link.image.markdown\"],\"settings\":{\"fontStyle\":\"underline\",\"foreground\":\"#dedcd590\"}},{\"scope\":[\"type.identifier\",\"constant.other.character-class.regexp\"],\"settings\":{\"foreground\":\"#6872ab\"}},{\"scope\":[\"entity.other.attribute-name.html.vue\"],\"settings\":{\"foreground\":\"#80a665\"}},{\"scope\":[\"invalid.illegal.unrecognized-tag.html\"],\"settings\":{\"fontStyle\":\"normal\"}}],\"type\":\"dark\"}")), Fi = Object.freeze(JSON.parse("{\"colors\":{\"activityBar.activeBorder\":\"#1c6b48\",\"activityBar.background\":\"#ffffff\",\"activityBar.border\":\"#f0f0f0\",\"activityBar.foreground\":\"#393a34\",\"activityBar.inactiveForeground\":\"#393a3450\",\"activityBarBadge.background\":\"#4e4f47\",\"activityBarBadge.foreground\":\"#ffffff\",\"badge.background\":\"#393a3490\",\"badge.foreground\":\"#ffffff\",\"breadcrumb.activeSelectionForeground\":\"#22222218\",\"breadcrumb.background\":\"#f7f7f7\",\"breadcrumb.focusForeground\":\"#393a34\",\"breadcrumb.foreground\":\"#6a737d\",\"breadcrumbPicker.background\":\"#ffffff\",\"button.background\":\"#1c6b48\",\"button.foreground\":\"#ffffff\",\"button.hoverBackground\":\"#1c6b48\",\"checkbox.background\":\"#f7f7f7\",\"checkbox.border\":\"#d1d5da\",\"debugToolBar.background\":\"#ffffff\",\"descriptionForeground\":\"#393a3490\",\"diffEditor.insertedTextBackground\":\"#1c6b4830\",\"diffEditor.removedTextBackground\":\"#ab595940\",\"dropdown.background\":\"#ffffff\",\"dropdown.border\":\"#f0f0f0\",\"dropdown.foreground\":\"#393a34\",\"dropdown.listBackground\":\"#f7f7f7\",\"editor.background\":\"#ffffff\",\"editor.findMatchBackground\":\"#e6cc7744\",\"editor.findMatchHighlightBackground\":\"#e6cc7766\",\"editor.focusedStackFrameHighlightBackground\":\"#fff5b1\",\"editor.foldBackground\":\"#22222210\",\"editor.foreground\":\"#393a34\",\"editor.inactiveSelectionBackground\":\"#22222210\",\"editor.lineHighlightBackground\":\"#f7f7f7\",\"editor.selectionBackground\":\"#22222218\",\"editor.selectionHighlightBackground\":\"#22222210\",\"editor.stackFrameHighlightBackground\":\"#fffbdd\",\"editor.wordHighlightBackground\":\"#1c6b4805\",\"editor.wordHighlightStrongBackground\":\"#1c6b4810\",\"editorBracketHighlight.foreground1\":\"#2993a3\",\"editorBracketHighlight.foreground2\":\"#1e754f\",\"editorBracketHighlight.foreground3\":\"#a65e2b\",\"editorBracketHighlight.foreground4\":\"#a13865\",\"editorBracketHighlight.foreground5\":\"#bda437\",\"editorBracketHighlight.foreground6\":\"#296aa3\",\"editorBracketMatch.background\":\"#1c6b4820\",\"editorError.foreground\":\"#ab5959\",\"editorGroup.border\":\"#f0f0f0\",\"editorGroupHeader.tabsBackground\":\"#ffffff\",\"editorGroupHeader.tabsBorder\":\"#f0f0f0\",\"editorGutter.addedBackground\":\"#1e754f\",\"editorGutter.commentRangeForeground\":\"#393a3450\",\"editorGutter.deletedBackground\":\"#ab5959\",\"editorGutter.foldingControlForeground\":\"#393a3490\",\"editorGutter.modifiedBackground\":\"#296aa3\",\"editorHint.foreground\":\"#1e754f\",\"editorIndentGuide.activeBackground\":\"#00000030\",\"editorIndentGuide.background\":\"#00000015\",\"editorInfo.foreground\":\"#296aa3\",\"editorInlayHint.background\":\"#f7f7f7\",\"editorInlayHint.foreground\":\"#999999\",\"editorLineNumber.activeForeground\":\"#4e4f47\",\"editorLineNumber.foreground\":\"#393a3450\",\"editorOverviewRuler.border\":\"#fff\",\"editorStickyScroll.background\":\"#f7f7f7\",\"editorStickyScrollHover.background\":\"#f7f7f7\",\"editorWarning.foreground\":\"#a65e2b\",\"editorWhitespace.foreground\":\"#00000015\",\"editorWidget.background\":\"#ffffff\",\"errorForeground\":\"#ab5959\",\"focusBorder\":\"#00000000\",\"foreground\":\"#393a34\",\"gitDecoration.addedResourceForeground\":\"#1e754f\",\"gitDecoration.conflictingResourceForeground\":\"#a65e2b\",\"gitDecoration.deletedResourceForeground\":\"#ab5959\",\"gitDecoration.ignoredResourceForeground\":\"#393a3450\",\"gitDecoration.modifiedResourceForeground\":\"#296aa3\",\"gitDecoration.submoduleResourceForeground\":\"#393a3490\",\"gitDecoration.untrackedResourceForeground\":\"#2993a3\",\"input.background\":\"#f7f7f7\",\"input.border\":\"#f0f0f0\",\"input.foreground\":\"#393a34\",\"input.placeholderForeground\":\"#393a3490\",\"inputOption.activeBackground\":\"#393a3450\",\"list.activeSelectionBackground\":\"#f7f7f7\",\"list.activeSelectionForeground\":\"#393a34\",\"list.focusBackground\":\"#f7f7f7\",\"list.highlightForeground\":\"#1c6b48\",\"list.hoverBackground\":\"#f7f7f7\",\"list.hoverForeground\":\"#393a34\",\"list.inactiveFocusBackground\":\"#ffffff\",\"list.inactiveSelectionBackground\":\"#f7f7f7\",\"list.inactiveSelectionForeground\":\"#393a34\",\"menu.separatorBackground\":\"#f0f0f0\",\"notificationCenterHeader.background\":\"#ffffff\",\"notificationCenterHeader.foreground\":\"#6a737d\",\"notifications.background\":\"#ffffff\",\"notifications.border\":\"#f0f0f0\",\"notifications.foreground\":\"#393a34\",\"notificationsErrorIcon.foreground\":\"#ab5959\",\"notificationsInfoIcon.foreground\":\"#296aa3\",\"notificationsWarningIcon.foreground\":\"#a65e2b\",\"panel.background\":\"#ffffff\",\"panel.border\":\"#f0f0f0\",\"panelInput.border\":\"#e1e4e8\",\"panelTitle.activeBorder\":\"#1c6b48\",\"panelTitle.activeForeground\":\"#393a34\",\"panelTitle.inactiveForeground\":\"#6a737d\",\"peekViewEditor.background\":\"#ffffff\",\"peekViewResult.background\":\"#ffffff\",\"pickerGroup.border\":\"#f0f0f0\",\"pickerGroup.foreground\":\"#393a34\",\"problemsErrorIcon.foreground\":\"#ab5959\",\"problemsInfoIcon.foreground\":\"#296aa3\",\"problemsWarningIcon.foreground\":\"#a65e2b\",\"progressBar.background\":\"#1c6b48\",\"quickInput.background\":\"#ffffff\",\"quickInput.foreground\":\"#393a34\",\"quickInputList.focusBackground\":\"#f7f7f7\",\"scrollbar.shadow\":\"#6a737d33\",\"scrollbarSlider.activeBackground\":\"#393a3450\",\"scrollbarSlider.background\":\"#393a3410\",\"scrollbarSlider.hoverBackground\":\"#393a3450\",\"settings.headerForeground\":\"#393a34\",\"settings.modifiedItemIndicator\":\"#1c6b48\",\"sideBar.background\":\"#ffffff\",\"sideBar.border\":\"#f0f0f0\",\"sideBar.foreground\":\"#4e4f47\",\"sideBarSectionHeader.background\":\"#ffffff\",\"sideBarSectionHeader.border\":\"#f0f0f0\",\"sideBarSectionHeader.foreground\":\"#393a34\",\"sideBarTitle.foreground\":\"#393a34\",\"statusBar.background\":\"#ffffff\",\"statusBar.border\":\"#f0f0f0\",\"statusBar.debuggingBackground\":\"#f7f7f7\",\"statusBar.debuggingForeground\":\"#4e4f47\",\"statusBar.foreground\":\"#4e4f47\",\"statusBar.noFolderBackground\":\"#ffffff\",\"statusBarItem.prominentBackground\":\"#f7f7f7\",\"tab.activeBackground\":\"#ffffff\",\"tab.activeBorder\":\"#f0f0f0\",\"tab.activeBorderTop\":\"#393a3490\",\"tab.activeForeground\":\"#393a34\",\"tab.border\":\"#f0f0f0\",\"tab.hoverBackground\":\"#f7f7f7\",\"tab.inactiveBackground\":\"#ffffff\",\"tab.inactiveForeground\":\"#6a737d\",\"tab.unfocusedActiveBorder\":\"#f0f0f0\",\"tab.unfocusedActiveBorderTop\":\"#f0f0f0\",\"tab.unfocusedHoverBackground\":\"#ffffff\",\"terminal.ansiBlack\":\"#121212\",\"terminal.ansiBlue\":\"#296aa3\",\"terminal.ansiBrightBlack\":\"#aaaaaa\",\"terminal.ansiBrightBlue\":\"#296aa3\",\"terminal.ansiBrightCyan\":\"#2993a3\",\"terminal.ansiBrightGreen\":\"#1e754f\",\"terminal.ansiBrightMagenta\":\"#a13865\",\"terminal.ansiBrightRed\":\"#ab5959\",\"terminal.ansiBrightWhite\":\"#dddddd\",\"terminal.ansiBrightYellow\":\"#bda437\",\"terminal.ansiCyan\":\"#2993a3\",\"terminal.ansiGreen\":\"#1e754f\",\"terminal.ansiMagenta\":\"#a13865\",\"terminal.ansiRed\":\"#ab5959\",\"terminal.ansiWhite\":\"#dbd7ca\",\"terminal.ansiYellow\":\"#bda437\",\"terminal.foreground\":\"#393a34\",\"terminal.selectionBackground\":\"#22222218\",\"textBlockQuote.background\":\"#ffffff\",\"textBlockQuote.border\":\"#f0f0f0\",\"textCodeBlock.background\":\"#ffffff\",\"textLink.activeForeground\":\"#1c6b48\",\"textLink.foreground\":\"#1c6b48\",\"textPreformat.foreground\":\"#586069\",\"textSeparator.foreground\":\"#d1d5da\",\"titleBar.activeBackground\":\"#ffffff\",\"titleBar.activeForeground\":\"#4e4f47\",\"titleBar.border\":\"#f7f7f7\",\"titleBar.inactiveBackground\":\"#ffffff\",\"titleBar.inactiveForeground\":\"#6a737d\",\"tree.indentGuidesStroke\":\"#e1e4e8\",\"welcomePage.buttonBackground\":\"#f6f8fa\",\"welcomePage.buttonHoverBackground\":\"#e1e4e8\"},\"displayName\":\"Vitesse Light\",\"name\":\"vitesse-light\",\"semanticHighlighting\":true,\"semanticTokenColors\":{\"class\":\"#5a6aa6\",\"interface\":\"#2e808f\",\"namespace\":\"#b05a78\",\"property\":\"#998418\",\"type\":\"#2e808f\"},\"tokenColors\":[{\"scope\":[\"comment\",\"punctuation.definition.comment\",\"string.comment\"],\"settings\":{\"foreground\":\"#a0ada0\"}},{\"scope\":[\"delimiter.bracket\",\"delimiter\",\"invalid.illegal.character-not-allowed-here.html\",\"keyword.operator.rest\",\"keyword.operator.spread\",\"keyword.operator.type.annotation\",\"keyword.operator.relational\",\"keyword.operator.assignment\",\"keyword.operator.type\",\"meta.brace\",\"meta.tag.block.any.html\",\"meta.tag.inline.any.html\",\"meta.tag.structure.input.void.html\",\"meta.type.annotation\",\"meta.embedded.block.github-actions-expression\",\"storage.type.function.arrow\",\"meta.objectliteral.ts\",\"punctuation\",\"punctuation.definition.string.begin.html.vue\",\"punctuation.definition.string.end.html.vue\"],\"settings\":{\"foreground\":\"#999999\"}},{\"scope\":[\"constant\",\"entity.name.constant\",\"variable.language\",\"meta.definition.variable\"],\"settings\":{\"foreground\":\"#a65e2b\"}},{\"scope\":[\"entity\",\"entity.name\"],\"settings\":{\"foreground\":\"#59873a\"}},{\"scope\":\"variable.parameter.function\",\"settings\":{\"foreground\":\"#393a34\"}},{\"scope\":[\"entity.name.tag\",\"tag.html\"],\"settings\":{\"foreground\":\"#1e754f\"}},{\"scope\":\"entity.name.function\",\"settings\":{\"foreground\":\"#59873a\"}},{\"scope\":[\"keyword\",\"storage.type.class.jsdoc\",\"punctuation.definition.template-expression\"],\"settings\":{\"foreground\":\"#1e754f\"}},{\"scope\":[\"storage\",\"storage.type\",\"support.type.builtin\",\"constant.language.undefined\",\"constant.language.null\",\"constant.language.import-export-all.ts\"],\"settings\":{\"foreground\":\"#ab5959\"}},{\"scope\":[\"text.html.derivative\",\"storage.modifier.package\",\"storage.modifier.import\",\"storage.type.java\"],\"settings\":{\"foreground\":\"#393a34\"}},{\"scope\":[\"string\",\"string punctuation.section.embedded source\",\"attribute.value\"],\"settings\":{\"foreground\":\"#b56959\"}},{\"scope\":[\"punctuation.definition.string\"],\"settings\":{\"foreground\":\"#b5695977\"}},{\"scope\":[\"punctuation.support.type.property-name\"],\"settings\":{\"foreground\":\"#99841877\"}},{\"scope\":\"support\",\"settings\":{\"foreground\":\"#998418\"}},{\"scope\":[\"property\",\"meta.property-name\",\"meta.object-literal.key\",\"entity.name.tag.yaml\",\"attribute.name\"],\"settings\":{\"foreground\":\"#998418\"}},{\"scope\":[\"entity.other.attribute-name\",\"invalid.deprecated.entity.other.attribute-name.html\"],\"settings\":{\"foreground\":\"#b07d48\"}},{\"scope\":[\"variable\",\"identifier\"],\"settings\":{\"foreground\":\"#b07d48\"}},{\"scope\":[\"support.type.primitive\",\"entity.name.type\"],\"settings\":{\"foreground\":\"#2e8f82\"}},{\"scope\":\"namespace\",\"settings\":{\"foreground\":\"#b05a78\"}},{\"scope\":[\"keyword.operator\",\"keyword.operator.assignment.compound\",\"meta.var.expr.ts\"],\"settings\":{\"foreground\":\"#ab5959\"}},{\"scope\":\"invalid.broken\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#b31d28\"}},{\"scope\":\"invalid.deprecated\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#b31d28\"}},{\"scope\":\"invalid.illegal\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#b31d28\"}},{\"scope\":\"invalid.unimplemented\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#b31d28\"}},{\"scope\":\"carriage-return\",\"settings\":{\"background\":\"#d73a49\",\"content\":\"^M\",\"fontStyle\":\"italic underline\",\"foreground\":\"#fafbfc\"}},{\"scope\":\"message.error\",\"settings\":{\"foreground\":\"#b31d28\"}},{\"scope\":\"string variable\",\"settings\":{\"foreground\":\"#b56959\"}},{\"scope\":[\"source.regexp\",\"string.regexp\"],\"settings\":{\"foreground\":\"#ab5e3f\"}},{\"scope\":[\"string.regexp.character-class\",\"string.regexp constant.character.escape\",\"string.regexp source.ruby.embedded\",\"string.regexp string.regexp.arbitrary-repitition\"],\"settings\":{\"foreground\":\"#b56959\"}},{\"scope\":\"string.regexp constant.character.escape\",\"settings\":{\"foreground\":\"#bda437\"}},{\"scope\":[\"support.constant\"],\"settings\":{\"foreground\":\"#a65e2b\"}},{\"scope\":[\"keyword.operator.quantifier.regexp\",\"constant.numeric\",\"number\"],\"settings\":{\"foreground\":\"#2f798a\"}},{\"scope\":[\"keyword.other.unit\"],\"settings\":{\"foreground\":\"#ab5959\"}},{\"scope\":[\"constant.language.boolean\",\"constant.language\"],\"settings\":{\"foreground\":\"#1e754f\"}},{\"scope\":\"meta.module-reference\",\"settings\":{\"foreground\":\"#1c6b48\"}},{\"scope\":\"punctuation.definition.list.begin.markdown\",\"settings\":{\"foreground\":\"#a65e2b\"}},{\"scope\":[\"markup.heading\",\"markup.heading entity.name\"],\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#1c6b48\"}},{\"scope\":\"markup.quote\",\"settings\":{\"foreground\":\"#2e808f\"}},{\"scope\":\"markup.italic\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#393a34\"}},{\"scope\":\"markup.bold\",\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#393a34\"}},{\"scope\":\"markup.raw\",\"settings\":{\"foreground\":\"#1c6b48\"}},{\"scope\":[\"markup.deleted\",\"meta.diff.header.from-file\",\"punctuation.definition.deleted\"],\"settings\":{\"background\":\"#ffeef0\",\"foreground\":\"#b31d28\"}},{\"scope\":[\"markup.inserted\",\"meta.diff.header.to-file\",\"punctuation.definition.inserted\"],\"settings\":{\"background\":\"#f0fff4\",\"foreground\":\"#22863a\"}},{\"scope\":[\"markup.changed\",\"punctuation.definition.changed\"],\"settings\":{\"background\":\"#ffebda\",\"foreground\":\"#e36209\"}},{\"scope\":[\"markup.ignored\",\"markup.untracked\"],\"settings\":{\"background\":\"#005cc5\",\"foreground\":\"#f6f8fa\"}},{\"scope\":\"meta.diff.range\",\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#6f42c1\"}},{\"scope\":\"meta.diff.header\",\"settings\":{\"foreground\":\"#005cc5\"}},{\"scope\":\"meta.separator\",\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#005cc5\"}},{\"scope\":\"meta.output\",\"settings\":{\"foreground\":\"#005cc5\"}},{\"scope\":[\"brackethighlighter.tag\",\"brackethighlighter.curly\",\"brackethighlighter.round\",\"brackethighlighter.square\",\"brackethighlighter.angle\",\"brackethighlighter.quote\"],\"settings\":{\"foreground\":\"#586069\"}},{\"scope\":\"brackethighlighter.unmatched\",\"settings\":{\"foreground\":\"#b31d28\"}},{\"scope\":[\"constant.other.reference.link\",\"string.other.link\",\"punctuation.definition.string.begin.markdown\",\"punctuation.definition.string.end.markdown\"],\"settings\":{\"foreground\":\"#b56959\"}},{\"scope\":[\"markup.underline.link.markdown\",\"markup.underline.link.image.markdown\"],\"settings\":{\"fontStyle\":\"underline\",\"foreground\":\"#393a3490\"}},{\"scope\":[\"type.identifier\",\"constant.other.character-class.regexp\"],\"settings\":{\"foreground\":\"#5a6aa6\"}},{\"scope\":[\"entity.other.attribute-name.html.vue\"],\"settings\":{\"foreground\":\"#59873a\"}},{\"scope\":[\"invalid.illegal.unrecognized-tag.html\"],\"settings\":{\"fontStyle\":\"normal\"}}],\"type\":\"light\"}"));
|
|
4617
4609
|
//#endregion
|
|
4618
4610
|
//#region ../../node_modules/.pnpm/oniguruma-parser@0.12.1/node_modules/oniguruma-parser/dist/utils.js
|
|
4619
|
-
function
|
|
4611
|
+
function P(e) {
|
|
4620
4612
|
if ([...e].length !== 1) throw Error(`Expected "${e}" to be a single code point`);
|
|
4621
4613
|
return e.codePointAt(0);
|
|
4622
4614
|
}
|
|
4623
|
-
function
|
|
4615
|
+
function Ii(e, t, n) {
|
|
4624
4616
|
return e.has(t) || e.set(t, n), e.get(t);
|
|
4625
4617
|
}
|
|
4626
|
-
var
|
|
4618
|
+
var Li = /* @__PURE__ */ new Set([
|
|
4627
4619
|
"alnum",
|
|
4628
4620
|
"alpha",
|
|
4629
4621
|
"ascii",
|
|
@@ -4638,16 +4630,16 @@ var Hi = new Set([
|
|
|
4638
4630
|
"upper",
|
|
4639
4631
|
"word",
|
|
4640
4632
|
"xdigit"
|
|
4641
|
-
]),
|
|
4642
|
-
function
|
|
4633
|
+
]), F = String.raw;
|
|
4634
|
+
function I(e, t) {
|
|
4643
4635
|
if (e == null) throw Error(t ?? "Value expected");
|
|
4644
4636
|
return e;
|
|
4645
4637
|
}
|
|
4646
4638
|
//#endregion
|
|
4647
4639
|
//#region ../../node_modules/.pnpm/oniguruma-parser@0.12.1/node_modules/oniguruma-parser/dist/tokenizer/tokenize.js
|
|
4648
|
-
var
|
|
4640
|
+
var Ri = F`\[\^?`, zi = `c.? | C(?:-.?)?|${F`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${F`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${F`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${F`o\{[^\}]*\}?`}|${F`\d{1,3}`}`, Bi = /[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/, Vi = new RegExp(F`
|
|
4649
4641
|
\\ (?:
|
|
4650
|
-
${
|
|
4642
|
+
${zi}
|
|
4651
4643
|
| [gk]<[^>]*>?
|
|
4652
4644
|
| [gk]'[^']*'?
|
|
4653
4645
|
| .
|
|
@@ -4664,20 +4656,20 @@ var Ui = N`\[\^?`, Wi = `c.? | C(?:-.?)?|${N`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20
|
|
|
4664
4656
|
)?
|
|
4665
4657
|
| \*[^\)]*\)?
|
|
4666
4658
|
)?
|
|
4667
|
-
| (?:${
|
|
4668
|
-
| ${
|
|
4659
|
+
| (?:${Bi.source})+
|
|
4660
|
+
| ${Ri}
|
|
4669
4661
|
| .
|
|
4670
|
-
`.replace(/\s+/g, ""), "gsu"),
|
|
4662
|
+
`.replace(/\s+/g, ""), "gsu"), Hi = new RegExp(F`
|
|
4671
4663
|
\\ (?:
|
|
4672
|
-
${
|
|
4664
|
+
${zi}
|
|
4673
4665
|
| .
|
|
4674
4666
|
)
|
|
4675
4667
|
| \[:(?:\^?\p{Alpha}+|\^):\]
|
|
4676
|
-
| ${
|
|
4668
|
+
| ${Ri}
|
|
4677
4669
|
| &&
|
|
4678
4670
|
| .
|
|
4679
4671
|
`.replace(/\s+/g, ""), "gsu");
|
|
4680
|
-
function
|
|
4672
|
+
function Ui(e, t = {}) {
|
|
4681
4673
|
let n = {
|
|
4682
4674
|
flags: "",
|
|
4683
4675
|
...t,
|
|
@@ -4688,7 +4680,7 @@ function Ji(e, t = {}) {
|
|
|
4688
4680
|
}
|
|
4689
4681
|
};
|
|
4690
4682
|
if (typeof e != "string") throw Error("String expected as pattern");
|
|
4691
|
-
let r =
|
|
4683
|
+
let r = ga(n.flags), i = [r.extended], a = {
|
|
4692
4684
|
captureGroup: n.rules.captureGroup,
|
|
4693
4685
|
getCurrentModX() {
|
|
4694
4686
|
return i.at(-1);
|
|
@@ -4705,9 +4697,9 @@ function Ji(e, t = {}) {
|
|
|
4705
4697
|
},
|
|
4706
4698
|
singleline: n.rules.singleline
|
|
4707
4699
|
}, o = [], s;
|
|
4708
|
-
for (
|
|
4709
|
-
let t =
|
|
4710
|
-
t.tokens ? o.push(...t.tokens) : t.token && o.push(t.token), t.lastIndex !== void 0 && (
|
|
4700
|
+
for (Vi.lastIndex = 0; s = Vi.exec(e);) {
|
|
4701
|
+
let t = Wi(a, e, s[0], Vi.lastIndex);
|
|
4702
|
+
t.tokens ? o.push(...t.tokens) : t.token && o.push(t.token), t.lastIndex !== void 0 && (Vi.lastIndex = t.lastIndex);
|
|
4711
4703
|
}
|
|
4712
4704
|
let c = [], l = 0;
|
|
4713
4705
|
o.filter((e) => e.type === "GroupOpen").forEach((e) => {
|
|
@@ -4717,57 +4709,57 @@ function Ji(e, t = {}) {
|
|
|
4717
4709
|
});
|
|
4718
4710
|
let u = l || c.length;
|
|
4719
4711
|
return {
|
|
4720
|
-
tokens: o.map((e) => e.type === "EscapedNumber" ?
|
|
4712
|
+
tokens: o.map((e) => e.type === "EscapedNumber" ? va(e, u) : e).flat(),
|
|
4721
4713
|
flags: r
|
|
4722
4714
|
};
|
|
4723
4715
|
}
|
|
4724
|
-
function
|
|
4716
|
+
function Wi(e, t, n, r) {
|
|
4725
4717
|
let [i, a] = n;
|
|
4726
4718
|
if (n === "[" || n === "[^") {
|
|
4727
|
-
let e =
|
|
4719
|
+
let e = Gi(t, n, r);
|
|
4728
4720
|
return {
|
|
4729
4721
|
tokens: e.tokens,
|
|
4730
4722
|
lastIndex: e.lastIndex
|
|
4731
4723
|
};
|
|
4732
4724
|
}
|
|
4733
4725
|
if (i === "\\") {
|
|
4734
|
-
if ("AbBGyYzZ".includes(a)) return { token:
|
|
4726
|
+
if ("AbBGyYzZ".includes(a)) return { token: Yi(n, n) };
|
|
4735
4727
|
if (/^\\g[<']/.test(n)) {
|
|
4736
4728
|
if (!/^\\g(?:<[^>]+>|'[^']+')$/.test(n)) throw Error(`Invalid group name "${n}"`);
|
|
4737
|
-
return { token:
|
|
4729
|
+
return { token: oa(n) };
|
|
4738
4730
|
}
|
|
4739
4731
|
if (/^\\k[<']/.test(n)) {
|
|
4740
4732
|
if (!/^\\k(?:<[^>]+>|'[^']+')$/.test(n)) throw Error(`Invalid group name "${n}"`);
|
|
4741
|
-
return { token:
|
|
4733
|
+
return { token: Xi(n) };
|
|
4742
4734
|
}
|
|
4743
|
-
if (a === "K") return { token:
|
|
4744
|
-
if (a === "N" || a === "R") return { token:
|
|
4745
|
-
if (a === "O") return { token:
|
|
4746
|
-
if (a === "X") return { token:
|
|
4747
|
-
let e =
|
|
4735
|
+
if (a === "K") return { token: ta("keep", n) };
|
|
4736
|
+
if (a === "N" || a === "R") return { token: R("newline", n, { negate: a === "N" }) };
|
|
4737
|
+
if (a === "O") return { token: R("any", n) };
|
|
4738
|
+
if (a === "X") return { token: R("text_segment", n) };
|
|
4739
|
+
let e = qi(n, { inCharClass: !1 });
|
|
4748
4740
|
return Array.isArray(e) ? { tokens: e } : { token: e };
|
|
4749
4741
|
}
|
|
4750
4742
|
if (i === "(") {
|
|
4751
|
-
if (a === "*") return { token:
|
|
4743
|
+
if (a === "*") return { token: da(n) };
|
|
4752
4744
|
if (n === "(?{") throw Error(`Unsupported callout "${n}"`);
|
|
4753
4745
|
if (n.startsWith("(?#")) {
|
|
4754
4746
|
if (t[r] !== ")") throw Error("Unclosed comment group \"(?#\"");
|
|
4755
4747
|
return { lastIndex: r + 1 };
|
|
4756
4748
|
}
|
|
4757
|
-
if (/^\(\?[-imx]+[:)]$/.test(n)) return { token:
|
|
4758
|
-
if (e.pushModX(e.getCurrentModX()), e.numOpenGroups++, n === "(" && !e.captureGroup || n === "(?:") return { token:
|
|
4759
|
-
if (n === "(?>") return { token:
|
|
4760
|
-
if (n === "(?=" || n === "(?!" || n === "(?<=" || n === "(?<!") return { token:
|
|
4761
|
-
if (n === "(" && e.captureGroup || n.startsWith("(?<") && n.endsWith(">") || n.startsWith("(?'") && n.endsWith("'")) return { token:
|
|
4749
|
+
if (/^\(\?[-imx]+[:)]$/.test(n)) return { token: ua(n, e) };
|
|
4750
|
+
if (e.pushModX(e.getCurrentModX()), e.numOpenGroups++, n === "(" && !e.captureGroup || n === "(?:") return { token: z("group", n) };
|
|
4751
|
+
if (n === "(?>") return { token: z("atomic", n) };
|
|
4752
|
+
if (n === "(?=" || n === "(?!" || n === "(?<=" || n === "(?<!") return { token: z(n[2] === "<" ? "lookbehind" : "lookahead", n, { negate: n.endsWith("!") }) };
|
|
4753
|
+
if (n === "(" && e.captureGroup || n.startsWith("(?<") && n.endsWith(">") || n.startsWith("(?'") && n.endsWith("'")) return { token: z("capturing", n, { ...n !== "(" && { name: n.slice(3, -1) } }) };
|
|
4762
4754
|
if (n.startsWith("(?~")) {
|
|
4763
4755
|
if (n === "(?~|") throw Error(`Unsupported absence function kind "${n}"`);
|
|
4764
|
-
return { token:
|
|
4756
|
+
return { token: z("absence_repeater", n) };
|
|
4765
4757
|
}
|
|
4766
4758
|
throw Error(n === "(?(" ? `Unsupported conditional "${n}"` : `Invalid or unsupported group option "${n}"`);
|
|
4767
4759
|
}
|
|
4768
4760
|
if (n === ")") {
|
|
4769
4761
|
if (e.popModX(), e.numOpenGroups--, e.numOpenGroups < 0) throw Error("Unmatched \")\"");
|
|
4770
|
-
return { token:
|
|
4762
|
+
return { token: ra(n) };
|
|
4771
4763
|
}
|
|
4772
4764
|
if (e.getCurrentModX()) {
|
|
4773
4765
|
if (n === "#") {
|
|
@@ -4779,49 +4771,49 @@ function Yi(e, t, n, r) {
|
|
|
4779
4771
|
return e.lastIndex = r, { lastIndex: e.exec(t) ? e.lastIndex : r };
|
|
4780
4772
|
}
|
|
4781
4773
|
}
|
|
4782
|
-
return n === "." ? { token:
|
|
4783
|
-
"^":
|
|
4784
|
-
$:
|
|
4785
|
-
}[n] : n, n) } : n === "|" ? { token:
|
|
4774
|
+
return n === "." ? { token: R("dot", n) } : n === "^" || n === "$" ? { token: Yi(e.singleline ? {
|
|
4775
|
+
"^": F`\A`,
|
|
4776
|
+
$: F`\Z`
|
|
4777
|
+
}[n] : n, n) } : n === "|" ? { token: Ji(n) } : Bi.test(n) ? { tokens: ya(n) } : { token: L(P(n), n) };
|
|
4786
4778
|
}
|
|
4787
|
-
function
|
|
4788
|
-
let r = [
|
|
4789
|
-
for (
|
|
4779
|
+
function Gi(e, t, n) {
|
|
4780
|
+
let r = [ea(t[1] === "^", t)], i = 1, a;
|
|
4781
|
+
for (Hi.lastIndex = n; a = Hi.exec(e);) {
|
|
4790
4782
|
let e = a[0];
|
|
4791
|
-
if (e[0] === "[" && e[1] !== ":") i++, r.push(
|
|
4783
|
+
if (e[0] === "[" && e[1] !== ":") i++, r.push(ea(e[1] === "^", e));
|
|
4792
4784
|
else if (e === "]") {
|
|
4793
|
-
if (r.at(-1).type === "CharacterClassOpen") r.push(
|
|
4794
|
-
else if (i--, r.push(
|
|
4785
|
+
if (r.at(-1).type === "CharacterClassOpen") r.push(L(93, e));
|
|
4786
|
+
else if (i--, r.push(Zi(e)), !i) break;
|
|
4795
4787
|
} else {
|
|
4796
|
-
let t =
|
|
4788
|
+
let t = Ki(e);
|
|
4797
4789
|
Array.isArray(t) ? r.push(...t) : r.push(t);
|
|
4798
4790
|
}
|
|
4799
4791
|
}
|
|
4800
4792
|
return {
|
|
4801
4793
|
tokens: r,
|
|
4802
|
-
lastIndex:
|
|
4794
|
+
lastIndex: Hi.lastIndex || e.length
|
|
4803
4795
|
};
|
|
4804
4796
|
}
|
|
4805
|
-
function
|
|
4806
|
-
if (e[0] === "\\") return
|
|
4797
|
+
function Ki(e) {
|
|
4798
|
+
if (e[0] === "\\") return qi(e, { inCharClass: !0 });
|
|
4807
4799
|
if (e[0] === "[") {
|
|
4808
4800
|
let t = /\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);
|
|
4809
|
-
if (!t || !
|
|
4810
|
-
return
|
|
4801
|
+
if (!t || !Li.has(t.groups.name)) throw Error(`Invalid POSIX class "${e}"`);
|
|
4802
|
+
return R("posix", e, {
|
|
4811
4803
|
value: t.groups.name,
|
|
4812
4804
|
negate: !!t.groups.negate
|
|
4813
4805
|
});
|
|
4814
4806
|
}
|
|
4815
|
-
return e === "-" ?
|
|
4807
|
+
return e === "-" ? Qi(e) : e === "&&" ? $i(e) : L(P(e), e);
|
|
4816
4808
|
}
|
|
4817
|
-
function
|
|
4809
|
+
function qi(e, { inCharClass: t }) {
|
|
4818
4810
|
let n = e[1];
|
|
4819
|
-
if (n === "c" || n === "C") return
|
|
4820
|
-
if ("dDhHsSwW".includes(n)) return
|
|
4821
|
-
if (e.startsWith(
|
|
4811
|
+
if (n === "c" || n === "C") return la(e);
|
|
4812
|
+
if ("dDhHsSwW".includes(n)) return pa(e);
|
|
4813
|
+
if (e.startsWith(F`\o{`)) throw Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);
|
|
4822
4814
|
if (/^\\[pP]\{/.test(e)) {
|
|
4823
4815
|
if (e.length === 3) throw Error(`Incomplete or invalid Unicode property "${e}"`);
|
|
4824
|
-
return
|
|
4816
|
+
return ma(e);
|
|
4825
4817
|
}
|
|
4826
4818
|
if (/^\\x[89A-Fa-f]\p{AHex}/u.test(e)) try {
|
|
4827
4819
|
let t = e.split(/\\x/).slice(1).map((e) => parseInt(e, 16)), n = new TextDecoder("utf-8", {
|
|
@@ -4830,71 +4822,71 @@ function Qi(e, { inCharClass: t }) {
|
|
|
4830
4822
|
}).decode(new Uint8Array(t)), r = new TextEncoder();
|
|
4831
4823
|
return [...n].map((e) => {
|
|
4832
4824
|
let t = [...r.encode(e)].map((e) => `\\x${e.toString(16)}`).join("");
|
|
4833
|
-
return
|
|
4825
|
+
return L(P(e), t);
|
|
4834
4826
|
});
|
|
4835
4827
|
} catch {
|
|
4836
4828
|
throw Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`);
|
|
4837
4829
|
}
|
|
4838
|
-
if (n === "u" || n === "x") return
|
|
4839
|
-
if (
|
|
4840
|
-
if (/\d/.test(n)) return
|
|
4841
|
-
if (e === "\\") throw Error(
|
|
4830
|
+
if (n === "u" || n === "x") return L(_a(e), e);
|
|
4831
|
+
if (ca.has(n)) return L(ca.get(n), e);
|
|
4832
|
+
if (/\d/.test(n)) return na(t, e);
|
|
4833
|
+
if (e === "\\") throw Error(F`Incomplete escape "\"`);
|
|
4842
4834
|
if (n === "M") throw Error(`Unsupported meta "${e}"`);
|
|
4843
|
-
if ([...e].length === 2) return
|
|
4835
|
+
if ([...e].length === 2) return L(e.codePointAt(1), e);
|
|
4844
4836
|
throw Error(`Unexpected escape "${e}"`);
|
|
4845
4837
|
}
|
|
4846
|
-
function
|
|
4838
|
+
function Ji(e) {
|
|
4847
4839
|
return {
|
|
4848
4840
|
type: "Alternator",
|
|
4849
4841
|
raw: e
|
|
4850
4842
|
};
|
|
4851
4843
|
}
|
|
4852
|
-
function
|
|
4844
|
+
function Yi(e, t) {
|
|
4853
4845
|
return {
|
|
4854
4846
|
type: "Assertion",
|
|
4855
4847
|
kind: e,
|
|
4856
4848
|
raw: t
|
|
4857
4849
|
};
|
|
4858
4850
|
}
|
|
4859
|
-
function
|
|
4851
|
+
function Xi(e) {
|
|
4860
4852
|
return {
|
|
4861
4853
|
type: "Backreference",
|
|
4862
4854
|
raw: e
|
|
4863
4855
|
};
|
|
4864
4856
|
}
|
|
4865
|
-
function
|
|
4857
|
+
function L(e, t) {
|
|
4866
4858
|
return {
|
|
4867
4859
|
type: "Character",
|
|
4868
4860
|
value: e,
|
|
4869
4861
|
raw: t
|
|
4870
4862
|
};
|
|
4871
4863
|
}
|
|
4872
|
-
function
|
|
4864
|
+
function Zi(e) {
|
|
4873
4865
|
return {
|
|
4874
4866
|
type: "CharacterClassClose",
|
|
4875
4867
|
raw: e
|
|
4876
4868
|
};
|
|
4877
4869
|
}
|
|
4878
|
-
function
|
|
4870
|
+
function Qi(e) {
|
|
4879
4871
|
return {
|
|
4880
4872
|
type: "CharacterClassHyphen",
|
|
4881
4873
|
raw: e
|
|
4882
4874
|
};
|
|
4883
4875
|
}
|
|
4884
|
-
function
|
|
4876
|
+
function $i(e) {
|
|
4885
4877
|
return {
|
|
4886
4878
|
type: "CharacterClassIntersector",
|
|
4887
4879
|
raw: e
|
|
4888
4880
|
};
|
|
4889
4881
|
}
|
|
4890
|
-
function
|
|
4882
|
+
function ea(e, t) {
|
|
4891
4883
|
return {
|
|
4892
4884
|
type: "CharacterClassOpen",
|
|
4893
4885
|
negate: e,
|
|
4894
4886
|
raw: t
|
|
4895
4887
|
};
|
|
4896
4888
|
}
|
|
4897
|
-
function
|
|
4889
|
+
function R(e, t, n = {}) {
|
|
4898
4890
|
return {
|
|
4899
4891
|
type: "CharacterSet",
|
|
4900
4892
|
kind: e,
|
|
@@ -4902,7 +4894,7 @@ function I(e, t, n = {}) {
|
|
|
4902
4894
|
raw: t
|
|
4903
4895
|
};
|
|
4904
4896
|
}
|
|
4905
|
-
function
|
|
4897
|
+
function ta(e, t, n = {}) {
|
|
4906
4898
|
return e === "keep" ? {
|
|
4907
4899
|
type: "Directive",
|
|
4908
4900
|
kind: e,
|
|
@@ -4910,24 +4902,24 @@ function oa(e, t, n = {}) {
|
|
|
4910
4902
|
} : {
|
|
4911
4903
|
type: "Directive",
|
|
4912
4904
|
kind: e,
|
|
4913
|
-
flags:
|
|
4905
|
+
flags: I(n.flags),
|
|
4914
4906
|
raw: t
|
|
4915
4907
|
};
|
|
4916
4908
|
}
|
|
4917
|
-
function
|
|
4909
|
+
function na(e, t) {
|
|
4918
4910
|
return {
|
|
4919
4911
|
type: "EscapedNumber",
|
|
4920
4912
|
inCharClass: e,
|
|
4921
4913
|
raw: t
|
|
4922
4914
|
};
|
|
4923
4915
|
}
|
|
4924
|
-
function
|
|
4916
|
+
function ra(e) {
|
|
4925
4917
|
return {
|
|
4926
4918
|
type: "GroupClose",
|
|
4927
4919
|
raw: e
|
|
4928
4920
|
};
|
|
4929
4921
|
}
|
|
4930
|
-
function
|
|
4922
|
+
function z(e, t, n = {}) {
|
|
4931
4923
|
return {
|
|
4932
4924
|
type: "GroupOpen",
|
|
4933
4925
|
kind: e,
|
|
@@ -4935,7 +4927,7 @@ function L(e, t, n = {}) {
|
|
|
4935
4927
|
raw: t
|
|
4936
4928
|
};
|
|
4937
4929
|
}
|
|
4938
|
-
function
|
|
4930
|
+
function ia(e, t, n, r) {
|
|
4939
4931
|
return {
|
|
4940
4932
|
type: "NamedCallout",
|
|
4941
4933
|
kind: e,
|
|
@@ -4944,7 +4936,7 @@ function la(e, t, n, r) {
|
|
|
4944
4936
|
raw: r
|
|
4945
4937
|
};
|
|
4946
4938
|
}
|
|
4947
|
-
function
|
|
4939
|
+
function aa(e, t, n, r) {
|
|
4948
4940
|
return {
|
|
4949
4941
|
type: "Quantifier",
|
|
4950
4942
|
kind: e,
|
|
@@ -4953,13 +4945,13 @@ function ua(e, t, n, r) {
|
|
|
4953
4945
|
raw: r
|
|
4954
4946
|
};
|
|
4955
4947
|
}
|
|
4956
|
-
function
|
|
4948
|
+
function oa(e) {
|
|
4957
4949
|
return {
|
|
4958
4950
|
type: "Subroutine",
|
|
4959
4951
|
raw: e
|
|
4960
4952
|
};
|
|
4961
4953
|
}
|
|
4962
|
-
var
|
|
4954
|
+
var sa = /* @__PURE__ */ new Set([
|
|
4963
4955
|
"COUNT",
|
|
4964
4956
|
"CMP",
|
|
4965
4957
|
"ERROR",
|
|
@@ -4968,7 +4960,7 @@ var fa = new Set([
|
|
|
4968
4960
|
"MISMATCH",
|
|
4969
4961
|
"SKIP",
|
|
4970
4962
|
"TOTAL_COUNT"
|
|
4971
|
-
]),
|
|
4963
|
+
]), ca = /* @__PURE__ */ new Map([
|
|
4972
4964
|
["a", 7],
|
|
4973
4965
|
["b", 8],
|
|
4974
4966
|
["e", 27],
|
|
@@ -4978,26 +4970,26 @@ var fa = new Set([
|
|
|
4978
4970
|
["t", 9],
|
|
4979
4971
|
["v", 11]
|
|
4980
4972
|
]);
|
|
4981
|
-
function
|
|
4973
|
+
function la(e) {
|
|
4982
4974
|
let t = e[1] === "c" ? e[2] : e[3];
|
|
4983
4975
|
if (!t || !/[A-Za-z]/.test(t)) throw Error(`Unsupported control character "${e}"`);
|
|
4984
|
-
return
|
|
4976
|
+
return L(P(t.toUpperCase()) - 64, e);
|
|
4985
4977
|
}
|
|
4986
|
-
function
|
|
4978
|
+
function ua(e, t) {
|
|
4987
4979
|
let { on: n, off: r } = /^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;
|
|
4988
4980
|
r ??= "";
|
|
4989
|
-
let i = (t.getCurrentModX() || n.includes("x")) && !r.includes("x"), a =
|
|
4990
|
-
if (a && (s.enable = a), o && (s.disable = o), e.endsWith(")")) return t.replaceCurrentModX(i),
|
|
4991
|
-
if (e.endsWith(":")) return t.pushModX(i), t.numOpenGroups++,
|
|
4981
|
+
let i = (t.getCurrentModX() || n.includes("x")) && !r.includes("x"), a = ha(n), o = ha(r), s = {};
|
|
4982
|
+
if (a && (s.enable = a), o && (s.disable = o), e.endsWith(")")) return t.replaceCurrentModX(i), ta("flags", e, { flags: s });
|
|
4983
|
+
if (e.endsWith(":")) return t.pushModX(i), t.numOpenGroups++, z("group", e, { ...(a || o) && { flags: s } });
|
|
4992
4984
|
throw Error(`Unexpected flag modifier "${e}"`);
|
|
4993
4985
|
}
|
|
4994
|
-
function
|
|
4986
|
+
function da(e) {
|
|
4995
4987
|
let t = /\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);
|
|
4996
4988
|
if (!t) throw Error(`Incomplete or invalid named callout "${e}"`);
|
|
4997
4989
|
let { name: n, tag: r, args: i } = t.groups;
|
|
4998
4990
|
if (!n) throw Error(`Invalid named callout "${e}"`);
|
|
4999
4991
|
if (r === "") throw Error(`Named callout tag with empty value not allowed "${e}"`);
|
|
5000
|
-
let a = i ? i.split(",").filter((e) => e !== "").map((e) => /^[+-]?\d+$/.test(e) ? +e : e) : [], [o, s, c] = a, l =
|
|
4992
|
+
let a = i ? i.split(",").filter((e) => e !== "").map((e) => /^[+-]?\d+$/.test(e) ? +e : e) : [], [o, s, c] = a, l = sa.has(n) ? n.toLowerCase() : "custom";
|
|
5001
4993
|
switch (l) {
|
|
5002
4994
|
case "fail":
|
|
5003
4995
|
case "mismatch":
|
|
@@ -5027,9 +5019,9 @@ function ga(e) {
|
|
|
5027
5019
|
case "custom": throw Error(`Undefined callout name "${n}"`);
|
|
5028
5020
|
default: throw Error(`Unexpected named callout kind "${l}"`);
|
|
5029
5021
|
}
|
|
5030
|
-
return
|
|
5022
|
+
return ia(l, r ?? null, i?.split(",") ?? null, e);
|
|
5031
5023
|
}
|
|
5032
|
-
function
|
|
5024
|
+
function fa(e) {
|
|
5033
5025
|
let t = null, n, r;
|
|
5034
5026
|
if (e[0] === "{") {
|
|
5035
5027
|
let { minStr: i, maxStr: a } = /^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups, o = 1e5;
|
|
@@ -5038,30 +5030,30 @@ function _a(e) {
|
|
|
5038
5030
|
if (t === "possessive") throw Error("Unsupported possessive interval quantifier chain with \"?\"");
|
|
5039
5031
|
t = "lazy";
|
|
5040
5032
|
} else t ||= "greedy";
|
|
5041
|
-
} else n = e[0] === "+"
|
|
5042
|
-
return
|
|
5033
|
+
} else n = +(e[0] === "+"), r = e[0] === "?" ? 1 : Infinity, t = e[1] === "+" ? "possessive" : e[1] === "?" ? "lazy" : "greedy";
|
|
5034
|
+
return aa(t, n, r, e);
|
|
5043
5035
|
}
|
|
5044
|
-
function
|
|
5036
|
+
function pa(e) {
|
|
5045
5037
|
let t = e[1].toLowerCase();
|
|
5046
|
-
return
|
|
5038
|
+
return R({
|
|
5047
5039
|
d: "digit",
|
|
5048
5040
|
h: "hex",
|
|
5049
5041
|
s: "space",
|
|
5050
5042
|
w: "word"
|
|
5051
5043
|
}[t], e, { negate: e[1] !== t });
|
|
5052
5044
|
}
|
|
5053
|
-
function
|
|
5045
|
+
function ma(e) {
|
|
5054
5046
|
let { p: t, neg: n, value: r } = /^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;
|
|
5055
|
-
return
|
|
5047
|
+
return R("property", e, {
|
|
5056
5048
|
value: r,
|
|
5057
5049
|
negate: t === "P" && !n || t === "p" && !!n
|
|
5058
5050
|
});
|
|
5059
5051
|
}
|
|
5060
|
-
function
|
|
5052
|
+
function ha(e) {
|
|
5061
5053
|
let t = {};
|
|
5062
5054
|
return e.includes("i") && (t.ignoreCase = !0), e.includes("m") && (t.dotAll = !0), e.includes("x") && (t.extended = !0), Object.keys(t).length ? t : null;
|
|
5063
5055
|
}
|
|
5064
|
-
function
|
|
5056
|
+
function ga(e) {
|
|
5065
5057
|
let t = {
|
|
5066
5058
|
ignoreCase: !1,
|
|
5067
5059
|
dotAll: !1,
|
|
@@ -5092,26 +5084,26 @@ function xa(e) {
|
|
|
5092
5084
|
}
|
|
5093
5085
|
return t;
|
|
5094
5086
|
}
|
|
5095
|
-
function
|
|
5087
|
+
function _a(e) {
|
|
5096
5088
|
if (/^(?:\\u(?!\p{AHex}{4})|\\x(?!\p{AHex}{1,2}|\{\p{AHex}{1,8}\}))/u.test(e)) throw Error(`Incomplete or invalid escape "${e}"`);
|
|
5097
5089
|
let t = e[2] === "{" ? /^\\x\{\s*(?<hex>\p{AHex}+)/u.exec(e).groups.hex : e.slice(2);
|
|
5098
5090
|
return parseInt(t, 16);
|
|
5099
5091
|
}
|
|
5100
|
-
function
|
|
5092
|
+
function va(e, t) {
|
|
5101
5093
|
let { raw: n, inCharClass: r } = e, i = n.slice(1);
|
|
5102
|
-
if (!r && (i !== "0" && i.length === 1 || i[0] !== "0" && +i <= t)) return [
|
|
5094
|
+
if (!r && (i !== "0" && i.length === 1 || i[0] !== "0" && +i <= t)) return [Xi(n)];
|
|
5103
5095
|
let a = [], o = i.match(/^[0-7]+|\d/g);
|
|
5104
5096
|
for (let e = 0; e < o.length; e++) {
|
|
5105
5097
|
let t = o[e], r;
|
|
5106
5098
|
if (e === 0 && t !== "8" && t !== "9") {
|
|
5107
|
-
if (r = parseInt(t, 8), r > 127) throw Error(
|
|
5108
|
-
} else r =
|
|
5109
|
-
a.push(
|
|
5099
|
+
if (r = parseInt(t, 8), r > 127) throw Error(F`Octal encoded byte above 177 unsupported "${n}"`);
|
|
5100
|
+
} else r = P(t);
|
|
5101
|
+
a.push(L(r, (e === 0 ? "\\" : "") + t));
|
|
5110
5102
|
}
|
|
5111
5103
|
return a;
|
|
5112
5104
|
}
|
|
5113
|
-
function
|
|
5114
|
-
let t = [], n = new RegExp(
|
|
5105
|
+
function ya(e) {
|
|
5106
|
+
let t = [], n = new RegExp(Bi, "gy"), r;
|
|
5115
5107
|
for (; r = n.exec(e);) {
|
|
5116
5108
|
let e = r[0];
|
|
5117
5109
|
if (e[0] === "{") {
|
|
@@ -5119,27 +5111,27 @@ function wa(e) {
|
|
|
5119
5111
|
if (r) {
|
|
5120
5112
|
let { min: i, max: a } = r.groups;
|
|
5121
5113
|
if (+i > +a && e.endsWith("?")) {
|
|
5122
|
-
n.lastIndex--, t.push(
|
|
5114
|
+
n.lastIndex--, t.push(fa(e.slice(0, -1)));
|
|
5123
5115
|
continue;
|
|
5124
5116
|
}
|
|
5125
5117
|
}
|
|
5126
5118
|
}
|
|
5127
|
-
t.push(
|
|
5119
|
+
t.push(fa(e));
|
|
5128
5120
|
}
|
|
5129
5121
|
return t;
|
|
5130
5122
|
}
|
|
5131
5123
|
//#endregion
|
|
5132
5124
|
//#region ../../node_modules/.pnpm/oniguruma-parser@0.12.1/node_modules/oniguruma-parser/dist/parser/node-utils.js
|
|
5133
|
-
function
|
|
5125
|
+
function ba(e, t) {
|
|
5134
5126
|
if (!Array.isArray(e.body)) throw Error("Expected node with body array");
|
|
5135
5127
|
if (e.body.length !== 1) return !1;
|
|
5136
5128
|
let n = e.body[0];
|
|
5137
5129
|
return !t || Object.keys(t).every((e) => t[e] === n[e]);
|
|
5138
5130
|
}
|
|
5139
|
-
function
|
|
5140
|
-
return
|
|
5131
|
+
function xa(e) {
|
|
5132
|
+
return Sa.has(e.type);
|
|
5141
5133
|
}
|
|
5142
|
-
var
|
|
5134
|
+
var Sa = /* @__PURE__ */ new Set([
|
|
5143
5135
|
"AbsenceFunction",
|
|
5144
5136
|
"Backreference",
|
|
5145
5137
|
"CapturingGroup",
|
|
@@ -5152,7 +5144,7 @@ var Da = new Set([
|
|
|
5152
5144
|
]);
|
|
5153
5145
|
//#endregion
|
|
5154
5146
|
//#region ../../node_modules/.pnpm/oniguruma-parser@0.12.1/node_modules/oniguruma-parser/dist/parser/parse.js
|
|
5155
|
-
function
|
|
5147
|
+
function Ca(e, t = {}) {
|
|
5156
5148
|
let n = {
|
|
5157
5149
|
flags: "",
|
|
5158
5150
|
normalizeUnknownPropertyNames: !1,
|
|
@@ -5166,7 +5158,7 @@ function Oa(e, t = {}) {
|
|
|
5166
5158
|
singleline: !1,
|
|
5167
5159
|
...t.rules
|
|
5168
5160
|
}
|
|
5169
|
-
}, r =
|
|
5161
|
+
}, r = Ui(e, {
|
|
5170
5162
|
flags: n.flags,
|
|
5171
5163
|
rules: {
|
|
5172
5164
|
captureGroup: n.rules.captureGroup,
|
|
@@ -5175,18 +5167,18 @@ function Oa(e, t = {}) {
|
|
|
5175
5167
|
}), i = (e, t) => {
|
|
5176
5168
|
let n = r.tokens[a.nextIndex];
|
|
5177
5169
|
switch (a.parent = e, a.nextIndex++, n.type) {
|
|
5178
|
-
case "Alternator": return
|
|
5179
|
-
case "Assertion": return
|
|
5180
|
-
case "Backreference": return
|
|
5181
|
-
case "Character": return
|
|
5182
|
-
case "CharacterClassHyphen": return
|
|
5183
|
-
case "CharacterClassOpen": return
|
|
5184
|
-
case "CharacterSet": return
|
|
5185
|
-
case "Directive": return
|
|
5186
|
-
case "GroupOpen": return
|
|
5187
|
-
case "NamedCallout": return
|
|
5188
|
-
case "Quantifier": return
|
|
5189
|
-
case "Subroutine": return
|
|
5170
|
+
case "Alternator": return B();
|
|
5171
|
+
case "Assertion": return wa(n);
|
|
5172
|
+
case "Backreference": return Ta(n, a);
|
|
5173
|
+
case "Character": return Ia(n.value, { useLastValid: !!t.isCheckingRangeEnd });
|
|
5174
|
+
case "CharacterClassHyphen": return Ea(n, a, t);
|
|
5175
|
+
case "CharacterClassOpen": return Da(n, a, t);
|
|
5176
|
+
case "CharacterSet": return Oa(n, a);
|
|
5177
|
+
case "Directive": return Ba(n.kind, { flags: n.flags });
|
|
5178
|
+
case "GroupOpen": return ka(n, a, t);
|
|
5179
|
+
case "NamedCallout": return Ha(n.kind, n.tag, n.arguments);
|
|
5180
|
+
case "Quantifier": return Aa(n, a);
|
|
5181
|
+
case "Subroutine": return ja(n, a);
|
|
5190
5182
|
default: throw Error(`Unexpected token type "${n.type}"`);
|
|
5191
5183
|
}
|
|
5192
5184
|
}, a = {
|
|
@@ -5203,7 +5195,7 @@ function Oa(e, t = {}) {
|
|
|
5203
5195
|
tokens: r.tokens,
|
|
5204
5196
|
unicodePropertyMap: n.unicodePropertyMap,
|
|
5205
5197
|
walk: i
|
|
5206
|
-
}, o =
|
|
5198
|
+
}, o = Ga(Va(r.flags)), s = o.body[0];
|
|
5207
5199
|
for (; a.nextIndex < r.tokens.length;) {
|
|
5208
5200
|
let e = i(s, {});
|
|
5209
5201
|
e.type === "Alternative" ? (o.body.push(e), s = e) : s.body.push(e);
|
|
@@ -5214,13 +5206,13 @@ function Oa(e, t = {}) {
|
|
|
5214
5206
|
if (e > c.length) throw Error("Subroutine uses a group number that's not defined");
|
|
5215
5207
|
e && (c[e - 1].isSubroutined = !0);
|
|
5216
5208
|
} else if (u.has(e)) {
|
|
5217
|
-
if (u.get(e).length > 1) throw Error(
|
|
5209
|
+
if (u.get(e).length > 1) throw Error(F`Subroutine uses a duplicate group name "\g<${e}>"`);
|
|
5218
5210
|
u.get(e)[0].isSubroutined = !0;
|
|
5219
|
-
} else throw Error(
|
|
5211
|
+
} else throw Error(F`Subroutine uses a group name that's not defined "\g<${e}>"`);
|
|
5220
5212
|
return o;
|
|
5221
5213
|
}
|
|
5222
|
-
function
|
|
5223
|
-
return
|
|
5214
|
+
function wa({ kind: e }) {
|
|
5215
|
+
return Na(I({
|
|
5224
5216
|
"^": "line_start",
|
|
5225
5217
|
$: "line_end",
|
|
5226
5218
|
"\\A": "string_start",
|
|
@@ -5231,69 +5223,69 @@ function ka({ kind: e }) {
|
|
|
5231
5223
|
"\\Y": "text_segment_boundary",
|
|
5232
5224
|
"\\z": "string_end",
|
|
5233
5225
|
"\\Z": "string_end_newline"
|
|
5234
|
-
}[e], `Unexpected assertion kind "${e}"`), { negate: e ===
|
|
5226
|
+
}[e], `Unexpected assertion kind "${e}"`), { negate: e === F`\B` || e === F`\Y` });
|
|
5235
5227
|
}
|
|
5236
|
-
function
|
|
5228
|
+
function Ta({ raw: e }, t) {
|
|
5237
5229
|
let n = /^\\k[<']/.test(e), r = n ? e.slice(3, -1) : e.slice(1), i = (n, r = !1) => {
|
|
5238
5230
|
let i = t.capturingGroups.length, a = !1;
|
|
5239
5231
|
if (n > i) if (t.skipBackrefValidation) a = !0;
|
|
5240
5232
|
else throw Error(`Not enough capturing groups defined to the left "${e}"`);
|
|
5241
|
-
return t.hasNumberedRef = !0,
|
|
5233
|
+
return t.hasNumberedRef = !0, Pa(r ? i + 1 - n : n, { orphan: a });
|
|
5242
5234
|
};
|
|
5243
5235
|
if (n) {
|
|
5244
5236
|
let n = /^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);
|
|
5245
5237
|
if (n) return i(+n.groups.num, !!n.groups.sign);
|
|
5246
5238
|
if (/[-+]/.test(r)) throw Error(`Invalid backref name "${e}"`);
|
|
5247
5239
|
if (!t.namedGroupsByName.has(r)) throw Error(`Group name not defined to the left "${e}"`);
|
|
5248
|
-
return
|
|
5240
|
+
return Pa(r);
|
|
5249
5241
|
}
|
|
5250
5242
|
return i(+r);
|
|
5251
5243
|
}
|
|
5252
|
-
function
|
|
5244
|
+
function Ea(e, t, n) {
|
|
5253
5245
|
let { tokens: r, walk: i } = t, a = t.parent, o = a.body.at(-1), s = r[t.nextIndex];
|
|
5254
5246
|
if (!n.isCheckingRangeEnd && o && o.type !== "CharacterClass" && o.type !== "CharacterClassRange" && s && s.type !== "CharacterClassOpen" && s.type !== "CharacterClassClose" && s.type !== "CharacterClassIntersector") {
|
|
5255
5247
|
let e = i(a, {
|
|
5256
5248
|
...n,
|
|
5257
5249
|
isCheckingRangeEnd: !0
|
|
5258
5250
|
});
|
|
5259
|
-
if (o.type === "Character" && e.type === "Character") return a.body.pop(),
|
|
5251
|
+
if (o.type === "Character" && e.type === "Character") return a.body.pop(), Ra(o, e);
|
|
5260
5252
|
throw Error("Invalid character class range");
|
|
5261
5253
|
}
|
|
5262
|
-
return
|
|
5254
|
+
return Ia(P("-"));
|
|
5263
5255
|
}
|
|
5264
|
-
function
|
|
5265
|
-
let { tokens: r, walk: i } = t, a = r[t.nextIndex], o = [
|
|
5256
|
+
function Da({ negate: e }, t, n) {
|
|
5257
|
+
let { tokens: r, walk: i } = t, a = r[t.nextIndex], o = [La()], s = no(a);
|
|
5266
5258
|
for (; s.type !== "CharacterClassClose";) {
|
|
5267
|
-
if (s.type === "CharacterClassIntersector") o.push(
|
|
5259
|
+
if (s.type === "CharacterClassIntersector") o.push(La()), t.nextIndex++;
|
|
5268
5260
|
else {
|
|
5269
5261
|
let e = o.at(-1);
|
|
5270
5262
|
e.body.push(i(e, n));
|
|
5271
5263
|
}
|
|
5272
|
-
s =
|
|
5264
|
+
s = no(r[t.nextIndex], a);
|
|
5273
5265
|
}
|
|
5274
|
-
let c =
|
|
5266
|
+
let c = La({ negate: e });
|
|
5275
5267
|
return o.length === 1 ? c.body = o[0].body : (c.kind = "intersection", c.body = o.map((e) => e.body.length === 1 ? e.body[0] : e)), t.nextIndex++, c;
|
|
5276
5268
|
}
|
|
5277
|
-
function
|
|
5269
|
+
function Oa({ kind: e, negate: t, value: n }, r) {
|
|
5278
5270
|
let { normalizeUnknownPropertyNames: i, skipPropertyNameValidation: a, unicodePropertyMap: o } = r;
|
|
5279
5271
|
if (e === "property") {
|
|
5280
|
-
let r =
|
|
5281
|
-
if (
|
|
5282
|
-
else return
|
|
5272
|
+
let r = to(n);
|
|
5273
|
+
if (Li.has(r) && !o?.has(r)) e = "posix", n = r;
|
|
5274
|
+
else return qa(n, {
|
|
5283
5275
|
negate: t,
|
|
5284
5276
|
normalizeUnknownPropertyNames: i,
|
|
5285
5277
|
skipPropertyNameValidation: a,
|
|
5286
5278
|
unicodePropertyMap: o
|
|
5287
5279
|
});
|
|
5288
5280
|
}
|
|
5289
|
-
return e === "posix" ?
|
|
5281
|
+
return e === "posix" ? Ua(n, { negate: t }) : za(e, { negate: t });
|
|
5290
5282
|
}
|
|
5291
|
-
function
|
|
5292
|
-
let { tokens: r, capturingGroups: i, namedGroupsByName: a, skipLookbehindValidation: o, walk: s } = t, c =
|
|
5293
|
-
if (c.type === "CapturingGroup" && (i.push(c), c.name &&
|
|
5294
|
-
let f =
|
|
5283
|
+
function ka(e, t, n) {
|
|
5284
|
+
let { tokens: r, capturingGroups: i, namedGroupsByName: a, skipLookbehindValidation: o, walk: s } = t, c = Ja(e), l = c.type === "AbsenceFunction", u = Qa(c), d = u && c.negate;
|
|
5285
|
+
if (c.type === "CapturingGroup" && (i.push(c), c.name && Ii(a, c.name, []).push(c)), l && n.isInAbsenceFunction) throw Error("Nested absence function not supported by Oniguruma");
|
|
5286
|
+
let f = ro(r[t.nextIndex]);
|
|
5295
5287
|
for (; f.type !== "GroupClose";) {
|
|
5296
|
-
if (f.type === "Alternator") c.body.push(
|
|
5288
|
+
if (f.type === "Alternator") c.body.push(B()), t.nextIndex++;
|
|
5297
5289
|
else {
|
|
5298
5290
|
let e = c.body.at(-1), t = s(e, {
|
|
5299
5291
|
...n,
|
|
@@ -5304,21 +5296,21 @@ function Pa(e, t, n) {
|
|
|
5304
5296
|
if (e.body.push(t), (u || n.isInLookbehind) && !o) {
|
|
5305
5297
|
let e = "Lookbehind includes a pattern not allowed by Oniguruma";
|
|
5306
5298
|
if (d || n.isInNegLookbehind) {
|
|
5307
|
-
if (
|
|
5308
|
-
} else if (
|
|
5299
|
+
if (Za(t) || t.type === "CapturingGroup") throw Error(e);
|
|
5300
|
+
} else if (Za(t) || Qa(t) && t.negate) throw Error(e);
|
|
5309
5301
|
}
|
|
5310
5302
|
}
|
|
5311
|
-
f =
|
|
5303
|
+
f = ro(r[t.nextIndex]);
|
|
5312
5304
|
}
|
|
5313
5305
|
return t.nextIndex++, c;
|
|
5314
5306
|
}
|
|
5315
|
-
function
|
|
5307
|
+
function Aa({ kind: e, min: t, max: n }, r) {
|
|
5316
5308
|
let i = r.parent, a = i.body.at(-1);
|
|
5317
|
-
if (!a || !
|
|
5318
|
-
let o =
|
|
5309
|
+
if (!a || !xa(a)) throw Error("Quantifier requires a repeatable token");
|
|
5310
|
+
let o = Wa(e, t, n, a);
|
|
5319
5311
|
return i.body.pop(), o;
|
|
5320
5312
|
}
|
|
5321
|
-
function
|
|
5313
|
+
function ja({ raw: e }, t) {
|
|
5322
5314
|
let { capturingGroups: n, subroutines: r } = t, i = e.slice(3, -1), a = /^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(i);
|
|
5323
5315
|
if (a) {
|
|
5324
5316
|
let e = +a.groups.num, r = n.length;
|
|
@@ -5328,31 +5320,31 @@ function Ia({ raw: e }, t) {
|
|
|
5328
5320
|
"-": r + 1 - e
|
|
5329
5321
|
}[a.groups.sign], i < 1) throw Error("Invalid subroutine number");
|
|
5330
5322
|
} else i === "0" && (i = 0);
|
|
5331
|
-
let o =
|
|
5323
|
+
let o = Ka(i);
|
|
5332
5324
|
return r.push(o), o;
|
|
5333
5325
|
}
|
|
5334
|
-
function
|
|
5326
|
+
function Ma(e, t) {
|
|
5335
5327
|
if (e !== "repeater") throw Error(`Unexpected absence function kind "${e}"`);
|
|
5336
5328
|
return {
|
|
5337
5329
|
type: "AbsenceFunction",
|
|
5338
5330
|
kind: e,
|
|
5339
|
-
body:
|
|
5331
|
+
body: Ya(t?.body)
|
|
5340
5332
|
};
|
|
5341
5333
|
}
|
|
5342
|
-
function
|
|
5334
|
+
function B(e) {
|
|
5343
5335
|
return {
|
|
5344
5336
|
type: "Alternative",
|
|
5345
|
-
body:
|
|
5337
|
+
body: Xa(e?.body)
|
|
5346
5338
|
};
|
|
5347
5339
|
}
|
|
5348
|
-
function
|
|
5340
|
+
function Na(e, t) {
|
|
5349
5341
|
let n = {
|
|
5350
5342
|
type: "Assertion",
|
|
5351
5343
|
kind: e
|
|
5352
5344
|
};
|
|
5353
5345
|
return (e === "word_boundary" || e === "text_segment_boundary") && (n.negate = !!t?.negate), n;
|
|
5354
5346
|
}
|
|
5355
|
-
function
|
|
5347
|
+
function Pa(e, t) {
|
|
5356
5348
|
let n = !!t?.orphan;
|
|
5357
5349
|
return {
|
|
5358
5350
|
type: "Backreference",
|
|
@@ -5360,22 +5352,22 @@ function za(e, t) {
|
|
|
5360
5352
|
...n && { orphan: n }
|
|
5361
5353
|
};
|
|
5362
5354
|
}
|
|
5363
|
-
function
|
|
5355
|
+
function Fa(e, t) {
|
|
5364
5356
|
let n = {
|
|
5365
5357
|
name: void 0,
|
|
5366
5358
|
isSubroutined: !1,
|
|
5367
5359
|
...t
|
|
5368
5360
|
};
|
|
5369
|
-
if (n.name !== void 0 &&
|
|
5361
|
+
if (n.name !== void 0 && !$a(n.name)) throw Error(`Group name "${n.name}" invalid in Oniguruma`);
|
|
5370
5362
|
return {
|
|
5371
5363
|
type: "CapturingGroup",
|
|
5372
5364
|
number: e,
|
|
5373
5365
|
...n.name && { name: n.name },
|
|
5374
5366
|
...n.isSubroutined && { isSubroutined: n.isSubroutined },
|
|
5375
|
-
body:
|
|
5367
|
+
body: Ya(t?.body)
|
|
5376
5368
|
};
|
|
5377
5369
|
}
|
|
5378
|
-
function
|
|
5370
|
+
function Ia(e, t) {
|
|
5379
5371
|
let n = {
|
|
5380
5372
|
useLastValid: !1,
|
|
5381
5373
|
...t
|
|
@@ -5390,7 +5382,7 @@ function Va(e, t) {
|
|
|
5390
5382
|
value: e
|
|
5391
5383
|
};
|
|
5392
5384
|
}
|
|
5393
|
-
function
|
|
5385
|
+
function La(e) {
|
|
5394
5386
|
let t = {
|
|
5395
5387
|
kind: "union",
|
|
5396
5388
|
negate: !1,
|
|
@@ -5400,10 +5392,10 @@ function Ha(e) {
|
|
|
5400
5392
|
type: "CharacterClass",
|
|
5401
5393
|
kind: t.kind,
|
|
5402
5394
|
negate: t.negate,
|
|
5403
|
-
body:
|
|
5395
|
+
body: Xa(e?.body)
|
|
5404
5396
|
};
|
|
5405
5397
|
}
|
|
5406
|
-
function
|
|
5398
|
+
function Ra(e, t) {
|
|
5407
5399
|
if (t.value < e.value) throw Error("Character class range out of order");
|
|
5408
5400
|
return {
|
|
5409
5401
|
type: "CharacterClassRange",
|
|
@@ -5411,14 +5403,14 @@ function Ua(e, t) {
|
|
|
5411
5403
|
max: t
|
|
5412
5404
|
};
|
|
5413
5405
|
}
|
|
5414
|
-
function
|
|
5406
|
+
function za(e, t) {
|
|
5415
5407
|
let n = !!t?.negate, r = {
|
|
5416
5408
|
type: "CharacterSet",
|
|
5417
5409
|
kind: e
|
|
5418
5410
|
};
|
|
5419
5411
|
return (e === "digit" || e === "hex" || e === "newline" || e === "space" || e === "word") && (r.negate = n), (e === "text_segment" || e === "newline" && !n) && (r.variableLength = !0), r;
|
|
5420
5412
|
}
|
|
5421
|
-
function
|
|
5413
|
+
function Ba(e, t = {}) {
|
|
5422
5414
|
if (e === "keep") return {
|
|
5423
5415
|
type: "Directive",
|
|
5424
5416
|
kind: e
|
|
@@ -5426,27 +5418,27 @@ function Ga(e, t = {}) {
|
|
|
5426
5418
|
if (e === "flags") return {
|
|
5427
5419
|
type: "Directive",
|
|
5428
5420
|
kind: e,
|
|
5429
|
-
flags:
|
|
5421
|
+
flags: I(t.flags)
|
|
5430
5422
|
};
|
|
5431
5423
|
throw Error(`Unexpected directive kind "${e}"`);
|
|
5432
5424
|
}
|
|
5433
|
-
function
|
|
5425
|
+
function Va(e) {
|
|
5434
5426
|
return {
|
|
5435
5427
|
type: "Flags",
|
|
5436
5428
|
...e
|
|
5437
5429
|
};
|
|
5438
5430
|
}
|
|
5439
|
-
function
|
|
5431
|
+
function V(e) {
|
|
5440
5432
|
let t = e?.atomic, n = e?.flags;
|
|
5441
5433
|
if (t && n) throw Error("Atomic group cannot have flags");
|
|
5442
5434
|
return {
|
|
5443
5435
|
type: "Group",
|
|
5444
5436
|
...t && { atomic: t },
|
|
5445
5437
|
...n && { flags: n },
|
|
5446
|
-
body:
|
|
5438
|
+
body: Ya(e?.body)
|
|
5447
5439
|
};
|
|
5448
5440
|
}
|
|
5449
|
-
function
|
|
5441
|
+
function H(e) {
|
|
5450
5442
|
let t = {
|
|
5451
5443
|
behind: !1,
|
|
5452
5444
|
negate: !1,
|
|
@@ -5456,10 +5448,10 @@ function B(e) {
|
|
|
5456
5448
|
type: "LookaroundAssertion",
|
|
5457
5449
|
kind: t.behind ? "lookbehind" : "lookahead",
|
|
5458
5450
|
negate: t.negate,
|
|
5459
|
-
body:
|
|
5451
|
+
body: Ya(e?.body)
|
|
5460
5452
|
};
|
|
5461
5453
|
}
|
|
5462
|
-
function
|
|
5454
|
+
function Ha(e, t, n) {
|
|
5463
5455
|
return {
|
|
5464
5456
|
type: "NamedCallout",
|
|
5465
5457
|
kind: e,
|
|
@@ -5467,9 +5459,9 @@ function qa(e, t, n) {
|
|
|
5467
5459
|
arguments: n
|
|
5468
5460
|
};
|
|
5469
5461
|
}
|
|
5470
|
-
function
|
|
5462
|
+
function Ua(e, t) {
|
|
5471
5463
|
let n = !!t?.negate;
|
|
5472
|
-
if (!
|
|
5464
|
+
if (!Li.has(e)) throw Error(`Invalid POSIX class "${e}"`);
|
|
5473
5465
|
return {
|
|
5474
5466
|
type: "CharacterSet",
|
|
5475
5467
|
kind: "posix",
|
|
@@ -5477,7 +5469,7 @@ function Ja(e, t) {
|
|
|
5477
5469
|
negate: n
|
|
5478
5470
|
};
|
|
5479
5471
|
}
|
|
5480
|
-
function
|
|
5472
|
+
function Wa(e, t, n, r) {
|
|
5481
5473
|
if (t > n) throw Error("Invalid reversed quantifier range");
|
|
5482
5474
|
return {
|
|
5483
5475
|
type: "Quantifier",
|
|
@@ -5487,30 +5479,30 @@ function Ya(e, t, n, r) {
|
|
|
5487
5479
|
body: r
|
|
5488
5480
|
};
|
|
5489
5481
|
}
|
|
5490
|
-
function
|
|
5482
|
+
function Ga(e, t) {
|
|
5491
5483
|
return {
|
|
5492
5484
|
type: "Regex",
|
|
5493
|
-
body:
|
|
5485
|
+
body: Ya(t?.body),
|
|
5494
5486
|
flags: e
|
|
5495
5487
|
};
|
|
5496
5488
|
}
|
|
5497
|
-
function
|
|
5489
|
+
function Ka(e) {
|
|
5498
5490
|
return {
|
|
5499
5491
|
type: "Subroutine",
|
|
5500
5492
|
ref: e
|
|
5501
5493
|
};
|
|
5502
5494
|
}
|
|
5503
|
-
function
|
|
5495
|
+
function qa(e, t) {
|
|
5504
5496
|
let n = {
|
|
5505
5497
|
negate: !1,
|
|
5506
5498
|
normalizeUnknownPropertyNames: !1,
|
|
5507
5499
|
skipPropertyNameValidation: !1,
|
|
5508
5500
|
unicodePropertyMap: null,
|
|
5509
5501
|
...t
|
|
5510
|
-
}, r = n.unicodePropertyMap?.get(
|
|
5502
|
+
}, r = n.unicodePropertyMap?.get(to(e));
|
|
5511
5503
|
if (!r) {
|
|
5512
|
-
if (n.normalizeUnknownPropertyNames) r =
|
|
5513
|
-
else if (n.unicodePropertyMap && !n.skipPropertyNameValidation) throw Error(
|
|
5504
|
+
if (n.normalizeUnknownPropertyNames) r = eo(e);
|
|
5505
|
+
else if (n.unicodePropertyMap && !n.skipPropertyNameValidation) throw Error(F`Invalid Unicode property "\p{${e}}"`);
|
|
5514
5506
|
}
|
|
5515
5507
|
return {
|
|
5516
5508
|
type: "CharacterSet",
|
|
@@ -5519,54 +5511,54 @@ function V(e, t) {
|
|
|
5519
5511
|
negate: n.negate
|
|
5520
5512
|
};
|
|
5521
5513
|
}
|
|
5522
|
-
function
|
|
5514
|
+
function Ja({ flags: e, kind: t, name: n, negate: r, number: i }) {
|
|
5523
5515
|
switch (t) {
|
|
5524
|
-
case "absence_repeater": return
|
|
5525
|
-
case "atomic": return
|
|
5526
|
-
case "capturing": return
|
|
5527
|
-
case "group": return
|
|
5516
|
+
case "absence_repeater": return Ma("repeater");
|
|
5517
|
+
case "atomic": return V({ atomic: !0 });
|
|
5518
|
+
case "capturing": return Fa(i, { name: n });
|
|
5519
|
+
case "group": return V({ flags: e });
|
|
5528
5520
|
case "lookahead":
|
|
5529
|
-
case "lookbehind": return
|
|
5521
|
+
case "lookbehind": return H({
|
|
5530
5522
|
behind: t === "lookbehind",
|
|
5531
5523
|
negate: r
|
|
5532
5524
|
});
|
|
5533
5525
|
default: throw Error(`Unexpected group kind "${t}"`);
|
|
5534
5526
|
}
|
|
5535
5527
|
}
|
|
5536
|
-
function
|
|
5537
|
-
if (e === void 0) e = [
|
|
5528
|
+
function Ya(e) {
|
|
5529
|
+
if (e === void 0) e = [B()];
|
|
5538
5530
|
else if (!Array.isArray(e) || !e.length || !e.every((e) => e.type === "Alternative")) throw Error("Invalid body; expected array of one or more Alternative nodes");
|
|
5539
5531
|
return e;
|
|
5540
5532
|
}
|
|
5541
|
-
function
|
|
5533
|
+
function Xa(e) {
|
|
5542
5534
|
if (e === void 0) e = [];
|
|
5543
5535
|
else if (!Array.isArray(e) || !e.every((e) => !!e.type)) throw Error("Invalid body; expected array of nodes");
|
|
5544
5536
|
return e;
|
|
5545
5537
|
}
|
|
5546
|
-
function
|
|
5538
|
+
function Za(e) {
|
|
5547
5539
|
return e.type === "LookaroundAssertion" && e.kind === "lookahead";
|
|
5548
5540
|
}
|
|
5549
|
-
function
|
|
5541
|
+
function Qa(e) {
|
|
5550
5542
|
return e.type === "LookaroundAssertion" && e.kind === "lookbehind";
|
|
5551
5543
|
}
|
|
5552
|
-
function
|
|
5544
|
+
function $a(e) {
|
|
5553
5545
|
return /^[\p{Alpha}\p{Pc}][^)]*$/u.test(e);
|
|
5554
5546
|
}
|
|
5555
|
-
function
|
|
5547
|
+
function eo(e) {
|
|
5556
5548
|
return e.trim().replace(/[- _]+/g, "_").replace(/[A-Z][a-z]+(?=[A-Z])/g, "$&_").replace(/[A-Za-z]+/g, (e) => e[0].toUpperCase() + e.slice(1).toLowerCase());
|
|
5557
5549
|
}
|
|
5558
|
-
function
|
|
5550
|
+
function to(e) {
|
|
5559
5551
|
return e.replace(/[- _]+/g, "").toLowerCase();
|
|
5560
5552
|
}
|
|
5561
|
-
function
|
|
5562
|
-
return
|
|
5553
|
+
function no(e, t) {
|
|
5554
|
+
return I(e, `${t?.type === "Character" && t.value === 93 ? "Empty" : "Unclosed"} character class`);
|
|
5563
5555
|
}
|
|
5564
|
-
function
|
|
5565
|
-
return
|
|
5556
|
+
function ro(e) {
|
|
5557
|
+
return I(e, "Unclosed group");
|
|
5566
5558
|
}
|
|
5567
5559
|
//#endregion
|
|
5568
5560
|
//#region ../../node_modules/.pnpm/oniguruma-parser@0.12.1/node_modules/oniguruma-parser/dist/traverser/traverse.js
|
|
5569
|
-
function
|
|
5561
|
+
function io(e, t, n = null) {
|
|
5570
5562
|
function r(e, t) {
|
|
5571
5563
|
for (let n = 0; n < e.length; n++) {
|
|
5572
5564
|
let r = i(e[n], t, n, e);
|
|
@@ -5581,24 +5573,24 @@ function co(e, t, n = null) {
|
|
|
5581
5573
|
container: c,
|
|
5582
5574
|
root: e,
|
|
5583
5575
|
remove() {
|
|
5584
|
-
|
|
5576
|
+
ao(c).splice(Math.max(0, oo(s) + l), 1), l--, u = !0;
|
|
5585
5577
|
},
|
|
5586
5578
|
removeAllNextSiblings() {
|
|
5587
|
-
return
|
|
5579
|
+
return ao(c).splice(oo(s) + 1);
|
|
5588
5580
|
},
|
|
5589
5581
|
removeAllPrevSiblings() {
|
|
5590
|
-
let e =
|
|
5591
|
-
return l -= e,
|
|
5582
|
+
let e = oo(s) + l;
|
|
5583
|
+
return l -= e, ao(c).splice(0, Math.max(0, e));
|
|
5592
5584
|
},
|
|
5593
5585
|
replaceWith(e, t = {}) {
|
|
5594
5586
|
let n = !!t.traverse;
|
|
5595
|
-
c ? c[Math.max(0,
|
|
5587
|
+
c ? c[Math.max(0, oo(s) + l)] = e : I(o, "Can't replace root node")[s] = e, n && i(e, o, s, c), u = !0;
|
|
5596
5588
|
},
|
|
5597
5589
|
replaceWithMultiple(e, t = {}) {
|
|
5598
5590
|
let n = !!t.traverse;
|
|
5599
|
-
if (
|
|
5591
|
+
if (ao(c).splice(Math.max(0, oo(s) + l), 1, ...e), l += e.length - 1, n) {
|
|
5600
5592
|
let t = 0;
|
|
5601
|
-
for (let n = 0; n < e.length; n++) t += i(e[n], o,
|
|
5593
|
+
for (let n = 0; n < e.length; n++) t += i(e[n], o, oo(s) + n + t, c);
|
|
5602
5594
|
}
|
|
5603
5595
|
u = !0;
|
|
5604
5596
|
},
|
|
@@ -5642,21 +5634,21 @@ function co(e, t, n = null) {
|
|
|
5642
5634
|
}
|
|
5643
5635
|
return i(e), e;
|
|
5644
5636
|
}
|
|
5645
|
-
function
|
|
5637
|
+
function ao(e) {
|
|
5646
5638
|
if (!Array.isArray(e)) throw Error("Container expected");
|
|
5647
5639
|
return e;
|
|
5648
5640
|
}
|
|
5649
|
-
function
|
|
5641
|
+
function oo(e) {
|
|
5650
5642
|
if (typeof e != "number") throw Error("Numeric key expected");
|
|
5651
5643
|
return e;
|
|
5652
5644
|
}
|
|
5653
5645
|
//#endregion
|
|
5654
5646
|
//#region ../../node_modules/.pnpm/regex@6.1.0/node_modules/regex/src/utils-internals.js
|
|
5655
|
-
var
|
|
5656
|
-
function
|
|
5647
|
+
var so = String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;
|
|
5648
|
+
function co(e, t) {
|
|
5657
5649
|
for (let n = 0; n < e.length; n++) e[n] >= t && e[n]++;
|
|
5658
5650
|
}
|
|
5659
|
-
function
|
|
5651
|
+
function lo(e, t, n, r) {
|
|
5660
5652
|
return e.slice(0, t) + r + e.slice(t + n.length);
|
|
5661
5653
|
}
|
|
5662
5654
|
//#endregion
|
|
@@ -5665,7 +5657,7 @@ var U = Object.freeze({
|
|
|
5665
5657
|
DEFAULT: "DEFAULT",
|
|
5666
5658
|
CHAR_CLASS: "CHAR_CLASS"
|
|
5667
5659
|
});
|
|
5668
|
-
function
|
|
5660
|
+
function uo(e, t, n, r) {
|
|
5669
5661
|
let i = new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`, "gsu"), a = [!1], o = 0, s = "";
|
|
5670
5662
|
for (let t of e.matchAll(i)) {
|
|
5671
5663
|
let { 0: e, groups: { $skip: i } } = t;
|
|
@@ -5680,10 +5672,10 @@ function mo(e, t, n, r) {
|
|
|
5680
5672
|
}
|
|
5681
5673
|
return s;
|
|
5682
5674
|
}
|
|
5683
|
-
function
|
|
5684
|
-
|
|
5675
|
+
function fo(e, t, n, r) {
|
|
5676
|
+
uo(e, t, n, r);
|
|
5685
5677
|
}
|
|
5686
|
-
function
|
|
5678
|
+
function po(e, t, n = 0, r) {
|
|
5687
5679
|
if (!new RegExp(t, "su").test(e)) return null;
|
|
5688
5680
|
let i = RegExp(`${t}|(?<$skip>\\\\?.)`, "gsu");
|
|
5689
5681
|
i.lastIndex = n;
|
|
@@ -5695,10 +5687,10 @@ function go(e, t, n = 0, r) {
|
|
|
5695
5687
|
}
|
|
5696
5688
|
return null;
|
|
5697
5689
|
}
|
|
5698
|
-
function
|
|
5699
|
-
return !!
|
|
5690
|
+
function mo(e, t, n) {
|
|
5691
|
+
return !!po(e, t, 0, n);
|
|
5700
5692
|
}
|
|
5701
|
-
function
|
|
5693
|
+
function ho(e, t) {
|
|
5702
5694
|
let n = /\\?./gsu;
|
|
5703
5695
|
n.lastIndex = t;
|
|
5704
5696
|
let r = e.length, i = 0, a = 1, o;
|
|
@@ -5716,8 +5708,8 @@ function vo(e, t) {
|
|
|
5716
5708
|
}
|
|
5717
5709
|
//#endregion
|
|
5718
5710
|
//#region ../../node_modules/.pnpm/regex@6.1.0/node_modules/regex/src/atomic.js
|
|
5719
|
-
var
|
|
5720
|
-
function
|
|
5711
|
+
var go = new RegExp(String.raw`(?<noncapturingStart>${so})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`, "gsu");
|
|
5712
|
+
function _o(e, t) {
|
|
5721
5713
|
let n = t?.hiddenCaptures ?? [], r = t?.captureTransfers ?? /* @__PURE__ */ new Map();
|
|
5722
5714
|
if (!/\(\?>/.test(e)) return {
|
|
5723
5715
|
pattern: e,
|
|
@@ -5728,7 +5720,7 @@ function bo(e, t) {
|
|
|
5728
5720
|
do {
|
|
5729
5721
|
l = !1;
|
|
5730
5722
|
let t = 0, u = 0, d = !1, f;
|
|
5731
|
-
for (
|
|
5723
|
+
for (go.lastIndex = Number.isNaN(c) ? 0 : c + 7; f = go.exec(e);) {
|
|
5732
5724
|
let { 0: p, index: m, groups: { capturingStart: h, noncapturingStart: g } } = f;
|
|
5733
5725
|
if (p === "[") t++;
|
|
5734
5726
|
else if (t) p === "]" && t--;
|
|
@@ -5739,7 +5731,7 @@ function bo(e, t) {
|
|
|
5739
5731
|
if (!u) {
|
|
5740
5732
|
s++;
|
|
5741
5733
|
let t = o + s;
|
|
5742
|
-
if (e = `${e.slice(0, c)}(?:(?=(${e.slice(c + 3, m)}))<$$${t}>)${e.slice(m + 1)}`, l = !0, a.push(t),
|
|
5734
|
+
if (e = `${e.slice(0, c)}(?:(?=(${e.slice(c + 3, m)}))<$$${t}>)${e.slice(m + 1)}`, l = !0, a.push(t), co(n, t), r.size) {
|
|
5743
5735
|
let e = /* @__PURE__ */ new Map();
|
|
5744
5736
|
r.forEach((n, r) => {
|
|
5745
5737
|
e.set(r >= t ? r + 1 : r, n.map((e) => e >= t ? e + 1 : e));
|
|
@@ -5751,7 +5743,7 @@ function bo(e, t) {
|
|
|
5751
5743
|
}
|
|
5752
5744
|
}
|
|
5753
5745
|
} while (l);
|
|
5754
|
-
return n.push(...a), e =
|
|
5746
|
+
return n.push(...a), e = uo(e, String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`, ({ 0: e, groups: { backrefNum: t, wrappedBackrefNum: n } }) => {
|
|
5755
5747
|
if (t) {
|
|
5756
5748
|
let n = +t;
|
|
5757
5749
|
if (n > i.length - 1) throw Error(`Backref "${e}" greater than number of captures`);
|
|
@@ -5764,7 +5756,7 @@ function bo(e, t) {
|
|
|
5764
5756
|
hiddenCaptures: n
|
|
5765
5757
|
};
|
|
5766
5758
|
}
|
|
5767
|
-
var
|
|
5759
|
+
var vo = String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`, yo = new RegExp(String.raw`
|
|
5768
5760
|
\\(?: \d+
|
|
5769
5761
|
| c[A-Za-z]
|
|
5770
5762
|
| [gk]<[^>]+>
|
|
@@ -5777,20 +5769,20 @@ var xo = String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`, So = new RegExp(String.raw`
|
|
|
5777
5769
|
| [A-Za-z\-]+:
|
|
5778
5770
|
| \(DEFINE\)
|
|
5779
5771
|
))?
|
|
5780
|
-
| (?<qBase>${
|
|
5772
|
+
| (?<qBase>${vo})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
|
|
5781
5773
|
| \\?.
|
|
5782
5774
|
`.replace(/\s+/g, ""), "gsu");
|
|
5783
|
-
function
|
|
5784
|
-
if (!RegExp(`${
|
|
5775
|
+
function bo(e) {
|
|
5776
|
+
if (!RegExp(`${vo}\\+`).test(e)) return { pattern: e };
|
|
5785
5777
|
let t = [], n = null, r = null, i = "", a = 0, o;
|
|
5786
|
-
for (
|
|
5778
|
+
for (yo.lastIndex = 0; o = yo.exec(e);) {
|
|
5787
5779
|
let { 0: s, index: c, groups: { qBase: l, qMod: u, invalidQ: d } } = o;
|
|
5788
5780
|
if (s === "[") a || (r = c), a++;
|
|
5789
5781
|
else if (s === "]") a ? a-- : r = null;
|
|
5790
5782
|
else if (!a) if (u === "+" && i && !i.startsWith("(")) {
|
|
5791
5783
|
if (d) throw Error(`Invalid quantifier "${s}"`);
|
|
5792
5784
|
let t = -1;
|
|
5793
|
-
if (/^\{\d+\}$/.test(l)) e =
|
|
5785
|
+
if (/^\{\d+\}$/.test(l)) e = lo(e, c + l.length, u, "");
|
|
5794
5786
|
else {
|
|
5795
5787
|
if (i === ")" || i === "]") {
|
|
5796
5788
|
let t = i === ")" ? n : r;
|
|
@@ -5799,7 +5791,7 @@ function Co(e) {
|
|
|
5799
5791
|
} else e = `${e.slice(0, c - i.length)}(?>${i}${l})${e.slice(c + s.length)}`;
|
|
5800
5792
|
t += 4;
|
|
5801
5793
|
}
|
|
5802
|
-
|
|
5794
|
+
yo.lastIndex += t;
|
|
5803
5795
|
} else s[0] === "(" ? t.push(c) : s === ")" && (n = t.length ? t.pop() : null);
|
|
5804
5796
|
i = s;
|
|
5805
5797
|
}
|
|
@@ -5807,44 +5799,44 @@ function Co(e) {
|
|
|
5807
5799
|
}
|
|
5808
5800
|
//#endregion
|
|
5809
5801
|
//#region ../../node_modules/.pnpm/regex-recursion@6.0.2/node_modules/regex-recursion/src/index.js
|
|
5810
|
-
var W = String.raw,
|
|
5811
|
-
function
|
|
5802
|
+
var W = String.raw, xo = W`\(\?R=(?<rDepth>[^\)]+)\)|${W`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`}`, So = W`\(\?<(?![=!])(?<captureName>[^>]+)>`, Co = W`${So}|(?<unnamed>\()(?!\?)`, G = new RegExp(W`${So}|${xo}|\(\?|\\?.`, "gsu"), wo = "Cannot use multiple overlapping recursions";
|
|
5803
|
+
function To(e, t) {
|
|
5812
5804
|
let { hiddenCaptures: n, mode: r } = {
|
|
5813
5805
|
hiddenCaptures: [],
|
|
5814
5806
|
mode: "plugin",
|
|
5815
5807
|
...t
|
|
5816
5808
|
}, i = t?.captureTransfers ?? /* @__PURE__ */ new Map();
|
|
5817
|
-
if (!new RegExp(
|
|
5809
|
+
if (!new RegExp(xo, "su").test(e)) return {
|
|
5818
5810
|
pattern: e,
|
|
5819
5811
|
captureTransfers: i,
|
|
5820
5812
|
hiddenCaptures: n
|
|
5821
5813
|
};
|
|
5822
|
-
if (r === "plugin" &&
|
|
5823
|
-
let a = [], o =
|
|
5814
|
+
if (r === "plugin" && mo(e, W`\(\?\(DEFINE\)`, U.DEFAULT)) throw Error("DEFINE groups cannot be used with recursion");
|
|
5815
|
+
let a = [], o = mo(e, W`\\[1-9]`, U.DEFAULT), s = /* @__PURE__ */ new Map(), c = [], l = !1, u = 0, d = 0, f;
|
|
5824
5816
|
for (G.lastIndex = 0; f = G.exec(e);) {
|
|
5825
5817
|
let { 0: t, groups: { captureName: p, rDepth: m, gRNameOrNum: h, gRDepth: g } } = f;
|
|
5826
5818
|
if (t === "[") u++;
|
|
5827
5819
|
else if (u) t === "]" && u--;
|
|
5828
5820
|
else if (m) {
|
|
5829
|
-
if (
|
|
5821
|
+
if (Eo(m), l) throw Error(wo);
|
|
5830
5822
|
if (o) throw Error(`${r === "external" ? "Backrefs" : "Numbered backrefs"} cannot be used with global recursion`);
|
|
5831
5823
|
let t = e.slice(0, f.index), s = e.slice(G.lastIndex);
|
|
5832
|
-
if (
|
|
5824
|
+
if (mo(s, xo, U.DEFAULT)) throw Error(wo);
|
|
5833
5825
|
let c = m - 1;
|
|
5834
|
-
e =
|
|
5826
|
+
e = Do(t, s, c, !1, n, a, d), i = Ao(i, t, c, a.length, 0, d);
|
|
5835
5827
|
break;
|
|
5836
5828
|
} else if (h) {
|
|
5837
|
-
|
|
5829
|
+
Eo(g);
|
|
5838
5830
|
let u = !1;
|
|
5839
5831
|
for (let e of c) if (e.name === h || e.num === +h) {
|
|
5840
|
-
if (u = !0, e.hasRecursedWithin) throw Error(
|
|
5832
|
+
if (u = !0, e.hasRecursedWithin) throw Error(wo);
|
|
5841
5833
|
break;
|
|
5842
5834
|
}
|
|
5843
5835
|
if (!u) throw Error(W`Recursive \g cannot be used outside the referenced group "${r === "external" ? h : W`\g<${h}&R=${g}>`}"`);
|
|
5844
|
-
let p = s.get(h), m =
|
|
5845
|
-
if (o &&
|
|
5846
|
-
let _ = e.slice(p, f.index), ee = m.slice(_.length + t.length), te = a.length, ne = g - 1, re =
|
|
5847
|
-
i =
|
|
5836
|
+
let p = s.get(h), m = ho(e, p);
|
|
5837
|
+
if (o && mo(m, W`${So}|\((?!\?)`, U.DEFAULT)) throw Error(`${r === "external" ? "Backrefs" : "Numbered backrefs"} cannot be used with recursion of capturing groups`);
|
|
5838
|
+
let _ = e.slice(p, f.index), ee = m.slice(_.length + t.length), te = a.length, ne = g - 1, re = Do(_, ee, ne, !0, n, a, d);
|
|
5839
|
+
i = Ao(i, _, ne, a.length - te, te, d), e = `${e.slice(0, p)}${re}${e.slice(p + m.length)}`, G.lastIndex += re.length - t.length - _.length - ee.length, c.forEach((e) => e.hasRecursedWithin = !0), l = !0;
|
|
5848
5840
|
} else if (p) d++, s.set(String(d), G.lastIndex), s.set(p, G.lastIndex), c.push({
|
|
5849
5841
|
num: d,
|
|
5850
5842
|
name: p
|
|
@@ -5860,13 +5852,13 @@ function Oo(e, t) {
|
|
|
5860
5852
|
hiddenCaptures: n
|
|
5861
5853
|
};
|
|
5862
5854
|
}
|
|
5863
|
-
function
|
|
5855
|
+
function Eo(e) {
|
|
5864
5856
|
let t = `Max depth must be integer between 2 and 100; used ${e}`;
|
|
5865
5857
|
if (!/^[1-9]\d*$/.test(e) || (e = +e, e < 2 || e > 100)) throw Error(t);
|
|
5866
5858
|
}
|
|
5867
|
-
function
|
|
5859
|
+
function Do(e, t, n, r, i, a, o) {
|
|
5868
5860
|
let s = /* @__PURE__ */ new Set();
|
|
5869
|
-
r &&
|
|
5861
|
+
r && fo(e + t, So, ({ groups: { captureName: e } }) => {
|
|
5870
5862
|
s.add(e);
|
|
5871
5863
|
}, U.DEFAULT);
|
|
5872
5864
|
let c = [
|
|
@@ -5876,31 +5868,31 @@ function Ao(e, t, n, r, i, a, o) {
|
|
|
5876
5868
|
a,
|
|
5877
5869
|
o
|
|
5878
5870
|
];
|
|
5879
|
-
return `${e}${
|
|
5871
|
+
return `${e}${Oo(`(?:${e}`, "forward", ...c)}(?:)${Oo(`${t})`, "backward", ...c)}${t}`;
|
|
5880
5872
|
}
|
|
5881
|
-
function
|
|
5873
|
+
function Oo(e, t, n, r, i, a, o) {
|
|
5882
5874
|
let s = (e) => t === "forward" ? e + 2 : n - e + 2 - 1, c = "";
|
|
5883
5875
|
for (let t = 0; t < n; t++) {
|
|
5884
5876
|
let n = s(t);
|
|
5885
|
-
c +=
|
|
5877
|
+
c += uo(e, W`${Co}|\\k<(?<backref>[^>]+)>`, ({ 0: e, groups: { captureName: t, unnamed: s, backref: c } }) => {
|
|
5886
5878
|
if (c && r && !r.has(c)) return e;
|
|
5887
5879
|
let l = `_$${n}`;
|
|
5888
5880
|
if (s || t) {
|
|
5889
5881
|
let n = o + a.length + 1;
|
|
5890
|
-
return a.push(n),
|
|
5882
|
+
return a.push(n), ko(i, n), s ? e : `(?<${t}${l}>`;
|
|
5891
5883
|
}
|
|
5892
5884
|
return W`\k<${c}${l}>`;
|
|
5893
5885
|
}, U.DEFAULT);
|
|
5894
5886
|
}
|
|
5895
5887
|
return c;
|
|
5896
5888
|
}
|
|
5897
|
-
function
|
|
5889
|
+
function ko(e, t) {
|
|
5898
5890
|
for (let n = 0; n < e.length; n++) e[n] >= t && e[n]++;
|
|
5899
5891
|
}
|
|
5900
|
-
function
|
|
5892
|
+
function Ao(e, t, n, r, i, a) {
|
|
5901
5893
|
if (e.size && r) {
|
|
5902
5894
|
let o = 0;
|
|
5903
|
-
|
|
5895
|
+
fo(t, Co, () => o++, U.DEFAULT);
|
|
5904
5896
|
let s = a - o + i, c = /* @__PURE__ */ new Map();
|
|
5905
5897
|
return e.forEach((e, t) => {
|
|
5906
5898
|
let i = (r - o * n) / n, a = o * n, l = t > s + o ? t + r : t, u = [];
|
|
@@ -5915,58 +5907,58 @@ function No(e, t, n, r, i, a) {
|
|
|
5915
5907
|
}
|
|
5916
5908
|
//#endregion
|
|
5917
5909
|
//#region ../../node_modules/.pnpm/oniguruma-to-es@4.3.5/node_modules/oniguruma-to-es/dist/esm/index.js
|
|
5918
|
-
var K = String.fromCodePoint, q = String.raw, J = {},
|
|
5910
|
+
var K = String.fromCodePoint, q = String.raw, J = {}, jo = globalThis.RegExp;
|
|
5919
5911
|
J.flagGroups = (() => {
|
|
5920
5912
|
try {
|
|
5921
|
-
new
|
|
5913
|
+
new jo("(?i:)");
|
|
5922
5914
|
} catch {
|
|
5923
5915
|
return !1;
|
|
5924
5916
|
}
|
|
5925
5917
|
return !0;
|
|
5926
5918
|
})(), J.unicodeSets = (() => {
|
|
5927
5919
|
try {
|
|
5928
|
-
new
|
|
5920
|
+
new jo("[[]]", "v");
|
|
5929
5921
|
} catch {
|
|
5930
5922
|
return !1;
|
|
5931
5923
|
}
|
|
5932
5924
|
return !0;
|
|
5933
5925
|
})(), J.bugFlagVLiteralHyphenIsRange = J.unicodeSets ? (() => {
|
|
5934
5926
|
try {
|
|
5935
|
-
new
|
|
5927
|
+
new jo(q`[\d\-a]`, "v");
|
|
5936
5928
|
} catch {
|
|
5937
5929
|
return !0;
|
|
5938
5930
|
}
|
|
5939
5931
|
return !1;
|
|
5940
|
-
})() : !1, J.bugNestedClassIgnoresNegation = J.unicodeSets && new
|
|
5941
|
-
function
|
|
5932
|
+
})() : !1, J.bugNestedClassIgnoresNegation = J.unicodeSets && new jo("[[^a]]", "v").test("a");
|
|
5933
|
+
function Mo(e, { enable: t, disable: n }) {
|
|
5942
5934
|
return {
|
|
5943
5935
|
dotAll: !n?.dotAll && !!(t?.dotAll || e.dotAll),
|
|
5944
5936
|
ignoreCase: !n?.ignoreCase && !!(t?.ignoreCase || e.ignoreCase)
|
|
5945
5937
|
};
|
|
5946
5938
|
}
|
|
5947
|
-
function
|
|
5939
|
+
function No(e, t, n) {
|
|
5948
5940
|
return e.has(t) || e.set(t, n), e.get(t);
|
|
5949
5941
|
}
|
|
5950
|
-
function
|
|
5951
|
-
return
|
|
5942
|
+
function Po(e, t) {
|
|
5943
|
+
return Io[e] >= Io[t];
|
|
5952
5944
|
}
|
|
5953
|
-
function
|
|
5945
|
+
function Fo(e, t) {
|
|
5954
5946
|
if (e == null) throw Error(t ?? "Value expected");
|
|
5955
5947
|
return e;
|
|
5956
5948
|
}
|
|
5957
|
-
var
|
|
5949
|
+
var Io = {
|
|
5958
5950
|
ES2025: 2025,
|
|
5959
5951
|
ES2024: 2024,
|
|
5960
5952
|
ES2018: 2018
|
|
5961
|
-
},
|
|
5953
|
+
}, Lo = {
|
|
5962
5954
|
auto: "auto",
|
|
5963
5955
|
ES2025: "ES2025",
|
|
5964
5956
|
ES2024: "ES2024",
|
|
5965
5957
|
ES2018: "ES2018"
|
|
5966
5958
|
};
|
|
5967
|
-
function
|
|
5959
|
+
function Ro(e = {}) {
|
|
5968
5960
|
if ({}.toString.call(e) !== "[object Object]") throw Error("Unexpected options");
|
|
5969
|
-
if (e.target !== void 0 && !
|
|
5961
|
+
if (e.target !== void 0 && !Lo[e.target]) throw Error(`Unexpected target "${e.target}"`);
|
|
5970
5962
|
let t = {
|
|
5971
5963
|
accuracy: "default",
|
|
5972
5964
|
avoidSubclass: !1,
|
|
@@ -5988,29 +5980,29 @@ function Vo(e = {}) {
|
|
|
5988
5980
|
};
|
|
5989
5981
|
return t.target === "auto" && (t.target = J.flagGroups ? "ES2025" : J.unicodeSets ? "ES2024" : "ES2018"), t;
|
|
5990
5982
|
}
|
|
5991
|
-
var
|
|
5992
|
-
function
|
|
5993
|
-
if (
|
|
5994
|
-
let t = /* @__PURE__ */ new Set(), n = e.toLowerCase(), r = n.toUpperCase(), i =
|
|
5983
|
+
var zo = "[ -\r ]", Bo = /* @__PURE__ */ new Set([K(304), K(305)]), Y = q`[\p{L}\p{M}\p{N}\p{Pc}]`;
|
|
5984
|
+
function Vo(e) {
|
|
5985
|
+
if (Bo.has(e)) return [e];
|
|
5986
|
+
let t = /* @__PURE__ */ new Set(), n = e.toLowerCase(), r = n.toUpperCase(), i = Go.get(n), a = Uo.get(n), o = Wo.get(n);
|
|
5995
5987
|
return [...r].length === 1 && t.add(r), o && t.add(o), i && t.add(i), t.add(n), a && t.add(a), [...t];
|
|
5996
5988
|
}
|
|
5997
|
-
var
|
|
5989
|
+
var Ho = /* @__PURE__ */ new Map("C Other\nCc Control cntrl\nCf Format\nCn Unassigned\nCo Private_Use\nCs Surrogate\nL Letter\nLC Cased_Letter\nLl Lowercase_Letter\nLm Modifier_Letter\nLo Other_Letter\nLt Titlecase_Letter\nLu Uppercase_Letter\nM Mark Combining_Mark\nMc Spacing_Mark\nMe Enclosing_Mark\nMn Nonspacing_Mark\nN Number\nNd Decimal_Number digit\nNl Letter_Number\nNo Other_Number\nP Punctuation punct\nPc Connector_Punctuation\nPd Dash_Punctuation\nPe Close_Punctuation\nPf Final_Punctuation\nPi Initial_Punctuation\nPo Other_Punctuation\nPs Open_Punctuation\nS Symbol\nSc Currency_Symbol\nSk Modifier_Symbol\nSm Math_Symbol\nSo Other_Symbol\nZ Separator\nZl Line_Separator\nZp Paragraph_Separator\nZs Space_Separator\nASCII\nASCII_Hex_Digit AHex\nAlphabetic Alpha\nAny\nAssigned\nBidi_Control Bidi_C\nBidi_Mirrored Bidi_M\nCase_Ignorable CI\nCased\nChanges_When_Casefolded CWCF\nChanges_When_Casemapped CWCM\nChanges_When_Lowercased CWL\nChanges_When_NFKC_Casefolded CWKCF\nChanges_When_Titlecased CWT\nChanges_When_Uppercased CWU\nDash\nDefault_Ignorable_Code_Point DI\nDeprecated Dep\nDiacritic Dia\nEmoji\nEmoji_Component EComp\nEmoji_Modifier EMod\nEmoji_Modifier_Base EBase\nEmoji_Presentation EPres\nExtended_Pictographic ExtPict\nExtender Ext\nGrapheme_Base Gr_Base\nGrapheme_Extend Gr_Ext\nHex_Digit Hex\nIDS_Binary_Operator IDSB\nIDS_Trinary_Operator IDST\nID_Continue IDC\nID_Start IDS\nIdeographic Ideo\nJoin_Control Join_C\nLogical_Order_Exception LOE\nLowercase Lower\nMath\nNoncharacter_Code_Point NChar\nPattern_Syntax Pat_Syn\nPattern_White_Space Pat_WS\nQuotation_Mark QMark\nRadical\nRegional_Indicator RI\nSentence_Terminal STerm\nSoft_Dotted SD\nTerminal_Punctuation Term\nUnified_Ideograph UIdeo\nUppercase Upper\nVariation_Selector VS\nWhite_Space space\nXID_Continue XIDC\nXID_Start XIDS".split(/\s/).map((e) => [to(e), e])), Uo = /* @__PURE__ */ new Map([["s", K(383)], [K(383), "s"]]), Wo = /* @__PURE__ */ new Map([
|
|
5998
5990
|
[K(223), K(7838)],
|
|
5999
5991
|
[K(107), K(8490)],
|
|
6000
5992
|
[K(229), K(8491)],
|
|
6001
5993
|
[K(969), K(8486)]
|
|
6002
|
-
]),
|
|
5994
|
+
]), Go = new Map([
|
|
6003
5995
|
X(453),
|
|
6004
5996
|
X(456),
|
|
6005
5997
|
X(459),
|
|
6006
5998
|
X(498),
|
|
6007
|
-
...
|
|
6008
|
-
...
|
|
6009
|
-
...
|
|
5999
|
+
...Jo(8072, 8079),
|
|
6000
|
+
...Jo(8088, 8095),
|
|
6001
|
+
...Jo(8104, 8111),
|
|
6010
6002
|
X(8124),
|
|
6011
6003
|
X(8140),
|
|
6012
6004
|
X(8188)
|
|
6013
|
-
]),
|
|
6005
|
+
]), Ko = /* @__PURE__ */ new Map([
|
|
6014
6006
|
["alnum", q`[\p{Alpha}\p{Nd}]`],
|
|
6015
6007
|
["alpha", q`\p{Alpha}`],
|
|
6016
6008
|
["ascii", q`\p{ASCII}`],
|
|
@@ -6026,7 +6018,7 @@ var Go = /* @__PURE__ */ new Map("C Other\nCc Control cntrl\nCf Format\nCn Unass
|
|
|
6026
6018
|
["word", q`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],
|
|
6027
6019
|
["xdigit", q`\p{AHex}`]
|
|
6028
6020
|
]);
|
|
6029
|
-
function
|
|
6021
|
+
function qo(e, t) {
|
|
6030
6022
|
let n = [];
|
|
6031
6023
|
for (let r = e; r <= t; r++) n.push(r);
|
|
6032
6024
|
return n;
|
|
@@ -6035,10 +6027,10 @@ function X(e) {
|
|
|
6035
6027
|
let t = K(e);
|
|
6036
6028
|
return [t.toLowerCase(), t];
|
|
6037
6029
|
}
|
|
6038
|
-
function
|
|
6039
|
-
return
|
|
6030
|
+
function Jo(e, t) {
|
|
6031
|
+
return qo(e, t).map((e) => X(e));
|
|
6040
6032
|
}
|
|
6041
|
-
var
|
|
6033
|
+
var Yo = /* @__PURE__ */ new Set([
|
|
6042
6034
|
"Lower",
|
|
6043
6035
|
"Lowercase",
|
|
6044
6036
|
"Upper",
|
|
@@ -6050,7 +6042,7 @@ var Qo = /* @__PURE__ */ new Set([
|
|
|
6050
6042
|
"Lu",
|
|
6051
6043
|
"Uppercase_Letter"
|
|
6052
6044
|
]);
|
|
6053
|
-
function
|
|
6045
|
+
function Xo(e, t) {
|
|
6054
6046
|
let n = {
|
|
6055
6047
|
accuracy: "default",
|
|
6056
6048
|
asciiWordBoundaries: !1,
|
|
@@ -6058,14 +6050,14 @@ function $o(e, t) {
|
|
|
6058
6050
|
bestEffortTarget: "ES2025",
|
|
6059
6051
|
...t
|
|
6060
6052
|
};
|
|
6061
|
-
|
|
6053
|
+
es(e);
|
|
6062
6054
|
let r = {
|
|
6063
6055
|
accuracy: n.accuracy,
|
|
6064
6056
|
asciiWordBoundaries: n.asciiWordBoundaries,
|
|
6065
6057
|
avoidSubclass: n.avoidSubclass,
|
|
6066
6058
|
flagDirectivesByAlt: /* @__PURE__ */ new Map(),
|
|
6067
6059
|
jsGroupNameMap: /* @__PURE__ */ new Map(),
|
|
6068
|
-
minTargetEs2024:
|
|
6060
|
+
minTargetEs2024: Po(n.bestEffortTarget, "ES2024"),
|
|
6069
6061
|
passedLookbehind: !1,
|
|
6070
6062
|
strategy: null,
|
|
6071
6063
|
subroutineRefMap: /* @__PURE__ */ new Map(),
|
|
@@ -6074,7 +6066,7 @@ function $o(e, t) {
|
|
|
6074
6066
|
spaceIsAscii: e.flags.spaceIsAscii,
|
|
6075
6067
|
wordIsAscii: e.flags.wordIsAscii
|
|
6076
6068
|
};
|
|
6077
|
-
|
|
6069
|
+
io(e, Zo, r);
|
|
6078
6070
|
let i = {
|
|
6079
6071
|
dotAll: e.flags.dotAll,
|
|
6080
6072
|
ignoreCase: e.flags.ignoreCase
|
|
@@ -6089,24 +6081,24 @@ function $o(e, t) {
|
|
|
6089
6081
|
reffedNodesByReferencer: /* @__PURE__ */ new Map(),
|
|
6090
6082
|
subroutineRefMap: r.subroutineRefMap
|
|
6091
6083
|
};
|
|
6092
|
-
return
|
|
6084
|
+
return io(e, Qo, a), io(e, $o, {
|
|
6093
6085
|
groupsByName: a.groupsByName,
|
|
6094
6086
|
highestOrphanBackref: 0,
|
|
6095
6087
|
numCapturesToLeft: 0,
|
|
6096
6088
|
reffedNodesByReferencer: a.reffedNodesByReferencer
|
|
6097
6089
|
}), e._originMap = a.groupOriginByCopy, e._strategy = r.strategy, e;
|
|
6098
6090
|
}
|
|
6099
|
-
var
|
|
6091
|
+
var Zo = {
|
|
6100
6092
|
AbsenceFunction({ node: e, parent: t, replaceWith: n }) {
|
|
6101
6093
|
let { body: r, kind: i } = e;
|
|
6102
6094
|
if (i === "repeater") {
|
|
6103
|
-
let e =
|
|
6104
|
-
e.body[0].body.push(
|
|
6095
|
+
let e = V();
|
|
6096
|
+
e.body[0].body.push(H({
|
|
6105
6097
|
negate: !0,
|
|
6106
6098
|
body: r
|
|
6107
|
-
}),
|
|
6108
|
-
let i =
|
|
6109
|
-
i.body[0].body.push(
|
|
6099
|
+
}), qa("Any"));
|
|
6100
|
+
let i = V();
|
|
6101
|
+
i.body[0].body.push(Wa("greedy", 0, Infinity, e)), n($(i, t), { traverse: !0 });
|
|
6110
6102
|
} else throw Error("Unsupported absence function \"(?~|\"");
|
|
6111
6103
|
},
|
|
6112
6104
|
Alternative: {
|
|
@@ -6114,14 +6106,14 @@ var es = {
|
|
|
6114
6106
|
let i = e.body.filter((e) => e.kind === "flags");
|
|
6115
6107
|
for (let e = n + 1; e < t.body.length; e++) {
|
|
6116
6108
|
let n = t.body[e];
|
|
6117
|
-
|
|
6109
|
+
No(r, n, []).push(...i);
|
|
6118
6110
|
}
|
|
6119
6111
|
},
|
|
6120
6112
|
exit({ node: e }, { flagDirectivesByAlt: t }) {
|
|
6121
6113
|
if (t.get(e)?.length) {
|
|
6122
|
-
let n =
|
|
6114
|
+
let n = ss(t.get(e));
|
|
6123
6115
|
if (n) {
|
|
6124
|
-
let t =
|
|
6116
|
+
let t = V({ flags: n });
|
|
6125
6117
|
t.body[0].body = e.body, e.body = [$(t, e)];
|
|
6126
6118
|
}
|
|
6127
6119
|
}
|
|
@@ -6130,16 +6122,16 @@ var es = {
|
|
|
6130
6122
|
Assertion({ node: e, parent: t, key: n, container: r, root: i, remove: a, replaceWith: o }, s) {
|
|
6131
6123
|
let { kind: c, negate: l } = e, { asciiWordBoundaries: u, avoidSubclass: d, supportedGNodes: f, wordIsAscii: p } = s;
|
|
6132
6124
|
if (c === "text_segment_boundary") throw Error(`Unsupported text segment boundary "\\${l ? "Y" : "y"}"`);
|
|
6133
|
-
if (c === "line_end") o($(
|
|
6125
|
+
if (c === "line_end") o($(H({ body: [B({ body: [Na("string_end")] }), B({ body: [Ia(10)] })] }), t));
|
|
6134
6126
|
else if (c === "line_start") o($(Z(q`(?<=\A|\n(?!\z))`, { skipLookbehindValidation: !0 }), t));
|
|
6135
6127
|
else if (c === "search_start") if (f.has(e)) i.flags.sticky = !0, a();
|
|
6136
6128
|
else {
|
|
6137
6129
|
let e = r[n - 1];
|
|
6138
|
-
if (e &&
|
|
6130
|
+
if (e && ps(e)) o($(H({ negate: !0 }), t));
|
|
6139
6131
|
else if (d) throw Error(q`Uses "\G" in a way that requires a subclass`);
|
|
6140
|
-
else o(Q(
|
|
6132
|
+
else o(Q(Na("string_start"), t)), s.strategy = "clip_search";
|
|
6141
6133
|
}
|
|
6142
|
-
else if (
|
|
6134
|
+
else if (c !== "string_end" && c !== "string_start") if (c === "string_end_newline") o($(Z(q`(?=\n?\z)`), t));
|
|
6143
6135
|
else if (c === "word_boundary") {
|
|
6144
6136
|
if (!p && !u) {
|
|
6145
6137
|
let e = `(?:(?<=${Y})(?!${Y})|(?<!${Y})(?=${Y}))`, n = `(?:(?<=${Y})(?=${Y})|(?<!${Y})(?!${Y}))`;
|
|
@@ -6149,36 +6141,36 @@ var es = {
|
|
|
6149
6141
|
},
|
|
6150
6142
|
Backreference({ node: e }, { jsGroupNameMap: t }) {
|
|
6151
6143
|
let { ref: n } = e;
|
|
6152
|
-
typeof n == "string" && !
|
|
6144
|
+
typeof n == "string" && !hs(n) && (n = os(n, t), e.ref = n);
|
|
6153
6145
|
},
|
|
6154
6146
|
CapturingGroup({ node: e }, { jsGroupNameMap: t, subroutineRefMap: n }) {
|
|
6155
6147
|
let { name: r } = e;
|
|
6156
|
-
r && !
|
|
6148
|
+
r && !hs(r) && (r = os(r, t), e.name = r), n.set(e.number, e), r && n.set(r, e);
|
|
6157
6149
|
},
|
|
6158
6150
|
CharacterClassRange({ node: e, parent: t, replaceWith: n }) {
|
|
6159
|
-
t.kind === "intersection" && n($(
|
|
6151
|
+
t.kind === "intersection" && n($(La({ body: [e] }), t), { traverse: !0 });
|
|
6160
6152
|
},
|
|
6161
6153
|
CharacterSet({ node: e, parent: t, replaceWith: n }, { accuracy: r, minTargetEs2024: i, digitIsAscii: a, spaceIsAscii: o, wordIsAscii: s }) {
|
|
6162
6154
|
let { kind: c, negate: l, value: u } = e;
|
|
6163
6155
|
if (a && (c === "digit" || u === "digit")) {
|
|
6164
|
-
n(Q(
|
|
6156
|
+
n(Q(za("digit", { negate: l }), t));
|
|
6165
6157
|
return;
|
|
6166
6158
|
}
|
|
6167
6159
|
if (o && (c === "space" || u === "space")) {
|
|
6168
|
-
n($(
|
|
6160
|
+
n($(gs(Z(zo), l), t));
|
|
6169
6161
|
return;
|
|
6170
6162
|
}
|
|
6171
6163
|
if (s && (c === "word" || u === "word")) {
|
|
6172
|
-
n(Q(
|
|
6164
|
+
n(Q(za("word", { negate: l }), t));
|
|
6173
6165
|
return;
|
|
6174
6166
|
}
|
|
6175
|
-
if (c === "any") n(Q(
|
|
6176
|
-
else if (c === "digit") n(Q(
|
|
6167
|
+
if (c === "any") n(Q(qa("Any"), t));
|
|
6168
|
+
else if (c === "digit") n(Q(qa("Nd", { negate: l }), t));
|
|
6177
6169
|
else if (c !== "dot") if (c === "text_segment") {
|
|
6178
6170
|
if (r === "strict") throw Error(q`Use of "\X" requires non-strict accuracy`);
|
|
6179
6171
|
let e = "\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?", a = q`\p{RI}{2}|${e}(?:\u200D${e})*`;
|
|
6180
6172
|
n($(Z(q`(?>\r\n|${i ? q`\p{RGI_Emoji}` : a}|\P{M}\p{M}*)`, { skipPropertyNameValidation: !0 }), t));
|
|
6181
|
-
} else if (c === "hex") n(Q(
|
|
6173
|
+
} else if (c === "hex") n(Q(qa("AHex", { negate: l }), t));
|
|
6182
6174
|
else if (c === "newline") n($(Z(l ? "[^\n]" : "(?>\r\n?|[\n\v\f
\u2028\u2029])"), t));
|
|
6183
6175
|
else if (c === "posix") if (!i && (u === "graph" || u === "print")) {
|
|
6184
6176
|
if (r === "strict") throw Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);
|
|
@@ -6187,23 +6179,23 @@ var es = {
|
|
|
6187
6179
|
print: " -~"
|
|
6188
6180
|
}[u];
|
|
6189
6181
|
l && (e = `\0-${K(e.codePointAt(0) - 1)}${K(e.codePointAt(2) + 1)}-\u{10FFFF}`), n($(Z(`[${e}]`), t));
|
|
6190
|
-
} else n($(
|
|
6191
|
-
else if (c === "property")
|
|
6192
|
-
else if (c === "space") n(Q(
|
|
6193
|
-
else if (c === "word") n($(
|
|
6182
|
+
} else n($(gs(Z(Ko.get(u)), l), t));
|
|
6183
|
+
else if (c === "property") Ho.has(to(u)) || (e.key = "sc");
|
|
6184
|
+
else if (c === "space") n(Q(qa("space", { negate: l }), t));
|
|
6185
|
+
else if (c === "word") n($(gs(Z(Y), l), t));
|
|
6194
6186
|
else throw Error(`Unexpected character set kind "${c}"`);
|
|
6195
6187
|
},
|
|
6196
6188
|
Directive({ node: e, parent: t, root: n, remove: r, replaceWith: i, removeAllPrevSiblings: a, removeAllNextSiblings: o }) {
|
|
6197
6189
|
let { kind: s, flags: c } = e;
|
|
6198
6190
|
if (s === "flags") if (!c.enable && !c.disable) r();
|
|
6199
6191
|
else {
|
|
6200
|
-
let e =
|
|
6192
|
+
let e = V({ flags: c });
|
|
6201
6193
|
e.body[0].body = o(), i($(e, t), { traverse: !0 });
|
|
6202
6194
|
}
|
|
6203
6195
|
else if (s === "keep") {
|
|
6204
|
-
let e = n.body[0], r = n.body.length === 1 &&
|
|
6196
|
+
let e = n.body[0], r = n.body.length === 1 && ba(e, { type: "Group" }) && e.body[0].body.length === 1 ? e.body[0] : n;
|
|
6205
6197
|
if (t.parent !== r || r.body.length > 1) throw Error(q`Uses "\K" in a way that's unsupported`);
|
|
6206
|
-
let o =
|
|
6198
|
+
let o = H({ behind: !0 });
|
|
6207
6199
|
o.body[0].body = a(), i($(o, t));
|
|
6208
6200
|
} else throw Error(`Unexpected directive kind "${s}"`);
|
|
6209
6201
|
},
|
|
@@ -6241,12 +6233,12 @@ var es = {
|
|
|
6241
6233
|
},
|
|
6242
6234
|
NamedCallout({ node: e, parent: t, replaceWith: n }) {
|
|
6243
6235
|
let { kind: r } = e;
|
|
6244
|
-
if (r === "fail") n($(
|
|
6236
|
+
if (r === "fail") n($(H({ negate: !0 }), t));
|
|
6245
6237
|
else throw Error(`Unsupported named callout "(*${r.toUpperCase()}"`);
|
|
6246
6238
|
},
|
|
6247
6239
|
Quantifier({ node: e }) {
|
|
6248
6240
|
if (e.body.type === "Quantifier") {
|
|
6249
|
-
let t =
|
|
6241
|
+
let t = V();
|
|
6250
6242
|
t.body[0].body.push(e.body), e.body = $(t, e);
|
|
6251
6243
|
}
|
|
6252
6244
|
},
|
|
@@ -6255,7 +6247,7 @@ var es = {
|
|
|
6255
6247
|
let n = [], r = !1, i = !1;
|
|
6256
6248
|
for (let t of e.body) if (t.body.length === 1 && t.body[0].kind === "search_start") t.body.pop();
|
|
6257
6249
|
else {
|
|
6258
|
-
let e =
|
|
6250
|
+
let e = us(t.body);
|
|
6259
6251
|
e ? (r = !0, Array.isArray(e) ? n.push(...e) : n.push(e)) : i = !0;
|
|
6260
6252
|
}
|
|
6261
6253
|
r && !i && n.forEach((e) => t.add(e));
|
|
@@ -6266,9 +6258,9 @@ var es = {
|
|
|
6266
6258
|
},
|
|
6267
6259
|
Subroutine({ node: e }, { jsGroupNameMap: t }) {
|
|
6268
6260
|
let { ref: n } = e;
|
|
6269
|
-
typeof n == "string" && !
|
|
6261
|
+
typeof n == "string" && !hs(n) && (n = os(n, t), e.ref = n);
|
|
6270
6262
|
}
|
|
6271
|
-
},
|
|
6263
|
+
}, Qo = {
|
|
6272
6264
|
Backreference({ node: e }, { multiplexCapturesToLeftByRef: t, reffedNodesByReferencer: n }) {
|
|
6273
6265
|
let { orphan: r, ref: i } = e;
|
|
6274
6266
|
r || n.set(e, [...t.get(i).map(({ node: e }) => e)]);
|
|
@@ -6277,11 +6269,11 @@ var es = {
|
|
|
6277
6269
|
enter({ node: e, parent: t, replaceWith: n, skip: r }, { groupOriginByCopy: i, groupsByName: a, multiplexCapturesToLeftByRef: o, openRefs: s, reffedNodesByReferencer: c }) {
|
|
6278
6270
|
let l = i.get(e);
|
|
6279
6271
|
if (l && s.has(e.number)) {
|
|
6280
|
-
let r = Q(
|
|
6272
|
+
let r = Q(is(e.number), t);
|
|
6281
6273
|
c.set(r, s.get(e.number)), n(r);
|
|
6282
6274
|
return;
|
|
6283
6275
|
}
|
|
6284
|
-
s.set(e.number, e), o.set(e.number, []), e.name &&
|
|
6276
|
+
s.set(e.number, e), o.set(e.number, []), e.name && No(o, e.name, []);
|
|
6285
6277
|
let u = o.get(e.name ?? e.number);
|
|
6286
6278
|
for (let t = 0; t < u.length; t++) {
|
|
6287
6279
|
let n = u[t];
|
|
@@ -6297,7 +6289,7 @@ var es = {
|
|
|
6297
6289
|
node: e,
|
|
6298
6290
|
origin: l
|
|
6299
6291
|
}), e.name) {
|
|
6300
|
-
let t =
|
|
6292
|
+
let t = No(a, e.name, /* @__PURE__ */ new Map()), n = !1;
|
|
6301
6293
|
if (l) n = !0;
|
|
6302
6294
|
else for (let e of t.values()) if (!e.hasDuplicateNameToRemove) {
|
|
6303
6295
|
n = !0;
|
|
@@ -6315,7 +6307,7 @@ var es = {
|
|
|
6315
6307
|
},
|
|
6316
6308
|
Group: {
|
|
6317
6309
|
enter({ node: e }, t) {
|
|
6318
|
-
t.prevFlags = t.currentFlags, e.flags && (t.currentFlags =
|
|
6310
|
+
t.prevFlags = t.currentFlags, e.flags && (t.currentFlags = Mo(t.currentFlags, e.flags));
|
|
6319
6311
|
},
|
|
6320
6312
|
exit(e, t) {
|
|
6321
6313
|
t.currentFlags = t.prevFlags;
|
|
@@ -6325,28 +6317,28 @@ var es = {
|
|
|
6325
6317
|
let { isRecursive: i, ref: a } = e;
|
|
6326
6318
|
if (i) {
|
|
6327
6319
|
let n = t;
|
|
6328
|
-
for (; (n = n.parent) &&
|
|
6320
|
+
for (; (n = n.parent) && (n.type !== "CapturingGroup" || n.name !== a && n.number !== a););
|
|
6329
6321
|
r.reffedNodesByReferencer.set(e, n);
|
|
6330
6322
|
return;
|
|
6331
6323
|
}
|
|
6332
|
-
let o = r.subroutineRefMap.get(a), s = a === 0, c = s ?
|
|
6324
|
+
let o = r.subroutineRefMap.get(a), s = a === 0, c = s ? is(0) : rs(o, r.groupOriginByCopy, null), l = c;
|
|
6333
6325
|
if (!s) {
|
|
6334
|
-
let e =
|
|
6335
|
-
|
|
6326
|
+
let e = ss(as(o, (e) => e.type === "Group" && !!e.flags)), t = e ? Mo(r.globalFlags, e) : r.globalFlags;
|
|
6327
|
+
ts(t, r.currentFlags) || (l = V({ flags: cs(t) }), l.body[0].body.push(c));
|
|
6336
6328
|
}
|
|
6337
6329
|
n($(l, t), { traverse: !s });
|
|
6338
6330
|
}
|
|
6339
|
-
},
|
|
6331
|
+
}, $o = {
|
|
6340
6332
|
Backreference({ node: e, parent: t, replaceWith: n }, r) {
|
|
6341
6333
|
if (e.orphan) {
|
|
6342
6334
|
r.highestOrphanBackref = Math.max(r.highestOrphanBackref, e.ref);
|
|
6343
6335
|
return;
|
|
6344
6336
|
}
|
|
6345
|
-
let i = r.reffedNodesByReferencer.get(e).filter((t) =>
|
|
6346
|
-
i.length ? i.length > 1 ? n($(
|
|
6337
|
+
let i = r.reffedNodesByReferencer.get(e).filter((t) => ns(t, e));
|
|
6338
|
+
i.length ? i.length > 1 ? n($(V({
|
|
6347
6339
|
atomic: !0,
|
|
6348
|
-
body: i.reverse().map((e) =>
|
|
6349
|
-
}), t)) : e.ref = i[0].number : n($(
|
|
6340
|
+
body: i.reverse().map((e) => B({ body: [Pa(e.number)] }))
|
|
6341
|
+
}), t)) : e.ref = i[0].number : n($(H({ negate: !0 }), t));
|
|
6350
6342
|
},
|
|
6351
6343
|
CapturingGroup({ node: e }, t) {
|
|
6352
6344
|
e.number = ++t.numCapturesToLeft, e.name && t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove && delete e.name;
|
|
@@ -6354,7 +6346,7 @@ var es = {
|
|
|
6354
6346
|
Regex: { exit({ node: e }, t) {
|
|
6355
6347
|
let n = Math.max(t.highestOrphanBackref - t.numCapturesToLeft, 0);
|
|
6356
6348
|
for (let t = 0; t < n; t++) {
|
|
6357
|
-
let t =
|
|
6349
|
+
let t = Fa();
|
|
6358
6350
|
e.body.at(-1).body.push(t);
|
|
6359
6351
|
}
|
|
6360
6352
|
} },
|
|
@@ -6362,48 +6354,48 @@ var es = {
|
|
|
6362
6354
|
!e.isRecursive || e.ref === 0 || (e.ref = t.reffedNodesByReferencer.get(e).number);
|
|
6363
6355
|
}
|
|
6364
6356
|
};
|
|
6365
|
-
function
|
|
6366
|
-
|
|
6357
|
+
function es(e) {
|
|
6358
|
+
io(e, { "*"({ node: e, parent: t }) {
|
|
6367
6359
|
e.parent = t;
|
|
6368
6360
|
} });
|
|
6369
6361
|
}
|
|
6370
|
-
function
|
|
6362
|
+
function ts(e, t) {
|
|
6371
6363
|
return e.dotAll === t.dotAll && e.ignoreCase === t.ignoreCase;
|
|
6372
6364
|
}
|
|
6373
|
-
function
|
|
6365
|
+
function ns(e, t) {
|
|
6374
6366
|
let n = t;
|
|
6375
6367
|
do {
|
|
6376
6368
|
if (n.type === "Regex") return !1;
|
|
6377
6369
|
if (n.type === "Alternative") continue;
|
|
6378
6370
|
if (n === e) return !1;
|
|
6379
|
-
let t =
|
|
6371
|
+
let t = ls(n.parent);
|
|
6380
6372
|
for (let r of t) {
|
|
6381
6373
|
if (r === n) break;
|
|
6382
|
-
if (r === e ||
|
|
6374
|
+
if (r === e || ds(r, e)) return !0;
|
|
6383
6375
|
}
|
|
6384
6376
|
} while (n = n.parent);
|
|
6385
6377
|
throw Error("Unexpected path");
|
|
6386
6378
|
}
|
|
6387
|
-
function
|
|
6379
|
+
function rs(e, t, n, r) {
|
|
6388
6380
|
let i = Array.isArray(e) ? [] : {};
|
|
6389
|
-
for (let [a, o] of Object.entries(e)) a === "parent" ? i.parent = Array.isArray(n) ? r : n : o && typeof o == "object" ? i[a] =
|
|
6381
|
+
for (let [a, o] of Object.entries(e)) a === "parent" ? i.parent = Array.isArray(n) ? r : n : o && typeof o == "object" ? i[a] = rs(o, t, i, n) : (a === "type" && o === "CapturingGroup" && t.set(i, t.get(e) ?? e), i[a] = o);
|
|
6390
6382
|
return i;
|
|
6391
6383
|
}
|
|
6392
|
-
function
|
|
6393
|
-
let t =
|
|
6384
|
+
function is(e) {
|
|
6385
|
+
let t = Ka(e);
|
|
6394
6386
|
return t.isRecursive = !0, t;
|
|
6395
6387
|
}
|
|
6396
|
-
function
|
|
6388
|
+
function as(e, t) {
|
|
6397
6389
|
let n = [];
|
|
6398
6390
|
for (; e = e.parent;) (!t || t(e)) && n.push(e);
|
|
6399
6391
|
return n;
|
|
6400
6392
|
}
|
|
6401
|
-
function
|
|
6393
|
+
function os(e, t) {
|
|
6402
6394
|
if (t.has(e)) return t.get(e);
|
|
6403
6395
|
let n = `$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/gu, "_")}`;
|
|
6404
6396
|
return t.set(e, n), n;
|
|
6405
6397
|
}
|
|
6406
|
-
function
|
|
6398
|
+
function ss(e) {
|
|
6407
6399
|
let t = ["dotAll", "ignoreCase"], n = {
|
|
6408
6400
|
enable: {},
|
|
6409
6401
|
disable: {}
|
|
@@ -6414,24 +6406,24 @@ function us(e) {
|
|
|
6414
6406
|
});
|
|
6415
6407
|
}), Object.keys(n.enable).length || delete n.enable, Object.keys(n.disable).length || delete n.disable, n.enable || n.disable ? n : null;
|
|
6416
6408
|
}
|
|
6417
|
-
function
|
|
6409
|
+
function cs({ dotAll: e, ignoreCase: t }) {
|
|
6418
6410
|
let n = {};
|
|
6419
6411
|
return (e || t) && (n.enable = {}, e && (n.enable.dotAll = !0), t && (n.enable.ignoreCase = !0)), (!e || !t) && (n.disable = {}, !e && (n.disable.dotAll = !0), !t && (n.disable.ignoreCase = !0)), n;
|
|
6420
6412
|
}
|
|
6421
|
-
function
|
|
6413
|
+
function ls(e) {
|
|
6422
6414
|
if (!e) throw Error("Node expected");
|
|
6423
6415
|
let { body: t } = e;
|
|
6424
6416
|
return Array.isArray(t) ? t : t ? [t] : null;
|
|
6425
6417
|
}
|
|
6426
|
-
function
|
|
6427
|
-
let t = e.find((e) => e.kind === "search_start" ||
|
|
6418
|
+
function us(e) {
|
|
6419
|
+
let t = e.find((e) => e.kind === "search_start" || ms(e, { negate: !1 }) || !fs(e));
|
|
6428
6420
|
if (!t) return null;
|
|
6429
6421
|
if (t.kind === "search_start") return t;
|
|
6430
6422
|
if (t.type === "LookaroundAssertion") return t.body[0].body[0];
|
|
6431
6423
|
if (t.type === "CapturingGroup" || t.type === "Group") {
|
|
6432
6424
|
let e = [];
|
|
6433
6425
|
for (let n of t.body) {
|
|
6434
|
-
let t =
|
|
6426
|
+
let t = us(n.body);
|
|
6435
6427
|
if (!t) return null;
|
|
6436
6428
|
Array.isArray(t) ? e.push(...t) : e.push(t);
|
|
6437
6429
|
}
|
|
@@ -6439,15 +6431,15 @@ function ps(e) {
|
|
|
6439
6431
|
}
|
|
6440
6432
|
return null;
|
|
6441
6433
|
}
|
|
6442
|
-
function
|
|
6443
|
-
let n =
|
|
6444
|
-
for (let e of n) if (e === t ||
|
|
6434
|
+
function ds(e, t) {
|
|
6435
|
+
let n = ls(e) ?? [];
|
|
6436
|
+
for (let e of n) if (e === t || ds(e, t)) return !0;
|
|
6445
6437
|
return !1;
|
|
6446
6438
|
}
|
|
6447
|
-
function
|
|
6439
|
+
function fs({ type: e }) {
|
|
6448
6440
|
return e === "Assertion" || e === "Directive" || e === "LookaroundAssertion";
|
|
6449
6441
|
}
|
|
6450
|
-
function
|
|
6442
|
+
function ps(e) {
|
|
6451
6443
|
let t = [
|
|
6452
6444
|
"Character",
|
|
6453
6445
|
"CharacterClass",
|
|
@@ -6455,42 +6447,42 @@ function gs(e) {
|
|
|
6455
6447
|
];
|
|
6456
6448
|
return t.includes(e.type) || e.type === "Quantifier" && e.min && t.includes(e.body.type);
|
|
6457
6449
|
}
|
|
6458
|
-
function
|
|
6450
|
+
function ms(e, t) {
|
|
6459
6451
|
let n = {
|
|
6460
6452
|
negate: null,
|
|
6461
6453
|
...t
|
|
6462
6454
|
};
|
|
6463
|
-
return e.type === "LookaroundAssertion" && (n.negate === null || e.negate === n.negate) && e.body.length === 1 &&
|
|
6455
|
+
return e.type === "LookaroundAssertion" && (n.negate === null || e.negate === n.negate) && e.body.length === 1 && ba(e.body[0], {
|
|
6464
6456
|
type: "Assertion",
|
|
6465
6457
|
kind: "search_start"
|
|
6466
6458
|
});
|
|
6467
6459
|
}
|
|
6468
|
-
function
|
|
6460
|
+
function hs(e) {
|
|
6469
6461
|
return /^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e);
|
|
6470
6462
|
}
|
|
6471
6463
|
function Z(e, t) {
|
|
6472
|
-
let n =
|
|
6464
|
+
let n = Ca(e, {
|
|
6473
6465
|
...t,
|
|
6474
|
-
unicodePropertyMap:
|
|
6466
|
+
unicodePropertyMap: Ho
|
|
6475
6467
|
}).body;
|
|
6476
|
-
return n.length > 1 || n[0].body.length > 1 ?
|
|
6468
|
+
return n.length > 1 || n[0].body.length > 1 ? V({ body: n }) : n[0].body[0];
|
|
6477
6469
|
}
|
|
6478
|
-
function
|
|
6470
|
+
function gs(e, t) {
|
|
6479
6471
|
return e.negate = t, e;
|
|
6480
6472
|
}
|
|
6481
6473
|
function Q(e, t) {
|
|
6482
6474
|
return e.parent = t, e;
|
|
6483
6475
|
}
|
|
6484
6476
|
function $(e, t) {
|
|
6485
|
-
return
|
|
6477
|
+
return es(e), e.parent = t, e;
|
|
6486
6478
|
}
|
|
6487
|
-
function
|
|
6488
|
-
let n =
|
|
6479
|
+
function _s(e, t) {
|
|
6480
|
+
let n = Ro(t), r = Po(n.target, "ES2024"), i = Po(n.target, "ES2025"), a = n.rules.recursionLimit;
|
|
6489
6481
|
if (!Number.isInteger(a) || a < 2 || a > 20) throw Error("Invalid recursionLimit; use 2-20");
|
|
6490
6482
|
let o = null, s = null;
|
|
6491
6483
|
if (!i) {
|
|
6492
6484
|
let t = [e.flags.ignoreCase];
|
|
6493
|
-
|
|
6485
|
+
io(e, vs, {
|
|
6494
6486
|
getCurrentModI: () => t.at(-1),
|
|
6495
6487
|
popModI() {
|
|
6496
6488
|
t.pop();
|
|
@@ -6524,7 +6516,7 @@ function bs(e, t) {
|
|
|
6524
6516
|
verbose: n.verbose
|
|
6525
6517
|
};
|
|
6526
6518
|
function d(e) {
|
|
6527
|
-
return u.lastNode = l, l = e,
|
|
6519
|
+
return u.lastNode = l, l = e, Fo(ys[e.type], `Unexpected node type "${e.type}"`)(e, u, d);
|
|
6528
6520
|
}
|
|
6529
6521
|
let f = {
|
|
6530
6522
|
pattern: e.body.map(d).join("|"),
|
|
@@ -6532,34 +6524,34 @@ function bs(e, t) {
|
|
|
6532
6524
|
options: { ...e.options }
|
|
6533
6525
|
};
|
|
6534
6526
|
return r || (delete f.options.force.v, f.options.disable.v = !0, f.options.unicodeSetsPlugin = null), f._captureTransfers = /* @__PURE__ */ new Map(), f._hiddenCaptures = [], u.captureMap.forEach((e, t) => {
|
|
6535
|
-
e.hidden && f._hiddenCaptures.push(t), e.transferTo &&
|
|
6527
|
+
e.hidden && f._hiddenCaptures.push(t), e.transferTo && No(f._captureTransfers, e.transferTo, []).push(t);
|
|
6536
6528
|
}), f;
|
|
6537
6529
|
}
|
|
6538
|
-
var
|
|
6530
|
+
var vs = {
|
|
6539
6531
|
"*": {
|
|
6540
6532
|
enter({ node: e }, t) {
|
|
6541
|
-
if (
|
|
6533
|
+
if (js(e)) {
|
|
6542
6534
|
let n = t.getCurrentModI();
|
|
6543
|
-
t.pushModI(e.flags ?
|
|
6535
|
+
t.pushModI(e.flags ? Mo({ ignoreCase: n }, e.flags).ignoreCase : n);
|
|
6544
6536
|
}
|
|
6545
6537
|
},
|
|
6546
6538
|
exit({ node: e }, t) {
|
|
6547
|
-
|
|
6539
|
+
js(e) && t.popModI();
|
|
6548
6540
|
}
|
|
6549
6541
|
},
|
|
6550
6542
|
Backreference(e, t) {
|
|
6551
6543
|
t.setHasCasedChar();
|
|
6552
6544
|
},
|
|
6553
6545
|
Character({ node: e }, t) {
|
|
6554
|
-
|
|
6546
|
+
Ts(K(e.value)) && t.setHasCasedChar();
|
|
6555
6547
|
},
|
|
6556
6548
|
CharacterClassRange({ node: e, skip: t }, n) {
|
|
6557
|
-
t(),
|
|
6549
|
+
t(), Es(e, { firstOnly: !0 }).length && n.setHasCasedChar();
|
|
6558
6550
|
},
|
|
6559
6551
|
CharacterSet({ node: e }, t) {
|
|
6560
|
-
e.kind === "property" &&
|
|
6552
|
+
e.kind === "property" && Yo.has(e.value) && t.setHasCasedChar();
|
|
6561
6553
|
}
|
|
6562
|
-
},
|
|
6554
|
+
}, ys = {
|
|
6563
6555
|
Alternative({ body: e }, t, n) {
|
|
6564
6556
|
return e.map(n).join("");
|
|
6565
6557
|
},
|
|
@@ -6579,14 +6571,14 @@ var xs = {
|
|
|
6579
6571
|
return s && (o.hidden = !0, a > s.number && (o.transferTo = s.number)), t.captureMap.set(a, o), `(${i ? `?<${i}>` : ""}${r.map(n).join("|")})`;
|
|
6580
6572
|
},
|
|
6581
6573
|
Character({ value: e }, t) {
|
|
6582
|
-
let n = K(e), r =
|
|
6574
|
+
let n = K(e), r = Ds(e, {
|
|
6583
6575
|
escDigit: t.lastNode.type === "Backreference",
|
|
6584
6576
|
inCharClass: t.inCharClass,
|
|
6585
6577
|
useFlagV: t.useFlagV
|
|
6586
6578
|
});
|
|
6587
6579
|
if (r !== n) return r;
|
|
6588
|
-
if (t.useAppliedIgnoreCase && t.currentFlags.ignoreCase &&
|
|
6589
|
-
let e =
|
|
6580
|
+
if (t.useAppliedIgnoreCase && t.currentFlags.ignoreCase && Ts(n)) {
|
|
6581
|
+
let e = Vo(n);
|
|
6590
6582
|
return t.inCharClass ? e.join("") : e.length > 1 ? `[${e.join("")}]` : e[0];
|
|
6591
6583
|
}
|
|
6592
6584
|
return n;
|
|
@@ -6594,15 +6586,15 @@ var xs = {
|
|
|
6594
6586
|
CharacterClass(e, t, n) {
|
|
6595
6587
|
let { kind: r, negate: i, parent: a } = e, { body: o } = e;
|
|
6596
6588
|
if (r === "intersection" && !t.useFlagV) throw Error("Use of character class intersection requires min target ES2024");
|
|
6597
|
-
J.bugFlagVLiteralHyphenIsRange && t.useFlagV && o.some(
|
|
6589
|
+
J.bugFlagVLiteralHyphenIsRange && t.useFlagV && o.some(Ns) && (o = [Ia(45), ...o.filter((e) => !Ns(e))]);
|
|
6598
6590
|
let s = () => `[${i ? "^" : ""}${o.map(n).join(r === "intersection" ? "&&" : "")}]`;
|
|
6599
6591
|
if (!t.inCharClass) {
|
|
6600
6592
|
if ((!t.useFlagV || J.bugNestedClassIgnoresNegation) && !i) {
|
|
6601
6593
|
let t = o.filter((e) => e.type === "CharacterClass" && e.kind === "union" && e.negate);
|
|
6602
6594
|
if (t.length) {
|
|
6603
|
-
let r =
|
|
6595
|
+
let r = V(), i = r.body[0];
|
|
6604
6596
|
return r.parent = a, i.parent = r, o = o.filter((e) => !t.includes(e)), e.body = o, o.length ? (e.parent = i, i.body.push(e)) : r.body.pop(), t.forEach((e) => {
|
|
6605
|
-
let t =
|
|
6597
|
+
let t = B({ body: [e] });
|
|
6606
6598
|
e.parent = t, t.parent = r, r.body.push(t);
|
|
6607
6599
|
}), n(r);
|
|
6608
6600
|
}
|
|
@@ -6621,16 +6613,16 @@ var xs = {
|
|
|
6621
6613
|
escDigit: !1,
|
|
6622
6614
|
inCharClass: !0,
|
|
6623
6615
|
useFlagV: t.useFlagV
|
|
6624
|
-
}, a =
|
|
6625
|
-
return t.useAppliedIgnoreCase && t.currentFlags.ignoreCase &&
|
|
6626
|
-
s.add(Array.isArray(e) ? `${
|
|
6616
|
+
}, a = Ds(n, i), o = Ds(r, i), s = /* @__PURE__ */ new Set();
|
|
6617
|
+
return t.useAppliedIgnoreCase && t.currentFlags.ignoreCase && Os(Es(e)).forEach((e) => {
|
|
6618
|
+
s.add(Array.isArray(e) ? `${Ds(e[0], i)}-${Ds(e[1], i)}` : Ds(e, i));
|
|
6627
6619
|
}), `${a}-${o}${[...s].join("")}`;
|
|
6628
6620
|
},
|
|
6629
6621
|
CharacterSet({ kind: e, negate: t, value: n, key: r }, i) {
|
|
6630
6622
|
if (e === "dot") return i.currentFlags.dotAll ? i.appliedGlobalFlags.dotAll || i.useFlagMods ? "." : "[^]" : q`[^\n]`;
|
|
6631
6623
|
if (e === "digit") return t ? q`\D` : q`\d`;
|
|
6632
6624
|
if (e === "property") {
|
|
6633
|
-
if (i.useAppliedIgnoreCase && i.currentFlags.ignoreCase &&
|
|
6625
|
+
if (i.useAppliedIgnoreCase && i.currentFlags.ignoreCase && Yo.has(n)) throw Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);
|
|
6634
6626
|
return `${t ? q`\P` : q`\p`}{${r ? `${r}=` : ""}${n}}`;
|
|
6635
6627
|
}
|
|
6636
6628
|
if (e === "word") return t ? q`\W` : q`\w`;
|
|
@@ -6641,22 +6633,22 @@ var xs = {
|
|
|
6641
6633
|
},
|
|
6642
6634
|
Group({ atomic: e, body: t, flags: n, parent: r }, i, a) {
|
|
6643
6635
|
let o = i.currentFlags;
|
|
6644
|
-
n && (i.currentFlags =
|
|
6645
|
-
let s = t.map(a).join("|"), c = !i.verbose && t.length === 1 && r.type !== "Quantifier" && !e && (!i.useFlagMods || !n) ? s : `(?${
|
|
6636
|
+
n && (i.currentFlags = Mo(o, n));
|
|
6637
|
+
let s = t.map(a).join("|"), c = !i.verbose && t.length === 1 && r.type !== "Quantifier" && !e && (!i.useFlagMods || !n) ? s : `(?${ks(e, n, i.useFlagMods)}${s})`;
|
|
6646
6638
|
return i.currentFlags = o, c;
|
|
6647
6639
|
},
|
|
6648
6640
|
LookaroundAssertion({ body: e, kind: t, negate: n }, r, i) {
|
|
6649
6641
|
return `(?${`${t === "lookahead" ? "" : "<"}${n ? "!" : "="}`}${e.map(i).join("|")})`;
|
|
6650
6642
|
},
|
|
6651
6643
|
Quantifier(e, t, n) {
|
|
6652
|
-
return n(e.body) +
|
|
6644
|
+
return n(e.body) + As(e);
|
|
6653
6645
|
},
|
|
6654
6646
|
Subroutine({ isRecursive: e, ref: t }, n) {
|
|
6655
6647
|
if (!e) throw Error("Unexpected non-recursive subroutine in transformed AST");
|
|
6656
6648
|
let r = n.recursionLimit;
|
|
6657
6649
|
return t === 0 ? `(?R=${r})` : q`\g<${t}&R=${r}>`;
|
|
6658
6650
|
}
|
|
6659
|
-
},
|
|
6651
|
+
}, bs = /* @__PURE__ */ new Set([
|
|
6660
6652
|
"$",
|
|
6661
6653
|
"(",
|
|
6662
6654
|
")",
|
|
@@ -6671,13 +6663,13 @@ var xs = {
|
|
|
6671
6663
|
"{",
|
|
6672
6664
|
"|",
|
|
6673
6665
|
"}"
|
|
6674
|
-
]),
|
|
6666
|
+
]), xs = /* @__PURE__ */ new Set([
|
|
6675
6667
|
"-",
|
|
6676
6668
|
"\\",
|
|
6677
6669
|
"]",
|
|
6678
6670
|
"^",
|
|
6679
6671
|
"["
|
|
6680
|
-
]),
|
|
6672
|
+
]), Ss = /* @__PURE__ */ new Set(/* @__PURE__ */ "()-/[\\]^{|}!#$%&*+,.:;<=>?@`~".split("")), Cs = /* @__PURE__ */ new Map([
|
|
6681
6673
|
[9, q`\t`],
|
|
6682
6674
|
[10, q`\n`],
|
|
6683
6675
|
[11, q`\v`],
|
|
@@ -6686,17 +6678,17 @@ var xs = {
|
|
|
6686
6678
|
[8232, q`\u2028`],
|
|
6687
6679
|
[8233, q`\u2029`],
|
|
6688
6680
|
[65279, q`\uFEFF`]
|
|
6689
|
-
]),
|
|
6690
|
-
function
|
|
6691
|
-
return
|
|
6681
|
+
]), ws = /^\p{Cased}$/u;
|
|
6682
|
+
function Ts(e) {
|
|
6683
|
+
return ws.test(e);
|
|
6692
6684
|
}
|
|
6693
|
-
function
|
|
6685
|
+
function Es(e, t) {
|
|
6694
6686
|
let n = !!t?.firstOnly, r = e.min.value, i = e.max.value, a = [];
|
|
6695
6687
|
if (r < 65 && (i === 65535 || i >= 131071) || r === 65536 && i >= 131071) return a;
|
|
6696
6688
|
for (let e = r; e <= i; e++) {
|
|
6697
6689
|
let t = K(e);
|
|
6698
|
-
if (!
|
|
6699
|
-
let o =
|
|
6690
|
+
if (!Ts(t)) continue;
|
|
6691
|
+
let o = Vo(t).filter((e) => {
|
|
6700
6692
|
let t = e.codePointAt(0);
|
|
6701
6693
|
return t < r || t > i;
|
|
6702
6694
|
});
|
|
@@ -6704,18 +6696,18 @@ function ks(e, t) {
|
|
|
6704
6696
|
}
|
|
6705
6697
|
return a;
|
|
6706
6698
|
}
|
|
6707
|
-
function
|
|
6708
|
-
if (
|
|
6709
|
-
if (e < 32 || e > 126 && e < 160 || e > 262143 || t &&
|
|
6710
|
-
let i = n ? r ?
|
|
6699
|
+
function Ds(e, { escDigit: t, inCharClass: n, useFlagV: r }) {
|
|
6700
|
+
if (Cs.has(e)) return Cs.get(e);
|
|
6701
|
+
if (e < 32 || e > 126 && e < 160 || e > 262143 || t && Ms(e)) return e > 255 ? `\\u{${e.toString(16).toUpperCase()}}` : `\\x${e.toString(16).toUpperCase().padStart(2, "0")}`;
|
|
6702
|
+
let i = n ? r ? Ss : xs : bs, a = K(e);
|
|
6711
6703
|
return (i.has(a) ? "\\" : "") + a;
|
|
6712
6704
|
}
|
|
6713
|
-
function
|
|
6705
|
+
function Os(e) {
|
|
6714
6706
|
let t = e.map((e) => e.codePointAt(0)).sort((e, t) => e - t), n = [], r = null;
|
|
6715
6707
|
for (let e = 0; e < t.length; e++) t[e + 1] === t[e] + 1 ? r ??= t[e] : r === null ? n.push(t[e]) : (n.push([r, t[e]]), r = null);
|
|
6716
6708
|
return n;
|
|
6717
6709
|
}
|
|
6718
|
-
function
|
|
6710
|
+
function ks(e, t, n) {
|
|
6719
6711
|
if (e) return ">";
|
|
6720
6712
|
let r = "";
|
|
6721
6713
|
if (t && n) {
|
|
@@ -6724,7 +6716,7 @@ function Ms(e, t, n) {
|
|
|
6724
6716
|
}
|
|
6725
6717
|
return `${r}:`;
|
|
6726
6718
|
}
|
|
6727
|
-
function
|
|
6719
|
+
function As({ kind: e, max: t, min: n }) {
|
|
6728
6720
|
let r;
|
|
6729
6721
|
return r = !n && t === 1 ? "?" : !n && t === Infinity ? "*" : n === 1 && t === Infinity ? "+" : n === t ? `{${n}}` : `{${n},${t === Infinity ? "" : t}}`, r + {
|
|
6730
6722
|
greedy: "",
|
|
@@ -6732,16 +6724,16 @@ function Ns({ kind: e, max: t, min: n }) {
|
|
|
6732
6724
|
possessive: "+"
|
|
6733
6725
|
}[e];
|
|
6734
6726
|
}
|
|
6735
|
-
function
|
|
6727
|
+
function js({ type: e }) {
|
|
6736
6728
|
return e === "CapturingGroup" || e === "Group" || e === "LookaroundAssertion";
|
|
6737
6729
|
}
|
|
6738
|
-
function
|
|
6730
|
+
function Ms(e) {
|
|
6739
6731
|
return e > 47 && e < 58;
|
|
6740
6732
|
}
|
|
6741
|
-
function
|
|
6733
|
+
function Ns({ type: e, value: t }) {
|
|
6742
6734
|
return e === "Character" && t === 45;
|
|
6743
6735
|
}
|
|
6744
|
-
var
|
|
6736
|
+
var Ps = class e extends RegExp {
|
|
6745
6737
|
#e = /* @__PURE__ */ new Map();
|
|
6746
6738
|
#t = null;
|
|
6747
6739
|
#n;
|
|
@@ -6764,7 +6756,7 @@ var Ls = class e extends RegExp {
|
|
|
6764
6756
|
transfers: [],
|
|
6765
6757
|
...r
|
|
6766
6758
|
};
|
|
6767
|
-
super(i ? "" : t, n), this.#n = t, this.#e =
|
|
6759
|
+
super(i ? "" : t, n), this.#n = t, this.#e = Is(e.hiddenCaptures, e.transfers), this.#i = e.strategy, this.rawOptions = r ?? {};
|
|
6768
6760
|
}
|
|
6769
6761
|
i || (this.#t = this);
|
|
6770
6762
|
}
|
|
@@ -6777,7 +6769,7 @@ var Ls = class e extends RegExp {
|
|
|
6777
6769
|
if (this.#i === "clip_search" && n && r) {
|
|
6778
6770
|
this.lastIndex = 0;
|
|
6779
6771
|
let e = this.#a(t.slice(r));
|
|
6780
|
-
return e && (
|
|
6772
|
+
return e && (Fs(e, r, t, this.hasIndices), this.lastIndex += r), e;
|
|
6781
6773
|
}
|
|
6782
6774
|
return this.#a(t);
|
|
6783
6775
|
}
|
|
@@ -6796,7 +6788,7 @@ var Ls = class e extends RegExp {
|
|
|
6796
6788
|
let a = i[o];
|
|
6797
6789
|
if (!a) throw Error(`Invalid capture transfer to "${a}"`);
|
|
6798
6790
|
if (t[a] = n[e], this.hasIndices && (t.indices[a] = r[e]), t.groups) {
|
|
6799
|
-
this.#r ||=
|
|
6791
|
+
this.#r ||= Ls(this.source);
|
|
6800
6792
|
let i = this.#r.get(o);
|
|
6801
6793
|
i && (t.groups[i] = n[e], this.hasIndices && (t.indices.groups[i] = r[e]));
|
|
6802
6794
|
}
|
|
@@ -6805,7 +6797,7 @@ var Ls = class e extends RegExp {
|
|
|
6805
6797
|
return t;
|
|
6806
6798
|
}
|
|
6807
6799
|
};
|
|
6808
|
-
function
|
|
6800
|
+
function Fs(e, t, n, r) {
|
|
6809
6801
|
if (e.index += t, e.input = n, r) {
|
|
6810
6802
|
let n = e.indices;
|
|
6811
6803
|
for (let e = 0; e < n.length; e++) {
|
|
@@ -6819,13 +6811,13 @@ function Rs(e, t, n, r) {
|
|
|
6819
6811
|
});
|
|
6820
6812
|
}
|
|
6821
6813
|
}
|
|
6822
|
-
function
|
|
6814
|
+
function Is(e, t) {
|
|
6823
6815
|
let n = /* @__PURE__ */ new Map();
|
|
6824
6816
|
for (let t of e) n.set(t, { hidden: !0 });
|
|
6825
|
-
for (let [e, r] of t) for (let t of r)
|
|
6817
|
+
for (let [e, r] of t) for (let t of r) No(n, t, {}).transferTo = e;
|
|
6826
6818
|
return n;
|
|
6827
6819
|
}
|
|
6828
|
-
function
|
|
6820
|
+
function Ls(e) {
|
|
6829
6821
|
let t = /(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu, n = /* @__PURE__ */ new Map(), r = 0, i = 0, a;
|
|
6830
6822
|
for (; a = t.exec(e);) {
|
|
6831
6823
|
let { 0: e, groups: { capture: t, name: o } } = a;
|
|
@@ -6833,12 +6825,12 @@ function Bs(e) {
|
|
|
6833
6825
|
}
|
|
6834
6826
|
return n;
|
|
6835
6827
|
}
|
|
6836
|
-
function
|
|
6837
|
-
let n =
|
|
6838
|
-
return n.options ? new
|
|
6828
|
+
function Rs(e, t) {
|
|
6829
|
+
let n = zs(e, t);
|
|
6830
|
+
return n.options ? new Ps(n.pattern, n.flags, n.options) : new RegExp(n.pattern, n.flags);
|
|
6839
6831
|
}
|
|
6840
|
-
function
|
|
6841
|
-
let n =
|
|
6832
|
+
function zs(e, t) {
|
|
6833
|
+
let n = Ro(t), r = Xo(Ca(e, {
|
|
6842
6834
|
flags: n.flags,
|
|
6843
6835
|
normalizeUnknownPropertyNames: !0,
|
|
6844
6836
|
rules: {
|
|
@@ -6846,17 +6838,17 @@ function Hs(e, t) {
|
|
|
6846
6838
|
singleline: n.rules.singleline
|
|
6847
6839
|
},
|
|
6848
6840
|
skipBackrefValidation: n.rules.allowOrphanBackrefs,
|
|
6849
|
-
unicodePropertyMap:
|
|
6841
|
+
unicodePropertyMap: Ho
|
|
6850
6842
|
}), {
|
|
6851
6843
|
accuracy: n.accuracy,
|
|
6852
6844
|
asciiWordBoundaries: n.rules.asciiWordBoundaries,
|
|
6853
6845
|
avoidSubclass: n.avoidSubclass,
|
|
6854
6846
|
bestEffortTarget: n.target
|
|
6855
|
-
}), i =
|
|
6847
|
+
}), i = _s(r, n), a = To(i.pattern, {
|
|
6856
6848
|
captureTransfers: i._captureTransfers,
|
|
6857
6849
|
hiddenCaptures: i._hiddenCaptures,
|
|
6858
6850
|
mode: "external"
|
|
6859
|
-
}), o = bo(
|
|
6851
|
+
}), o = _o(bo(a.pattern).pattern, {
|
|
6860
6852
|
captureTransfers: a.captureTransfers,
|
|
6861
6853
|
hiddenCaptures: a.hiddenCaptures
|
|
6862
6854
|
}), s = {
|
|
@@ -6878,7 +6870,7 @@ function Hs(e, t) {
|
|
|
6878
6870
|
}
|
|
6879
6871
|
//#endregion
|
|
6880
6872
|
//#region ../../node_modules/.pnpm/@shikijs+engine-javascript@3.23.0/node_modules/@shikijs/engine-javascript/dist/shared/engine-javascript.hzpS1_41.mjs
|
|
6881
|
-
var
|
|
6873
|
+
var Bs = 4294967295, Vs = class {
|
|
6882
6874
|
constructor(e, t = {}) {
|
|
6883
6875
|
this.patterns = e, this.options = t;
|
|
6884
6876
|
let { forgiving: n = !1, cache: r, regexConstructor: i } = t;
|
|
@@ -6907,8 +6899,8 @@ var Us = 4294967295, Ws = class {
|
|
|
6907
6899
|
return {
|
|
6908
6900
|
index: e,
|
|
6909
6901
|
captureIndices: t.indices.map((e) => e == null ? {
|
|
6910
|
-
start:
|
|
6911
|
-
end:
|
|
6902
|
+
start: Bs,
|
|
6903
|
+
end: Bs,
|
|
6912
6904
|
length: 0
|
|
6913
6905
|
} : {
|
|
6914
6906
|
start: e[0] + n,
|
|
@@ -6943,8 +6935,8 @@ var Us = 4294967295, Ws = class {
|
|
|
6943
6935
|
};
|
|
6944
6936
|
//#endregion
|
|
6945
6937
|
//#region ../../node_modules/.pnpm/@shikijs+engine-javascript@3.23.0/node_modules/@shikijs/engine-javascript/dist/engine-compile.mjs
|
|
6946
|
-
function
|
|
6947
|
-
return
|
|
6938
|
+
function Hs(e, t) {
|
|
6939
|
+
return Rs(e, {
|
|
6948
6940
|
global: !0,
|
|
6949
6941
|
hasIndices: !0,
|
|
6950
6942
|
lazyCompileLength: 3e3,
|
|
@@ -6958,14 +6950,14 @@ function Gs(e, t) {
|
|
|
6958
6950
|
...t
|
|
6959
6951
|
});
|
|
6960
6952
|
}
|
|
6961
|
-
function
|
|
6953
|
+
function Us(e = {}) {
|
|
6962
6954
|
let t = Object.assign({
|
|
6963
6955
|
target: "auto",
|
|
6964
6956
|
cache: /* @__PURE__ */ new Map()
|
|
6965
6957
|
}, e);
|
|
6966
|
-
return t.regexConstructor ||= (e) =>
|
|
6958
|
+
return t.regexConstructor ||= (e) => Hs(e, { target: t.target }), {
|
|
6967
6959
|
createScanner(e) {
|
|
6968
|
-
return new
|
|
6960
|
+
return new Vs(e, t);
|
|
6969
6961
|
},
|
|
6970
6962
|
createString(e) {
|
|
6971
6963
|
return { content: e };
|
|
@@ -6974,12 +6966,12 @@ function Ks(e = {}) {
|
|
|
6974
6966
|
}
|
|
6975
6967
|
//#endregion
|
|
6976
6968
|
//#region components/code-highlighter/shiki-runtime.ts
|
|
6977
|
-
function
|
|
6978
|
-
return
|
|
6979
|
-
themes: [
|
|
6969
|
+
function Ws() {
|
|
6970
|
+
return Ni({
|
|
6971
|
+
themes: [Fi, Pi],
|
|
6980
6972
|
langs: [],
|
|
6981
|
-
engine:
|
|
6973
|
+
engine: Us()
|
|
6982
6974
|
});
|
|
6983
6975
|
}
|
|
6984
6976
|
//#endregion
|
|
6985
|
-
export {
|
|
6977
|
+
export { Ws as createHighlighter };
|