@ucap-llm/ai-ui 1.1.13 → 1.1.15
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/_basePickBy-DMehTBs0-8955b30b.mjs +151 -0
- package/_basePickBy-e7598e72.mjs +153 -0
- package/{_baseUniq-2bcae05e.mjs → _baseUniq-8cd7fbc4.mjs} +150 -150
- package/_baseUniq-DPnX6tpB-5eb6efbd.mjs +615 -0
- package/ai-ui.es.js +9 -8
- package/ai-ui.umd.js +3425 -923
- package/arc-8909f880.mjs +85 -0
- package/arc-qimaJRLH-591a6072.mjs +85 -0
- package/architecture-4AB2E3PP-DFmEpUnA-62fe65dd.mjs +10 -0
- package/architecture-4AB2E3PP-b04ae9dd.mjs +10 -0
- package/{architectureDiagram-IEHRJDOE-e4684ef3.mjs → architectureDiagram-IEHRJDOE-1ccc2c64.mjs} +123 -123
- package/architectureDiagram-IEHRJDOE-BRVAVUEE-c068faae.mjs +4641 -0
- package/{blockDiagram-JOT3LUYC-504ee31e.mjs → blockDiagram-JOT3LUYC-63569de5.mjs} +5 -5
- package/blockDiagram-JOT3LUYC-Cs4tSRey-54d8e29b.mjs +2251 -0
- package/{c4Diagram-VJAJSXHY-c5ba6af4.mjs → c4Diagram-VJAJSXHY-355a4170.mjs} +23 -23
- package/c4Diagram-VJAJSXHY-C3F9fO0L-0df97cd8.mjs +1583 -0
- package/channel-CuHzivgY-bb3d765a.mjs +5 -0
- package/channel-a1f4f18c.mjs +5 -0
- package/{chunk-4BMEZGHF-8d9a2e4f.mjs → chunk-4BMEZGHF-705995af.mjs} +1 -1
- package/chunk-4BMEZGHF-btTOjzEX-c9c5432c.mjs +9 -0
- package/{chunk-A2AXSNBT-41ae29f2.mjs → chunk-A2AXSNBT-3a857566.mjs} +10 -10
- package/chunk-A2AXSNBT-CPBZRsS7-a80df701.mjs +1373 -0
- package/{chunk-AEK57VVT-69e121d6.mjs → chunk-AEK57VVT-6c60e1ee.mjs} +45 -45
- package/chunk-AEK57VVT-D62Iwyam-238a3d85.mjs +1361 -0
- package/{chunk-D6G4REZN-472adc5b.mjs → chunk-D6G4REZN-11c52918.mjs} +5 -5
- package/chunk-D6G4REZN-HlFmQTJy-20704636.mjs +64 -0
- package/chunk-RZ5BOZE2-DIFgOqDt-495bec03.mjs +24 -0
- package/{chunk-RZ5BOZE2-b7d5d4f5.mjs → chunk-RZ5BOZE2-d6db8103.mjs} +9 -9
- package/chunk-XZIHB7SX-CCrbsG0u-f30e4124.mjs +15 -0
- package/{chunk-XZIHB7SX-56c08d07.mjs → chunk-XZIHB7SX-fafd3ca2.mjs} +1 -1
- package/classDiagram-GIVACNV2-Bv5U0XPL-622b22ed.mjs +18 -0
- package/{classDiagram-v2-COTLJTTW-1deea5cc.mjs → classDiagram-GIVACNV2-eca9aeb6.mjs} +5 -5
- package/classDiagram-v2-COTLJTTW-Bv5U0XPL-622b22ed.mjs +18 -0
- package/{classDiagram-GIVACNV2-1deea5cc.mjs → classDiagram-v2-COTLJTTW-eca9aeb6.mjs} +5 -5
- package/{clone-1f18a17f.mjs → clone-327a1426.mjs} +1 -1
- package/clone-Csc9uFbU-6c4f28bd.mjs +8 -0
- package/cytoscape.esm-Swd9B-1A-3101f241.mjs +18730 -0
- package/{dagre-OKDRZEBW-74e73dcf.mjs → dagre-OKDRZEBW-9059bb36.mjs} +81 -81
- package/dagre-OKDRZEBW-CoMQYlxF-96274fb0.mjs +448 -0
- package/{diagram-SSKATNLV-1a562cb0.mjs → diagram-SSKATNLV-70f68e72.mjs} +34 -34
- package/diagram-SSKATNLV-CPuZUaGP-50edcaa0.mjs +225 -0
- package/{diagram-VNBRO52H-b765e46f.mjs → diagram-VNBRO52H-39273710.mjs} +35 -35
- package/diagram-VNBRO52H-DIIZ-Sll-969266e6.mjs +130 -0
- package/{erDiagram-Q7BY3M3F-022c4343.mjs → erDiagram-Q7BY3M3F-96ba3906.mjs} +3 -3
- package/erDiagram-Q7BY3M3F-ZKWAM_uE-41c0350d.mjs +843 -0
- package/{flowDiagram-4HSFHLVR-6036e284.mjs → flowDiagram-4HSFHLVR-795e3830.mjs} +29 -29
- package/flowDiagram-4HSFHLVR-CUJXGEG3-801dde13.mjs +1624 -0
- package/{ganttDiagram-APWFNJXF-be871387.mjs → ganttDiagram-APWFNJXF-736e67b6.mjs} +398 -398
- package/ganttDiagram-APWFNJXF-C1pgubbs-20beffc3.mjs +2527 -0
- package/gitGraph-O2Q2CXLX-00465db9.mjs +10 -0
- package/gitGraph-O2Q2CXLX-BYavwGzs-e5f1990e.mjs +10 -0
- package/{gitGraphDiagram-7IBYFJ6S-da63c888.mjs → gitGraphDiagram-7IBYFJ6S-115329ab.mjs} +88 -88
- package/gitGraphDiagram-7IBYFJ6S-CndxirR4-b39d4089.mjs +716 -0
- package/{graph-e71f0e3e.mjs → graph-9e073c5f.mjs} +8 -8
- package/graph-DOmtxVvg-727f4e14.mjs +247 -0
- package/index-433e2395.mjs +168385 -0
- package/info-4N47QTOZ-688db415.mjs +10 -0
- package/info-4N47QTOZ-DPyDFN1Z-821cf2f7.mjs +10 -0
- package/{infoDiagram-PH2N3AL5-3e1c1c1f.mjs → infoDiagram-PH2N3AL5-29e9585a.mjs} +9 -9
- package/infoDiagram-PH2N3AL5-BkSS3vpU-ef4bf66d.mjs +26 -0
- package/init-DjUOC4st-87c930f1.mjs +16 -0
- package/{journeyDiagram-U35MCT3I-6d29748d.mjs → journeyDiagram-U35MCT3I-7c5644d1.mjs} +41 -41
- package/journeyDiagram-U35MCT3I-BN-kCDeJ-ac350902.mjs +811 -0
- package/{kanban-definition-NDS4AKOZ-c231ae4c.mjs → kanban-definition-NDS4AKOZ-eff441f9.mjs} +47 -47
- package/kanban-definition-NDS4AKOZ-gaDUOiKt-efdba942.mjs +720 -0
- package/{layout-b9b9e407.mjs → layout-501d22f0.mjs} +19 -19
- package/layout-8X5HiOVA-b6e13cf9.mjs +1323 -0
- package/linear-BgV5F0PU-8137edad.mjs +447 -0
- package/{linear-99040ddc.mjs → linear-fd3cd932.mjs} +56 -56
- package/{mermaid-parser.core-55f134dc.mjs → mermaid-parser.core-6eb44241.mjs} +160 -160
- package/mermaid-parser.core-BTS3sfcL-8c80284a.mjs +12810 -0
- package/{mindmap-definition-ALO5MXBD-938e2e65.mjs → mindmap-definition-ALO5MXBD-2fe3c748.mjs} +1 -1
- package/mindmap-definition-ALO5MXBD-B8q_1sIj-c3599d3c.mjs +3225 -0
- package/ordinal-DfAQgscy-1c8e46a9.mjs +65 -0
- package/package.json +2 -2
- package/packet-KVYON367-DcfdOX-U-afac932a.mjs +10 -0
- package/packet-KVYON367-c82af3fe.mjs +10 -0
- package/pie-R6RNRRYF-DKruFncB-d07f60c2.mjs +10 -0
- package/pie-R6RNRRYF-eb27797b.mjs +10 -0
- package/pieDiagram-IB7DONF6-Bijui6_Q-db9fdf3a.mjs +166 -0
- package/{pieDiagram-IB7DONF6-6a11673b.mjs → pieDiagram-IB7DONF6-e6863984.mjs} +36 -36
- package/{quadrantDiagram-7GDLP6J5-a4a4d9ac.mjs → quadrantDiagram-7GDLP6J5-88df12c2.mjs} +15 -15
- package/quadrantDiagram-7GDLP6J5-DzIzViUj-b13add98.mjs +1027 -0
- package/radar-MK3ICKWK-723229d0.mjs +10 -0
- package/radar-MK3ICKWK-D8wbkmr5-3165faf6.mjs +10 -0
- package/{requirementDiagram-KVF5MWMF-a7093c74.mjs → requirementDiagram-KVF5MWMF-7228051c.mjs} +50 -50
- package/requirementDiagram-KVF5MWMF-Hqsbdpfq-23374f24.mjs +853 -0
- package/{sankeyDiagram-QLVOVGJD-f4bcbb2d.mjs → sankeyDiagram-QLVOVGJD-00a31a99.mjs} +87 -87
- package/sankeyDiagram-QLVOVGJD-DGCeusqJ-8ca7e64d.mjs +826 -0
- package/{sequenceDiagram-X6HHIX6F-9071cfff.mjs → sequenceDiagram-X6HHIX6F-de203309.mjs} +3 -3
- package/sequenceDiagram-X6HHIX6F-kuEE9wSd-5f0ec5cd.mjs +2283 -0
- package/{stateDiagram-DGXRK772-fb22a7a5.mjs → stateDiagram-DGXRK772-2341237a.mjs} +48 -48
- package/stateDiagram-DGXRK772-Cq-Ce3WP-266efa7f.mjs +274 -0
- package/{stateDiagram-v2-YXO3MK2T-67326b76.mjs → stateDiagram-v2-YXO3MK2T-8c81deed.mjs} +5 -5
- package/stateDiagram-v2-YXO3MK2T-CplwFWn1-c0024e4e.mjs +18 -0
- package/style.css +10 -1
- package/timeline-definition-BDJGKUSR-USv5sZzx-22548912.mjs +806 -0
- package/{timeline-definition-BDJGKUSR-44f50d45.mjs → timeline-definition-BDJGKUSR-e615901b.mjs} +79 -79
- package/{xychartDiagram-VJFVF3MP-2df503f6.mjs → xychartDiagram-VJFVF3MP-9ad66a6b.mjs} +28 -28
- package/xychartDiagram-VJFVF3MP-CXCfFZBM-e5ca151e.mjs +1306 -0
- package/_basePickBy-12958109.mjs +0 -153
- package/arc-14f9a207.mjs +0 -85
- package/architecture-4AB2E3PP-bb512ddb.mjs +0 -10
- package/channel-7bd711b4.mjs +0 -5
- package/gitGraph-O2Q2CXLX-83cfcbef.mjs +0 -10
- package/index-f83d4b07.mjs +0 -97448
- package/info-4N47QTOZ-20cf90f5.mjs +0 -10
- package/katex-2e45926a.mjs +0 -11700
- package/packet-KVYON367-453a49e8.mjs +0 -10
- package/pie-R6RNRRYF-4d95c8dc.mjs +0 -10
- package/radar-MK3ICKWK-100e8fa4.mjs +0 -10
|
@@ -0,0 +1,1361 @@
|
|
|
1
|
+
import { u as ie, b as re } from "./chunk-RZ5BOZE2-DIFgOqDt-495bec03.mjs";
|
|
2
|
+
import { v as h, J as T, aA as ne, l as $, T as M, r as ae, O as oe, q as le, G as ce, j as he, K as de, Y as ue, i as pe, k as ye } from "./index-433e2395.mjs";
|
|
3
|
+
var ge = Object.defineProperty, me = (t, e, o) => e in t ? ge(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o, k = (t, e, o) => me(t, typeof e != "symbol" ? e + "" : e, o), kt = function() {
|
|
4
|
+
var t = /* @__PURE__ */ h(function(I, r, n, y) {
|
|
5
|
+
for (n = n || {}, y = I.length; y--; n[I[y]] = r)
|
|
6
|
+
;
|
|
7
|
+
return n;
|
|
8
|
+
}, "o"), e = [1, 2], o = [1, 3], a = [1, 4], i = [2, 4], c = [1, 9], p = [1, 11], m = [1, 16], d = [1, 17], S = [1, 18], b = [1, 19], A = [1, 32], X = [1, 20], F = [1, 21], L = [1, 22], u = [1, 23], x = [1, 24], O = [1, 26], Y = [1, 27], P = [1, 28], R = [1, 29], N = [1, 30], W = [1, 31], tt = [1, 34], et = [1, 35], st = [1, 36], it = [1, 37], H = [1, 33], g = [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], rt = [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], $t = [4, 5, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 42, 45, 48, 49, 50, 51, 54], yt = {
|
|
9
|
+
trace: /* @__PURE__ */ h(function() {
|
|
10
|
+
}, "trace"),
|
|
11
|
+
yy: {},
|
|
12
|
+
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 },
|
|
13
|
+
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" },
|
|
14
|
+
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]],
|
|
15
|
+
performAction: /* @__PURE__ */ h(function(I, r, n, y, f, s, E) {
|
|
16
|
+
var l = s.length - 1;
|
|
17
|
+
switch (f) {
|
|
18
|
+
case 3:
|
|
19
|
+
return y.setRootDoc(s[l]), s[l];
|
|
20
|
+
case 4:
|
|
21
|
+
this.$ = [];
|
|
22
|
+
break;
|
|
23
|
+
case 5:
|
|
24
|
+
s[l] != "nl" && (s[l - 1].push(s[l]), this.$ = s[l - 1]);
|
|
25
|
+
break;
|
|
26
|
+
case 6:
|
|
27
|
+
case 7:
|
|
28
|
+
this.$ = s[l];
|
|
29
|
+
break;
|
|
30
|
+
case 8:
|
|
31
|
+
this.$ = "nl";
|
|
32
|
+
break;
|
|
33
|
+
case 12:
|
|
34
|
+
this.$ = s[l];
|
|
35
|
+
break;
|
|
36
|
+
case 13:
|
|
37
|
+
const U = s[l - 1];
|
|
38
|
+
U.description = y.trimColon(s[l]), this.$ = U;
|
|
39
|
+
break;
|
|
40
|
+
case 14:
|
|
41
|
+
this.$ = { stmt: "relation", state1: s[l - 2], state2: s[l] };
|
|
42
|
+
break;
|
|
43
|
+
case 15:
|
|
44
|
+
const gt = y.trimColon(s[l]);
|
|
45
|
+
this.$ = { stmt: "relation", state1: s[l - 3], state2: s[l - 1], description: gt };
|
|
46
|
+
break;
|
|
47
|
+
case 19:
|
|
48
|
+
this.$ = { stmt: "state", id: s[l - 3], type: "default", description: "", doc: s[l - 1] };
|
|
49
|
+
break;
|
|
50
|
+
case 20:
|
|
51
|
+
var G = s[l], J = s[l - 2].trim();
|
|
52
|
+
if (s[l].match(":")) {
|
|
53
|
+
var at = s[l].split(":");
|
|
54
|
+
G = at[0], J = [J, at[1]];
|
|
55
|
+
}
|
|
56
|
+
this.$ = { stmt: "state", id: G, type: "default", description: J };
|
|
57
|
+
break;
|
|
58
|
+
case 21:
|
|
59
|
+
this.$ = { stmt: "state", id: s[l - 3], type: "default", description: s[l - 5], doc: s[l - 1] };
|
|
60
|
+
break;
|
|
61
|
+
case 22:
|
|
62
|
+
this.$ = { stmt: "state", id: s[l], type: "fork" };
|
|
63
|
+
break;
|
|
64
|
+
case 23:
|
|
65
|
+
this.$ = { stmt: "state", id: s[l], type: "join" };
|
|
66
|
+
break;
|
|
67
|
+
case 24:
|
|
68
|
+
this.$ = { stmt: "state", id: s[l], type: "choice" };
|
|
69
|
+
break;
|
|
70
|
+
case 25:
|
|
71
|
+
this.$ = { stmt: "state", id: y.getDividerId(), type: "divider" };
|
|
72
|
+
break;
|
|
73
|
+
case 26:
|
|
74
|
+
this.$ = { stmt: "state", id: s[l - 1].trim(), note: { position: s[l - 2].trim(), text: s[l].trim() } };
|
|
75
|
+
break;
|
|
76
|
+
case 29:
|
|
77
|
+
this.$ = s[l].trim(), y.setAccTitle(this.$);
|
|
78
|
+
break;
|
|
79
|
+
case 30:
|
|
80
|
+
case 31:
|
|
81
|
+
this.$ = s[l].trim(), y.setAccDescription(this.$);
|
|
82
|
+
break;
|
|
83
|
+
case 32:
|
|
84
|
+
case 33:
|
|
85
|
+
this.$ = { stmt: "classDef", id: s[l - 1].trim(), classes: s[l].trim() };
|
|
86
|
+
break;
|
|
87
|
+
case 34:
|
|
88
|
+
this.$ = { stmt: "style", id: s[l - 1].trim(), styleClass: s[l].trim() };
|
|
89
|
+
break;
|
|
90
|
+
case 35:
|
|
91
|
+
this.$ = { stmt: "applyClass", id: s[l - 1].trim(), styleClass: s[l].trim() };
|
|
92
|
+
break;
|
|
93
|
+
case 36:
|
|
94
|
+
y.setDirection("TB"), this.$ = { stmt: "dir", value: "TB" };
|
|
95
|
+
break;
|
|
96
|
+
case 37:
|
|
97
|
+
y.setDirection("BT"), this.$ = { stmt: "dir", value: "BT" };
|
|
98
|
+
break;
|
|
99
|
+
case 38:
|
|
100
|
+
y.setDirection("RL"), this.$ = { stmt: "dir", value: "RL" };
|
|
101
|
+
break;
|
|
102
|
+
case 39:
|
|
103
|
+
y.setDirection("LR"), this.$ = { stmt: "dir", value: "LR" };
|
|
104
|
+
break;
|
|
105
|
+
case 42:
|
|
106
|
+
case 43:
|
|
107
|
+
this.$ = { stmt: "state", id: s[l].trim(), type: "default", description: "" };
|
|
108
|
+
break;
|
|
109
|
+
case 44:
|
|
110
|
+
this.$ = { stmt: "state", id: s[l - 2].trim(), classes: [s[l].trim()], type: "default", description: "" };
|
|
111
|
+
break;
|
|
112
|
+
case 45:
|
|
113
|
+
this.$ = { stmt: "state", id: s[l - 2].trim(), classes: [s[l].trim()], type: "default", description: "" };
|
|
114
|
+
break;
|
|
115
|
+
}
|
|
116
|
+
}, "anonymous"),
|
|
117
|
+
table: [{ 3: 1, 4: e, 5: o, 6: a }, { 1: [3] }, { 3: 5, 4: e, 5: o, 6: a }, { 3: 6, 4: e, 5: o, 6: a }, t([1, 4, 5, 16, 17, 19, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 42, 45, 48, 49, 50, 51, 54], i, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: c, 5: p, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: m, 17: d, 19: S, 22: b, 24: A, 25: X, 26: F, 27: L, 28: u, 29: x, 32: 25, 33: O, 35: Y, 37: P, 38: R, 42: N, 45: W, 48: tt, 49: et, 50: st, 51: it, 54: H }, t(g, [2, 5]), { 9: 38, 10: 12, 11: 13, 12: 14, 13: 15, 16: m, 17: d, 19: S, 22: b, 24: A, 25: X, 26: F, 27: L, 28: u, 29: x, 32: 25, 33: O, 35: Y, 37: P, 38: R, 42: N, 45: W, 48: tt, 49: et, 50: st, 51: it, 54: H }, t(g, [2, 7]), t(g, [2, 8]), t(g, [2, 9]), t(g, [2, 10]), t(g, [2, 11]), t(g, [2, 12], { 14: [1, 39], 15: [1, 40] }), t(g, [2, 16]), { 18: [1, 41] }, t(g, [2, 18], { 20: [1, 42] }), { 23: [1, 43] }, t(g, [2, 22]), t(g, [2, 23]), t(g, [2, 24]), t(g, [2, 25]), { 30: 44, 31: [1, 45], 56: [1, 46], 57: [1, 47] }, t(g, [2, 28]), { 34: [1, 48] }, { 36: [1, 49] }, t(g, [2, 31]), { 39: [1, 50], 41: [1, 51] }, { 43: [1, 52] }, { 46: [1, 53] }, t(rt, [2, 42], { 55: [1, 54] }), t(rt, [2, 43], { 55: [1, 55] }), t(g, [2, 36]), t(g, [2, 37]), t(g, [2, 38]), t(g, [2, 39]), t(g, [2, 6]), t(g, [2, 13]), { 13: 56, 24: A, 54: H }, t(g, [2, 17]), t($t, i, { 7: 57 }), { 24: [1, 58] }, { 24: [1, 59] }, { 23: [1, 60] }, { 24: [2, 46] }, { 24: [2, 47] }, t(g, [2, 29]), t(g, [2, 30]), { 40: [1, 61] }, { 40: [1, 62] }, { 44: [1, 63] }, { 47: [1, 64] }, { 24: [1, 65] }, { 24: [1, 66] }, t(g, [2, 14], { 14: [1, 67] }), { 4: c, 5: p, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: m, 17: d, 19: S, 21: [1, 68], 22: b, 24: A, 25: X, 26: F, 27: L, 28: u, 29: x, 32: 25, 33: O, 35: Y, 37: P, 38: R, 42: N, 45: W, 48: tt, 49: et, 50: st, 51: it, 54: H }, t(g, [2, 20], { 20: [1, 69] }), { 31: [1, 70] }, { 24: [1, 71] }, t(g, [2, 32]), t(g, [2, 33]), t(g, [2, 34]), t(g, [2, 35]), t(rt, [2, 44]), t(rt, [2, 45]), t(g, [2, 15]), t(g, [2, 19]), t($t, i, { 7: 72 }), t(g, [2, 26]), t(g, [2, 27]), { 4: c, 5: p, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: m, 17: d, 19: S, 21: [1, 73], 22: b, 24: A, 25: X, 26: F, 27: L, 28: u, 29: x, 32: 25, 33: O, 35: Y, 37: P, 38: R, 42: N, 45: W, 48: tt, 49: et, 50: st, 51: it, 54: H }, t(g, [2, 21])],
|
|
118
|
+
defaultActions: { 5: [2, 1], 6: [2, 2], 46: [2, 46], 47: [2, 47] },
|
|
119
|
+
parseError: /* @__PURE__ */ h(function(I, r) {
|
|
120
|
+
if (r.recoverable)
|
|
121
|
+
this.trace(I);
|
|
122
|
+
else {
|
|
123
|
+
var n = new Error(I);
|
|
124
|
+
throw n.hash = r, n;
|
|
125
|
+
}
|
|
126
|
+
}, "parseError"),
|
|
127
|
+
parse: /* @__PURE__ */ h(function(I) {
|
|
128
|
+
var r = this, n = [0], y = [], f = [null], s = [], E = this.table, l = "", G = 0, J = 0, at = 2, U = 1, gt = s.slice.call(arguments, 1), _ = Object.create(this.lexer), j = { yy: {} };
|
|
129
|
+
for (var mt in this.yy)
|
|
130
|
+
Object.prototype.hasOwnProperty.call(this.yy, mt) && (j.yy[mt] = this.yy[mt]);
|
|
131
|
+
_.setInput(I, j.yy), j.yy.lexer = _, j.yy.parser = this, typeof _.yylloc > "u" && (_.yylloc = {});
|
|
132
|
+
var St = _.yylloc;
|
|
133
|
+
s.push(St);
|
|
134
|
+
var ee = _.options && _.options.ranges;
|
|
135
|
+
typeof j.yy.parseError == "function" ? this.parseError = j.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
136
|
+
function se(v) {
|
|
137
|
+
n.length = n.length - 2 * v, f.length = f.length - v, s.length = s.length - v;
|
|
138
|
+
}
|
|
139
|
+
h(se, "popStack");
|
|
140
|
+
function xt() {
|
|
141
|
+
var v;
|
|
142
|
+
return v = y.pop() || _.lex() || U, typeof v != "number" && (v instanceof Array && (y = v, v = y.pop()), v = r.symbols_[v] || v), v;
|
|
143
|
+
}
|
|
144
|
+
h(xt, "lex");
|
|
145
|
+
for (var D, z, C, ft, K = {}, ot, w, It, lt; ; ) {
|
|
146
|
+
if (z = n[n.length - 1], this.defaultActions[z] ? C = this.defaultActions[z] : ((D === null || typeof D > "u") && (D = xt()), C = E[z] && E[z][D]), typeof C > "u" || !C.length || !C[0]) {
|
|
147
|
+
var bt = "";
|
|
148
|
+
lt = [];
|
|
149
|
+
for (ot in E[z])
|
|
150
|
+
this.terminals_[ot] && ot > at && lt.push("'" + this.terminals_[ot] + "'");
|
|
151
|
+
_.showPosition ? bt = "Parse error on line " + (G + 1) + `:
|
|
152
|
+
` + _.showPosition() + `
|
|
153
|
+
Expecting ` + lt.join(", ") + ", got '" + (this.terminals_[D] || D) + "'" : bt = "Parse error on line " + (G + 1) + ": Unexpected " + (D == U ? "end of input" : "'" + (this.terminals_[D] || D) + "'"), this.parseError(bt, {
|
|
154
|
+
text: _.match,
|
|
155
|
+
token: this.terminals_[D] || D,
|
|
156
|
+
line: _.yylineno,
|
|
157
|
+
loc: St,
|
|
158
|
+
expected: lt
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
if (C[0] instanceof Array && C.length > 1)
|
|
162
|
+
throw new Error("Parse Error: multiple actions possible at state: " + z + ", token: " + D);
|
|
163
|
+
switch (C[0]) {
|
|
164
|
+
case 1:
|
|
165
|
+
n.push(D), f.push(_.yytext), s.push(_.yylloc), n.push(C[1]), D = null, J = _.yyleng, l = _.yytext, G = _.yylineno, St = _.yylloc;
|
|
166
|
+
break;
|
|
167
|
+
case 2:
|
|
168
|
+
if (w = this.productions_[C[1]][1], K.$ = f[f.length - w], K._$ = {
|
|
169
|
+
first_line: s[s.length - (w || 1)].first_line,
|
|
170
|
+
last_line: s[s.length - 1].last_line,
|
|
171
|
+
first_column: s[s.length - (w || 1)].first_column,
|
|
172
|
+
last_column: s[s.length - 1].last_column
|
|
173
|
+
}, ee && (K._$.range = [
|
|
174
|
+
s[s.length - (w || 1)].range[0],
|
|
175
|
+
s[s.length - 1].range[1]
|
|
176
|
+
]), ft = this.performAction.apply(K, [
|
|
177
|
+
l,
|
|
178
|
+
J,
|
|
179
|
+
G,
|
|
180
|
+
j.yy,
|
|
181
|
+
C[1],
|
|
182
|
+
f,
|
|
183
|
+
s
|
|
184
|
+
].concat(gt)), typeof ft < "u")
|
|
185
|
+
return ft;
|
|
186
|
+
w && (n = n.slice(0, -1 * w * 2), f = f.slice(0, -1 * w), s = s.slice(0, -1 * w)), n.push(this.productions_[C[1]][0]), f.push(K.$), s.push(K._$), It = E[n[n.length - 2]][n[n.length - 1]], n.push(It);
|
|
187
|
+
break;
|
|
188
|
+
case 3:
|
|
189
|
+
return !0;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
return !0;
|
|
193
|
+
}, "parse")
|
|
194
|
+
}, te = /* @__PURE__ */ function() {
|
|
195
|
+
var I = {
|
|
196
|
+
EOF: 1,
|
|
197
|
+
parseError: /* @__PURE__ */ h(function(r, n) {
|
|
198
|
+
if (this.yy.parser)
|
|
199
|
+
this.yy.parser.parseError(r, n);
|
|
200
|
+
else
|
|
201
|
+
throw new Error(r);
|
|
202
|
+
}, "parseError"),
|
|
203
|
+
// resets the lexer, sets new input
|
|
204
|
+
setInput: /* @__PURE__ */ h(function(r, n) {
|
|
205
|
+
return this.yy = n || this.yy || {}, this._input = r, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
206
|
+
first_line: 1,
|
|
207
|
+
first_column: 0,
|
|
208
|
+
last_line: 1,
|
|
209
|
+
last_column: 0
|
|
210
|
+
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
211
|
+
}, "setInput"),
|
|
212
|
+
// consumes and returns one char from the input
|
|
213
|
+
input: /* @__PURE__ */ h(function() {
|
|
214
|
+
var r = this._input[0];
|
|
215
|
+
this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r;
|
|
216
|
+
var n = r.match(/(?:\r\n?|\n).*/g);
|
|
217
|
+
return n ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), r;
|
|
218
|
+
}, "input"),
|
|
219
|
+
// unshifts one char (or a string) into the input
|
|
220
|
+
unput: /* @__PURE__ */ h(function(r) {
|
|
221
|
+
var n = r.length, y = r.split(/(?:\r\n?|\n)/g);
|
|
222
|
+
this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - n), this.offset -= n;
|
|
223
|
+
var f = this.match.split(/(?:\r\n?|\n)/g);
|
|
224
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), y.length - 1 && (this.yylineno -= y.length - 1);
|
|
225
|
+
var s = this.yylloc.range;
|
|
226
|
+
return this.yylloc = {
|
|
227
|
+
first_line: this.yylloc.first_line,
|
|
228
|
+
last_line: this.yylineno + 1,
|
|
229
|
+
first_column: this.yylloc.first_column,
|
|
230
|
+
last_column: y ? (y.length === f.length ? this.yylloc.first_column : 0) + f[f.length - y.length].length - y[0].length : this.yylloc.first_column - n
|
|
231
|
+
}, this.options.ranges && (this.yylloc.range = [s[0], s[0] + this.yyleng - n]), this.yyleng = this.yytext.length, this;
|
|
232
|
+
}, "unput"),
|
|
233
|
+
// When called from action, caches matched text and appends it on next action
|
|
234
|
+
more: /* @__PURE__ */ h(function() {
|
|
235
|
+
return this._more = !0, this;
|
|
236
|
+
}, "more"),
|
|
237
|
+
// 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.
|
|
238
|
+
reject: /* @__PURE__ */ h(function() {
|
|
239
|
+
if (this.options.backtrack_lexer)
|
|
240
|
+
this._backtrack = !0;
|
|
241
|
+
else
|
|
242
|
+
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).
|
|
243
|
+
` + this.showPosition(), {
|
|
244
|
+
text: "",
|
|
245
|
+
token: null,
|
|
246
|
+
line: this.yylineno
|
|
247
|
+
});
|
|
248
|
+
return this;
|
|
249
|
+
}, "reject"),
|
|
250
|
+
// retain first n characters of the match
|
|
251
|
+
less: /* @__PURE__ */ h(function(r) {
|
|
252
|
+
this.unput(this.match.slice(r));
|
|
253
|
+
}, "less"),
|
|
254
|
+
// displays already matched input, i.e. for error messages
|
|
255
|
+
pastInput: /* @__PURE__ */ h(function() {
|
|
256
|
+
var r = this.matched.substr(0, this.matched.length - this.match.length);
|
|
257
|
+
return (r.length > 20 ? "..." : "") + r.substr(-20).replace(/\n/g, "");
|
|
258
|
+
}, "pastInput"),
|
|
259
|
+
// displays upcoming input, i.e. for error messages
|
|
260
|
+
upcomingInput: /* @__PURE__ */ h(function() {
|
|
261
|
+
var r = this.match;
|
|
262
|
+
return r.length < 20 && (r += this._input.substr(0, 20 - r.length)), (r.substr(0, 20) + (r.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
263
|
+
}, "upcomingInput"),
|
|
264
|
+
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
265
|
+
showPosition: /* @__PURE__ */ h(function() {
|
|
266
|
+
var r = this.pastInput(), n = new Array(r.length + 1).join("-");
|
|
267
|
+
return r + this.upcomingInput() + `
|
|
268
|
+
` + n + "^";
|
|
269
|
+
}, "showPosition"),
|
|
270
|
+
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
271
|
+
test_match: /* @__PURE__ */ h(function(r, n) {
|
|
272
|
+
var y, f, s;
|
|
273
|
+
if (this.options.backtrack_lexer && (s = {
|
|
274
|
+
yylineno: this.yylineno,
|
|
275
|
+
yylloc: {
|
|
276
|
+
first_line: this.yylloc.first_line,
|
|
277
|
+
last_line: this.last_line,
|
|
278
|
+
first_column: this.yylloc.first_column,
|
|
279
|
+
last_column: this.yylloc.last_column
|
|
280
|
+
},
|
|
281
|
+
yytext: this.yytext,
|
|
282
|
+
match: this.match,
|
|
283
|
+
matches: this.matches,
|
|
284
|
+
matched: this.matched,
|
|
285
|
+
yyleng: this.yyleng,
|
|
286
|
+
offset: this.offset,
|
|
287
|
+
_more: this._more,
|
|
288
|
+
_input: this._input,
|
|
289
|
+
yy: this.yy,
|
|
290
|
+
conditionStack: this.conditionStack.slice(0),
|
|
291
|
+
done: this.done
|
|
292
|
+
}, this.options.ranges && (s.yylloc.range = this.yylloc.range.slice(0))), f = r[0].match(/(?:\r\n?|\n).*/g), f && (this.yylineno += f.length), this.yylloc = {
|
|
293
|
+
first_line: this.yylloc.last_line,
|
|
294
|
+
last_line: this.yylineno + 1,
|
|
295
|
+
first_column: this.yylloc.last_column,
|
|
296
|
+
last_column: f ? f[f.length - 1].length - f[f.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
|
|
297
|
+
}, this.yytext += r[0], this.match += r[0], this.matches = r, 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(r[0].length), this.matched += r[0], y = this.performAction.call(this, this.yy, this, n, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), y)
|
|
298
|
+
return y;
|
|
299
|
+
if (this._backtrack) {
|
|
300
|
+
for (var E in s)
|
|
301
|
+
this[E] = s[E];
|
|
302
|
+
return !1;
|
|
303
|
+
}
|
|
304
|
+
return !1;
|
|
305
|
+
}, "test_match"),
|
|
306
|
+
// return next match in input
|
|
307
|
+
next: /* @__PURE__ */ h(function() {
|
|
308
|
+
if (this.done)
|
|
309
|
+
return this.EOF;
|
|
310
|
+
this._input || (this.done = !0);
|
|
311
|
+
var r, n, y, f;
|
|
312
|
+
this._more || (this.yytext = "", this.match = "");
|
|
313
|
+
for (var s = this._currentRules(), E = 0; E < s.length; E++)
|
|
314
|
+
if (y = this._input.match(this.rules[s[E]]), y && (!n || y[0].length > n[0].length)) {
|
|
315
|
+
if (n = y, f = E, this.options.backtrack_lexer) {
|
|
316
|
+
if (r = this.test_match(y, s[E]), r !== !1)
|
|
317
|
+
return r;
|
|
318
|
+
if (this._backtrack) {
|
|
319
|
+
n = !1;
|
|
320
|
+
continue;
|
|
321
|
+
} else
|
|
322
|
+
return !1;
|
|
323
|
+
} else if (!this.options.flex)
|
|
324
|
+
break;
|
|
325
|
+
}
|
|
326
|
+
return n ? (r = this.test_match(n, s[f]), r !== !1 ? r : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
327
|
+
` + this.showPosition(), {
|
|
328
|
+
text: "",
|
|
329
|
+
token: null,
|
|
330
|
+
line: this.yylineno
|
|
331
|
+
});
|
|
332
|
+
}, "next"),
|
|
333
|
+
// return next match that has a token
|
|
334
|
+
lex: /* @__PURE__ */ h(function() {
|
|
335
|
+
var r = this.next();
|
|
336
|
+
return r || this.lex();
|
|
337
|
+
}, "lex"),
|
|
338
|
+
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
339
|
+
begin: /* @__PURE__ */ h(function(r) {
|
|
340
|
+
this.conditionStack.push(r);
|
|
341
|
+
}, "begin"),
|
|
342
|
+
// pop the previously active lexer condition state off the condition stack
|
|
343
|
+
popState: /* @__PURE__ */ h(function() {
|
|
344
|
+
var r = this.conditionStack.length - 1;
|
|
345
|
+
return r > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
346
|
+
}, "popState"),
|
|
347
|
+
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
348
|
+
_currentRules: /* @__PURE__ */ h(function() {
|
|
349
|
+
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
350
|
+
}, "_currentRules"),
|
|
351
|
+
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
352
|
+
topState: /* @__PURE__ */ h(function(r) {
|
|
353
|
+
return r = this.conditionStack.length - 1 - Math.abs(r || 0), r >= 0 ? this.conditionStack[r] : "INITIAL";
|
|
354
|
+
}, "topState"),
|
|
355
|
+
// alias for begin(condition)
|
|
356
|
+
pushState: /* @__PURE__ */ h(function(r) {
|
|
357
|
+
this.begin(r);
|
|
358
|
+
}, "pushState"),
|
|
359
|
+
// return the number of states currently on the stack
|
|
360
|
+
stateStackSize: /* @__PURE__ */ h(function() {
|
|
361
|
+
return this.conditionStack.length;
|
|
362
|
+
}, "stateStackSize"),
|
|
363
|
+
options: { "case-insensitive": !0 },
|
|
364
|
+
performAction: /* @__PURE__ */ h(function(r, n, y, f) {
|
|
365
|
+
switch (y) {
|
|
366
|
+
case 0:
|
|
367
|
+
return 41;
|
|
368
|
+
case 1:
|
|
369
|
+
return 48;
|
|
370
|
+
case 2:
|
|
371
|
+
return 49;
|
|
372
|
+
case 3:
|
|
373
|
+
return 50;
|
|
374
|
+
case 4:
|
|
375
|
+
return 51;
|
|
376
|
+
case 5:
|
|
377
|
+
break;
|
|
378
|
+
case 6:
|
|
379
|
+
break;
|
|
380
|
+
case 7:
|
|
381
|
+
return 5;
|
|
382
|
+
case 8:
|
|
383
|
+
break;
|
|
384
|
+
case 9:
|
|
385
|
+
break;
|
|
386
|
+
case 10:
|
|
387
|
+
break;
|
|
388
|
+
case 11:
|
|
389
|
+
break;
|
|
390
|
+
case 12:
|
|
391
|
+
return this.pushState("SCALE"), 17;
|
|
392
|
+
case 13:
|
|
393
|
+
return 18;
|
|
394
|
+
case 14:
|
|
395
|
+
this.popState();
|
|
396
|
+
break;
|
|
397
|
+
case 15:
|
|
398
|
+
return this.begin("acc_title"), 33;
|
|
399
|
+
case 16:
|
|
400
|
+
return this.popState(), "acc_title_value";
|
|
401
|
+
case 17:
|
|
402
|
+
return this.begin("acc_descr"), 35;
|
|
403
|
+
case 18:
|
|
404
|
+
return this.popState(), "acc_descr_value";
|
|
405
|
+
case 19:
|
|
406
|
+
this.begin("acc_descr_multiline");
|
|
407
|
+
break;
|
|
408
|
+
case 20:
|
|
409
|
+
this.popState();
|
|
410
|
+
break;
|
|
411
|
+
case 21:
|
|
412
|
+
return "acc_descr_multiline_value";
|
|
413
|
+
case 22:
|
|
414
|
+
return this.pushState("CLASSDEF"), 38;
|
|
415
|
+
case 23:
|
|
416
|
+
return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
|
|
417
|
+
case 24:
|
|
418
|
+
return this.popState(), this.pushState("CLASSDEFID"), 39;
|
|
419
|
+
case 25:
|
|
420
|
+
return this.popState(), 40;
|
|
421
|
+
case 26:
|
|
422
|
+
return this.pushState("CLASS"), 45;
|
|
423
|
+
case 27:
|
|
424
|
+
return this.popState(), this.pushState("CLASS_STYLE"), 46;
|
|
425
|
+
case 28:
|
|
426
|
+
return this.popState(), 47;
|
|
427
|
+
case 29:
|
|
428
|
+
return this.pushState("STYLE"), 42;
|
|
429
|
+
case 30:
|
|
430
|
+
return this.popState(), this.pushState("STYLEDEF_STYLES"), 43;
|
|
431
|
+
case 31:
|
|
432
|
+
return this.popState(), 44;
|
|
433
|
+
case 32:
|
|
434
|
+
return this.pushState("SCALE"), 17;
|
|
435
|
+
case 33:
|
|
436
|
+
return 18;
|
|
437
|
+
case 34:
|
|
438
|
+
this.popState();
|
|
439
|
+
break;
|
|
440
|
+
case 35:
|
|
441
|
+
this.pushState("STATE");
|
|
442
|
+
break;
|
|
443
|
+
case 36:
|
|
444
|
+
return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 25;
|
|
445
|
+
case 37:
|
|
446
|
+
return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 26;
|
|
447
|
+
case 38:
|
|
448
|
+
return this.popState(), n.yytext = n.yytext.slice(0, -10).trim(), 27;
|
|
449
|
+
case 39:
|
|
450
|
+
return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 25;
|
|
451
|
+
case 40:
|
|
452
|
+
return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 26;
|
|
453
|
+
case 41:
|
|
454
|
+
return this.popState(), n.yytext = n.yytext.slice(0, -10).trim(), 27;
|
|
455
|
+
case 42:
|
|
456
|
+
return 48;
|
|
457
|
+
case 43:
|
|
458
|
+
return 49;
|
|
459
|
+
case 44:
|
|
460
|
+
return 50;
|
|
461
|
+
case 45:
|
|
462
|
+
return 51;
|
|
463
|
+
case 46:
|
|
464
|
+
this.pushState("STATE_STRING");
|
|
465
|
+
break;
|
|
466
|
+
case 47:
|
|
467
|
+
return this.pushState("STATE_ID"), "AS";
|
|
468
|
+
case 48:
|
|
469
|
+
return this.popState(), "ID";
|
|
470
|
+
case 49:
|
|
471
|
+
this.popState();
|
|
472
|
+
break;
|
|
473
|
+
case 50:
|
|
474
|
+
return "STATE_DESCR";
|
|
475
|
+
case 51:
|
|
476
|
+
return 19;
|
|
477
|
+
case 52:
|
|
478
|
+
this.popState();
|
|
479
|
+
break;
|
|
480
|
+
case 53:
|
|
481
|
+
return this.popState(), this.pushState("struct"), 20;
|
|
482
|
+
case 54:
|
|
483
|
+
break;
|
|
484
|
+
case 55:
|
|
485
|
+
return this.popState(), 21;
|
|
486
|
+
case 56:
|
|
487
|
+
break;
|
|
488
|
+
case 57:
|
|
489
|
+
return this.begin("NOTE"), 29;
|
|
490
|
+
case 58:
|
|
491
|
+
return this.popState(), this.pushState("NOTE_ID"), 56;
|
|
492
|
+
case 59:
|
|
493
|
+
return this.popState(), this.pushState("NOTE_ID"), 57;
|
|
494
|
+
case 60:
|
|
495
|
+
this.popState(), this.pushState("FLOATING_NOTE");
|
|
496
|
+
break;
|
|
497
|
+
case 61:
|
|
498
|
+
return this.popState(), this.pushState("FLOATING_NOTE_ID"), "AS";
|
|
499
|
+
case 62:
|
|
500
|
+
break;
|
|
501
|
+
case 63:
|
|
502
|
+
return "NOTE_TEXT";
|
|
503
|
+
case 64:
|
|
504
|
+
return this.popState(), "ID";
|
|
505
|
+
case 65:
|
|
506
|
+
return this.popState(), this.pushState("NOTE_TEXT"), 24;
|
|
507
|
+
case 66:
|
|
508
|
+
return this.popState(), n.yytext = n.yytext.substr(2).trim(), 31;
|
|
509
|
+
case 67:
|
|
510
|
+
return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 31;
|
|
511
|
+
case 68:
|
|
512
|
+
return 6;
|
|
513
|
+
case 69:
|
|
514
|
+
return 6;
|
|
515
|
+
case 70:
|
|
516
|
+
return 16;
|
|
517
|
+
case 71:
|
|
518
|
+
return 54;
|
|
519
|
+
case 72:
|
|
520
|
+
return 24;
|
|
521
|
+
case 73:
|
|
522
|
+
return n.yytext = n.yytext.trim(), 14;
|
|
523
|
+
case 74:
|
|
524
|
+
return 15;
|
|
525
|
+
case 75:
|
|
526
|
+
return 28;
|
|
527
|
+
case 76:
|
|
528
|
+
return 55;
|
|
529
|
+
case 77:
|
|
530
|
+
return 5;
|
|
531
|
+
case 78:
|
|
532
|
+
return "INVALID";
|
|
533
|
+
}
|
|
534
|
+
}, "anonymous"),
|
|
535
|
+
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],
|
|
536
|
+
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 } }
|
|
537
|
+
};
|
|
538
|
+
return I;
|
|
539
|
+
}();
|
|
540
|
+
yt.lexer = te;
|
|
541
|
+
function nt() {
|
|
542
|
+
this.yy = {};
|
|
543
|
+
}
|
|
544
|
+
return h(nt, "Parser"), nt.prototype = yt, yt.Parser = nt, new nt();
|
|
545
|
+
}();
|
|
546
|
+
kt.parser = kt;
|
|
547
|
+
var Ke = kt, Se = "TB", jt = "TB", At = "dir", dt = "state", Et = "relation", fe = "classDef", be = "style", _e = "applyClass", Z = "default", zt = "divider", Mt = "fill:none", Xt = "fill: #333", Jt = "c", Kt = "text", Ht = "normal", _t = "rect", Tt = "rectWithTitle", Te = "stateStart", ke = "stateEnd", Lt = "divider", Ot = "roundedWithTitle", Ee = "note", De = "noteGroup", Q = "statediagram", ve = "state", Ce = `${Q}-${ve}`, Ut = "transition", $e = "note", xe = "note-edge", Ie = `${Ut} ${xe}`, Ae = `${Q}-${$e}`, Le = "cluster", Oe = `${Q}-${Le}`, we = "cluster-alt", Re = `${Q}-${we}`, Vt = "parent", qt = "note", Ne = "state", Ct = "----", Be = `${Ct}${qt}`, wt = `${Ct}${Vt}`, Zt = /* @__PURE__ */ h((t, e = jt) => {
|
|
548
|
+
if (!t.doc)
|
|
549
|
+
return e;
|
|
550
|
+
let o = e;
|
|
551
|
+
for (const a of t.doc)
|
|
552
|
+
a.stmt === "dir" && (o = a.value);
|
|
553
|
+
return o;
|
|
554
|
+
}, "getDir"), Fe = /* @__PURE__ */ h(function(t, e) {
|
|
555
|
+
return e.db.getClasses();
|
|
556
|
+
}, "getClasses"), Ye = /* @__PURE__ */ h(async function(t, e, o, a) {
|
|
557
|
+
T.info("REF0:"), T.info("Drawing state diagram (v2)", e);
|
|
558
|
+
const { securityLevel: i, state: c, layout: p } = $();
|
|
559
|
+
a.db.extract(a.db.getRootDocV2());
|
|
560
|
+
const m = a.db.getData(), d = ie(e, i);
|
|
561
|
+
m.type = a.type, m.layoutAlgorithm = p, m.nodeSpacing = (c == null ? void 0 : c.nodeSpacing) || 50, m.rankSpacing = (c == null ? void 0 : c.rankSpacing) || 50, m.markers = ["barb"], m.diagramId = e, await oe(m, d);
|
|
562
|
+
const S = 8;
|
|
563
|
+
le.insertTitle(
|
|
564
|
+
d,
|
|
565
|
+
"statediagramTitleText",
|
|
566
|
+
(c == null ? void 0 : c.titleTopMargin) ?? 25,
|
|
567
|
+
a.db.getDiagramTitle()
|
|
568
|
+
), re(d, S, Q, (c == null ? void 0 : c.useMaxWidth) ?? !0);
|
|
569
|
+
}, "draw"), He = {
|
|
570
|
+
getClasses: Fe,
|
|
571
|
+
draw: Ye,
|
|
572
|
+
getDir: Zt
|
|
573
|
+
}, ut = /* @__PURE__ */ new Map(), B = 0;
|
|
574
|
+
function pt(t = "", e = 0, o = "", a = Ct) {
|
|
575
|
+
const i = o !== null && o.length > 0 ? `${a}${o}` : "";
|
|
576
|
+
return `${Ne}-${t}${i}-${e}`;
|
|
577
|
+
}
|
|
578
|
+
h(pt, "stateDomId");
|
|
579
|
+
var Pe = /* @__PURE__ */ h((t, e, o, a, i, c, p, m) => {
|
|
580
|
+
T.trace("items", e), e.forEach((d) => {
|
|
581
|
+
switch (d.stmt) {
|
|
582
|
+
case dt:
|
|
583
|
+
q(t, d, o, a, i, c, p, m);
|
|
584
|
+
break;
|
|
585
|
+
case Z:
|
|
586
|
+
q(t, d, o, a, i, c, p, m);
|
|
587
|
+
break;
|
|
588
|
+
case Et:
|
|
589
|
+
{
|
|
590
|
+
q(
|
|
591
|
+
t,
|
|
592
|
+
d.state1,
|
|
593
|
+
o,
|
|
594
|
+
a,
|
|
595
|
+
i,
|
|
596
|
+
c,
|
|
597
|
+
p,
|
|
598
|
+
m
|
|
599
|
+
), q(
|
|
600
|
+
t,
|
|
601
|
+
d.state2,
|
|
602
|
+
o,
|
|
603
|
+
a,
|
|
604
|
+
i,
|
|
605
|
+
c,
|
|
606
|
+
p,
|
|
607
|
+
m
|
|
608
|
+
);
|
|
609
|
+
const S = {
|
|
610
|
+
id: "edge" + B,
|
|
611
|
+
start: d.state1.id,
|
|
612
|
+
end: d.state2.id,
|
|
613
|
+
arrowhead: "normal",
|
|
614
|
+
arrowTypeEnd: "arrow_barb",
|
|
615
|
+
style: Mt,
|
|
616
|
+
labelStyle: "",
|
|
617
|
+
label: M.sanitizeText(d.description, $()),
|
|
618
|
+
arrowheadStyle: Xt,
|
|
619
|
+
labelpos: Jt,
|
|
620
|
+
labelType: Kt,
|
|
621
|
+
thickness: Ht,
|
|
622
|
+
classes: Ut,
|
|
623
|
+
look: p
|
|
624
|
+
};
|
|
625
|
+
i.push(S), B++;
|
|
626
|
+
}
|
|
627
|
+
break;
|
|
628
|
+
}
|
|
629
|
+
});
|
|
630
|
+
}, "setupDoc"), Rt = /* @__PURE__ */ h((t, e = jt) => {
|
|
631
|
+
let o = e;
|
|
632
|
+
if (t.doc)
|
|
633
|
+
for (const a of t.doc)
|
|
634
|
+
a.stmt === "dir" && (o = a.value);
|
|
635
|
+
return o;
|
|
636
|
+
}, "getDir");
|
|
637
|
+
function V(t, e, o) {
|
|
638
|
+
if (!e.id || e.id === "</join></fork>" || e.id === "</choice>")
|
|
639
|
+
return;
|
|
640
|
+
e.cssClasses && (Array.isArray(e.cssCompiledStyles) || (e.cssCompiledStyles = []), e.cssClasses.split(" ").forEach((i) => {
|
|
641
|
+
if (o.get(i)) {
|
|
642
|
+
const c = o.get(i);
|
|
643
|
+
e.cssCompiledStyles = [...e.cssCompiledStyles, ...c.styles];
|
|
644
|
+
}
|
|
645
|
+
}));
|
|
646
|
+
const a = t.find((i) => i.id === e.id);
|
|
647
|
+
a ? Object.assign(a, e) : t.push(e);
|
|
648
|
+
}
|
|
649
|
+
h(V, "insertOrUpdateNode");
|
|
650
|
+
function Qt(t) {
|
|
651
|
+
var e;
|
|
652
|
+
return ((e = t == null ? void 0 : t.classes) == null ? void 0 : e.join(" ")) ?? "";
|
|
653
|
+
}
|
|
654
|
+
h(Qt, "getClassesFromDbInfo");
|
|
655
|
+
function Wt(t) {
|
|
656
|
+
return (t == null ? void 0 : t.styles) ?? [];
|
|
657
|
+
}
|
|
658
|
+
h(Wt, "getStylesFromDbInfo");
|
|
659
|
+
var q = /* @__PURE__ */ h((t, e, o, a, i, c, p, m) => {
|
|
660
|
+
var d, S;
|
|
661
|
+
const b = e.id, A = o.get(b), X = Qt(A), F = Wt(A);
|
|
662
|
+
if (T.info("dataFetcher parsedItem", e, A, F), b !== "root") {
|
|
663
|
+
let L = _t;
|
|
664
|
+
e.start === !0 ? L = Te : e.start === !1 && (L = ke), e.type !== Z && (L = e.type), ut.get(b) || ut.set(b, {
|
|
665
|
+
id: b,
|
|
666
|
+
shape: L,
|
|
667
|
+
description: M.sanitizeText(b, $()),
|
|
668
|
+
cssClasses: `${X} ${Ce}`,
|
|
669
|
+
cssStyles: F
|
|
670
|
+
});
|
|
671
|
+
const u = ut.get(b);
|
|
672
|
+
e.description && (Array.isArray(u.description) ? (u.shape = Tt, u.description.push(e.description)) : ((d = u.description) == null ? void 0 : d.length) > 0 ? (u.shape = Tt, u.description === b ? u.description = [e.description] : u.description = [u.description, e.description]) : (u.shape = _t, u.description = e.description), u.description = M.sanitizeTextOrArray(u.description, $())), ((S = u.description) == null ? void 0 : S.length) === 1 && u.shape === Tt && (u.type === "group" ? u.shape = Ot : u.shape = _t), !u.type && e.doc && (T.info("Setting cluster for XCX", b, Rt(e)), u.type = "group", u.isGroup = !0, u.dir = Rt(e), u.shape = e.type === zt ? Lt : Ot, u.cssClasses = `${u.cssClasses} ${Oe} ${c ? Re : ""}`);
|
|
673
|
+
const x = {
|
|
674
|
+
labelStyle: "",
|
|
675
|
+
shape: u.shape,
|
|
676
|
+
label: u.description,
|
|
677
|
+
cssClasses: u.cssClasses,
|
|
678
|
+
cssCompiledStyles: [],
|
|
679
|
+
cssStyles: u.cssStyles,
|
|
680
|
+
id: b,
|
|
681
|
+
dir: u.dir,
|
|
682
|
+
domId: pt(b, B),
|
|
683
|
+
type: u.type,
|
|
684
|
+
isGroup: u.type === "group",
|
|
685
|
+
padding: 8,
|
|
686
|
+
rx: 10,
|
|
687
|
+
ry: 10,
|
|
688
|
+
look: p
|
|
689
|
+
};
|
|
690
|
+
if (x.shape === Lt && (x.label = ""), t && t.id !== "root" && (T.trace("Setting node ", b, " to be child of its parent ", t.id), x.parentId = t.id), x.centerLabel = !0, e.note) {
|
|
691
|
+
const O = {
|
|
692
|
+
labelStyle: "",
|
|
693
|
+
shape: Ee,
|
|
694
|
+
label: e.note.text,
|
|
695
|
+
cssClasses: Ae,
|
|
696
|
+
// useHtmlLabels: false,
|
|
697
|
+
cssStyles: [],
|
|
698
|
+
cssCompilesStyles: [],
|
|
699
|
+
id: b + Be + "-" + B,
|
|
700
|
+
domId: pt(b, B, qt),
|
|
701
|
+
type: u.type,
|
|
702
|
+
isGroup: u.type === "group",
|
|
703
|
+
padding: $().flowchart.padding,
|
|
704
|
+
look: p,
|
|
705
|
+
position: e.note.position
|
|
706
|
+
}, Y = b + wt, P = {
|
|
707
|
+
labelStyle: "",
|
|
708
|
+
shape: De,
|
|
709
|
+
label: e.note.text,
|
|
710
|
+
cssClasses: u.cssClasses,
|
|
711
|
+
cssStyles: [],
|
|
712
|
+
id: b + wt,
|
|
713
|
+
domId: pt(b, B, Vt),
|
|
714
|
+
type: "group",
|
|
715
|
+
isGroup: !0,
|
|
716
|
+
padding: 16,
|
|
717
|
+
//getConfig().flowchart.padding
|
|
718
|
+
look: p,
|
|
719
|
+
position: e.note.position
|
|
720
|
+
};
|
|
721
|
+
B++, P.id = Y, O.parentId = Y, V(a, P, m), V(a, O, m), V(a, x, m);
|
|
722
|
+
let R = b, N = O.id;
|
|
723
|
+
e.note.position === "left of" && (R = O.id, N = b), i.push({
|
|
724
|
+
id: R + "-" + N,
|
|
725
|
+
start: R,
|
|
726
|
+
end: N,
|
|
727
|
+
arrowhead: "none",
|
|
728
|
+
arrowTypeEnd: "",
|
|
729
|
+
style: Mt,
|
|
730
|
+
labelStyle: "",
|
|
731
|
+
classes: Ie,
|
|
732
|
+
arrowheadStyle: Xt,
|
|
733
|
+
labelpos: Jt,
|
|
734
|
+
labelType: Kt,
|
|
735
|
+
thickness: Ht,
|
|
736
|
+
look: p
|
|
737
|
+
});
|
|
738
|
+
} else
|
|
739
|
+
V(a, x, m);
|
|
740
|
+
}
|
|
741
|
+
e.doc && (T.trace("Adding nodes children "), Pe(e, e.doc, o, a, i, !c, p, m));
|
|
742
|
+
}, "dataFetcher"), Ge = /* @__PURE__ */ h(() => {
|
|
743
|
+
ut.clear(), B = 0;
|
|
744
|
+
}, "reset"), Dt = "[*]", Nt = "start", Bt = Dt, Ft = "end", Yt = "color", Pt = "fill", je = "bgFill", ze = ",";
|
|
745
|
+
function vt() {
|
|
746
|
+
return /* @__PURE__ */ new Map();
|
|
747
|
+
}
|
|
748
|
+
h(vt, "newClassesList");
|
|
749
|
+
var Gt = /* @__PURE__ */ h(() => ({
|
|
750
|
+
/** @type {{ id1: string, id2: string, relationTitle: string }[]} */
|
|
751
|
+
relations: [],
|
|
752
|
+
states: /* @__PURE__ */ new Map(),
|
|
753
|
+
documents: {}
|
|
754
|
+
}), "newDoc"), ct = /* @__PURE__ */ h((t) => JSON.parse(JSON.stringify(t)), "clone"), ht, Ue = (ht = class {
|
|
755
|
+
/**
|
|
756
|
+
* @param {1 | 2} version - v1 renderer or v2 renderer.
|
|
757
|
+
*/
|
|
758
|
+
constructor(t) {
|
|
759
|
+
k(this, "version"), k(this, "nodes", []), k(this, "edges", []), k(this, "rootDoc", []), k(this, "classes", vt()), k(this, "documents", {
|
|
760
|
+
root: Gt()
|
|
761
|
+
}), k(this, "currentDocument", this.documents.root), k(this, "startEndCount", 0), k(this, "dividerCnt", 0), k(this, "getAccTitle", ce), k(this, "setAccTitle", he), k(this, "getAccDescription", de), k(this, "setAccDescription", ue), k(this, "setDiagramTitle", pe), k(this, "getDiagramTitle", ye), 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);
|
|
762
|
+
}
|
|
763
|
+
setRootDoc(t) {
|
|
764
|
+
T.info("Setting root doc", t), this.rootDoc = t, this.version === 1 ? this.extract(t) : this.extract(this.getRootDocV2());
|
|
765
|
+
}
|
|
766
|
+
getRootDoc() {
|
|
767
|
+
return this.rootDoc;
|
|
768
|
+
}
|
|
769
|
+
/**
|
|
770
|
+
* @private
|
|
771
|
+
* @param {Object} parent
|
|
772
|
+
* @param {Object} node
|
|
773
|
+
* @param {boolean} first
|
|
774
|
+
*/
|
|
775
|
+
docTranslator(t, e, o) {
|
|
776
|
+
if (e.stmt === Et)
|
|
777
|
+
this.docTranslator(t, e.state1, !0), this.docTranslator(t, e.state2, !1);
|
|
778
|
+
else if (e.stmt === dt && (e.id === "[*]" ? (e.id = o ? t.id + "_start" : t.id + "_end", e.start = o) : e.id = e.id.trim()), e.doc) {
|
|
779
|
+
const a = [];
|
|
780
|
+
let i = [], c;
|
|
781
|
+
for (c = 0; c < e.doc.length; c++)
|
|
782
|
+
if (e.doc[c].type === zt) {
|
|
783
|
+
const p = ct(e.doc[c]);
|
|
784
|
+
p.doc = ct(i), a.push(p), i = [];
|
|
785
|
+
} else
|
|
786
|
+
i.push(e.doc[c]);
|
|
787
|
+
if (a.length > 0 && i.length > 0) {
|
|
788
|
+
const p = {
|
|
789
|
+
stmt: dt,
|
|
790
|
+
id: ne(),
|
|
791
|
+
type: "divider",
|
|
792
|
+
doc: ct(i)
|
|
793
|
+
};
|
|
794
|
+
a.push(ct(p)), e.doc = a;
|
|
795
|
+
}
|
|
796
|
+
e.doc.forEach((p) => this.docTranslator(e, p, !0));
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
/**
|
|
800
|
+
* @private
|
|
801
|
+
*/
|
|
802
|
+
getRootDocV2() {
|
|
803
|
+
return this.docTranslator({ id: "root" }, { id: "root", doc: this.rootDoc }, !0), { id: "root", doc: this.rootDoc };
|
|
804
|
+
}
|
|
805
|
+
/**
|
|
806
|
+
* Convert all of the statements (stmts) that were parsed into states and relationships.
|
|
807
|
+
* This is done because a state diagram may have nested sections,
|
|
808
|
+
* where each section is a 'document' and has its own set of statements.
|
|
809
|
+
* Ex: the section within a fork has its own statements, and incoming and outgoing statements
|
|
810
|
+
* refer to the fork as a whole (document).
|
|
811
|
+
* See the parser grammar: the definition of a document is a document then a 'line', where a line can be a statement.
|
|
812
|
+
* This will push the statement into the list of statements for the current document.
|
|
813
|
+
* @private
|
|
814
|
+
* @param _doc
|
|
815
|
+
*/
|
|
816
|
+
extract(t) {
|
|
817
|
+
let e;
|
|
818
|
+
t.doc ? e = t.doc : e = t, T.info(e), this.clear(!0), T.info("Extract initial document:", e), e.forEach((i) => {
|
|
819
|
+
switch (T.warn("Statement", i.stmt), i.stmt) {
|
|
820
|
+
case dt:
|
|
821
|
+
this.addState(
|
|
822
|
+
i.id.trim(),
|
|
823
|
+
i.type,
|
|
824
|
+
i.doc,
|
|
825
|
+
i.description,
|
|
826
|
+
i.note,
|
|
827
|
+
i.classes,
|
|
828
|
+
i.styles,
|
|
829
|
+
i.textStyles
|
|
830
|
+
);
|
|
831
|
+
break;
|
|
832
|
+
case Et:
|
|
833
|
+
this.addRelation(i.state1, i.state2, i.description);
|
|
834
|
+
break;
|
|
835
|
+
case fe:
|
|
836
|
+
this.addStyleClass(i.id.trim(), i.classes);
|
|
837
|
+
break;
|
|
838
|
+
case be:
|
|
839
|
+
{
|
|
840
|
+
const c = i.id.trim().split(","), p = i.styleClass.split(",");
|
|
841
|
+
c.forEach((m) => {
|
|
842
|
+
let d = this.getState(m);
|
|
843
|
+
if (d === void 0) {
|
|
844
|
+
const S = m.trim();
|
|
845
|
+
this.addState(S), d = this.getState(S);
|
|
846
|
+
}
|
|
847
|
+
d.styles = p.map((S) => {
|
|
848
|
+
var b;
|
|
849
|
+
return (b = S.replace(/;/g, "")) == null ? void 0 : b.trim();
|
|
850
|
+
});
|
|
851
|
+
});
|
|
852
|
+
}
|
|
853
|
+
break;
|
|
854
|
+
case _e:
|
|
855
|
+
this.setCssClass(i.id.trim(), i.styleClass);
|
|
856
|
+
break;
|
|
857
|
+
}
|
|
858
|
+
});
|
|
859
|
+
const o = this.getStates(), a = $().look;
|
|
860
|
+
Ge(), q(
|
|
861
|
+
void 0,
|
|
862
|
+
this.getRootDocV2(),
|
|
863
|
+
o,
|
|
864
|
+
this.nodes,
|
|
865
|
+
this.edges,
|
|
866
|
+
!0,
|
|
867
|
+
a,
|
|
868
|
+
this.classes
|
|
869
|
+
), this.nodes.forEach((i) => {
|
|
870
|
+
if (Array.isArray(i.label)) {
|
|
871
|
+
if (i.description = i.label.slice(1), i.isGroup && i.description.length > 0)
|
|
872
|
+
throw new Error(
|
|
873
|
+
"Group nodes can only have label. Remove the additional description for node [" + i.id + "]"
|
|
874
|
+
);
|
|
875
|
+
i.label = i.label[0];
|
|
876
|
+
}
|
|
877
|
+
});
|
|
878
|
+
}
|
|
879
|
+
/**
|
|
880
|
+
* Function called by parser when a node definition has been found.
|
|
881
|
+
*
|
|
882
|
+
* @param {null | string} id
|
|
883
|
+
* @param {null | string} type
|
|
884
|
+
* @param {null | string} doc
|
|
885
|
+
* @param {null | string | string[]} descr - description for the state. Can be a string or a list or strings
|
|
886
|
+
* @param {null | string} note
|
|
887
|
+
* @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.
|
|
888
|
+
* @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.
|
|
889
|
+
* @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.
|
|
890
|
+
*/
|
|
891
|
+
addState(t, e = Z, o = null, a = null, i = null, c = null, p = null, m = null) {
|
|
892
|
+
const d = t == null ? void 0 : t.trim();
|
|
893
|
+
if (this.currentDocument.states.has(d) ? (this.currentDocument.states.get(d).doc || (this.currentDocument.states.get(d).doc = o), this.currentDocument.states.get(d).type || (this.currentDocument.states.get(d).type = e)) : (T.info("Adding state ", d, a), this.currentDocument.states.set(d, {
|
|
894
|
+
id: d,
|
|
895
|
+
descriptions: [],
|
|
896
|
+
type: e,
|
|
897
|
+
doc: o,
|
|
898
|
+
note: i,
|
|
899
|
+
classes: [],
|
|
900
|
+
styles: [],
|
|
901
|
+
textStyles: []
|
|
902
|
+
})), a && (T.info("Setting state description", d, a), typeof a == "string" && this.addDescription(d, a.trim()), typeof a == "object" && a.forEach((S) => this.addDescription(d, S.trim()))), i) {
|
|
903
|
+
const S = this.currentDocument.states.get(d);
|
|
904
|
+
S.note = i, S.note.text = M.sanitizeText(S.note.text, $());
|
|
905
|
+
}
|
|
906
|
+
c && (T.info("Setting state classes", d, c), (typeof c == "string" ? [c] : c).forEach((S) => this.setCssClass(d, S.trim()))), p && (T.info("Setting state styles", d, p), (typeof p == "string" ? [p] : p).forEach((S) => this.setStyle(d, S.trim()))), m && (T.info("Setting state styles", d, p), (typeof m == "string" ? [m] : m).forEach((S) => this.setTextStyle(d, S.trim())));
|
|
907
|
+
}
|
|
908
|
+
clear(t) {
|
|
909
|
+
this.nodes = [], this.edges = [], this.documents = {
|
|
910
|
+
root: Gt()
|
|
911
|
+
}, this.currentDocument = this.documents.root, this.startEndCount = 0, this.classes = vt(), t || ae();
|
|
912
|
+
}
|
|
913
|
+
getState(t) {
|
|
914
|
+
return this.currentDocument.states.get(t);
|
|
915
|
+
}
|
|
916
|
+
getStates() {
|
|
917
|
+
return this.currentDocument.states;
|
|
918
|
+
}
|
|
919
|
+
logDocuments() {
|
|
920
|
+
T.info("Documents = ", this.documents);
|
|
921
|
+
}
|
|
922
|
+
getRelations() {
|
|
923
|
+
return this.currentDocument.relations;
|
|
924
|
+
}
|
|
925
|
+
/**
|
|
926
|
+
* If the id is a start node ( [*] ), then return a new id constructed from
|
|
927
|
+
* the start node name and the current start node count.
|
|
928
|
+
* else return the given id
|
|
929
|
+
*
|
|
930
|
+
* @param {string} id
|
|
931
|
+
* @returns {string} - the id (original or constructed)
|
|
932
|
+
* @private
|
|
933
|
+
*/
|
|
934
|
+
startIdIfNeeded(t = "") {
|
|
935
|
+
let e = t;
|
|
936
|
+
return t === Dt && (this.startEndCount++, e = `${Nt}${this.startEndCount}`), e;
|
|
937
|
+
}
|
|
938
|
+
/**
|
|
939
|
+
* If the id is a start node ( [*] ), then return the start type ('start')
|
|
940
|
+
* else return the given type
|
|
941
|
+
*
|
|
942
|
+
* @param {string} id
|
|
943
|
+
* @param {string} type
|
|
944
|
+
* @returns {string} - the type that should be used
|
|
945
|
+
* @private
|
|
946
|
+
*/
|
|
947
|
+
startTypeIfNeeded(t = "", e = Z) {
|
|
948
|
+
return t === Dt ? Nt : e;
|
|
949
|
+
}
|
|
950
|
+
/**
|
|
951
|
+
* If the id is an end node ( [*] ), then return a new id constructed from
|
|
952
|
+
* the end node name and the current start_end node count.
|
|
953
|
+
* else return the given id
|
|
954
|
+
*
|
|
955
|
+
* @param {string} id
|
|
956
|
+
* @returns {string} - the id (original or constructed)
|
|
957
|
+
* @private
|
|
958
|
+
*/
|
|
959
|
+
endIdIfNeeded(t = "") {
|
|
960
|
+
let e = t;
|
|
961
|
+
return t === Bt && (this.startEndCount++, e = `${Ft}${this.startEndCount}`), e;
|
|
962
|
+
}
|
|
963
|
+
/**
|
|
964
|
+
* If the id is an end node ( [*] ), then return the end type
|
|
965
|
+
* else return the given type
|
|
966
|
+
*
|
|
967
|
+
* @param {string} id
|
|
968
|
+
* @param {string} type
|
|
969
|
+
* @returns {string} - the type that should be used
|
|
970
|
+
* @private
|
|
971
|
+
*/
|
|
972
|
+
endTypeIfNeeded(t = "", e = Z) {
|
|
973
|
+
return t === Bt ? Ft : e;
|
|
974
|
+
}
|
|
975
|
+
/**
|
|
976
|
+
*
|
|
977
|
+
* @param item1
|
|
978
|
+
* @param item2
|
|
979
|
+
* @param relationTitle
|
|
980
|
+
*/
|
|
981
|
+
addRelationObjs(t, e, o) {
|
|
982
|
+
let a = this.startIdIfNeeded(t.id.trim()), i = this.startTypeIfNeeded(t.id.trim(), t.type), c = this.startIdIfNeeded(e.id.trim()), p = this.startTypeIfNeeded(e.id.trim(), e.type);
|
|
983
|
+
this.addState(
|
|
984
|
+
a,
|
|
985
|
+
i,
|
|
986
|
+
t.doc,
|
|
987
|
+
t.description,
|
|
988
|
+
t.note,
|
|
989
|
+
t.classes,
|
|
990
|
+
t.styles,
|
|
991
|
+
t.textStyles
|
|
992
|
+
), this.addState(
|
|
993
|
+
c,
|
|
994
|
+
p,
|
|
995
|
+
e.doc,
|
|
996
|
+
e.description,
|
|
997
|
+
e.note,
|
|
998
|
+
e.classes,
|
|
999
|
+
e.styles,
|
|
1000
|
+
e.textStyles
|
|
1001
|
+
), this.currentDocument.relations.push({
|
|
1002
|
+
id1: a,
|
|
1003
|
+
id2: c,
|
|
1004
|
+
relationTitle: M.sanitizeText(o, $())
|
|
1005
|
+
});
|
|
1006
|
+
}
|
|
1007
|
+
/**
|
|
1008
|
+
* Add a relation between two items. The items may be full objects or just the string id of a state.
|
|
1009
|
+
*
|
|
1010
|
+
* @param {string | object} item1
|
|
1011
|
+
* @param {string | object} item2
|
|
1012
|
+
* @param {string} title
|
|
1013
|
+
*/
|
|
1014
|
+
addRelation(t, e, o) {
|
|
1015
|
+
if (typeof t == "object")
|
|
1016
|
+
this.addRelationObjs(t, e, o);
|
|
1017
|
+
else {
|
|
1018
|
+
const a = this.startIdIfNeeded(t.trim()), i = this.startTypeIfNeeded(t), c = this.endIdIfNeeded(e.trim()), p = this.endTypeIfNeeded(e);
|
|
1019
|
+
this.addState(a, i), this.addState(c, p), this.currentDocument.relations.push({
|
|
1020
|
+
id1: a,
|
|
1021
|
+
id2: c,
|
|
1022
|
+
title: M.sanitizeText(o, $())
|
|
1023
|
+
});
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
addDescription(t, e) {
|
|
1027
|
+
const o = this.currentDocument.states.get(t), a = e.startsWith(":") ? e.replace(":", "").trim() : e;
|
|
1028
|
+
o.descriptions.push(M.sanitizeText(a, $()));
|
|
1029
|
+
}
|
|
1030
|
+
cleanupLabel(t) {
|
|
1031
|
+
return t.substring(0, 1) === ":" ? t.substr(2).trim() : t.trim();
|
|
1032
|
+
}
|
|
1033
|
+
getDividerId() {
|
|
1034
|
+
return this.dividerCnt++, "divider-id-" + this.dividerCnt;
|
|
1035
|
+
}
|
|
1036
|
+
/**
|
|
1037
|
+
* Called when the parser comes across a (style) class definition
|
|
1038
|
+
* @example classDef my-style fill:#f96;
|
|
1039
|
+
*
|
|
1040
|
+
* @param {string} id - the id of this (style) class
|
|
1041
|
+
* @param {string | null} styleAttributes - the string with 1 or more style attributes (each separated by a comma)
|
|
1042
|
+
*/
|
|
1043
|
+
addStyleClass(t, e = "") {
|
|
1044
|
+
this.classes.has(t) || this.classes.set(t, { id: t, styles: [], textStyles: [] });
|
|
1045
|
+
const o = this.classes.get(t);
|
|
1046
|
+
e != null && e.split(ze).forEach((a) => {
|
|
1047
|
+
const i = a.replace(/([^;]*);/, "$1").trim();
|
|
1048
|
+
if (RegExp(Yt).exec(a)) {
|
|
1049
|
+
const c = i.replace(Pt, je).replace(Yt, Pt);
|
|
1050
|
+
o.textStyles.push(c);
|
|
1051
|
+
}
|
|
1052
|
+
o.styles.push(i);
|
|
1053
|
+
});
|
|
1054
|
+
}
|
|
1055
|
+
/**
|
|
1056
|
+
* Return all of the style classes
|
|
1057
|
+
* @returns {{} | any | classes}
|
|
1058
|
+
*/
|
|
1059
|
+
getClasses() {
|
|
1060
|
+
return this.classes;
|
|
1061
|
+
}
|
|
1062
|
+
/**
|
|
1063
|
+
* Add a (style) class or css class to a state with the given id.
|
|
1064
|
+
* If the state isn't already in the list of known states, add it.
|
|
1065
|
+
* Might be called by parser when a style class or CSS class should be applied to a state
|
|
1066
|
+
*
|
|
1067
|
+
* @param {string | string[]} itemIds The id or a list of ids of the item(s) to apply the css class to
|
|
1068
|
+
* @param {string} cssClassName CSS class name
|
|
1069
|
+
*/
|
|
1070
|
+
setCssClass(t, e) {
|
|
1071
|
+
t.split(",").forEach((o) => {
|
|
1072
|
+
let a = this.getState(o);
|
|
1073
|
+
if (a === void 0) {
|
|
1074
|
+
const i = o.trim();
|
|
1075
|
+
this.addState(i), a = this.getState(i);
|
|
1076
|
+
}
|
|
1077
|
+
a.classes.push(e);
|
|
1078
|
+
});
|
|
1079
|
+
}
|
|
1080
|
+
/**
|
|
1081
|
+
* Add a style to a state with the given id.
|
|
1082
|
+
* @example style stateId fill:#f9f,stroke:#333,stroke-width:4px
|
|
1083
|
+
* where 'style' is the keyword
|
|
1084
|
+
* stateId is the id of a state
|
|
1085
|
+
* the rest of the string is the styleText (all of the attributes to be applied to the state)
|
|
1086
|
+
*
|
|
1087
|
+
* @param itemId The id of item to apply the style to
|
|
1088
|
+
* @param styleText - the text of the attributes for the style
|
|
1089
|
+
*/
|
|
1090
|
+
setStyle(t, e) {
|
|
1091
|
+
const o = this.getState(t);
|
|
1092
|
+
o !== void 0 && o.styles.push(e);
|
|
1093
|
+
}
|
|
1094
|
+
/**
|
|
1095
|
+
* Add a text style to a state with the given id
|
|
1096
|
+
*
|
|
1097
|
+
* @param itemId The id of item to apply the css class to
|
|
1098
|
+
* @param cssClassName CSS class name
|
|
1099
|
+
*/
|
|
1100
|
+
setTextStyle(t, e) {
|
|
1101
|
+
const o = this.getState(t);
|
|
1102
|
+
o !== void 0 && o.textStyles.push(e);
|
|
1103
|
+
}
|
|
1104
|
+
/**
|
|
1105
|
+
* Finds the direction statement in the root document.
|
|
1106
|
+
* @private
|
|
1107
|
+
* @returns {{ value: string } | undefined} - the direction statement if present
|
|
1108
|
+
*/
|
|
1109
|
+
getDirectionStatement() {
|
|
1110
|
+
return this.rootDoc.find((t) => t.stmt === At);
|
|
1111
|
+
}
|
|
1112
|
+
getDirection() {
|
|
1113
|
+
var t;
|
|
1114
|
+
return ((t = this.getDirectionStatement()) == null ? void 0 : t.value) ?? Se;
|
|
1115
|
+
}
|
|
1116
|
+
setDirection(t) {
|
|
1117
|
+
const e = this.getDirectionStatement();
|
|
1118
|
+
e ? e.value = t : this.rootDoc.unshift({ stmt: At, value: t });
|
|
1119
|
+
}
|
|
1120
|
+
trimColon(t) {
|
|
1121
|
+
return t && t[0] === ":" ? t.substr(1).trim() : t.trim();
|
|
1122
|
+
}
|
|
1123
|
+
getData() {
|
|
1124
|
+
const t = $();
|
|
1125
|
+
return {
|
|
1126
|
+
nodes: this.nodes,
|
|
1127
|
+
edges: this.edges,
|
|
1128
|
+
other: {},
|
|
1129
|
+
config: t,
|
|
1130
|
+
direction: Zt(this.getRootDocV2())
|
|
1131
|
+
};
|
|
1132
|
+
}
|
|
1133
|
+
getConfig() {
|
|
1134
|
+
return $().state;
|
|
1135
|
+
}
|
|
1136
|
+
}, h(ht, "StateDB"), k(ht, "relationType", {
|
|
1137
|
+
AGGREGATION: 0,
|
|
1138
|
+
EXTENSION: 1,
|
|
1139
|
+
COMPOSITION: 2,
|
|
1140
|
+
DEPENDENCY: 3
|
|
1141
|
+
}), ht), Me = /* @__PURE__ */ h((t) => `
|
|
1142
|
+
defs #statediagram-barbEnd {
|
|
1143
|
+
fill: ${t.transitionColor};
|
|
1144
|
+
stroke: ${t.transitionColor};
|
|
1145
|
+
}
|
|
1146
|
+
g.stateGroup text {
|
|
1147
|
+
fill: ${t.nodeBorder};
|
|
1148
|
+
stroke: none;
|
|
1149
|
+
font-size: 10px;
|
|
1150
|
+
}
|
|
1151
|
+
g.stateGroup text {
|
|
1152
|
+
fill: ${t.textColor};
|
|
1153
|
+
stroke: none;
|
|
1154
|
+
font-size: 10px;
|
|
1155
|
+
|
|
1156
|
+
}
|
|
1157
|
+
g.stateGroup .state-title {
|
|
1158
|
+
font-weight: bolder;
|
|
1159
|
+
fill: ${t.stateLabelColor};
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
g.stateGroup rect {
|
|
1163
|
+
fill: ${t.mainBkg};
|
|
1164
|
+
stroke: ${t.nodeBorder};
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
g.stateGroup line {
|
|
1168
|
+
stroke: ${t.lineColor};
|
|
1169
|
+
stroke-width: 1;
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
.transition {
|
|
1173
|
+
stroke: ${t.transitionColor};
|
|
1174
|
+
stroke-width: 1;
|
|
1175
|
+
fill: none;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
.stateGroup .composit {
|
|
1179
|
+
fill: ${t.background};
|
|
1180
|
+
border-bottom: 1px
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
.stateGroup .alt-composit {
|
|
1184
|
+
fill: #e0e0e0;
|
|
1185
|
+
border-bottom: 1px
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
.state-note {
|
|
1189
|
+
stroke: ${t.noteBorderColor};
|
|
1190
|
+
fill: ${t.noteBkgColor};
|
|
1191
|
+
|
|
1192
|
+
text {
|
|
1193
|
+
fill: ${t.noteTextColor};
|
|
1194
|
+
stroke: none;
|
|
1195
|
+
font-size: 10px;
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
.stateLabel .box {
|
|
1200
|
+
stroke: none;
|
|
1201
|
+
stroke-width: 0;
|
|
1202
|
+
fill: ${t.mainBkg};
|
|
1203
|
+
opacity: 0.5;
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
.edgeLabel .label rect {
|
|
1207
|
+
fill: ${t.labelBackgroundColor};
|
|
1208
|
+
opacity: 0.5;
|
|
1209
|
+
}
|
|
1210
|
+
.edgeLabel {
|
|
1211
|
+
background-color: ${t.edgeLabelBackground};
|
|
1212
|
+
p {
|
|
1213
|
+
background-color: ${t.edgeLabelBackground};
|
|
1214
|
+
}
|
|
1215
|
+
rect {
|
|
1216
|
+
opacity: 0.5;
|
|
1217
|
+
background-color: ${t.edgeLabelBackground};
|
|
1218
|
+
fill: ${t.edgeLabelBackground};
|
|
1219
|
+
}
|
|
1220
|
+
text-align: center;
|
|
1221
|
+
}
|
|
1222
|
+
.edgeLabel .label text {
|
|
1223
|
+
fill: ${t.transitionLabelColor || t.tertiaryTextColor};
|
|
1224
|
+
}
|
|
1225
|
+
.label div .edgeLabel {
|
|
1226
|
+
color: ${t.transitionLabelColor || t.tertiaryTextColor};
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
.stateLabel text {
|
|
1230
|
+
fill: ${t.stateLabelColor};
|
|
1231
|
+
font-size: 10px;
|
|
1232
|
+
font-weight: bold;
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
.node circle.state-start {
|
|
1236
|
+
fill: ${t.specialStateColor};
|
|
1237
|
+
stroke: ${t.specialStateColor};
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
.node .fork-join {
|
|
1241
|
+
fill: ${t.specialStateColor};
|
|
1242
|
+
stroke: ${t.specialStateColor};
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
.node circle.state-end {
|
|
1246
|
+
fill: ${t.innerEndBackground};
|
|
1247
|
+
stroke: ${t.background};
|
|
1248
|
+
stroke-width: 1.5
|
|
1249
|
+
}
|
|
1250
|
+
.end-state-inner {
|
|
1251
|
+
fill: ${t.compositeBackground || t.background};
|
|
1252
|
+
// stroke: ${t.background};
|
|
1253
|
+
stroke-width: 1.5
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
.node rect {
|
|
1257
|
+
fill: ${t.stateBkg || t.mainBkg};
|
|
1258
|
+
stroke: ${t.stateBorder || t.nodeBorder};
|
|
1259
|
+
stroke-width: 1px;
|
|
1260
|
+
}
|
|
1261
|
+
.node polygon {
|
|
1262
|
+
fill: ${t.mainBkg};
|
|
1263
|
+
stroke: ${t.stateBorder || t.nodeBorder};;
|
|
1264
|
+
stroke-width: 1px;
|
|
1265
|
+
}
|
|
1266
|
+
#statediagram-barbEnd {
|
|
1267
|
+
fill: ${t.lineColor};
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
.statediagram-cluster rect {
|
|
1271
|
+
fill: ${t.compositeTitleBackground};
|
|
1272
|
+
stroke: ${t.stateBorder || t.nodeBorder};
|
|
1273
|
+
stroke-width: 1px;
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
.cluster-label, .nodeLabel {
|
|
1277
|
+
color: ${t.stateLabelColor};
|
|
1278
|
+
// line-height: 1;
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
.statediagram-cluster rect.outer {
|
|
1282
|
+
rx: 5px;
|
|
1283
|
+
ry: 5px;
|
|
1284
|
+
}
|
|
1285
|
+
.statediagram-state .divider {
|
|
1286
|
+
stroke: ${t.stateBorder || t.nodeBorder};
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
.statediagram-state .title-state {
|
|
1290
|
+
rx: 5px;
|
|
1291
|
+
ry: 5px;
|
|
1292
|
+
}
|
|
1293
|
+
.statediagram-cluster.statediagram-cluster .inner {
|
|
1294
|
+
fill: ${t.compositeBackground || t.background};
|
|
1295
|
+
}
|
|
1296
|
+
.statediagram-cluster.statediagram-cluster-alt .inner {
|
|
1297
|
+
fill: ${t.altBackground ? t.altBackground : "#efefef"};
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
.statediagram-cluster .inner {
|
|
1301
|
+
rx:0;
|
|
1302
|
+
ry:0;
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
.statediagram-state rect.basic {
|
|
1306
|
+
rx: 5px;
|
|
1307
|
+
ry: 5px;
|
|
1308
|
+
}
|
|
1309
|
+
.statediagram-state rect.divider {
|
|
1310
|
+
stroke-dasharray: 10,10;
|
|
1311
|
+
fill: ${t.altBackground ? t.altBackground : "#efefef"};
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
.note-edge {
|
|
1315
|
+
stroke-dasharray: 5;
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
.statediagram-note rect {
|
|
1319
|
+
fill: ${t.noteBkgColor};
|
|
1320
|
+
stroke: ${t.noteBorderColor};
|
|
1321
|
+
stroke-width: 1px;
|
|
1322
|
+
rx: 0;
|
|
1323
|
+
ry: 0;
|
|
1324
|
+
}
|
|
1325
|
+
.statediagram-note rect {
|
|
1326
|
+
fill: ${t.noteBkgColor};
|
|
1327
|
+
stroke: ${t.noteBorderColor};
|
|
1328
|
+
stroke-width: 1px;
|
|
1329
|
+
rx: 0;
|
|
1330
|
+
ry: 0;
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
.statediagram-note text {
|
|
1334
|
+
fill: ${t.noteTextColor};
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
.statediagram-note .nodeLabel {
|
|
1338
|
+
color: ${t.noteTextColor};
|
|
1339
|
+
}
|
|
1340
|
+
.statediagram .edgeLabel {
|
|
1341
|
+
color: red; // ${t.noteTextColor};
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
#dependencyStart, #dependencyEnd {
|
|
1345
|
+
fill: ${t.lineColor};
|
|
1346
|
+
stroke: ${t.lineColor};
|
|
1347
|
+
stroke-width: 1;
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
.statediagramTitleText {
|
|
1351
|
+
text-anchor: middle;
|
|
1352
|
+
font-size: 18px;
|
|
1353
|
+
fill: ${t.textColor};
|
|
1354
|
+
}
|
|
1355
|
+
`, "getStyles"), Ve = Me;
|
|
1356
|
+
export {
|
|
1357
|
+
Ue as J,
|
|
1358
|
+
He as K,
|
|
1359
|
+
Ke as X,
|
|
1360
|
+
Ve as q
|
|
1361
|
+
};
|