@ucap-llm/ai-ui 1.1.13 → 1.1.15

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