@marimo-team/islands 0.13.16-dev2 → 0.13.16-dev21
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-BizAnuDQ.js → ConnectedDataExplorerComponent-CbgMGTNw.js} +1495 -1496
- package/dist/ImageComparisonComponent-BEvxQRYY.js +248 -0
- package/dist/{VegaLite-BvtjUHLS.js → VegaLite-CtlLD_UH.js} +12483 -12485
- package/dist/{_baseUniq-C1K8a5jF.js → _baseUniq-BPYian-Y.js} +13 -13
- package/dist/{any-language-editor-D3C2KiQW.js → any-language-editor-B9yuOY2a.js} +2 -2
- package/dist/{architectureDiagram-IEHRJDOE-DhrFWr1a.js → architectureDiagram-IEHRJDOE-yPyQlJjy.js} +1800 -1800
- package/dist/asn1-jKiBa2Ya.js +10 -10
- package/dist/assets/{save-worker-9HEtFDM0.js → save-worker-DwN_qfSx.js} +695 -702
- package/dist/assets/{worker-BGGm0KYZ.js → worker-BzMPE1Lq.js} +732 -739
- package/dist/assets/{worker-BNsqBj5w.js → worker-ISYYr8IB.js} +726 -732
- package/dist/blockDiagram-JOT3LUYC-548hLzGM.js +2249 -0
- package/dist/{c4Diagram-VJAJSXHY-DKSU0_Zg.js → c4Diagram-VJAJSXHY-CkEjf0GP.js} +401 -400
- package/dist/{channel-DMiLp-mI.js → channel-B4Bg4vOE.js} +1 -1
- package/dist/chunk-4BMEZGHF-De9P61oF.js +9 -0
- package/dist/chunk-A2AXSNBT-geH9ZZvt.js +1373 -0
- package/dist/chunk-AEK57VVT-B2sQ0hQa.js +1416 -0
- package/dist/{chunk-D6G4REZN-BZV3ukOi.js → chunk-D6G4REZN-C2nlv3Zm.js} +2 -2
- package/dist/{chunk-RZ5BOZE2-B4rOVQD8.js → chunk-RZ5BOZE2-CmOabQbu.js} +8 -8
- package/dist/chunk-XZIHB7SX-C-O1Dk7e.js +16 -0
- package/dist/{classDiagram-GIVACNV2-DLRT4_A4.js → classDiagram-GIVACNV2-Du2vgWFA.js} +2 -2
- package/dist/{classDiagram-v2-COTLJTTW-DLRT4_A4.js → classDiagram-v2-COTLJTTW-Du2vgWFA.js} +2 -2
- package/dist/clojure-CCKyeQKf.js +2 -2
- package/dist/{clone-CPwu6xRn.js → clone-DnSM2M6p.js} +1 -1
- package/dist/css-bIlmDBTK.js +19 -19
- package/dist/{cytoscape.esm-DAyNQ0qu.js → cytoscape.esm-CCQ3SVU1.js} +2301 -2301
- package/dist/dagre-OKDRZEBW-CnGJy_Hk.js +447 -0
- package/dist/{data-editor-CYvUeKhw.js → data-editor--qYs3N6K.js} +5785 -5795
- package/dist/{diagram-SSKATNLV-D8WhiY2q.js → diagram-SSKATNLV-Ba25ch_t.js} +13 -13
- package/dist/{diagram-VNBRO52H-Bil9sOsr.js → diagram-VNBRO52H-ky1Bklgc.js} +3 -3
- package/dist/{erDiagram-Q7BY3M3F-J-Jm-DD7.js → erDiagram-Q7BY3M3F-DKx4pdnF.js} +263 -262
- package/dist/flowDiagram-4HSFHLVR-D2g6V5ro.js +1623 -0
- package/dist/{ganttDiagram-APWFNJXF-C2G0-fOq.js → ganttDiagram-APWFNJXF-CM2375VL.js} +45 -45
- package/dist/gitGraphDiagram-7IBYFJ6S-CYBXIIJu.js +712 -0
- package/dist/{graph-BFerxzEi.js → graph-BXO6Y4fK.js} +9 -9
- package/dist/{index-DfpR00QG.js → index-BXQhgr_p.js} +99 -98
- package/dist/{index-BhtvwOag.js → index-CLVuMf-N.js} +28 -28
- package/dist/{index-j8M50mVa.js → index-DsjbPR0S.js} +4 -4
- package/dist/{index-DkuVwdVm.js → index-kCGDeFbz.js} +9 -9
- package/dist/{infoDiagram-PH2N3AL5-AYtb1_Lz.js → infoDiagram-PH2N3AL5-Bysuy2jX.js} +3 -3
- package/dist/javascript-WMWNx-Vj.js +47 -47
- package/dist/{journeyDiagram-U35MCT3I-Bdz9gIBI.js → journeyDiagram-U35MCT3I-TBaQruI8.js} +18 -18
- package/dist/kanban-definition-NDS4AKOZ-D4jw_Hry.js +719 -0
- package/dist/{katex-9tX9hjoM.js → katex-CUSbq6rG.js} +2180 -2180
- package/dist/{layout-Qs-BVu8V.js → layout-BUA-DPJm.js} +27 -27
- package/dist/{linear-SIbCb7yI.js → linear-BnTRnU3J.js} +2 -2
- package/dist/main-D-37AaR4.js +169855 -0
- package/dist/main.js +1 -1
- package/dist/mermaid-BzFQ2d9i.js +14517 -0
- package/dist/{mhchem-L5-rce7L.js → mhchem-Db_f2n8C.js} +30 -30
- package/dist/{min-BTA1UVkn.js → min-D_xIH6wU.js} +2 -2
- package/dist/{mindmap-definition-ALO5MXBD-CdrD5BzZ.js → mindmap-definition-ALO5MXBD-J6RsqNRW.js} +359 -359
- package/dist/mllike-BSnXJBGA.js +7 -7
- package/dist/{pieDiagram-IB7DONF6-BbbxWeqU.js → pieDiagram-IB7DONF6-CyMim2nt.js} +34 -34
- package/dist/pug-BqUR2bBq.js +35 -35
- package/dist/python-B5QdSKoL.js +18 -18
- package/dist/quadrantDiagram-7GDLP6J5-wbyf83kA.js +1025 -0
- package/dist/{radar-MK3ICKWK-Z5R0bt0z.js → radar-MK3ICKWK-BDGRcSnx.js} +2555 -2554
- package/dist/{react-plotly-DqDxe4Uh.js → react-plotly-DrgClWur.js} +6595 -6597
- package/dist/{requirementDiagram-KVF5MWMF-DMnvzAxX.js → requirementDiagram-KVF5MWMF-Cm8xuD8x.js} +251 -250
- package/dist/rpm-IznJm2Xc.js +9 -9
- package/dist/{sankeyDiagram-QLVOVGJD-DbUWg3a4.js → sankeyDiagram-QLVOVGJD-iRFZmvn2.js} +339 -338
- package/dist/{sequenceDiagram-X6HHIX6F-JltcBwLF.js → sequenceDiagram-X6HHIX6F-Dr8oo1TZ.js} +822 -821
- package/dist/{slides-component-DVr5mf9p.js → slides-component-D8N71t3Y.js} +280 -280
- package/dist/sql-mMre1Bo3.js +9 -9
- package/dist/{stateDiagram-DGXRK772-qbXtyoS6.js → stateDiagram-DGXRK772-BNQYJSkB.js} +17 -17
- package/dist/{stateDiagram-v2-YXO3MK2T-Ba7q5pMK.js → stateDiagram-v2-YXO3MK2T-Dl249u1C.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{time-DHD8Fix8.js → time-hpTGXdsY.js} +2 -2
- package/dist/{timeline-definition-BDJGKUSR-q4gOCBRq.js → timeline-definition-BDJGKUSR-kYwIJd20.js} +261 -261
- package/dist/timer-BYwnU4DF.js +378 -378
- package/dist/ttcn-cfg-Bac_acMi.js +9 -9
- package/dist/{vega-component-D2NZFVvw.js → vega-component-CIAcZw-F.js} +82 -82
- package/dist/{xychartDiagram-VJFVF3MP-BZs9xPvU.js → xychartDiagram-VJFVF3MP-Cj3j6vWQ.js} +472 -471
- package/package.json +7 -6
- package/dist/blockDiagram-JOT3LUYC-COVagShg.js +0 -2248
- package/dist/chunk-4BMEZGHF-CeMSohVe.js +0 -9
- package/dist/chunk-A2AXSNBT-mQ3fXQfx.js +0 -1372
- package/dist/chunk-AEK57VVT-B7kw2yt6.js +0 -1415
- package/dist/chunk-XZIHB7SX-C3-5SkZh.js +0 -15
- package/dist/dagre-OKDRZEBW-yEQf6TwX.js +0 -447
- package/dist/flowDiagram-4HSFHLVR-Dhymtq1g.js +0 -1622
- package/dist/gitGraphDiagram-7IBYFJ6S-DCZAwPro.js +0 -712
- package/dist/kanban-definition-NDS4AKOZ-ByLpDX9Y.js +0 -719
- package/dist/main-Cx3zrED9.js +0 -156521
- package/dist/mermaid-DAi_EtLa.js +0 -11991
- package/dist/quadrantDiagram-7GDLP6J5-1UQgbW9Z.js +0 -1024
|
@@ -1,1415 +0,0 @@
|
|
|
1
|
-
var re = Object.defineProperty;
|
|
2
|
-
var ae = (e, t, s) => t in e ? re(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
|
|
3
|
-
var b = (e, t, s) => ae(e, typeof t != "symbol" ? t + "" : t, s);
|
|
4
|
-
import { g as ne, s as le } from "./chunk-RZ5BOZE2-B4rOVQD8.js";
|
|
5
|
-
import { _ as p, l as v, c as A, r as oe, u as ce, S as he, k as j, z as ue, a as de, b as fe, g as pe, s as Se, q as ye, t as ge } from "./mermaid-DAi_EtLa.js";
|
|
6
|
-
var bt = function() {
|
|
7
|
-
var e = /* @__PURE__ */ p(function(P, l, h, a) {
|
|
8
|
-
for (h = h || {}, a = P.length; a--; h[P[a]] = l) ;
|
|
9
|
-
return h;
|
|
10
|
-
}, "o"), t = [1, 2], s = [1, 3], n = [1, 4], o = [2, 4], c = [1, 9], r = [1, 11], d = [1, 16], f = [1, 17], g = [1, 18], E = [1, 19], m = [1, 32], I = [1, 20], G = [1, 21], R = [1, 22], S = [1, 23], L = [1, 24], O = [1, 26], Y = [1, 27], F = [1, 28], w = [1, 29], $ = [1, 30], et = [1, 31], st = [1, 34], it = [1, 35], rt = [1, 36], at = [1, 37], X = [1, 33], y = [1, 4, 5, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 42, 45, 48, 49, 50, 51, 54], nt = [1, 4, 5, 14, 15, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 42, 45, 48, 49, 50, 51, 54], At = [4, 5, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 42, 45, 48, 49, 50, 51, 54], St = {
|
|
11
|
-
trace: /* @__PURE__ */ p(function() {
|
|
12
|
-
}, "trace"),
|
|
13
|
-
yy: {},
|
|
14
|
-
symbols_: { error: 2, start: 3, SPACE: 4, NL: 5, SD: 6, document: 7, line: 8, statement: 9, classDefStatement: 10, styleStatement: 11, cssClassStatement: 12, idStatement: 13, DESCR: 14, "-->": 15, HIDE_EMPTY: 16, scale: 17, WIDTH: 18, COMPOSIT_STATE: 19, STRUCT_START: 20, STRUCT_STOP: 21, STATE_DESCR: 22, AS: 23, ID: 24, FORK: 25, JOIN: 26, CHOICE: 27, CONCURRENT: 28, note: 29, notePosition: 30, NOTE_TEXT: 31, direction: 32, acc_title: 33, acc_title_value: 34, acc_descr: 35, acc_descr_value: 36, acc_descr_multiline_value: 37, classDef: 38, CLASSDEF_ID: 39, CLASSDEF_STYLEOPTS: 40, DEFAULT: 41, style: 42, STYLE_IDS: 43, STYLEDEF_STYLEOPTS: 44, class: 45, CLASSENTITY_IDS: 46, STYLECLASS: 47, direction_tb: 48, direction_bt: 49, direction_rl: 50, direction_lr: 51, eol: 52, ";": 53, EDGE_STATE: 54, STYLE_SEPARATOR: 55, left_of: 56, right_of: 57, $accept: 0, $end: 1 },
|
|
15
|
-
terminals_: { 2: "error", 4: "SPACE", 5: "NL", 6: "SD", 14: "DESCR", 15: "-->", 16: "HIDE_EMPTY", 17: "scale", 18: "WIDTH", 19: "COMPOSIT_STATE", 20: "STRUCT_START", 21: "STRUCT_STOP", 22: "STATE_DESCR", 23: "AS", 24: "ID", 25: "FORK", 26: "JOIN", 27: "CHOICE", 28: "CONCURRENT", 29: "note", 31: "NOTE_TEXT", 33: "acc_title", 34: "acc_title_value", 35: "acc_descr", 36: "acc_descr_value", 37: "acc_descr_multiline_value", 38: "classDef", 39: "CLASSDEF_ID", 40: "CLASSDEF_STYLEOPTS", 41: "DEFAULT", 42: "style", 43: "STYLE_IDS", 44: "STYLEDEF_STYLEOPTS", 45: "class", 46: "CLASSENTITY_IDS", 47: "STYLECLASS", 48: "direction_tb", 49: "direction_bt", 50: "direction_rl", 51: "direction_lr", 53: ";", 54: "EDGE_STATE", 55: "STYLE_SEPARATOR", 56: "left_of", 57: "right_of" },
|
|
16
|
-
productions_: [0, [3, 2], [3, 2], [3, 2], [7, 0], [7, 2], [8, 2], [8, 1], [8, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 2], [9, 3], [9, 4], [9, 1], [9, 2], [9, 1], [9, 4], [9, 3], [9, 6], [9, 1], [9, 1], [9, 1], [9, 1], [9, 4], [9, 4], [9, 1], [9, 2], [9, 2], [9, 1], [10, 3], [10, 3], [11, 3], [12, 3], [32, 1], [32, 1], [32, 1], [32, 1], [52, 1], [52, 1], [13, 1], [13, 1], [13, 3], [13, 3], [30, 1], [30, 1]],
|
|
17
|
-
performAction: /* @__PURE__ */ p(function(l, h, a, T, _, i, K) {
|
|
18
|
-
var u = i.length - 1;
|
|
19
|
-
switch (_) {
|
|
20
|
-
case 3:
|
|
21
|
-
return T.setRootDoc(i[u]), i[u];
|
|
22
|
-
case 4:
|
|
23
|
-
this.$ = [];
|
|
24
|
-
break;
|
|
25
|
-
case 5:
|
|
26
|
-
i[u] != "nl" && (i[u - 1].push(i[u]), this.$ = i[u - 1]);
|
|
27
|
-
break;
|
|
28
|
-
case 6:
|
|
29
|
-
case 7:
|
|
30
|
-
this.$ = i[u];
|
|
31
|
-
break;
|
|
32
|
-
case 8:
|
|
33
|
-
this.$ = "nl";
|
|
34
|
-
break;
|
|
35
|
-
case 12:
|
|
36
|
-
this.$ = i[u];
|
|
37
|
-
break;
|
|
38
|
-
case 13:
|
|
39
|
-
const J = i[u - 1];
|
|
40
|
-
J.description = T.trimColon(i[u]), this.$ = J;
|
|
41
|
-
break;
|
|
42
|
-
case 14:
|
|
43
|
-
this.$ = { stmt: "relation", state1: i[u - 2], state2: i[u] };
|
|
44
|
-
break;
|
|
45
|
-
case 15:
|
|
46
|
-
const yt = T.trimColon(i[u]);
|
|
47
|
-
this.$ = { stmt: "relation", state1: i[u - 3], state2: i[u - 1], description: yt };
|
|
48
|
-
break;
|
|
49
|
-
case 19:
|
|
50
|
-
this.$ = { stmt: "state", id: i[u - 3], type: "default", description: "", doc: i[u - 1] };
|
|
51
|
-
break;
|
|
52
|
-
case 20:
|
|
53
|
-
var V = i[u], H = i[u - 2].trim();
|
|
54
|
-
if (i[u].match(":")) {
|
|
55
|
-
var ot = i[u].split(":");
|
|
56
|
-
V = ot[0], H = [H, ot[1]];
|
|
57
|
-
}
|
|
58
|
-
this.$ = { stmt: "state", id: V, type: "default", description: H };
|
|
59
|
-
break;
|
|
60
|
-
case 21:
|
|
61
|
-
this.$ = { stmt: "state", id: i[u - 3], type: "default", description: i[u - 5], doc: i[u - 1] };
|
|
62
|
-
break;
|
|
63
|
-
case 22:
|
|
64
|
-
this.$ = { stmt: "state", id: i[u], type: "fork" };
|
|
65
|
-
break;
|
|
66
|
-
case 23:
|
|
67
|
-
this.$ = { stmt: "state", id: i[u], type: "join" };
|
|
68
|
-
break;
|
|
69
|
-
case 24:
|
|
70
|
-
this.$ = { stmt: "state", id: i[u], type: "choice" };
|
|
71
|
-
break;
|
|
72
|
-
case 25:
|
|
73
|
-
this.$ = { stmt: "state", id: T.getDividerId(), type: "divider" };
|
|
74
|
-
break;
|
|
75
|
-
case 26:
|
|
76
|
-
this.$ = { stmt: "state", id: i[u - 1].trim(), note: { position: i[u - 2].trim(), text: i[u].trim() } };
|
|
77
|
-
break;
|
|
78
|
-
case 29:
|
|
79
|
-
this.$ = i[u].trim(), T.setAccTitle(this.$);
|
|
80
|
-
break;
|
|
81
|
-
case 30:
|
|
82
|
-
case 31:
|
|
83
|
-
this.$ = i[u].trim(), T.setAccDescription(this.$);
|
|
84
|
-
break;
|
|
85
|
-
case 32:
|
|
86
|
-
case 33:
|
|
87
|
-
this.$ = { stmt: "classDef", id: i[u - 1].trim(), classes: i[u].trim() };
|
|
88
|
-
break;
|
|
89
|
-
case 34:
|
|
90
|
-
this.$ = { stmt: "style", id: i[u - 1].trim(), styleClass: i[u].trim() };
|
|
91
|
-
break;
|
|
92
|
-
case 35:
|
|
93
|
-
this.$ = { stmt: "applyClass", id: i[u - 1].trim(), styleClass: i[u].trim() };
|
|
94
|
-
break;
|
|
95
|
-
case 36:
|
|
96
|
-
T.setDirection("TB"), this.$ = { stmt: "dir", value: "TB" };
|
|
97
|
-
break;
|
|
98
|
-
case 37:
|
|
99
|
-
T.setDirection("BT"), this.$ = { stmt: "dir", value: "BT" };
|
|
100
|
-
break;
|
|
101
|
-
case 38:
|
|
102
|
-
T.setDirection("RL"), this.$ = { stmt: "dir", value: "RL" };
|
|
103
|
-
break;
|
|
104
|
-
case 39:
|
|
105
|
-
T.setDirection("LR"), this.$ = { stmt: "dir", value: "LR" };
|
|
106
|
-
break;
|
|
107
|
-
case 42:
|
|
108
|
-
case 43:
|
|
109
|
-
this.$ = { stmt: "state", id: i[u].trim(), type: "default", description: "" };
|
|
110
|
-
break;
|
|
111
|
-
case 44:
|
|
112
|
-
this.$ = { stmt: "state", id: i[u - 2].trim(), classes: [i[u].trim()], type: "default", description: "" };
|
|
113
|
-
break;
|
|
114
|
-
case 45:
|
|
115
|
-
this.$ = { stmt: "state", id: i[u - 2].trim(), classes: [i[u].trim()], type: "default", description: "" };
|
|
116
|
-
break;
|
|
117
|
-
}
|
|
118
|
-
}, "anonymous"),
|
|
119
|
-
table: [{ 3: 1, 4: t, 5: s, 6: n }, { 1: [3] }, { 3: 5, 4: t, 5: s, 6: n }, { 3: 6, 4: t, 5: s, 6: n }, e([1, 4, 5, 16, 17, 19, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 42, 45, 48, 49, 50, 51, 54], o, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: c, 5: r, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: d, 17: f, 19: g, 22: E, 24: m, 25: I, 26: G, 27: R, 28: S, 29: L, 32: 25, 33: O, 35: Y, 37: F, 38: w, 42: $, 45: et, 48: st, 49: it, 50: rt, 51: at, 54: X }, e(y, [2, 5]), { 9: 38, 10: 12, 11: 13, 12: 14, 13: 15, 16: d, 17: f, 19: g, 22: E, 24: m, 25: I, 26: G, 27: R, 28: S, 29: L, 32: 25, 33: O, 35: Y, 37: F, 38: w, 42: $, 45: et, 48: st, 49: it, 50: rt, 51: at, 54: X }, e(y, [2, 7]), e(y, [2, 8]), e(y, [2, 9]), e(y, [2, 10]), e(y, [2, 11]), e(y, [2, 12], { 14: [1, 39], 15: [1, 40] }), e(y, [2, 16]), { 18: [1, 41] }, e(y, [2, 18], { 20: [1, 42] }), { 23: [1, 43] }, e(y, [2, 22]), e(y, [2, 23]), e(y, [2, 24]), e(y, [2, 25]), { 30: 44, 31: [1, 45], 56: [1, 46], 57: [1, 47] }, e(y, [2, 28]), { 34: [1, 48] }, { 36: [1, 49] }, e(y, [2, 31]), { 39: [1, 50], 41: [1, 51] }, { 43: [1, 52] }, { 46: [1, 53] }, e(nt, [2, 42], { 55: [1, 54] }), e(nt, [2, 43], { 55: [1, 55] }), e(y, [2, 36]), e(y, [2, 37]), e(y, [2, 38]), e(y, [2, 39]), e(y, [2, 6]), e(y, [2, 13]), { 13: 56, 24: m, 54: X }, e(y, [2, 17]), e(At, o, { 7: 57 }), { 24: [1, 58] }, { 24: [1, 59] }, { 23: [1, 60] }, { 24: [2, 46] }, { 24: [2, 47] }, e(y, [2, 29]), e(y, [2, 30]), { 40: [1, 61] }, { 40: [1, 62] }, { 44: [1, 63] }, { 47: [1, 64] }, { 24: [1, 65] }, { 24: [1, 66] }, e(y, [2, 14], { 14: [1, 67] }), { 4: c, 5: r, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: d, 17: f, 19: g, 21: [1, 68], 22: E, 24: m, 25: I, 26: G, 27: R, 28: S, 29: L, 32: 25, 33: O, 35: Y, 37: F, 38: w, 42: $, 45: et, 48: st, 49: it, 50: rt, 51: at, 54: X }, e(y, [2, 20], { 20: [1, 69] }), { 31: [1, 70] }, { 24: [1, 71] }, e(y, [2, 32]), e(y, [2, 33]), e(y, [2, 34]), e(y, [2, 35]), e(nt, [2, 44]), e(nt, [2, 45]), e(y, [2, 15]), e(y, [2, 19]), e(At, o, { 7: 72 }), e(y, [2, 26]), e(y, [2, 27]), { 4: c, 5: r, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: d, 17: f, 19: g, 21: [1, 73], 22: E, 24: m, 25: I, 26: G, 27: R, 28: S, 29: L, 32: 25, 33: O, 35: Y, 37: F, 38: w, 42: $, 45: et, 48: st, 49: it, 50: rt, 51: at, 54: X }, e(y, [2, 21])],
|
|
120
|
-
defaultActions: { 5: [2, 1], 6: [2, 2], 46: [2, 46], 47: [2, 47] },
|
|
121
|
-
parseError: /* @__PURE__ */ p(function(l, h) {
|
|
122
|
-
if (h.recoverable)
|
|
123
|
-
this.trace(l);
|
|
124
|
-
else {
|
|
125
|
-
var a = new Error(l);
|
|
126
|
-
throw a.hash = h, a;
|
|
127
|
-
}
|
|
128
|
-
}, "parseError"),
|
|
129
|
-
parse: /* @__PURE__ */ p(function(l) {
|
|
130
|
-
var h = this, a = [0], T = [], _ = [null], i = [], K = this.table, u = "", V = 0, H = 0, ot = 2, J = 1, yt = i.slice.call(arguments, 1), D = Object.create(this.lexer), M = { yy: {} };
|
|
131
|
-
for (var gt in this.yy)
|
|
132
|
-
Object.prototype.hasOwnProperty.call(this.yy, gt) && (M.yy[gt] = this.yy[gt]);
|
|
133
|
-
D.setInput(l, M.yy), M.yy.lexer = D, M.yy.parser = this, typeof D.yylloc > "u" && (D.yylloc = {});
|
|
134
|
-
var Tt = D.yylloc;
|
|
135
|
-
i.push(Tt);
|
|
136
|
-
var se = D.options && D.options.ranges;
|
|
137
|
-
typeof M.yy.parseError == "function" ? this.parseError = M.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
138
|
-
function ie(C) {
|
|
139
|
-
a.length = a.length - 2 * C, _.length = _.length - C, i.length = i.length - C;
|
|
140
|
-
}
|
|
141
|
-
p(ie, "popStack");
|
|
142
|
-
function Lt() {
|
|
143
|
-
var C;
|
|
144
|
-
return C = T.pop() || D.lex() || J, typeof C != "number" && (C instanceof Array && (T = C, C = T.pop()), C = h.symbols_[C] || C), C;
|
|
145
|
-
}
|
|
146
|
-
p(Lt, "lex");
|
|
147
|
-
for (var k, U, x, _t, W = {}, ct, N, It, ht; ; ) {
|
|
148
|
-
if (U = a[a.length - 1], this.defaultActions[U] ? x = this.defaultActions[U] : ((k === null || typeof k > "u") && (k = Lt()), x = K[U] && K[U][k]), typeof x > "u" || !x.length || !x[0]) {
|
|
149
|
-
var Et = "";
|
|
150
|
-
ht = [];
|
|
151
|
-
for (ct in K[U])
|
|
152
|
-
this.terminals_[ct] && ct > ot && ht.push("'" + this.terminals_[ct] + "'");
|
|
153
|
-
D.showPosition ? Et = "Parse error on line " + (V + 1) + `:
|
|
154
|
-
` + D.showPosition() + `
|
|
155
|
-
Expecting ` + ht.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Et = "Parse error on line " + (V + 1) + ": Unexpected " + (k == J ? "end of input" : "'" + (this.terminals_[k] || k) + "'"), this.parseError(Et, {
|
|
156
|
-
text: D.match,
|
|
157
|
-
token: this.terminals_[k] || k,
|
|
158
|
-
line: D.yylineno,
|
|
159
|
-
loc: Tt,
|
|
160
|
-
expected: ht
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
if (x[0] instanceof Array && x.length > 1)
|
|
164
|
-
throw new Error("Parse Error: multiple actions possible at state: " + U + ", token: " + k);
|
|
165
|
-
switch (x[0]) {
|
|
166
|
-
case 1:
|
|
167
|
-
a.push(k), _.push(D.yytext), i.push(D.yylloc), a.push(x[1]), k = null, H = D.yyleng, u = D.yytext, V = D.yylineno, Tt = D.yylloc;
|
|
168
|
-
break;
|
|
169
|
-
case 2:
|
|
170
|
-
if (N = this.productions_[x[1]][1], W.$ = _[_.length - N], W._$ = {
|
|
171
|
-
first_line: i[i.length - (N || 1)].first_line,
|
|
172
|
-
last_line: i[i.length - 1].last_line,
|
|
173
|
-
first_column: i[i.length - (N || 1)].first_column,
|
|
174
|
-
last_column: i[i.length - 1].last_column
|
|
175
|
-
}, se && (W._$.range = [
|
|
176
|
-
i[i.length - (N || 1)].range[0],
|
|
177
|
-
i[i.length - 1].range[1]
|
|
178
|
-
]), _t = this.performAction.apply(W, [
|
|
179
|
-
u,
|
|
180
|
-
H,
|
|
181
|
-
V,
|
|
182
|
-
M.yy,
|
|
183
|
-
x[1],
|
|
184
|
-
_,
|
|
185
|
-
i
|
|
186
|
-
].concat(yt)), typeof _t < "u")
|
|
187
|
-
return _t;
|
|
188
|
-
N && (a = a.slice(0, -1 * N * 2), _ = _.slice(0, -1 * N), i = i.slice(0, -1 * N)), a.push(this.productions_[x[1]][0]), _.push(W.$), i.push(W._$), It = K[a[a.length - 2]][a[a.length - 1]], a.push(It);
|
|
189
|
-
break;
|
|
190
|
-
case 3:
|
|
191
|
-
return !0;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
return !0;
|
|
195
|
-
}, "parse")
|
|
196
|
-
}, ee = /* @__PURE__ */ function() {
|
|
197
|
-
var P = {
|
|
198
|
-
EOF: 1,
|
|
199
|
-
parseError: /* @__PURE__ */ p(function(h, a) {
|
|
200
|
-
if (this.yy.parser)
|
|
201
|
-
this.yy.parser.parseError(h, a);
|
|
202
|
-
else
|
|
203
|
-
throw new Error(h);
|
|
204
|
-
}, "parseError"),
|
|
205
|
-
// resets the lexer, sets new input
|
|
206
|
-
setInput: /* @__PURE__ */ p(function(l, h) {
|
|
207
|
-
return this.yy = h || this.yy || {}, this._input = l, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
208
|
-
first_line: 1,
|
|
209
|
-
first_column: 0,
|
|
210
|
-
last_line: 1,
|
|
211
|
-
last_column: 0
|
|
212
|
-
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
213
|
-
}, "setInput"),
|
|
214
|
-
// consumes and returns one char from the input
|
|
215
|
-
input: /* @__PURE__ */ p(function() {
|
|
216
|
-
var l = this._input[0];
|
|
217
|
-
this.yytext += l, this.yyleng++, this.offset++, this.match += l, this.matched += l;
|
|
218
|
-
var h = l.match(/(?:\r\n?|\n).*/g);
|
|
219
|
-
return h ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), l;
|
|
220
|
-
}, "input"),
|
|
221
|
-
// unshifts one char (or a string) into the input
|
|
222
|
-
unput: /* @__PURE__ */ p(function(l) {
|
|
223
|
-
var h = l.length, a = l.split(/(?:\r\n?|\n)/g);
|
|
224
|
-
this._input = l + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - h), this.offset -= h;
|
|
225
|
-
var T = this.match.split(/(?:\r\n?|\n)/g);
|
|
226
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), a.length - 1 && (this.yylineno -= a.length - 1);
|
|
227
|
-
var _ = this.yylloc.range;
|
|
228
|
-
return this.yylloc = {
|
|
229
|
-
first_line: this.yylloc.first_line,
|
|
230
|
-
last_line: this.yylineno + 1,
|
|
231
|
-
first_column: this.yylloc.first_column,
|
|
232
|
-
last_column: a ? (a.length === T.length ? this.yylloc.first_column : 0) + T[T.length - a.length].length - a[0].length : this.yylloc.first_column - h
|
|
233
|
-
}, this.options.ranges && (this.yylloc.range = [_[0], _[0] + this.yyleng - h]), this.yyleng = this.yytext.length, this;
|
|
234
|
-
}, "unput"),
|
|
235
|
-
// When called from action, caches matched text and appends it on next action
|
|
236
|
-
more: /* @__PURE__ */ p(function() {
|
|
237
|
-
return this._more = !0, this;
|
|
238
|
-
}, "more"),
|
|
239
|
-
// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
|
|
240
|
-
reject: /* @__PURE__ */ p(function() {
|
|
241
|
-
if (this.options.backtrack_lexer)
|
|
242
|
-
this._backtrack = !0;
|
|
243
|
-
else
|
|
244
|
-
return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
245
|
-
` + this.showPosition(), {
|
|
246
|
-
text: "",
|
|
247
|
-
token: null,
|
|
248
|
-
line: this.yylineno
|
|
249
|
-
});
|
|
250
|
-
return this;
|
|
251
|
-
}, "reject"),
|
|
252
|
-
// retain first n characters of the match
|
|
253
|
-
less: /* @__PURE__ */ p(function(l) {
|
|
254
|
-
this.unput(this.match.slice(l));
|
|
255
|
-
}, "less"),
|
|
256
|
-
// displays already matched input, i.e. for error messages
|
|
257
|
-
pastInput: /* @__PURE__ */ p(function() {
|
|
258
|
-
var l = this.matched.substr(0, this.matched.length - this.match.length);
|
|
259
|
-
return (l.length > 20 ? "..." : "") + l.substr(-20).replace(/\n/g, "");
|
|
260
|
-
}, "pastInput"),
|
|
261
|
-
// displays upcoming input, i.e. for error messages
|
|
262
|
-
upcomingInput: /* @__PURE__ */ p(function() {
|
|
263
|
-
var l = this.match;
|
|
264
|
-
return l.length < 20 && (l += this._input.substr(0, 20 - l.length)), (l.substr(0, 20) + (l.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
265
|
-
}, "upcomingInput"),
|
|
266
|
-
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
267
|
-
showPosition: /* @__PURE__ */ p(function() {
|
|
268
|
-
var l = this.pastInput(), h = new Array(l.length + 1).join("-");
|
|
269
|
-
return l + this.upcomingInput() + `
|
|
270
|
-
` + h + "^";
|
|
271
|
-
}, "showPosition"),
|
|
272
|
-
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
273
|
-
test_match: /* @__PURE__ */ p(function(l, h) {
|
|
274
|
-
var a, T, _;
|
|
275
|
-
if (this.options.backtrack_lexer && (_ = {
|
|
276
|
-
yylineno: this.yylineno,
|
|
277
|
-
yylloc: {
|
|
278
|
-
first_line: this.yylloc.first_line,
|
|
279
|
-
last_line: this.last_line,
|
|
280
|
-
first_column: this.yylloc.first_column,
|
|
281
|
-
last_column: this.yylloc.last_column
|
|
282
|
-
},
|
|
283
|
-
yytext: this.yytext,
|
|
284
|
-
match: this.match,
|
|
285
|
-
matches: this.matches,
|
|
286
|
-
matched: this.matched,
|
|
287
|
-
yyleng: this.yyleng,
|
|
288
|
-
offset: this.offset,
|
|
289
|
-
_more: this._more,
|
|
290
|
-
_input: this._input,
|
|
291
|
-
yy: this.yy,
|
|
292
|
-
conditionStack: this.conditionStack.slice(0),
|
|
293
|
-
done: this.done
|
|
294
|
-
}, this.options.ranges && (_.yylloc.range = this.yylloc.range.slice(0))), T = l[0].match(/(?:\r\n?|\n).*/g), T && (this.yylineno += T.length), this.yylloc = {
|
|
295
|
-
first_line: this.yylloc.last_line,
|
|
296
|
-
last_line: this.yylineno + 1,
|
|
297
|
-
first_column: this.yylloc.last_column,
|
|
298
|
-
last_column: T ? T[T.length - 1].length - T[T.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + l[0].length
|
|
299
|
-
}, this.yytext += l[0], this.match += l[0], this.matches = l, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(l[0].length), this.matched += l[0], a = this.performAction.call(this, this.yy, this, h, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), a)
|
|
300
|
-
return a;
|
|
301
|
-
if (this._backtrack) {
|
|
302
|
-
for (var i in _)
|
|
303
|
-
this[i] = _[i];
|
|
304
|
-
return !1;
|
|
305
|
-
}
|
|
306
|
-
return !1;
|
|
307
|
-
}, "test_match"),
|
|
308
|
-
// return next match in input
|
|
309
|
-
next: /* @__PURE__ */ p(function() {
|
|
310
|
-
if (this.done)
|
|
311
|
-
return this.EOF;
|
|
312
|
-
this._input || (this.done = !0);
|
|
313
|
-
var l, h, a, T;
|
|
314
|
-
this._more || (this.yytext = "", this.match = "");
|
|
315
|
-
for (var _ = this._currentRules(), i = 0; i < _.length; i++)
|
|
316
|
-
if (a = this._input.match(this.rules[_[i]]), a && (!h || a[0].length > h[0].length)) {
|
|
317
|
-
if (h = a, T = i, this.options.backtrack_lexer) {
|
|
318
|
-
if (l = this.test_match(a, _[i]), l !== !1)
|
|
319
|
-
return l;
|
|
320
|
-
if (this._backtrack) {
|
|
321
|
-
h = !1;
|
|
322
|
-
continue;
|
|
323
|
-
} else
|
|
324
|
-
return !1;
|
|
325
|
-
} else if (!this.options.flex)
|
|
326
|
-
break;
|
|
327
|
-
}
|
|
328
|
-
return h ? (l = this.test_match(h, _[T]), l !== !1 ? l : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
329
|
-
` + this.showPosition(), {
|
|
330
|
-
text: "",
|
|
331
|
-
token: null,
|
|
332
|
-
line: this.yylineno
|
|
333
|
-
});
|
|
334
|
-
}, "next"),
|
|
335
|
-
// return next match that has a token
|
|
336
|
-
lex: /* @__PURE__ */ p(function() {
|
|
337
|
-
var h = this.next();
|
|
338
|
-
return h || this.lex();
|
|
339
|
-
}, "lex"),
|
|
340
|
-
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
341
|
-
begin: /* @__PURE__ */ p(function(h) {
|
|
342
|
-
this.conditionStack.push(h);
|
|
343
|
-
}, "begin"),
|
|
344
|
-
// pop the previously active lexer condition state off the condition stack
|
|
345
|
-
popState: /* @__PURE__ */ p(function() {
|
|
346
|
-
var h = this.conditionStack.length - 1;
|
|
347
|
-
return h > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
348
|
-
}, "popState"),
|
|
349
|
-
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
350
|
-
_currentRules: /* @__PURE__ */ p(function() {
|
|
351
|
-
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
352
|
-
}, "_currentRules"),
|
|
353
|
-
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
354
|
-
topState: /* @__PURE__ */ p(function(h) {
|
|
355
|
-
return h = this.conditionStack.length - 1 - Math.abs(h || 0), h >= 0 ? this.conditionStack[h] : "INITIAL";
|
|
356
|
-
}, "topState"),
|
|
357
|
-
// alias for begin(condition)
|
|
358
|
-
pushState: /* @__PURE__ */ p(function(h) {
|
|
359
|
-
this.begin(h);
|
|
360
|
-
}, "pushState"),
|
|
361
|
-
// return the number of states currently on the stack
|
|
362
|
-
stateStackSize: /* @__PURE__ */ p(function() {
|
|
363
|
-
return this.conditionStack.length;
|
|
364
|
-
}, "stateStackSize"),
|
|
365
|
-
options: { "case-insensitive": !0 },
|
|
366
|
-
performAction: /* @__PURE__ */ p(function(h, a, T, _) {
|
|
367
|
-
switch (T) {
|
|
368
|
-
case 0:
|
|
369
|
-
return 41;
|
|
370
|
-
case 1:
|
|
371
|
-
return 48;
|
|
372
|
-
case 2:
|
|
373
|
-
return 49;
|
|
374
|
-
case 3:
|
|
375
|
-
return 50;
|
|
376
|
-
case 4:
|
|
377
|
-
return 51;
|
|
378
|
-
case 5:
|
|
379
|
-
break;
|
|
380
|
-
case 6:
|
|
381
|
-
break;
|
|
382
|
-
case 7:
|
|
383
|
-
return 5;
|
|
384
|
-
case 8:
|
|
385
|
-
break;
|
|
386
|
-
case 9:
|
|
387
|
-
break;
|
|
388
|
-
case 10:
|
|
389
|
-
break;
|
|
390
|
-
case 11:
|
|
391
|
-
break;
|
|
392
|
-
case 12:
|
|
393
|
-
return this.pushState("SCALE"), 17;
|
|
394
|
-
case 13:
|
|
395
|
-
return 18;
|
|
396
|
-
case 14:
|
|
397
|
-
this.popState();
|
|
398
|
-
break;
|
|
399
|
-
case 15:
|
|
400
|
-
return this.begin("acc_title"), 33;
|
|
401
|
-
case 16:
|
|
402
|
-
return this.popState(), "acc_title_value";
|
|
403
|
-
case 17:
|
|
404
|
-
return this.begin("acc_descr"), 35;
|
|
405
|
-
case 18:
|
|
406
|
-
return this.popState(), "acc_descr_value";
|
|
407
|
-
case 19:
|
|
408
|
-
this.begin("acc_descr_multiline");
|
|
409
|
-
break;
|
|
410
|
-
case 20:
|
|
411
|
-
this.popState();
|
|
412
|
-
break;
|
|
413
|
-
case 21:
|
|
414
|
-
return "acc_descr_multiline_value";
|
|
415
|
-
case 22:
|
|
416
|
-
return this.pushState("CLASSDEF"), 38;
|
|
417
|
-
case 23:
|
|
418
|
-
return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
|
|
419
|
-
case 24:
|
|
420
|
-
return this.popState(), this.pushState("CLASSDEFID"), 39;
|
|
421
|
-
case 25:
|
|
422
|
-
return this.popState(), 40;
|
|
423
|
-
case 26:
|
|
424
|
-
return this.pushState("CLASS"), 45;
|
|
425
|
-
case 27:
|
|
426
|
-
return this.popState(), this.pushState("CLASS_STYLE"), 46;
|
|
427
|
-
case 28:
|
|
428
|
-
return this.popState(), 47;
|
|
429
|
-
case 29:
|
|
430
|
-
return this.pushState("STYLE"), 42;
|
|
431
|
-
case 30:
|
|
432
|
-
return this.popState(), this.pushState("STYLEDEF_STYLES"), 43;
|
|
433
|
-
case 31:
|
|
434
|
-
return this.popState(), 44;
|
|
435
|
-
case 32:
|
|
436
|
-
return this.pushState("SCALE"), 17;
|
|
437
|
-
case 33:
|
|
438
|
-
return 18;
|
|
439
|
-
case 34:
|
|
440
|
-
this.popState();
|
|
441
|
-
break;
|
|
442
|
-
case 35:
|
|
443
|
-
this.pushState("STATE");
|
|
444
|
-
break;
|
|
445
|
-
case 36:
|
|
446
|
-
return this.popState(), a.yytext = a.yytext.slice(0, -8).trim(), 25;
|
|
447
|
-
case 37:
|
|
448
|
-
return this.popState(), a.yytext = a.yytext.slice(0, -8).trim(), 26;
|
|
449
|
-
case 38:
|
|
450
|
-
return this.popState(), a.yytext = a.yytext.slice(0, -10).trim(), 27;
|
|
451
|
-
case 39:
|
|
452
|
-
return this.popState(), a.yytext = a.yytext.slice(0, -8).trim(), 25;
|
|
453
|
-
case 40:
|
|
454
|
-
return this.popState(), a.yytext = a.yytext.slice(0, -8).trim(), 26;
|
|
455
|
-
case 41:
|
|
456
|
-
return this.popState(), a.yytext = a.yytext.slice(0, -10).trim(), 27;
|
|
457
|
-
case 42:
|
|
458
|
-
return 48;
|
|
459
|
-
case 43:
|
|
460
|
-
return 49;
|
|
461
|
-
case 44:
|
|
462
|
-
return 50;
|
|
463
|
-
case 45:
|
|
464
|
-
return 51;
|
|
465
|
-
case 46:
|
|
466
|
-
this.pushState("STATE_STRING");
|
|
467
|
-
break;
|
|
468
|
-
case 47:
|
|
469
|
-
return this.pushState("STATE_ID"), "AS";
|
|
470
|
-
case 48:
|
|
471
|
-
return this.popState(), "ID";
|
|
472
|
-
case 49:
|
|
473
|
-
this.popState();
|
|
474
|
-
break;
|
|
475
|
-
case 50:
|
|
476
|
-
return "STATE_DESCR";
|
|
477
|
-
case 51:
|
|
478
|
-
return 19;
|
|
479
|
-
case 52:
|
|
480
|
-
this.popState();
|
|
481
|
-
break;
|
|
482
|
-
case 53:
|
|
483
|
-
return this.popState(), this.pushState("struct"), 20;
|
|
484
|
-
case 54:
|
|
485
|
-
break;
|
|
486
|
-
case 55:
|
|
487
|
-
return this.popState(), 21;
|
|
488
|
-
case 56:
|
|
489
|
-
break;
|
|
490
|
-
case 57:
|
|
491
|
-
return this.begin("NOTE"), 29;
|
|
492
|
-
case 58:
|
|
493
|
-
return this.popState(), this.pushState("NOTE_ID"), 56;
|
|
494
|
-
case 59:
|
|
495
|
-
return this.popState(), this.pushState("NOTE_ID"), 57;
|
|
496
|
-
case 60:
|
|
497
|
-
this.popState(), this.pushState("FLOATING_NOTE");
|
|
498
|
-
break;
|
|
499
|
-
case 61:
|
|
500
|
-
return this.popState(), this.pushState("FLOATING_NOTE_ID"), "AS";
|
|
501
|
-
case 62:
|
|
502
|
-
break;
|
|
503
|
-
case 63:
|
|
504
|
-
return "NOTE_TEXT";
|
|
505
|
-
case 64:
|
|
506
|
-
return this.popState(), "ID";
|
|
507
|
-
case 65:
|
|
508
|
-
return this.popState(), this.pushState("NOTE_TEXT"), 24;
|
|
509
|
-
case 66:
|
|
510
|
-
return this.popState(), a.yytext = a.yytext.substr(2).trim(), 31;
|
|
511
|
-
case 67:
|
|
512
|
-
return this.popState(), a.yytext = a.yytext.slice(0, -8).trim(), 31;
|
|
513
|
-
case 68:
|
|
514
|
-
return 6;
|
|
515
|
-
case 69:
|
|
516
|
-
return 6;
|
|
517
|
-
case 70:
|
|
518
|
-
return 16;
|
|
519
|
-
case 71:
|
|
520
|
-
return 54;
|
|
521
|
-
case 72:
|
|
522
|
-
return 24;
|
|
523
|
-
case 73:
|
|
524
|
-
return a.yytext = a.yytext.trim(), 14;
|
|
525
|
-
case 74:
|
|
526
|
-
return 15;
|
|
527
|
-
case 75:
|
|
528
|
-
return 28;
|
|
529
|
-
case 76:
|
|
530
|
-
return 55;
|
|
531
|
-
case 77:
|
|
532
|
-
return 5;
|
|
533
|
-
case 78:
|
|
534
|
-
return "INVALID";
|
|
535
|
-
}
|
|
536
|
-
}, "anonymous"),
|
|
537
|
-
rules: [/^(?:default\b)/i, /^(?:.*direction\s+TB[^\n]*)/i, /^(?:.*direction\s+BT[^\n]*)/i, /^(?:.*direction\s+RL[^\n]*)/i, /^(?:.*direction\s+LR[^\n]*)/i, /^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n]+)/i, /^(?:[\s]+)/i, /^(?:((?!\n)\s)+)/i, /^(?:#[^\n]*)/i, /^(?:%[^\n]*)/i, /^(?:scale\s+)/i, /^(?:\d+)/i, /^(?:\s+width\b)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:classDef\s+)/i, /^(?:DEFAULT\s+)/i, /^(?:\w+\s+)/i, /^(?:[^\n]*)/i, /^(?:class\s+)/i, /^(?:(\w+)+((,\s*\w+)*))/i, /^(?:[^\n]*)/i, /^(?:style\s+)/i, /^(?:[\w,]+\s+)/i, /^(?:[^\n]*)/i, /^(?:scale\s+)/i, /^(?:\d+)/i, /^(?:\s+width\b)/i, /^(?:state\s+)/i, /^(?:.*<<fork>>)/i, /^(?:.*<<join>>)/i, /^(?:.*<<choice>>)/i, /^(?:.*\[\[fork\]\])/i, /^(?:.*\[\[join\]\])/i, /^(?:.*\[\[choice\]\])/i, /^(?:.*direction\s+TB[^\n]*)/i, /^(?:.*direction\s+BT[^\n]*)/i, /^(?:.*direction\s+RL[^\n]*)/i, /^(?:.*direction\s+LR[^\n]*)/i, /^(?:["])/i, /^(?:\s*as\s+)/i, /^(?:[^\n\{]*)/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:[^\n\s\{]+)/i, /^(?:\n)/i, /^(?:\{)/i, /^(?:%%(?!\{)[^\n]*)/i, /^(?:\})/i, /^(?:[\n])/i, /^(?:note\s+)/i, /^(?:left of\b)/i, /^(?:right of\b)/i, /^(?:")/i, /^(?:\s*as\s*)/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:[^\n]*)/i, /^(?:\s*[^:\n\s\-]+)/i, /^(?:\s*:[^:\n;]+)/i, /^(?:[\s\S]*?end note\b)/i, /^(?:stateDiagram\s+)/i, /^(?:stateDiagram-v2\s+)/i, /^(?:hide empty description\b)/i, /^(?:\[\*\])/i, /^(?:[^:\n\s\-\{]+)/i, /^(?:\s*:[^:\n;]+)/i, /^(?:-->)/i, /^(?:--)/i, /^(?::::)/i, /^(?:$)/i, /^(?:.)/i],
|
|
538
|
-
conditions: { LINE: { rules: [9, 10], inclusive: !1 }, struct: { rules: [9, 10, 22, 26, 29, 35, 42, 43, 44, 45, 54, 55, 56, 57, 71, 72, 73, 74, 75], inclusive: !1 }, FLOATING_NOTE_ID: { rules: [64], inclusive: !1 }, FLOATING_NOTE: { rules: [61, 62, 63], inclusive: !1 }, NOTE_TEXT: { rules: [66, 67], inclusive: !1 }, NOTE_ID: { rules: [65], inclusive: !1 }, NOTE: { rules: [58, 59, 60], inclusive: !1 }, STYLEDEF_STYLEOPTS: { rules: [], inclusive: !1 }, STYLEDEF_STYLES: { rules: [31], inclusive: !1 }, STYLE_IDS: { rules: [], inclusive: !1 }, STYLE: { rules: [30], inclusive: !1 }, CLASS_STYLE: { rules: [28], inclusive: !1 }, CLASS: { rules: [27], inclusive: !1 }, CLASSDEFID: { rules: [25], inclusive: !1 }, CLASSDEF: { rules: [23, 24], inclusive: !1 }, acc_descr_multiline: { rules: [20, 21], inclusive: !1 }, acc_descr: { rules: [18], inclusive: !1 }, acc_title: { rules: [16], inclusive: !1 }, SCALE: { rules: [13, 14, 33, 34], inclusive: !1 }, ALIAS: { rules: [], inclusive: !1 }, STATE_ID: { rules: [48], inclusive: !1 }, STATE_STRING: { rules: [49, 50], inclusive: !1 }, FORK_STATE: { rules: [], inclusive: !1 }, STATE: { rules: [9, 10, 36, 37, 38, 39, 40, 41, 46, 47, 51, 52, 53], inclusive: !1 }, ID: { rules: [9, 10], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 15, 17, 19, 22, 26, 29, 32, 35, 53, 57, 68, 69, 70, 71, 72, 73, 74, 76, 77, 78], inclusive: !0 } }
|
|
539
|
-
};
|
|
540
|
-
return P;
|
|
541
|
-
}();
|
|
542
|
-
St.lexer = ee;
|
|
543
|
-
function lt() {
|
|
544
|
-
this.yy = {};
|
|
545
|
-
}
|
|
546
|
-
return p(lt, "Parser"), lt.prototype = St, St.Parser = lt, new lt();
|
|
547
|
-
}();
|
|
548
|
-
bt.parser = bt;
|
|
549
|
-
var Xe = bt, Te = "TB", Mt = "TB", Rt = "dir", dt = "state", vt = "relation", _e = "classDef", Ee = "style", me = "applyClass", Z = "default", Ut = "divider", jt = "fill:none", zt = "fill: #333", Ht = "c", Wt = "text", Xt = "normal", mt = "rect", Dt = "rectWithTitle", De = "stateStart", be = "stateEnd", Ot = "divider", Nt = "roundedWithTitle", ve = "note", ke = "noteGroup", tt = "statediagram", Ce = "state", xe = `${tt}-${Ce}`, Kt = "transition", Ae = "note", Le = "note-edge", Ie = `${Kt} ${Le}`, Re = `${tt}-${Ae}`, Oe = "cluster", Ne = `${tt}-${Oe}`, we = "cluster-alt", $e = `${tt}-${we}`, Jt = "parent", qt = "note", Pe = "state", xt = "----", Be = `${xt}${qt}`, wt = `${xt}${Jt}`, Qt = /* @__PURE__ */ p((e, t = Mt) => {
|
|
550
|
-
if (!e.doc)
|
|
551
|
-
return t;
|
|
552
|
-
let s = t;
|
|
553
|
-
for (const n of e.doc)
|
|
554
|
-
n.stmt === "dir" && (s = n.value);
|
|
555
|
-
return s;
|
|
556
|
-
}, "getDir"), Ge = /* @__PURE__ */ p(function(e, t) {
|
|
557
|
-
return t.db.getClasses();
|
|
558
|
-
}, "getClasses"), Ye = /* @__PURE__ */ p(async function(e, t, s, n) {
|
|
559
|
-
v.info("REF0:"), v.info("Drawing state diagram (v2)", t);
|
|
560
|
-
const { securityLevel: o, state: c, layout: r } = A();
|
|
561
|
-
n.db.extract(n.db.getRootDocV2());
|
|
562
|
-
const d = n.db.getData(), f = ne(t, o);
|
|
563
|
-
d.type = n.type, d.layoutAlgorithm = r, d.nodeSpacing = (c == null ? void 0 : c.nodeSpacing) || 50, d.rankSpacing = (c == null ? void 0 : c.rankSpacing) || 50, d.markers = ["barb"], d.diagramId = t, await oe(d, f);
|
|
564
|
-
const g = 8;
|
|
565
|
-
ce.insertTitle(
|
|
566
|
-
f,
|
|
567
|
-
"statediagramTitleText",
|
|
568
|
-
(c == null ? void 0 : c.titleTopMargin) ?? 25,
|
|
569
|
-
n.db.getDiagramTitle()
|
|
570
|
-
), le(f, g, tt, (c == null ? void 0 : c.useMaxWidth) ?? !0);
|
|
571
|
-
}, "draw"), Ke = {
|
|
572
|
-
getClasses: Ge,
|
|
573
|
-
draw: Ye,
|
|
574
|
-
getDir: Qt
|
|
575
|
-
}, ft = /* @__PURE__ */ new Map(), B = 0;
|
|
576
|
-
function pt(e = "", t = 0, s = "", n = xt) {
|
|
577
|
-
const o = s !== null && s.length > 0 ? `${n}${s}` : "";
|
|
578
|
-
return `${Pe}-${e}${o}-${t}`;
|
|
579
|
-
}
|
|
580
|
-
p(pt, "stateDomId");
|
|
581
|
-
var Fe = /* @__PURE__ */ p((e, t, s, n, o, c, r, d) => {
|
|
582
|
-
v.trace("items", t), t.forEach((f) => {
|
|
583
|
-
switch (f.stmt) {
|
|
584
|
-
case dt:
|
|
585
|
-
Q(e, f, s, n, o, c, r, d);
|
|
586
|
-
break;
|
|
587
|
-
case Z:
|
|
588
|
-
Q(e, f, s, n, o, c, r, d);
|
|
589
|
-
break;
|
|
590
|
-
case vt:
|
|
591
|
-
{
|
|
592
|
-
Q(
|
|
593
|
-
e,
|
|
594
|
-
f.state1,
|
|
595
|
-
s,
|
|
596
|
-
n,
|
|
597
|
-
o,
|
|
598
|
-
c,
|
|
599
|
-
r,
|
|
600
|
-
d
|
|
601
|
-
), Q(
|
|
602
|
-
e,
|
|
603
|
-
f.state2,
|
|
604
|
-
s,
|
|
605
|
-
n,
|
|
606
|
-
o,
|
|
607
|
-
c,
|
|
608
|
-
r,
|
|
609
|
-
d
|
|
610
|
-
);
|
|
611
|
-
const g = {
|
|
612
|
-
id: "edge" + B,
|
|
613
|
-
start: f.state1.id,
|
|
614
|
-
end: f.state2.id,
|
|
615
|
-
arrowhead: "normal",
|
|
616
|
-
arrowTypeEnd: "arrow_barb",
|
|
617
|
-
style: jt,
|
|
618
|
-
labelStyle: "",
|
|
619
|
-
label: j.sanitizeText(f.description, A()),
|
|
620
|
-
arrowheadStyle: zt,
|
|
621
|
-
labelpos: Ht,
|
|
622
|
-
labelType: Wt,
|
|
623
|
-
thickness: Xt,
|
|
624
|
-
classes: Kt,
|
|
625
|
-
look: r
|
|
626
|
-
};
|
|
627
|
-
o.push(g), B++;
|
|
628
|
-
}
|
|
629
|
-
break;
|
|
630
|
-
}
|
|
631
|
-
});
|
|
632
|
-
}, "setupDoc"), $t = /* @__PURE__ */ p((e, t = Mt) => {
|
|
633
|
-
let s = t;
|
|
634
|
-
if (e.doc)
|
|
635
|
-
for (const n of e.doc)
|
|
636
|
-
n.stmt === "dir" && (s = n.value);
|
|
637
|
-
return s;
|
|
638
|
-
}, "getDir");
|
|
639
|
-
function q(e, t, s) {
|
|
640
|
-
if (!t.id || t.id === "</join></fork>" || t.id === "</choice>")
|
|
641
|
-
return;
|
|
642
|
-
t.cssClasses && (Array.isArray(t.cssCompiledStyles) || (t.cssCompiledStyles = []), t.cssClasses.split(" ").forEach((o) => {
|
|
643
|
-
if (s.get(o)) {
|
|
644
|
-
const c = s.get(o);
|
|
645
|
-
t.cssCompiledStyles = [...t.cssCompiledStyles, ...c.styles];
|
|
646
|
-
}
|
|
647
|
-
}));
|
|
648
|
-
const n = e.find((o) => o.id === t.id);
|
|
649
|
-
n ? Object.assign(n, t) : e.push(t);
|
|
650
|
-
}
|
|
651
|
-
p(q, "insertOrUpdateNode");
|
|
652
|
-
function Zt(e) {
|
|
653
|
-
var t;
|
|
654
|
-
return ((t = e == null ? void 0 : e.classes) == null ? void 0 : t.join(" ")) ?? "";
|
|
655
|
-
}
|
|
656
|
-
p(Zt, "getClassesFromDbInfo");
|
|
657
|
-
function te(e) {
|
|
658
|
-
return (e == null ? void 0 : e.styles) ?? [];
|
|
659
|
-
}
|
|
660
|
-
p(te, "getStylesFromDbInfo");
|
|
661
|
-
var Q = /* @__PURE__ */ p((e, t, s, n, o, c, r, d) => {
|
|
662
|
-
var I, G;
|
|
663
|
-
const f = t.id, g = s.get(f), E = Zt(g), m = te(g);
|
|
664
|
-
if (v.info("dataFetcher parsedItem", t, g, m), f !== "root") {
|
|
665
|
-
let R = mt;
|
|
666
|
-
t.start === !0 ? R = De : t.start === !1 && (R = be), t.type !== Z && (R = t.type), ft.get(f) || ft.set(f, {
|
|
667
|
-
id: f,
|
|
668
|
-
shape: R,
|
|
669
|
-
description: j.sanitizeText(f, A()),
|
|
670
|
-
cssClasses: `${E} ${xe}`,
|
|
671
|
-
cssStyles: m
|
|
672
|
-
});
|
|
673
|
-
const S = ft.get(f);
|
|
674
|
-
t.description && (Array.isArray(S.description) ? (S.shape = Dt, S.description.push(t.description)) : ((I = S.description) == null ? void 0 : I.length) > 0 ? (S.shape = Dt, S.description === f ? S.description = [t.description] : S.description = [S.description, t.description]) : (S.shape = mt, S.description = t.description), S.description = j.sanitizeTextOrArray(S.description, A())), ((G = S.description) == null ? void 0 : G.length) === 1 && S.shape === Dt && (S.type === "group" ? S.shape = Nt : S.shape = mt), !S.type && t.doc && (v.info("Setting cluster for XCX", f, $t(t)), S.type = "group", S.isGroup = !0, S.dir = $t(t), S.shape = t.type === Ut ? Ot : Nt, S.cssClasses = `${S.cssClasses} ${Ne} ${c ? $e : ""}`);
|
|
675
|
-
const L = {
|
|
676
|
-
labelStyle: "",
|
|
677
|
-
shape: S.shape,
|
|
678
|
-
label: S.description,
|
|
679
|
-
cssClasses: S.cssClasses,
|
|
680
|
-
cssCompiledStyles: [],
|
|
681
|
-
cssStyles: S.cssStyles,
|
|
682
|
-
id: f,
|
|
683
|
-
dir: S.dir,
|
|
684
|
-
domId: pt(f, B),
|
|
685
|
-
type: S.type,
|
|
686
|
-
isGroup: S.type === "group",
|
|
687
|
-
padding: 8,
|
|
688
|
-
rx: 10,
|
|
689
|
-
ry: 10,
|
|
690
|
-
look: r
|
|
691
|
-
};
|
|
692
|
-
if (L.shape === Ot && (L.label = ""), e && e.id !== "root" && (v.trace("Setting node ", f, " to be child of its parent ", e.id), L.parentId = e.id), L.centerLabel = !0, t.note) {
|
|
693
|
-
const O = {
|
|
694
|
-
labelStyle: "",
|
|
695
|
-
shape: ve,
|
|
696
|
-
label: t.note.text,
|
|
697
|
-
cssClasses: Re,
|
|
698
|
-
// useHtmlLabels: false,
|
|
699
|
-
cssStyles: [],
|
|
700
|
-
cssCompilesStyles: [],
|
|
701
|
-
id: f + Be + "-" + B,
|
|
702
|
-
domId: pt(f, B, qt),
|
|
703
|
-
type: S.type,
|
|
704
|
-
isGroup: S.type === "group",
|
|
705
|
-
padding: A().flowchart.padding,
|
|
706
|
-
look: r,
|
|
707
|
-
position: t.note.position
|
|
708
|
-
}, Y = f + wt, F = {
|
|
709
|
-
labelStyle: "",
|
|
710
|
-
shape: ke,
|
|
711
|
-
label: t.note.text,
|
|
712
|
-
cssClasses: S.cssClasses,
|
|
713
|
-
cssStyles: [],
|
|
714
|
-
id: f + wt,
|
|
715
|
-
domId: pt(f, B, Jt),
|
|
716
|
-
type: "group",
|
|
717
|
-
isGroup: !0,
|
|
718
|
-
padding: 16,
|
|
719
|
-
//getConfig().flowchart.padding
|
|
720
|
-
look: r,
|
|
721
|
-
position: t.note.position
|
|
722
|
-
};
|
|
723
|
-
B++, F.id = Y, O.parentId = Y, q(n, F, d), q(n, O, d), q(n, L, d);
|
|
724
|
-
let w = f, $ = O.id;
|
|
725
|
-
t.note.position === "left of" && (w = O.id, $ = f), o.push({
|
|
726
|
-
id: w + "-" + $,
|
|
727
|
-
start: w,
|
|
728
|
-
end: $,
|
|
729
|
-
arrowhead: "none",
|
|
730
|
-
arrowTypeEnd: "",
|
|
731
|
-
style: jt,
|
|
732
|
-
labelStyle: "",
|
|
733
|
-
classes: Ie,
|
|
734
|
-
arrowheadStyle: zt,
|
|
735
|
-
labelpos: Ht,
|
|
736
|
-
labelType: Wt,
|
|
737
|
-
thickness: Xt,
|
|
738
|
-
look: r
|
|
739
|
-
});
|
|
740
|
-
} else
|
|
741
|
-
q(n, L, d);
|
|
742
|
-
}
|
|
743
|
-
t.doc && (v.trace("Adding nodes children "), Fe(t, t.doc, s, n, o, !c, r, d));
|
|
744
|
-
}, "dataFetcher"), Ve = /* @__PURE__ */ p(() => {
|
|
745
|
-
ft.clear(), B = 0;
|
|
746
|
-
}, "reset"), kt = "[*]", Pt = "start", Bt = kt, Gt = "end", Yt = "color", Ft = "fill", Me = "bgFill", Ue = ",";
|
|
747
|
-
function Ct() {
|
|
748
|
-
return /* @__PURE__ */ new Map();
|
|
749
|
-
}
|
|
750
|
-
p(Ct, "newClassesList");
|
|
751
|
-
var Vt = /* @__PURE__ */ p(() => ({
|
|
752
|
-
/** @type {{ id1: string, id2: string, relationTitle: string }[]} */
|
|
753
|
-
relations: [],
|
|
754
|
-
states: /* @__PURE__ */ new Map(),
|
|
755
|
-
documents: {}
|
|
756
|
-
}), "newDoc"), ut = /* @__PURE__ */ p((e) => JSON.parse(JSON.stringify(e)), "clone"), z, Je = (z = class {
|
|
757
|
-
/**
|
|
758
|
-
* @param {1 | 2} version - v1 renderer or v2 renderer.
|
|
759
|
-
*/
|
|
760
|
-
constructor(t) {
|
|
761
|
-
/**
|
|
762
|
-
* @private
|
|
763
|
-
* @type {1 | 2}
|
|
764
|
-
*/
|
|
765
|
-
b(this, "version");
|
|
766
|
-
/**
|
|
767
|
-
* @private
|
|
768
|
-
* @type {Array}
|
|
769
|
-
*/
|
|
770
|
-
b(this, "nodes", []);
|
|
771
|
-
/**
|
|
772
|
-
* @private
|
|
773
|
-
* @type {Array}
|
|
774
|
-
*/
|
|
775
|
-
b(this, "edges", []);
|
|
776
|
-
/**
|
|
777
|
-
* @private
|
|
778
|
-
* @type {Array}
|
|
779
|
-
*/
|
|
780
|
-
b(this, "rootDoc", []);
|
|
781
|
-
/**
|
|
782
|
-
* @private
|
|
783
|
-
* @type {Map<string, any>}
|
|
784
|
-
*/
|
|
785
|
-
b(this, "classes", Ct());
|
|
786
|
-
// style classes defined by a classDef
|
|
787
|
-
/**
|
|
788
|
-
* @private
|
|
789
|
-
* @type {Object}
|
|
790
|
-
*/
|
|
791
|
-
b(this, "documents", {
|
|
792
|
-
root: Vt()
|
|
793
|
-
});
|
|
794
|
-
/**
|
|
795
|
-
* @private
|
|
796
|
-
* @type {Object}
|
|
797
|
-
*/
|
|
798
|
-
b(this, "currentDocument", this.documents.root);
|
|
799
|
-
/**
|
|
800
|
-
* @private
|
|
801
|
-
* @type {number}
|
|
802
|
-
*/
|
|
803
|
-
b(this, "startEndCount", 0);
|
|
804
|
-
/**
|
|
805
|
-
* @private
|
|
806
|
-
* @type {number}
|
|
807
|
-
*/
|
|
808
|
-
b(this, "dividerCnt", 0);
|
|
809
|
-
b(this, "getAccTitle", de);
|
|
810
|
-
b(this, "setAccTitle", fe);
|
|
811
|
-
b(this, "getAccDescription", pe);
|
|
812
|
-
b(this, "setAccDescription", Se);
|
|
813
|
-
b(this, "setDiagramTitle", ye);
|
|
814
|
-
b(this, "getDiagramTitle", ge);
|
|
815
|
-
this.clear(), this.version = t, this.setRootDoc = this.setRootDoc.bind(this), this.getDividerId = this.getDividerId.bind(this), this.setDirection = this.setDirection.bind(this), this.trimColon = this.trimColon.bind(this);
|
|
816
|
-
}
|
|
817
|
-
setRootDoc(t) {
|
|
818
|
-
v.info("Setting root doc", t), this.rootDoc = t, this.version === 1 ? this.extract(t) : this.extract(this.getRootDocV2());
|
|
819
|
-
}
|
|
820
|
-
getRootDoc() {
|
|
821
|
-
return this.rootDoc;
|
|
822
|
-
}
|
|
823
|
-
/**
|
|
824
|
-
* @private
|
|
825
|
-
* @param {Object} parent
|
|
826
|
-
* @param {Object} node
|
|
827
|
-
* @param {boolean} first
|
|
828
|
-
*/
|
|
829
|
-
docTranslator(t, s, n) {
|
|
830
|
-
if (s.stmt === vt)
|
|
831
|
-
this.docTranslator(t, s.state1, !0), this.docTranslator(t, s.state2, !1);
|
|
832
|
-
else if (s.stmt === dt && (s.id === "[*]" ? (s.id = n ? t.id + "_start" : t.id + "_end", s.start = n) : s.id = s.id.trim()), s.doc) {
|
|
833
|
-
const o = [];
|
|
834
|
-
let c = [], r;
|
|
835
|
-
for (r = 0; r < s.doc.length; r++)
|
|
836
|
-
if (s.doc[r].type === Ut) {
|
|
837
|
-
const d = ut(s.doc[r]);
|
|
838
|
-
d.doc = ut(c), o.push(d), c = [];
|
|
839
|
-
} else
|
|
840
|
-
c.push(s.doc[r]);
|
|
841
|
-
if (o.length > 0 && c.length > 0) {
|
|
842
|
-
const d = {
|
|
843
|
-
stmt: dt,
|
|
844
|
-
id: he(),
|
|
845
|
-
type: "divider",
|
|
846
|
-
doc: ut(c)
|
|
847
|
-
};
|
|
848
|
-
o.push(ut(d)), s.doc = o;
|
|
849
|
-
}
|
|
850
|
-
s.doc.forEach((d) => this.docTranslator(s, d, !0));
|
|
851
|
-
}
|
|
852
|
-
}
|
|
853
|
-
/**
|
|
854
|
-
* @private
|
|
855
|
-
*/
|
|
856
|
-
getRootDocV2() {
|
|
857
|
-
return this.docTranslator({ id: "root" }, { id: "root", doc: this.rootDoc }, !0), { id: "root", doc: this.rootDoc };
|
|
858
|
-
}
|
|
859
|
-
/**
|
|
860
|
-
* Convert all of the statements (stmts) that were parsed into states and relationships.
|
|
861
|
-
* This is done because a state diagram may have nested sections,
|
|
862
|
-
* where each section is a 'document' and has its own set of statements.
|
|
863
|
-
* Ex: the section within a fork has its own statements, and incoming and outgoing statements
|
|
864
|
-
* refer to the fork as a whole (document).
|
|
865
|
-
* See the parser grammar: the definition of a document is a document then a 'line', where a line can be a statement.
|
|
866
|
-
* This will push the statement into the list of statements for the current document.
|
|
867
|
-
* @private
|
|
868
|
-
* @param _doc
|
|
869
|
-
*/
|
|
870
|
-
extract(t) {
|
|
871
|
-
let s;
|
|
872
|
-
t.doc ? s = t.doc : s = t, v.info(s), this.clear(!0), v.info("Extract initial document:", s), s.forEach((r) => {
|
|
873
|
-
switch (v.warn("Statement", r.stmt), r.stmt) {
|
|
874
|
-
case dt:
|
|
875
|
-
this.addState(
|
|
876
|
-
r.id.trim(),
|
|
877
|
-
r.type,
|
|
878
|
-
r.doc,
|
|
879
|
-
r.description,
|
|
880
|
-
r.note,
|
|
881
|
-
r.classes,
|
|
882
|
-
r.styles,
|
|
883
|
-
r.textStyles
|
|
884
|
-
);
|
|
885
|
-
break;
|
|
886
|
-
case vt:
|
|
887
|
-
this.addRelation(r.state1, r.state2, r.description);
|
|
888
|
-
break;
|
|
889
|
-
case _e:
|
|
890
|
-
this.addStyleClass(r.id.trim(), r.classes);
|
|
891
|
-
break;
|
|
892
|
-
case Ee:
|
|
893
|
-
{
|
|
894
|
-
const d = r.id.trim().split(","), f = r.styleClass.split(",");
|
|
895
|
-
d.forEach((g) => {
|
|
896
|
-
let E = this.getState(g);
|
|
897
|
-
if (E === void 0) {
|
|
898
|
-
const m = g.trim();
|
|
899
|
-
this.addState(m), E = this.getState(m);
|
|
900
|
-
}
|
|
901
|
-
E.styles = f.map((m) => {
|
|
902
|
-
var I;
|
|
903
|
-
return (I = m.replace(/;/g, "")) == null ? void 0 : I.trim();
|
|
904
|
-
});
|
|
905
|
-
});
|
|
906
|
-
}
|
|
907
|
-
break;
|
|
908
|
-
case me:
|
|
909
|
-
this.setCssClass(r.id.trim(), r.styleClass);
|
|
910
|
-
break;
|
|
911
|
-
}
|
|
912
|
-
});
|
|
913
|
-
const n = this.getStates(), c = A().look;
|
|
914
|
-
Ve(), Q(
|
|
915
|
-
void 0,
|
|
916
|
-
this.getRootDocV2(),
|
|
917
|
-
n,
|
|
918
|
-
this.nodes,
|
|
919
|
-
this.edges,
|
|
920
|
-
!0,
|
|
921
|
-
c,
|
|
922
|
-
this.classes
|
|
923
|
-
), this.nodes.forEach((r) => {
|
|
924
|
-
if (Array.isArray(r.label)) {
|
|
925
|
-
if (r.description = r.label.slice(1), r.isGroup && r.description.length > 0)
|
|
926
|
-
throw new Error(
|
|
927
|
-
"Group nodes can only have label. Remove the additional description for node [" + r.id + "]"
|
|
928
|
-
);
|
|
929
|
-
r.label = r.label[0];
|
|
930
|
-
}
|
|
931
|
-
});
|
|
932
|
-
}
|
|
933
|
-
/**
|
|
934
|
-
* Function called by parser when a node definition has been found.
|
|
935
|
-
*
|
|
936
|
-
* @param {null | string} id
|
|
937
|
-
* @param {null | string} type
|
|
938
|
-
* @param {null | string} doc
|
|
939
|
-
* @param {null | string | string[]} descr - description for the state. Can be a string or a list or strings
|
|
940
|
-
* @param {null | string} note
|
|
941
|
-
* @param {null | string | string[]} classes - class styles to apply to this state. Can be a string (1 style) or an array of styles. If it's just 1 class, convert it to an array of that 1 class.
|
|
942
|
-
* @param {null | string | string[]} styles - styles to apply to this state. Can be a string (1 style) or an array of styles. If it's just 1 style, convert it to an array of that 1 style.
|
|
943
|
-
* @param {null | string | string[]} textStyles - text styles to apply to this state. Can be a string (1 text test) or an array of text styles. If it's just 1 text style, convert it to an array of that 1 text style.
|
|
944
|
-
*/
|
|
945
|
-
addState(t, s = Z, n = null, o = null, c = null, r = null, d = null, f = null) {
|
|
946
|
-
const g = t == null ? void 0 : t.trim();
|
|
947
|
-
if (this.currentDocument.states.has(g) ? (this.currentDocument.states.get(g).doc || (this.currentDocument.states.get(g).doc = n), this.currentDocument.states.get(g).type || (this.currentDocument.states.get(g).type = s)) : (v.info("Adding state ", g, o), this.currentDocument.states.set(g, {
|
|
948
|
-
id: g,
|
|
949
|
-
descriptions: [],
|
|
950
|
-
type: s,
|
|
951
|
-
doc: n,
|
|
952
|
-
note: c,
|
|
953
|
-
classes: [],
|
|
954
|
-
styles: [],
|
|
955
|
-
textStyles: []
|
|
956
|
-
})), o && (v.info("Setting state description", g, o), typeof o == "string" && this.addDescription(g, o.trim()), typeof o == "object" && o.forEach((E) => this.addDescription(g, E.trim()))), c) {
|
|
957
|
-
const E = this.currentDocument.states.get(g);
|
|
958
|
-
E.note = c, E.note.text = j.sanitizeText(E.note.text, A());
|
|
959
|
-
}
|
|
960
|
-
r && (v.info("Setting state classes", g, r), (typeof r == "string" ? [r] : r).forEach((m) => this.setCssClass(g, m.trim()))), d && (v.info("Setting state styles", g, d), (typeof d == "string" ? [d] : d).forEach((m) => this.setStyle(g, m.trim()))), f && (v.info("Setting state styles", g, d), (typeof f == "string" ? [f] : f).forEach((m) => this.setTextStyle(g, m.trim())));
|
|
961
|
-
}
|
|
962
|
-
clear(t) {
|
|
963
|
-
this.nodes = [], this.edges = [], this.documents = {
|
|
964
|
-
root: Vt()
|
|
965
|
-
}, this.currentDocument = this.documents.root, this.startEndCount = 0, this.classes = Ct(), t || ue();
|
|
966
|
-
}
|
|
967
|
-
getState(t) {
|
|
968
|
-
return this.currentDocument.states.get(t);
|
|
969
|
-
}
|
|
970
|
-
getStates() {
|
|
971
|
-
return this.currentDocument.states;
|
|
972
|
-
}
|
|
973
|
-
logDocuments() {
|
|
974
|
-
v.info("Documents = ", this.documents);
|
|
975
|
-
}
|
|
976
|
-
getRelations() {
|
|
977
|
-
return this.currentDocument.relations;
|
|
978
|
-
}
|
|
979
|
-
/**
|
|
980
|
-
* If the id is a start node ( [*] ), then return a new id constructed from
|
|
981
|
-
* the start node name and the current start node count.
|
|
982
|
-
* else return the given id
|
|
983
|
-
*
|
|
984
|
-
* @param {string} id
|
|
985
|
-
* @returns {string} - the id (original or constructed)
|
|
986
|
-
* @private
|
|
987
|
-
*/
|
|
988
|
-
startIdIfNeeded(t = "") {
|
|
989
|
-
let s = t;
|
|
990
|
-
return t === kt && (this.startEndCount++, s = `${Pt}${this.startEndCount}`), s;
|
|
991
|
-
}
|
|
992
|
-
/**
|
|
993
|
-
* If the id is a start node ( [*] ), then return the start type ('start')
|
|
994
|
-
* else return the given type
|
|
995
|
-
*
|
|
996
|
-
* @param {string} id
|
|
997
|
-
* @param {string} type
|
|
998
|
-
* @returns {string} - the type that should be used
|
|
999
|
-
* @private
|
|
1000
|
-
*/
|
|
1001
|
-
startTypeIfNeeded(t = "", s = Z) {
|
|
1002
|
-
return t === kt ? Pt : s;
|
|
1003
|
-
}
|
|
1004
|
-
/**
|
|
1005
|
-
* If the id is an end node ( [*] ), then return a new id constructed from
|
|
1006
|
-
* the end node name and the current start_end node count.
|
|
1007
|
-
* else return the given id
|
|
1008
|
-
*
|
|
1009
|
-
* @param {string} id
|
|
1010
|
-
* @returns {string} - the id (original or constructed)
|
|
1011
|
-
* @private
|
|
1012
|
-
*/
|
|
1013
|
-
endIdIfNeeded(t = "") {
|
|
1014
|
-
let s = t;
|
|
1015
|
-
return t === Bt && (this.startEndCount++, s = `${Gt}${this.startEndCount}`), s;
|
|
1016
|
-
}
|
|
1017
|
-
/**
|
|
1018
|
-
* If the id is an end node ( [*] ), then return the end type
|
|
1019
|
-
* else return the given type
|
|
1020
|
-
*
|
|
1021
|
-
* @param {string} id
|
|
1022
|
-
* @param {string} type
|
|
1023
|
-
* @returns {string} - the type that should be used
|
|
1024
|
-
* @private
|
|
1025
|
-
*/
|
|
1026
|
-
endTypeIfNeeded(t = "", s = Z) {
|
|
1027
|
-
return t === Bt ? Gt : s;
|
|
1028
|
-
}
|
|
1029
|
-
/**
|
|
1030
|
-
*
|
|
1031
|
-
* @param item1
|
|
1032
|
-
* @param item2
|
|
1033
|
-
* @param relationTitle
|
|
1034
|
-
*/
|
|
1035
|
-
addRelationObjs(t, s, n) {
|
|
1036
|
-
let o = this.startIdIfNeeded(t.id.trim()), c = this.startTypeIfNeeded(t.id.trim(), t.type), r = this.startIdIfNeeded(s.id.trim()), d = this.startTypeIfNeeded(s.id.trim(), s.type);
|
|
1037
|
-
this.addState(
|
|
1038
|
-
o,
|
|
1039
|
-
c,
|
|
1040
|
-
t.doc,
|
|
1041
|
-
t.description,
|
|
1042
|
-
t.note,
|
|
1043
|
-
t.classes,
|
|
1044
|
-
t.styles,
|
|
1045
|
-
t.textStyles
|
|
1046
|
-
), this.addState(
|
|
1047
|
-
r,
|
|
1048
|
-
d,
|
|
1049
|
-
s.doc,
|
|
1050
|
-
s.description,
|
|
1051
|
-
s.note,
|
|
1052
|
-
s.classes,
|
|
1053
|
-
s.styles,
|
|
1054
|
-
s.textStyles
|
|
1055
|
-
), this.currentDocument.relations.push({
|
|
1056
|
-
id1: o,
|
|
1057
|
-
id2: r,
|
|
1058
|
-
relationTitle: j.sanitizeText(n, A())
|
|
1059
|
-
});
|
|
1060
|
-
}
|
|
1061
|
-
/**
|
|
1062
|
-
* Add a relation between two items. The items may be full objects or just the string id of a state.
|
|
1063
|
-
*
|
|
1064
|
-
* @param {string | object} item1
|
|
1065
|
-
* @param {string | object} item2
|
|
1066
|
-
* @param {string} title
|
|
1067
|
-
*/
|
|
1068
|
-
addRelation(t, s, n) {
|
|
1069
|
-
if (typeof t == "object")
|
|
1070
|
-
this.addRelationObjs(t, s, n);
|
|
1071
|
-
else {
|
|
1072
|
-
const o = this.startIdIfNeeded(t.trim()), c = this.startTypeIfNeeded(t), r = this.endIdIfNeeded(s.trim()), d = this.endTypeIfNeeded(s);
|
|
1073
|
-
this.addState(o, c), this.addState(r, d), this.currentDocument.relations.push({
|
|
1074
|
-
id1: o,
|
|
1075
|
-
id2: r,
|
|
1076
|
-
title: j.sanitizeText(n, A())
|
|
1077
|
-
});
|
|
1078
|
-
}
|
|
1079
|
-
}
|
|
1080
|
-
addDescription(t, s) {
|
|
1081
|
-
const n = this.currentDocument.states.get(t), o = s.startsWith(":") ? s.replace(":", "").trim() : s;
|
|
1082
|
-
n.descriptions.push(j.sanitizeText(o, A()));
|
|
1083
|
-
}
|
|
1084
|
-
cleanupLabel(t) {
|
|
1085
|
-
return t.substring(0, 1) === ":" ? t.substr(2).trim() : t.trim();
|
|
1086
|
-
}
|
|
1087
|
-
getDividerId() {
|
|
1088
|
-
return this.dividerCnt++, "divider-id-" + this.dividerCnt;
|
|
1089
|
-
}
|
|
1090
|
-
/**
|
|
1091
|
-
* Called when the parser comes across a (style) class definition
|
|
1092
|
-
* @example classDef my-style fill:#f96;
|
|
1093
|
-
*
|
|
1094
|
-
* @param {string} id - the id of this (style) class
|
|
1095
|
-
* @param {string | null} styleAttributes - the string with 1 or more style attributes (each separated by a comma)
|
|
1096
|
-
*/
|
|
1097
|
-
addStyleClass(t, s = "") {
|
|
1098
|
-
this.classes.has(t) || this.classes.set(t, { id: t, styles: [], textStyles: [] });
|
|
1099
|
-
const n = this.classes.get(t);
|
|
1100
|
-
s != null && s.split(Ue).forEach((o) => {
|
|
1101
|
-
const c = o.replace(/([^;]*);/, "$1").trim();
|
|
1102
|
-
if (RegExp(Yt).exec(o)) {
|
|
1103
|
-
const d = c.replace(Ft, Me).replace(Yt, Ft);
|
|
1104
|
-
n.textStyles.push(d);
|
|
1105
|
-
}
|
|
1106
|
-
n.styles.push(c);
|
|
1107
|
-
});
|
|
1108
|
-
}
|
|
1109
|
-
/**
|
|
1110
|
-
* Return all of the style classes
|
|
1111
|
-
* @returns {{} | any | classes}
|
|
1112
|
-
*/
|
|
1113
|
-
getClasses() {
|
|
1114
|
-
return this.classes;
|
|
1115
|
-
}
|
|
1116
|
-
/**
|
|
1117
|
-
* Add a (style) class or css class to a state with the given id.
|
|
1118
|
-
* If the state isn't already in the list of known states, add it.
|
|
1119
|
-
* Might be called by parser when a style class or CSS class should be applied to a state
|
|
1120
|
-
*
|
|
1121
|
-
* @param {string | string[]} itemIds The id or a list of ids of the item(s) to apply the css class to
|
|
1122
|
-
* @param {string} cssClassName CSS class name
|
|
1123
|
-
*/
|
|
1124
|
-
setCssClass(t, s) {
|
|
1125
|
-
t.split(",").forEach((n) => {
|
|
1126
|
-
let o = this.getState(n);
|
|
1127
|
-
if (o === void 0) {
|
|
1128
|
-
const c = n.trim();
|
|
1129
|
-
this.addState(c), o = this.getState(c);
|
|
1130
|
-
}
|
|
1131
|
-
o.classes.push(s);
|
|
1132
|
-
});
|
|
1133
|
-
}
|
|
1134
|
-
/**
|
|
1135
|
-
* Add a style to a state with the given id.
|
|
1136
|
-
* @example style stateId fill:#f9f,stroke:#333,stroke-width:4px
|
|
1137
|
-
* where 'style' is the keyword
|
|
1138
|
-
* stateId is the id of a state
|
|
1139
|
-
* the rest of the string is the styleText (all of the attributes to be applied to the state)
|
|
1140
|
-
*
|
|
1141
|
-
* @param itemId The id of item to apply the style to
|
|
1142
|
-
* @param styleText - the text of the attributes for the style
|
|
1143
|
-
*/
|
|
1144
|
-
setStyle(t, s) {
|
|
1145
|
-
const n = this.getState(t);
|
|
1146
|
-
n !== void 0 && n.styles.push(s);
|
|
1147
|
-
}
|
|
1148
|
-
/**
|
|
1149
|
-
* Add a text style to a state with the given id
|
|
1150
|
-
*
|
|
1151
|
-
* @param itemId The id of item to apply the css class to
|
|
1152
|
-
* @param cssClassName CSS class name
|
|
1153
|
-
*/
|
|
1154
|
-
setTextStyle(t, s) {
|
|
1155
|
-
const n = this.getState(t);
|
|
1156
|
-
n !== void 0 && n.textStyles.push(s);
|
|
1157
|
-
}
|
|
1158
|
-
/**
|
|
1159
|
-
* Finds the direction statement in the root document.
|
|
1160
|
-
* @private
|
|
1161
|
-
* @returns {{ value: string } | undefined} - the direction statement if present
|
|
1162
|
-
*/
|
|
1163
|
-
getDirectionStatement() {
|
|
1164
|
-
return this.rootDoc.find((t) => t.stmt === Rt);
|
|
1165
|
-
}
|
|
1166
|
-
getDirection() {
|
|
1167
|
-
var t;
|
|
1168
|
-
return ((t = this.getDirectionStatement()) == null ? void 0 : t.value) ?? Te;
|
|
1169
|
-
}
|
|
1170
|
-
setDirection(t) {
|
|
1171
|
-
const s = this.getDirectionStatement();
|
|
1172
|
-
s ? s.value = t : this.rootDoc.unshift({ stmt: Rt, value: t });
|
|
1173
|
-
}
|
|
1174
|
-
trimColon(t) {
|
|
1175
|
-
return t && t[0] === ":" ? t.substr(1).trim() : t.trim();
|
|
1176
|
-
}
|
|
1177
|
-
getData() {
|
|
1178
|
-
const t = A();
|
|
1179
|
-
return {
|
|
1180
|
-
nodes: this.nodes,
|
|
1181
|
-
edges: this.edges,
|
|
1182
|
-
other: {},
|
|
1183
|
-
config: t,
|
|
1184
|
-
direction: Qt(this.getRootDocV2())
|
|
1185
|
-
};
|
|
1186
|
-
}
|
|
1187
|
-
getConfig() {
|
|
1188
|
-
return A().state;
|
|
1189
|
-
}
|
|
1190
|
-
}, p(z, "StateDB"), b(z, "relationType", {
|
|
1191
|
-
AGGREGATION: 0,
|
|
1192
|
-
EXTENSION: 1,
|
|
1193
|
-
COMPOSITION: 2,
|
|
1194
|
-
DEPENDENCY: 3
|
|
1195
|
-
}), z), je = /* @__PURE__ */ p((e) => `
|
|
1196
|
-
defs #statediagram-barbEnd {
|
|
1197
|
-
fill: ${e.transitionColor};
|
|
1198
|
-
stroke: ${e.transitionColor};
|
|
1199
|
-
}
|
|
1200
|
-
g.stateGroup text {
|
|
1201
|
-
fill: ${e.nodeBorder};
|
|
1202
|
-
stroke: none;
|
|
1203
|
-
font-size: 10px;
|
|
1204
|
-
}
|
|
1205
|
-
g.stateGroup text {
|
|
1206
|
-
fill: ${e.textColor};
|
|
1207
|
-
stroke: none;
|
|
1208
|
-
font-size: 10px;
|
|
1209
|
-
|
|
1210
|
-
}
|
|
1211
|
-
g.stateGroup .state-title {
|
|
1212
|
-
font-weight: bolder;
|
|
1213
|
-
fill: ${e.stateLabelColor};
|
|
1214
|
-
}
|
|
1215
|
-
|
|
1216
|
-
g.stateGroup rect {
|
|
1217
|
-
fill: ${e.mainBkg};
|
|
1218
|
-
stroke: ${e.nodeBorder};
|
|
1219
|
-
}
|
|
1220
|
-
|
|
1221
|
-
g.stateGroup line {
|
|
1222
|
-
stroke: ${e.lineColor};
|
|
1223
|
-
stroke-width: 1;
|
|
1224
|
-
}
|
|
1225
|
-
|
|
1226
|
-
.transition {
|
|
1227
|
-
stroke: ${e.transitionColor};
|
|
1228
|
-
stroke-width: 1;
|
|
1229
|
-
fill: none;
|
|
1230
|
-
}
|
|
1231
|
-
|
|
1232
|
-
.stateGroup .composit {
|
|
1233
|
-
fill: ${e.background};
|
|
1234
|
-
border-bottom: 1px
|
|
1235
|
-
}
|
|
1236
|
-
|
|
1237
|
-
.stateGroup .alt-composit {
|
|
1238
|
-
fill: #e0e0e0;
|
|
1239
|
-
border-bottom: 1px
|
|
1240
|
-
}
|
|
1241
|
-
|
|
1242
|
-
.state-note {
|
|
1243
|
-
stroke: ${e.noteBorderColor};
|
|
1244
|
-
fill: ${e.noteBkgColor};
|
|
1245
|
-
|
|
1246
|
-
text {
|
|
1247
|
-
fill: ${e.noteTextColor};
|
|
1248
|
-
stroke: none;
|
|
1249
|
-
font-size: 10px;
|
|
1250
|
-
}
|
|
1251
|
-
}
|
|
1252
|
-
|
|
1253
|
-
.stateLabel .box {
|
|
1254
|
-
stroke: none;
|
|
1255
|
-
stroke-width: 0;
|
|
1256
|
-
fill: ${e.mainBkg};
|
|
1257
|
-
opacity: 0.5;
|
|
1258
|
-
}
|
|
1259
|
-
|
|
1260
|
-
.edgeLabel .label rect {
|
|
1261
|
-
fill: ${e.labelBackgroundColor};
|
|
1262
|
-
opacity: 0.5;
|
|
1263
|
-
}
|
|
1264
|
-
.edgeLabel {
|
|
1265
|
-
background-color: ${e.edgeLabelBackground};
|
|
1266
|
-
p {
|
|
1267
|
-
background-color: ${e.edgeLabelBackground};
|
|
1268
|
-
}
|
|
1269
|
-
rect {
|
|
1270
|
-
opacity: 0.5;
|
|
1271
|
-
background-color: ${e.edgeLabelBackground};
|
|
1272
|
-
fill: ${e.edgeLabelBackground};
|
|
1273
|
-
}
|
|
1274
|
-
text-align: center;
|
|
1275
|
-
}
|
|
1276
|
-
.edgeLabel .label text {
|
|
1277
|
-
fill: ${e.transitionLabelColor || e.tertiaryTextColor};
|
|
1278
|
-
}
|
|
1279
|
-
.label div .edgeLabel {
|
|
1280
|
-
color: ${e.transitionLabelColor || e.tertiaryTextColor};
|
|
1281
|
-
}
|
|
1282
|
-
|
|
1283
|
-
.stateLabel text {
|
|
1284
|
-
fill: ${e.stateLabelColor};
|
|
1285
|
-
font-size: 10px;
|
|
1286
|
-
font-weight: bold;
|
|
1287
|
-
}
|
|
1288
|
-
|
|
1289
|
-
.node circle.state-start {
|
|
1290
|
-
fill: ${e.specialStateColor};
|
|
1291
|
-
stroke: ${e.specialStateColor};
|
|
1292
|
-
}
|
|
1293
|
-
|
|
1294
|
-
.node .fork-join {
|
|
1295
|
-
fill: ${e.specialStateColor};
|
|
1296
|
-
stroke: ${e.specialStateColor};
|
|
1297
|
-
}
|
|
1298
|
-
|
|
1299
|
-
.node circle.state-end {
|
|
1300
|
-
fill: ${e.innerEndBackground};
|
|
1301
|
-
stroke: ${e.background};
|
|
1302
|
-
stroke-width: 1.5
|
|
1303
|
-
}
|
|
1304
|
-
.end-state-inner {
|
|
1305
|
-
fill: ${e.compositeBackground || e.background};
|
|
1306
|
-
// stroke: ${e.background};
|
|
1307
|
-
stroke-width: 1.5
|
|
1308
|
-
}
|
|
1309
|
-
|
|
1310
|
-
.node rect {
|
|
1311
|
-
fill: ${e.stateBkg || e.mainBkg};
|
|
1312
|
-
stroke: ${e.stateBorder || e.nodeBorder};
|
|
1313
|
-
stroke-width: 1px;
|
|
1314
|
-
}
|
|
1315
|
-
.node polygon {
|
|
1316
|
-
fill: ${e.mainBkg};
|
|
1317
|
-
stroke: ${e.stateBorder || e.nodeBorder};;
|
|
1318
|
-
stroke-width: 1px;
|
|
1319
|
-
}
|
|
1320
|
-
#statediagram-barbEnd {
|
|
1321
|
-
fill: ${e.lineColor};
|
|
1322
|
-
}
|
|
1323
|
-
|
|
1324
|
-
.statediagram-cluster rect {
|
|
1325
|
-
fill: ${e.compositeTitleBackground};
|
|
1326
|
-
stroke: ${e.stateBorder || e.nodeBorder};
|
|
1327
|
-
stroke-width: 1px;
|
|
1328
|
-
}
|
|
1329
|
-
|
|
1330
|
-
.cluster-label, .nodeLabel {
|
|
1331
|
-
color: ${e.stateLabelColor};
|
|
1332
|
-
// line-height: 1;
|
|
1333
|
-
}
|
|
1334
|
-
|
|
1335
|
-
.statediagram-cluster rect.outer {
|
|
1336
|
-
rx: 5px;
|
|
1337
|
-
ry: 5px;
|
|
1338
|
-
}
|
|
1339
|
-
.statediagram-state .divider {
|
|
1340
|
-
stroke: ${e.stateBorder || e.nodeBorder};
|
|
1341
|
-
}
|
|
1342
|
-
|
|
1343
|
-
.statediagram-state .title-state {
|
|
1344
|
-
rx: 5px;
|
|
1345
|
-
ry: 5px;
|
|
1346
|
-
}
|
|
1347
|
-
.statediagram-cluster.statediagram-cluster .inner {
|
|
1348
|
-
fill: ${e.compositeBackground || e.background};
|
|
1349
|
-
}
|
|
1350
|
-
.statediagram-cluster.statediagram-cluster-alt .inner {
|
|
1351
|
-
fill: ${e.altBackground ? e.altBackground : "#efefef"};
|
|
1352
|
-
}
|
|
1353
|
-
|
|
1354
|
-
.statediagram-cluster .inner {
|
|
1355
|
-
rx:0;
|
|
1356
|
-
ry:0;
|
|
1357
|
-
}
|
|
1358
|
-
|
|
1359
|
-
.statediagram-state rect.basic {
|
|
1360
|
-
rx: 5px;
|
|
1361
|
-
ry: 5px;
|
|
1362
|
-
}
|
|
1363
|
-
.statediagram-state rect.divider {
|
|
1364
|
-
stroke-dasharray: 10,10;
|
|
1365
|
-
fill: ${e.altBackground ? e.altBackground : "#efefef"};
|
|
1366
|
-
}
|
|
1367
|
-
|
|
1368
|
-
.note-edge {
|
|
1369
|
-
stroke-dasharray: 5;
|
|
1370
|
-
}
|
|
1371
|
-
|
|
1372
|
-
.statediagram-note rect {
|
|
1373
|
-
fill: ${e.noteBkgColor};
|
|
1374
|
-
stroke: ${e.noteBorderColor};
|
|
1375
|
-
stroke-width: 1px;
|
|
1376
|
-
rx: 0;
|
|
1377
|
-
ry: 0;
|
|
1378
|
-
}
|
|
1379
|
-
.statediagram-note rect {
|
|
1380
|
-
fill: ${e.noteBkgColor};
|
|
1381
|
-
stroke: ${e.noteBorderColor};
|
|
1382
|
-
stroke-width: 1px;
|
|
1383
|
-
rx: 0;
|
|
1384
|
-
ry: 0;
|
|
1385
|
-
}
|
|
1386
|
-
|
|
1387
|
-
.statediagram-note text {
|
|
1388
|
-
fill: ${e.noteTextColor};
|
|
1389
|
-
}
|
|
1390
|
-
|
|
1391
|
-
.statediagram-note .nodeLabel {
|
|
1392
|
-
color: ${e.noteTextColor};
|
|
1393
|
-
}
|
|
1394
|
-
.statediagram .edgeLabel {
|
|
1395
|
-
color: red; // ${e.noteTextColor};
|
|
1396
|
-
}
|
|
1397
|
-
|
|
1398
|
-
#dependencyStart, #dependencyEnd {
|
|
1399
|
-
fill: ${e.lineColor};
|
|
1400
|
-
stroke: ${e.lineColor};
|
|
1401
|
-
stroke-width: 1;
|
|
1402
|
-
}
|
|
1403
|
-
|
|
1404
|
-
.statediagramTitleText {
|
|
1405
|
-
text-anchor: middle;
|
|
1406
|
-
font-size: 18px;
|
|
1407
|
-
fill: ${e.textColor};
|
|
1408
|
-
}
|
|
1409
|
-
`, "getStyles"), qe = je;
|
|
1410
|
-
export {
|
|
1411
|
-
Je as S,
|
|
1412
|
-
Xe as a,
|
|
1413
|
-
Ke as b,
|
|
1414
|
-
qe as s
|
|
1415
|
-
};
|