@schmitech/chatbot-widget 0.5.3 → 0.5.4

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.
Files changed (47) hide show
  1. package/dist/Tableau10-D7jGxypv-BNlEL2G_.js +9 -0
  2. package/dist/arc-D-ZI5fuh-CvDHBzlN.js +84 -0
  3. package/dist/blockDiagram-c4efeb88-DUnNxfIR-Bhh-x1q6.js +1221 -0
  4. package/dist/c4Diagram-c83219d4-cC4OxfBG-DRTO_jy5.js +1580 -0
  5. package/dist/channel-hcYozyrT-BSOc2Hp-.js +6 -0
  6. package/dist/chatbot-widget.bundle.js +3881 -1586
  7. package/dist/chatbot-widget.css +1 -1
  8. package/dist/chatbot-widget.es.js +12 -63659
  9. package/dist/chatbot-widget.umd.js +3880 -1585
  10. package/dist/classDiagram-beda092f-BLYhf5Mr-vk4Ko58U.js +218 -0
  11. package/dist/classDiagram-v2-2358418a-VBkbF8mr-Ca0l1fEs.js +201 -0
  12. package/dist/clone-BZIkCMuw-B9owNq6E.js +9 -0
  13. package/dist/config/index.d.ts +2 -2
  14. package/dist/createText-1719965b-UejsQ47k-B1DYw0WW.js +2955 -0
  15. package/dist/edges-96097737-1M5QvjOd-BpQVVoQN.js +1088 -0
  16. package/dist/erDiagram-0228fc6a-CjBNxHoC-DXDVlH55.js +929 -0
  17. package/dist/flowDb-c6c81e3f-Q2aoOxdz-DfrfI3H1.js +1127 -0
  18. package/dist/flowDiagram-50d868cf-zizL6ppE-BAH-_juu.js +788 -0
  19. package/dist/flowDiagram-v2-4f6560a1-DVx_vlO5-bkcRE0UW.js +18 -0
  20. package/dist/flowchart-elk-definition-6af322e1-Eyez36go-B_lk3oHt.js +48132 -0
  21. package/dist/ganttDiagram-a2739b55-C82Jv-TO-DoS-s1Yu.js +1743 -0
  22. package/dist/gitGraphDiagram-82fe8481-D9o_9-U8-DJF-ZeR8.js +1265 -0
  23. package/dist/graph-BjmGDpTe-DgbYS1Ie.js +848 -0
  24. package/dist/index-5325376f-CJL5w-Sw-BXp44Ej5.js +374 -0
  25. package/dist/index-s6Yb6o1D.js +116386 -0
  26. package/dist/infoDiagram-8eee0895-FpS-TLK_-BnvO_wUe.js +320 -0
  27. package/dist/journeyDiagram-c64418c1-CMj1efQ9-CshcRDhm.js +802 -0
  28. package/dist/layout-D_6hdlf3-B7guhEBN.js +1470 -0
  29. package/dist/mindmap-definition-8da855dc-D4SxHjUd-jFZFomnk.js +21924 -0
  30. package/dist/pieDiagram-a8764435-BF5ZqOjB-Mqzg2J4Q.js +498 -0
  31. package/dist/quadrantDiagram-1e28029f-GtQb80VU-DCy1QjzW.js +903 -0
  32. package/dist/requirementDiagram-08caed73-CHtPj3FO-AHEP0cIt.js +767 -0
  33. package/dist/sankeyDiagram-a04cb91d-CBlXzOgd-CWJTc5AX.js +802 -0
  34. package/dist/sequenceDiagram-c5b8d532-Cs1iyw97-oayOJE8v.js +2235 -0
  35. package/dist/shared/styles.d.ts +1 -1
  36. package/dist/stateDiagram-1ecb1508-CpRKICMQ-C5OFJeRZ.js +266 -0
  37. package/dist/stateDiagram-v2-c2b004d7-BtkhFyQ5-DxzE8Je5.js +185 -0
  38. package/dist/styles-b4e223ce-D0oeHeKH-BmNvk4NR.js +1090 -0
  39. package/dist/styles-ca3715f6-BouNgl-L-_qXsPDP3.js +961 -0
  40. package/dist/styles-d45a18b0-Cvhb8Ltu-43I3Cd_I.js +437 -0
  41. package/dist/svgDrawCommon-b86b1483-mg-1NjZY-DrmnILcc.js +65 -0
  42. package/dist/timeline-definition-faaaa080-3olbep_P-BqKpgsPZ.js +793 -0
  43. package/dist/ui/Message.d.ts +1 -5
  44. package/dist/ui/MessagesList.d.ts +1 -5
  45. package/dist/xychartDiagram-f5964ef8-BN6HXpmW-C-g_F1w2.js +1238 -0
  46. package/package.json +3 -3
  47. package/dist/ui/TypingEffect.d.ts +0 -18
