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