@prefecthq/prefab-ui-docs 0.16.3 → 0.17.0

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 (66) hide show
  1. package/dist/_renderer/_basePickBy-fiErwOTY.mjs +151 -0
  2. package/dist/_renderer/_baseUniq-Iy7gOYgw.mjs +614 -0
  3. package/dist/_renderer/arc-BYm2F1-h.mjs +83 -0
  4. package/dist/_renderer/architectureDiagram-2XIMDMQ5-BKR0-ZSX.mjs +4683 -0
  5. package/dist/_renderer/band-TE_TbDmh.mjs +56 -0
  6. package/dist/_renderer/blockDiagram-WCTKOSBZ-BruGG_9M.mjs +2298 -0
  7. package/dist/_renderer/c4Diagram-IC4MRINW-K4nxeBNU.mjs +1581 -0
  8. package/dist/_renderer/channel-D4_UYSAN.mjs +5 -0
  9. package/dist/_renderer/charts-Bwny4UB2.mjs +19169 -0
  10. package/dist/_renderer/chunk-4BX2VUAB-mqLb5fm9.mjs +9 -0
  11. package/dist/_renderer/chunk-55IACEB6-Bxgi9T70.mjs +8 -0
  12. package/dist/_renderer/chunk-FMBD7UC4-Dsah75wQ.mjs +19 -0
  13. package/dist/_renderer/chunk-JSJVCQXG-Bsg6dsjU.mjs +68 -0
  14. package/dist/_renderer/chunk-KX2RTZJC-DvDXsxvC.mjs +20 -0
  15. package/dist/_renderer/chunk-NQ4KR5QH-CwFlbBfF.mjs +1384 -0
  16. package/dist/_renderer/chunk-QZHKN3VN-CYPyScRI.mjs +15 -0
  17. package/dist/_renderer/chunk-WL4C6EOR-2eYOPJVd.mjs +1430 -0
  18. package/dist/_renderer/classDiagram-VBA2DB6C-Dj8h8-wl.mjs +16 -0
  19. package/dist/_renderer/classDiagram-v2-RAHNMMFH-Dj8h8-wl.mjs +16 -0
  20. package/dist/_renderer/clone-BmajYOc3.mjs +8 -0
  21. package/dist/_renderer/{compound-calendar-Cn18AoRs.mjs → compound-calendar-Bmz7kTAd.mjs} +3 -3
  22. package/dist/_renderer/{content-e43PvxaF.mjs → content-Bd8N98h-.mjs} +6 -6
  23. package/dist/_renderer/cose-bilkent-S5V4N54A-BLhD0lt7.mjs +2609 -0
  24. package/dist/_renderer/cytoscape.esm-CjI2IsL8.mjs +18735 -0
  25. package/dist/_renderer/dagre-KLK3FWXG-DCIde85z.mjs +447 -0
  26. package/dist/_renderer/defaultLocale-BgPVtth8.mjs +171 -0
  27. package/dist/_renderer/diagram-E7M64L7V-BbWs-jbo.mjs +533 -0
  28. package/dist/_renderer/diagram-IFDJBPK2-Sfx8kanl.mjs +221 -0
  29. package/dist/_renderer/diagram-P4PSJMXO-DCqYaW3Z.mjs +143 -0
  30. package/dist/_renderer/{embed-DRE2wKZJ.mjs → embed-BCPaWfQN.mjs} +1119 -1114
  31. package/dist/_renderer/embed.mjs +1 -1
  32. package/dist/_renderer/erDiagram-INFDFZHY-D8cdLSCi.mjs +863 -0
  33. package/dist/_renderer/flowDiagram-PKNHOUZH-B_rW2Xww.mjs +1647 -0
  34. package/dist/_renderer/ganttDiagram-A5KZAMGK-Be_Svnat.mjs +1964 -0
  35. package/dist/_renderer/gitGraphDiagram-K3NZZRJ6--wMgYsSv.mjs +709 -0
  36. package/dist/_renderer/graph-alLjIojU.mjs +604 -0
  37. package/dist/_renderer/{icons-CImNZgDa.mjs → icons-w8tvN_30.mjs} +155 -135
  38. package/dist/_renderer/infoDiagram-LFFYTUFH-QW1PzgNF.mjs +24 -0
  39. package/dist/_renderer/init-DxzjmxYy.mjs +32 -0
  40. package/dist/_renderer/ishikawaDiagram-PHBUUO56-xY8fsGh3.mjs +621 -0
  41. package/dist/_renderer/journeyDiagram-4ABVD52K-7XeHSH9G.mjs +834 -0
  42. package/dist/_renderer/kanban-definition-K7BYSVSG-Cn7INDI0.mjs +723 -0
  43. package/dist/_renderer/katex-AQJr8RMF.mjs +11623 -0
  44. package/dist/_renderer/layout-Bspk8k85.mjs +1335 -0
  45. package/dist/_renderer/linear-CVnzSbdA.mjs +275 -0
  46. package/dist/_renderer/mermaid-DjgBUZ1W.mjs +48 -0
  47. package/dist/_renderer/mermaid.core-BzbdT8_O.mjs +13838 -0
  48. package/dist/_renderer/mindmap-definition-YRQLILUH-CVIMKVZI.mjs +788 -0
  49. package/dist/_renderer/ordinal-Bq0KrZxK.mjs +62 -0
  50. package/dist/_renderer/pieDiagram-SKSYHLDU-CL_luPJM.mjs +162 -0
  51. package/dist/_renderer/{svg-BL0kMZ_p.mjs → purify.es-M2Bspgo5.mjs} +222 -240
  52. package/dist/_renderer/quadrantDiagram-337W2JSQ-BQWFWFNU.mjs +1024 -0
  53. package/dist/_renderer/requirementDiagram-Z7DCOOCP-Di29RxJ6.mjs +862 -0
  54. package/dist/_renderer/sankeyDiagram-WA2Y5GQK-DY4kgDbR.mjs +810 -0
  55. package/dist/_renderer/sequenceDiagram-2WXFIKYE-vjbD37pn.mjs +2823 -0
  56. package/dist/_renderer/stateDiagram-RAJIS63D-BQ9BAuO6.mjs +264 -0
  57. package/dist/_renderer/stateDiagram-v2-FVOUBMTO-Bs26kEor.mjs +16 -0
  58. package/dist/_renderer/string-kGvNrjOo.mjs +934 -0
  59. package/dist/_renderer/svg-qTs_3V9p.mjs +22 -0
  60. package/dist/_renderer/time-sQ_UKgU4.mjs +765 -0
  61. package/dist/_renderer/timeline-definition-YZTLITO2-CJfaRgME.mjs +799 -0
  62. package/dist/_renderer/treemap-KZPCXAKY-DQq6TCTm.mjs +17996 -0
  63. package/dist/_renderer/vennDiagram-LZ73GAT5-BkBksHrj.mjs +1564 -0
  64. package/dist/_renderer/xychartDiagram-JWTSCODW-Boo1R-nF.mjs +1299 -0
  65. package/package.json +1 -1
  66. package/dist/_renderer/charts-Dr57vKmb.mjs +0 -21311
