@sourcegraph/amp 0.0.1749571294-gef5aa3 → 0.0.1749600114-g5c00b8

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 (61) hide show
  1. package/dist/amp.js +3 -3
  2. package/dist/architectureDiagram-RWNHDUBN-1v8WgxdD.js +4635 -0
  3. package/dist/blockDiagram-XZSR5OGQ-XFBYN-jB.js +2243 -0
  4. package/dist/c4Diagram-6R2MQUNL-B0L0pltn.js +1587 -0
  5. package/dist/chunk-COUQ6RZ3-qd4eG6tc.js +17852 -0
  6. package/dist/chunk-CRQPXCKQ-yjI467Bq.js +65 -0
  7. package/dist/chunk-EFPBJHX4-DdHmqd0M.js +1378 -0
  8. package/dist/chunk-EOAU2GW5-CpRNAcjo.js +253 -0
  9. package/dist/chunk-IHYUGLNO-DJcRQIf7.js +1365 -0
  10. package/dist/chunk-K2ZEYYM2-CbqHhUqy.js +9 -0
  11. package/dist/chunk-Q7VUVKE6-gBSSbdjU.js +24 -0
  12. package/dist/chunk-T2M37SMK-Br8mK30k.js +1411 -0
  13. package/dist/chunk-TGZYFRKZ-BYBLXoJz.js +1331 -0
  14. package/dist/chunk-YJGJQOYZ-BGiSkWF0.js +19 -0
  15. package/dist/classDiagram-LB37KKQG-DhFsEyDS.js +17 -0
  16. package/dist/classDiagram-v2-KFQJBC22-DhFsEyDS.js +17 -0
  17. package/dist/{client-C1WG2nEf.js → client-D-YAg8x6.js} +6 -6
  18. package/dist/{console-DK0gDzNQ.js → console-CoE5Qzyz.js} +41106 -22971
  19. package/dist/create_file.node-Co0Uh1F3.js +21 -0
  20. package/dist/dagre-CMTPJJKG-UDPzd9Iy.js +446 -0
  21. package/dist/diagram-BIPOGRU5-B7TV59-n.js +128 -0
  22. package/dist/diagram-YF4VECWA-LsAZsciQ.js +219 -0
  23. package/dist/{edit_file.node-BH524GkF.js → edit_file.node-CmTZeBc2.js} +11 -11
  24. package/dist/erDiagram-AK44R45H-BWpeEu7D.js +843 -0
  25. package/dist/{executable-5cBRGrsC.js → executable-BE7tfoX5.js} +1 -1
  26. package/dist/{files-CybxYgbE.js → files-DqpRf5q4.js} +10 -10
  27. package/dist/flowDiagram-XARHJDSH-DzpV02UB.js +1618 -0
  28. package/dist/ganttDiagram-H5QQZTZ5-C0BhJTzn.js +1605 -0
  29. package/dist/gitGraphDiagram-XHLTLO3W-0EiOmv44.js +701 -0
  30. package/dist/{glob.node-C6HbLuPt.js → glob.node-DNei8bFS.js} +11 -11
  31. package/dist/{index-C2wo7rRZ.js → index-BcjxaWOc.js} +31 -31
  32. package/dist/infoDiagram-TP2HPDHO-CQX5a0Fc.js +24 -0
  33. package/dist/journeyDiagram-VHRN44N3-C82dEe4G.js +809 -0
  34. package/dist/kanban-definition-K5J3OUUV-xilJcrom.js +718 -0
  35. package/dist/katex-5N2NCDMP-CAsrnb6_.js +11703 -0
  36. package/dist/{list_directory.node-ZQscizpi.js → list_directory.node-CMiNNbXP.js} +1 -1
  37. package/dist/{load-profile-BbmyxO_7.js → load-profile-Cg8XaTx6.js} +1 -1
  38. package/dist/{main-BVP_XL7v.js → main-Dy2VZM_S.js} +15 -15
  39. package/dist/mindmap-definition-TI5ONXTW-BNaRba4R.js +3221 -0
  40. package/dist/{node-DvmQAW7h.js → node-BtG1o_DD.js} +2 -2
  41. package/dist/{node-syWQvN9a.js → node-BulbxvrV.js} +58 -58
  42. package/dist/{node-Cpbjmhrj.js → node-Cp3D7_hw.js} +71 -71
  43. package/dist/{node-Cye82yIV.js → node-CtoBdTQT.js} +3 -3
  44. package/dist/{node-CiFAW-F3.js → node-Ctw1i0nl.js} +12 -12
  45. package/dist/{node-CgVq0JJ9.js → node-D1zxOCuN.js} +1 -1
  46. package/dist/pieDiagram-FPR3CNQC-_30_tQz0.js +120 -0
  47. package/dist/quadrantDiagram-RLP5YTJ2-CTD43GTk.js +1028 -0
  48. package/dist/radar-MK3ICKWK-55CS4JTO-afihMdR4.js +14398 -0
  49. package/dist/{read_file.node-CIdAFiJ6.js → read_file.node-QZ0VCmB2.js} +1 -1
  50. package/dist/requirementDiagram-P5NVWGNK-Sd2_6g8e.js +853 -0
  51. package/dist/sankeyDiagram-C6NZRJHT-D1EcCYaw.js +864 -0
  52. package/dist/sequenceDiagram-6SLVIXKN-CghQTpGf.js +2283 -0
  53. package/dist/stateDiagram-WI5ZVJ5I-Bv21MlSK.js +272 -0
  54. package/dist/stateDiagram-v2-KVDSFUFK-BgP0D8xL.js +17 -0
  55. package/dist/{stdio-DNCc59wT.js → stdio-CCCGI3C7.js} +8 -8
  56. package/dist/storybook.js +7 -7
  57. package/dist/timeline-definition-65575674-BUqRZdJ-.js +800 -0
  58. package/dist/{undo_edit.node-VYuTxRwd.js → undo_edit.node-BkletvTZ.js} +5 -5
  59. package/dist/xychartDiagram-674MFTBU-DjBabATx.js +1291 -0
  60. package/package.json +1 -1
  61. package/dist/create_file.node-DtVTaHj5.js +0 -21