@@ -0,0 +1,1221 @@
1
+ import { aj as se, e as me, P as q, W as _e, O as f, ad as ke, m as Ee, l as De, g as ge, R as we } from "./index-s6Yb6o1D.js";
2
+ import { a as ve } from "./clone-BZIkCMuw-B9owNq6E.js";
3
+ import { c as Ne, g as $e, x as Te, d as Oe, h as de, p as Ie } from "./edges-96097737-1M5QvjOd-BpQVVoQN.js";
4
+ import { K as Ae } from "./graph-BjmGDpTe-DgbYS1Ie.js";
5
+ import { t as Ce } from "./channel-hcYozyrT-BSOc2Hp-.js";
6
+ import { r as Re } from "./Tableau10-D7jGxypv-BNlEL2G_.js";
7
+ typeof window < "u" && (window.global = window);
8
+ var oe, ae, ee = function() {
9
+ var e = function(m, s, r, l) {
10
+ for (r = r || {}, l = m.length; l--; r[m[l]] = s)
11
+ ;
12
+ return r;
13
+ }, o = [1, 7], h = [1, 13], c = [1, 14], n = [1, 15], g = [1, 19], a = [1, 16], y = [1, 17], b = [1, 18], d = [8, 30], x = [8, 21, 28, 29, 30, 31, 32, 40, 44, 47], _ = [1, 23], T = [1, 24], k = [8, 15, 16, 21, 28, 29, 30, 31, 32, 40, 44, 47], v = [8, 15, 16, 21, 27, 28, 29, 30, 31, 32, 40, 44, 47], L = [1, 49], D = {
14
+ trace: function() {
15
+ },
16
+ yy: {},
17
+ symbols_: { error: 2, spaceLines: 3, SPACELINE: 4, NL: 5, separator: 6, SPACE: 7, EOF: 8, start: 9, BLOCK_DIAGRAM_KEY: 10, document: 11, stop: 12, statement: 13, link: 14, LINK: 15, START_LINK: 16, LINK_LABEL: 17, STR: 18, nodeStatement: 19, columnsStatement: 20, SPACE_BLOCK: 21, blockStatement: 22, classDefStatement: 23, cssClassStatement: 24, styleStatement: 25, node: 26, SIZE: 27, COLUMNS: 28, "id-block": 29, end: 30, block: 31, NODE_ID: 32, nodeShapeNLabel: 33, dirList: 34, DIR: 35, NODE_DSTART: 36, NODE_DEND: 37, BLOCK_ARROW_START: 38, BLOCK_ARROW_END: 39, classDef: 40, CLASSDEF_ID: 41, CLASSDEF_STYLEOPTS: 42, DEFAULT: 43, class: 44, CLASSENTITY_IDS: 45, STYLECLASS: 46, style: 47, STYLE_ENTITY_IDS: 48, STYLE_DEFINITION_DATA: 49, $accept: 0, $end: 1 },
18
+ terminals_: { 2: "error", 4: "SPACELINE", 5: "NL", 7: "SPACE", 8: "EOF", 10: "BLOCK_DIAGRAM_KEY", 15: "LINK", 16: "START_LINK", 17: "LINK_LABEL", 18: "STR", 21: "SPACE_BLOCK", 27: "SIZE", 28: "COLUMNS", 29: "id-block", 30: "end", 31: "block", 32: "NODE_ID", 35: "DIR", 36: "NODE_DSTART", 37: "NODE_DEND", 38: "BLOCK_ARROW_START", 39: "BLOCK_ARROW_END", 40: "classDef", 41: "CLASSDEF_ID", 42: "CLASSDEF_STYLEOPTS", 43: "DEFAULT", 44: "class", 45: "CLASSENTITY_IDS", 46: "STYLECLASS", 47: "style", 48: "STYLE_ENTITY_IDS", 49: "STYLE_DEFINITION_DATA" },
19
+ productions_: [0, [3, 1], [3, 2], [3, 2], [6, 1], [6, 1], [6, 1], [9, 3], [12, 1], [12, 1], [12, 2], [12, 2], [11, 1], [11, 2], [14, 1], [14, 4], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [19, 3], [19, 2], [19, 1], [20, 1], [22, 4], [22, 3], [26, 1], [26, 2], [34, 1], [34, 2], [33, 3], [33, 4], [23, 3], [23, 3], [24, 3], [25, 3]],
20
+ performAction: function(m, s, r, l, p, t, u) {
21
+ var i = t.length - 1;
22
+ switch (p) {
23
+ case 4:
24
+ l.getLogger().debug("Rule: separator (NL) ");
25
+ break;
26
+ case 5:
27
+ l.getLogger().debug("Rule: separator (Space) ");
28
+ break;
29
+ case 6:
30
+ l.getLogger().debug("Rule: separator (EOF) ");
31
+ break;
32
+ case 7:
33
+ l.getLogger().debug("Rule: hierarchy: ", t[i - 1]), l.setHierarchy(t[i - 1]);
34
+ break;
35
+ case 8:
36
+ l.getLogger().debug("Stop NL ");
37
+ break;
38
+ case 9:
39
+ l.getLogger().debug("Stop EOF ");
40
+ break;
41
+ case 10:
42
+ l.getLogger().debug("Stop NL2 ");
43
+ break;
44
+ case 11:
45
+ l.getLogger().debug("Stop EOF2 ");
46
+ break;
47
+ case 12:
48
+ l.getLogger().debug("Rule: statement: ", t[i]), typeof t[i].length == "number" ? this.$ = t[i] : this.$ = [t[i]];
49
+ break;
50
+ case 13:
51
+ l.getLogger().debug("Rule: statement #2: ", t[i - 1]), this.$ = [t[i - 1]].concat(t[i]);
52
+ break;
53
+ case 14:
54
+ l.getLogger().debug("Rule: link: ", t[i], m), this.$ = { edgeTypeStr: t[i], label: "" };
55
+ break;
56
+ case 15:
57
+ l.getLogger().debug("Rule: LABEL link: ", t[i - 3], t[i - 1], t[i]), this.$ = { edgeTypeStr: t[i], label: t[i - 1] };
58
+ break;
59
+ case 18:
60
+ const O = parseInt(t[i]), B = l.generateId();
61
+ this.$ = { id: B, type: "space", label: "", width: O, children: [] };
62
+ break;
63
+ case 23:
64
+ l.getLogger().debug("Rule: (nodeStatement link node) ", t[i - 2], t[i - 1], t[i], " typestr: ", t[i - 1].edgeTypeStr);
65
+ const X = l.edgeStrToEdgeData(t[i - 1].edgeTypeStr);
66
+ this.$ = [
67
+ { id: t[i - 2].id, label: t[i - 2].label, type: t[i - 2].type, directions: t[i - 2].directions },
68
+ { id: t[i - 2].id + "-" + t[i].id, start: t[i - 2].id, end: t[i].id, label: t[i - 1].label, type: "edge", directions: t[i].directions, arrowTypeEnd: X, arrowTypeStart: "arrow_open" },
69
+ { id: t[i].id, label: t[i].label, type: l.typeStr2Type(t[i].typeStr), directions: t[i].directions }
70
+ ];
71
+ break;
72
+ case 24:
73
+ l.getLogger().debug("Rule: nodeStatement (abc88 node size) ", t[i - 1], t[i]), this.$ = { id: t[i - 1].id, label: t[i - 1].label, type: l.typeStr2Type(t[i - 1].typeStr), directions: t[i - 1].directions, widthInColumns: parseInt(t[i], 10) };
74
+ break;
75
+ case 25:
76
+ l.getLogger().debug("Rule: nodeStatement (node) ", t[i]), this.$ = { id: t[i].id, label: t[i].label, type: l.typeStr2Type(t[i].typeStr), directions: t[i].directions, widthInColumns: 1 };
77
+ break;
78
+ case 26:
79
+ l.getLogger().debug("APA123", this ? this : "na"), l.getLogger().debug("COLUMNS: ", t[i]), this.$ = { type: "column-setting", columns: t[i] === "auto" ? -1 : parseInt(t[i]) };
80
+ break;
81
+ case 27:
82
+ l.getLogger().debug("Rule: id-block statement : ", t[i - 2], t[i - 1]), l.generateId(), this.$ = { ...t[i - 2], type: "composite", children: t[i - 1] };
83
+ break;
84
+ case 28:
85
+ l.getLogger().debug("Rule: blockStatement : ", t[i - 2], t[i - 1], t[i]);
86
+ const C = l.generateId();
87
+ this.$ = { id: C, type: "composite", label: "", children: t[i - 1] };
88
+ break;
89
+ case 29:
90
+ l.getLogger().debug("Rule: node (NODE_ID separator): ", t[i]), this.$ = { id: t[i] };
91
+ break;
92
+ case 30:
93
+ l.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ", t[i - 1], t[i]), this.$ = { id: t[i - 1], label: t[i].label, typeStr: t[i].typeStr, directions: t[i].directions };
94
+ break;
95
+ case 31:
96
+ l.getLogger().debug("Rule: dirList: ", t[i]), this.$ = [t[i]];
97
+ break;
98
+ case 32:
99
+ l.getLogger().debug("Rule: dirList: ", t[i - 1], t[i]), this.$ = [t[i - 1]].concat(t[i]);
100
+ break;
101
+ case 33:
102
+ l.getLogger().debug("Rule: nodeShapeNLabel: ", t[i - 2], t[i - 1], t[i]), this.$ = { typeStr: t[i - 2] + t[i], label: t[i - 1] };
103
+ break;
104
+ case 34:
105
+ l.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ", t[i - 3], t[i - 2], " #3:", t[i - 1], t[i]), this.$ = { typeStr: t[i - 3] + t[i], label: t[i - 2], directions: t[i - 1] };
106
+ break;
107
+ case 35:
108
+ case 36:
109
+ this.$ = { type: "classDef", id: t[i - 1].trim(), css: t[i].trim() };
110
+ break;
111
+ case 37:
112
+ this.$ = { type: "applyClass", id: t[i - 1].trim(), styleClass: t[i].trim() };
113
+ break;
114
+ case 38:
115
+ this.$ = { type: "applyStyles", id: t[i - 1].trim(), stylesStr: t[i].trim() };
116
+ break;
117
+ }
118
+ },
119
+ table: [{ 9: 1, 10: [1, 2] }, { 1: [3] }, { 11: 3, 13: 4, 19: 5, 20: 6, 21: o, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: h, 29: c, 31: n, 32: g, 40: a, 44: y, 47: b }, { 8: [1, 20] }, e(d, [2, 12], { 13: 4, 19: 5, 20: 6, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 11: 21, 21: o, 28: h, 29: c, 31: n, 32: g, 40: a, 44: y, 47: b }), e(x, [2, 16], { 14: 22, 15: _, 16: T }), e(x, [2, 17]), e(x, [2, 18]), e(x, [2, 19]), e(x, [2, 20]), e(x, [2, 21]), e(x, [2, 22]), e(k, [2, 25], { 27: [1, 25] }), e(x, [2, 26]), { 19: 26, 26: 12, 32: g }, { 11: 27, 13: 4, 19: 5, 20: 6, 21: o, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: h, 29: c, 31: n, 32: g, 40: a, 44: y, 47: b }, { 41: [1, 28], 43: [1, 29] }, { 45: [1, 30] }, { 48: [1, 31] }, e(v, [2, 29], { 33: 32, 36: [1, 33], 38: [1, 34] }), { 1: [2, 7] }, e(d, [2, 13]), { 26: 35, 32: g }, { 32: [2, 14] }, { 17: [1, 36] }, e(k, [2, 24]), { 11: 37, 13: 4, 14: 22, 15: _, 16: T, 19: 5, 20: 6, 21: o, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: h, 29: c, 31: n, 32: g, 40: a, 44: y, 47: b }, { 30: [1, 38] }, { 42: [1, 39] }, { 42: [1, 40] }, { 46: [1, 41] }, { 49: [1, 42] }, e(v, [2, 30]), { 18: [1, 43] }, { 18: [1, 44] }, e(k, [2, 23]), { 18: [1, 45] }, { 30: [1, 46] }, e(x, [2, 28]), e(x, [2, 35]), e(x, [2, 36]), e(x, [2, 37]), e(x, [2, 38]), { 37: [1, 47] }, { 34: 48, 35: L }, { 15: [1, 50] }, e(x, [2, 27]), e(v, [2, 33]), { 39: [1, 51] }, { 34: 52, 35: L, 39: [2, 31] }, { 32: [2, 15] }, e(v, [2, 34]), { 39: [2, 32] }],
120
+ defaultActions: { 20: [2, 7], 23: [2, 14], 50: [2, 15], 52: [2, 32] },
121
+ parseError: function(m, s) {
122
+ if (s.recoverable)
123
+ this.trace(m);
124
+ else {
125
+ var r = new Error(m);
126
+ throw r.hash = s, r;
127
+ }
128
+ },
129
+ parse: function(m) {
130
+ var s = this, r = [0], l = [], p = [null], t = [], u = this.table, i = "", O = 0, B = 0, X = 2, C = 1, P = t.slice.call(arguments, 1), E = Object.create(this.lexer), F = { yy: {} };
131
+ for (var J in this.yy)
132
+ Object.prototype.hasOwnProperty.call(this.yy, J) && (F.yy[J] = this.yy[J]);
133
+ E.setInput(m, F.yy), F.yy.lexer = E, F.yy.parser = this, typeof E.yylloc > "u" && (E.yylloc = {});
134
+ var V = E.yylloc;
135
+ t.push(V);
136
+ var Le = E.options && E.options.ranges;
137
+ typeof F.yy.parseError == "function" ? this.parseError = F.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
138
+ function Se() {
139
+ var z;
140
+ return z = l.pop() || E.lex() || C, typeof z != "number" && (z instanceof Array && (l = z, z = l.pop()), z = s.symbols_[z] || z), z;
141
+ }
142
+ for (var N, Y, I, Z, K = {}, j, R, le, H; ; ) {
143
+ if (Y = r[r.length - 1], this.defaultActions[Y] ? I = this.defaultActions[Y] : ((N === null || typeof N > "u") && (N = Se()), I = u[Y] && u[Y][N]), typeof I > "u" || !I.length || !I[0]) {
144
+ var Q = "";
145
+ H = [];
146
+ for (j in u[Y])
147
+ this.terminals_[j] && j > X && H.push("'" + this.terminals_[j] + "'");
148
+ E.showPosition ? Q = "Parse error on line " + (O + 1) + `:
149
+ ` + E.showPosition() + `
150
+ Expecting ` + H.join(", ") + ", got '" + (this.terminals_[N] || N) + "'" : Q = "Parse error on line " + (O + 1) + ": Unexpected " + (N == C ? "end of input" : "'" + (this.terminals_[N] || N) + "'"), this.parseError(Q, {
151
+ text: E.match,
152
+ token: this.terminals_[N] || N,
153
+ line: E.yylineno,
154
+ loc: V,
155
+ expected: H
156
+ });
157
+ }
158
+ if (I[0] instanceof Array && I.length > 1)
159
+ throw new Error("Parse Error: multiple actions possible at state: " + Y + ", token: " + N);
160
+ switch (I[0]) {
161
+ case 1:
162
+ r.push(N), p.push(E.yytext), t.push(E.yylloc), r.push(I[1]), N = null, B = E.yyleng, i = E.yytext, O = E.yylineno, V = E.yylloc;
163
+ break;
164
+ case 2:
165
+ if (R = this.productions_[I[1]][1], K.$ = p[p.length - R], K._$ = {
166
+ first_line: t[t.length - (R || 1)].first_line,
167
+ last_line: t[t.length - 1].last_line,
168
+ first_column: t[t.length - (R || 1)].first_column,
169
+ last_column: t[t.length - 1].last_column
170
+ }, Le && (K._$.range = [
171
+ t[t.length - (R || 1)].range[0],
172
+ t[t.length - 1].range[1]
173
+ ]), Z = this.performAction.apply(K, [
174
+ i,
175
+ B,
176
+ O,
177
+ F.yy,
178
+ I[1],
179
+ p,
180
+ t
181
+ ].concat(P)), typeof Z < "u")
182
+ return Z;
183
+ R && (r = r.slice(0, -1 * R * 2), p = p.slice(0, -1 * R), t = t.slice(0, -1 * R)), r.push(this.productions_[I[1]][0]), p.push(K.$), t.push(K._$), le = u[r[r.length - 2]][r[r.length - 1]], r.push(le);
184
+ break;
185
+ case 3:
186
+ return !0;
187
+ }
188
+ }
189
+ return !0;
190
+ }
191
+ }, A = /* @__PURE__ */ function() {
192
+ var m = {
193
+ EOF: 1,
194
+ parseError: function(s, r) {
195
+ if (this.yy.parser)
196
+ this.yy.parser.parseError(s, r);
197
+ else
198
+ throw new Error(s);
199
+ },
200
+ // resets the lexer, sets new input
201
+ setInput: function(s, r) {
202
+ return this.yy = r || this.yy || {}, this._input = s, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
203
+ first_line: 1,
204
+ first_column: 0,
205
+ last_line: 1,
206
+ last_column: 0
207
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
208
+ },
209
+ // consumes and returns one char from the input
210
+ input: function() {
211
+ var s = this._input[0];
212
+ this.yytext += s, this.yyleng++, this.offset++, this.match += s, this.matched += s;
213
+ var r = s.match(/(?:\r\n?|\n).*/g);
214
+ return r ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), s;
215
+ },
216
+ // unshifts one char (or a string) into the input
217
+ unput: function(s) {
218
+ var r = s.length, l = s.split(/(?:\r\n?|\n)/g);
219
+ this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - r), this.offset -= r;
220
+ var p = this.match.split(/(?:\r\n?|\n)/g);
221
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), l.length - 1 && (this.yylineno -= l.length - 1);
222
+ var t = this.yylloc.range;
223
+ return this.yylloc = {
224
+ first_line: this.yylloc.first_line,
225
+ last_line: this.yylineno + 1,
226
+ first_column: this.yylloc.first_column,
227
+ last_column: l ? (l.length === p.length ? this.yylloc.first_column : 0) + p[p.length - l.length].length - l[0].length : this.yylloc.first_column - r
228
+ }, this.options.ranges && (this.yylloc.range = [t[0], t[0] + this.yyleng - r]), this.yyleng = this.yytext.length, this;
229
+ },
230
+ // When called from action, caches matched text and appends it on next action
231
+ more: function() {
232
+ return this._more = !0, this;
233
+ },
234
+ // 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.
235
+ reject: function() {
236
+ if (this.options.backtrack_lexer)
237
+ this._backtrack = !0;
238
+ else
239
+ 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).
240
+ ` + this.showPosition(), {
241
+ text: "",
242
+ token: null,
243
+ line: this.yylineno
244
+ });
245
+ return this;
246
+ },
247
+ // retain first n characters of the match
248
+ less: function(s) {
249
+ this.unput(this.match.slice(s));
250
+ },
251
+ // displays already matched input, i.e. for error messages
252
+ pastInput: function() {
253
+ var s = this.matched.substr(0, this.matched.length - this.match.length);
254
+ return (s.length > 20 ? "..." : "") + s.substr(-20).replace(/\n/g, "");
255
+ },
256
+ // displays upcoming input, i.e. for error messages
257
+ upcomingInput: function() {
258
+ var s = this.match;
259
+ return s.length < 20 && (s += this._input.substr(0, 20 - s.length)), (s.substr(0, 20) + (s.length > 20 ? "..." : "")).replace(/\n/g, "");
260
+ },
261
+ // displays the character position where the lexing error occurred, i.e. for error messages
262
+ showPosition: function() {
263
+ var s = this.pastInput(), r = new Array(s.length + 1).join("-");
264
+ return s + this.upcomingInput() + `
265
+ ` + r + "^";
266
+ },
267
+ // test the lexed token: return FALSE when not a match, otherwise return token
268
+ test_match: function(s, r) {
269
+ var l, p, t;
270
+ if (this.options.backtrack_lexer && (t = {
271
+ yylineno: this.yylineno,
272
+ yylloc: {
273
+ first_line: this.yylloc.first_line,
274
+ last_line: this.last_line,
275
+ first_column: this.yylloc.first_column,
276
+ last_column: this.yylloc.last_column
277
+ },
278
+ yytext: this.yytext,
279
+ match: this.match,
280
+ matches: this.matches,
281
+ matched: this.matched,
282
+ yyleng: this.yyleng,
283
+ offset: this.offset,
284
+ _more: this._more,
285
+ _input: this._input,
286
+ yy: this.yy,
287
+ conditionStack: this.conditionStack.slice(0),
288
+ done: this.done
289
+ }, this.options.ranges && (t.yylloc.range = this.yylloc.range.slice(0))), p = s[0].match(/(?:\r\n?|\n).*/g), p && (this.yylineno += p.length), this.yylloc = {
290
+ first_line: this.yylloc.last_line,
291
+ last_line: this.yylineno + 1,
292
+ first_column: this.yylloc.last_column,
293
+ last_column: p ? p[p.length - 1].length - p[p.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + s[0].length
294
+ }, this.yytext += s[0], this.match += s[0], this.matches = s, 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(s[0].length), this.matched += s[0], l = this.performAction.call(this, this.yy, this, r, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), l)
295
+ return l;
296
+ if (this._backtrack) {
297
+ for (var u in t)
298
+ this[u] = t[u];
299
+ return !1;
300
+ }
301
+ return !1;
302
+ },
303
+ // return next match in input
304
+ next: function() {
305
+ if (this.done)
306
+ return this.EOF;
307
+ this._input || (this.done = !0);
308
+ var s, r, l, p;
309
+ this._more || (this.yytext = "", this.match = "");
310
+ for (var t = this._currentRules(), u = 0; u < t.length; u++)
311
+ if (l = this._input.match(this.rules[t[u]]), l && (!r || l[0].length > r[0].length)) {
312
+ if (r = l, p = u, this.options.backtrack_lexer) {
313
+ if (s = this.test_match(l, t[u]), s !== !1)
314
+ return s;
315
+ if (this._backtrack) {
316
+ r = !1;
317
+ continue;
318
+ } else
319
+ return !1;
320
+ } else if (!this.options.flex)
321
+ break;
322
+ }
323
+ return r ? (s = this.test_match(r, t[p]), s !== !1 ? s : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
324
+ ` + this.showPosition(), {
325
+ text: "",
326
+ token: null,
327
+ line: this.yylineno
328
+ });
329
+ },
330
+ // return next match that has a token
331
+ lex: function() {
332
+ var s = this.next();
333
+ return s || this.lex();
334
+ },
335
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
336
+ begin: function(s) {
337
+ this.conditionStack.push(s);
338
+ },
339
+ // pop the previously active lexer condition state off the condition stack
340
+ popState: function() {
341
+ var s = this.conditionStack.length - 1;
342
+ return s > 0 ? this.conditionStack.pop() : this.conditionStack[0];
343
+ },
344
+ // produce the lexer rule set which is active for the currently active lexer condition state
345
+ _currentRules: function() {
346
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
347
+ },
348
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
349
+ topState: function(s) {
350
+ return s = this.conditionStack.length - 1 - Math.abs(s || 0), s >= 0 ? this.conditionStack[s] : "INITIAL";
351
+ },
352
+ // alias for begin(condition)
353
+ pushState: function(s) {
354
+ this.begin(s);
355
+ },
356
+ // return the number of states currently on the stack
357
+ stateStackSize: function() {
358
+ return this.conditionStack.length;
359
+ },
360
+ options: {},
361
+ performAction: function(s, r, l, p) {
362
+ switch (l) {
363
+ case 0:
364
+ return 10;
365
+ case 1:
366
+ return s.getLogger().debug("Found space-block"), 31;
367
+ case 2:
368
+ return s.getLogger().debug("Found nl-block"), 31;
369
+ case 3:
370
+ return s.getLogger().debug("Found space-block"), 29;
371
+ case 4:
372
+ s.getLogger().debug(".", r.yytext);
373
+ break;
374
+ case 5:
375
+ s.getLogger().debug("_", r.yytext);
376
+ break;
377
+ case 6:
378
+ return 5;
379
+ case 7:
380
+ return r.yytext = -1, 28;
381
+ case 8:
382
+ return r.yytext = r.yytext.replace(/columns\s+/, ""), s.getLogger().debug("COLUMNS (LEX)", r.yytext), 28;
383
+ case 9:
384
+ this.pushState("md_string");
385
+ break;
386
+ case 10:
387
+ return "MD_STR";
388
+ case 11:
389
+ this.popState();
390
+ break;
391
+ case 12:
392
+ this.pushState("string");
393
+ break;
394
+ case 13:
395
+ s.getLogger().debug("LEX: POPPING STR:", r.yytext), this.popState();
396
+ break;
397
+ case 14:
398
+ return s.getLogger().debug("LEX: STR end:", r.yytext), "STR";
399
+ case 15:
400
+ return r.yytext = r.yytext.replace(/space\:/, ""), s.getLogger().debug("SPACE NUM (LEX)", r.yytext), 21;
401
+ case 16:
402
+ return r.yytext = "1", s.getLogger().debug("COLUMNS (LEX)", r.yytext), 21;
403
+ case 17:
404
+ return 43;
405
+ case 18:
406
+ return "LINKSTYLE";
407
+ case 19:
408
+ return "INTERPOLATE";
409
+ case 20:
410
+ return this.pushState("CLASSDEF"), 40;
411
+ case 21:
412
+ return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
413
+ case 22:
414
+ return this.popState(), this.pushState("CLASSDEFID"), 41;
415
+ case 23:
416
+ return this.popState(), 42;
417
+ case 24:
418
+ return this.pushState("CLASS"), 44;
419
+ case 25:
420
+ return this.popState(), this.pushState("CLASS_STYLE"), 45;
421
+ case 26:
422
+ return this.popState(), 46;
423
+ case 27:
424
+ return this.pushState("STYLE_STMNT"), 47;
425
+ case 28:
426
+ return this.popState(), this.pushState("STYLE_DEFINITION"), 48;
427
+ case 29:
428
+ return this.popState(), 49;
429
+ case 30:
430
+ return this.pushState("acc_title"), "acc_title";
431
+ case 31:
432
+ return this.popState(), "acc_title_value";
433
+ case 32:
434
+ return this.pushState("acc_descr"), "acc_descr";
435
+ case 33:
436
+ return this.popState(), "acc_descr_value";
437
+ case 34:
438
+ this.pushState("acc_descr_multiline");
439
+ break;
440
+ case 35:
441
+ this.popState();
442
+ break;
443
+ case 36:
444
+ return "acc_descr_multiline_value";
445
+ case 37:
446
+ return 30;
447
+ case 38:
448
+ return this.popState(), s.getLogger().debug("Lex: (("), "NODE_DEND";
449
+ case 39:
450
+ return this.popState(), s.getLogger().debug("Lex: (("), "NODE_DEND";
451
+ case 40:
452
+ return this.popState(), s.getLogger().debug("Lex: ))"), "NODE_DEND";
453
+ case 41:
454
+ return this.popState(), s.getLogger().debug("Lex: (("), "NODE_DEND";
455
+ case 42:
456
+ return this.popState(), s.getLogger().debug("Lex: (("), "NODE_DEND";
457
+ case 43:
458
+ return this.popState(), s.getLogger().debug("Lex: (-"), "NODE_DEND";
459
+ case 44:
460
+ return this.popState(), s.getLogger().debug("Lex: -)"), "NODE_DEND";
461
+ case 45:
462
+ return this.popState(), s.getLogger().debug("Lex: (("), "NODE_DEND";
463
+ case 46:
464
+ return this.popState(), s.getLogger().debug("Lex: ]]"), "NODE_DEND";
465
+ case 47:
466
+ return this.popState(), s.getLogger().debug("Lex: ("), "NODE_DEND";
467
+ case 48:
468
+ return this.popState(), s.getLogger().debug("Lex: ])"), "NODE_DEND";
469
+ case 49:
470
+ return this.popState(), s.getLogger().debug("Lex: /]"), "NODE_DEND";
471
+ case 50:
472
+ return this.popState(), s.getLogger().debug("Lex: /]"), "NODE_DEND";
473
+ case 51:
474
+ return this.popState(), s.getLogger().debug("Lex: )]"), "NODE_DEND";
475
+ case 52:
476
+ return this.popState(), s.getLogger().debug("Lex: )"), "NODE_DEND";
477
+ case 53:
478
+ return this.popState(), s.getLogger().debug("Lex: ]>"), "NODE_DEND";
479
+ case 54:
480
+ return this.popState(), s.getLogger().debug("Lex: ]"), "NODE_DEND";
481
+ case 55:
482
+ return s.getLogger().debug("Lexa: -)"), this.pushState("NODE"), 36;
483
+ case 56:
484
+ return s.getLogger().debug("Lexa: (-"), this.pushState("NODE"), 36;
485
+ case 57:
486
+ return s.getLogger().debug("Lexa: ))"), this.pushState("NODE"), 36;
487
+ case 58:
488
+ return s.getLogger().debug("Lexa: )"), this.pushState("NODE"), 36;
489
+ case 59:
490
+ return s.getLogger().debug("Lex: ((("), this.pushState("NODE"), 36;
491
+ case 60:
492
+ return s.getLogger().debug("Lexa: )"), this.pushState("NODE"), 36;
493
+ case 61:
494
+ return s.getLogger().debug("Lexa: )"), this.pushState("NODE"), 36;
495
+ case 62:
496
+ return s.getLogger().debug("Lexa: )"), this.pushState("NODE"), 36;
497
+ case 63:
498
+ return s.getLogger().debug("Lexc: >"), this.pushState("NODE"), 36;
499
+ case 64:
500
+ return s.getLogger().debug("Lexa: (["), this.pushState("NODE"), 36;
501
+ case 65:
502
+ return s.getLogger().debug("Lexa: )"), this.pushState("NODE"), 36;
503
+ case 66:
504
+ return this.pushState("NODE"), 36;
505
+ case 67:
506
+ return this.pushState("NODE"), 36;
507
+ case 68:
508
+ return this.pushState("NODE"), 36;
509
+ case 69:
510
+ return this.pushState("NODE"), 36;
511
+ case 70:
512
+ return this.pushState("NODE"), 36;
513
+ case 71:
514
+ return this.pushState("NODE"), 36;
515
+ case 72:
516
+ return this.pushState("NODE"), 36;
517
+ case 73:
518
+ return s.getLogger().debug("Lexa: ["), this.pushState("NODE"), 36;
519
+ case 74:
520
+ return this.pushState("BLOCK_ARROW"), s.getLogger().debug("LEX ARR START"), 38;
521
+ case 75:
522
+ return s.getLogger().debug("Lex: NODE_ID", r.yytext), 32;
523
+ case 76:
524
+ return s.getLogger().debug("Lex: EOF", r.yytext), 8;
525
+ case 77:
526
+ this.pushState("md_string");
527
+ break;
528
+ case 78:
529
+ this.pushState("md_string");
530
+ break;
531
+ case 79:
532
+ return "NODE_DESCR";
533
+ case 80:
534
+ this.popState();
535
+ break;
536
+ case 81:
537
+ s.getLogger().debug("Lex: Starting string"), this.pushState("string");
538
+ break;
539
+ case 82:
540
+ s.getLogger().debug("LEX ARR: Starting string"), this.pushState("string");
541
+ break;
542
+ case 83:
543
+ return s.getLogger().debug("LEX: NODE_DESCR:", r.yytext), "NODE_DESCR";
544
+ case 84:
545
+ s.getLogger().debug("LEX POPPING"), this.popState();
546
+ break;
547
+ case 85:
548
+ s.getLogger().debug("Lex: =>BAE"), this.pushState("ARROW_DIR");
549
+ break;
550
+ case 86:
551
+ return r.yytext = r.yytext.replace(/^,\s*/, ""), s.getLogger().debug("Lex (right): dir:", r.yytext), "DIR";
552
+ case 87:
553
+ return r.yytext = r.yytext.replace(/^,\s*/, ""), s.getLogger().debug("Lex (left):", r.yytext), "DIR";
554
+ case 88:
555
+ return r.yytext = r.yytext.replace(/^,\s*/, ""), s.getLogger().debug("Lex (x):", r.yytext), "DIR";
556
+ case 89:
557
+ return r.yytext = r.yytext.replace(/^,\s*/, ""), s.getLogger().debug("Lex (y):", r.yytext), "DIR";
558
+ case 90:
559
+ return r.yytext = r.yytext.replace(/^,\s*/, ""), s.getLogger().debug("Lex (up):", r.yytext), "DIR";
560
+ case 91:
561
+ return r.yytext = r.yytext.replace(/^,\s*/, ""), s.getLogger().debug("Lex (down):", r.yytext), "DIR";
562
+ case 92:
563
+ return r.yytext = "]>", s.getLogger().debug("Lex (ARROW_DIR end):", r.yytext), this.popState(), this.popState(), "BLOCK_ARROW_END";
564
+ case 93:
565
+ return s.getLogger().debug("Lex: LINK", "#" + r.yytext + "#"), 15;
566
+ case 94:
567
+ return s.getLogger().debug("Lex: LINK", r.yytext), 15;
568
+ case 95:
569
+ return s.getLogger().debug("Lex: LINK", r.yytext), 15;
570
+ case 96:
571
+ return s.getLogger().debug("Lex: LINK", r.yytext), 15;
572
+ case 97:
573
+ return s.getLogger().debug("Lex: START_LINK", r.yytext), this.pushState("LLABEL"), 16;
574
+ case 98:
575
+ return s.getLogger().debug("Lex: START_LINK", r.yytext), this.pushState("LLABEL"), 16;
576
+ case 99:
577
+ return s.getLogger().debug("Lex: START_LINK", r.yytext), this.pushState("LLABEL"), 16;
578
+ case 100:
579
+ this.pushState("md_string");
580
+ break;
581
+ case 101:
582
+ return s.getLogger().debug("Lex: Starting string"), this.pushState("string"), "LINK_LABEL";
583
+ case 102:
584
+ return this.popState(), s.getLogger().debug("Lex: LINK", "#" + r.yytext + "#"), 15;
585
+ case 103:
586
+ return this.popState(), s.getLogger().debug("Lex: LINK", r.yytext), 15;
587
+ case 104:
588
+ return this.popState(), s.getLogger().debug("Lex: LINK", r.yytext), 15;
589
+ case 105:
590
+ return s.getLogger().debug("Lex: COLON", r.yytext), r.yytext = r.yytext.slice(1), 27;
591
+ }
592
+ },
593
+ rules: [/^(?:block-beta\b)/, /^(?:block\s+)/, /^(?:block\n+)/, /^(?:block:)/, /^(?:[\s]+)/, /^(?:[\n]+)/, /^(?:((\u000D\u000A)|(\u000A)))/, /^(?:columns\s+auto\b)/, /^(?:columns\s+[\d]+)/, /^(?:["][`])/, /^(?:[^`"]+)/, /^(?:[`]["])/, /^(?:["])/, /^(?:["])/, /^(?:[^"]*)/, /^(?:space[:]\d+)/, /^(?:space\b)/, /^(?:default\b)/, /^(?:linkStyle\b)/, /^(?:interpolate\b)/, /^(?:classDef\s+)/, /^(?:DEFAULT\s+)/, /^(?:\w+\s+)/, /^(?:[^\n]*)/, /^(?:class\s+)/, /^(?:(\w+)+((,\s*\w+)*))/, /^(?:[^\n]*)/, /^(?:style\s+)/, /^(?:(\w+)+((,\s*\w+)*))/, /^(?:[^\n]*)/, /^(?:accTitle\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*\{\s*)/, /^(?:[\}])/, /^(?:[^\}]*)/, /^(?:end\b\s*)/, /^(?:\(\(\()/, /^(?:\)\)\))/, /^(?:[\)]\))/, /^(?:\}\})/, /^(?:\})/, /^(?:\(-)/, /^(?:-\))/, /^(?:\(\()/, /^(?:\]\])/, /^(?:\()/, /^(?:\]\))/, /^(?:\\\])/, /^(?:\/\])/, /^(?:\)\])/, /^(?:[\)])/, /^(?:\]>)/, /^(?:[\]])/, /^(?:-\))/, /^(?:\(-)/, /^(?:\)\))/, /^(?:\))/, /^(?:\(\(\()/, /^(?:\(\()/, /^(?:\{\{)/, /^(?:\{)/, /^(?:>)/, /^(?:\(\[)/, /^(?:\()/, /^(?:\[\[)/, /^(?:\[\|)/, /^(?:\[\()/, /^(?:\)\)\))/, /^(?:\[\\)/, /^(?:\[\/)/, /^(?:\[\\)/, /^(?:\[)/, /^(?:<\[)/, /^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/, /^(?:$)/, /^(?:["][`])/, /^(?:["][`])/, /^(?:[^`"]+)/, /^(?:[`]["])/, /^(?:["])/, /^(?:["])/, /^(?:[^"]+)/, /^(?:["])/, /^(?:\]>\s*\()/, /^(?:,?\s*right\s*)/, /^(?:,?\s*left\s*)/, /^(?:,?\s*x\s*)/, /^(?:,?\s*y\s*)/, /^(?:,?\s*up\s*)/, /^(?:,?\s*down\s*)/, /^(?:\)\s*)/, /^(?:\s*[xo<]?--+[-xo>]\s*)/, /^(?:\s*[xo<]?==+[=xo>]\s*)/, /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/, /^(?:\s*~~[\~]+\s*)/, /^(?:\s*[xo<]?--\s*)/, /^(?:\s*[xo<]?==\s*)/, /^(?:\s*[xo<]?-\.\s*)/, /^(?:["][`])/, /^(?:["])/, /^(?:\s*[xo<]?--+[-xo>]\s*)/, /^(?:\s*[xo<]?==+[=xo>]\s*)/, /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/, /^(?::\d+)/],
594
+ conditions: { STYLE_DEFINITION: { rules: [29], inclusive: !1 }, STYLE_STMNT: { rules: [28], inclusive: !1 }, CLASSDEFID: { rules: [23], inclusive: !1 }, CLASSDEF: { rules: [21, 22], inclusive: !1 }, CLASS_STYLE: { rules: [26], inclusive: !1 }, CLASS: { rules: [25], inclusive: !1 }, LLABEL: { rules: [100, 101, 102, 103, 104], inclusive: !1 }, ARROW_DIR: { rules: [86, 87, 88, 89, 90, 91, 92], inclusive: !1 }, BLOCK_ARROW: { rules: [77, 82, 85], inclusive: !1 }, NODE: { rules: [38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 78, 81], inclusive: !1 }, md_string: { rules: [10, 11, 79, 80], inclusive: !1 }, space: { rules: [], inclusive: !1 }, string: { rules: [13, 14, 83, 84], inclusive: !1 }, acc_descr_multiline: { rules: [35, 36], inclusive: !1 }, acc_descr: { rules: [33], inclusive: !1 }, acc_title: { rules: [31], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 15, 16, 17, 18, 19, 20, 24, 27, 30, 32, 34, 37, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 93, 94, 95, 96, 97, 98, 99, 105], inclusive: !0 } }
595
+ };
596
+ return m;
597
+ }();
598
+ D.lexer = A;
599
+ function w() {
600
+ this.yy = {};
601
+ }
602
+ return w.prototype = D, D.Parser = w, new w();
603
+ }();
604
+ ee.parser = ee;
605
+ const ze = ee;
606
+ let $ = {}, ie = [], W = {};
607
+ const ce = "color", he = "fill", Be = "bgFill", ye = ",", Pe = ge();
608
+ let M = {};
609
+ const Fe = (e) => De.sanitizeText(e, Pe), Ye = function(e, o = "") {
610
+ M[e] === void 0 && (M[e] = { id: e, styles: [], textStyles: [] });
611
+ const h = M[e];
612
+ o != null && o.split(ye).forEach((c) => {
613
+ const n = c.replace(/([^;]*);/, "$1").trim();
614
+ if (c.match(ce)) {
615
+ const g = n.replace(he, Be).replace(ce, he);
616
+ h.textStyles.push(g);
617
+ }
618
+ h.styles.push(n);
619
+ });
620
+ }, Ke = function(e, o = "") {
621
+ const h = $[e];
622
+ o != null && (h.styles = o.split(ye));
623
+ }, Xe = function(e, o) {
624
+ e.split(",").forEach(function(h) {
625
+ let c = $[h];
626
+ if (c === void 0) {
627
+ const n = h.trim();
628
+ $[n] = { id: n, type: "na", children: [] }, c = $[n];
629
+ }
630
+ c.classes || (c.classes = []), c.classes.push(o);
631
+ });
632
+ }, pe = (e, o) => {
633
+ const h = e.flat(), c = [];
634
+ for (const n of h) {
635
+ if (n.label && (n.label = Fe(n.label)), n.type === "classDef") {
636
+ Ye(n.id, n.css);
637
+ continue;
638
+ }
639
+ if (n.type === "applyClass") {
640
+ Xe(n.id, (n == null ? void 0 : n.styleClass) || "");
641
+ continue;
642
+ }
643
+ if (n.type === "applyStyles") {
644
+ n != null && n.stylesStr && Ke(n.id, n == null ? void 0 : n.stylesStr);
645
+ continue;
646
+ }
647
+ if (n.type === "column-setting")
648
+ o.columns = n.columns || -1;
649
+ else if (n.type === "edge")
650
+ W[n.id] ? W[n.id]++ : W[n.id] = 1, n.id = W[n.id] + "-" + n.id, ie.push(n);
651
+ else {
652
+ n.label || (n.type === "composite" ? n.label = "" : n.label = n.id);
653
+ const g = !$[n.id];
654
+ if (g ? $[n.id] = n : (n.type !== "na" && ($[n.id].type = n.type), n.label !== n.id && ($[n.id].label = n.label)), n.children && pe(n.children, n), n.type === "space") {
655
+ const a = n.width || 1;
656
+ for (let y = 0; y < a; y++) {
657
+ const b = ve(n);
658
+ b.id = b.id + "-" + y, $[b.id] = b, c.push(b);
659
+ }
660
+ } else g && c.push(n);
661
+ }
662
+ }
663
+ o.children = c;
664
+ };
665
+ let re = [], U = { id: "root", type: "composite", children: [], columns: -1 };
666
+ const We = () => {
667
+ f.debug("Clear called"), Ee(), U = { id: "root", type: "composite", children: [], columns: -1 }, $ = { root: U }, re = [], M = {}, ie = [], W = {};
668
+ };
669
+ function Me(e) {
670
+ switch (f.debug("typeStr2Type", e), e) {
671
+ case "[]":
672
+ return "square";
673
+ case "()":
674
+ return f.debug("we have a round"), "round";
675
+ case "(())":
676
+ return "circle";
677
+ case ">]":
678
+ return "rect_left_inv_arrow";
679
+ case "{}":
680
+ return "diamond";
681
+ case "{{}}":
682
+ return "hexagon";
683
+ case "([])":
684
+ return "stadium";
685
+ case "[[]]":
686
+ return "subroutine";
687
+ case "[()]":
688
+ return "cylinder";
689
+ case "((()))":
690
+ return "doublecircle";
691
+ case "[//]":
692
+ return "lean_right";
693
+ case "[\\\\]":
694
+ return "lean_left";
695
+ case "[/\\]":
696
+ return "trapezoid";
697
+ case "[\\/]":
698
+ return "inv_trapezoid";
699
+ case "<[]>":
700
+ return "block_arrow";
701
+ default:
702
+ return "na";
703
+ }
704
+ }
705
+ function Ue(e) {
706
+ switch (f.debug("typeStr2Type", e), e) {
707
+ case "==":
708
+ return "thick";
709
+ default:
710
+ return "normal";
711
+ }
712
+ }
713
+ function je(e) {
714
+ switch (e.trim()) {
715
+ case "--x":
716
+ return "arrow_cross";
717
+ case "--o":
718
+ return "arrow_circle";
719
+ default:
720
+ return "arrow_point";
721
+ }
722
+ }
723
+ let ue = 0;
724
+ const He = () => (ue++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + ue), qe = (e) => {
725
+ U.children = e, pe(e, U), re = U.children;
726
+ }, Ge = (e) => {
727
+ const o = $[e];
728
+ return o ? o.columns ? o.columns : o.children ? o.children.length : -1 : -1;
729
+ }, Je = () => [...Object.values($)], Ve = () => re || [], Ze = () => ie, Qe = (e) => $[e], et = (e) => {
730
+ $[e.id] = e;
731
+ }, tt = () => console, st = function() {
732
+ return M;
733
+ }, it = {
734
+ getConfig: () => se().block,
735
+ typeStr2Type: Me,
736
+ edgeTypeStr2Type: Ue,
737
+ edgeStrToEdgeData: je,
738
+ getLogger: tt,
739
+ getBlocksFlat: Je,
740
+ getBlocks: Ve,
741
+ getEdges: Ze,
742
+ setHierarchy: qe,
743
+ getBlock: Qe,
744
+ setBlock: et,
745
+ getColumns: Ge,
746
+ getClasses: st,
747
+ clear: We,
748
+ generateId: He
749
+ }, rt = it, G = (e, o) => {
750
+ const h = Ce, c = h(e, "r"), n = h(e, "g"), g = h(e, "b");
751
+ return me(c, n, g, o);
752
+ }, nt = (e) => `.label {
753
+ font-family: ${e.fontFamily};
754
+ color: ${e.nodeTextColor || e.textColor};
755
+ }
756
+ .cluster-label text {
757
+ fill: ${e.titleColor};
758
+ }
759
+ .cluster-label span,p {
760
+ color: ${e.titleColor};
761
+ }
762
+
763
+
764
+
765
+ .label text,span,p {
766
+ fill: ${e.nodeTextColor || e.textColor};
767
+ color: ${e.nodeTextColor || e.textColor};
768
+ }
769
+
770
+ .node rect,
771
+ .node circle,
772
+ .node ellipse,
773
+ .node polygon,
774
+ .node path {
775
+ fill: ${e.mainBkg};
776
+ stroke: ${e.nodeBorder};
777
+ stroke-width: 1px;
778
+ }
779
+ .flowchart-label text {
780
+ text-anchor: middle;
781
+ }
782
+ // .flowchart-label .text-outer-tspan {
783
+ // text-anchor: middle;
784
+ // }
785
+ // .flowchart-label .text-inner-tspan {
786
+ // text-anchor: start;
787
+ // }
788
+
789
+ .node .label {
790
+ text-align: center;
791
+ }
792
+ .node.clickable {
793
+ cursor: pointer;
794
+ }
795
+
796
+ .arrowheadPath {
797
+ fill: ${e.arrowheadColor};
798
+ }
799
+
800
+ .edgePath .path {
801
+ stroke: ${e.lineColor};
802
+ stroke-width: 2.0px;
803
+ }
804
+
805
+ .flowchart-link {
806
+ stroke: ${e.lineColor};
807
+ fill: none;
808
+ }
809
+
810
+ .edgeLabel {
811
+ background-color: ${e.edgeLabelBackground};
812
+ rect {
813
+ opacity: 0.5;
814
+ background-color: ${e.edgeLabelBackground};
815
+ fill: ${e.edgeLabelBackground};
816
+ }
817
+ text-align: center;
818
+ }
819
+
820
+ /* For html labels only */
821
+ .labelBkg {
822
+ background-color: ${G(e.edgeLabelBackground, 0.5)};
823
+ // background-color:
824
+ }
825
+
826
+ .node .cluster {
827
+ // fill: ${G(e.mainBkg, 0.5)};
828
+ fill: ${G(e.clusterBkg, 0.5)};
829
+ stroke: ${G(e.clusterBorder, 0.2)};
830
+ box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
831
+ stroke-width: 1px;
832
+ }
833
+
834
+ .cluster text {
835
+ fill: ${e.titleColor};
836
+ }
837
+
838
+ .cluster span,p {
839
+ color: ${e.titleColor};
840
+ }
841
+ /* .cluster div {
842
+ color: ${e.titleColor};
843
+ } */
844
+
845
+ div.mermaidTooltip {
846
+ position: absolute;
847
+ text-align: center;
848
+ max-width: 200px;
849
+ padding: 2px;
850
+ font-family: ${e.fontFamily};
851
+ font-size: 12px;
852
+ background: ${e.tertiaryColor};
853
+ border: 1px solid ${e.border2};
854
+ border-radius: 2px;
855
+ pointer-events: none;
856
+ z-index: 100;
857
+ }
858
+
859
+ .flowchartTitleText {
860
+ text-anchor: middle;
861
+ font-size: 18px;
862
+ fill: ${e.textColor};
863
+ }
864
+ `, lt = nt;
865
+ function be(e, o, h = !1) {
866
+ var c, n, g;
867
+ const a = e;
868
+ let y = "default";
869
+ (((c = a == null ? void 0 : a.classes) == null ? void 0 : c.length) || 0) > 0 && (y = ((a == null ? void 0 : a.classes) || []).join(" ")), y = y + " flowchart-label";
870
+ let b = 0, d = "", x;
871
+ switch (a.type) {
872
+ case "round":
873
+ b = 5, d = "rect";
874
+ break;
875
+ case "composite":
876
+ b = 0, d = "composite", x = 0;
877
+ break;
878
+ case "square":
879
+ d = "rect";
880
+ break;
881
+ case "diamond":
882
+ d = "question";
883
+ break;
884
+ case "hexagon":
885
+ d = "hexagon";
886
+ break;
887
+ case "block_arrow":
888
+ d = "block_arrow";
889
+ break;
890
+ case "odd":
891
+ d = "rect_left_inv_arrow";
892
+ break;
893
+ case "lean_right":
894
+ d = "lean_right";
895
+ break;
896
+ case "lean_left":
897
+ d = "lean_left";
898
+ break;
899
+ case "trapezoid":
900
+ d = "trapezoid";
901
+ break;
902
+ case "inv_trapezoid":
903
+ d = "inv_trapezoid";
904
+ break;
905
+ case "rect_left_inv_arrow":
906
+ d = "rect_left_inv_arrow";
907
+ break;
908
+ case "circle":
909
+ d = "circle";
910
+ break;
911
+ case "ellipse":
912
+ d = "ellipse";
913
+ break;
914
+ case "stadium":
915
+ d = "stadium";
916
+ break;
917
+ case "subroutine":
918
+ d = "subroutine";
919
+ break;
920
+ case "cylinder":
921
+ d = "cylinder";
922
+ break;
923
+ case "group":
924
+ d = "rect";
925
+ break;
926
+ case "doublecircle":
927
+ d = "doublecircle";
928
+ break;
929
+ default:
930
+ d = "rect";
931
+ }
932
+ const _ = we((a == null ? void 0 : a.styles) || []), T = a.label, k = a.size || { width: 0, height: 0, x: 0, y: 0 };
933
+ return {
934
+ labelStyle: _.labelStyle,
935
+ shape: d,
936
+ labelText: T,
937
+ rx: b,
938
+ ry: b,
939
+ class: y,
940
+ style: _.style,
941
+ id: a.id,
942
+ directions: a.directions,
943
+ width: k.width,
944
+ height: k.height,
945
+ x: k.x,
946
+ y: k.y,
947
+ positioned: h,
948
+ intersect: void 0,
949
+ type: a.type,
950
+ padding: x ?? (((g = (n = se()) == null ? void 0 : n.block) == null ? void 0 : g.padding) || 0)
951
+ };
952
+ }
953
+ async function ot(e, o, h) {
954
+ const c = be(o, h, !1);
955
+ if (c.type === "group")
956
+ return;
957
+ const n = await de(e, c), g = n.node().getBBox(), a = h.getBlock(c.id);
958
+ a.size = { width: g.width, height: g.height, x: 0, y: 0, node: n }, h.setBlock(a), n.remove();
959
+ }
960
+ async function at(e, o, h) {
961
+ const c = be(o, h, !0);
962
+ h.getBlock(c.id).type !== "space" && (await de(e, c), o.intersect = c == null ? void 0 : c.intersect, Ie(c));
963
+ }
964
+ async function ne(e, o, h, c) {
965
+ for (const n of o)
966
+ await c(e, n, h), n.children && await ne(e, n.children, h, c);
967
+ }
968
+ async function ct(e, o, h) {
969
+ await ne(e, o, h, ot);
970
+ }
971
+ async function ht(e, o, h) {
972
+ await ne(e, o, h, at);
973
+ }
974
+ async function ut(e, o, h, c, n) {
975
+ const g = new Ae({
976
+ multigraph: !0,
977
+ compound: !0
978
+ });
979
+ g.setGraph({
980
+ rankdir: "TB",
981
+ nodesep: 10,
982
+ ranksep: 10,
983
+ marginx: 8,
984
+ marginy: 8
985
+ });
986
+ for (const a of h)
987
+ a.size && g.setNode(a.id, {
988
+ width: a.size.width,
989
+ height: a.size.height,
990
+ intersect: a.intersect
991
+ });
992
+ for (const a of o)
993
+ if (a.start && a.end) {
994
+ const y = c.getBlock(a.start), b = c.getBlock(a.end);
995
+ if (y != null && y.size && b != null && b.size) {
996
+ const d = y.size, x = b.size, _ = [
997
+ { x: d.x, y: d.y },
998
+ { x: d.x + (x.x - d.x) / 2, y: d.y + (x.y - d.y) / 2 },
999
+ { x: x.x, y: x.y }
1000
+ ];
1001
+ await $e(
1002
+ e,
1003
+ { v: a.start, w: a.end, name: a.id },
1004
+ {
1005
+ ...a,
1006
+ arrowTypeEnd: a.arrowTypeEnd,
1007
+ arrowTypeStart: a.arrowTypeStart,
1008
+ points: _,
1009
+ classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
1010
+ },
1011
+ void 0,
1012
+ "block",
1013
+ g,
1014
+ n
1015
+ ), a.label && (await Te(e, {
1016
+ ...a,
1017
+ label: a.label,
1018
+ labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;",
1019
+ arrowTypeEnd: a.arrowTypeEnd,
1020
+ arrowTypeStart: a.arrowTypeStart
1021
+ }), await Oe(
1022
+ { ...a, x: _[1].x, y: _[1].y },
1023
+ {
1024
+ originalPath: _
1025
+ }
1026
+ ));
1027
+ }
1028
+ }
1029
+ }
1030
+ const S = ((ae = (oe = ge()) == null ? void 0 : oe.block) == null ? void 0 : ae.padding) || 8;
1031
+ function gt(e, o) {
1032
+ if (e === 0 || !Number.isInteger(e))
1033
+ throw new Error("Columns must be an integer !== 0.");
1034
+ if (o < 0 || !Number.isInteger(o))
1035
+ throw new Error("Position must be a non-negative integer." + o);
1036
+ if (e < 0)
1037
+ return { px: o, py: 0 };
1038
+ if (e === 1)
1039
+ return { px: 0, py: o };
1040
+ const h = o % e, c = Math.floor(o / e);
1041
+ return { px: h, py: c };
1042
+ }
1043
+ const dt = (e) => {
1044
+ let o = 0, h = 0;
1045
+ for (const c of e.children) {
1046
+ const { width: n, height: g, x: a, y } = c.size || { width: 0, height: 0, x: 0, y: 0 };
1047
+ f.debug(
1048
+ "getMaxChildSize abc95 child:",
1049
+ c.id,
1050
+ "width:",
1051
+ n,
1052
+ "height:",
1053
+ g,
1054
+ "x:",
1055
+ a,
1056
+ "y:",
1057
+ y,
1058
+ c.type
1059
+ ), c.type !== "space" && (n > o && (o = n / (e.widthInColumns || 1)), g > h && (h = g));
1060
+ }
1061
+ return { width: o, height: h };
1062
+ };
1063
+ function te(e, o, h = 0, c = 0) {
1064
+ var n, g, a, y, b, d, x, _, T, k, v;
1065
+ f.debug(
1066
+ "setBlockSizes abc95 (start)",
1067
+ e.id,
1068
+ (n = e == null ? void 0 : e.size) == null ? void 0 : n.x,
1069
+ "block width =",
1070
+ e == null ? void 0 : e.size,
1071
+ "sieblingWidth",
1072
+ h
1073
+ ), (g = e == null ? void 0 : e.size) != null && g.width || (e.size = {
1074
+ width: h,
1075
+ height: c,
1076
+ x: 0,
1077
+ y: 0
1078
+ });
1079
+ let L = 0, D = 0;
1080
+ if (((a = e.children) == null ? void 0 : a.length) > 0) {
1081
+ for (const t of e.children)
1082
+ te(t, o);
1083
+ const A = dt(e);
1084
+ L = A.width, D = A.height, f.debug("setBlockSizes abc95 maxWidth of", e.id, ":s children is ", L, D);
1085
+ for (const t of e.children)
1086
+ t.size && (f.debug(
1087
+ `abc95 Setting size of children of ${e.id} id=${t.id} ${L} ${D} ${t.size}`
1088
+ ), t.size.width = L * (t.widthInColumns || 1) + S * ((t.widthInColumns || 1) - 1), t.size.height = D, t.size.x = 0, t.size.y = 0, f.debug(
1089
+ `abc95 updating size of ${e.id} children child:${t.id} maxWidth:${L} maxHeight:${D}`
1090
+ ));
1091
+ for (const t of e.children)
1092
+ te(t, o, L, D);
1093
+ const w = e.columns || -1;
1094
+ let m = 0;
1095
+ for (const t of e.children)
1096
+ m += t.widthInColumns || 1;
1097
+ let s = e.children.length;
1098
+ w > 0 && w < m && (s = w), e.widthInColumns;
1099
+ const r = Math.ceil(m / s);
1100
+ let l = s * (L + S) + S, p = r * (D + S) + S;
1101
+ if (l < h) {
1102
+ f.debug(
1103
+ `Detected to small siebling: abc95 ${e.id} sieblingWidth ${h} sieblingHeight ${c} width ${l}`
1104
+ ), l = h, p = c;
1105
+ const t = (h - s * S - S) / s, u = (c - r * S - S) / r;
1106
+ f.debug("Size indata abc88", e.id, "childWidth", t, "maxWidth", L), f.debug("Size indata abc88", e.id, "childHeight", u, "maxHeight", D), f.debug("Size indata abc88 xSize", s, "padding", S);
1107
+ for (const i of e.children)
1108
+ i.size && (i.size.width = t, i.size.height = u, i.size.x = 0, i.size.y = 0);
1109
+ }
1110
+ if (f.debug(
1111
+ `abc95 (finale calc) ${e.id} xSize ${s} ySize ${r} columns ${w}${e.children.length} width=${Math.max(l, ((y = e.size) == null ? void 0 : y.width) || 0)}`
1112
+ ), l < (((b = e == null ? void 0 : e.size) == null ? void 0 : b.width) || 0)) {
1113
+ l = ((d = e == null ? void 0 : e.size) == null ? void 0 : d.width) || 0;
1114
+ const t = w > 0 ? Math.min(e.children.length, w) : e.children.length;
1115
+ if (t > 0) {
1116
+ const u = (l - t * S - S) / t;
1117
+ f.debug("abc95 (growing to fit) width", e.id, l, (x = e.size) == null ? void 0 : x.width, u);
1118
+ for (const i of e.children)
1119
+ i.size && (i.size.width = u);
1120
+ }
1121
+ }
1122
+ e.size = {
1123
+ width: l,
1124
+ height: p,
1125
+ x: 0,
1126
+ y: 0
1127
+ };
1128
+ }
1129
+ f.debug(
1130
+ "setBlockSizes abc94 (done)",
1131
+ e.id,
1132
+ (_ = e == null ? void 0 : e.size) == null ? void 0 : _.x,
1133
+ (T = e == null ? void 0 : e.size) == null ? void 0 : T.width,
1134
+ (k = e == null ? void 0 : e.size) == null ? void 0 : k.y,
1135
+ (v = e == null ? void 0 : e.size) == null ? void 0 : v.height
1136
+ );
1137
+ }
1138
+ function xe(e, o) {
1139
+ var h, c, n, g, a, y, b, d, x, _, T, k, v, L, D, A, w;
1140
+ f.debug(
1141
+ `abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${(h = e == null ? void 0 : e.size) == null ? void 0 : h.x} y: ${(c = e == null ? void 0 : e.size) == null ? void 0 : c.y} width: ${(n = e == null ? void 0 : e.size) == null ? void 0 : n.width}`
1142
+ );
1143
+ const m = e.columns || -1;
1144
+ if (f.debug("layoutBlocks columns abc95", e.id, "=>", m, e), e.children && // find max width of children
1145
+ e.children.length > 0) {
1146
+ const s = ((a = (g = e == null ? void 0 : e.children[0]) == null ? void 0 : g.size) == null ? void 0 : a.width) || 0, r = e.children.length * s + (e.children.length - 1) * S;
1147
+ f.debug("widthOfChildren 88", r, "posX");
1148
+ let l = 0;
1149
+ f.debug("abc91 block?.size?.x", e.id, (y = e == null ? void 0 : e.size) == null ? void 0 : y.x);
1150
+ let p = (b = e == null ? void 0 : e.size) != null && b.x ? ((d = e == null ? void 0 : e.size) == null ? void 0 : d.x) + (-((x = e == null ? void 0 : e.size) == null ? void 0 : x.width) / 2 || 0) : -S, t = 0;
1151
+ for (const u of e.children) {
1152
+ const i = e;
1153
+ if (!u.size)
1154
+ continue;
1155
+ const { width: O, height: B } = u.size, { px: X, py: C } = gt(m, l);
1156
+ if (C != t && (t = C, p = (_ = e == null ? void 0 : e.size) != null && _.x ? ((T = e == null ? void 0 : e.size) == null ? void 0 : T.x) + (-((k = e == null ? void 0 : e.size) == null ? void 0 : k.width) / 2 || 0) : -S, f.debug("New row in layout for block", e.id, " and child ", u.id, t)), f.debug(
1157
+ `abc89 layout blocks (child) id: ${u.id} Pos: ${l} (px, py) ${X},${C} (${(v = i == null ? void 0 : i.size) == null ? void 0 : v.x},${(L = i == null ? void 0 : i.size) == null ? void 0 : L.y}) parent: ${i.id} width: ${O}${S}`
1158
+ ), i.size) {
1159
+ const P = O / 2;
1160
+ u.size.x = p + S + P, f.debug(
1161
+ `abc91 layout blocks (calc) px, pyid:${u.id} startingPos=X${p} new startingPosX${u.size.x} ${P} padding=${S} width=${O} halfWidth=${P} => x:${u.size.x} y:${u.size.y} ${u.widthInColumns} (width * (child?.w || 1)) / 2 ${O * ((u == null ? void 0 : u.widthInColumns) || 1) / 2}`
1162
+ ), p = u.size.x + P, u.size.y = i.size.y - i.size.height / 2 + C * (B + S) + B / 2 + S, f.debug(
1163
+ `abc88 layout blocks (calc) px, pyid:${u.id}startingPosX${p}${S}${P}=>x:${u.size.x}y:${u.size.y}${u.widthInColumns}(width * (child?.w || 1)) / 2${O * ((u == null ? void 0 : u.widthInColumns) || 1) / 2}`
1164
+ );
1165
+ }
1166
+ u.children && xe(u), l += (u == null ? void 0 : u.widthInColumns) || 1, f.debug("abc88 columnsPos", u, l);
1167
+ }
1168
+ }
1169
+ f.debug(
1170
+ `layout blocks (<==layoutBlocks) ${e.id} x: ${(D = e == null ? void 0 : e.size) == null ? void 0 : D.x} y: ${(A = e == null ? void 0 : e.size) == null ? void 0 : A.y} width: ${(w = e == null ? void 0 : e.size) == null ? void 0 : w.width}`
1171
+ );
1172
+ }
1173
+ function fe(e, { minX: o, minY: h, maxX: c, maxY: n } = { minX: 0, minY: 0, maxX: 0, maxY: 0 }) {
1174
+ if (e.size && e.id !== "root") {
1175
+ const { x: g, y: a, width: y, height: b } = e.size;
1176
+ g - y / 2 < o && (o = g - y / 2), a - b / 2 < h && (h = a - b / 2), g + y / 2 > c && (c = g + y / 2), a + b / 2 > n && (n = a + b / 2);
1177
+ }
1178
+ if (e.children)
1179
+ for (const g of e.children)
1180
+ ({ minX: o, minY: h, maxX: c, maxY: n } = fe(g, { minX: o, minY: h, maxX: c, maxY: n }));
1181
+ return { minX: o, minY: h, maxX: c, maxY: n };
1182
+ }
1183
+ function yt(e) {
1184
+ const o = e.getBlock("root");
1185
+ if (!o)
1186
+ return;
1187
+ te(o, e, 0, 0), xe(o), f.debug("getBlocks", JSON.stringify(o, null, 2));
1188
+ const { minX: h, minY: c, maxX: n, maxY: g } = fe(o), a = g - c, y = n - h;
1189
+ return { x: h, y: c, width: y, height: a };
1190
+ }
1191
+ const pt = function(e, o) {
1192
+ return o.db.getClasses();
1193
+ }, bt = async function(e, o, h, c) {
1194
+ const { securityLevel: n, block: g } = se(), a = c.db;
1195
+ let y;
1196
+ n === "sandbox" && (y = q("#i" + o));
1197
+ const b = n === "sandbox" ? q(y.nodes()[0].contentDocument.body) : q("body"), d = n === "sandbox" ? b.select(`[id="${o}"]`) : q(`[id="${o}"]`);
1198
+ Ne(d, ["point", "circle", "cross"], c.type, o);
1199
+ const x = a.getBlocks(), _ = a.getBlocksFlat(), T = a.getEdges(), k = d.insert("g").attr("class", "block");
1200
+ await ct(k, x, a);
1201
+ const v = yt(a);
1202
+ if (await ht(k, x, a), await ut(k, T, _, a, o), v) {
1203
+ const L = v, D = Math.max(1, Math.round(0.125 * (L.width / L.height))), A = L.height + D + 10, w = L.width + 10, { useMaxWidth: m } = g;
1204
+ _e(d, A, w, !!m), f.debug("Here Bounds", v, L), d.attr(
1205
+ "viewBox",
1206
+ `${L.x - 5} ${L.y - 5} ${L.width + 10} ${L.height + 10}`
1207
+ );
1208
+ }
1209
+ ke(Re);
1210
+ }, xt = {
1211
+ draw: bt,
1212
+ getClasses: pt
1213
+ }, Et = {
1214
+ parser: ze,
1215
+ db: rt,
1216
+ renderer: xt,
1217
+ styles: lt
1218
+ };
1219
+ export {
1220
+ Et as diagram
1221
+ };