@@ -0,0 +1,1647 @@
1
+ import { g as Ht } from "./chunk-FMBD7UC4-Dsah75wQ.mjs";
2
+ import { _ as m, n as Mt, l as t1, c as b1, d as O1, o as Xt, r as Qt, u as rt, b as Jt, s as Zt, p as $t, a as te, g as ee, q as se, k as ie, t as re, J as ae, v as ne, x as it, y as ue, z as oe, A as le } from "./mermaid.core-BzbdT8_O.mjs";
3
+ import { c as ce } from "./chunk-JSJVCQXG-Bsg6dsjU.mjs";
4
+ import { g as he } from "./chunk-55IACEB6-Bxgi9T70.mjs";
5
+ import { s as de } from "./chunk-KX2RTZJC-DvDXsxvC.mjs";
6
+ import { p as pe } from "./purify.es-M2Bspgo5.mjs";
7
+ import { c as fe } from "./channel-D4_UYSAN.mjs";
8
+ var ge = "flowchart-", G1, be = (G1 = class {
9
+ // cspell:ignore funs
10
+ constructor() {
11
+ this.vertexCounter = 0, this.config = b1(), 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 = Jt, this.setAccDescription = Zt, this.setDiagramTitle = $t, this.getAccTitle = te, this.getAccDescription = ee, this.getDiagramTitle = se, 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 = {
12
+ firstGraph: this.firstGraph.bind(this)
13
+ }, this.clear(), this.setGen("gen-2");
14
+ }
15
+ sanitizeText(i) {
16
+ return ie.sanitizeText(i, this.config);
17
+ }
18
+ sanitizeNodeLabelType(i) {
19
+ switch (i) {
20
+ case "markdown":
21
+ case "string":
22
+ case "text":
23
+ return i;
24
+ default:
25
+ return "markdown";
26
+ }
27
+ }
28
+ /**
29
+ * Function to lookup domId from id in the graph definition.
30
+ *
31
+ * @param id - id of the node
32
+ */
33
+ lookUpDomId(i) {
34
+ for (const n of this.vertices.values())
35
+ if (n.id === i)
36
+ return n.domId;
37
+ return i;
38
+ }
39
+ /**
40
+ * Function called by parser when a node definition has been found
41
+ */
42
+ addVertex(i, n, a, u, o, f, c = {}, A) {
43
+ var L, T;
44
+ if (!i || i.trim().length === 0)
45
+ return;
46
+ let r;
47
+ if (A !== void 0) {
48
+ let d;
49
+ A.includes(`
50
+ `) ? d = A + `
51
+ ` : d = `{
52
+ ` + A + `
53
+ }`, r = re(d, { schema: ae });
54
+ }
55
+ const k = this.edges.find((d) => d.id === i);
56
+ if (k) {
57
+ const d = r;
58
+ (d == null ? void 0 : d.animate) !== void 0 && (k.animate = d.animate), (d == null ? void 0 : d.animation) !== void 0 && (k.animation = d.animation), (d == null ? void 0 : d.curve) !== void 0 && (k.interpolate = d.curve);
59
+ return;
60
+ }
61
+ let y, b = this.vertices.get(i);
62
+ if (b === void 0 && (b = {
63
+ id: i,
64
+ labelType: "text",
65
+ domId: ge + i + "-" + this.vertexCounter,
66
+ styles: [],
67
+ classes: []
68
+ }, this.vertices.set(i, b)), this.vertexCounter++, n !== void 0 ? (this.config = b1(), y = this.sanitizeText(n.text.trim()), b.labelType = n.type, y.startsWith('"') && y.endsWith('"') && (y = y.substring(1, y.length - 1)), b.text = y) : b.text === void 0 && (b.text = i), a !== void 0 && (b.type = a), u != null && u.forEach((d) => {
69
+ b.styles.push(d);
70
+ }), o != null && o.forEach((d) => {
71
+ b.classes.push(d);
72
+ }), f !== void 0 && (b.dir = f), b.props === void 0 ? b.props = c : c !== void 0 && Object.assign(b.props, c), r !== void 0) {
73
+ if (r.shape) {
74
+ if (r.shape !== r.shape.toLowerCase() || r.shape.includes("_"))
75
+ throw new Error(`No such shape: ${r.shape}. Shape names should be lowercase.`);
76
+ if (!ne(r.shape))
77
+ throw new Error(`No such shape: ${r.shape}.`);
78
+ b.type = r == null ? void 0 : r.shape;
79
+ }
80
+ r != null && r.label && (b.text = r == null ? void 0 : r.label, b.labelType = this.sanitizeNodeLabelType(r == null ? void 0 : r.labelType)), r != null && r.icon && (b.icon = r == null ? void 0 : r.icon, !((L = r.label) != null && L.trim()) && b.text === i && (b.text = "")), r != null && r.form && (b.form = r == null ? void 0 : r.form), r != null && r.pos && (b.pos = r == null ? void 0 : r.pos), r != null && r.img && (b.img = r == null ? void 0 : r.img, !((T = r.label) != null && T.trim()) && b.text === i && (b.text = "")), r != null && r.constraint && (b.constraint = r.constraint), r.w && (b.assetWidth = Number(r.w)), r.h && (b.assetHeight = Number(r.h));
81
+ }
82
+ }
83
+ /**
84
+ * Function called by parser when a link/edge definition has been found
85
+ *
86
+ */
87
+ addSingleLink(i, n, a, u) {
88
+ const c = {
89
+ start: i,
90
+ end: n,
91
+ type: void 0,
92
+ text: "",
93
+ labelType: "text",
94
+ classes: [],
95
+ isUserDefinedId: !1,
96
+ interpolate: this.edges.defaultInterpolate
97
+ };
98
+ t1.info("abc78 Got edge...", c);
99
+ const A = a.text;
100
+ if (A !== void 0 && (c.text = this.sanitizeText(A.text.trim()), c.text.startsWith('"') && c.text.endsWith('"') && (c.text = c.text.substring(1, c.text.length - 1)), c.labelType = this.sanitizeNodeLabelType(A.type)), a !== void 0 && (c.type = a.type, c.stroke = a.stroke, c.length = a.length > 10 ? 10 : a.length), u && !this.edges.some((r) => r.id === u))
101
+ c.id = u, c.isUserDefinedId = !0;
102
+ else {
103
+ const r = this.edges.filter((k) => k.start === c.start && k.end === c.end);
104
+ r.length === 0 ? c.id = it(c.start, c.end, { counter: 0, prefix: "L" }) : c.id = it(c.start, c.end, {
105
+ counter: r.length + 1,
106
+ prefix: "L"
107
+ });
108
+ }
109
+ if (this.edges.length < (this.config.maxEdges ?? 500))
110
+ t1.info("Pushing edge..."), this.edges.push(c);
111
+ else
112
+ throw new Error(
113
+ `Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
114
+
115
+ Initialize mermaid with maxEdges set to a higher number to allow more edges.
116
+ You cannot set this config via configuration inside the diagram as it is a secure config.
117
+ You have to call mermaid.initialize.`
118
+ );
119
+ }
120
+ isLinkData(i) {
121
+ return i !== null && typeof i == "object" && "id" in i && typeof i.id == "string";
122
+ }
123
+ addLink(i, n, a) {
124
+ const u = this.isLinkData(a) ? a.id.replace("@", "") : void 0;
125
+ t1.info("addLink", i, n, u);
126
+ for (const o of i)
127
+ for (const f of n) {
128
+ const c = o === i[i.length - 1], A = f === n[0];
129
+ c && A ? this.addSingleLink(o, f, a, u) : this.addSingleLink(o, f, a, void 0);
130
+ }
131
+ }
132
+ /**
133
+ * Updates a link's line interpolation algorithm
134
+ */
135
+ updateLinkInterpolate(i, n) {
136
+ i.forEach((a) => {
137
+ a === "default" ? this.edges.defaultInterpolate = n : this.edges[a].interpolate = n;
138
+ });
139
+ }
140
+ /**
141
+ * Updates a link with a style
142
+ *
143
+ */
144
+ updateLink(i, n) {
145
+ i.forEach((a) => {
146
+ var u, o, f, c, A, r;
147
+ if (typeof a == "number" && a >= this.edges.length)
148
+ throw new Error(
149
+ `The index ${a} 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.)`
150
+ );
151
+ a === "default" ? this.edges.defaultStyle = n : (this.edges[a].style = n, (((o = (u = this.edges[a]) == null ? void 0 : u.style) == null ? void 0 : o.length) ?? 0) > 0 && !((c = (f = this.edges[a]) == null ? void 0 : f.style) != null && c.some((k) => k == null ? void 0 : k.startsWith("fill"))) && ((r = (A = this.edges[a]) == null ? void 0 : A.style) == null || r.push("fill:none")));
152
+ });
153
+ }
154
+ addClass(i, n) {
155
+ const a = n.join().replace(/\\,/g, "§§§").replace(/,/g, ";").replace(/§§§/g, ",").split(";");
156
+ i.split(",").forEach((u) => {
157
+ let o = this.classes.get(u);
158
+ o === void 0 && (o = { id: u, styles: [], textStyles: [] }, this.classes.set(u, o)), a != null && a.forEach((f) => {
159
+ if (/color/.exec(f)) {
160
+ const c = f.replace("fill", "bgFill");
161
+ o.textStyles.push(c);
162
+ }
163
+ o.styles.push(f);
164
+ });
165
+ });
166
+ }
167
+ /**
168
+ * Called by parser when a graph definition is found, stores the direction of the chart.
169
+ *
170
+ */
171
+ setDirection(i) {
172
+ this.direction = i.trim(), /.*</.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");
173
+ }
174
+ /**
175
+ * Called by parser when a special node is found, e.g. a clickable element.
176
+ *
177
+ * @param ids - Comma separated list of ids
178
+ * @param className - Class to add
179
+ */
180
+ setClass(i, n) {
181
+ for (const a of i.split(",")) {
182
+ const u = this.vertices.get(a);
183
+ u && u.classes.push(n);
184
+ const o = this.edges.find((c) => c.id === a);
185
+ o && o.classes.push(n);
186
+ const f = this.subGraphLookup.get(a);
187
+ f && f.classes.push(n);
188
+ }
189
+ }
190
+ setTooltip(i, n) {
191
+ if (n !== void 0) {
192
+ n = this.sanitizeText(n);
193
+ for (const a of i.split(","))
194
+ this.tooltips.set(this.version === "gen-1" ? this.lookUpDomId(a) : a, n);
195
+ }
196
+ }
197
+ setClickFun(i, n, a) {
198
+ const u = this.lookUpDomId(i);
199
+ if (b1().securityLevel !== "loose" || n === void 0)
200
+ return;
201
+ let o = [];
202
+ if (typeof a == "string") {
203
+ o = a.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
204
+ for (let c = 0; c < o.length; c++) {
205
+ let A = o[c].trim();
206
+ A.startsWith('"') && A.endsWith('"') && (A = A.substr(1, A.length - 2)), o[c] = A;
207
+ }
208
+ }
209
+ o.length === 0 && o.push(i);
210
+ const f = this.vertices.get(i);
211
+ f && (f.haveCallback = !0, this.funs.push(() => {
212
+ const c = document.querySelector(`[id="${u}"]`);
213
+ c !== null && c.addEventListener(
214
+ "click",
215
+ () => {
216
+ rt.runFunc(n, ...o);
217
+ },
218
+ !1
219
+ );
220
+ }));
221
+ }
222
+ /**
223
+ * Called by parser when a link is found. Adds the URL to the vertex data.
224
+ *
225
+ * @param ids - Comma separated list of ids
226
+ * @param linkStr - URL to create a link for
227
+ * @param target - Target attribute for the link
228
+ */
229
+ setLink(i, n, a) {
230
+ i.split(",").forEach((u) => {
231
+ const o = this.vertices.get(u);
232
+ o !== void 0 && (o.link = rt.formatUrl(n, this.config), o.linkTarget = a);
233
+ }), this.setClass(i, "clickable");
234
+ }
235
+ getTooltip(i) {
236
+ return this.tooltips.get(i);
237
+ }
238
+ /**
239
+ * Called by parser when a click definition is found. Registers an event handler.
240
+ *
241
+ * @param ids - Comma separated list of ids
242
+ * @param functionName - Function to be called on click
243
+ * @param functionArgs - Arguments to be passed to the function
244
+ */
245
+ setClickEvent(i, n, a) {
246
+ i.split(",").forEach((u) => {
247
+ this.setClickFun(u, n, a);
248
+ }), this.setClass(i, "clickable");
249
+ }
250
+ bindFunctions(i) {
251
+ this.funs.forEach((n) => {
252
+ n(i);
253
+ });
254
+ }
255
+ getDirection() {
256
+ var i;
257
+ return (i = this.direction) == null ? void 0 : i.trim();
258
+ }
259
+ /**
260
+ * Retrieval function for fetching the found nodes after parsing has completed.
261
+ *
262
+ */
263
+ getVertices() {
264
+ return this.vertices;
265
+ }
266
+ /**
267
+ * Retrieval function for fetching the found links after parsing has completed.
268
+ *
269
+ */
270
+ getEdges() {
271
+ return this.edges;
272
+ }
273
+ /**
274
+ * Retrieval function for fetching the found class definitions after parsing has completed.
275
+ *
276
+ */
277
+ getClasses() {
278
+ return this.classes;
279
+ }
280
+ setupToolTips(i) {
281
+ const n = ce();
282
+ O1(i).select("svg").selectAll("g.node").on("mouseover", (o) => {
283
+ var r;
284
+ const f = O1(o.currentTarget), c = f.attr("title");
285
+ if (c === null)
286
+ return;
287
+ const A = (r = o.currentTarget) == null ? void 0 : r.getBoundingClientRect();
288
+ n.transition().duration(200).style("opacity", ".9"), n.text(f.attr("title")).style("left", window.scrollX + A.left + (A.right - A.left) / 2 + "px").style("top", window.scrollY + A.bottom + "px"), n.html(pe.sanitize(c)), f.classed("hover", !0);
289
+ }).on("mouseout", (o) => {
290
+ n.transition().duration(500).style("opacity", 0), O1(o.currentTarget).classed("hover", !1);
291
+ });
292
+ }
293
+ /**
294
+ * Clears the internal graph db so that a new graph can be parsed.
295
+ *
296
+ */
297
+ clear(i = "gen-2") {
298
+ 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 = i, this.config = b1(), ue();
299
+ }
300
+ setGen(i) {
301
+ this.version = i || "gen-2";
302
+ }
303
+ defaultStyle() {
304
+ return "fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;";
305
+ }
306
+ addSubGraph(i, n, a) {
307
+ let u = i.text.trim(), o = a.text;
308
+ i === a && /\s/.exec(a.text) && (u = void 0);
309
+ const c = (/* @__PURE__ */ m((b) => {
310
+ const L = { boolean: {}, number: {}, string: {} }, T = [];
311
+ let d;
312
+ return { nodeList: b.filter(function(z) {
313
+ const Z = typeof z;
314
+ return z.stmt && z.stmt === "dir" ? (d = z.value, !1) : z.trim() === "" ? !1 : Z in L ? L[Z].hasOwnProperty(z) ? !1 : L[Z][z] = !0 : T.includes(z) ? !1 : T.push(z);
315
+ }), dir: d };
316
+ }, "uniq"))(n.flat()), A = c.nodeList;
317
+ let r = c.dir;
318
+ const k = b1().flowchart ?? {};
319
+ if (r = r ?? (k.inheritDir ? this.getDirection() ?? b1().direction ?? void 0 : void 0), this.version === "gen-1")
320
+ for (let b = 0; b < A.length; b++)
321
+ A[b] = this.lookUpDomId(A[b]);
322
+ u = u ?? "subGraph" + this.subCount, o = o || "", o = this.sanitizeText(o), this.subCount = this.subCount + 1;
323
+ const y = {
324
+ id: u,
325
+ nodes: A,
326
+ title: o.trim(),
327
+ classes: [],
328
+ dir: r,
329
+ labelType: this.sanitizeNodeLabelType(a == null ? void 0 : a.type)
330
+ };
331
+ return t1.info("Adding", y.id, y.nodes, y.dir), y.nodes = this.makeUniq(y, this.subGraphs).nodes, this.subGraphs.push(y), this.subGraphLookup.set(u, y), u;
332
+ }
333
+ getPosForId(i) {
334
+ for (const [n, a] of this.subGraphs.entries())
335
+ if (a.id === i)
336
+ return n;
337
+ return -1;
338
+ }
339
+ indexNodes2(i, n) {
340
+ const a = this.subGraphs[n].nodes;
341
+ if (this.secCount = this.secCount + 1, this.secCount > 2e3)
342
+ return {
343
+ result: !1,
344
+ count: 0
345
+ };
346
+ if (this.posCrossRef[this.secCount] = n, this.subGraphs[n].id === i)
347
+ return {
348
+ result: !0,
349
+ count: 0
350
+ };
351
+ let u = 0, o = 1;
352
+ for (; u < a.length; ) {
353
+ const f = this.getPosForId(a[u]);
354
+ if (f >= 0) {
355
+ const c = this.indexNodes2(i, f);
356
+ if (c.result)
357
+ return {
358
+ result: !0,
359
+ count: o + c.count
360
+ };
361
+ o = o + c.count;
362
+ }
363
+ u = u + 1;
364
+ }
365
+ return {
366
+ result: !1,
367
+ count: o
368
+ };
369
+ }
370
+ getDepthFirstPos(i) {
371
+ return this.posCrossRef[i];
372
+ }
373
+ indexNodes() {
374
+ this.secCount = -1, this.subGraphs.length > 0 && this.indexNodes2("none", this.subGraphs.length - 1);
375
+ }
376
+ getSubGraphs() {
377
+ return this.subGraphs;
378
+ }
379
+ firstGraph() {
380
+ return this.firstGraphFlag ? (this.firstGraphFlag = !1, !0) : !1;
381
+ }
382
+ destructStartLink(i) {
383
+ let n = i.trim(), a = "arrow_open";
384
+ switch (n[0]) {
385
+ case "<":
386
+ a = "arrow_point", n = n.slice(1);
387
+ break;
388
+ case "x":
389
+ a = "arrow_cross", n = n.slice(1);
390
+ break;
391
+ case "o":
392
+ a = "arrow_circle", n = n.slice(1);
393
+ break;
394
+ }
395
+ let u = "normal";
396
+ return n.includes("=") && (u = "thick"), n.includes(".") && (u = "dotted"), { type: a, stroke: u };
397
+ }
398
+ countChar(i, n) {
399
+ const a = n.length;
400
+ let u = 0;
401
+ for (let o = 0; o < a; ++o)
402
+ n[o] === i && ++u;
403
+ return u;
404
+ }
405
+ destructEndLink(i) {
406
+ const n = i.trim();
407
+ let a = n.slice(0, -1), u = "arrow_open";
408
+ switch (n.slice(-1)) {
409
+ case "x":
410
+ u = "arrow_cross", n.startsWith("x") && (u = "double_" + u, a = a.slice(1));
411
+ break;
412
+ case ">":
413
+ u = "arrow_point", n.startsWith("<") && (u = "double_" + u, a = a.slice(1));
414
+ break;
415
+ case "o":
416
+ u = "arrow_circle", n.startsWith("o") && (u = "double_" + u, a = a.slice(1));
417
+ break;
418
+ }
419
+ let o = "normal", f = a.length - 1;
420
+ a.startsWith("=") && (o = "thick"), a.startsWith("~") && (o = "invisible");
421
+ const c = this.countChar(".", a);
422
+ return c && (o = "dotted", f = c), { type: u, stroke: o, length: f };
423
+ }
424
+ destructLink(i, n) {
425
+ const a = this.destructEndLink(i);
426
+ let u;
427
+ if (n) {
428
+ if (u = this.destructStartLink(n), u.stroke !== a.stroke)
429
+ return { type: "INVALID", stroke: "INVALID" };
430
+ if (u.type === "arrow_open")
431
+ u.type = a.type;
432
+ else {
433
+ if (u.type !== a.type)
434
+ return { type: "INVALID", stroke: "INVALID" };
435
+ u.type = "double_" + u.type;
436
+ }
437
+ return u.type === "double_arrow" && (u.type = "double_arrow_point"), u.length = a.length, u;
438
+ }
439
+ return a;
440
+ }
441
+ // Todo optimizer this by caching existing nodes
442
+ exists(i, n) {
443
+ for (const a of i)
444
+ if (a.nodes.includes(n))
445
+ return !0;
446
+ return !1;
447
+ }
448
+ /**
449
+ * Deletes an id from all subgraphs
450
+ *
451
+ */
452
+ makeUniq(i, n) {
453
+ const a = [];
454
+ return i.nodes.forEach((u, o) => {
455
+ this.exists(n, u) || a.push(i.nodes[o]);
456
+ }), { nodes: a };
457
+ }
458
+ getTypeFromVertex(i) {
459
+ if (i.img)
460
+ return "imageSquare";
461
+ if (i.icon)
462
+ return i.form === "circle" ? "iconCircle" : i.form === "square" ? "iconSquare" : i.form === "rounded" ? "iconRounded" : "icon";
463
+ switch (i.type) {
464
+ case "square":
465
+ case void 0:
466
+ return "squareRect";
467
+ case "round":
468
+ return "roundedRect";
469
+ case "ellipse":
470
+ return "ellipse";
471
+ default:
472
+ return i.type;
473
+ }
474
+ }
475
+ findNode(i, n) {
476
+ return i.find((a) => a.id === n);
477
+ }
478
+ destructEdgeType(i) {
479
+ let n = "none", a = "arrow_point";
480
+ switch (i) {
481
+ case "arrow_point":
482
+ case "arrow_circle":
483
+ case "arrow_cross":
484
+ a = i;
485
+ break;
486
+ case "double_arrow_point":
487
+ case "double_arrow_circle":
488
+ case "double_arrow_cross":
489
+ n = i.replace("double_", ""), a = n;
490
+ break;
491
+ }
492
+ return { arrowTypeStart: n, arrowTypeEnd: a };
493
+ }
494
+ addNodeFromVertex(i, n, a, u, o, f) {
495
+ var k;
496
+ const c = a.get(i.id), A = u.get(i.id) ?? !1, r = this.findNode(n, i.id);
497
+ if (r)
498
+ r.cssStyles = i.styles, r.cssCompiledStyles = this.getCompiledStyles(i.classes), r.cssClasses = i.classes.join(" ");
499
+ else {
500
+ const y = {
501
+ id: i.id,
502
+ label: i.text,
503
+ labelType: i.labelType,
504
+ labelStyle: "",
505
+ parentId: c,
506
+ padding: ((k = o.flowchart) == null ? void 0 : k.padding) || 8,
507
+ cssStyles: i.styles,
508
+ cssCompiledStyles: this.getCompiledStyles(["default", "node", ...i.classes]),
509
+ cssClasses: "default " + i.classes.join(" "),
510
+ dir: i.dir,
511
+ domId: i.domId,
512
+ look: f,
513
+ link: i.link,
514
+ linkTarget: i.linkTarget,
515
+ tooltip: this.getTooltip(i.id),
516
+ icon: i.icon,
517
+ pos: i.pos,
518
+ img: i.img,
519
+ assetWidth: i.assetWidth,
520
+ assetHeight: i.assetHeight,
521
+ constraint: i.constraint
522
+ };
523
+ A ? n.push({
524
+ ...y,
525
+ isGroup: !0,
526
+ shape: "rect"
527
+ }) : n.push({
528
+ ...y,
529
+ isGroup: !1,
530
+ shape: this.getTypeFromVertex(i)
531
+ });
532
+ }
533
+ }
534
+ getCompiledStyles(i) {
535
+ let n = [];
536
+ for (const a of i) {
537
+ const u = this.classes.get(a);
538
+ u != null && u.styles && (n = [...n, ...u.styles ?? []].map((o) => o.trim())), u != null && u.textStyles && (n = [...n, ...u.textStyles ?? []].map((o) => o.trim()));
539
+ }
540
+ return n;
541
+ }
542
+ getData() {
543
+ const i = b1(), n = [], a = [], u = this.getSubGraphs(), o = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map();
544
+ for (let r = u.length - 1; r >= 0; r--) {
545
+ const k = u[r];
546
+ k.nodes.length > 0 && f.set(k.id, !0);
547
+ for (const y of k.nodes)
548
+ o.set(y, k.id);
549
+ }
550
+ for (let r = u.length - 1; r >= 0; r--) {
551
+ const k = u[r];
552
+ n.push({
553
+ id: k.id,
554
+ label: k.title,
555
+ labelStyle: "",
556
+ labelType: k.labelType,
557
+ parentId: o.get(k.id),
558
+ padding: 8,
559
+ cssCompiledStyles: this.getCompiledStyles(k.classes),
560
+ cssClasses: k.classes.join(" "),
561
+ shape: "rect",
562
+ dir: k.dir,
563
+ isGroup: !0,
564
+ look: i.look
565
+ });
566
+ }
567
+ this.getVertices().forEach((r) => {
568
+ this.addNodeFromVertex(r, n, o, f, i, i.look || "classic");
569
+ });
570
+ const A = this.getEdges();
571
+ return A.forEach((r, k) => {
572
+ var d;
573
+ const { arrowTypeStart: y, arrowTypeEnd: b } = this.destructEdgeType(r.type), L = [...A.defaultStyle ?? []];
574
+ r.style && L.push(...r.style);
575
+ const T = {
576
+ id: it(r.start, r.end, { counter: k, prefix: "L" }, r.id),
577
+ isUserDefinedId: r.isUserDefinedId,
578
+ start: r.start,
579
+ end: r.end,
580
+ type: r.type ?? "normal",
581
+ label: r.text,
582
+ labelType: r.labelType,
583
+ labelpos: "c",
584
+ thickness: r.stroke,
585
+ minlen: r.length,
586
+ classes: (r == null ? void 0 : r.stroke) === "invisible" ? "" : "edge-thickness-normal edge-pattern-solid flowchart-link",
587
+ arrowTypeStart: (r == null ? void 0 : r.stroke) === "invisible" || (r == null ? void 0 : r.type) === "arrow_open" ? "none" : y,
588
+ arrowTypeEnd: (r == null ? void 0 : r.stroke) === "invisible" || (r == null ? void 0 : r.type) === "arrow_open" ? "none" : b,
589
+ arrowheadStyle: "fill: #333",
590
+ cssCompiledStyles: this.getCompiledStyles(r.classes),
591
+ labelStyle: L,
592
+ style: L,
593
+ pattern: r.stroke,
594
+ look: i.look,
595
+ animate: r.animate,
596
+ animation: r.animation,
597
+ curve: r.interpolate || this.edges.defaultInterpolate || ((d = i.flowchart) == null ? void 0 : d.curve)
598
+ };
599
+ a.push(T);
600
+ }), { nodes: n, edges: a, other: {}, config: i };
601
+ }
602
+ defaultConfig() {
603
+ return oe.flowchart;
604
+ }
605
+ }, m(G1, "FlowDB"), G1), Ae = /* @__PURE__ */ m(function(s, i) {
606
+ return i.db.getClasses();
607
+ }, "getClasses"), ke = /* @__PURE__ */ m(async function(s, i, n, a) {
608
+ var L;
609
+ t1.info("REF0:"), t1.info("Drawing state diagram (v2)", i);
610
+ const { securityLevel: u, flowchart: o, layout: f } = b1();
611
+ let c;
612
+ u === "sandbox" && (c = O1("#i" + i));
613
+ const A = u === "sandbox" ? c.nodes()[0].contentDocument : document;
614
+ t1.debug("Before getData: ");
615
+ const r = a.db.getData();
616
+ t1.debug("Data: ", r);
617
+ const k = he(i, u), y = a.db.getDirection();
618
+ r.type = a.type, r.layoutAlgorithm = Xt(f), r.layoutAlgorithm === "dagre" && f === "elk" && t1.warn(
619
+ "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."
620
+ ), r.direction = y, r.nodeSpacing = (o == null ? void 0 : o.nodeSpacing) || 50, r.rankSpacing = (o == null ? void 0 : o.rankSpacing) || 50, r.markers = ["point", "circle", "cross"], r.diagramId = i, t1.debug("REF1:", r), await Qt(r, k);
621
+ const b = ((L = r.config.flowchart) == null ? void 0 : L.diagramPadding) ?? 8;
622
+ rt.insertTitle(
623
+ k,
624
+ "flowchartTitleText",
625
+ (o == null ? void 0 : o.titleTopMargin) || 0,
626
+ a.db.getDiagramTitle()
627
+ ), de(k, b, "flowchart", (o == null ? void 0 : o.useMaxWidth) || !1);
628
+ for (const T of r.nodes) {
629
+ const d = O1(`#${i} [id="${T.id}"]`);
630
+ if (!d || !T.link)
631
+ continue;
632
+ const J = A.createElementNS("http://www.w3.org/2000/svg", "a");
633
+ J.setAttributeNS("http://www.w3.org/2000/svg", "class", T.cssClasses), J.setAttributeNS("http://www.w3.org/2000/svg", "rel", "noopener"), u === "sandbox" ? J.setAttributeNS("http://www.w3.org/2000/svg", "target", "_top") : T.linkTarget && J.setAttributeNS("http://www.w3.org/2000/svg", "target", T.linkTarget);
634
+ const z = d.insert(function() {
635
+ return J;
636
+ }, ":first-child"), Z = d.select(".label-container");
637
+ Z && z.append(function() {
638
+ return Z.node();
639
+ });
640
+ const A1 = d.select(".label");
641
+ A1 && z.append(function() {
642
+ return A1.node();
643
+ });
644
+ }
645
+ }, "draw"), me = {
646
+ getClasses: Ae,
647
+ draw: ke
648
+ }, at = (function() {
649
+ var s = /* @__PURE__ */ m(function(g1, h, p, g) {
650
+ for (p = p || {}, g = g1.length; g--; p[g1[g]] = h) ;
651
+ return p;
652
+ }, "o"), i = [1, 4], n = [1, 3], a = [1, 5], u = [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, 125], o = [2, 2], f = [1, 13], c = [1, 14], A = [1, 15], r = [1, 16], k = [1, 23], y = [1, 25], b = [1, 26], L = [1, 27], T = [1, 50], d = [1, 49], J = [1, 29], z = [1, 30], Z = [1, 31], A1 = [1, 32], M1 = [1, 33], V = [1, 45], I = [1, 47], w = [1, 43], R = [1, 48], N = [1, 44], G = [1, 51], P = [1, 46], O = [1, 52], M = [1, 53], U1 = [1, 34], z1 = [1, 35], W1 = [1, 36], j1 = [1, 37], K1 = [1, 38], p1 = [1, 58], E = [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, 125], e1 = [1, 62], s1 = [1, 61], i1 = [1, 63], C1 = [8, 9, 11, 75, 77, 78], nt = [1, 79], S1 = [1, 92], D1 = [1, 97], x1 = [1, 96], y1 = [1, 93], E1 = [1, 89], F1 = [1, 95], _1 = [1, 91], B1 = [1, 98], v1 = [1, 94], L1 = [1, 99], V1 = [1, 90], k1 = [8, 9, 10, 11, 40, 75, 77, 78], W = [8, 9, 10, 11, 40, 46, 75, 77, 78], q = [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], ut = [8, 9, 11, 44, 60, 75, 77, 78, 89, 102, 105, 106, 109, 111, 114, 115, 116], I1 = [44, 60, 89, 102, 105, 106, 109, 111, 114, 115, 116], ot = [1, 122], lt = [1, 123], Y1 = [1, 125], q1 = [1, 124], ct = [44, 60, 62, 74, 89, 102, 105, 106, 109, 111, 114, 115, 116], ht = [1, 134], dt = [1, 148], pt = [1, 149], ft = [1, 150], gt = [1, 151], bt = [1, 136], At = [1, 138], kt = [1, 142], mt = [1, 143], Tt = [1, 144], Ct = [1, 145], St = [1, 146], Dt = [1, 147], xt = [1, 152], yt = [1, 153], Et = [1, 132], Ft = [1, 133], _t = [1, 140], Bt = [1, 135], vt = [1, 139], Lt = [1, 137], J1 = [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, 125], Vt = [1, 155], It = [1, 157], B = [8, 9, 11], H = [8, 9, 10, 11, 14, 44, 60, 89, 105, 106, 109, 111, 114, 115, 116], C = [1, 177], j = [1, 173], K = [1, 174], S = [1, 178], D = [1, 175], x = [1, 176], w1 = [77, 116, 119], F = [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], wt = [10, 106], f1 = [31, 49, 51, 53, 55, 57, 62, 64, 66, 67, 69, 71, 116, 117, 118], r1 = [1, 248], a1 = [1, 246], n1 = [1, 250], u1 = [1, 244], o1 = [1, 245], l1 = [1, 247], c1 = [1, 249], h1 = [1, 251], R1 = [1, 269], Rt = [8, 9, 11, 106], $ = [8, 9, 10, 11, 60, 84, 105, 106, 109, 110, 111, 112], Z1 = {
653
+ trace: /* @__PURE__ */ m(function() {
654
+ }, "trace"),
655
+ yy: {},
656
+ 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, direction_td: 125, $accept: 0, $end: 1 },
657
+ 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", 125: "direction_td" },
658
+ 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], [33, 1]],
659
+ performAction: /* @__PURE__ */ m(function(h, p, g, l, _, t, P1) {
660
+ var e = t.length - 1;
661
+ switch (_) {
662
+ case 2:
663
+ this.$ = [];
664
+ break;
665
+ case 3:
666
+ (!Array.isArray(t[e]) || t[e].length > 0) && t[e - 1].push(t[e]), this.$ = t[e - 1];
667
+ break;
668
+ case 4:
669
+ case 183:
670
+ this.$ = t[e];
671
+ break;
672
+ case 11:
673
+ l.setDirection("TB"), this.$ = "TB";
674
+ break;
675
+ case 12:
676
+ l.setDirection(t[e - 1]), this.$ = t[e - 1];
677
+ break;
678
+ case 27:
679
+ this.$ = t[e - 1].nodes;
680
+ break;
681
+ case 28:
682
+ case 29:
683
+ case 30:
684
+ case 31:
685
+ case 32:
686
+ this.$ = [];
687
+ break;
688
+ case 33:
689
+ this.$ = l.addSubGraph(t[e - 6], t[e - 1], t[e - 4]);
690
+ break;
691
+ case 34:
692
+ this.$ = l.addSubGraph(t[e - 3], t[e - 1], t[e - 3]);
693
+ break;
694
+ case 35:
695
+ this.$ = l.addSubGraph(void 0, t[e - 1], void 0);
696
+ break;
697
+ case 37:
698
+ this.$ = t[e].trim(), l.setAccTitle(this.$);
699
+ break;
700
+ case 38:
701
+ case 39:
702
+ this.$ = t[e].trim(), l.setAccDescription(this.$);
703
+ break;
704
+ case 43:
705
+ this.$ = t[e - 1] + t[e];
706
+ break;
707
+ case 44:
708
+ this.$ = t[e];
709
+ break;
710
+ case 45:
711
+ l.addVertex(t[e - 1][t[e - 1].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, t[e]), l.addLink(t[e - 3].stmt, t[e - 1], t[e - 2]), this.$ = { stmt: t[e - 1], nodes: t[e - 1].concat(t[e - 3].nodes) };
712
+ break;
713
+ case 46:
714
+ l.addLink(t[e - 2].stmt, t[e], t[e - 1]), this.$ = { stmt: t[e], nodes: t[e].concat(t[e - 2].nodes) };
715
+ break;
716
+ case 47:
717
+ l.addLink(t[e - 3].stmt, t[e - 1], t[e - 2]), this.$ = { stmt: t[e - 1], nodes: t[e - 1].concat(t[e - 3].nodes) };
718
+ break;
719
+ case 48:
720
+ this.$ = { stmt: t[e - 1], nodes: t[e - 1] };
721
+ break;
722
+ case 49:
723
+ l.addVertex(t[e - 1][t[e - 1].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, t[e]), this.$ = { stmt: t[e - 1], nodes: t[e - 1], shapeData: t[e] };
724
+ break;
725
+ case 50:
726
+ this.$ = { stmt: t[e], nodes: t[e] };
727
+ break;
728
+ case 51:
729
+ this.$ = [t[e]];
730
+ break;
731
+ case 52:
732
+ l.addVertex(t[e - 5][t[e - 5].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, t[e - 4]), this.$ = t[e - 5].concat(t[e]);
733
+ break;
734
+ case 53:
735
+ this.$ = t[e - 4].concat(t[e]);
736
+ break;
737
+ case 54:
738
+ this.$ = t[e];
739
+ break;
740
+ case 55:
741
+ this.$ = t[e - 2], l.setClass(t[e - 2], t[e]);
742
+ break;
743
+ case 56:
744
+ this.$ = t[e - 3], l.addVertex(t[e - 3], t[e - 1], "square");
745
+ break;
746
+ case 57:
747
+ this.$ = t[e - 3], l.addVertex(t[e - 3], t[e - 1], "doublecircle");
748
+ break;
749
+ case 58:
750
+ this.$ = t[e - 5], l.addVertex(t[e - 5], t[e - 2], "circle");
751
+ break;
752
+ case 59:
753
+ this.$ = t[e - 3], l.addVertex(t[e - 3], t[e - 1], "ellipse");
754
+ break;
755
+ case 60:
756
+ this.$ = t[e - 3], l.addVertex(t[e - 3], t[e - 1], "stadium");
757
+ break;
758
+ case 61:
759
+ this.$ = t[e - 3], l.addVertex(t[e - 3], t[e - 1], "subroutine");
760
+ break;
761
+ case 62:
762
+ this.$ = t[e - 7], l.addVertex(t[e - 7], t[e - 1], "rect", void 0, void 0, void 0, Object.fromEntries([[t[e - 5], t[e - 3]]]));
763
+ break;
764
+ case 63:
765
+ this.$ = t[e - 3], l.addVertex(t[e - 3], t[e - 1], "cylinder");
766
+ break;
767
+ case 64:
768
+ this.$ = t[e - 3], l.addVertex(t[e - 3], t[e - 1], "round");
769
+ break;
770
+ case 65:
771
+ this.$ = t[e - 3], l.addVertex(t[e - 3], t[e - 1], "diamond");
772
+ break;
773
+ case 66:
774
+ this.$ = t[e - 5], l.addVertex(t[e - 5], t[e - 2], "hexagon");
775
+ break;
776
+ case 67:
777
+ this.$ = t[e - 3], l.addVertex(t[e - 3], t[e - 1], "odd");
778
+ break;
779
+ case 68:
780
+ this.$ = t[e - 3], l.addVertex(t[e - 3], t[e - 1], "trapezoid");
781
+ break;
782
+ case 69:
783
+ this.$ = t[e - 3], l.addVertex(t[e - 3], t[e - 1], "inv_trapezoid");
784
+ break;
785
+ case 70:
786
+ this.$ = t[e - 3], l.addVertex(t[e - 3], t[e - 1], "lean_right");
787
+ break;
788
+ case 71:
789
+ this.$ = t[e - 3], l.addVertex(t[e - 3], t[e - 1], "lean_left");
790
+ break;
791
+ case 72:
792
+ this.$ = t[e], l.addVertex(t[e]);
793
+ break;
794
+ case 73:
795
+ t[e - 1].text = t[e], this.$ = t[e - 1];
796
+ break;
797
+ case 74:
798
+ case 75:
799
+ t[e - 2].text = t[e - 1], this.$ = t[e - 2];
800
+ break;
801
+ case 76:
802
+ this.$ = t[e];
803
+ break;
804
+ case 77:
805
+ var v = l.destructLink(t[e], t[e - 2]);
806
+ this.$ = { type: v.type, stroke: v.stroke, length: v.length, text: t[e - 1] };
807
+ break;
808
+ case 78:
809
+ var v = l.destructLink(t[e], t[e - 2]);
810
+ this.$ = { type: v.type, stroke: v.stroke, length: v.length, text: t[e - 1], id: t[e - 3] };
811
+ break;
812
+ case 79:
813
+ this.$ = { text: t[e], type: "text" };
814
+ break;
815
+ case 80:
816
+ this.$ = { text: t[e - 1].text + "" + t[e], type: t[e - 1].type };
817
+ break;
818
+ case 81:
819
+ this.$ = { text: t[e], type: "string" };
820
+ break;
821
+ case 82:
822
+ this.$ = { text: t[e], type: "markdown" };
823
+ break;
824
+ case 83:
825
+ var v = l.destructLink(t[e]);
826
+ this.$ = { type: v.type, stroke: v.stroke, length: v.length };
827
+ break;
828
+ case 84:
829
+ var v = l.destructLink(t[e]);
830
+ this.$ = { type: v.type, stroke: v.stroke, length: v.length, id: t[e - 1] };
831
+ break;
832
+ case 85:
833
+ this.$ = t[e - 1];
834
+ break;
835
+ case 86:
836
+ this.$ = { text: t[e], type: "text" };
837
+ break;
838
+ case 87:
839
+ this.$ = { text: t[e - 1].text + "" + t[e], type: t[e - 1].type };
840
+ break;
841
+ case 88:
842
+ this.$ = { text: t[e], type: "string" };
843
+ break;
844
+ case 89:
845
+ case 104:
846
+ this.$ = { text: t[e], type: "markdown" };
847
+ break;
848
+ case 101:
849
+ this.$ = { text: t[e], type: "text" };
850
+ break;
851
+ case 102:
852
+ this.$ = { text: t[e - 1].text + "" + t[e], type: t[e - 1].type };
853
+ break;
854
+ case 103:
855
+ this.$ = { text: t[e], type: "text" };
856
+ break;
857
+ case 105:
858
+ this.$ = t[e - 4], l.addClass(t[e - 2], t[e]);
859
+ break;
860
+ case 106:
861
+ this.$ = t[e - 4], l.setClass(t[e - 2], t[e]);
862
+ break;
863
+ case 107:
864
+ case 115:
865
+ this.$ = t[e - 1], l.setClickEvent(t[e - 1], t[e]);
866
+ break;
867
+ case 108:
868
+ case 116:
869
+ this.$ = t[e - 3], l.setClickEvent(t[e - 3], t[e - 2]), l.setTooltip(t[e - 3], t[e]);
870
+ break;
871
+ case 109:
872
+ this.$ = t[e - 2], l.setClickEvent(t[e - 2], t[e - 1], t[e]);
873
+ break;
874
+ case 110:
875
+ this.$ = t[e - 4], l.setClickEvent(t[e - 4], t[e - 3], t[e - 2]), l.setTooltip(t[e - 4], t[e]);
876
+ break;
877
+ case 111:
878
+ this.$ = t[e - 2], l.setLink(t[e - 2], t[e]);
879
+ break;
880
+ case 112:
881
+ this.$ = t[e - 4], l.setLink(t[e - 4], t[e - 2]), l.setTooltip(t[e - 4], t[e]);
882
+ break;
883
+ case 113:
884
+ this.$ = t[e - 4], l.setLink(t[e - 4], t[e - 2], t[e]);
885
+ break;
886
+ case 114:
887
+ this.$ = t[e - 6], l.setLink(t[e - 6], t[e - 4], t[e]), l.setTooltip(t[e - 6], t[e - 2]);
888
+ break;
889
+ case 117:
890
+ this.$ = t[e - 1], l.setLink(t[e - 1], t[e]);
891
+ break;
892
+ case 118:
893
+ this.$ = t[e - 3], l.setLink(t[e - 3], t[e - 2]), l.setTooltip(t[e - 3], t[e]);
894
+ break;
895
+ case 119:
896
+ this.$ = t[e - 3], l.setLink(t[e - 3], t[e - 2], t[e]);
897
+ break;
898
+ case 120:
899
+ this.$ = t[e - 5], l.setLink(t[e - 5], t[e - 4], t[e]), l.setTooltip(t[e - 5], t[e - 2]);
900
+ break;
901
+ case 121:
902
+ this.$ = t[e - 4], l.addVertex(t[e - 2], void 0, void 0, t[e]);
903
+ break;
904
+ case 122:
905
+ this.$ = t[e - 4], l.updateLink([t[e - 2]], t[e]);
906
+ break;
907
+ case 123:
908
+ this.$ = t[e - 4], l.updateLink(t[e - 2], t[e]);
909
+ break;
910
+ case 124:
911
+ this.$ = t[e - 8], l.updateLinkInterpolate([t[e - 6]], t[e - 2]), l.updateLink([t[e - 6]], t[e]);
912
+ break;
913
+ case 125:
914
+ this.$ = t[e - 8], l.updateLinkInterpolate(t[e - 6], t[e - 2]), l.updateLink(t[e - 6], t[e]);
915
+ break;
916
+ case 126:
917
+ this.$ = t[e - 6], l.updateLinkInterpolate([t[e - 4]], t[e]);
918
+ break;
919
+ case 127:
920
+ this.$ = t[e - 6], l.updateLinkInterpolate(t[e - 4], t[e]);
921
+ break;
922
+ case 128:
923
+ case 130:
924
+ this.$ = [t[e]];
925
+ break;
926
+ case 129:
927
+ case 131:
928
+ t[e - 2].push(t[e]), this.$ = t[e - 2];
929
+ break;
930
+ case 133:
931
+ this.$ = t[e - 1] + t[e];
932
+ break;
933
+ case 181:
934
+ this.$ = t[e];
935
+ break;
936
+ case 182:
937
+ this.$ = t[e - 1] + "" + t[e];
938
+ break;
939
+ case 184:
940
+ this.$ = t[e - 1] + "" + t[e];
941
+ break;
942
+ case 185:
943
+ this.$ = { stmt: "dir", value: "TB" };
944
+ break;
945
+ case 186:
946
+ this.$ = { stmt: "dir", value: "BT" };
947
+ break;
948
+ case 187:
949
+ this.$ = { stmt: "dir", value: "RL" };
950
+ break;
951
+ case 188:
952
+ this.$ = { stmt: "dir", value: "LR" };
953
+ break;
954
+ case 189:
955
+ this.$ = { stmt: "dir", value: "TD" };
956
+ break;
957
+ }
958
+ }, "anonymous"),
959
+ table: [{ 3: 1, 4: 2, 9: i, 10: n, 12: a }, { 1: [3] }, s(u, o, { 5: 6 }), { 4: 7, 9: i, 10: n, 12: a }, { 4: 8, 9: i, 10: n, 12: a }, { 13: [1, 9], 14: [1, 10] }, { 1: [2, 1], 6: 11, 7: 12, 8: f, 9: c, 10: A, 11: r, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: k, 33: 24, 34: y, 36: b, 38: L, 42: 28, 43: 39, 44: T, 45: 40, 47: 41, 60: d, 84: J, 85: z, 86: Z, 87: A1, 88: M1, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 42, 114: P, 115: O, 116: M, 121: U1, 122: z1, 123: W1, 124: j1, 125: K1 }, s(u, [2, 9]), s(u, [2, 10]), s(u, [2, 11]), { 8: [1, 55], 9: [1, 56], 10: p1, 15: 54, 18: 57 }, s(E, [2, 3]), s(E, [2, 4]), s(E, [2, 5]), s(E, [2, 6]), s(E, [2, 7]), s(E, [2, 8]), { 8: e1, 9: s1, 11: i1, 21: 59, 41: 60, 72: 64, 75: [1, 65], 77: [1, 67], 78: [1, 66] }, { 8: e1, 9: s1, 11: i1, 21: 68 }, { 8: e1, 9: s1, 11: i1, 21: 69 }, { 8: e1, 9: s1, 11: i1, 21: 70 }, { 8: e1, 9: s1, 11: i1, 21: 71 }, { 8: e1, 9: s1, 11: i1, 21: 72 }, { 8: e1, 9: s1, 10: [1, 73], 11: i1, 21: 74 }, s(E, [2, 36]), { 35: [1, 75] }, { 37: [1, 76] }, s(E, [2, 39]), s(C1, [2, 50], { 18: 77, 39: 78, 10: p1, 40: nt }), { 10: [1, 80] }, { 10: [1, 81] }, { 10: [1, 82] }, { 10: [1, 83] }, { 14: S1, 44: D1, 60: x1, 80: [1, 87], 89: y1, 95: [1, 84], 97: [1, 85], 101: 86, 105: E1, 106: F1, 109: _1, 111: B1, 114: v1, 115: L1, 116: V1, 120: 88 }, s(E, [2, 185]), s(E, [2, 186]), s(E, [2, 187]), s(E, [2, 188]), s(E, [2, 189]), s(k1, [2, 51]), s(k1, [2, 54], { 46: [1, 100] }), s(W, [2, 72], { 113: 113, 29: [1, 101], 44: T, 48: [1, 102], 50: [1, 103], 52: [1, 104], 54: [1, 105], 56: [1, 106], 58: [1, 107], 60: d, 63: [1, 108], 65: [1, 109], 67: [1, 110], 68: [1, 111], 70: [1, 112], 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 114: P, 115: O, 116: M }), s(q, [2, 181]), s(q, [2, 142]), s(q, [2, 143]), s(q, [2, 144]), s(q, [2, 145]), s(q, [2, 146]), s(q, [2, 147]), s(q, [2, 148]), s(q, [2, 149]), s(q, [2, 150]), s(q, [2, 151]), s(q, [2, 152]), s(u, [2, 12]), s(u, [2, 18]), s(u, [2, 19]), { 9: [1, 114] }, s(ut, [2, 26], { 18: 115, 10: p1 }), s(E, [2, 27]), { 42: 116, 43: 39, 44: T, 45: 40, 47: 41, 60: d, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 42, 114: P, 115: O, 116: M }, s(E, [2, 40]), s(E, [2, 41]), s(E, [2, 42]), s(I1, [2, 76], { 73: 117, 62: [1, 119], 74: [1, 118] }), { 76: 120, 79: 121, 80: ot, 81: lt, 116: Y1, 119: q1 }, { 75: [1, 126], 77: [1, 127] }, s(ct, [2, 83]), s(E, [2, 28]), s(E, [2, 29]), s(E, [2, 30]), s(E, [2, 31]), s(E, [2, 32]), { 10: ht, 12: dt, 14: pt, 27: ft, 28: 128, 32: gt, 44: bt, 60: At, 75: kt, 80: [1, 130], 81: [1, 131], 83: 141, 84: mt, 85: Tt, 86: Ct, 87: St, 88: Dt, 89: xt, 90: yt, 91: 129, 105: Et, 109: Ft, 111: _t, 114: Bt, 115: vt, 116: Lt }, s(J1, o, { 5: 154 }), s(E, [2, 37]), s(E, [2, 38]), s(C1, [2, 48], { 44: Vt }), s(C1, [2, 49], { 18: 156, 10: p1, 40: It }), s(k1, [2, 44]), { 44: T, 47: 158, 60: d, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 42, 114: P, 115: O, 116: M }, { 102: [1, 159], 103: 160, 105: [1, 161] }, { 44: T, 47: 162, 60: d, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 42, 114: P, 115: O, 116: M }, { 44: T, 47: 163, 60: d, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 42, 114: P, 115: O, 116: M }, s(B, [2, 107], { 10: [1, 164], 96: [1, 165] }), { 80: [1, 166] }, s(B, [2, 115], { 120: 168, 10: [1, 167], 14: S1, 44: D1, 60: x1, 89: y1, 105: E1, 106: F1, 109: _1, 111: B1, 114: v1, 115: L1, 116: V1 }), s(B, [2, 117], { 10: [1, 169] }), s(H, [2, 183]), s(H, [2, 170]), s(H, [2, 171]), s(H, [2, 172]), s(H, [2, 173]), s(H, [2, 174]), s(H, [2, 175]), s(H, [2, 176]), s(H, [2, 177]), s(H, [2, 178]), s(H, [2, 179]), s(H, [2, 180]), { 44: T, 47: 170, 60: d, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 42, 114: P, 115: O, 116: M }, { 30: 171, 67: C, 80: j, 81: K, 82: 172, 116: S, 117: D, 118: x }, { 30: 179, 67: C, 80: j, 81: K, 82: 172, 116: S, 117: D, 118: x }, { 30: 181, 50: [1, 180], 67: C, 80: j, 81: K, 82: 172, 116: S, 117: D, 118: x }, { 30: 182, 67: C, 80: j, 81: K, 82: 172, 116: S, 117: D, 118: x }, { 30: 183, 67: C, 80: j, 81: K, 82: 172, 116: S, 117: D, 118: x }, { 30: 184, 67: C, 80: j, 81: K, 82: 172, 116: S, 117: D, 118: x }, { 109: [1, 185] }, { 30: 186, 67: C, 80: j, 81: K, 82: 172, 116: S, 117: D, 118: x }, { 30: 187, 65: [1, 188], 67: C, 80: j, 81: K, 82: 172, 116: S, 117: D, 118: x }, { 30: 189, 67: C, 80: j, 81: K, 82: 172, 116: S, 117: D, 118: x }, { 30: 190, 67: C, 80: j, 81: K, 82: 172, 116: S, 117: D, 118: x }, { 30: 191, 67: C, 80: j, 81: K, 82: 172, 116: S, 117: D, 118: x }, s(q, [2, 182]), s(u, [2, 20]), s(ut, [2, 25]), s(C1, [2, 46], { 39: 192, 18: 193, 10: p1, 40: nt }), s(I1, [2, 73], { 10: [1, 194] }), { 10: [1, 195] }, { 30: 196, 67: C, 80: j, 81: K, 82: 172, 116: S, 117: D, 118: x }, { 77: [1, 197], 79: 198, 116: Y1, 119: q1 }, s(w1, [2, 79]), s(w1, [2, 81]), s(w1, [2, 82]), s(w1, [2, 168]), s(w1, [2, 169]), { 76: 199, 79: 121, 80: ot, 81: lt, 116: Y1, 119: q1 }, s(ct, [2, 84]), { 8: e1, 9: s1, 10: ht, 11: i1, 12: dt, 14: pt, 21: 201, 27: ft, 29: [1, 200], 32: gt, 44: bt, 60: At, 75: kt, 83: 141, 84: mt, 85: Tt, 86: Ct, 87: St, 88: Dt, 89: xt, 90: yt, 91: 202, 105: Et, 109: Ft, 111: _t, 114: Bt, 115: vt, 116: Lt }, s(F, [2, 101]), s(F, [2, 103]), s(F, [2, 104]), s(F, [2, 157]), s(F, [2, 158]), s(F, [2, 159]), s(F, [2, 160]), s(F, [2, 161]), s(F, [2, 162]), s(F, [2, 163]), s(F, [2, 164]), s(F, [2, 165]), s(F, [2, 166]), s(F, [2, 167]), s(F, [2, 90]), s(F, [2, 91]), s(F, [2, 92]), s(F, [2, 93]), s(F, [2, 94]), s(F, [2, 95]), s(F, [2, 96]), s(F, [2, 97]), s(F, [2, 98]), s(F, [2, 99]), s(F, [2, 100]), { 6: 11, 7: 12, 8: f, 9: c, 10: A, 11: r, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: k, 32: [1, 203], 33: 24, 34: y, 36: b, 38: L, 42: 28, 43: 39, 44: T, 45: 40, 47: 41, 60: d, 84: J, 85: z, 86: Z, 87: A1, 88: M1, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 42, 114: P, 115: O, 116: M, 121: U1, 122: z1, 123: W1, 124: j1, 125: K1 }, { 10: p1, 18: 204 }, { 44: [1, 205] }, s(k1, [2, 43]), { 10: [1, 206], 44: T, 60: d, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 113, 114: P, 115: O, 116: M }, { 10: [1, 207] }, { 10: [1, 208], 106: [1, 209] }, s(wt, [2, 128]), { 10: [1, 210], 44: T, 60: d, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 113, 114: P, 115: O, 116: M }, { 10: [1, 211], 44: T, 60: d, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 113, 114: P, 115: O, 116: M }, { 80: [1, 212] }, s(B, [2, 109], { 10: [1, 213] }), s(B, [2, 111], { 10: [1, 214] }), { 80: [1, 215] }, s(H, [2, 184]), { 80: [1, 216], 98: [1, 217] }, s(k1, [2, 55], { 113: 113, 44: T, 60: d, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 114: P, 115: O, 116: M }), { 31: [1, 218], 67: C, 82: 219, 116: S, 117: D, 118: x }, s(f1, [2, 86]), s(f1, [2, 88]), s(f1, [2, 89]), s(f1, [2, 153]), s(f1, [2, 154]), s(f1, [2, 155]), s(f1, [2, 156]), { 49: [1, 220], 67: C, 82: 219, 116: S, 117: D, 118: x }, { 30: 221, 67: C, 80: j, 81: K, 82: 172, 116: S, 117: D, 118: x }, { 51: [1, 222], 67: C, 82: 219, 116: S, 117: D, 118: x }, { 53: [1, 223], 67: C, 82: 219, 116: S, 117: D, 118: x }, { 55: [1, 224], 67: C, 82: 219, 116: S, 117: D, 118: x }, { 57: [1, 225], 67: C, 82: 219, 116: S, 117: D, 118: x }, { 60: [1, 226] }, { 64: [1, 227], 67: C, 82: 219, 116: S, 117: D, 118: x }, { 66: [1, 228], 67: C, 82: 219, 116: S, 117: D, 118: x }, { 30: 229, 67: C, 80: j, 81: K, 82: 172, 116: S, 117: D, 118: x }, { 31: [1, 230], 67: C, 82: 219, 116: S, 117: D, 118: x }, { 67: C, 69: [1, 231], 71: [1, 232], 82: 219, 116: S, 117: D, 118: x }, { 67: C, 69: [1, 234], 71: [1, 233], 82: 219, 116: S, 117: D, 118: x }, s(C1, [2, 45], { 18: 156, 10: p1, 40: It }), s(C1, [2, 47], { 44: Vt }), s(I1, [2, 75]), s(I1, [2, 74]), { 62: [1, 235], 67: C, 82: 219, 116: S, 117: D, 118: x }, s(I1, [2, 77]), s(w1, [2, 80]), { 77: [1, 236], 79: 198, 116: Y1, 119: q1 }, { 30: 237, 67: C, 80: j, 81: K, 82: 172, 116: S, 117: D, 118: x }, s(J1, o, { 5: 238 }), s(F, [2, 102]), s(E, [2, 35]), { 43: 239, 44: T, 45: 40, 47: 41, 60: d, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 42, 114: P, 115: O, 116: M }, { 10: p1, 18: 240 }, { 10: r1, 60: a1, 84: n1, 92: 241, 105: u1, 107: 242, 108: 243, 109: o1, 110: l1, 111: c1, 112: h1 }, { 10: r1, 60: a1, 84: n1, 92: 252, 104: [1, 253], 105: u1, 107: 242, 108: 243, 109: o1, 110: l1, 111: c1, 112: h1 }, { 10: r1, 60: a1, 84: n1, 92: 254, 104: [1, 255], 105: u1, 107: 242, 108: 243, 109: o1, 110: l1, 111: c1, 112: h1 }, { 105: [1, 256] }, { 10: r1, 60: a1, 84: n1, 92: 257, 105: u1, 107: 242, 108: 243, 109: o1, 110: l1, 111: c1, 112: h1 }, { 44: T, 47: 258, 60: d, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 42, 114: P, 115: O, 116: M }, s(B, [2, 108]), { 80: [1, 259] }, { 80: [1, 260], 98: [1, 261] }, s(B, [2, 116]), s(B, [2, 118], { 10: [1, 262] }), s(B, [2, 119]), s(W, [2, 56]), s(f1, [2, 87]), s(W, [2, 57]), { 51: [1, 263], 67: C, 82: 219, 116: S, 117: D, 118: x }, s(W, [2, 64]), s(W, [2, 59]), s(W, [2, 60]), s(W, [2, 61]), { 109: [1, 264] }, s(W, [2, 63]), s(W, [2, 65]), { 66: [1, 265], 67: C, 82: 219, 116: S, 117: D, 118: x }, s(W, [2, 67]), s(W, [2, 68]), s(W, [2, 70]), s(W, [2, 69]), s(W, [2, 71]), s([10, 44, 60, 89, 102, 105, 106, 109, 111, 114, 115, 116], [2, 85]), s(I1, [2, 78]), { 31: [1, 266], 67: C, 82: 219, 116: S, 117: D, 118: x }, { 6: 11, 7: 12, 8: f, 9: c, 10: A, 11: r, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: k, 32: [1, 267], 33: 24, 34: y, 36: b, 38: L, 42: 28, 43: 39, 44: T, 45: 40, 47: 41, 60: d, 84: J, 85: z, 86: Z, 87: A1, 88: M1, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 42, 114: P, 115: O, 116: M, 121: U1, 122: z1, 123: W1, 124: j1, 125: K1 }, s(k1, [2, 53]), { 43: 268, 44: T, 45: 40, 47: 41, 60: d, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 42, 114: P, 115: O, 116: M }, s(B, [2, 121], { 106: R1 }), s(Rt, [2, 130], { 108: 270, 10: r1, 60: a1, 84: n1, 105: u1, 109: o1, 110: l1, 111: c1, 112: h1 }), s($, [2, 132]), s($, [2, 134]), s($, [2, 135]), s($, [2, 136]), s($, [2, 137]), s($, [2, 138]), s($, [2, 139]), s($, [2, 140]), s($, [2, 141]), s(B, [2, 122], { 106: R1 }), { 10: [1, 271] }, s(B, [2, 123], { 106: R1 }), { 10: [1, 272] }, s(wt, [2, 129]), s(B, [2, 105], { 106: R1 }), s(B, [2, 106], { 113: 113, 44: T, 60: d, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 114: P, 115: O, 116: M }), s(B, [2, 110]), s(B, [2, 112], { 10: [1, 273] }), s(B, [2, 113]), { 98: [1, 274] }, { 51: [1, 275] }, { 62: [1, 276] }, { 66: [1, 277] }, { 8: e1, 9: s1, 11: i1, 21: 278 }, s(E, [2, 34]), s(k1, [2, 52]), { 10: r1, 60: a1, 84: n1, 105: u1, 107: 279, 108: 243, 109: o1, 110: l1, 111: c1, 112: h1 }, s($, [2, 133]), { 14: S1, 44: D1, 60: x1, 89: y1, 101: 280, 105: E1, 106: F1, 109: _1, 111: B1, 114: v1, 115: L1, 116: V1, 120: 88 }, { 14: S1, 44: D1, 60: x1, 89: y1, 101: 281, 105: E1, 106: F1, 109: _1, 111: B1, 114: v1, 115: L1, 116: V1, 120: 88 }, { 98: [1, 282] }, s(B, [2, 120]), s(W, [2, 58]), { 30: 283, 67: C, 80: j, 81: K, 82: 172, 116: S, 117: D, 118: x }, s(W, [2, 66]), s(J1, o, { 5: 284 }), s(Rt, [2, 131], { 108: 270, 10: r1, 60: a1, 84: n1, 105: u1, 109: o1, 110: l1, 111: c1, 112: h1 }), s(B, [2, 126], { 120: 168, 10: [1, 285], 14: S1, 44: D1, 60: x1, 89: y1, 105: E1, 106: F1, 109: _1, 111: B1, 114: v1, 115: L1, 116: V1 }), s(B, [2, 127], { 120: 168, 10: [1, 286], 14: S1, 44: D1, 60: x1, 89: y1, 105: E1, 106: F1, 109: _1, 111: B1, 114: v1, 115: L1, 116: V1 }), s(B, [2, 114]), { 31: [1, 287], 67: C, 82: 219, 116: S, 117: D, 118: x }, { 6: 11, 7: 12, 8: f, 9: c, 10: A, 11: r, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: k, 32: [1, 288], 33: 24, 34: y, 36: b, 38: L, 42: 28, 43: 39, 44: T, 45: 40, 47: 41, 60: d, 84: J, 85: z, 86: Z, 87: A1, 88: M1, 89: V, 102: I, 105: w, 106: R, 109: N, 111: G, 113: 42, 114: P, 115: O, 116: M, 121: U1, 122: z1, 123: W1, 124: j1, 125: K1 }, { 10: r1, 60: a1, 84: n1, 92: 289, 105: u1, 107: 242, 108: 243, 109: o1, 110: l1, 111: c1, 112: h1 }, { 10: r1, 60: a1, 84: n1, 92: 290, 105: u1, 107: 242, 108: 243, 109: o1, 110: l1, 111: c1, 112: h1 }, s(W, [2, 62]), s(E, [2, 33]), s(B, [2, 124], { 106: R1 }), s(B, [2, 125], { 106: R1 })],
960
+ defaultActions: {},
961
+ parseError: /* @__PURE__ */ m(function(h, p) {
962
+ if (p.recoverable)
963
+ this.trace(h);
964
+ else {
965
+ var g = new Error(h);
966
+ throw g.hash = p, g;
967
+ }
968
+ }, "parseError"),
969
+ parse: /* @__PURE__ */ m(function(h) {
970
+ var p = this, g = [0], l = [], _ = [null], t = [], P1 = this.table, e = "", v = 0, Nt = 0, jt = 2, Gt = 1, Kt = t.slice.call(arguments, 1), U = Object.create(this.lexer), m1 = { yy: {} };
971
+ for (var $1 in this.yy)
972
+ Object.prototype.hasOwnProperty.call(this.yy, $1) && (m1.yy[$1] = this.yy[$1]);
973
+ U.setInput(h, m1.yy), m1.yy.lexer = U, m1.yy.parser = this, typeof U.yylloc > "u" && (U.yylloc = {});
974
+ var tt = U.yylloc;
975
+ t.push(tt);
976
+ var Yt = U.options && U.options.ranges;
977
+ typeof m1.yy.parseError == "function" ? this.parseError = m1.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
978
+ function qt(X) {
979
+ g.length = g.length - 2 * X, _.length = _.length - X, t.length = t.length - X;
980
+ }
981
+ m(qt, "popStack");
982
+ function Pt() {
983
+ var X;
984
+ return X = l.pop() || U.lex() || Gt, typeof X != "number" && (X instanceof Array && (l = X, X = l.pop()), X = p.symbols_[X] || X), X;
985
+ }
986
+ m(Pt, "lex");
987
+ for (var Y, T1, Q, et, N1 = {}, X1, d1, Ot, Q1; ; ) {
988
+ if (T1 = g[g.length - 1], this.defaultActions[T1] ? Q = this.defaultActions[T1] : ((Y === null || typeof Y > "u") && (Y = Pt()), Q = P1[T1] && P1[T1][Y]), typeof Q > "u" || !Q.length || !Q[0]) {
989
+ var st = "";
990
+ Q1 = [];
991
+ for (X1 in P1[T1])
992
+ this.terminals_[X1] && X1 > jt && Q1.push("'" + this.terminals_[X1] + "'");
993
+ U.showPosition ? st = "Parse error on line " + (v + 1) + `:
994
+ ` + U.showPosition() + `
995
+ Expecting ` + Q1.join(", ") + ", got '" + (this.terminals_[Y] || Y) + "'" : st = "Parse error on line " + (v + 1) + ": Unexpected " + (Y == Gt ? "end of input" : "'" + (this.terminals_[Y] || Y) + "'"), this.parseError(st, {
996
+ text: U.match,
997
+ token: this.terminals_[Y] || Y,
998
+ line: U.yylineno,
999
+ loc: tt,
1000
+ expected: Q1
1001
+ });
1002
+ }
1003
+ if (Q[0] instanceof Array && Q.length > 1)
1004
+ throw new Error("Parse Error: multiple actions possible at state: " + T1 + ", token: " + Y);
1005
+ switch (Q[0]) {
1006
+ case 1:
1007
+ g.push(Y), _.push(U.yytext), t.push(U.yylloc), g.push(Q[1]), Y = null, Nt = U.yyleng, e = U.yytext, v = U.yylineno, tt = U.yylloc;
1008
+ break;
1009
+ case 2:
1010
+ if (d1 = this.productions_[Q[1]][1], N1.$ = _[_.length - d1], N1._$ = {
1011
+ first_line: t[t.length - (d1 || 1)].first_line,
1012
+ last_line: t[t.length - 1].last_line,
1013
+ first_column: t[t.length - (d1 || 1)].first_column,
1014
+ last_column: t[t.length - 1].last_column
1015
+ }, Yt && (N1._$.range = [
1016
+ t[t.length - (d1 || 1)].range[0],
1017
+ t[t.length - 1].range[1]
1018
+ ]), et = this.performAction.apply(N1, [
1019
+ e,
1020
+ Nt,
1021
+ v,
1022
+ m1.yy,
1023
+ Q[1],
1024
+ _,
1025
+ t
1026
+ ].concat(Kt)), typeof et < "u")
1027
+ return et;
1028
+ d1 && (g = g.slice(0, -1 * d1 * 2), _ = _.slice(0, -1 * d1), t = t.slice(0, -1 * d1)), g.push(this.productions_[Q[1]][0]), _.push(N1.$), t.push(N1._$), Ot = P1[g[g.length - 2]][g[g.length - 1]], g.push(Ot);
1029
+ break;
1030
+ case 3:
1031
+ return !0;
1032
+ }
1033
+ }
1034
+ return !0;
1035
+ }, "parse")
1036
+ }, Wt = /* @__PURE__ */ (function() {
1037
+ var g1 = {
1038
+ EOF: 1,
1039
+ parseError: /* @__PURE__ */ m(function(p, g) {
1040
+ if (this.yy.parser)
1041
+ this.yy.parser.parseError(p, g);
1042
+ else
1043
+ throw new Error(p);
1044
+ }, "parseError"),
1045
+ // resets the lexer, sets new input
1046
+ setInput: /* @__PURE__ */ m(function(h, p) {
1047
+ return this.yy = p || this.yy || {}, this._input = h, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1048
+ first_line: 1,
1049
+ first_column: 0,
1050
+ last_line: 1,
1051
+ last_column: 0
1052
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1053
+ }, "setInput"),
1054
+ // consumes and returns one char from the input
1055
+ input: /* @__PURE__ */ m(function() {
1056
+ var h = this._input[0];
1057
+ this.yytext += h, this.yyleng++, this.offset++, this.match += h, this.matched += h;
1058
+ var p = h.match(/(?:\r\n?|\n).*/g);
1059
+ return p ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), h;
1060
+ }, "input"),
1061
+ // unshifts one char (or a string) into the input
1062
+ unput: /* @__PURE__ */ m(function(h) {
1063
+ var p = h.length, g = h.split(/(?:\r\n?|\n)/g);
1064
+ this._input = h + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - p), this.offset -= p;
1065
+ var l = this.match.split(/(?:\r\n?|\n)/g);
1066
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), g.length - 1 && (this.yylineno -= g.length - 1);
1067
+ var _ = this.yylloc.range;
1068
+ return this.yylloc = {
1069
+ first_line: this.yylloc.first_line,
1070
+ last_line: this.yylineno + 1,
1071
+ first_column: this.yylloc.first_column,
1072
+ last_column: g ? (g.length === l.length ? this.yylloc.first_column : 0) + l[l.length - g.length].length - g[0].length : this.yylloc.first_column - p
1073
+ }, this.options.ranges && (this.yylloc.range = [_[0], _[0] + this.yyleng - p]), this.yyleng = this.yytext.length, this;
1074
+ }, "unput"),
1075
+ // When called from action, caches matched text and appends it on next action
1076
+ more: /* @__PURE__ */ m(function() {
1077
+ return this._more = !0, this;
1078
+ }, "more"),
1079
+ // 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.
1080
+ reject: /* @__PURE__ */ m(function() {
1081
+ if (this.options.backtrack_lexer)
1082
+ this._backtrack = !0;
1083
+ else
1084
+ 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).
1085
+ ` + this.showPosition(), {
1086
+ text: "",
1087
+ token: null,
1088
+ line: this.yylineno
1089
+ });
1090
+ return this;
1091
+ }, "reject"),
1092
+ // retain first n characters of the match
1093
+ less: /* @__PURE__ */ m(function(h) {
1094
+ this.unput(this.match.slice(h));
1095
+ }, "less"),
1096
+ // displays already matched input, i.e. for error messages
1097
+ pastInput: /* @__PURE__ */ m(function() {
1098
+ var h = this.matched.substr(0, this.matched.length - this.match.length);
1099
+ return (h.length > 20 ? "..." : "") + h.substr(-20).replace(/\n/g, "");
1100
+ }, "pastInput"),
1101
+ // displays upcoming input, i.e. for error messages
1102
+ upcomingInput: /* @__PURE__ */ m(function() {
1103
+ var h = this.match;
1104
+ return h.length < 20 && (h += this._input.substr(0, 20 - h.length)), (h.substr(0, 20) + (h.length > 20 ? "..." : "")).replace(/\n/g, "");
1105
+ }, "upcomingInput"),
1106
+ // displays the character position where the lexing error occurred, i.e. for error messages
1107
+ showPosition: /* @__PURE__ */ m(function() {
1108
+ var h = this.pastInput(), p = new Array(h.length + 1).join("-");
1109
+ return h + this.upcomingInput() + `
1110
+ ` + p + "^";
1111
+ }, "showPosition"),
1112
+ // test the lexed token: return FALSE when not a match, otherwise return token
1113
+ test_match: /* @__PURE__ */ m(function(h, p) {
1114
+ var g, l, _;
1115
+ if (this.options.backtrack_lexer && (_ = {
1116
+ yylineno: this.yylineno,
1117
+ yylloc: {
1118
+ first_line: this.yylloc.first_line,
1119
+ last_line: this.last_line,
1120
+ first_column: this.yylloc.first_column,
1121
+ last_column: this.yylloc.last_column
1122
+ },
1123
+ yytext: this.yytext,
1124
+ match: this.match,
1125
+ matches: this.matches,
1126
+ matched: this.matched,
1127
+ yyleng: this.yyleng,
1128
+ offset: this.offset,
1129
+ _more: this._more,
1130
+ _input: this._input,
1131
+ yy: this.yy,
1132
+ conditionStack: this.conditionStack.slice(0),
1133
+ done: this.done
1134
+ }, this.options.ranges && (_.yylloc.range = this.yylloc.range.slice(0))), l = h[0].match(/(?:\r\n?|\n).*/g), l && (this.yylineno += l.length), this.yylloc = {
1135
+ first_line: this.yylloc.last_line,
1136
+ last_line: this.yylineno + 1,
1137
+ first_column: this.yylloc.last_column,
1138
+ last_column: l ? l[l.length - 1].length - l[l.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + h[0].length
1139
+ }, this.yytext += h[0], this.match += h[0], this.matches = h, 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(h[0].length), this.matched += h[0], g = this.performAction.call(this, this.yy, this, p, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), g)
1140
+ return g;
1141
+ if (this._backtrack) {
1142
+ for (var t in _)
1143
+ this[t] = _[t];
1144
+ return !1;
1145
+ }
1146
+ return !1;
1147
+ }, "test_match"),
1148
+ // return next match in input
1149
+ next: /* @__PURE__ */ m(function() {
1150
+ if (this.done)
1151
+ return this.EOF;
1152
+ this._input || (this.done = !0);
1153
+ var h, p, g, l;
1154
+ this._more || (this.yytext = "", this.match = "");
1155
+ for (var _ = this._currentRules(), t = 0; t < _.length; t++)
1156
+ if (g = this._input.match(this.rules[_[t]]), g && (!p || g[0].length > p[0].length)) {
1157
+ if (p = g, l = t, this.options.backtrack_lexer) {
1158
+ if (h = this.test_match(g, _[t]), h !== !1)
1159
+ return h;
1160
+ if (this._backtrack) {
1161
+ p = !1;
1162
+ continue;
1163
+ } else
1164
+ return !1;
1165
+ } else if (!this.options.flex)
1166
+ break;
1167
+ }
1168
+ return p ? (h = this.test_match(p, _[l]), h !== !1 ? h : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
1169
+ ` + this.showPosition(), {
1170
+ text: "",
1171
+ token: null,
1172
+ line: this.yylineno
1173
+ });
1174
+ }, "next"),
1175
+ // return next match that has a token
1176
+ lex: /* @__PURE__ */ m(function() {
1177
+ var p = this.next();
1178
+ return p || this.lex();
1179
+ }, "lex"),
1180
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
1181
+ begin: /* @__PURE__ */ m(function(p) {
1182
+ this.conditionStack.push(p);
1183
+ }, "begin"),
1184
+ // pop the previously active lexer condition state off the condition stack
1185
+ popState: /* @__PURE__ */ m(function() {
1186
+ var p = this.conditionStack.length - 1;
1187
+ return p > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1188
+ }, "popState"),
1189
+ // produce the lexer rule set which is active for the currently active lexer condition state
1190
+ _currentRules: /* @__PURE__ */ m(function() {
1191
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1192
+ }, "_currentRules"),
1193
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
1194
+ topState: /* @__PURE__ */ m(function(p) {
1195
+ return p = this.conditionStack.length - 1 - Math.abs(p || 0), p >= 0 ? this.conditionStack[p] : "INITIAL";
1196
+ }, "topState"),
1197
+ // alias for begin(condition)
1198
+ pushState: /* @__PURE__ */ m(function(p) {
1199
+ this.begin(p);
1200
+ }, "pushState"),
1201
+ // return the number of states currently on the stack
1202
+ stateStackSize: /* @__PURE__ */ m(function() {
1203
+ return this.conditionStack.length;
1204
+ }, "stateStackSize"),
1205
+ options: {},
1206
+ performAction: /* @__PURE__ */ m(function(p, g, l, _) {
1207
+ switch (l) {
1208
+ case 0:
1209
+ return this.begin("acc_title"), 34;
1210
+ case 1:
1211
+ return this.popState(), "acc_title_value";
1212
+ case 2:
1213
+ return this.begin("acc_descr"), 36;
1214
+ case 3:
1215
+ return this.popState(), "acc_descr_value";
1216
+ case 4:
1217
+ this.begin("acc_descr_multiline");
1218
+ break;
1219
+ case 5:
1220
+ this.popState();
1221
+ break;
1222
+ case 6:
1223
+ return "acc_descr_multiline_value";
1224
+ case 7:
1225
+ return this.pushState("shapeData"), g.yytext = "", 40;
1226
+ case 8:
1227
+ return this.pushState("shapeDataStr"), 40;
1228
+ case 9:
1229
+ return this.popState(), 40;
1230
+ case 10:
1231
+ const t = /\n\s*/g;
1232
+ return g.yytext = g.yytext.replace(t, "<br/>"), 40;
1233
+ case 11:
1234
+ return 40;
1235
+ case 12:
1236
+ this.popState();
1237
+ break;
1238
+ case 13:
1239
+ this.begin("callbackname");
1240
+ break;
1241
+ case 14:
1242
+ this.popState();
1243
+ break;
1244
+ case 15:
1245
+ this.popState(), this.begin("callbackargs");
1246
+ break;
1247
+ case 16:
1248
+ return 95;
1249
+ case 17:
1250
+ this.popState();
1251
+ break;
1252
+ case 18:
1253
+ return 96;
1254
+ case 19:
1255
+ return "MD_STR";
1256
+ case 20:
1257
+ this.popState();
1258
+ break;
1259
+ case 21:
1260
+ this.begin("md_string");
1261
+ break;
1262
+ case 22:
1263
+ return "STR";
1264
+ case 23:
1265
+ this.popState();
1266
+ break;
1267
+ case 24:
1268
+ this.pushState("string");
1269
+ break;
1270
+ case 25:
1271
+ return 84;
1272
+ case 26:
1273
+ return 102;
1274
+ case 27:
1275
+ return 85;
1276
+ case 28:
1277
+ return 104;
1278
+ case 29:
1279
+ return 86;
1280
+ case 30:
1281
+ return 87;
1282
+ case 31:
1283
+ return 97;
1284
+ case 32:
1285
+ this.begin("click");
1286
+ break;
1287
+ case 33:
1288
+ this.popState();
1289
+ break;
1290
+ case 34:
1291
+ return 88;
1292
+ case 35:
1293
+ return p.lex.firstGraph() && this.begin("dir"), 12;
1294
+ case 36:
1295
+ return p.lex.firstGraph() && this.begin("dir"), 12;
1296
+ case 37:
1297
+ return p.lex.firstGraph() && this.begin("dir"), 12;
1298
+ case 38:
1299
+ return 27;
1300
+ case 39:
1301
+ return 32;
1302
+ case 40:
1303
+ return 98;
1304
+ case 41:
1305
+ return 98;
1306
+ case 42:
1307
+ return 98;
1308
+ case 43:
1309
+ return 98;
1310
+ case 44:
1311
+ return this.popState(), 13;
1312
+ case 45:
1313
+ return this.popState(), 14;
1314
+ case 46:
1315
+ return this.popState(), 14;
1316
+ case 47:
1317
+ return this.popState(), 14;
1318
+ case 48:
1319
+ return this.popState(), 14;
1320
+ case 49:
1321
+ return this.popState(), 14;
1322
+ case 50:
1323
+ return this.popState(), 14;
1324
+ case 51:
1325
+ return this.popState(), 14;
1326
+ case 52:
1327
+ return this.popState(), 14;
1328
+ case 53:
1329
+ return this.popState(), 14;
1330
+ case 54:
1331
+ return this.popState(), 14;
1332
+ case 55:
1333
+ return 121;
1334
+ case 56:
1335
+ return 122;
1336
+ case 57:
1337
+ return 123;
1338
+ case 58:
1339
+ return 124;
1340
+ case 59:
1341
+ return 125;
1342
+ case 60:
1343
+ return 78;
1344
+ case 61:
1345
+ return 105;
1346
+ case 62:
1347
+ return 111;
1348
+ case 63:
1349
+ return 46;
1350
+ case 64:
1351
+ return 60;
1352
+ case 65:
1353
+ return 44;
1354
+ case 66:
1355
+ return 8;
1356
+ case 67:
1357
+ return 106;
1358
+ case 68:
1359
+ return 115;
1360
+ case 69:
1361
+ return this.popState(), 77;
1362
+ case 70:
1363
+ return this.pushState("edgeText"), 75;
1364
+ case 71:
1365
+ return 119;
1366
+ case 72:
1367
+ return this.popState(), 77;
1368
+ case 73:
1369
+ return this.pushState("thickEdgeText"), 75;
1370
+ case 74:
1371
+ return 119;
1372
+ case 75:
1373
+ return this.popState(), 77;
1374
+ case 76:
1375
+ return this.pushState("dottedEdgeText"), 75;
1376
+ case 77:
1377
+ return 119;
1378
+ case 78:
1379
+ return 77;
1380
+ case 79:
1381
+ return this.popState(), 53;
1382
+ case 80:
1383
+ return "TEXT";
1384
+ case 81:
1385
+ return this.pushState("ellipseText"), 52;
1386
+ case 82:
1387
+ return this.popState(), 55;
1388
+ case 83:
1389
+ return this.pushState("text"), 54;
1390
+ case 84:
1391
+ return this.popState(), 57;
1392
+ case 85:
1393
+ return this.pushState("text"), 56;
1394
+ case 86:
1395
+ return 58;
1396
+ case 87:
1397
+ return this.pushState("text"), 67;
1398
+ case 88:
1399
+ return this.popState(), 64;
1400
+ case 89:
1401
+ return this.pushState("text"), 63;
1402
+ case 90:
1403
+ return this.popState(), 49;
1404
+ case 91:
1405
+ return this.pushState("text"), 48;
1406
+ case 92:
1407
+ return this.popState(), 69;
1408
+ case 93:
1409
+ return this.popState(), 71;
1410
+ case 94:
1411
+ return 117;
1412
+ case 95:
1413
+ return this.pushState("trapText"), 68;
1414
+ case 96:
1415
+ return this.pushState("trapText"), 70;
1416
+ case 97:
1417
+ return 118;
1418
+ case 98:
1419
+ return 67;
1420
+ case 99:
1421
+ return 90;
1422
+ case 100:
1423
+ return "SEP";
1424
+ case 101:
1425
+ return 89;
1426
+ case 102:
1427
+ return 115;
1428
+ case 103:
1429
+ return 111;
1430
+ case 104:
1431
+ return 44;
1432
+ case 105:
1433
+ return 109;
1434
+ case 106:
1435
+ return 114;
1436
+ case 107:
1437
+ return 116;
1438
+ case 108:
1439
+ return this.popState(), 62;
1440
+ case 109:
1441
+ return this.pushState("text"), 62;
1442
+ case 110:
1443
+ return this.popState(), 51;
1444
+ case 111:
1445
+ return this.pushState("text"), 50;
1446
+ case 112:
1447
+ return this.popState(), 31;
1448
+ case 113:
1449
+ return this.pushState("text"), 29;
1450
+ case 114:
1451
+ return this.popState(), 66;
1452
+ case 115:
1453
+ return this.pushState("text"), 65;
1454
+ case 116:
1455
+ return "TEXT";
1456
+ case 117:
1457
+ return "QUOTE";
1458
+ case 118:
1459
+ return 9;
1460
+ case 119:
1461
+ return 10;
1462
+ case 120:
1463
+ return 11;
1464
+ }
1465
+ }, "anonymous"),
1466
+ 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]*)/, /^(?:.*direction\s+TD[^\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)/, /^(?:$)/],
1467
+ conditions: { shapeDataEndBracket: { rules: [21, 24, 78, 81, 83, 85, 89, 91, 95, 96, 109, 111, 113, 115], inclusive: !1 }, shapeDataStr: { rules: [9, 10, 21, 24, 78, 81, 83, 85, 89, 91, 95, 96, 109, 111, 113, 115], inclusive: !1 }, shapeData: { rules: [8, 11, 12, 21, 24, 78, 81, 83, 85, 89, 91, 95, 96, 109, 111, 113, 115], inclusive: !1 }, callbackargs: { rules: [17, 18, 21, 24, 78, 81, 83, 85, 89, 91, 95, 96, 109, 111, 113, 115], inclusive: !1 }, callbackname: { rules: [14, 15, 16, 21, 24, 78, 81, 83, 85, 89, 91, 95, 96, 109, 111, 113, 115], inclusive: !1 }, href: { rules: [21, 24, 78, 81, 83, 85, 89, 91, 95, 96, 109, 111, 113, 115], inclusive: !1 }, click: { rules: [21, 24, 33, 34, 78, 81, 83, 85, 89, 91, 95, 96, 109, 111, 113, 115], inclusive: !1 }, dottedEdgeText: { rules: [21, 24, 75, 77, 78, 81, 83, 85, 89, 91, 95, 96, 109, 111, 113, 115], inclusive: !1 }, thickEdgeText: { rules: [21, 24, 72, 74, 78, 81, 83, 85, 89, 91, 95, 96, 109, 111, 113, 115], inclusive: !1 }, edgeText: { rules: [21, 24, 69, 71, 78, 81, 83, 85, 89, 91, 95, 96, 109, 111, 113, 115], inclusive: !1 }, trapText: { rules: [21, 24, 78, 81, 83, 85, 89, 91, 92, 93, 94, 95, 96, 109, 111, 113, 115], inclusive: !1 }, ellipseText: { rules: [21, 24, 78, 79, 80, 81, 83, 85, 89, 91, 95, 96, 109, 111, 113, 115], inclusive: !1 }, text: { rules: [21, 24, 78, 81, 82, 83, 84, 85, 88, 89, 90, 91, 95, 96, 108, 109, 110, 111, 112, 113, 114, 115, 116], inclusive: !1 }, vertex: { rules: [21, 24, 78, 81, 83, 85, 89, 91, 95, 96, 109, 111, 113, 115], inclusive: !1 }, dir: { rules: [21, 24, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 78, 81, 83, 85, 89, 91, 95, 96, 109, 111, 113, 115], inclusive: !1 }, acc_descr_multiline: { rules: [5, 6, 21, 24, 78, 81, 83, 85, 89, 91, 95, 96, 109, 111, 113, 115], inclusive: !1 }, acc_descr: { rules: [3, 21, 24, 78, 81, 83, 85, 89, 91, 95, 96, 109, 111, 113, 115], inclusive: !1 }, acc_title: { rules: [1, 21, 24, 78, 81, 83, 85, 89, 91, 95, 96, 109, 111, 113, 115], inclusive: !1 }, md_string: { rules: [19, 20, 21, 24, 78, 81, 83, 85, 89, 91, 95, 96, 109, 111, 113, 115], inclusive: !1 }, string: { rules: [21, 22, 23, 24, 78, 81, 83, 85, 89, 91, 95, 96, 109, 111, 113, 115], 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, 70, 72, 73, 75, 76, 78, 81, 83, 85, 86, 87, 89, 91, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 109, 111, 113, 115, 117, 118, 119, 120], inclusive: !0 } }
1468
+ };
1469
+ return g1;
1470
+ })();
1471
+ Z1.lexer = Wt;
1472
+ function H1() {
1473
+ this.yy = {};
1474
+ }
1475
+ return m(H1, "Parser"), H1.prototype = Z1, Z1.Parser = H1, new H1();
1476
+ })();
1477
+ at.parser = at;
1478
+ var Ut = at, zt = Object.assign({}, Ut);
1479
+ zt.parse = (s) => {
1480
+ const i = s.replace(/}\s*\n/g, `}
1481
+ `);
1482
+ return Ut.parse(i);
1483
+ };
1484
+ var Te = zt, Ce = /* @__PURE__ */ m((s, i) => {
1485
+ const n = fe, a = n(s, "r"), u = n(s, "g"), o = n(s, "b");
1486
+ return le(a, u, o, i);
1487
+ }, "fade"), Se = /* @__PURE__ */ m((s) => `.label {
1488
+ font-family: ${s.fontFamily};
1489
+ color: ${s.nodeTextColor || s.textColor};
1490
+ }
1491
+ .cluster-label text {
1492
+ fill: ${s.titleColor};
1493
+ }
1494
+ .cluster-label span {
1495
+ color: ${s.titleColor};
1496
+ }
1497
+ .cluster-label span p {
1498
+ background-color: transparent;
1499
+ }
1500
+
1501
+ .label text,span {
1502
+ fill: ${s.nodeTextColor || s.textColor};
1503
+ color: ${s.nodeTextColor || s.textColor};
1504
+ }
1505
+
1506
+ .node rect,
1507
+ .node circle,
1508
+ .node ellipse,
1509
+ .node polygon,
1510
+ .node path {
1511
+ fill: ${s.mainBkg};
1512
+ stroke: ${s.nodeBorder};
1513
+ stroke-width: 1px;
1514
+ }
1515
+ .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
1516
+ text-anchor: middle;
1517
+ }
1518
+ // .flowchart-label .text-outer-tspan {
1519
+ // text-anchor: middle;
1520
+ // }
1521
+ // .flowchart-label .text-inner-tspan {
1522
+ // text-anchor: start;
1523
+ // }
1524
+
1525
+ .node .katex path {
1526
+ fill: #000;
1527
+ stroke: #000;
1528
+ stroke-width: 1px;
1529
+ }
1530
+
1531
+ .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
1532
+ text-align: center;
1533
+ }
1534
+ .node.clickable {
1535
+ cursor: pointer;
1536
+ }
1537
+
1538
+
1539
+ .root .anchor path {
1540
+ fill: ${s.lineColor} !important;
1541
+ stroke-width: 0;
1542
+ stroke: ${s.lineColor};
1543
+ }
1544
+
1545
+ .arrowheadPath {
1546
+ fill: ${s.arrowheadColor};
1547
+ }
1548
+
1549
+ .edgePath .path {
1550
+ stroke: ${s.lineColor};
1551
+ stroke-width: 2.0px;
1552
+ }
1553
+
1554
+ .flowchart-link {
1555
+ stroke: ${s.lineColor};
1556
+ fill: none;
1557
+ }
1558
+
1559
+ .edgeLabel {
1560
+ background-color: ${s.edgeLabelBackground};
1561
+ p {
1562
+ background-color: ${s.edgeLabelBackground};
1563
+ }
1564
+ rect {
1565
+ opacity: 0.5;
1566
+ background-color: ${s.edgeLabelBackground};
1567
+ fill: ${s.edgeLabelBackground};
1568
+ }
1569
+ text-align: center;
1570
+ }
1571
+
1572
+ /* For html labels only */
1573
+ .labelBkg {
1574
+ background-color: ${Ce(s.edgeLabelBackground, 0.5)};
1575
+ // background-color:
1576
+ }
1577
+
1578
+ .cluster rect {
1579
+ fill: ${s.clusterBkg};
1580
+ stroke: ${s.clusterBorder};
1581
+ stroke-width: 1px;
1582
+ }
1583
+
1584
+ .cluster text {
1585
+ fill: ${s.titleColor};
1586
+ }
1587
+
1588
+ .cluster span {
1589
+ color: ${s.titleColor};
1590
+ }
1591
+ /* .cluster div {
1592
+ color: ${s.titleColor};
1593
+ } */
1594
+
1595
+ div.mermaidTooltip {
1596
+ position: absolute;
1597
+ text-align: center;
1598
+ max-width: 200px;
1599
+ padding: 2px;
1600
+ font-family: ${s.fontFamily};
1601
+ font-size: 12px;
1602
+ background: ${s.tertiaryColor};
1603
+ border: 1px solid ${s.border2};
1604
+ border-radius: 2px;
1605
+ pointer-events: none;
1606
+ z-index: 100;
1607
+ }
1608
+
1609
+ .flowchartTitleText {
1610
+ text-anchor: middle;
1611
+ font-size: 18px;
1612
+ fill: ${s.textColor};
1613
+ }
1614
+
1615
+ rect.text {
1616
+ fill: none;
1617
+ stroke-width: 0;
1618
+ }
1619
+
1620
+ .icon-shape, .image-shape {
1621
+ background-color: ${s.edgeLabelBackground};
1622
+ p {
1623
+ background-color: ${s.edgeLabelBackground};
1624
+ padding: 2px;
1625
+ }
1626
+ .label rect {
1627
+ opacity: 0.5;
1628
+ background-color: ${s.edgeLabelBackground};
1629
+ fill: ${s.edgeLabelBackground};
1630
+ }
1631
+ text-align: center;
1632
+ }
1633
+ ${Ht()}
1634
+ `, "getStyles"), De = Se, Le = {
1635
+ parser: Te,
1636
+ get db() {
1637
+ return new be();
1638
+ },
1639
+ renderer: me,
1640
+ styles: De,
1641
+ init: /* @__PURE__ */ m((s) => {
1642
+ s.flowchart || (s.flowchart = {}), s.layout && Mt({ layout: s.layout }), s.flowchart.arrowMarkerAbsolute = s.arrowMarkerAbsolute, Mt({ flowchart: { arrowMarkerAbsolute: s.arrowMarkerAbsolute } });
1643
+ }, "init")
1644
+ };
1645
+ export {
1646
+ Le as diagram
1647
+ };