@marimo-team/islands 0.14.18-dev29 → 0.14.18-dev30
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/{ConnectedDataExplorerComponent-BdNI3U_Q.js → ConnectedDataExplorerComponent--CKIL-CI.js} +2 -2
- package/dist/{ImageComparisonComponent-BaXYQw1q.js → ImageComparisonComponent-D9H4Qy32.js} +1 -1
- package/dist/{_baseUniq-Dhn_Qa6Q.js → _baseUniq-bLCPH1Ep.js} +54 -54
- package/dist/{any-language-editor-B67r5EeA.js → any-language-editor-DjrwgW0G.js} +1 -1
- package/dist/{architectureDiagram-SUXI7LT5-BViDWSK_.js → architectureDiagram-SUXI7LT5-j0IHGKaY.js} +5 -5
- package/dist/{blockDiagram-6J76NXCF-qnZE6FFZ.js → blockDiagram-6J76NXCF-De8TWMDN.js} +5 -5
- package/dist/{c4Diagram-6F6E4RAY-DVDx6CRj.js → c4Diagram-6F6E4RAY-C_LDok9B.js} +2 -2
- package/dist/{channel-w0TvEgyJ.js → channel-BfUZ6-T3.js} +1 -1
- package/dist/{chunk-353BL4L5-BERPTU9j.js → chunk-353BL4L5-CCxt33Au.js} +1 -1
- package/dist/{chunk-67H74DCK-BKpGel6k.js → chunk-67H74DCK-DCXh45M8.js} +1 -1
- package/dist/{chunk-AACKK3MU-DKFmZAmW.js → chunk-AACKK3MU-C0xSOsSm.js} +1 -1
- package/dist/{chunk-BFAMUDN2-ByskscqU.js → chunk-BFAMUDN2-Behwqfnf.js} +1 -1
- package/dist/{chunk-E2GYISFI-CU8uK8B5.js → chunk-E2GYISFI-CoVfLOj4.js} +1 -1
- package/dist/{chunk-OW32GOEJ-D-oJnNc0.js → chunk-OW32GOEJ-BDKesCNY.js} +3 -3
- package/dist/{chunk-SKB7J2MH-D3VsLhj0.js → chunk-SKB7J2MH-Bp2xM-uy.js} +1 -1
- package/dist/{chunk-SZ463SBG-DdwzKdw7.js → chunk-SZ463SBG-DBpCja3U.js} +4 -4
- package/dist/{classDiagram-v2-YAWTLIQI-hCM6BJNe.js → classDiagram-M3E45YP4-BFubzwOG.js} +2 -2
- package/dist/{classDiagram-M3E45YP4-hCM6BJNe.js → classDiagram-v2-YAWTLIQI-BFubzwOG.js} +2 -2
- package/dist/{clone-C3HJdTTe.js → clone-BjtVIXpn.js} +1 -1
- package/dist/common-keywords-BefPf8TA.js +7 -0
- package/dist/{dagre-JOIXM2OF-Bf_l2feu.js → dagre-JOIXM2OF-BgBiPRFN.js} +6 -6
- package/dist/{data-grid-overlay-editor-DBR9So5Q.js → data-grid-overlay-editor-_eqSIABJ.js} +2 -2
- package/dist/{diagram-5UYTHUR4-CVGF9hQS.js → diagram-5UYTHUR4-CgaKbTts.js} +3 -3
- package/dist/{diagram-VMROVX33-DQSvGvP9.js → diagram-VMROVX33-CGtdOsg5.js} +5 -5
- package/dist/{diagram-ZTM2IBQH-Cm-4zYmZ.js → diagram-ZTM2IBQH-DYMYPpKk.js} +3 -3
- package/dist/duckdb-keywords-WTV2Iln-.js +7 -0
- package/dist/{erDiagram-3M52JZNH-CqiPyo9l.js → erDiagram-3M52JZNH-1_JRyfPJ.js} +4 -4
- package/dist/{flowDiagram-KYDEHFYC-BWI6woXk.js → flowDiagram-KYDEHFYC-DybJmH8v.js} +5 -5
- package/dist/{ganttDiagram-EK5VF46D-Cgt9l9Dv.js → ganttDiagram-EK5VF46D-DN7qANi_.js} +77 -77
- package/dist/{gitGraphDiagram-GW3U2K7C-CXdWbamN.js → gitGraphDiagram-GW3U2K7C-BRhg1GOx.js} +4 -4
- package/dist/{glide-data-editor-BTCvCt5l.js → glide-data-editor-C_I32XXb.js} +3 -3
- package/dist/{graph-CRdDo12s.js → graph-1MP_VZoE.js} +3 -3
- package/dist/index-BBUizbqs.js +40315 -0
- package/dist/{index-BcFK7BwI.js → index-BPI6wlBl.js} +1 -1
- package/dist/{index-BAdBIZkO.js → index-BdqZ5Kqx.js} +144 -144
- package/dist/{index-BvqeeOGw.js → index-DgGFt9bf.js} +1 -1
- package/dist/{index-C0U8Uslh.js → index-VJmVdxOS.js} +1 -1
- package/dist/{infoDiagram-LHK5PUON-_TLjv1_J.js → infoDiagram-LHK5PUON-DqHV7DDC.js} +2 -2
- package/dist/{journeyDiagram-EWQZEKCU-1myKuvuX.js → journeyDiagram-EWQZEKCU-Bk17Zc9K.js} +3 -3
- package/dist/{kanban-definition-ZSS6B67P-CpcP-3pZ.js → kanban-definition-ZSS6B67P-BYWk6TtR.js} +2 -2
- package/dist/{layout-3sC0Rvql.js → layout-Cb92NmMg.js} +35 -35
- package/dist/{linear-C3_iQNqd.js → linear-B-wqjC4d.js} +19 -19
- package/dist/{main-CL0h4e1V.js → main-CtTUMXKF.js} +34657 -33517
- package/dist/main.js +1 -1
- package/dist/{mermaid-BeozQMHc.js → mermaid-T2yOt-G1.js} +29 -29
- package/dist/{min-snIjkOQ_.js → min-DrG2wG1u.js} +14 -14
- package/dist/{mindmap-definition-6CBA2TL7-DtWdud8Y.js → mindmap-definition-6CBA2TL7-DjzwaZH0.js} +2 -2
- package/dist/{number-overlay-editor-BZsA8E_T.js → number-overlay-editor-xCynwKqy.js} +2 -2
- package/dist/{pieDiagram-NIOCPIFQ-BcUZAX6Z.js → pieDiagram-NIOCPIFQ-CJ6GpE3G.js} +3 -3
- package/dist/{quadrantDiagram-2OG54O6I-d14MOQ5D.js → quadrantDiagram-2OG54O6I-XdD8LFCS.js} +2 -2
- package/dist/{react-plotly-D-OJ0ixl.js → react-plotly-CU1xz0uB.js} +1 -1
- package/dist/{requirementDiagram-QOLK2EJ7-CIM03878.js → requirementDiagram-QOLK2EJ7-BfjB7dTg.js} +3 -3
- package/dist/{sankeyDiagram-4UZDY2LN-BdjxpeGf.js → sankeyDiagram-4UZDY2LN-B5iAGqA4.js} +1 -1
- package/dist/{sequenceDiagram-SKLFT4DO-DwTPOF0M.js → sequenceDiagram-SKLFT4DO-BfZhH-rO.js} +3 -3
- package/dist/{slides-component-CuHbdUWv.js → slides-component-QFXs_rBG.js} +26 -26
- package/dist/{stateDiagram-MI5ZYTHO-DbZ86f1c.js → stateDiagram-MI5ZYTHO-Dj139u4x.js} +4 -4
- package/dist/{stateDiagram-v2-5AN5P6BG-Ciragt5S.js → stateDiagram-v2-5AN5P6BG-Bu6lvica.js} +2 -2
- package/dist/{time-Drwe-h9P.js → time-BuU9s2Gm.js} +2 -2
- package/dist/{timeline-definition-MYPXXCX6-C4anfUWH.js → timeline-definition-MYPXXCX6-cuErhWL7.js} +1 -1
- package/dist/{treemap-75Q7IDZK-B00Ow4su.js → treemap-75Q7IDZK-4DitaMDv.js} +131 -131
- package/dist/{vega-component-C-6aZaJB.js → vega-component-BuOK3GIr.js} +2 -2
- package/dist/{xychartDiagram-H2YORKM3-DKqJQPV7.js → xychartDiagram-H2YORKM3-DfnjQqUF.js} +2 -2
- package/package.json +3 -2
- package/src/components/app-config/user-config-form.tsx +25 -0
- package/src/components/chat/markdown-renderer.tsx +1 -1
- package/src/components/editor/ai/add-cell-with-ai.tsx +1 -1
- package/src/components/editor/cell/CreateCellButton.tsx +1 -1
- package/src/components/editor/cell/code/language-toggle.tsx +1 -1
- package/src/components/editor/renderers/CellArray.tsx +1 -1
- package/src/core/codemirror/language/LanguageAdapters.ts +1 -1
- package/src/core/codemirror/language/__tests__/sql.test.ts +5 -5
- package/src/core/codemirror/language/extension.ts +1 -1
- package/src/core/codemirror/language/languages/sql/completion-sources.tsx +99 -0
- package/src/core/codemirror/language/languages/sql/completion-store.ts +191 -0
- package/src/core/codemirror/language/languages/{sql.ts → sql/sql.ts} +124 -248
- package/src/core/codemirror/language/languages/sql/utils.ts +42 -0
- package/src/core/codemirror/language/panel/panel.tsx +1 -1
- package/src/core/config/feature-flag.tsx +2 -0
- package/src/theme/useTheme.ts +1 -1
- package/src/core/codemirror/language/languages/sql-dialects/README.md +0 -5
- package/src/core/codemirror/language/languages/sql-dialects/duckdb.ts +0 -22
- package/src/core/codemirror/language/languages/sql-dialects/spec_duckdb.py +0 -257
|
@@ -2,18 +2,18 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
var _a2, _b, _c2, _d2, _e, _f2, _g, _h2, _i2, _j, _k, _l2, _m2, _n2, _o2, _p2, _q;
|
|
5
|
-
import { e6 as Kl,
|
|
6
|
-
import { g as ei, d as bt, k as nu, v as
|
|
7
|
-
import { m as k, f as Lt, h as I, e as ti, l as Ot, d as iu } from "./min-
|
|
8
|
-
import { ad as P } from "./mermaid-
|
|
9
|
-
import { c as te } from "./clone-
|
|
5
|
+
import { e6 as Kl, bZ as Vl, aw as Ma, b2 as Hl, F as _t, aZ as Wl, az as Q, bv as jl, bw as zl, y as ql, A as Ni, z as Da, ax as Qs, e7 as Fa, aV as Yl, bb as Ga, e8 as Ua, aX as Xl, bd as wi, ay as Jl, e9 as Zl, br as Ql, ea as eu, a_ as Ie, D as vt, aC as _i, be as tu, eb as H, ec as Re } from "./main-CtTUMXKF.js";
|
|
6
|
+
import { g as ei, d as bt, k as nu, v as W, l as Ba, m as ru, n as su, a as Ka, c as x, i as qe, r as ae, f as ke, o as z } from "./_baseUniq-bLCPH1Ep.js";
|
|
7
|
+
import { m as k, f as Lt, h as I, e as ti, l as Ot, d as iu } from "./min-DrG2wG1u.js";
|
|
8
|
+
import { ad as P } from "./mermaid-T2yOt-G1.js";
|
|
9
|
+
import { c as te } from "./clone-BjtVIXpn.js";
|
|
10
10
|
var au = Object.prototype, ou = au.hasOwnProperty, Ee = Kl(function(n, e) {
|
|
11
11
|
if (Vl(e) || Ma(e)) {
|
|
12
|
-
|
|
12
|
+
Hl(e, _t(e), n);
|
|
13
13
|
return;
|
|
14
14
|
}
|
|
15
15
|
for (var t in e)
|
|
16
|
-
ou.call(e, t) &&
|
|
16
|
+
ou.call(e, t) && Wl(n, t, e[t]);
|
|
17
17
|
});
|
|
18
18
|
function wn(n) {
|
|
19
19
|
for (var e = -1, t = n == null ? 0 : n.length, r = 0, s = []; ++e < t; ) {
|
|
@@ -99,7 +99,7 @@ function de(n) {
|
|
|
99
99
|
}
|
|
100
100
|
var Ru = Math.max;
|
|
101
101
|
function ue(n, e, t, r) {
|
|
102
|
-
n = Ma(n) ? n :
|
|
102
|
+
n = Ma(n) ? n : W(n), t = t ? Qs(t) : 0;
|
|
103
103
|
var s = n.length;
|
|
104
104
|
return t < 0 && (t = Ru(s + t, 0)), de(n) ? t <= s && n.indexOf(e, t) > -1 : !!s && Ba(n, e, t) > -1;
|
|
105
105
|
}
|
|
@@ -175,7 +175,7 @@ function Cu(n) {
|
|
|
175
175
|
function ar(n) {
|
|
176
176
|
return typeof n == "object" && n !== null && se(n.container) && Ge(n.reference) && typeof n.message == "string";
|
|
177
177
|
}
|
|
178
|
-
class
|
|
178
|
+
class Ha {
|
|
179
179
|
constructor() {
|
|
180
180
|
this.subtypes = {}, this.allSubtypes = {};
|
|
181
181
|
}
|
|
@@ -210,7 +210,7 @@ class Wa {
|
|
|
210
210
|
function In(n) {
|
|
211
211
|
return typeof n == "object" && n !== null && Array.isArray(n.content);
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function Wa(n) {
|
|
214
214
|
return typeof n == "object" && n !== null && typeof n.tokenType == "object";
|
|
215
215
|
}
|
|
216
216
|
function ja(n) {
|
|
@@ -594,20 +594,20 @@ function Er(n) {
|
|
|
594
594
|
length: t - e
|
|
595
595
|
};
|
|
596
596
|
}
|
|
597
|
-
var
|
|
597
|
+
var We;
|
|
598
598
|
(function(n) {
|
|
599
599
|
n[n.Before = 0] = "Before", n[n.After = 1] = "After", n[n.OverlapFront = 2] = "OverlapFront", n[n.OverlapBack = 3] = "OverlapBack", n[n.Inside = 4] = "Inside", n[n.Outside = 5] = "Outside";
|
|
600
|
-
})(
|
|
600
|
+
})(We || (We = {}));
|
|
601
601
|
function wu(n, e) {
|
|
602
602
|
if (n.end.line < e.start.line || n.end.line === e.start.line && n.end.character <= e.start.character)
|
|
603
|
-
return
|
|
603
|
+
return We.Before;
|
|
604
604
|
if (n.start.line > e.end.line || n.start.line === e.end.line && n.start.character >= e.end.character)
|
|
605
|
-
return
|
|
605
|
+
return We.After;
|
|
606
606
|
const t = n.start.line > e.start.line || n.start.line === e.start.line && n.start.character >= e.start.character, r = n.end.line < e.end.line || n.end.line === e.end.line && n.end.character <= e.end.character;
|
|
607
|
-
return t && r ?
|
|
607
|
+
return t && r ? We.Inside : t ? We.OverlapBack : r ? We.OverlapFront : We.Outside;
|
|
608
608
|
}
|
|
609
609
|
function _u(n, e) {
|
|
610
|
-
return wu(n, e) >
|
|
610
|
+
return wu(n, e) > We.After;
|
|
611
611
|
}
|
|
612
612
|
const Lu = /^[\w\p{L}]$/u;
|
|
613
613
|
function Ou(n, e) {
|
|
@@ -626,7 +626,7 @@ function Ou(n, e) {
|
|
|
626
626
|
}
|
|
627
627
|
}
|
|
628
628
|
function Pi(n, e) {
|
|
629
|
-
return
|
|
629
|
+
return Wa(n) && e.includes(n.tokenType.name);
|
|
630
630
|
}
|
|
631
631
|
function Pu(n, e = true) {
|
|
632
632
|
for (; n.container; ) {
|
|
@@ -653,13 +653,13 @@ const Fn = "AbstractRule", Gn = "AbstractType", ns = "Condition", bi = "TypeDefi
|
|
|
653
653
|
function bu(n) {
|
|
654
654
|
return O.isInstance(n, Vt);
|
|
655
655
|
}
|
|
656
|
-
const Un = "ArrayLiteral", Bn = "ArrayType",
|
|
656
|
+
const Un = "ArrayLiteral", Bn = "ArrayType", Ht = "BooleanLiteral";
|
|
657
657
|
function Mu(n) {
|
|
658
|
-
return O.isInstance(n,
|
|
658
|
+
return O.isInstance(n, Ht);
|
|
659
659
|
}
|
|
660
|
-
const
|
|
660
|
+
const Wt = "Conjunction";
|
|
661
661
|
function Du(n) {
|
|
662
|
-
return O.isInstance(n,
|
|
662
|
+
return O.isInstance(n, Wt);
|
|
663
663
|
}
|
|
664
664
|
const jt = "Disjunction";
|
|
665
665
|
function Fu(n) {
|
|
@@ -677,7 +677,7 @@ const is = "NamedArgument", Yt = "Negation";
|
|
|
677
677
|
function Gu(n) {
|
|
678
678
|
return O.isInstance(n, Yt);
|
|
679
679
|
}
|
|
680
|
-
const Vn = "NumberLiteral",
|
|
680
|
+
const Vn = "NumberLiteral", Hn = "Parameter", Xt = "ParameterReference";
|
|
681
681
|
function Uu(n) {
|
|
682
682
|
return O.isInstance(n, Xt);
|
|
683
683
|
}
|
|
@@ -685,7 +685,7 @@ const Jt = "ParserRule";
|
|
|
685
685
|
function Ne(n) {
|
|
686
686
|
return O.isInstance(n, Jt);
|
|
687
687
|
}
|
|
688
|
-
const
|
|
688
|
+
const Wn = "ReferenceType", or = "ReturnType";
|
|
689
689
|
function Bu(n) {
|
|
690
690
|
return O.isInstance(n, or);
|
|
691
691
|
}
|
|
@@ -722,7 +722,7 @@ function si(n) {
|
|
|
722
722
|
return O.isInstance(n, sn);
|
|
723
723
|
}
|
|
724
724
|
const an = "EndOfFile";
|
|
725
|
-
function
|
|
725
|
+
function Hu(n) {
|
|
726
726
|
return O.isInstance(n, an);
|
|
727
727
|
}
|
|
728
728
|
const on = "Group";
|
|
@@ -734,7 +734,7 @@ function mt(n) {
|
|
|
734
734
|
return O.isInstance(n, ln);
|
|
735
735
|
}
|
|
736
736
|
const un = "NegatedToken";
|
|
737
|
-
function
|
|
737
|
+
function Wu(n) {
|
|
738
738
|
return O.isInstance(n, un);
|
|
739
739
|
}
|
|
740
740
|
const cn = "RegexToken";
|
|
@@ -769,9 +769,9 @@ const yn = "Wildcard";
|
|
|
769
769
|
function Ju(n) {
|
|
770
770
|
return O.isInstance(n, yn);
|
|
771
771
|
}
|
|
772
|
-
class Qa extends
|
|
772
|
+
class Qa extends Ha {
|
|
773
773
|
getAllTypes() {
|
|
774
|
-
return [Vt, Fn, Gn, en, tn, Un, Bn, nn,
|
|
774
|
+
return [Vt, Fn, Gn, en, tn, Un, Bn, nn, Ht, rn, ns, Wt, sn, jt, an, Kn, ss, on, zt, qt, ln, is, un, Yt, Vn, Hn, Xt, Jt, Wn, cn, or, dn, Zt, jn, fn, hn, xt, pn, Qt, as, bi, zn, mn, gn, rs, yn];
|
|
775
775
|
}
|
|
776
776
|
computeIsSubtype(e, t) {
|
|
777
777
|
switch (e) {
|
|
@@ -798,13 +798,13 @@ class Qa extends Wa {
|
|
|
798
798
|
case jn:
|
|
799
799
|
return this.isSubtype(rs, t);
|
|
800
800
|
case Bn:
|
|
801
|
-
case
|
|
801
|
+
case Wn:
|
|
802
802
|
case Zt:
|
|
803
803
|
case zn:
|
|
804
804
|
return this.isSubtype(bi, t);
|
|
805
|
-
case Wt:
|
|
806
|
-
return this.isSubtype(ns, t) || this.isSubtype(rs, t);
|
|
807
805
|
case Ht:
|
|
806
|
+
return this.isSubtype(ns, t) || this.isSubtype(rs, t);
|
|
807
|
+
case Wt:
|
|
808
808
|
case jt:
|
|
809
809
|
case Yt:
|
|
810
810
|
case Xt:
|
|
@@ -838,7 +838,7 @@ class Qa extends Wa {
|
|
|
838
838
|
return Kn;
|
|
839
839
|
case "NamedArgument:parameter":
|
|
840
840
|
case "ParameterReference:parameter":
|
|
841
|
-
return
|
|
841
|
+
return Hn;
|
|
842
842
|
case "TerminalRuleCall:rule":
|
|
843
843
|
return xt;
|
|
844
844
|
default:
|
|
@@ -869,16 +869,16 @@ class Qa extends Wa {
|
|
|
869
869
|
{ name: "elementType" }
|
|
870
870
|
]
|
|
871
871
|
};
|
|
872
|
-
case
|
|
872
|
+
case Ht:
|
|
873
873
|
return {
|
|
874
|
-
name:
|
|
874
|
+
name: Ht,
|
|
875
875
|
properties: [
|
|
876
876
|
{ name: "true", defaultValue: false }
|
|
877
877
|
]
|
|
878
878
|
};
|
|
879
|
-
case
|
|
879
|
+
case Wt:
|
|
880
880
|
return {
|
|
881
|
-
name:
|
|
881
|
+
name: Wt,
|
|
882
882
|
properties: [
|
|
883
883
|
{ name: "left" },
|
|
884
884
|
{ name: "right" }
|
|
@@ -953,9 +953,9 @@ class Qa extends Wa {
|
|
|
953
953
|
{ name: "value" }
|
|
954
954
|
]
|
|
955
955
|
};
|
|
956
|
-
case
|
|
956
|
+
case Hn:
|
|
957
957
|
return {
|
|
958
|
-
name:
|
|
958
|
+
name: Hn,
|
|
959
959
|
properties: [
|
|
960
960
|
{ name: "name" }
|
|
961
961
|
]
|
|
@@ -984,9 +984,9 @@ class Qa extends Wa {
|
|
|
984
984
|
{ name: "wildcard", defaultValue: false }
|
|
985
985
|
]
|
|
986
986
|
};
|
|
987
|
-
case
|
|
987
|
+
case Wn:
|
|
988
988
|
return {
|
|
989
|
-
name:
|
|
989
|
+
name: Wn,
|
|
990
990
|
properties: [
|
|
991
991
|
{ name: "referenceType" }
|
|
992
992
|
]
|
|
@@ -2099,7 +2099,7 @@ class ic extends Vr {
|
|
|
2099
2099
|
` && (this.multiline = true), e.quantifier)
|
|
2100
2100
|
this.isStarting = false, this.endRegexpStack = [];
|
|
2101
2101
|
else {
|
|
2102
|
-
const r =
|
|
2102
|
+
const r = Hr(t);
|
|
2103
2103
|
this.endRegexpStack.push(r), this.isStarting && (this.startRegexp += r);
|
|
2104
2104
|
}
|
|
2105
2105
|
}
|
|
@@ -2134,11 +2134,11 @@ function Ps(n) {
|
|
|
2134
2134
|
const e = typeof n == "string" ? new RegExp(n) : n;
|
|
2135
2135
|
return oc.some((t) => e.test(t));
|
|
2136
2136
|
}
|
|
2137
|
-
function
|
|
2137
|
+
function Hr(n) {
|
|
2138
2138
|
return n.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2139
2139
|
}
|
|
2140
2140
|
function lc(n) {
|
|
2141
|
-
return Array.prototype.map.call(n, (e) => /\w/.test(e) ? `[${e.toLowerCase()}${e.toUpperCase()}]` :
|
|
2141
|
+
return Array.prototype.map.call(n, (e) => /\w/.test(e) ? `[${e.toLowerCase()}${e.toUpperCase()}]` : Hr(e)).join("");
|
|
2142
2142
|
}
|
|
2143
2143
|
function uc(n, e) {
|
|
2144
2144
|
const t = cc(n), r = e.match(t);
|
|
@@ -2426,7 +2426,7 @@ function Mt(n, e) {
|
|
|
2426
2426
|
lookahead: n.lookahead
|
|
2427
2427
|
});
|
|
2428
2428
|
} else {
|
|
2429
|
-
if (
|
|
2429
|
+
if (Wu(n))
|
|
2430
2430
|
return $c(n);
|
|
2431
2431
|
if (Xu(n))
|
|
2432
2432
|
return kc(n);
|
|
@@ -2483,7 +2483,7 @@ function Sc(n) {
|
|
|
2483
2483
|
});
|
|
2484
2484
|
}
|
|
2485
2485
|
function us(n) {
|
|
2486
|
-
return
|
|
2486
|
+
return Hr(n.value);
|
|
2487
2487
|
}
|
|
2488
2488
|
function ze(n, e) {
|
|
2489
2489
|
var t;
|
|
@@ -2775,7 +2775,7 @@ function Fe(n) {
|
|
|
2775
2775
|
return "CONSUME";
|
|
2776
2776
|
throw Error("non exhaustive match");
|
|
2777
2777
|
}
|
|
2778
|
-
class
|
|
2778
|
+
class Wr {
|
|
2779
2779
|
walk(e, t = []) {
|
|
2780
2780
|
x(e.definition, (r, s) => {
|
|
2781
2781
|
const i = X(e.definition, s + 1);
|
|
@@ -2877,7 +2877,7 @@ function Pc(n) {
|
|
|
2877
2877
|
return [n.terminalType];
|
|
2878
2878
|
}
|
|
2879
2879
|
const po = "_~IN~_";
|
|
2880
|
-
class bc extends
|
|
2880
|
+
class bc extends Wr {
|
|
2881
2881
|
constructor(e) {
|
|
2882
2882
|
super(), this.topProd = e, this.follows = {};
|
|
2883
2883
|
}
|
|
@@ -3012,7 +3012,7 @@ function Ms(n, e, t) {
|
|
|
3012
3012
|
default:
|
|
3013
3013
|
throw Error("non exhaustive match!");
|
|
3014
3014
|
}
|
|
3015
|
-
return
|
|
3015
|
+
return W(e);
|
|
3016
3016
|
}
|
|
3017
3017
|
function Yn(n, e, t) {
|
|
3018
3018
|
const r = Qe(n);
|
|
@@ -3217,14 +3217,14 @@ function Vc(n, e) {
|
|
|
3217
3217
|
canBeOptimized: v
|
|
3218
3218
|
};
|
|
3219
3219
|
}
|
|
3220
|
-
function
|
|
3220
|
+
function Hc(n, e) {
|
|
3221
3221
|
let t = [];
|
|
3222
3222
|
const r = jc(n);
|
|
3223
3223
|
t = t.concat(r.errors);
|
|
3224
3224
|
const s = zc(r.valid), i = s.valid;
|
|
3225
|
-
return t = t.concat(s.errors), t = t.concat(
|
|
3225
|
+
return t = t.concat(s.errors), t = t.concat(Wc(i)), t = t.concat(td(i)), t = t.concat(nd(i, e)), t = t.concat(rd(i)), t;
|
|
3226
3226
|
}
|
|
3227
|
-
function
|
|
3227
|
+
function Wc(n) {
|
|
3228
3228
|
let e = [];
|
|
3229
3229
|
const t = ke(n, (r) => Ye(r[yt]));
|
|
3230
3230
|
return e = e.concat(Yc(t)), e = e.concat(Zc(t)), e = e.concat(Qc(t)), e = e.concat(ed(t)), e = e.concat(Xc(t)), e;
|
|
@@ -3453,7 +3453,7 @@ function ad(n, e, t) {
|
|
|
3453
3453
|
function od(n, e, t) {
|
|
3454
3454
|
const r = [];
|
|
3455
3455
|
let s = false;
|
|
3456
|
-
const i = wn(Ie(
|
|
3456
|
+
const i = wn(Ie(W(n.modes))), a = Ur(i, (l) => l[yt] === ce.NA), o = Ro(t);
|
|
3457
3457
|
return e && x(a, (l) => {
|
|
3458
3458
|
const u = To(l, o);
|
|
3459
3459
|
if (u !== false) {
|
|
@@ -3591,7 +3591,7 @@ function hd(n) {
|
|
|
3591
3591
|
}
|
|
3592
3592
|
function pd(n) {
|
|
3593
3593
|
x(n, (e) => {
|
|
3594
|
-
Eo(e) || (vo[Vi] = e, e.tokenTypeIdx = Vi++),
|
|
3594
|
+
Eo(e) || (vo[Vi] = e, e.tokenTypeIdx = Vi++), Hi(e) && !Q(e.CATEGORIES) && (e.CATEGORIES = [e.CATEGORIES]), Hi(e) || (e.CATEGORIES = []), yd(e) || (e.categoryMatches = []), Td(e) || (e.categoryMatchesMap = {});
|
|
3595
3595
|
});
|
|
3596
3596
|
}
|
|
3597
3597
|
function md(n) {
|
|
@@ -3617,7 +3617,7 @@ function Ao(n, e) {
|
|
|
3617
3617
|
function Eo(n) {
|
|
3618
3618
|
return I(n, "tokenTypeIdx");
|
|
3619
3619
|
}
|
|
3620
|
-
function
|
|
3620
|
+
function Hi(n) {
|
|
3621
3621
|
return I(n, "CATEGORIES");
|
|
3622
3622
|
}
|
|
3623
3623
|
function yd(n) {
|
|
@@ -3696,7 +3696,7 @@ a boolean 2nd argument is no longer supported`);
|
|
|
3696
3696
|
if (x(s.modes, (o, l) => {
|
|
3697
3697
|
this.TRACE_INIT(`Mode: <${l}> processing`, () => {
|
|
3698
3698
|
if (this.modes.push(l), this.config.skipValidations === false && this.TRACE_INIT("validatePatterns", () => {
|
|
3699
|
-
this.lexerDefinitionErrors = this.lexerDefinitionErrors.concat(
|
|
3699
|
+
this.lexerDefinitionErrors = this.lexerDefinitionErrors.concat(Hc(o, a));
|
|
3700
3700
|
}), P(this.lexerDefinitionErrors)) {
|
|
3701
3701
|
bn(o);
|
|
3702
3702
|
let u;
|
|
@@ -3936,7 +3936,7 @@ function wt(n) {
|
|
|
3936
3936
|
function ko(n) {
|
|
3937
3937
|
return de(n.LABEL) && n.LABEL !== "";
|
|
3938
3938
|
}
|
|
3939
|
-
const vd = "parent",
|
|
3939
|
+
const vd = "parent", Wi = "categories", ji = "label", zi = "group", qi = "push_mode", Yi = "pop_mode", Xi = "longer_alt", Ji = "line_breaks", Zi = "start_chars_hint";
|
|
3940
3940
|
function $o(n) {
|
|
3941
3941
|
return Ad(n);
|
|
3942
3942
|
}
|
|
@@ -3945,7 +3945,7 @@ function Ad(n) {
|
|
|
3945
3945
|
if (t.name = n.name, qe(e) || (t.PATTERN = e), I(n, vd))
|
|
3946
3946
|
throw `The parent property is no longer supported.
|
|
3947
3947
|
See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;
|
|
3948
|
-
return I(n,
|
|
3948
|
+
return I(n, Wi) && (t.CATEGORIES = n[Wi]), bn([t]), I(n, ji) && (t.LABEL = n[ji]), I(n, zi) && (t.GROUP = n[zi]), I(n, Yi) && (t.POP_MODE = n[Yi]), I(n, qi) && (t.PUSH_MODE = n[qi]), I(n, Xi) && (t.LONGER_ALT = n[Xi]), I(n, Ji) && (t.LINE_BREAKS = n[Ji]), I(n, Zi) && (t.START_CHARS_HINT = n[Zi]), t;
|
|
3949
3949
|
}
|
|
3950
3950
|
const et = $o({ name: "EOF", pattern: ce.NA });
|
|
3951
3951
|
bn([et]);
|
|
@@ -4085,7 +4085,7 @@ class $d extends Ft {
|
|
|
4085
4085
|
super(), this.nameToTopRule = e, this.errMsgProvider = t, this.errors = [];
|
|
4086
4086
|
}
|
|
4087
4087
|
resolveRefs() {
|
|
4088
|
-
x(
|
|
4088
|
+
x(W(this.nameToTopRule), (e) => {
|
|
4089
4089
|
this.currTopLevel = e, e.accept(this);
|
|
4090
4090
|
});
|
|
4091
4091
|
}
|
|
@@ -4104,7 +4104,7 @@ class $d extends Ft {
|
|
|
4104
4104
|
}
|
|
4105
4105
|
}
|
|
4106
4106
|
}
|
|
4107
|
-
class Sd extends
|
|
4107
|
+
class Sd extends Wr {
|
|
4108
4108
|
constructor(e, t) {
|
|
4109
4109
|
super(), this.topProd = e, this.path = t, this.possibleTokTypes = [], this.nextProductionName = "", this.nextProductionOccurrence = 0, this.found = false, this.isAtEndOfPath = false;
|
|
4110
4110
|
}
|
|
@@ -4137,7 +4137,7 @@ class Cd extends Sd {
|
|
|
4137
4137
|
}
|
|
4138
4138
|
}
|
|
4139
4139
|
}
|
|
4140
|
-
class zr extends
|
|
4140
|
+
class zr extends Wr {
|
|
4141
4141
|
constructor(e, t) {
|
|
4142
4142
|
super(), this.topRule = e, this.occurrence = t, this.result = {
|
|
4143
4143
|
token: void 0,
|
|
@@ -4529,7 +4529,7 @@ function Od(n, e, t) {
|
|
|
4529
4529
|
return false;
|
|
4530
4530
|
};
|
|
4531
4531
|
}
|
|
4532
|
-
class Pd extends
|
|
4532
|
+
class Pd extends Wr {
|
|
4533
4533
|
constructor(e, t, r) {
|
|
4534
4534
|
super(), this.topProd = e, this.targetOccurrence = t, this.targetProdType = r;
|
|
4535
4535
|
}
|
|
@@ -4706,7 +4706,7 @@ function Gd(n, e) {
|
|
|
4706
4706
|
const t = new Bd();
|
|
4707
4707
|
n.accept(t);
|
|
4708
4708
|
const r = t.allProductions, s = yu(r, Ud), i = be(s, (o) => o.length > 1);
|
|
4709
|
-
return k(
|
|
4709
|
+
return k(W(i), (o) => {
|
|
4710
4710
|
const l = Pe(o), u = e.buildDuplicateFoundError(n, o), c = Fe(l), d = {
|
|
4711
4711
|
message: u,
|
|
4712
4712
|
type: le.DUPLICATE_PRODUCTIONS,
|
|
@@ -4824,7 +4824,7 @@ class mi extends Ft {
|
|
|
4824
4824
|
this.alternations.push(e);
|
|
4825
4825
|
}
|
|
4826
4826
|
}
|
|
4827
|
-
function
|
|
4827
|
+
function Hd(n, e) {
|
|
4828
4828
|
const t = new mi();
|
|
4829
4829
|
n.accept(t);
|
|
4830
4830
|
const r = t.alternations;
|
|
@@ -4848,7 +4848,7 @@ function Wd(n, e) {
|
|
|
4848
4848
|
});
|
|
4849
4849
|
});
|
|
4850
4850
|
}
|
|
4851
|
-
function
|
|
4851
|
+
function Wd(n, e, t) {
|
|
4852
4852
|
const r = new mi();
|
|
4853
4853
|
n.accept(r);
|
|
4854
4854
|
let s = r.alternations;
|
|
@@ -5211,10 +5211,10 @@ class gi {
|
|
|
5211
5211
|
return Ae(e, (t) => _o(t, t, ht));
|
|
5212
5212
|
}
|
|
5213
5213
|
validateEmptyOrAlternatives(e) {
|
|
5214
|
-
return Ae(e, (t) =>
|
|
5214
|
+
return Ae(e, (t) => Hd(t, ht));
|
|
5215
5215
|
}
|
|
5216
5216
|
validateAmbiguousAlternationAlternatives(e, t) {
|
|
5217
|
-
return Ae(e, (r) =>
|
|
5217
|
+
return Ae(e, (r) => Wd(r, t, ht));
|
|
5218
5218
|
}
|
|
5219
5219
|
validateSomeNonEmptyLookaheadPath(e, t) {
|
|
5220
5220
|
return qd(e, t, ht);
|
|
@@ -5394,17 +5394,17 @@ function gf(n, e, t) {
|
|
|
5394
5394
|
s[i] = pf;
|
|
5395
5395
|
}), r.prototype = s, r.prototype.constructor = r, r;
|
|
5396
5396
|
}
|
|
5397
|
-
var
|
|
5397
|
+
var Hs;
|
|
5398
5398
|
(function(n) {
|
|
5399
5399
|
n[n.REDUNDANT_METHOD = 0] = "REDUNDANT_METHOD", n[n.MISSING_METHOD = 1] = "MISSING_METHOD";
|
|
5400
|
-
})(
|
|
5400
|
+
})(Hs || (Hs = {}));
|
|
5401
5401
|
function yf(n, e) {
|
|
5402
5402
|
return Tf(n, e);
|
|
5403
5403
|
}
|
|
5404
5404
|
function Tf(n, e) {
|
|
5405
5405
|
const t = ke(e, (s) => vt(n[s]) === false), r = k(t, (s) => ({
|
|
5406
5406
|
msg: `Missing visitor method: <${s}> on ${n.constructor.name} CST Visitor.`,
|
|
5407
|
-
type:
|
|
5407
|
+
type: Hs.MISSING_METHOD,
|
|
5408
5408
|
methodName: s
|
|
5409
5409
|
}));
|
|
5410
5410
|
return wn(r);
|
|
@@ -5862,7 +5862,7 @@ class Af {
|
|
|
5862
5862
|
return this.gastProductionsCache;
|
|
5863
5863
|
}
|
|
5864
5864
|
getSerializedGastProductions() {
|
|
5865
|
-
return Nc(
|
|
5865
|
+
return Nc(W(this.gastProductionsCache));
|
|
5866
5866
|
}
|
|
5867
5867
|
}
|
|
5868
5868
|
class Ef {
|
|
@@ -5883,16 +5883,16 @@ class Ef {
|
|
|
5883
5883
|
}
|
|
5884
5884
|
if (Q(e))
|
|
5885
5885
|
this.tokensMap = ae(e, (i, a) => (i[a.name] = a, i), {});
|
|
5886
|
-
else if (I(e, "modes") && Oe(Ie(
|
|
5887
|
-
const i = Ie(
|
|
5886
|
+
else if (I(e, "modes") && Oe(Ie(W(e.modes)), Rd)) {
|
|
5887
|
+
const i = Ie(W(e.modes)), a = ni(i);
|
|
5888
5888
|
this.tokensMap = ae(a, (o, l) => (o[l.name] = l, o), {});
|
|
5889
5889
|
} else if (tu(e))
|
|
5890
5890
|
this.tokensMap = te(e);
|
|
5891
5891
|
else
|
|
5892
5892
|
throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");
|
|
5893
5893
|
this.tokensMap.EOF = et;
|
|
5894
|
-
const r = I(e, "modes") ? Ie(
|
|
5895
|
-
this.tokenMatcher = s ? xr : Pn, bn(
|
|
5894
|
+
const r = I(e, "modes") ? Ie(W(e.modes)) : W(e), s = Oe(r, (i) => P(i.categoryMatches));
|
|
5895
|
+
this.tokenMatcher = s ? xr : Pn, bn(W(this.tokensMap));
|
|
5896
5896
|
}
|
|
5897
5897
|
defineRule(e, t, r) {
|
|
5898
5898
|
if (this.selfAnalysisDone)
|
|
@@ -6505,31 +6505,31 @@ class Mn {
|
|
|
6505
6505
|
let r = [];
|
|
6506
6506
|
if (this.TRACE_INIT("Grammar Resolving", () => {
|
|
6507
6507
|
r = Zd({
|
|
6508
|
-
rules:
|
|
6508
|
+
rules: W(this.gastProductionsCache)
|
|
6509
6509
|
}), this.definitionErrors = this.definitionErrors.concat(r);
|
|
6510
6510
|
}), this.TRACE_INIT("Grammar Validations", () => {
|
|
6511
6511
|
if (P(r) && this.skipValidations === false) {
|
|
6512
6512
|
const s = Qd({
|
|
6513
|
-
rules:
|
|
6514
|
-
tokenTypes:
|
|
6513
|
+
rules: W(this.gastProductionsCache),
|
|
6514
|
+
tokenTypes: W(this.tokensMap),
|
|
6515
6515
|
errMsgProvider: ht,
|
|
6516
6516
|
grammarName: t
|
|
6517
6517
|
}), i = Dd({
|
|
6518
6518
|
lookaheadStrategy: this.lookaheadStrategy,
|
|
6519
|
-
rules:
|
|
6520
|
-
tokenTypes:
|
|
6519
|
+
rules: W(this.gastProductionsCache),
|
|
6520
|
+
tokenTypes: W(this.tokensMap),
|
|
6521
6521
|
grammarName: t
|
|
6522
6522
|
});
|
|
6523
6523
|
this.definitionErrors = this.definitionErrors.concat(s, i);
|
|
6524
6524
|
}
|
|
6525
6525
|
}), P(this.definitionErrors) && (this.recoveryEnabled && this.TRACE_INIT("computeAllProdsFollows", () => {
|
|
6526
|
-
const s = Mc(
|
|
6526
|
+
const s = Mc(W(this.gastProductionsCache));
|
|
6527
6527
|
this.resyncFollows = s;
|
|
6528
6528
|
}), this.TRACE_INIT("ComputeLookaheadFunctions", () => {
|
|
6529
6529
|
var s, i;
|
|
6530
6530
|
(i = (s = this.lookaheadStrategy).initialize) === null || i === void 0 || i.call(s, {
|
|
6531
|
-
rules:
|
|
6532
|
-
}), this.preComputeLookaheadFunctions(
|
|
6531
|
+
rules: W(this.gastProductionsCache)
|
|
6532
|
+
}), this.preComputeLookaheadFunctions(W(this.gastProductionsCache));
|
|
6533
6533
|
})), !Mn.DEFER_DEFINITION_ERRORS_HANDLING && !P(this.definitionErrors))
|
|
6534
6534
|
throw e = k(this.definitionErrors, (s) => s.message), new Error(`Parser Definition Errors detected:
|
|
6535
6535
|
${e.join(`
|
|
@@ -6570,7 +6570,7 @@ class wf extends Mn {
|
|
|
6570
6570
|
function Pt(n, e, t) {
|
|
6571
6571
|
return `${n.name}_${e}_${t}`;
|
|
6572
6572
|
}
|
|
6573
|
-
const tt = 1, _f = 2,
|
|
6573
|
+
const tt = 1, _f = 2, Ho = 4, Wo = 5, Dn = 7, Lf = 8, Of = 9, Pf = 10, bf = 11, jo = 12;
|
|
6574
6574
|
class yi {
|
|
6575
6575
|
constructor(e) {
|
|
6576
6576
|
this.target = e;
|
|
@@ -6632,7 +6632,7 @@ function qo(n, e, t) {
|
|
|
6632
6632
|
}
|
|
6633
6633
|
function Ff(n, e, t) {
|
|
6634
6634
|
const r = q(n, e, t, {
|
|
6635
|
-
type:
|
|
6635
|
+
type: Wo
|
|
6636
6636
|
});
|
|
6637
6637
|
st(n, r);
|
|
6638
6638
|
const s = Gt(n, e, r, t, Et(n, e, t));
|
|
@@ -6640,7 +6640,7 @@ function Ff(n, e, t) {
|
|
|
6640
6640
|
}
|
|
6641
6641
|
function Gf(n, e, t) {
|
|
6642
6642
|
const r = q(n, e, t, {
|
|
6643
|
-
type:
|
|
6643
|
+
type: Wo
|
|
6644
6644
|
});
|
|
6645
6645
|
st(n, r);
|
|
6646
6646
|
const s = Gt(n, e, r, t, Et(n, e, t)), i = vi(n, e, t.separator, t);
|
|
@@ -6648,7 +6648,7 @@ function Gf(n, e, t) {
|
|
|
6648
6648
|
}
|
|
6649
6649
|
function Uf(n, e, t) {
|
|
6650
6650
|
const r = q(n, e, t, {
|
|
6651
|
-
type:
|
|
6651
|
+
type: Ho
|
|
6652
6652
|
});
|
|
6653
6653
|
st(n, r);
|
|
6654
6654
|
const s = Gt(n, e, r, t, Et(n, e, t));
|
|
@@ -6656,7 +6656,7 @@ function Uf(n, e, t) {
|
|
|
6656
6656
|
}
|
|
6657
6657
|
function Bf(n, e, t) {
|
|
6658
6658
|
const r = q(n, e, t, {
|
|
6659
|
-
type:
|
|
6659
|
+
type: Ho
|
|
6660
6660
|
});
|
|
6661
6661
|
st(n, r);
|
|
6662
6662
|
const s = Gt(n, e, r, t, Et(n, e, t)), i = vi(n, e, t.separator, t);
|
|
@@ -6676,7 +6676,7 @@ function Vf(n, e, t) {
|
|
|
6676
6676
|
});
|
|
6677
6677
|
st(n, r);
|
|
6678
6678
|
const s = Gt(n, e, r, t, Et(n, e, t));
|
|
6679
|
-
return
|
|
6679
|
+
return Hf(n, e, t, s);
|
|
6680
6680
|
}
|
|
6681
6681
|
function Et(n, e, t) {
|
|
6682
6682
|
const r = ke(k(t.definition, (s) => qo(n, e, s)), (s) => s !== void 0);
|
|
@@ -6710,7 +6710,7 @@ function Xo(n, e, t, r, s) {
|
|
|
6710
6710
|
right: l
|
|
6711
6711
|
};
|
|
6712
6712
|
}
|
|
6713
|
-
function
|
|
6713
|
+
function Hf(n, e, t, r) {
|
|
6714
6714
|
const s = r.left, i = r.right;
|
|
6715
6715
|
return V(s, i), n.decisionMap[Pt(e, "Option", t.idx)] = s, r;
|
|
6716
6716
|
}
|
|
@@ -6729,9 +6729,9 @@ function Gt(n, e, t, r, ...s) {
|
|
|
6729
6729
|
left: t,
|
|
6730
6730
|
right: i
|
|
6731
6731
|
};
|
|
6732
|
-
return n.decisionMap[Pt(e,
|
|
6732
|
+
return n.decisionMap[Pt(e, Wf(r), r.idx)] = t, a;
|
|
6733
6733
|
}
|
|
6734
|
-
function
|
|
6734
|
+
function Wf(n) {
|
|
6735
6735
|
if (n instanceof pe)
|
|
6736
6736
|
return "Alternation";
|
|
6737
6737
|
if (n instanceof ee)
|
|
@@ -6815,7 +6815,7 @@ function Yf(n, e) {
|
|
|
6815
6815
|
n.states.splice(n.states.indexOf(e), 1);
|
|
6816
6816
|
}
|
|
6817
6817
|
const Lr = {};
|
|
6818
|
-
class
|
|
6818
|
+
class Ws {
|
|
6819
6819
|
constructor() {
|
|
6820
6820
|
this.map = {}, this.configs = [];
|
|
6821
6821
|
}
|
|
@@ -7073,7 +7073,7 @@ function ih(n, e) {
|
|
|
7073
7073
|
return n.edges[e.tokenTypeIdx];
|
|
7074
7074
|
}
|
|
7075
7075
|
function ah(n, e, t) {
|
|
7076
|
-
const r = new
|
|
7076
|
+
const r = new Ws(), s = [];
|
|
7077
7077
|
for (const a of n.elements) {
|
|
7078
7078
|
if (t.is(a.alt) === false)
|
|
7079
7079
|
continue;
|
|
@@ -7093,7 +7093,7 @@ function ah(n, e, t) {
|
|
|
7093
7093
|
}
|
|
7094
7094
|
let i;
|
|
7095
7095
|
if (s.length === 0 && r.size === 1 && (i = r), i === void 0) {
|
|
7096
|
-
i = new
|
|
7096
|
+
i = new Ws();
|
|
7097
7097
|
for (const a of r.elements)
|
|
7098
7098
|
Or(a, i);
|
|
7099
7099
|
}
|
|
@@ -7135,7 +7135,7 @@ function el(n, e) {
|
|
|
7135
7135
|
return r !== void 0 ? r : (e.configs.finalize(), n.states[t] = e, e);
|
|
7136
7136
|
}
|
|
7137
7137
|
function uh(n) {
|
|
7138
|
-
const e = new
|
|
7138
|
+
const e = new Ws(), t = n.transitions.length;
|
|
7139
7139
|
for (let r = 0; r < t; r++) {
|
|
7140
7140
|
const i = {
|
|
7141
7141
|
state: n.transitions[r].target,
|
|
@@ -7357,7 +7357,7 @@ class Ei extends tl {
|
|
|
7357
7357
|
}
|
|
7358
7358
|
return this._rangeCache;
|
|
7359
7359
|
} else
|
|
7360
|
-
return { start:
|
|
7360
|
+
return { start: H.create(0, 0), end: H.create(0, 0) };
|
|
7361
7361
|
}
|
|
7362
7362
|
get firstNonHiddenNode() {
|
|
7363
7363
|
for (const e of this.content)
|
|
@@ -7765,7 +7765,7 @@ function Tt(n, e, t = false) {
|
|
|
7765
7765
|
r = Ih(n, e);
|
|
7766
7766
|
else if (ii(e))
|
|
7767
7767
|
r = Nh(n, e);
|
|
7768
|
-
else if (
|
|
7768
|
+
else if (Hu(e)) {
|
|
7769
7769
|
const s = n.consume++;
|
|
7770
7770
|
r = () => n.parser.consume(s, et, e);
|
|
7771
7771
|
} else
|
|
@@ -9123,12 +9123,12 @@ class Vh {
|
|
|
9123
9123
|
return Object.assign(Object.assign({}, e), { message: `Could not resolve reference to ${s} named '${e.reference.$refText}'.`, targetDescription: t });
|
|
9124
9124
|
}
|
|
9125
9125
|
}
|
|
9126
|
-
function
|
|
9126
|
+
function Hh(n) {
|
|
9127
9127
|
return typeof n.name == "string";
|
|
9128
9128
|
}
|
|
9129
|
-
class
|
|
9129
|
+
class Wh {
|
|
9130
9130
|
getName(e) {
|
|
9131
|
-
if (
|
|
9131
|
+
if (Hh(e))
|
|
9132
9132
|
return e.name;
|
|
9133
9133
|
}
|
|
9134
9134
|
getNameNode(e) {
|
|
@@ -10586,7 +10586,7 @@ function Aa(n) {
|
|
|
10586
10586
|
}
|
|
10587
10587
|
function Tp(n, e, t) {
|
|
10588
10588
|
let r, s;
|
|
10589
|
-
typeof n == "string" ? (s = e, r = t) : (s = n.range.start, r = e), s || (s =
|
|
10589
|
+
typeof n == "string" ? (s = e, r = t) : (s = n.range.start, r = e), s || (s = H.create(0, 0));
|
|
10590
10590
|
const i = Rl(n), a = Si(r), o = Ap({
|
|
10591
10591
|
lines: i,
|
|
10592
10592
|
position: s,
|
|
@@ -10630,7 +10630,7 @@ function Ap(n) {
|
|
|
10630
10630
|
}
|
|
10631
10631
|
if (c = c.substring(0, Sp(c)), Js(c, d) >= c.length) {
|
|
10632
10632
|
if (s.length > 0) {
|
|
10633
|
-
const h =
|
|
10633
|
+
const h = H.create(i, a);
|
|
10634
10634
|
s.push({
|
|
10635
10635
|
type: "break",
|
|
10636
10636
|
content: "",
|
|
@@ -10641,7 +10641,7 @@ function Ap(n) {
|
|
|
10641
10641
|
Ea.lastIndex = d;
|
|
10642
10642
|
const h = Ea.exec(c);
|
|
10643
10643
|
if (h) {
|
|
10644
|
-
const p = h[0], m = h[1], v =
|
|
10644
|
+
const p = h[0], m = h[1], v = H.create(i, a + d), y = H.create(i, a + d + p.length);
|
|
10645
10645
|
s.push({
|
|
10646
10646
|
type: "tag",
|
|
10647
10647
|
content: m,
|
|
@@ -10660,7 +10660,7 @@ function Ap(n) {
|
|
|
10660
10660
|
function Ep(n, e, t, r) {
|
|
10661
10661
|
const s = [];
|
|
10662
10662
|
if (n.length === 0) {
|
|
10663
|
-
const i =
|
|
10663
|
+
const i = H.create(t, r), a = H.create(t, r + e.length);
|
|
10664
10664
|
s.push({
|
|
10665
10665
|
type: "text",
|
|
10666
10666
|
content: e,
|
|
@@ -10673,27 +10673,27 @@ function Ep(n, e, t, r) {
|
|
|
10673
10673
|
u.length > 0 && s.push({
|
|
10674
10674
|
type: "text",
|
|
10675
10675
|
content: e.substring(i, l),
|
|
10676
|
-
range: Re.create(
|
|
10676
|
+
range: Re.create(H.create(t, i + r), H.create(t, l + r))
|
|
10677
10677
|
});
|
|
10678
10678
|
let c = u.length + 1;
|
|
10679
10679
|
const d = o[1];
|
|
10680
10680
|
if (s.push({
|
|
10681
10681
|
type: "inline-tag",
|
|
10682
10682
|
content: d,
|
|
10683
|
-
range: Re.create(
|
|
10683
|
+
range: Re.create(H.create(t, i + c + r), H.create(t, i + c + d.length + r))
|
|
10684
10684
|
}), c += d.length, o.length === 4) {
|
|
10685
10685
|
c += o[2].length;
|
|
10686
10686
|
const f = o[3];
|
|
10687
10687
|
s.push({
|
|
10688
10688
|
type: "text",
|
|
10689
10689
|
content: f,
|
|
10690
|
-
range: Re.create(
|
|
10690
|
+
range: Re.create(H.create(t, i + c + r), H.create(t, i + c + f.length + r))
|
|
10691
10691
|
});
|
|
10692
10692
|
} else
|
|
10693
10693
|
s.push({
|
|
10694
10694
|
type: "text",
|
|
10695
10695
|
content: "",
|
|
10696
|
-
range: Re.create(
|
|
10696
|
+
range: Re.create(H.create(t, i + c + r), H.create(t, i + c + r))
|
|
10697
10697
|
});
|
|
10698
10698
|
i = l + o[0].length;
|
|
10699
10699
|
}
|
|
@@ -10701,7 +10701,7 @@ function Ep(n, e, t, r) {
|
|
|
10701
10701
|
a.length > 0 && s.push({
|
|
10702
10702
|
type: "text",
|
|
10703
10703
|
content: a,
|
|
10704
|
-
range: Re.create(
|
|
10704
|
+
range: Re.create(H.create(t, i + r), H.create(t, i + r + a.length))
|
|
10705
10705
|
});
|
|
10706
10706
|
}
|
|
10707
10707
|
return s;
|
|
@@ -10718,7 +10718,7 @@ function Sp(n) {
|
|
|
10718
10718
|
}
|
|
10719
10719
|
function Cp(n) {
|
|
10720
10720
|
var e, t, r, s;
|
|
10721
|
-
const i =
|
|
10721
|
+
const i = H.create(n.position.line, n.position.character);
|
|
10722
10722
|
if (n.tokens.length === 0)
|
|
10723
10723
|
return new ka([], Re.create(i, i));
|
|
10724
10724
|
const a = [];
|
|
@@ -10790,7 +10790,7 @@ function Si(n) {
|
|
|
10790
10790
|
}
|
|
10791
10791
|
function Ts(n, e) {
|
|
10792
10792
|
if (typeof n == "string" || typeof n == "object") {
|
|
10793
|
-
const t = typeof n == "string" ?
|
|
10793
|
+
const t = typeof n == "string" ? Hr(n) : n.source;
|
|
10794
10794
|
return e ? new RegExp(`^\\s*${t}`) : new RegExp(`\\s*${t}\\s*$`);
|
|
10795
10795
|
} else
|
|
10796
10796
|
return n;
|
|
@@ -11066,7 +11066,7 @@ class Mp {
|
|
|
11066
11066
|
}
|
|
11067
11067
|
dehydrateCstNode(e, t) {
|
|
11068
11068
|
const r = t.cstNodes.get(e);
|
|
11069
|
-
return ja(e) ? r.fullText = e.fullText : r.grammarSource = this.getGrammarElementId(e.grammarSource), r.hidden = e.hidden, r.astNode = t.astNodes.get(e.astNode), In(e) ? r.content = e.content.map((s) => this.dehydrateCstNode(s, t)) :
|
|
11069
|
+
return ja(e) ? r.fullText = e.fullText : r.grammarSource = this.getGrammarElementId(e.grammarSource), r.hidden = e.hidden, r.astNode = t.astNodes.get(e.astNode), In(e) ? r.content = e.content.map((s) => this.dehydrateCstNode(s, t)) : Wa(e) && (r.tokenType = e.tokenType.name, r.offset = e.offset, r.length = e.length, r.startLine = e.range.start.line, r.startColumn = e.range.start.character, r.endLine = e.range.end.line, r.endColumn = e.range.end.character), r;
|
|
11070
11070
|
}
|
|
11071
11071
|
hydrate(e) {
|
|
11072
11072
|
const t = e.value, r = this.createHydrationContext(t);
|
|
@@ -11173,7 +11173,7 @@ function it(n) {
|
|
|
11173
11173
|
},
|
|
11174
11174
|
references: {
|
|
11175
11175
|
Linker: (e) => new Vh(e),
|
|
11176
|
-
NameProvider: () => new
|
|
11176
|
+
NameProvider: () => new Wh(),
|
|
11177
11177
|
ScopeProvider: (e) => new Zh(e),
|
|
11178
11178
|
ScopeComputation: (e) => new zh(e),
|
|
11179
11179
|
References: (e) => new jh(e)
|
|
@@ -11295,15 +11295,15 @@ function Vp(n) {
|
|
|
11295
11295
|
}
|
|
11296
11296
|
R(Vp, "isArchitecture");
|
|
11297
11297
|
var Qn = "Axis", En = "Branch";
|
|
11298
|
-
function
|
|
11298
|
+
function Hp(n) {
|
|
11299
11299
|
return Me.isInstance(n, En);
|
|
11300
11300
|
}
|
|
11301
|
-
R(
|
|
11301
|
+
R(Hp, "isBranch");
|
|
11302
11302
|
var er = "Checkout", tr = "CherryPicking", vs = "ClassDefStatement", kn = "Commit";
|
|
11303
|
-
function
|
|
11303
|
+
function Wp(n) {
|
|
11304
11304
|
return Me.isInstance(n, kn);
|
|
11305
11305
|
}
|
|
11306
|
-
R(
|
|
11306
|
+
R(Wp, "isCommit");
|
|
11307
11307
|
var As = "Curve", Es = "Edge", ks = "Entry", $n = "GitGraph";
|
|
11308
11308
|
function jp(n) {
|
|
11309
11309
|
return Me.isInstance(n, $n);
|
|
@@ -11344,7 +11344,7 @@ function Qp(n) {
|
|
|
11344
11344
|
return Me.isInstance(n, vr);
|
|
11345
11345
|
}
|
|
11346
11346
|
R(Qp, "isTreemap");
|
|
11347
|
-
var Ns = "TreemapRow", rr = "Direction", sr = "Leaf", ir = "Section", Sl = (_a2 = class extends
|
|
11347
|
+
var Ns = "TreemapRow", rr = "Direction", sr = "Leaf", ir = "Section", Sl = (_a2 = class extends Ha {
|
|
11348
11348
|
getAllTypes() {
|
|
11349
11349
|
return [pr, Qn, En, er, tr, vs, kn, As, rr, Es, ks, $n, $s, mr, nr, Ss, sr, Sn, Cs, gr, yr, Tr, Rr, xs, ir, Is, Ia, vr, Ns];
|
|
11350
11350
|
}
|
|
@@ -11974,42 +11974,42 @@ function Ul(n = ot) {
|
|
|
11974
11974
|
return e.ServiceRegistry.register(t), Fl(t), { shared: e, Treemap: t };
|
|
11975
11975
|
}
|
|
11976
11976
|
R(Ul, "createTreemapServices");
|
|
11977
|
-
var
|
|
11977
|
+
var He = {}, Dm = {
|
|
11978
11978
|
info: /* @__PURE__ */ R(async () => {
|
|
11979
11979
|
const { createInfoServices: n } = await Promise.resolve().then(() => Um), e = n().Info.parser.LangiumParser;
|
|
11980
|
-
|
|
11980
|
+
He.info = e;
|
|
11981
11981
|
}, "info"),
|
|
11982
11982
|
packet: /* @__PURE__ */ R(async () => {
|
|
11983
11983
|
const { createPacketServices: n } = await Promise.resolve().then(() => Bm), e = n().Packet.parser.LangiumParser;
|
|
11984
|
-
|
|
11984
|
+
He.packet = e;
|
|
11985
11985
|
}, "packet"),
|
|
11986
11986
|
pie: /* @__PURE__ */ R(async () => {
|
|
11987
11987
|
const { createPieServices: n } = await Promise.resolve().then(() => Km), e = n().Pie.parser.LangiumParser;
|
|
11988
|
-
|
|
11988
|
+
He.pie = e;
|
|
11989
11989
|
}, "pie"),
|
|
11990
11990
|
architecture: /* @__PURE__ */ R(async () => {
|
|
11991
11991
|
const { createArchitectureServices: n } = await Promise.resolve().then(() => Vm), e = n().Architecture.parser.LangiumParser;
|
|
11992
|
-
|
|
11992
|
+
He.architecture = e;
|
|
11993
11993
|
}, "architecture"),
|
|
11994
11994
|
gitGraph: /* @__PURE__ */ R(async () => {
|
|
11995
|
-
const { createGitGraphServices: n } = await Promise.resolve().then(() =>
|
|
11996
|
-
|
|
11995
|
+
const { createGitGraphServices: n } = await Promise.resolve().then(() => Hm), e = n().GitGraph.parser.LangiumParser;
|
|
11996
|
+
He.gitGraph = e;
|
|
11997
11997
|
}, "gitGraph"),
|
|
11998
11998
|
radar: /* @__PURE__ */ R(async () => {
|
|
11999
|
-
const { createRadarServices: n } = await Promise.resolve().then(() =>
|
|
12000
|
-
|
|
11999
|
+
const { createRadarServices: n } = await Promise.resolve().then(() => Wm), e = n().Radar.parser.LangiumParser;
|
|
12000
|
+
He.radar = e;
|
|
12001
12001
|
}, "radar"),
|
|
12002
12002
|
treemap: /* @__PURE__ */ R(async () => {
|
|
12003
12003
|
const { createTreemapServices: n } = await Promise.resolve().then(() => jm), e = n().Treemap.parser.LangiumParser;
|
|
12004
|
-
|
|
12004
|
+
He.treemap = e;
|
|
12005
12005
|
}, "treemap")
|
|
12006
12006
|
};
|
|
12007
12007
|
async function Fm(n, e) {
|
|
12008
12008
|
const t = Dm[n];
|
|
12009
12009
|
if (!t)
|
|
12010
12010
|
throw new Error(`Unknown diagram type: ${n}`);
|
|
12011
|
-
|
|
12012
|
-
const s =
|
|
12011
|
+
He[n] || await t();
|
|
12012
|
+
const s = He[n].parse(e);
|
|
12013
12013
|
if (s.lexerErrors.length > 0 || s.parserErrors.length > 0)
|
|
12014
12014
|
throw new Gm(s);
|
|
12015
12015
|
return s.value;
|
|
@@ -12039,11 +12039,11 @@ const Um = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12039
12039
|
__proto__: null,
|
|
12040
12040
|
ArchitectureModule: Pl,
|
|
12041
12041
|
createArchitectureServices: bl
|
|
12042
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
12042
|
+
}, Symbol.toStringTag, { value: "Module" })), Hm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12043
12043
|
__proto__: null,
|
|
12044
12044
|
GitGraphModule: Cl,
|
|
12045
12045
|
createGitGraphServices: xl
|
|
12046
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
12046
|
+
}, Symbol.toStringTag, { value: "Module" })), Wm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12047
12047
|
__proto__: null,
|
|
12048
12048
|
RadarModule: Ml,
|
|
12049
12049
|
createRadarServices: Dl
|