@@ -0,0 +1,1618 @@
1
+ #!/usr/bin/env node
2
+ import { _ as A, P as Pt, A as Z, y as N1, z as m1, Q as Yt, R as Ht, S as st, x as Xt, u as qt, T as Qt, w as Zt, v as Jt, U as $t, L as te, V as ee, W as se, X as ie, Y as et, Z as re, $ as ae, a0 as ne, a1 as ue } from "./console-CoE5Qzyz.js";
3
+ import { g as oe, s as le } from "./chunk-Q7VUVKE6-gBSSbdjU.js";
4
+ var ce = "flowchart-", he = class {
5
+ // cspell:ignore funs
6
+ constructor() {
7
+ this.vertexCounter = 0, this.config = N1(), this.vertices = /* @__PURE__ */ new Map(), this.edges = [], this.classes = /* @__PURE__ */ new Map(), this.subGraphs = [], this.subGraphLookup = /* @__PURE__ */ new Map(), this.tooltips = /* @__PURE__ */ new Map(), this.subCount = 0, this.firstGraphFlag = !0, this.secCount = -1, this.posCrossRef = [], this.funs = [], this.setAccTitle = Xt, this.setAccDescription = qt, this.setDiagramTitle = Qt, this.getAccTitle = Zt, this.getAccDescription = Jt, this.getDiagramTitle = $t, this.funs.push(this.setupToolTips.bind(this)), this.addVertex = this.addVertex.bind(this), this.firstGraph = this.firstGraph.bind(this), this.setDirection = this.setDirection.bind(this), this.addSubGraph = this.addSubGraph.bind(this), this.addLink = this.addLink.bind(this), this.setLink = this.setLink.bind(this), this.updateLink = this.updateLink.bind(this), this.addClass = this.addClass.bind(this), this.setClass = this.setClass.bind(this), this.destructLink = this.destructLink.bind(this), this.setClickEvent = this.setClickEvent.bind(this), this.setTooltip = this.setTooltip.bind(this), this.updateLinkInterpolate = this.updateLinkInterpolate.bind(this), this.setClickFun = this.setClickFun.bind(this), this.bindFunctions = this.bindFunctions.bind(this), this.lex = {
8
+ firstGraph: this.firstGraph.bind(this)
9
+ }, this.clear(), this.setGen("gen-2");
10
+ }
11
+ static {
12
+ A(this, "FlowDB");
13
+ }
14
+ sanitizeText(t) {
15
+ return te.sanitizeText(t, this.config);
16
+ }
17
+ /**
18
+ * Function to lookup domId from id in the graph definition.
19
+ *
20
+ * @param id - id of the node
21
+ */
22
+ lookUpDomId(t) {
23
+ for (const i of this.vertices.values())
24
+ if (i.id === t)
25
+ return i.domId;
26
+ return t;
27
+ }
28
+ /**
29
+ * Function called by parser when a node definition has been found
30
+ */
31
+ addVertex(t, i, r, a, o, p, l = {}, b) {
32
+ if (!t || t.trim().length === 0)
33
+ return;
34
+ let n;
35
+ if (b !== void 0) {
36
+ let D;
37
+ b.includes(`
38
+ `) ? D = b + `
39
+ ` : D = `{
40
+ ` + b + `
41
+ }`, n = ee(D, { schema: se });
42
+ }
43
+ const d = this.edges.find((D) => D.id === t);
44
+ if (d) {
45
+ const D = n;
46
+ D?.animate !== void 0 && (d.animate = D.animate), D?.animation !== void 0 && (d.animation = D.animation);
47
+ return;
48
+ }
49
+ let _, g = this.vertices.get(t);
50
+ if (g === void 0 && (g = {
51
+ id: t,
52
+ labelType: "text",
53
+ domId: ce + t + "-" + this.vertexCounter,
54
+ styles: [],
55
+ classes: []
56
+ }, this.vertices.set(t, g)), this.vertexCounter++, i !== void 0 ? (this.config = N1(), _ = this.sanitizeText(i.text.trim()), g.labelType = i.type, _.startsWith('"') && _.endsWith('"') && (_ = _.substring(1, _.length - 1)), g.text = _) : g.text === void 0 && (g.text = t), r !== void 0 && (g.type = r), a?.forEach((D) => {
57
+ g.styles.push(D);
58
+ }), o?.forEach((D) => {
59
+ g.classes.push(D);
60
+ }), p !== void 0 && (g.dir = p), g.props === void 0 ? g.props = l : l !== void 0 && Object.assign(g.props, l), n !== void 0) {
61
+ if (n.shape) {
62
+ if (n.shape !== n.shape.toLowerCase() || n.shape.includes("_"))
63
+ throw new Error(`No such shape: ${n.shape}. Shape names should be lowercase.`);
64
+ if (!ie(n.shape))
65
+ throw new Error(`No such shape: ${n.shape}.`);
66
+ g.type = n?.shape;
67
+ }
68
+ n?.label && (g.text = n?.label), n?.icon && (g.icon = n?.icon, !n.label?.trim() && g.text === t && (g.text = "")), n?.form && (g.form = n?.form), n?.pos && (g.pos = n?.pos), n?.img && (g.img = n?.img, !n.label?.trim() && g.text === t && (g.text = "")), n?.constraint && (g.constraint = n.constraint), n.w && (g.assetWidth = Number(n.w)), n.h && (g.assetHeight = Number(n.h));
69
+ }
70
+ }
71
+ /**
72
+ * Function called by parser when a link/edge definition has been found
73
+ *
74
+ */
75
+ addSingleLink(t, i, r, a) {
76
+ const l = {
77
+ start: t,
78
+ end: i,
79
+ type: void 0,
80
+ text: "",
81
+ labelType: "text",
82
+ classes: [],
83
+ isUserDefinedId: !1,
84
+ interpolate: this.edges.defaultInterpolate
85
+ };
86
+ Z.info("abc78 Got edge...", l);
87
+ const b = r.text;
88
+ if (b !== void 0 && (l.text = this.sanitizeText(b.text.trim()), l.text.startsWith('"') && l.text.endsWith('"') && (l.text = l.text.substring(1, l.text.length - 1)), l.labelType = b.type), r !== void 0 && (l.type = r.type, l.stroke = r.stroke, l.length = r.length > 10 ? 10 : r.length), a && !this.edges.some((n) => n.id === a))
89
+ l.id = a, l.isUserDefinedId = !0;
90
+ else {
91
+ const n = this.edges.filter((d) => d.start === l.start && d.end === l.end);
92
+ n.length === 0 ? l.id = et(l.start, l.end, { counter: 0, prefix: "L" }) : l.id = et(l.start, l.end, {
93
+ counter: n.length + 1,
94
+ prefix: "L"
95
+ });
96
+ }
97
+ if (this.edges.length < (this.config.maxEdges ?? 500))
98
+ Z.info("Pushing edge..."), this.edges.push(l);
99
+ else
100
+ throw new Error(
101
+ `Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
102
+
103
+ Initialize mermaid with maxEdges set to a higher number to allow more edges.
104
+ You cannot set this config via configuration inside the diagram as it is a secure config.
105
+ You have to call mermaid.initialize.`
106
+ );
107
+ }
108
+ isLinkData(t) {
109
+ return t !== null && typeof t == "object" && "id" in t && typeof t.id == "string";
110
+ }
111
+ addLink(t, i, r) {
112
+ const a = this.isLinkData(r) ? r.id.replace("@", "") : void 0;
113
+ Z.info("addLink", t, i, a);
114
+ for (const o of t)
115
+ for (const p of i) {
116
+ const l = o === t[t.length - 1], b = p === i[0];
117
+ l && b ? this.addSingleLink(o, p, r, a) : this.addSingleLink(o, p, r, void 0);
118
+ }
119
+ }
120
+ /**
121
+ * Updates a link's line interpolation algorithm
122
+ */
123
+ updateLinkInterpolate(t, i) {
124
+ t.forEach((r) => {
125
+ r === "default" ? this.edges.defaultInterpolate = i : this.edges[r].interpolate = i;
126
+ });
127
+ }
128
+ /**
129
+ * Updates a link with a style
130
+ *
131
+ */
132
+ updateLink(t, i) {
133
+ t.forEach((r) => {
134
+ if (typeof r == "number" && r >= this.edges.length)
135
+ throw new Error(
136
+ `The index ${r} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length - 1}. (Help: Ensure that the index is within the range of existing edges.)`
137
+ );
138
+ r === "default" ? this.edges.defaultStyle = i : (this.edges[r].style = i, (this.edges[r]?.style?.length ?? 0) > 0 && !this.edges[r]?.style?.some((a) => a?.startsWith("fill")) && this.edges[r]?.style?.push("fill:none"));
139
+ });
140
+ }
141
+ addClass(t, i) {
142
+ const r = i.join().replace(/\\,/g, "§§§").replace(/,/g, ";").replace(/§§§/g, ",").split(";");
143
+ t.split(",").forEach((a) => {
144
+ let o = this.classes.get(a);
145
+ o === void 0 && (o = { id: a, styles: [], textStyles: [] }, this.classes.set(a, o)), r?.forEach((p) => {
146
+ if (/color/.exec(p)) {
147
+ const l = p.replace("fill", "bgFill");
148
+ o.textStyles.push(l);
149
+ }
150
+ o.styles.push(p);
151
+ });
152
+ });
153
+ }
154
+ /**
155
+ * Called by parser when a graph definition is found, stores the direction of the chart.
156
+ *
157
+ */
158
+ setDirection(t) {
159
+ this.direction = t, /.*</.exec(this.direction) && (this.direction = "RL"), /.*\^/.exec(this.direction) && (this.direction = "BT"), /.*>/.exec(this.direction) && (this.direction = "LR"), /.*v/.exec(this.direction) && (this.direction = "TB"), this.direction === "TD" && (this.direction = "TB");
160
+ }
161
+ /**
162
+ * Called by parser when a special node is found, e.g. a clickable element.
163
+ *
164
+ * @param ids - Comma separated list of ids
165
+ * @param className - Class to add
166
+ */
167
+ setClass(t, i) {
168
+ for (const r of t.split(",")) {
169
+ const a = this.vertices.get(r);
170
+ a && a.classes.push(i);
171
+ const o = this.edges.find((l) => l.id === r);
172
+ o && o.classes.push(i);
173
+ const p = this.subGraphLookup.get(r);
174
+ p && p.classes.push(i);
175
+ }
176
+ }
177
+ setTooltip(t, i) {
178
+ if (i !== void 0) {
179
+ i = this.sanitizeText(i);
180
+ for (const r of t.split(","))
181
+ this.tooltips.set(this.version === "gen-1" ? this.lookUpDomId(r) : r, i);
182
+ }
183
+ }
184
+ setClickFun(t, i, r) {
185
+ const a = this.lookUpDomId(t);
186
+ if (N1().securityLevel !== "loose" || i === void 0)
187
+ return;
188
+ let o = [];
189
+ if (typeof r == "string") {
190
+ o = r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
191
+ for (let l = 0; l < o.length; l++) {
192
+ let b = o[l].trim();
193
+ b.startsWith('"') && b.endsWith('"') && (b = b.substr(1, b.length - 2)), o[l] = b;
194
+ }
195
+ }
196
+ o.length === 0 && o.push(t);
197
+ const p = this.vertices.get(t);
198
+ p && (p.haveCallback = !0, this.funs.push(() => {
199
+ const l = document.querySelector(`[id="${a}"]`);
200
+ l !== null && l.addEventListener(
201
+ "click",
202
+ () => {
203
+ st.runFunc(i, ...o);
204
+ },
205
+ !1
206
+ );
207
+ }));
208
+ }
209
+ /**
210
+ * Called by parser when a link is found. Adds the URL to the vertex data.
211
+ *
212
+ * @param ids - Comma separated list of ids
213
+ * @param linkStr - URL to create a link for
214
+ * @param target - Target attribute for the link
215
+ */
216
+ setLink(t, i, r) {
217
+ t.split(",").forEach((a) => {
218
+ const o = this.vertices.get(a);
219
+ o !== void 0 && (o.link = st.formatUrl(i, this.config), o.linkTarget = r);
220
+ }), this.setClass(t, "clickable");
221
+ }
222
+ getTooltip(t) {
223
+ return this.tooltips.get(t);
224
+ }
225
+ /**
226
+ * Called by parser when a click definition is found. Registers an event handler.
227
+ *
228
+ * @param ids - Comma separated list of ids
229
+ * @param functionName - Function to be called on click
230
+ * @param functionArgs - Arguments to be passed to the function
231
+ */
232
+ setClickEvent(t, i, r) {
233
+ t.split(",").forEach((a) => {
234
+ this.setClickFun(a, i, r);
235
+ }), this.setClass(t, "clickable");
236
+ }
237
+ bindFunctions(t) {
238
+ this.funs.forEach((i) => {
239
+ i(t);
240
+ });
241
+ }
242
+ getDirection() {
243
+ return this.direction?.trim();
244
+ }
245
+ /**
246
+ * Retrieval function for fetching the found nodes after parsing has completed.
247
+ *
248
+ */
249
+ getVertices() {
250
+ return this.vertices;
251
+ }
252
+ /**
253
+ * Retrieval function for fetching the found links after parsing has completed.
254
+ *
255
+ */
256
+ getEdges() {
257
+ return this.edges;
258
+ }
259
+ /**
260
+ * Retrieval function for fetching the found class definitions after parsing has completed.
261
+ *
262
+ */
263
+ getClasses() {
264
+ return this.classes;
265
+ }
266
+ setupToolTips(t) {
267
+ let i = m1(".mermaidTooltip");
268
+ (i._groups || i)[0][0] === null && (i = m1("body").append("div").attr("class", "mermaidTooltip").style("opacity", 0)), m1(t).select("svg").selectAll("g.node").on("mouseover", (o) => {
269
+ const p = m1(o.currentTarget);
270
+ if (p.attr("title") === null)
271
+ return;
272
+ const b = o.currentTarget?.getBoundingClientRect();
273
+ i.transition().duration(200).style("opacity", ".9"), i.text(p.attr("title")).style("left", window.scrollX + b.left + (b.right - b.left) / 2 + "px").style("top", window.scrollY + b.bottom + "px"), i.html(i.html().replace(/&lt;br\/&gt;/g, "<br/>")), p.classed("hover", !0);
274
+ }).on("mouseout", (o) => {
275
+ i.transition().duration(500).style("opacity", 0), m1(o.currentTarget).classed("hover", !1);
276
+ });
277
+ }
278
+ /**
279
+ * Clears the internal graph db so that a new graph can be parsed.
280
+ *
281
+ */
282
+ clear(t = "gen-2") {
283
+ this.vertices = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(), this.edges = [], this.funs = [this.setupToolTips.bind(this)], this.subGraphs = [], this.subGraphLookup = /* @__PURE__ */ new Map(), this.subCount = 0, this.tooltips = /* @__PURE__ */ new Map(), this.firstGraphFlag = !0, this.version = t, this.config = N1(), re();
284
+ }
285
+ setGen(t) {
286
+ this.version = t || "gen-2";
287
+ }
288
+ defaultStyle() {
289
+ return "fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;";
290
+ }
291
+ addSubGraph(t, i, r) {
292
+ let a = t.text.trim(), o = r.text;
293
+ t === r && /\s/.exec(r.text) && (a = void 0);
294
+ const p = /* @__PURE__ */ A((d) => {
295
+ const _ = { boolean: {}, number: {}, string: {} }, g = [];
296
+ let D;
297
+ return { nodeList: d.filter(function(k) {
298
+ const x = typeof k;
299
+ return k.stmt && k.stmt === "dir" ? (D = k.value, !1) : k.trim() === "" ? !1 : x in _ ? _[x].hasOwnProperty(k) ? !1 : _[x][k] = !0 : g.includes(k) ? !1 : g.push(k);
300
+ }), dir: D };
301
+ }, "uniq"), { nodeList: l, dir: b } = p(i.flat());
302
+ if (this.version === "gen-1")
303
+ for (let d = 0; d < l.length; d++)
304
+ l[d] = this.lookUpDomId(l[d]);
305
+ a = a ?? "subGraph" + this.subCount, o = o || "", o = this.sanitizeText(o), this.subCount = this.subCount + 1;
306
+ const n = {
307
+ id: a,
308
+ nodes: l,
309
+ title: o.trim(),
310
+ classes: [],
311
+ dir: b,
312
+ labelType: r.type
313
+ };
314
+ return Z.info("Adding", n.id, n.nodes, n.dir), n.nodes = this.makeUniq(n, this.subGraphs).nodes, this.subGraphs.push(n), this.subGraphLookup.set(a, n), a;
315
+ }
316
+ getPosForId(t) {
317
+ for (const [i, r] of this.subGraphs.entries())
318
+ if (r.id === t)
319
+ return i;
320
+ return -1;
321
+ }
322
+ indexNodes2(t, i) {
323
+ const r = this.subGraphs[i].nodes;
324
+ if (this.secCount = this.secCount + 1, this.secCount > 2e3)
325
+ return {
326
+ result: !1,
327
+ count: 0
328
+ };
329
+ if (this.posCrossRef[this.secCount] = i, this.subGraphs[i].id === t)
330
+ return {
331
+ result: !0,
332
+ count: 0
333
+ };
334
+ let a = 0, o = 1;
335
+ for (; a < r.length; ) {
336
+ const p = this.getPosForId(r[a]);
337
+ if (p >= 0) {
338
+ const l = this.indexNodes2(t, p);
339
+ if (l.result)
340
+ return {
341
+ result: !0,
342
+ count: o + l.count
343
+ };
344
+ o = o + l.count;
345
+ }
346
+ a = a + 1;
347
+ }
348
+ return {
349
+ result: !1,
350
+ count: o
351
+ };
352
+ }
353
+ getDepthFirstPos(t) {
354
+ return this.posCrossRef[t];
355
+ }
356
+ indexNodes() {
357
+ this.secCount = -1, this.subGraphs.length > 0 && this.indexNodes2("none", this.subGraphs.length - 1);
358
+ }
359
+ getSubGraphs() {
360
+ return this.subGraphs;
361
+ }
362
+ firstGraph() {
363
+ return this.firstGraphFlag ? (this.firstGraphFlag = !1, !0) : !1;
364
+ }
365
+ destructStartLink(t) {
366
+ let i = t.trim(), r = "arrow_open";
367
+ switch (i[0]) {
368
+ case "<":
369
+ r = "arrow_point", i = i.slice(1);
370
+ break;
371
+ case "x":
372
+ r = "arrow_cross", i = i.slice(1);
373
+ break;
374
+ case "o":
375
+ r = "arrow_circle", i = i.slice(1);
376
+ break;
377
+ }
378
+ let a = "normal";
379
+ return i.includes("=") && (a = "thick"), i.includes(".") && (a = "dotted"), { type: r, stroke: a };
380
+ }
381
+ countChar(t, i) {
382
+ const r = i.length;
383
+ let a = 0;
384
+ for (let o = 0; o < r; ++o)
385
+ i[o] === t && ++a;
386
+ return a;
387
+ }
388
+ destructEndLink(t) {
389
+ const i = t.trim();
390
+ let r = i.slice(0, -1), a = "arrow_open";
391
+ switch (i.slice(-1)) {
392
+ case "x":
393
+ a = "arrow_cross", i.startsWith("x") && (a = "double_" + a, r = r.slice(1));
394
+ break;
395
+ case ">":
396
+ a = "arrow_point", i.startsWith("<") && (a = "double_" + a, r = r.slice(1));
397
+ break;
398
+ case "o":
399
+ a = "arrow_circle", i.startsWith("o") && (a = "double_" + a, r = r.slice(1));
400
+ break;
401
+ }
402
+ let o = "normal", p = r.length - 1;
403
+ r.startsWith("=") && (o = "thick"), r.startsWith("~") && (o = "invisible");
404
+ const l = this.countChar(".", r);
405
+ return l && (o = "dotted", p = l), { type: a, stroke: o, length: p };
406
+ }
407
+ destructLink(t, i) {
408
+ const r = this.destructEndLink(t);
409
+ let a;
410
+ if (i) {
411
+ if (a = this.destructStartLink(i), a.stroke !== r.stroke)
412
+ return { type: "INVALID", stroke: "INVALID" };
413
+ if (a.type === "arrow_open")
414
+ a.type = r.type;
415
+ else {
416
+ if (a.type !== r.type)
417
+ return { type: "INVALID", stroke: "INVALID" };
418
+ a.type = "double_" + a.type;
419
+ }
420
+ return a.type === "double_arrow" && (a.type = "double_arrow_point"), a.length = r.length, a;
421
+ }
422
+ return r;
423
+ }
424
+ // Todo optimizer this by caching existing nodes
425
+ exists(t, i) {
426
+ for (const r of t)
427
+ if (r.nodes.includes(i))
428
+ return !0;
429
+ return !1;
430
+ }
431
+ /**
432
+ * Deletes an id from all subgraphs
433
+ *
434
+ */
435
+ makeUniq(t, i) {
436
+ const r = [];
437
+ return t.nodes.forEach((a, o) => {
438
+ this.exists(i, a) || r.push(t.nodes[o]);
439
+ }), { nodes: r };
440
+ }
441
+ getTypeFromVertex(t) {
442
+ if (t.img)
443
+ return "imageSquare";
444
+ if (t.icon)
445
+ return t.form === "circle" ? "iconCircle" : t.form === "square" ? "iconSquare" : t.form === "rounded" ? "iconRounded" : "icon";
446
+ switch (t.type) {
447
+ case "square":
448
+ case void 0:
449
+ return "squareRect";
450
+ case "round":
451
+ return "roundedRect";
452
+ case "ellipse":
453
+ return "ellipse";
454
+ default:
455
+ return t.type;
456
+ }
457
+ }
458
+ findNode(t, i) {
459
+ return t.find((r) => r.id === i);
460
+ }
461
+ destructEdgeType(t) {
462
+ let i = "none", r = "arrow_point";
463
+ switch (t) {
464
+ case "arrow_point":
465
+ case "arrow_circle":
466
+ case "arrow_cross":
467
+ r = t;
468
+ break;
469
+ case "double_arrow_point":
470
+ case "double_arrow_circle":
471
+ case "double_arrow_cross":
472
+ i = t.replace("double_", ""), r = i;
473
+ break;
474
+ }
475
+ return { arrowTypeStart: i, arrowTypeEnd: r };
476
+ }
477
+ addNodeFromVertex(t, i, r, a, o, p) {
478
+ const l = r.get(t.id), b = a.get(t.id) ?? !1, n = this.findNode(i, t.id);
479
+ if (n)
480
+ n.cssStyles = t.styles, n.cssCompiledStyles = this.getCompiledStyles(t.classes), n.cssClasses = t.classes.join(" ");
481
+ else {
482
+ const d = {
483
+ id: t.id,
484
+ label: t.text,
485
+ labelStyle: "",
486
+ parentId: l,
487
+ padding: o.flowchart?.padding || 8,
488
+ cssStyles: t.styles,
489
+ cssCompiledStyles: this.getCompiledStyles(["default", "node", ...t.classes]),
490
+ cssClasses: "default " + t.classes.join(" "),
491
+ dir: t.dir,
492
+ domId: t.domId,
493
+ look: p,
494
+ link: t.link,
495
+ linkTarget: t.linkTarget,
496
+ tooltip: this.getTooltip(t.id),
497
+ icon: t.icon,
498
+ pos: t.pos,
499
+ img: t.img,
500
+ assetWidth: t.assetWidth,
501
+ assetHeight: t.assetHeight,
502
+ constraint: t.constraint
503
+ };
504
+ b ? i.push({
505
+ ...d,
506
+ isGroup: !0,
507
+ shape: "rect"
508
+ }) : i.push({
509
+ ...d,
510
+ isGroup: !1,
511
+ shape: this.getTypeFromVertex(t)
512
+ });
513
+ }
514
+ }
515
+ getCompiledStyles(t) {
516
+ let i = [];
517
+ for (const r of t) {
518
+ const a = this.classes.get(r);
519
+ a?.styles && (i = [...i, ...a.styles ?? []].map((o) => o.trim())), a?.textStyles && (i = [...i, ...a.textStyles ?? []].map((o) => o.trim()));
520
+ }
521
+ return i;
522
+ }
523
+ getData() {
524
+ const t = N1(), i = [], r = [], a = this.getSubGraphs(), o = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map();
525
+ for (let n = a.length - 1; n >= 0; n--) {
526
+ const d = a[n];
527
+ d.nodes.length > 0 && p.set(d.id, !0);
528
+ for (const _ of d.nodes)
529
+ o.set(_, d.id);
530
+ }
531
+ for (let n = a.length - 1; n >= 0; n--) {
532
+ const d = a[n];
533
+ i.push({
534
+ id: d.id,
535
+ label: d.title,
536
+ labelStyle: "",
537
+ parentId: o.get(d.id),
538
+ padding: 8,
539
+ cssCompiledStyles: this.getCompiledStyles(d.classes),
540
+ cssClasses: d.classes.join(" "),
541
+ shape: "rect",
542
+ dir: d.dir,
543
+ isGroup: !0,
544
+ look: t.look
545
+ });
546
+ }
547
+ this.getVertices().forEach((n) => {
548
+ this.addNodeFromVertex(n, i, o, p, t, t.look || "classic");
549
+ });
550
+ const b = this.getEdges();
551
+ return b.forEach((n, d) => {
552
+ const { arrowTypeStart: _, arrowTypeEnd: g } = this.destructEdgeType(n.type), D = [...b.defaultStyle ?? []];
553
+ n.style && D.push(...n.style);
554
+ const K = {
555
+ id: et(n.start, n.end, { counter: d, prefix: "L" }, n.id),
556
+ isUserDefinedId: n.isUserDefinedId,
557
+ start: n.start,
558
+ end: n.end,
559
+ type: n.type ?? "normal",
560
+ label: n.text,
561
+ labelpos: "c",
562
+ thickness: n.stroke,
563
+ minlen: n.length,
564
+ classes: n?.stroke === "invisible" ? "" : "edge-thickness-normal edge-pattern-solid flowchart-link",
565
+ arrowTypeStart: n?.stroke === "invisible" || n?.type === "arrow_open" ? "none" : _,
566
+ arrowTypeEnd: n?.stroke === "invisible" || n?.type === "arrow_open" ? "none" : g,
567
+ arrowheadStyle: "fill: #333",
568
+ cssCompiledStyles: this.getCompiledStyles(n.classes),
569
+ labelStyle: D,
570
+ style: D,
571
+ pattern: n.stroke,
572
+ look: t.look,
573
+ animate: n.animate,
574
+ animation: n.animation,
575
+ curve: n.interpolate || this.edges.defaultInterpolate || t.flowchart?.curve
576
+ };
577
+ r.push(K);
578
+ }), { nodes: i, edges: r, other: {}, config: t };
579
+ }
580
+ defaultConfig() {
581
+ return ae.flowchart;
582
+ }
583
+ }, de = /* @__PURE__ */ A(function(t, i) {
584
+ return i.db.getClasses();
585
+ }, "getClasses"), pe = /* @__PURE__ */ A(async function(t, i, r, a) {
586
+ Z.info("REF0:"), Z.info("Drawing state diagram (v2)", i);
587
+ const { securityLevel: o, flowchart: p, layout: l } = N1();
588
+ let b;
589
+ o === "sandbox" && (b = m1("#i" + i));
590
+ const n = o === "sandbox" ? b.nodes()[0].contentDocument : document;
591
+ Z.debug("Before getData: ");
592
+ const d = a.db.getData();
593
+ Z.debug("Data: ", d);
594
+ const _ = oe(i, o), g = a.db.getDirection();
595
+ d.type = a.type, d.layoutAlgorithm = Yt(l), d.layoutAlgorithm === "dagre" && l === "elk" && Z.warn(
596
+ "flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."
597
+ ), d.direction = g, d.nodeSpacing = p?.nodeSpacing || 50, d.rankSpacing = p?.rankSpacing || 50, d.markers = ["point", "circle", "cross"], d.diagramId = i, Z.debug("REF1:", d), await Ht(d, _);
598
+ const D = d.config.flowchart?.diagramPadding ?? 8;
599
+ st.insertTitle(
600
+ _,
601
+ "flowchartTitleText",
602
+ p?.titleTopMargin || 0,
603
+ a.db.getDiagramTitle()
604
+ ), le(_, D, "flowchart", p?.useMaxWidth || !1);
605
+ for (const K of d.nodes) {
606
+ const k = m1(`#${i} [id="${K.id}"]`);
607
+ if (!k || !K.link)
608
+ continue;
609
+ const x = n.createElementNS("http://www.w3.org/2000/svg", "a");
610
+ x.setAttributeNS("http://www.w3.org/2000/svg", "class", K.cssClasses), x.setAttributeNS("http://www.w3.org/2000/svg", "rel", "noopener"), o === "sandbox" ? x.setAttributeNS("http://www.w3.org/2000/svg", "target", "_top") : K.linkTarget && x.setAttributeNS("http://www.w3.org/2000/svg", "target", K.linkTarget);
611
+ const p1 = k.insert(function() {
612
+ return x;
613
+ }, ":first-child"), f1 = k.select(".label-container");
614
+ f1 && p1.append(function() {
615
+ return f1.node();
616
+ });
617
+ const g1 = k.select(".label");
618
+ g1 && p1.append(function() {
619
+ return g1.node();
620
+ });
621
+ }
622
+ }, "draw"), fe = {
623
+ getClasses: de,
624
+ draw: pe
625
+ }, it = function() {
626
+ var t = /* @__PURE__ */ A(function(d1, c, h, f) {
627
+ for (h = h || {}, f = d1.length; f--; h[d1[f]] = c) ;
628
+ return h;
629
+ }, "o"), i = [1, 4], r = [1, 3], a = [1, 5], o = [1, 8, 9, 10, 11, 27, 34, 36, 38, 44, 60, 84, 85, 86, 87, 88, 89, 102, 105, 106, 109, 111, 114, 115, 116, 121, 122, 123, 124], p = [2, 2], l = [1, 13], b = [1, 14], n = [1, 15], d = [1, 16], _ = [1, 23], g = [1, 25], D = [1, 26], K = [1, 27], k = [1, 49], x = [1, 48], p1 = [1, 29], f1 = [1, 30], g1 = [1, 31], P1 = [1, 32], O1 = [1, 33], V = [1, 44], L = [1, 46], w = [1, 42], I = [1, 47], R = [1, 43], N = [1, 50], G = [1, 45], P = [1, 51], O = [1, 52], M1 = [1, 34], U1 = [1, 35], W1 = [1, 36], z1 = [1, 37], c1 = [1, 57], T = [1, 8, 9, 10, 11, 27, 32, 34, 36, 38, 44, 60, 84, 85, 86, 87, 88, 89, 102, 105, 106, 109, 111, 114, 115, 116, 121, 122, 123, 124], J = [1, 61], $ = [1, 60], t1 = [1, 62], E1 = [8, 9, 11, 75, 77, 78], rt = [1, 78], C1 = [1, 91], S1 = [1, 96], D1 = [1, 95], x1 = [1, 92], T1 = [1, 88], y1 = [1, 94], F1 = [1, 90], _1 = [1, 97], B1 = [1, 93], v1 = [1, 98], V1 = [1, 89], b1 = [8, 9, 10, 11, 40, 75, 77, 78], U = [8, 9, 10, 11, 40, 46, 75, 77, 78], Y = [8, 9, 10, 11, 29, 40, 44, 46, 48, 50, 52, 54, 56, 58, 60, 63, 65, 67, 68, 70, 75, 77, 78, 89, 102, 105, 106, 109, 111, 114, 115, 116], at = [8, 9, 11, 44, 60, 75, 77, 78, 89, 102, 105, 106, 109, 111, 114, 115, 116], L1 = [44, 60, 89, 102, 105, 106, 109, 111, 114, 115, 116], nt = [1, 121], ut = [1, 122], j1 = [1, 124], K1 = [1, 123], ot = [44, 60, 62, 74, 89, 102, 105, 106, 109, 111, 114, 115, 116], lt = [1, 133], ct = [1, 147], ht = [1, 148], dt = [1, 149], pt = [1, 150], ft = [1, 135], gt = [1, 137], bt = [1, 141], At = [1, 142], kt = [1, 143], mt = [1, 144], Et = [1, 145], Ct = [1, 146], St = [1, 151], Dt = [1, 152], xt = [1, 131], Tt = [1, 132], yt = [1, 139], Ft = [1, 134], _t = [1, 138], Bt = [1, 136], q1 = [8, 9, 10, 11, 27, 32, 34, 36, 38, 44, 60, 84, 85, 86, 87, 88, 89, 102, 105, 106, 109, 111, 114, 115, 116, 121, 122, 123, 124], vt = [1, 154], Vt = [1, 156], B = [8, 9, 11], H = [8, 9, 10, 11, 14, 44, 60, 89, 105, 106, 109, 111, 114, 115, 116], m = [1, 176], W = [1, 172], z = [1, 173], E = [1, 177], C = [1, 174], S = [1, 175], w1 = [77, 116, 119], y = [8, 9, 10, 11, 12, 14, 27, 29, 32, 44, 60, 75, 84, 85, 86, 87, 88, 89, 90, 105, 109, 111, 114, 115, 116], Lt = [10, 106], h1 = [31, 49, 51, 53, 55, 57, 62, 64, 66, 67, 69, 71, 116, 117, 118], e1 = [1, 247], s1 = [1, 245], i1 = [1, 249], r1 = [1, 243], a1 = [1, 244], n1 = [1, 246], u1 = [1, 248], o1 = [1, 250], I1 = [1, 268], wt = [8, 9, 11, 106], Q = [8, 9, 10, 11, 60, 84, 105, 106, 109, 110, 111, 112], Q1 = {
630
+ trace: /* @__PURE__ */ A(function() {
631
+ }, "trace"),
632
+ yy: {},
633
+ symbols_: { error: 2, start: 3, graphConfig: 4, document: 5, line: 6, statement: 7, SEMI: 8, NEWLINE: 9, SPACE: 10, EOF: 11, GRAPH: 12, NODIR: 13, DIR: 14, FirstStmtSeparator: 15, ending: 16, endToken: 17, spaceList: 18, spaceListNewline: 19, vertexStatement: 20, separator: 21, styleStatement: 22, linkStyleStatement: 23, classDefStatement: 24, classStatement: 25, clickStatement: 26, subgraph: 27, textNoTags: 28, SQS: 29, text: 30, SQE: 31, end: 32, direction: 33, acc_title: 34, acc_title_value: 35, acc_descr: 36, acc_descr_value: 37, acc_descr_multiline_value: 38, shapeData: 39, SHAPE_DATA: 40, link: 41, node: 42, styledVertex: 43, AMP: 44, vertex: 45, STYLE_SEPARATOR: 46, idString: 47, DOUBLECIRCLESTART: 48, DOUBLECIRCLEEND: 49, PS: 50, PE: 51, "(-": 52, "-)": 53, STADIUMSTART: 54, STADIUMEND: 55, SUBROUTINESTART: 56, SUBROUTINEEND: 57, VERTEX_WITH_PROPS_START: 58, "NODE_STRING[field]": 59, COLON: 60, "NODE_STRING[value]": 61, PIPE: 62, CYLINDERSTART: 63, CYLINDEREND: 64, DIAMOND_START: 65, DIAMOND_STOP: 66, TAGEND: 67, TRAPSTART: 68, TRAPEND: 69, INVTRAPSTART: 70, INVTRAPEND: 71, linkStatement: 72, arrowText: 73, TESTSTR: 74, START_LINK: 75, edgeText: 76, LINK: 77, LINK_ID: 78, edgeTextToken: 79, STR: 80, MD_STR: 81, textToken: 82, keywords: 83, STYLE: 84, LINKSTYLE: 85, CLASSDEF: 86, CLASS: 87, CLICK: 88, DOWN: 89, UP: 90, textNoTagsToken: 91, stylesOpt: 92, "idString[vertex]": 93, "idString[class]": 94, CALLBACKNAME: 95, CALLBACKARGS: 96, HREF: 97, LINK_TARGET: 98, "STR[link]": 99, "STR[tooltip]": 100, alphaNum: 101, DEFAULT: 102, numList: 103, INTERPOLATE: 104, NUM: 105, COMMA: 106, style: 107, styleComponent: 108, NODE_STRING: 109, UNIT: 110, BRKT: 111, PCT: 112, idStringToken: 113, MINUS: 114, MULT: 115, UNICODE_TEXT: 116, TEXT: 117, TAGSTART: 118, EDGE_TEXT: 119, alphaNumToken: 120, direction_tb: 121, direction_bt: 122, direction_rl: 123, direction_lr: 124, $accept: 0, $end: 1 },
634
+ terminals_: { 2: "error", 8: "SEMI", 9: "NEWLINE", 10: "SPACE", 11: "EOF", 12: "GRAPH", 13: "NODIR", 14: "DIR", 27: "subgraph", 29: "SQS", 31: "SQE", 32: "end", 34: "acc_title", 35: "acc_title_value", 36: "acc_descr", 37: "acc_descr_value", 38: "acc_descr_multiline_value", 40: "SHAPE_DATA", 44: "AMP", 46: "STYLE_SEPARATOR", 48: "DOUBLECIRCLESTART", 49: "DOUBLECIRCLEEND", 50: "PS", 51: "PE", 52: "(-", 53: "-)", 54: "STADIUMSTART", 55: "STADIUMEND", 56: "SUBROUTINESTART", 57: "SUBROUTINEEND", 58: "VERTEX_WITH_PROPS_START", 59: "NODE_STRING[field]", 60: "COLON", 61: "NODE_STRING[value]", 62: "PIPE", 63: "CYLINDERSTART", 64: "CYLINDEREND", 65: "DIAMOND_START", 66: "DIAMOND_STOP", 67: "TAGEND", 68: "TRAPSTART", 69: "TRAPEND", 70: "INVTRAPSTART", 71: "INVTRAPEND", 74: "TESTSTR", 75: "START_LINK", 77: "LINK", 78: "LINK_ID", 80: "STR", 81: "MD_STR", 84: "STYLE", 85: "LINKSTYLE", 86: "CLASSDEF", 87: "CLASS", 88: "CLICK", 89: "DOWN", 90: "UP", 93: "idString[vertex]", 94: "idString[class]", 95: "CALLBACKNAME", 96: "CALLBACKARGS", 97: "HREF", 98: "LINK_TARGET", 99: "STR[link]", 100: "STR[tooltip]", 102: "DEFAULT", 104: "INTERPOLATE", 105: "NUM", 106: "COMMA", 109: "NODE_STRING", 110: "UNIT", 111: "BRKT", 112: "PCT", 114: "MINUS", 115: "MULT", 116: "UNICODE_TEXT", 117: "TEXT", 118: "TAGSTART", 119: "EDGE_TEXT", 121: "direction_tb", 122: "direction_bt", 123: "direction_rl", 124: "direction_lr" },
635
+ productions_: [0, [3, 2], [5, 0], [5, 2], [6, 1], [6, 1], [6, 1], [6, 1], [6, 1], [4, 2], [4, 2], [4, 2], [4, 3], [16, 2], [16, 1], [17, 1], [17, 1], [17, 1], [15, 1], [15, 1], [15, 2], [19, 2], [19, 2], [19, 1], [19, 1], [18, 2], [18, 1], [7, 2], [7, 2], [7, 2], [7, 2], [7, 2], [7, 2], [7, 9], [7, 6], [7, 4], [7, 1], [7, 2], [7, 2], [7, 1], [21, 1], [21, 1], [21, 1], [39, 2], [39, 1], [20, 4], [20, 3], [20, 4], [20, 2], [20, 2], [20, 1], [42, 1], [42, 6], [42, 5], [43, 1], [43, 3], [45, 4], [45, 4], [45, 6], [45, 4], [45, 4], [45, 4], [45, 8], [45, 4], [45, 4], [45, 4], [45, 6], [45, 4], [45, 4], [45, 4], [45, 4], [45, 4], [45, 1], [41, 2], [41, 3], [41, 3], [41, 1], [41, 3], [41, 4], [76, 1], [76, 2], [76, 1], [76, 1], [72, 1], [72, 2], [73, 3], [30, 1], [30, 2], [30, 1], [30, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [28, 1], [28, 2], [28, 1], [28, 1], [24, 5], [25, 5], [26, 2], [26, 4], [26, 3], [26, 5], [26, 3], [26, 5], [26, 5], [26, 7], [26, 2], [26, 4], [26, 2], [26, 4], [26, 4], [26, 6], [22, 5], [23, 5], [23, 5], [23, 9], [23, 9], [23, 7], [23, 7], [103, 1], [103, 3], [92, 1], [92, 3], [107, 1], [107, 2], [108, 1], [108, 1], [108, 1], [108, 1], [108, 1], [108, 1], [108, 1], [108, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [82, 1], [82, 1], [82, 1], [82, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [79, 1], [79, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [47, 1], [47, 2], [101, 1], [101, 2], [33, 1], [33, 1], [33, 1], [33, 1]],
636
+ performAction: /* @__PURE__ */ A(function(c, h, f, u, F, e, G1) {
637
+ var s = e.length - 1;
638
+ switch (F) {
639
+ case 2:
640
+ this.$ = [];
641
+ break;
642
+ case 3:
643
+ (!Array.isArray(e[s]) || e[s].length > 0) && e[s - 1].push(e[s]), this.$ = e[s - 1];
644
+ break;
645
+ case 4:
646
+ case 183:
647
+ this.$ = e[s];
648
+ break;
649
+ case 11:
650
+ u.setDirection("TB"), this.$ = "TB";
651
+ break;
652
+ case 12:
653
+ u.setDirection(e[s - 1]), this.$ = e[s - 1];
654
+ break;
655
+ case 27:
656
+ this.$ = e[s - 1].nodes;
657
+ break;
658
+ case 28:
659
+ case 29:
660
+ case 30:
661
+ case 31:
662
+ case 32:
663
+ this.$ = [];
664
+ break;
665
+ case 33:
666
+ this.$ = u.addSubGraph(e[s - 6], e[s - 1], e[s - 4]);
667
+ break;
668
+ case 34:
669
+ this.$ = u.addSubGraph(e[s - 3], e[s - 1], e[s - 3]);
670
+ break;
671
+ case 35:
672
+ this.$ = u.addSubGraph(void 0, e[s - 1], void 0);
673
+ break;
674
+ case 37:
675
+ this.$ = e[s].trim(), u.setAccTitle(this.$);
676
+ break;
677
+ case 38:
678
+ case 39:
679
+ this.$ = e[s].trim(), u.setAccDescription(this.$);
680
+ break;
681
+ case 43:
682
+ this.$ = e[s - 1] + e[s];
683
+ break;
684
+ case 44:
685
+ this.$ = e[s];
686
+ break;
687
+ case 45:
688
+ u.addVertex(e[s - 1][e[s - 1].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, e[s]), u.addLink(e[s - 3].stmt, e[s - 1], e[s - 2]), this.$ = { stmt: e[s - 1], nodes: e[s - 1].concat(e[s - 3].nodes) };
689
+ break;
690
+ case 46:
691
+ u.addLink(e[s - 2].stmt, e[s], e[s - 1]), this.$ = { stmt: e[s], nodes: e[s].concat(e[s - 2].nodes) };
692
+ break;
693
+ case 47:
694
+ u.addLink(e[s - 3].stmt, e[s - 1], e[s - 2]), this.$ = { stmt: e[s - 1], nodes: e[s - 1].concat(e[s - 3].nodes) };
695
+ break;
696
+ case 48:
697
+ this.$ = { stmt: e[s - 1], nodes: e[s - 1] };
698
+ break;
699
+ case 49:
700
+ u.addVertex(e[s - 1][e[s - 1].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, e[s]), this.$ = { stmt: e[s - 1], nodes: e[s - 1], shapeData: e[s] };
701
+ break;
702
+ case 50:
703
+ this.$ = { stmt: e[s], nodes: e[s] };
704
+ break;
705
+ case 51:
706
+ this.$ = [e[s]];
707
+ break;
708
+ case 52:
709
+ u.addVertex(e[s - 5][e[s - 5].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, e[s - 4]), this.$ = e[s - 5].concat(e[s]);
710
+ break;
711
+ case 53:
712
+ this.$ = e[s - 4].concat(e[s]);
713
+ break;
714
+ case 54:
715
+ this.$ = e[s];
716
+ break;
717
+ case 55:
718
+ this.$ = e[s - 2], u.setClass(e[s - 2], e[s]);
719
+ break;
720
+ case 56:
721
+ this.$ = e[s - 3], u.addVertex(e[s - 3], e[s - 1], "square");
722
+ break;
723
+ case 57:
724
+ this.$ = e[s - 3], u.addVertex(e[s - 3], e[s - 1], "doublecircle");
725
+ break;
726
+ case 58:
727
+ this.$ = e[s - 5], u.addVertex(e[s - 5], e[s - 2], "circle");
728
+ break;
729
+ case 59:
730
+ this.$ = e[s - 3], u.addVertex(e[s - 3], e[s - 1], "ellipse");
731
+ break;
732
+ case 60:
733
+ this.$ = e[s - 3], u.addVertex(e[s - 3], e[s - 1], "stadium");
734
+ break;
735
+ case 61:
736
+ this.$ = e[s - 3], u.addVertex(e[s - 3], e[s - 1], "subroutine");
737
+ break;
738
+ case 62:
739
+ this.$ = e[s - 7], u.addVertex(e[s - 7], e[s - 1], "rect", void 0, void 0, void 0, Object.fromEntries([[e[s - 5], e[s - 3]]]));
740
+ break;
741
+ case 63:
742
+ this.$ = e[s - 3], u.addVertex(e[s - 3], e[s - 1], "cylinder");
743
+ break;
744
+ case 64:
745
+ this.$ = e[s - 3], u.addVertex(e[s - 3], e[s - 1], "round");
746
+ break;
747
+ case 65:
748
+ this.$ = e[s - 3], u.addVertex(e[s - 3], e[s - 1], "diamond");
749
+ break;
750
+ case 66:
751
+ this.$ = e[s - 5], u.addVertex(e[s - 5], e[s - 2], "hexagon");
752
+ break;
753
+ case 67:
754
+ this.$ = e[s - 3], u.addVertex(e[s - 3], e[s - 1], "odd");
755
+ break;
756
+ case 68:
757
+ this.$ = e[s - 3], u.addVertex(e[s - 3], e[s - 1], "trapezoid");
758
+ break;
759
+ case 69:
760
+ this.$ = e[s - 3], u.addVertex(e[s - 3], e[s - 1], "inv_trapezoid");
761
+ break;
762
+ case 70:
763
+ this.$ = e[s - 3], u.addVertex(e[s - 3], e[s - 1], "lean_right");
764
+ break;
765
+ case 71:
766
+ this.$ = e[s - 3], u.addVertex(e[s - 3], e[s - 1], "lean_left");
767
+ break;
768
+ case 72:
769
+ this.$ = e[s], u.addVertex(e[s]);
770
+ break;
771
+ case 73:
772
+ e[s - 1].text = e[s], this.$ = e[s - 1];
773
+ break;
774
+ case 74:
775
+ case 75:
776
+ e[s - 2].text = e[s - 1], this.$ = e[s - 2];
777
+ break;
778
+ case 76:
779
+ this.$ = e[s];
780
+ break;
781
+ case 77:
782
+ var v = u.destructLink(e[s], e[s - 2]);
783
+ this.$ = { type: v.type, stroke: v.stroke, length: v.length, text: e[s - 1] };
784
+ break;
785
+ case 78:
786
+ var v = u.destructLink(e[s], e[s - 2]);
787
+ this.$ = { type: v.type, stroke: v.stroke, length: v.length, text: e[s - 1], id: e[s - 3] };
788
+ break;
789
+ case 79:
790
+ this.$ = { text: e[s], type: "text" };
791
+ break;
792
+ case 80:
793
+ this.$ = { text: e[s - 1].text + "" + e[s], type: e[s - 1].type };
794
+ break;
795
+ case 81:
796
+ this.$ = { text: e[s], type: "string" };
797
+ break;
798
+ case 82:
799
+ this.$ = { text: e[s], type: "markdown" };
800
+ break;
801
+ case 83:
802
+ var v = u.destructLink(e[s]);
803
+ this.$ = { type: v.type, stroke: v.stroke, length: v.length };
804
+ break;
805
+ case 84:
806
+ var v = u.destructLink(e[s]);
807
+ this.$ = { type: v.type, stroke: v.stroke, length: v.length, id: e[s - 1] };
808
+ break;
809
+ case 85:
810
+ this.$ = e[s - 1];
811
+ break;
812
+ case 86:
813
+ this.$ = { text: e[s], type: "text" };
814
+ break;
815
+ case 87:
816
+ this.$ = { text: e[s - 1].text + "" + e[s], type: e[s - 1].type };
817
+ break;
818
+ case 88:
819
+ this.$ = { text: e[s], type: "string" };
820
+ break;
821
+ case 89:
822
+ case 104:
823
+ this.$ = { text: e[s], type: "markdown" };
824
+ break;
825
+ case 101:
826
+ this.$ = { text: e[s], type: "text" };
827
+ break;
828
+ case 102:
829
+ this.$ = { text: e[s - 1].text + "" + e[s], type: e[s - 1].type };
830
+ break;
831
+ case 103:
832
+ this.$ = { text: e[s], type: "text" };
833
+ break;
834
+ case 105:
835
+ this.$ = e[s - 4], u.addClass(e[s - 2], e[s]);
836
+ break;
837
+ case 106:
838
+ this.$ = e[s - 4], u.setClass(e[s - 2], e[s]);
839
+ break;
840
+ case 107:
841
+ case 115:
842
+ this.$ = e[s - 1], u.setClickEvent(e[s - 1], e[s]);
843
+ break;
844
+ case 108:
845
+ case 116:
846
+ this.$ = e[s - 3], u.setClickEvent(e[s - 3], e[s - 2]), u.setTooltip(e[s - 3], e[s]);
847
+ break;
848
+ case 109:
849
+ this.$ = e[s - 2], u.setClickEvent(e[s - 2], e[s - 1], e[s]);
850
+ break;
851
+ case 110:
852
+ this.$ = e[s - 4], u.setClickEvent(e[s - 4], e[s - 3], e[s - 2]), u.setTooltip(e[s - 4], e[s]);
853
+ break;
854
+ case 111:
855
+ this.$ = e[s - 2], u.setLink(e[s - 2], e[s]);
856
+ break;
857
+ case 112:
858
+ this.$ = e[s - 4], u.setLink(e[s - 4], e[s - 2]), u.setTooltip(e[s - 4], e[s]);
859
+ break;
860
+ case 113:
861
+ this.$ = e[s - 4], u.setLink(e[s - 4], e[s - 2], e[s]);
862
+ break;
863
+ case 114:
864
+ this.$ = e[s - 6], u.setLink(e[s - 6], e[s - 4], e[s]), u.setTooltip(e[s - 6], e[s - 2]);
865
+ break;
866
+ case 117:
867
+ this.$ = e[s - 1], u.setLink(e[s - 1], e[s]);
868
+ break;
869
+ case 118:
870
+ this.$ = e[s - 3], u.setLink(e[s - 3], e[s - 2]), u.setTooltip(e[s - 3], e[s]);
871
+ break;
872
+ case 119:
873
+ this.$ = e[s - 3], u.setLink(e[s - 3], e[s - 2], e[s]);
874
+ break;
875
+ case 120:
876
+ this.$ = e[s - 5], u.setLink(e[s - 5], e[s - 4], e[s]), u.setTooltip(e[s - 5], e[s - 2]);
877
+ break;
878
+ case 121:
879
+ this.$ = e[s - 4], u.addVertex(e[s - 2], void 0, void 0, e[s]);
880
+ break;
881
+ case 122:
882
+ this.$ = e[s - 4], u.updateLink([e[s - 2]], e[s]);
883
+ break;
884
+ case 123:
885
+ this.$ = e[s - 4], u.updateLink(e[s - 2], e[s]);
886
+ break;
887
+ case 124:
888
+ this.$ = e[s - 8], u.updateLinkInterpolate([e[s - 6]], e[s - 2]), u.updateLink([e[s - 6]], e[s]);
889
+ break;
890
+ case 125:
891
+ this.$ = e[s - 8], u.updateLinkInterpolate(e[s - 6], e[s - 2]), u.updateLink(e[s - 6], e[s]);
892
+ break;
893
+ case 126:
894
+ this.$ = e[s - 6], u.updateLinkInterpolate([e[s - 4]], e[s]);
895
+ break;
896
+ case 127:
897
+ this.$ = e[s - 6], u.updateLinkInterpolate(e[s - 4], e[s]);
898
+ break;
899
+ case 128:
900
+ case 130:
901
+ this.$ = [e[s]];
902
+ break;
903
+ case 129:
904
+ case 131:
905
+ e[s - 2].push(e[s]), this.$ = e[s - 2];
906
+ break;
907
+ case 133:
908
+ this.$ = e[s - 1] + e[s];
909
+ break;
910
+ case 181:
911
+ this.$ = e[s];
912
+ break;
913
+ case 182:
914
+ this.$ = e[s - 1] + "" + e[s];
915
+ break;
916
+ case 184:
917
+ this.$ = e[s - 1] + "" + e[s];
918
+ break;
919
+ case 185:
920
+ this.$ = { stmt: "dir", value: "TB" };
921
+ break;
922
+ case 186:
923
+ this.$ = { stmt: "dir", value: "BT" };
924
+ break;
925
+ case 187:
926
+ this.$ = { stmt: "dir", value: "RL" };
927
+ break;
928
+ case 188:
929
+ this.$ = { stmt: "dir", value: "LR" };
930
+ break;
931
+ }
932
+ }, "anonymous"),
933
+ table: [{ 3: 1, 4: 2, 9: i, 10: r, 12: a }, { 1: [3] }, t(o, p, { 5: 6 }), { 4: 7, 9: i, 10: r, 12: a }, { 4: 8, 9: i, 10: r, 12: a }, { 13: [1, 9], 14: [1, 10] }, { 1: [2, 1], 6: 11, 7: 12, 8: l, 9: b, 10: n, 11: d, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: _, 33: 24, 34: g, 36: D, 38: K, 42: 28, 43: 38, 44: k, 45: 39, 47: 40, 60: x, 84: p1, 85: f1, 86: g1, 87: P1, 88: O1, 89: V, 102: L, 105: w, 106: I, 109: R, 111: N, 113: 41, 114: G, 115: P, 116: O, 121: M1, 122: U1, 123: W1, 124: z1 }, t(o, [2, 9]), t(o, [2, 10]), t(o, [2, 11]), { 8: [1, 54], 9: [1, 55], 10: c1, 15: 53, 18: 56 }, t(T, [2, 3]), t(T, [2, 4]), t(T, [2, 5]), t(T, [2, 6]), t(T, [2, 7]), t(T, [2, 8]), { 8: J, 9: $, 11: t1, 21: 58, 41: 59, 72: 63, 75: [1, 64], 77: [1, 66], 78: [1, 65] }, { 8: J, 9: $, 11: t1, 21: 67 }, { 8: J, 9: $, 11: t1, 21: 68 }, { 8: J, 9: $, 11: t1, 21: 69 }, { 8: J, 9: $, 11: t1, 21: 70 }, { 8: J, 9: $, 11: t1, 21: 71 }, { 8: J, 9: $, 10: [1, 72], 11: t1, 21: 73 }, t(T, [2, 36]), { 35: [1, 74] }, { 37: [1, 75] }, t(T, [2, 39]), t(E1, [2, 50], { 18: 76, 39: 77, 10: c1, 40: rt }), { 10: [1, 79] }, { 10: [1, 80] }, { 10: [1, 81] }, { 10: [1, 82] }, { 14: C1, 44: S1, 60: D1, 80: [1, 86], 89: x1, 95: [1, 83], 97: [1, 84], 101: 85, 105: T1, 106: y1, 109: F1, 111: _1, 114: B1, 115: v1, 116: V1, 120: 87 }, t(T, [2, 185]), t(T, [2, 186]), t(T, [2, 187]), t(T, [2, 188]), t(b1, [2, 51]), t(b1, [2, 54], { 46: [1, 99] }), t(U, [2, 72], { 113: 112, 29: [1, 100], 44: k, 48: [1, 101], 50: [1, 102], 52: [1, 103], 54: [1, 104], 56: [1, 105], 58: [1, 106], 60: x, 63: [1, 107], 65: [1, 108], 67: [1, 109], 68: [1, 110], 70: [1, 111], 89: V, 102: L, 105: w, 106: I, 109: R, 111: N, 114: G, 115: P, 116: O }), t(Y, [2, 181]), t(Y, [2, 142]), t(Y, [2, 143]), t(Y, [2, 144]), t(Y, [2, 145]), t(Y, [2, 146]), t(Y, [2, 147]), t(Y, [2, 148]), t(Y, [2, 149]), t(Y, [2, 150]), t(Y, [2, 151]), t(Y, [2, 152]), t(o, [2, 12]), t(o, [2, 18]), t(o, [2, 19]), { 9: [1, 113] }, t(at, [2, 26], { 18: 114, 10: c1 }), t(T, [2, 27]), { 42: 115, 43: 38, 44: k, 45: 39, 47: 40, 60: x, 89: V, 102: L, 105: w, 106: I, 109: R, 111: N, 113: 41, 114: G, 115: P, 116: O }, t(T, [2, 40]), t(T, [2, 41]), t(T, [2, 42]), t(L1, [2, 76], { 73: 116, 62: [1, 118], 74: [1, 117] }), { 76: 119, 79: 120, 80: nt, 81: ut, 116: j1, 119: K1 }, { 75: [1, 125], 77: [1, 126] }, t(ot, [2, 83]), t(T, [2, 28]), t(T, [2, 29]), t(T, [2, 30]), t(T, [2, 31]), t(T, [2, 32]), { 10: lt, 12: ct, 14: ht, 27: dt, 28: 127, 32: pt, 44: ft, 60: gt, 75: bt, 80: [1, 129], 81: [1, 130], 83: 140, 84: At, 85: kt, 86: mt, 87: Et, 88: Ct, 89: St, 90: Dt, 91: 128, 105: xt, 109: Tt, 111: yt, 114: Ft, 115: _t, 116: Bt }, t(q1, p, { 5: 153 }), t(T, [2, 37]), t(T, [2, 38]), t(E1, [2, 48], { 44: vt }), t(E1, [2, 49], { 18: 155, 10: c1, 40: Vt }), t(b1, [2, 44]), { 44: k, 47: 157, 60: x, 89: V, 102: L, 105: w, 106: I, 109: R, 111: N, 113: 41, 114: G, 115: P, 116: O }, { 102: [1, 158], 103: 159, 105: [1, 160] }, { 44: k, 47: 161, 60: x, 89: V, 102: L, 105: w, 106: I, 109: R, 111: N, 113: 41, 114: G, 115: P, 116: O }, { 44: k, 47: 162, 60: x, 89: V, 102: L, 105: w, 106: I, 109: R, 111: N, 113: 41, 114: G, 115: P, 116: O }, t(B, [2, 107], { 10: [1, 163], 96: [1, 164] }), { 80: [1, 165] }, t(B, [2, 115], { 120: 167, 10: [1, 166], 14: C1, 44: S1, 60: D1, 89: x1, 105: T1, 106: y1, 109: F1, 111: _1, 114: B1, 115: v1, 116: V1 }), t(B, [2, 117], { 10: [1, 168] }), t(H, [2, 183]), t(H, [2, 170]), t(H, [2, 171]), t(H, [2, 172]), t(H, [2, 173]), t(H, [2, 174]), t(H, [2, 175]), t(H, [2, 176]), t(H, [2, 177]), t(H, [2, 178]), t(H, [2, 179]), t(H, [2, 180]), { 44: k, 47: 169, 60: x, 89: V, 102: L, 105: w, 106: I, 109: R, 111: N, 113: 41, 114: G, 115: P, 116: O }, { 30: 170, 67: m, 80: W, 81: z, 82: 171, 116: E, 117: C, 118: S }, { 30: 178, 67: m, 80: W, 81: z, 82: 171, 116: E, 117: C, 118: S }, { 30: 180, 50: [1, 179], 67: m, 80: W, 81: z, 82: 171, 116: E, 117: C, 118: S }, { 30: 181, 67: m, 80: W, 81: z, 82: 171, 116: E, 117: C, 118: S }, { 30: 182, 67: m, 80: W, 81: z, 82: 171, 116: E, 117: C, 118: S }, { 30: 183, 67: m, 80: W, 81: z, 82: 171, 116: E, 117: C, 118: S }, { 109: [1, 184] }, { 30: 185, 67: m, 80: W, 81: z, 82: 171, 116: E, 117: C, 118: S }, { 30: 186, 65: [1, 187], 67: m, 80: W, 81: z, 82: 171, 116: E, 117: C, 118: S }, { 30: 188, 67: m, 80: W, 81: z, 82: 171, 116: E, 117: C, 118: S }, { 30: 189, 67: m, 80: W, 81: z, 82: 171, 116: E, 117: C, 118: S }, { 30: 190, 67: m, 80: W, 81: z, 82: 171, 116: E, 117: C, 118: S }, t(Y, [2, 182]), t(o, [2, 20]), t(at, [2, 25]), t(E1, [2, 46], { 39: 191, 18: 192, 10: c1, 40: rt }), t(L1, [2, 73], { 10: [1, 193] }), { 10: [1, 194] }, { 30: 195, 67: m, 80: W, 81: z, 82: 171, 116: E, 117: C, 118: S }, { 77: [1, 196], 79: 197, 116: j1, 119: K1 }, t(w1, [2, 79]), t(w1, [2, 81]), t(w1, [2, 82]), t(w1, [2, 168]), t(w1, [2, 169]), { 76: 198, 79: 120, 80: nt, 81: ut, 116: j1, 119: K1 }, t(ot, [2, 84]), { 8: J, 9: $, 10: lt, 11: t1, 12: ct, 14: ht, 21: 200, 27: dt, 29: [1, 199], 32: pt, 44: ft, 60: gt, 75: bt, 83: 140, 84: At, 85: kt, 86: mt, 87: Et, 88: Ct, 89: St, 90: Dt, 91: 201, 105: xt, 109: Tt, 111: yt, 114: Ft, 115: _t, 116: Bt }, t(y, [2, 101]), t(y, [2, 103]), t(y, [2, 104]), t(y, [2, 157]), t(y, [2, 158]), t(y, [2, 159]), t(y, [2, 160]), t(y, [2, 161]), t(y, [2, 162]), t(y, [2, 163]), t(y, [2, 164]), t(y, [2, 165]), t(y, [2, 166]), t(y, [2, 167]), t(y, [2, 90]), t(y, [2, 91]), t(y, [2, 92]), t(y, [2, 93]), t(y, [2, 94]), t(y, [2, 95]), t(y, [2, 96]), t(y, [2, 97]), t(y, [2, 98]), t(y, [2, 99]), t(y, [2, 100]), { 6: 11, 7: 12, 8: l, 9: b, 10: n, 11: d, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: _, 32: [1, 202], 33: 24, 34: g, 36: D, 38: K, 42: 28, 43: 38, 44: k, 45: 39, 47: 40, 60: x, 84: p1, 85: f1, 86: g1, 87: P1, 88: O1, 89: V, 102: L, 105: w, 106: I, 109: R, 111: N, 113: 41, 114: G, 115: P, 116: O, 121: M1, 122: U1, 123: W1, 124: z1 }, { 10: c1, 18: 203 }, { 44: [1, 204] }, t(b1, [2, 43]), { 10: [1, 205], 44: k, 60: x, 89: V, 102: L, 105: w, 106: I, 109: R, 111: N, 113: 112, 114: G, 115: P, 116: O }, { 10: [1, 206] }, { 10: [1, 207], 106: [1, 208] }, t(Lt, [2, 128]), { 10: [1, 209], 44: k, 60: x, 89: V, 102: L, 105: w, 106: I, 109: R, 111: N, 113: 112, 114: G, 115: P, 116: O }, { 10: [1, 210], 44: k, 60: x, 89: V, 102: L, 105: w, 106: I, 109: R, 111: N, 113: 112, 114: G, 115: P, 116: O }, { 80: [1, 211] }, t(B, [2, 109], { 10: [1, 212] }), t(B, [2, 111], { 10: [1, 213] }), { 80: [1, 214] }, t(H, [2, 184]), { 80: [1, 215], 98: [1, 216] }, t(b1, [2, 55], { 113: 112, 44: k, 60: x, 89: V, 102: L, 105: w, 106: I, 109: R, 111: N, 114: G, 115: P, 116: O }), { 31: [1, 217], 67: m, 82: 218, 116: E, 117: C, 118: S }, t(h1, [2, 86]), t(h1, [2, 88]), t(h1, [2, 89]), t(h1, [2, 153]), t(h1, [2, 154]), t(h1, [2, 155]), t(h1, [2, 156]), { 49: [1, 219], 67: m, 82: 218, 116: E, 117: C, 118: S }, { 30: 220, 67: m, 80: W, 81: z, 82: 171, 116: E, 117: C, 118: S }, { 51: [1, 221], 67: m, 82: 218, 116: E, 117: C, 118: S }, { 53: [1, 222], 67: m, 82: 218, 116: E, 117: C, 118: S }, { 55: [1, 223], 67: m, 82: 218, 116: E, 117: C, 118: S }, { 57: [1, 224], 67: m, 82: 218, 116: E, 117: C, 118: S }, { 60: [1, 225] }, { 64: [1, 226], 67: m, 82: 218, 116: E, 117: C, 118: S }, { 66: [1, 227], 67: m, 82: 218, 116: E, 117: C, 118: S }, { 30: 228, 67: m, 80: W, 81: z, 82: 171, 116: E, 117: C, 118: S }, { 31: [1, 229], 67: m, 82: 218, 116: E, 117: C, 118: S }, { 67: m, 69: [1, 230], 71: [1, 231], 82: 218, 116: E, 117: C, 118: S }, { 67: m, 69: [1, 233], 71: [1, 232], 82: 218, 116: E, 117: C, 118: S }, t(E1, [2, 45], { 18: 155, 10: c1, 40: Vt }), t(E1, [2, 47], { 44: vt }), t(L1, [2, 75]), t(L1, [2, 74]), { 62: [1, 234], 67: m, 82: 218, 116: E, 117: C, 118: S }, t(L1, [2, 77]), t(w1, [2, 80]), { 77: [1, 235], 79: 197, 116: j1, 119: K1 }, { 30: 236, 67: m, 80: W, 81: z, 82: 171, 116: E, 117: C, 118: S }, t(q1, p, { 5: 237 }), t(y, [2, 102]), t(T, [2, 35]), { 43: 238, 44: k, 45: 39, 47: 40, 60: x, 89: V, 102: L, 105: w, 106: I, 109: R, 111: N, 113: 41, 114: G, 115: P, 116: O }, { 10: c1, 18: 239 }, { 10: e1, 60: s1, 84: i1, 92: 240, 105: r1, 107: 241, 108: 242, 109: a1, 110: n1, 111: u1, 112: o1 }, { 10: e1, 60: s1, 84: i1, 92: 251, 104: [1, 252], 105: r1, 107: 241, 108: 242, 109: a1, 110: n1, 111: u1, 112: o1 }, { 10: e1, 60: s1, 84: i1, 92: 253, 104: [1, 254], 105: r1, 107: 241, 108: 242, 109: a1, 110: n1, 111: u1, 112: o1 }, { 105: [1, 255] }, { 10: e1, 60: s1, 84: i1, 92: 256, 105: r1, 107: 241, 108: 242, 109: a1, 110: n1, 111: u1, 112: o1 }, { 44: k, 47: 257, 60: x, 89: V, 102: L, 105: w, 106: I, 109: R, 111: N, 113: 41, 114: G, 115: P, 116: O }, t(B, [2, 108]), { 80: [1, 258] }, { 80: [1, 259], 98: [1, 260] }, t(B, [2, 116]), t(B, [2, 118], { 10: [1, 261] }), t(B, [2, 119]), t(U, [2, 56]), t(h1, [2, 87]), t(U, [2, 57]), { 51: [1, 262], 67: m, 82: 218, 116: E, 117: C, 118: S }, t(U, [2, 64]), t(U, [2, 59]), t(U, [2, 60]), t(U, [2, 61]), { 109: [1, 263] }, t(U, [2, 63]), t(U, [2, 65]), { 66: [1, 264], 67: m, 82: 218, 116: E, 117: C, 118: S }, t(U, [2, 67]), t(U, [2, 68]), t(U, [2, 70]), t(U, [2, 69]), t(U, [2, 71]), t([10, 44, 60, 89, 102, 105, 106, 109, 111, 114, 115, 116], [2, 85]), t(L1, [2, 78]), { 31: [1, 265], 67: m, 82: 218, 116: E, 117: C, 118: S }, { 6: 11, 7: 12, 8: l, 9: b, 10: n, 11: d, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: _, 32: [1, 266], 33: 24, 34: g, 36: D, 38: K, 42: 28, 43: 38, 44: k, 45: 39, 47: 40, 60: x, 84: p1, 85: f1, 86: g1, 87: P1, 88: O1, 89: V, 102: L, 105: w, 106: I, 109: R, 111: N, 113: 41, 114: G, 115: P, 116: O, 121: M1, 122: U1, 123: W1, 124: z1 }, t(b1, [2, 53]), { 43: 267, 44: k, 45: 39, 47: 40, 60: x, 89: V, 102: L, 105: w, 106: I, 109: R, 111: N, 113: 41, 114: G, 115: P, 116: O }, t(B, [2, 121], { 106: I1 }), t(wt, [2, 130], { 108: 269, 10: e1, 60: s1, 84: i1, 105: r1, 109: a1, 110: n1, 111: u1, 112: o1 }), t(Q, [2, 132]), t(Q, [2, 134]), t(Q, [2, 135]), t(Q, [2, 136]), t(Q, [2, 137]), t(Q, [2, 138]), t(Q, [2, 139]), t(Q, [2, 140]), t(Q, [2, 141]), t(B, [2, 122], { 106: I1 }), { 10: [1, 270] }, t(B, [2, 123], { 106: I1 }), { 10: [1, 271] }, t(Lt, [2, 129]), t(B, [2, 105], { 106: I1 }), t(B, [2, 106], { 113: 112, 44: k, 60: x, 89: V, 102: L, 105: w, 106: I, 109: R, 111: N, 114: G, 115: P, 116: O }), t(B, [2, 110]), t(B, [2, 112], { 10: [1, 272] }), t(B, [2, 113]), { 98: [1, 273] }, { 51: [1, 274] }, { 62: [1, 275] }, { 66: [1, 276] }, { 8: J, 9: $, 11: t1, 21: 277 }, t(T, [2, 34]), t(b1, [2, 52]), { 10: e1, 60: s1, 84: i1, 105: r1, 107: 278, 108: 242, 109: a1, 110: n1, 111: u1, 112: o1 }, t(Q, [2, 133]), { 14: C1, 44: S1, 60: D1, 89: x1, 101: 279, 105: T1, 106: y1, 109: F1, 111: _1, 114: B1, 115: v1, 116: V1, 120: 87 }, { 14: C1, 44: S1, 60: D1, 89: x1, 101: 280, 105: T1, 106: y1, 109: F1, 111: _1, 114: B1, 115: v1, 116: V1, 120: 87 }, { 98: [1, 281] }, t(B, [2, 120]), t(U, [2, 58]), { 30: 282, 67: m, 80: W, 81: z, 82: 171, 116: E, 117: C, 118: S }, t(U, [2, 66]), t(q1, p, { 5: 283 }), t(wt, [2, 131], { 108: 269, 10: e1, 60: s1, 84: i1, 105: r1, 109: a1, 110: n1, 111: u1, 112: o1 }), t(B, [2, 126], { 120: 167, 10: [1, 284], 14: C1, 44: S1, 60: D1, 89: x1, 105: T1, 106: y1, 109: F1, 111: _1, 114: B1, 115: v1, 116: V1 }), t(B, [2, 127], { 120: 167, 10: [1, 285], 14: C1, 44: S1, 60: D1, 89: x1, 105: T1, 106: y1, 109: F1, 111: _1, 114: B1, 115: v1, 116: V1 }), t(B, [2, 114]), { 31: [1, 286], 67: m, 82: 218, 116: E, 117: C, 118: S }, { 6: 11, 7: 12, 8: l, 9: b, 10: n, 11: d, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: _, 32: [1, 287], 33: 24, 34: g, 36: D, 38: K, 42: 28, 43: 38, 44: k, 45: 39, 47: 40, 60: x, 84: p1, 85: f1, 86: g1, 87: P1, 88: O1, 89: V, 102: L, 105: w, 106: I, 109: R, 111: N, 113: 41, 114: G, 115: P, 116: O, 121: M1, 122: U1, 123: W1, 124: z1 }, { 10: e1, 60: s1, 84: i1, 92: 288, 105: r1, 107: 241, 108: 242, 109: a1, 110: n1, 111: u1, 112: o1 }, { 10: e1, 60: s1, 84: i1, 92: 289, 105: r1, 107: 241, 108: 242, 109: a1, 110: n1, 111: u1, 112: o1 }, t(U, [2, 62]), t(T, [2, 33]), t(B, [2, 124], { 106: I1 }), t(B, [2, 125], { 106: I1 })],
934
+ defaultActions: {},
935
+ parseError: /* @__PURE__ */ A(function(c, h) {
936
+ if (h.recoverable)
937
+ this.trace(c);
938
+ else {
939
+ var f = new Error(c);
940
+ throw f.hash = h, f;
941
+ }
942
+ }, "parseError"),
943
+ parse: /* @__PURE__ */ A(function(c) {
944
+ var h = this, f = [0], u = [], F = [null], e = [], G1 = this.table, s = "", v = 0, It = 0, Wt = 2, Rt = 1, zt = e.slice.call(arguments, 1), M = Object.create(this.lexer), A1 = { yy: {} };
945
+ for (var Z1 in this.yy)
946
+ Object.prototype.hasOwnProperty.call(this.yy, Z1) && (A1.yy[Z1] = this.yy[Z1]);
947
+ M.setInput(c, A1.yy), A1.yy.lexer = M, A1.yy.parser = this, typeof M.yylloc > "u" && (M.yylloc = {});
948
+ var J1 = M.yylloc;
949
+ e.push(J1);
950
+ var jt = M.options && M.options.ranges;
951
+ typeof A1.yy.parseError == "function" ? this.parseError = A1.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
952
+ function Kt(X) {
953
+ f.length = f.length - 2 * X, F.length = F.length - X, e.length = e.length - X;
954
+ }
955
+ A(Kt, "popStack");
956
+ function Nt() {
957
+ var X;
958
+ return X = u.pop() || M.lex() || Rt, typeof X != "number" && (X instanceof Array && (u = X, X = u.pop()), X = h.symbols_[X] || X), X;
959
+ }
960
+ A(Nt, "lex");
961
+ for (var j, k1, q, $1, R1 = {}, H1, l1, Gt, X1; ; ) {
962
+ if (k1 = f[f.length - 1], this.defaultActions[k1] ? q = this.defaultActions[k1] : ((j === null || typeof j > "u") && (j = Nt()), q = G1[k1] && G1[k1][j]), typeof q > "u" || !q.length || !q[0]) {
963
+ var tt = "";
964
+ X1 = [];
965
+ for (H1 in G1[k1])
966
+ this.terminals_[H1] && H1 > Wt && X1.push("'" + this.terminals_[H1] + "'");
967
+ M.showPosition ? tt = "Parse error on line " + (v + 1) + `:
968
+ ` + M.showPosition() + `
969
+ Expecting ` + X1.join(", ") + ", got '" + (this.terminals_[j] || j) + "'" : tt = "Parse error on line " + (v + 1) + ": Unexpected " + (j == Rt ? "end of input" : "'" + (this.terminals_[j] || j) + "'"), this.parseError(tt, {
970
+ text: M.match,
971
+ token: this.terminals_[j] || j,
972
+ line: M.yylineno,
973
+ loc: J1,
974
+ expected: X1
975
+ });
976
+ }
977
+ if (q[0] instanceof Array && q.length > 1)
978
+ throw new Error("Parse Error: multiple actions possible at state: " + k1 + ", token: " + j);
979
+ switch (q[0]) {
980
+ case 1:
981
+ f.push(j), F.push(M.yytext), e.push(M.yylloc), f.push(q[1]), j = null, It = M.yyleng, s = M.yytext, v = M.yylineno, J1 = M.yylloc;
982
+ break;
983
+ case 2:
984
+ if (l1 = this.productions_[q[1]][1], R1.$ = F[F.length - l1], R1._$ = {
985
+ first_line: e[e.length - (l1 || 1)].first_line,
986
+ last_line: e[e.length - 1].last_line,
987
+ first_column: e[e.length - (l1 || 1)].first_column,
988
+ last_column: e[e.length - 1].last_column
989
+ }, jt && (R1._$.range = [
990
+ e[e.length - (l1 || 1)].range[0],
991
+ e[e.length - 1].range[1]
992
+ ]), $1 = this.performAction.apply(R1, [
993
+ s,
994
+ It,
995
+ v,
996
+ A1.yy,
997
+ q[1],
998
+ F,
999
+ e
1000
+ ].concat(zt)), typeof $1 < "u")
1001
+ return $1;
1002
+ l1 && (f = f.slice(0, -1 * l1 * 2), F = F.slice(0, -1 * l1), e = e.slice(0, -1 * l1)), f.push(this.productions_[q[1]][0]), F.push(R1.$), e.push(R1._$), Gt = G1[f[f.length - 2]][f[f.length - 1]], f.push(Gt);
1003
+ break;
1004
+ case 3:
1005
+ return !0;
1006
+ }
1007
+ }
1008
+ return !0;
1009
+ }, "parse")
1010
+ }, Ut = /* @__PURE__ */ function() {
1011
+ var d1 = {
1012
+ EOF: 1,
1013
+ parseError: /* @__PURE__ */ A(function(h, f) {
1014
+ if (this.yy.parser)
1015
+ this.yy.parser.parseError(h, f);
1016
+ else
1017
+ throw new Error(h);
1018
+ }, "parseError"),
1019
+ // resets the lexer, sets new input
1020
+ setInput: /* @__PURE__ */ A(function(c, h) {
1021
+ return this.yy = h || this.yy || {}, this._input = c, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1022
+ first_line: 1,
1023
+ first_column: 0,
1024
+ last_line: 1,
1025
+ last_column: 0
1026
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1027
+ }, "setInput"),
1028
+ // consumes and returns one char from the input
1029
+ input: /* @__PURE__ */ A(function() {
1030
+ var c = this._input[0];
1031
+ this.yytext += c, this.yyleng++, this.offset++, this.match += c, this.matched += c;
1032
+ var h = c.match(/(?:\r\n?|\n).*/g);
1033
+ return h ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), c;
1034
+ }, "input"),
1035
+ // unshifts one char (or a string) into the input
1036
+ unput: /* @__PURE__ */ A(function(c) {
1037
+ var h = c.length, f = c.split(/(?:\r\n?|\n)/g);
1038
+ this._input = c + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - h), this.offset -= h;
1039
+ var u = this.match.split(/(?:\r\n?|\n)/g);
1040
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), f.length - 1 && (this.yylineno -= f.length - 1);
1041
+ var F = this.yylloc.range;
1042
+ return this.yylloc = {
1043
+ first_line: this.yylloc.first_line,
1044
+ last_line: this.yylineno + 1,
1045
+ first_column: this.yylloc.first_column,
1046
+ last_column: f ? (f.length === u.length ? this.yylloc.first_column : 0) + u[u.length - f.length].length - f[0].length : this.yylloc.first_column - h
1047
+ }, this.options.ranges && (this.yylloc.range = [F[0], F[0] + this.yyleng - h]), this.yyleng = this.yytext.length, this;
1048
+ }, "unput"),
1049
+ // When called from action, caches matched text and appends it on next action
1050
+ more: /* @__PURE__ */ A(function() {
1051
+ return this._more = !0, this;
1052
+ }, "more"),
1053
+ // 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.
1054
+ reject: /* @__PURE__ */ A(function() {
1055
+ if (this.options.backtrack_lexer)
1056
+ this._backtrack = !0;
1057
+ else
1058
+ 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).
1059
+ ` + this.showPosition(), {
1060
+ text: "",
1061
+ token: null,
1062
+ line: this.yylineno
1063
+ });
1064
+ return this;
1065
+ }, "reject"),
1066
+ // retain first n characters of the match
1067
+ less: /* @__PURE__ */ A(function(c) {
1068
+ this.unput(this.match.slice(c));
1069
+ }, "less"),
1070
+ // displays already matched input, i.e. for error messages
1071
+ pastInput: /* @__PURE__ */ A(function() {
1072
+ var c = this.matched.substr(0, this.matched.length - this.match.length);
1073
+ return (c.length > 20 ? "..." : "") + c.substr(-20).replace(/\n/g, "");
1074
+ }, "pastInput"),
1075
+ // displays upcoming input, i.e. for error messages
1076
+ upcomingInput: /* @__PURE__ */ A(function() {
1077
+ var c = this.match;
1078
+ return c.length < 20 && (c += this._input.substr(0, 20 - c.length)), (c.substr(0, 20) + (c.length > 20 ? "..." : "")).replace(/\n/g, "");
1079
+ }, "upcomingInput"),
1080
+ // displays the character position where the lexing error occurred, i.e. for error messages
1081
+ showPosition: /* @__PURE__ */ A(function() {
1082
+ var c = this.pastInput(), h = new Array(c.length + 1).join("-");
1083
+ return c + this.upcomingInput() + `
1084
+ ` + h + "^";
1085
+ }, "showPosition"),
1086
+ // test the lexed token: return FALSE when not a match, otherwise return token
1087
+ test_match: /* @__PURE__ */ A(function(c, h) {
1088
+ var f, u, F;
1089
+ if (this.options.backtrack_lexer && (F = {
1090
+ yylineno: this.yylineno,
1091
+ yylloc: {
1092
+ first_line: this.yylloc.first_line,
1093
+ last_line: this.last_line,
1094
+ first_column: this.yylloc.first_column,
1095
+ last_column: this.yylloc.last_column
1096
+ },
1097
+ yytext: this.yytext,
1098
+ match: this.match,
1099
+ matches: this.matches,
1100
+ matched: this.matched,
1101
+ yyleng: this.yyleng,
1102
+ offset: this.offset,
1103
+ _more: this._more,
1104
+ _input: this._input,
1105
+ yy: this.yy,
1106
+ conditionStack: this.conditionStack.slice(0),
1107
+ done: this.done
1108
+ }, this.options.ranges && (F.yylloc.range = this.yylloc.range.slice(0))), u = c[0].match(/(?:\r\n?|\n).*/g), u && (this.yylineno += u.length), this.yylloc = {
1109
+ first_line: this.yylloc.last_line,
1110
+ last_line: this.yylineno + 1,
1111
+ first_column: this.yylloc.last_column,
1112
+ last_column: u ? u[u.length - 1].length - u[u.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + c[0].length
1113
+ }, this.yytext += c[0], this.match += c[0], this.matches = c, 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(c[0].length), this.matched += c[0], f = this.performAction.call(this, this.yy, this, h, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), f)
1114
+ return f;
1115
+ if (this._backtrack) {
1116
+ for (var e in F)
1117
+ this[e] = F[e];
1118
+ return !1;
1119
+ }
1120
+ return !1;
1121
+ }, "test_match"),
1122
+ // return next match in input
1123
+ next: /* @__PURE__ */ A(function() {
1124
+ if (this.done)
1125
+ return this.EOF;
1126
+ this._input || (this.done = !0);
1127
+ var c, h, f, u;
1128
+ this._more || (this.yytext = "", this.match = "");
1129
+ for (var F = this._currentRules(), e = 0; e < F.length; e++)
1130
+ if (f = this._input.match(this.rules[F[e]]), f && (!h || f[0].length > h[0].length)) {
1131
+ if (h = f, u = e, this.options.backtrack_lexer) {
1132
+ if (c = this.test_match(f, F[e]), c !== !1)
1133
+ return c;
1134
+ if (this._backtrack) {
1135
+ h = !1;
1136
+ continue;
1137
+ } else
1138
+ return !1;
1139
+ } else if (!this.options.flex)
1140
+ break;
1141
+ }
1142
+ return h ? (c = this.test_match(h, F[u]), c !== !1 ? c : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
1143
+ ` + this.showPosition(), {
1144
+ text: "",
1145
+ token: null,
1146
+ line: this.yylineno
1147
+ });
1148
+ }, "next"),
1149
+ // return next match that has a token
1150
+ lex: /* @__PURE__ */ A(function() {
1151
+ var h = this.next();
1152
+ return h || this.lex();
1153
+ }, "lex"),
1154
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
1155
+ begin: /* @__PURE__ */ A(function(h) {
1156
+ this.conditionStack.push(h);
1157
+ }, "begin"),
1158
+ // pop the previously active lexer condition state off the condition stack
1159
+ popState: /* @__PURE__ */ A(function() {
1160
+ var h = this.conditionStack.length - 1;
1161
+ return h > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1162
+ }, "popState"),
1163
+ // produce the lexer rule set which is active for the currently active lexer condition state
1164
+ _currentRules: /* @__PURE__ */ A(function() {
1165
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1166
+ }, "_currentRules"),
1167
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
1168
+ topState: /* @__PURE__ */ A(function(h) {
1169
+ return h = this.conditionStack.length - 1 - Math.abs(h || 0), h >= 0 ? this.conditionStack[h] : "INITIAL";
1170
+ }, "topState"),
1171
+ // alias for begin(condition)
1172
+ pushState: /* @__PURE__ */ A(function(h) {
1173
+ this.begin(h);
1174
+ }, "pushState"),
1175
+ // return the number of states currently on the stack
1176
+ stateStackSize: /* @__PURE__ */ A(function() {
1177
+ return this.conditionStack.length;
1178
+ }, "stateStackSize"),
1179
+ options: {},
1180
+ performAction: /* @__PURE__ */ A(function(h, f, u, F) {
1181
+ switch (u) {
1182
+ case 0:
1183
+ return this.begin("acc_title"), 34;
1184
+ case 1:
1185
+ return this.popState(), "acc_title_value";
1186
+ case 2:
1187
+ return this.begin("acc_descr"), 36;
1188
+ case 3:
1189
+ return this.popState(), "acc_descr_value";
1190
+ case 4:
1191
+ this.begin("acc_descr_multiline");
1192
+ break;
1193
+ case 5:
1194
+ this.popState();
1195
+ break;
1196
+ case 6:
1197
+ return "acc_descr_multiline_value";
1198
+ case 7:
1199
+ return this.pushState("shapeData"), f.yytext = "", 40;
1200
+ case 8:
1201
+ return this.pushState("shapeDataStr"), 40;
1202
+ case 9:
1203
+ return this.popState(), 40;
1204
+ case 10:
1205
+ const e = /\n\s*/g;
1206
+ return f.yytext = f.yytext.replace(e, "<br/>"), 40;
1207
+ case 11:
1208
+ return 40;
1209
+ case 12:
1210
+ this.popState();
1211
+ break;
1212
+ case 13:
1213
+ this.begin("callbackname");
1214
+ break;
1215
+ case 14:
1216
+ this.popState();
1217
+ break;
1218
+ case 15:
1219
+ this.popState(), this.begin("callbackargs");
1220
+ break;
1221
+ case 16:
1222
+ return 95;
1223
+ case 17:
1224
+ this.popState();
1225
+ break;
1226
+ case 18:
1227
+ return 96;
1228
+ case 19:
1229
+ return "MD_STR";
1230
+ case 20:
1231
+ this.popState();
1232
+ break;
1233
+ case 21:
1234
+ this.begin("md_string");
1235
+ break;
1236
+ case 22:
1237
+ return "STR";
1238
+ case 23:
1239
+ this.popState();
1240
+ break;
1241
+ case 24:
1242
+ this.pushState("string");
1243
+ break;
1244
+ case 25:
1245
+ return 84;
1246
+ case 26:
1247
+ return 102;
1248
+ case 27:
1249
+ return 85;
1250
+ case 28:
1251
+ return 104;
1252
+ case 29:
1253
+ return 86;
1254
+ case 30:
1255
+ return 87;
1256
+ case 31:
1257
+ return 97;
1258
+ case 32:
1259
+ this.begin("click");
1260
+ break;
1261
+ case 33:
1262
+ this.popState();
1263
+ break;
1264
+ case 34:
1265
+ return 88;
1266
+ case 35:
1267
+ return h.lex.firstGraph() && this.begin("dir"), 12;
1268
+ case 36:
1269
+ return h.lex.firstGraph() && this.begin("dir"), 12;
1270
+ case 37:
1271
+ return h.lex.firstGraph() && this.begin("dir"), 12;
1272
+ case 38:
1273
+ return 27;
1274
+ case 39:
1275
+ return 32;
1276
+ case 40:
1277
+ return 98;
1278
+ case 41:
1279
+ return 98;
1280
+ case 42:
1281
+ return 98;
1282
+ case 43:
1283
+ return 98;
1284
+ case 44:
1285
+ return this.popState(), 13;
1286
+ case 45:
1287
+ return this.popState(), 14;
1288
+ case 46:
1289
+ return this.popState(), 14;
1290
+ case 47:
1291
+ return this.popState(), 14;
1292
+ case 48:
1293
+ return this.popState(), 14;
1294
+ case 49:
1295
+ return this.popState(), 14;
1296
+ case 50:
1297
+ return this.popState(), 14;
1298
+ case 51:
1299
+ return this.popState(), 14;
1300
+ case 52:
1301
+ return this.popState(), 14;
1302
+ case 53:
1303
+ return this.popState(), 14;
1304
+ case 54:
1305
+ return this.popState(), 14;
1306
+ case 55:
1307
+ return 121;
1308
+ case 56:
1309
+ return 122;
1310
+ case 57:
1311
+ return 123;
1312
+ case 58:
1313
+ return 124;
1314
+ case 59:
1315
+ return 78;
1316
+ case 60:
1317
+ return 105;
1318
+ case 61:
1319
+ return 111;
1320
+ case 62:
1321
+ return 46;
1322
+ case 63:
1323
+ return 60;
1324
+ case 64:
1325
+ return 44;
1326
+ case 65:
1327
+ return 8;
1328
+ case 66:
1329
+ return 106;
1330
+ case 67:
1331
+ return 115;
1332
+ case 68:
1333
+ return this.popState(), 77;
1334
+ case 69:
1335
+ return this.pushState("edgeText"), 75;
1336
+ case 70:
1337
+ return 119;
1338
+ case 71:
1339
+ return this.popState(), 77;
1340
+ case 72:
1341
+ return this.pushState("thickEdgeText"), 75;
1342
+ case 73:
1343
+ return 119;
1344
+ case 74:
1345
+ return this.popState(), 77;
1346
+ case 75:
1347
+ return this.pushState("dottedEdgeText"), 75;
1348
+ case 76:
1349
+ return 119;
1350
+ case 77:
1351
+ return 77;
1352
+ case 78:
1353
+ return this.popState(), 53;
1354
+ case 79:
1355
+ return "TEXT";
1356
+ case 80:
1357
+ return this.pushState("ellipseText"), 52;
1358
+ case 81:
1359
+ return this.popState(), 55;
1360
+ case 82:
1361
+ return this.pushState("text"), 54;
1362
+ case 83:
1363
+ return this.popState(), 57;
1364
+ case 84:
1365
+ return this.pushState("text"), 56;
1366
+ case 85:
1367
+ return 58;
1368
+ case 86:
1369
+ return this.pushState("text"), 67;
1370
+ case 87:
1371
+ return this.popState(), 64;
1372
+ case 88:
1373
+ return this.pushState("text"), 63;
1374
+ case 89:
1375
+ return this.popState(), 49;
1376
+ case 90:
1377
+ return this.pushState("text"), 48;
1378
+ case 91:
1379
+ return this.popState(), 69;
1380
+ case 92:
1381
+ return this.popState(), 71;
1382
+ case 93:
1383
+ return 117;
1384
+ case 94:
1385
+ return this.pushState("trapText"), 68;
1386
+ case 95:
1387
+ return this.pushState("trapText"), 70;
1388
+ case 96:
1389
+ return 118;
1390
+ case 97:
1391
+ return 67;
1392
+ case 98:
1393
+ return 90;
1394
+ case 99:
1395
+ return "SEP";
1396
+ case 100:
1397
+ return 89;
1398
+ case 101:
1399
+ return 115;
1400
+ case 102:
1401
+ return 111;
1402
+ case 103:
1403
+ return 44;
1404
+ case 104:
1405
+ return 109;
1406
+ case 105:
1407
+ return 114;
1408
+ case 106:
1409
+ return 116;
1410
+ case 107:
1411
+ return this.popState(), 62;
1412
+ case 108:
1413
+ return this.pushState("text"), 62;
1414
+ case 109:
1415
+ return this.popState(), 51;
1416
+ case 110:
1417
+ return this.pushState("text"), 50;
1418
+ case 111:
1419
+ return this.popState(), 31;
1420
+ case 112:
1421
+ return this.pushState("text"), 29;
1422
+ case 113:
1423
+ return this.popState(), 66;
1424
+ case 114:
1425
+ return this.pushState("text"), 65;
1426
+ case 115:
1427
+ return "TEXT";
1428
+ case 116:
1429
+ return "QUOTE";
1430
+ case 117:
1431
+ return 9;
1432
+ case 118:
1433
+ return 10;
1434
+ case 119:
1435
+ return 11;
1436
+ }
1437
+ }, "anonymous"),
1438
+ rules: [/^(?:accTitle\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*\{\s*)/, /^(?:[\}])/, /^(?:[^\}]*)/, /^(?:@\{)/, /^(?:["])/, /^(?:["])/, /^(?:[^\"]+)/, /^(?:[^}^"]+)/, /^(?:\})/, /^(?:call[\s]+)/, /^(?:\([\s]*\))/, /^(?:\()/, /^(?:[^(]*)/, /^(?:\))/, /^(?:[^)]*)/, /^(?:[^`"]+)/, /^(?:[`]["])/, /^(?:["][`])/, /^(?:[^"]+)/, /^(?:["])/, /^(?:["])/, /^(?:style\b)/, /^(?:default\b)/, /^(?:linkStyle\b)/, /^(?:interpolate\b)/, /^(?:classDef\b)/, /^(?:class\b)/, /^(?:href[\s])/, /^(?:click[\s]+)/, /^(?:[\s\n])/, /^(?:[^\s\n]*)/, /^(?:flowchart-elk\b)/, /^(?:graph\b)/, /^(?:flowchart\b)/, /^(?:subgraph\b)/, /^(?:end\b\s*)/, /^(?:_self\b)/, /^(?:_blank\b)/, /^(?:_parent\b)/, /^(?:_top\b)/, /^(?:(\r?\n)*\s*\n)/, /^(?:\s*LR\b)/, /^(?:\s*RL\b)/, /^(?:\s*TB\b)/, /^(?:\s*BT\b)/, /^(?:\s*TD\b)/, /^(?:\s*BR\b)/, /^(?:\s*<)/, /^(?:\s*>)/, /^(?:\s*\^)/, /^(?:\s*v\b)/, /^(?:.*direction\s+TB[^\n]*)/, /^(?:.*direction\s+BT[^\n]*)/, /^(?:.*direction\s+RL[^\n]*)/, /^(?:.*direction\s+LR[^\n]*)/, /^(?:[^\s\"]+@(?=[^\{\"]))/, /^(?:[0-9]+)/, /^(?:#)/, /^(?::::)/, /^(?::)/, /^(?:&)/, /^(?:;)/, /^(?:,)/, /^(?:\*)/, /^(?:\s*[xo<]?--+[-xo>]\s*)/, /^(?:\s*[xo<]?--\s*)/, /^(?:[^-]|-(?!-)+)/, /^(?:\s*[xo<]?==+[=xo>]\s*)/, /^(?:\s*[xo<]?==\s*)/, /^(?:[^=]|=(?!))/, /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/, /^(?:\s*[xo<]?-\.\s*)/, /^(?:[^\.]|\.(?!))/, /^(?:\s*~~[\~]+\s*)/, /^(?:[-/\)][\)])/, /^(?:[^\(\)\[\]\{\}]|!\)+)/, /^(?:\(-)/, /^(?:\]\))/, /^(?:\(\[)/, /^(?:\]\])/, /^(?:\[\[)/, /^(?:\[\|)/, /^(?:>)/, /^(?:\)\])/, /^(?:\[\()/, /^(?:\)\)\))/, /^(?:\(\(\()/, /^(?:[\\(?=\])][\]])/, /^(?:\/(?=\])\])/, /^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/, /^(?:\[\/)/, /^(?:\[\\)/, /^(?:<)/, /^(?:>)/, /^(?:\^)/, /^(?:\\\|)/, /^(?:v\b)/, /^(?:\*)/, /^(?:#)/, /^(?:&)/, /^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/, /^(?:-)/, /^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/, /^(?:\|)/, /^(?:\|)/, /^(?:\))/, /^(?:\()/, /^(?:\])/, /^(?:\[)/, /^(?:(\}))/, /^(?:\{)/, /^(?:[^\[\]\(\)\{\}\|\"]+)/, /^(?:")/, /^(?:(\r?\n)+)/, /^(?:\s)/, /^(?:$)/],
1439
+ conditions: { shapeDataEndBracket: { rules: [21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, shapeDataStr: { rules: [9, 10, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, shapeData: { rules: [8, 11, 12, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, callbackargs: { rules: [17, 18, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, callbackname: { rules: [14, 15, 16, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, href: { rules: [21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, click: { rules: [21, 24, 33, 34, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, dottedEdgeText: { rules: [21, 24, 74, 76, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, thickEdgeText: { rules: [21, 24, 71, 73, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, edgeText: { rules: [21, 24, 68, 70, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, trapText: { rules: [21, 24, 77, 80, 82, 84, 88, 90, 91, 92, 93, 94, 95, 108, 110, 112, 114], inclusive: !1 }, ellipseText: { rules: [21, 24, 77, 78, 79, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, text: { rules: [21, 24, 77, 80, 81, 82, 83, 84, 87, 88, 89, 90, 94, 95, 107, 108, 109, 110, 111, 112, 113, 114, 115], inclusive: !1 }, vertex: { rules: [21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, dir: { rules: [21, 24, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, acc_descr_multiline: { rules: [5, 6, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, acc_descr: { rules: [3, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, acc_title: { rules: [1, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, md_string: { rules: [19, 20, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, string: { rules: [21, 22, 23, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, INITIAL: { rules: [0, 2, 4, 7, 13, 21, 24, 25, 26, 27, 28, 29, 30, 31, 32, 35, 36, 37, 38, 39, 40, 41, 42, 43, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 71, 72, 74, 75, 77, 80, 82, 84, 85, 86, 88, 90, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 108, 110, 112, 114, 116, 117, 118, 119], inclusive: !0 } }
1440
+ };
1441
+ return d1;
1442
+ }();
1443
+ Q1.lexer = Ut;
1444
+ function Y1() {
1445
+ this.yy = {};
1446
+ }
1447
+ return A(Y1, "Parser"), Y1.prototype = Q1, Q1.Parser = Y1, new Y1();
1448
+ }();
1449
+ it.parser = it;
1450
+ var Ot = it, Mt = Object.assign({}, Ot);
1451
+ Mt.parse = (t) => {
1452
+ const i = t.replace(/}\s*\n/g, `}
1453
+ `);
1454
+ return Ot.parse(i);
1455
+ };
1456
+ var ge = Mt, be = /* @__PURE__ */ A((t, i) => {
1457
+ const r = ne, a = r(t, "r"), o = r(t, "g"), p = r(t, "b");
1458
+ return ue(a, o, p, i);
1459
+ }, "fade"), Ae = /* @__PURE__ */ A((t) => `.label {
1460
+ font-family: ${t.fontFamily};
1461
+ color: ${t.nodeTextColor || t.textColor};
1462
+ }
1463
+ .cluster-label text {
1464
+ fill: ${t.titleColor};
1465
+ }
1466
+ .cluster-label span {
1467
+ color: ${t.titleColor};
1468
+ }
1469
+ .cluster-label span p {
1470
+ background-color: transparent;
1471
+ }
1472
+
1473
+ .label text,span {
1474
+ fill: ${t.nodeTextColor || t.textColor};
1475
+ color: ${t.nodeTextColor || t.textColor};
1476
+ }
1477
+
1478
+ .node rect,
1479
+ .node circle,
1480
+ .node ellipse,
1481
+ .node polygon,
1482
+ .node path {
1483
+ fill: ${t.mainBkg};
1484
+ stroke: ${t.nodeBorder};
1485
+ stroke-width: 1px;
1486
+ }
1487
+ .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
1488
+ text-anchor: middle;
1489
+ }
1490
+ // .flowchart-label .text-outer-tspan {
1491
+ // text-anchor: middle;
1492
+ // }
1493
+ // .flowchart-label .text-inner-tspan {
1494
+ // text-anchor: start;
1495
+ // }
1496
+
1497
+ .node .katex path {
1498
+ fill: #000;
1499
+ stroke: #000;
1500
+ stroke-width: 1px;
1501
+ }
1502
+
1503
+ .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
1504
+ text-align: center;
1505
+ }
1506
+ .node.clickable {
1507
+ cursor: pointer;
1508
+ }
1509
+
1510
+
1511
+ .root .anchor path {
1512
+ fill: ${t.lineColor} !important;
1513
+ stroke-width: 0;
1514
+ stroke: ${t.lineColor};
1515
+ }
1516
+
1517
+ .arrowheadPath {
1518
+ fill: ${t.arrowheadColor};
1519
+ }
1520
+
1521
+ .edgePath .path {
1522
+ stroke: ${t.lineColor};
1523
+ stroke-width: 2.0px;
1524
+ }
1525
+
1526
+ .flowchart-link {
1527
+ stroke: ${t.lineColor};
1528
+ fill: none;
1529
+ }
1530
+
1531
+ .edgeLabel {
1532
+ background-color: ${t.edgeLabelBackground};
1533
+ p {
1534
+ background-color: ${t.edgeLabelBackground};
1535
+ }
1536
+ rect {
1537
+ opacity: 0.5;
1538
+ background-color: ${t.edgeLabelBackground};
1539
+ fill: ${t.edgeLabelBackground};
1540
+ }
1541
+ text-align: center;
1542
+ }
1543
+
1544
+ /* For html labels only */
1545
+ .labelBkg {
1546
+ background-color: ${be(t.edgeLabelBackground, 0.5)};
1547
+ // background-color:
1548
+ }
1549
+
1550
+ .cluster rect {
1551
+ fill: ${t.clusterBkg};
1552
+ stroke: ${t.clusterBorder};
1553
+ stroke-width: 1px;
1554
+ }
1555
+
1556
+ .cluster text {
1557
+ fill: ${t.titleColor};
1558
+ }
1559
+
1560
+ .cluster span {
1561
+ color: ${t.titleColor};
1562
+ }
1563
+ /* .cluster div {
1564
+ color: ${t.titleColor};
1565
+ } */
1566
+
1567
+ div.mermaidTooltip {
1568
+ position: absolute;
1569
+ text-align: center;
1570
+ max-width: 200px;
1571
+ padding: 2px;
1572
+ font-family: ${t.fontFamily};
1573
+ font-size: 12px;
1574
+ background: ${t.tertiaryColor};
1575
+ border: 1px solid ${t.border2};
1576
+ border-radius: 2px;
1577
+ pointer-events: none;
1578
+ z-index: 100;
1579
+ }
1580
+
1581
+ .flowchartTitleText {
1582
+ text-anchor: middle;
1583
+ font-size: 18px;
1584
+ fill: ${t.textColor};
1585
+ }
1586
+
1587
+ rect.text {
1588
+ fill: none;
1589
+ stroke-width: 0;
1590
+ }
1591
+
1592
+ .icon-shape, .image-shape {
1593
+ background-color: ${t.edgeLabelBackground};
1594
+ p {
1595
+ background-color: ${t.edgeLabelBackground};
1596
+ padding: 2px;
1597
+ }
1598
+ rect {
1599
+ opacity: 0.5;
1600
+ background-color: ${t.edgeLabelBackground};
1601
+ fill: ${t.edgeLabelBackground};
1602
+ }
1603
+ text-align: center;
1604
+ }
1605
+ `, "getStyles"), ke = Ae, Ce = {
1606
+ parser: ge,
1607
+ get db() {
1608
+ return new he();
1609
+ },
1610
+ renderer: fe,
1611
+ styles: ke,
1612
+ init: /* @__PURE__ */ A((t) => {
1613
+ t.flowchart || (t.flowchart = {}), t.layout && Pt({ layout: t.layout }), t.flowchart.arrowMarkerAbsolute = t.arrowMarkerAbsolute, Pt({ flowchart: { arrowMarkerAbsolute: t.arrowMarkerAbsolute } });
1614
+ }, "init")
1615
+ };
1616
+ export {
1617
+ Ce as diagram
1618
+ };