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