@openbkn/workshop 0.2.2-rc.5 → 0.2.2

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 (158) hide show
  1. package/README.md +83 -13
  2. package/component.d.ts +10 -0
  3. package/dist/ActionConfirm-DJ91X3ml.js +236 -0
  4. package/dist/ActionFailure-ZgPt_3B-.js +37 -0
  5. package/dist/AgentChat-CRYai8ge.js +1062 -0
  6. package/dist/AppFormModal-D73ucaHK.js +4282 -0
  7. package/dist/AppListPage-D87piiOw.js +1364 -0
  8. package/dist/AskDrawer-BUMYsRnt.js +38 -0
  9. package/dist/ComputedView-CgYrDbx1.js +3221 -0
  10. package/dist/ConclusionApply-sjGfoEBY.js +153 -0
  11. package/dist/CypherEditor-lus6FA5L.js +485 -0
  12. package/dist/LandingList-6JI6864C.js +230 -0
  13. package/dist/MenuUnfoldOutlined-Cdg24l2h.js +27 -0
  14. package/dist/ModelTrial-ClHFGTpQ.js +359 -0
  15. package/dist/PageRenderer-DBd_g6mN.js +85480 -0
  16. package/dist/README-DjRyTQSR.js +76 -0
  17. package/dist/ScenarioApply-DtW_hh47.js +590 -0
  18. package/dist/SimulateForm-C-i08Jjd.js +153 -0
  19. package/dist/Subgraph-CnrkH9AN.js +32586 -0
  20. package/dist/WorkshopLabPage-DiVXQL9e.js +11364 -0
  21. package/dist/WorkshopRunPage-6hjRUf64.js +253 -0
  22. package/dist/abnfDiagram-WEYOIA3C-beRNhN3c.js +87 -0
  23. package/dist/action-type-tool.service-B2B74fKC.js +1060 -0
  24. package/dist/actionButton-DA5CNEzx.js +94 -0
  25. package/dist/actionButton.en-US-qjeqA7hs.js +94 -0
  26. package/dist/agentChat-EoDznd58.js +116 -0
  27. package/dist/agentChat.en-US-B6-pFd9Y.js +116 -0
  28. package/dist/alertList-DqditwM8.js +84 -0
  29. package/dist/alertList.en-US-BAXAgltP.js +84 -0
  30. package/dist/architectureDiagram-ZHVYKT53-DY2l1qxx.js +4779 -0
  31. package/dist/asOfSlider-QPvHWUMV.js +83 -0
  32. package/dist/asOfSlider.en-US-BI4jVfSn.js +83 -0
  33. package/dist/bkn-agent-execution.service-DVh-SHyl.js +205 -0
  34. package/dist/blockDiagram-RJAE7QA3-DR0mjN2h.js +1435 -0
  35. package/dist/c4Diagram-XDPPPE54-DH5zsGug.js +1518 -0
  36. package/dist/channel-B034hcOF.js +5 -0
  37. package/dist/china-C6m7zXIv.js +9 -0
  38. package/dist/chunk-2E7WHVMD-Ba3svxgx.js +664 -0
  39. package/dist/chunk-2Q5K7J3B-rT4eU6_y.js +15 -0
  40. package/dist/chunk-4EMNKR2T-C1kQZYHK.js +262 -0
  41. package/dist/chunk-55XCU76K-dcpLOktb.js +68 -0
  42. package/dist/chunk-5VM5RSS4-BdpQuzmO.js +19 -0
  43. package/dist/chunk-JWPE2WC7-CDBrSjU7.js +8 -0
  44. package/dist/chunk-VQ5W62QI-BiVKc40w.js +19 -0
  45. package/dist/chunk-XXDRQBXY-CPYrcdVW.js +8 -0
  46. package/dist/chunk-ZCHMQSOR-BG8OLpvb.js +451 -0
  47. package/dist/classDiagram-v2-4MYWR3UA-DqbpQpwI.js +1564 -0
  48. package/dist/component.d-DFoMKuUv.js +179 -0
  49. package/dist/cose-bilkent-JH36ORCC-CdXk4sPf.js +2609 -0
  50. package/dist/customComponents-DasaZ6pq.js +4 -0
  51. package/dist/customComponents.en-US-CkabuCXg.js +79 -0
  52. package/dist/customParseFormat-C0uLEpdq.js +182 -0
  53. package/dist/cynefin-EF2NZ3EQ-D7MVnMHu.js +21746 -0
  54. package/dist/cynefinDiagram-WF24UDRP-BYT_KpDL.js +299 -0
  55. package/dist/cytoscape.esm-BCV9V6aO.js +18760 -0
  56. package/dist/d3-scale-DA8IHmf0.js +1841 -0
  57. package/dist/dagre-NK4GIZVX-l-ghPdM8.js +2154 -0
  58. package/dist/dateRange-BbkLMg8L.js +79 -0
  59. package/dist/dateRange.en-US-CV12Q02G.js +79 -0
  60. package/dist/dayjs.min-DZ-YV8Mv.js +284 -0
  61. package/dist/diagram-CBK3MWTC-Bt3HiwvA.js +542 -0
  62. package/dist/diagram-I5XIIV2D-DcbqfBjx.js +150 -0
  63. package/dist/diagram-ODIL2UCW-9PC1n3n5.js +346 -0
  64. package/dist/diagram-PFBEJUXE-DGhr2kc7.js +478 -0
  65. package/dist/diagram-RJA3I4VV-DwzpOjZ_.js +219 -0
  66. package/dist/diagram-TYUNFSNR-B3Bd3TDU.js +2583 -0
  67. package/dist/dropdownFilter-DOi_8-ZT.js +76 -0
  68. package/dist/dropdownFilter.en-US-BiXpvXtF.js +76 -0
  69. package/dist/ebnfDiagram-V4P3TTPT-E5NN2oKc.js +109 -0
  70. package/dist/elk-QONTBCTQ-dFjcujl_.js +49170 -0
  71. package/dist/erDiagram-KYQIGQAA-BMrasBzB.js +1061 -0
  72. package/dist/eventList-CnsAwfDS.js +115 -0
  73. package/dist/eventList.en-US-Cof3rCLq.js +115 -0
  74. package/dist/eventReport-XS-HegnH.js +76 -0
  75. package/dist/eventReport.en-US-DTx4vzWT.js +76 -0
  76. package/dist/flowDiagram-IUGLLWBU-BGIBH0q0.js +1769 -0
  77. package/dist/ganttChart-DEeSvTJA.js +77 -0
  78. package/dist/ganttChart.en-US-SwRKrnoD.js +77 -0
  79. package/dist/ganttDiagram-R7GPNTJY-C0tb1Lpp.js +1741 -0
  80. package/dist/generateCypher-Ch9_lQa6.js +399 -0
  81. package/dist/gitGraphDiagram-PDYL7XHY-DBqcOa-c.js +815 -0
  82. package/dist/graph-CKJmgLki.js +1541 -0
  83. package/dist/index-BA-GzCXt.js +441 -0
  84. package/dist/infoDiagram-MVDRKAX5-Bwuki4JA.js +24 -0
  85. package/dist/ishikawaDiagram-HPEHV2GE-Dz4d6ygx.js +622 -0
  86. package/dist/journeyDiagram-BOSHW7O7-C99m34Bb.js +834 -0
  87. package/dist/kanban-definition-FNSA4HC5-mdqjODsT.js +724 -0
  88. package/dist/katex-BsrBVQKd.js +11314 -0
  89. package/dist/manifest-BjV1PJ6u.js +41 -0
  90. package/dist/mermaid.core-yQghUlIz.js +17642 -0
  91. package/dist/metricCards-CSb-_cT2.js +104 -0
  92. package/dist/metricCards.en-US-BLLhRsQU.js +104 -0
  93. package/dist/mindmap-definition-6OY57UG3-BZhO2wX4.js +834 -0
  94. package/dist/modelTrial-Bvb-RhGt.js +137 -0
  95. package/dist/modelTrial.en-US-DYcuor-G.js +137 -0
  96. package/dist/models-DekiCOuZ.js +6 -0
  97. package/dist/object-metric-numeric-vs3BeDkH.js +42 -0
  98. package/dist/object-metric.service-flZgBMRX.js +233 -0
  99. package/dist/objectDetail-SQUbp4Py.js +117 -0
  100. package/dist/objectDetail.en-US-DW3mlONM.js +117 -0
  101. package/dist/objectList-D99wPtJH.js +97 -0
  102. package/dist/objectList.en-US-PBBNyVLW.js +97 -0
  103. package/dist/objectTable-0jsFFMN3.js +127 -0
  104. package/dist/objectTable.en-US-yWEs8qc_.js +127 -0
  105. package/dist/pegDiagram-ECIUJNBX-BDa5RfZt.js +95 -0
  106. package/dist/pieDiagram-GNMPY74T-DNVtzXPv.js +165 -0
  107. package/dist/pivotTable-CHmQw18-.js +102 -0
  108. package/dist/pivotTable.en-US-B4uv4P08.js +102 -0
  109. package/dist/prompt-DYrjlEFr.js +373 -0
  110. package/dist/quadrantDiagram-D57K4MC3-vK0f2OvQ.js +1023 -0
  111. package/dist/railroadDiagram-Y72NRBL7-j6ZrTmRp.js +77 -0
  112. package/dist/regionMap-Cme-JyV_.js +128 -0
  113. package/dist/regionMap.en-US-Bwr2_p32.js +128 -0
  114. package/dist/requirementDiagram-EQYSW5RA-DgfEyljA.js +886 -0
  115. package/dist/sankeyDiagram-SY24JHO5-CImx-IX0.js +1160 -0
  116. package/dist/scenarioBar-BV43p7n-.js +122 -0
  117. package/dist/scenarioBar.en-US-5KqMQ2Bg.js +122 -0
  118. package/dist/scheduleGantt-CTYO-zYP.js +180 -0
  119. package/dist/scheduleGantt.en-US-hE7mvVUW.js +180 -0
  120. package/dist/searchBox-Ca7w0f_6.js +67 -0
  121. package/dist/searchBox.en-US-ArS_XBvB.js +67 -0
  122. package/dist/segmentedFilter-MhjVcWo0.js +80 -0
  123. package/dist/segmentedFilter.en-US-BxNrQO5T.js +80 -0
  124. package/dist/sequenceDiagram-BLEHNHQU-nWmjd1ci.js +2969 -0
  125. package/dist/sizeCapture-INFHLROL-D3jlbt7h.js +46 -0
  126. package/dist/stageChain-BxBafwjD.js +74 -0
  127. package/dist/stageChain.en-US-CP0G27n8.js +74 -0
  128. package/dist/stateDiagram-v2-A6IESKWZ-DG1ZetEu.js +1514 -0
  129. package/dist/subgraph-7n4SwliR.js +71 -0
  130. package/dist/subgraph.en-US-BNvY18IW.js +71 -0
  131. package/dist/swimlanes-B3ENRKFQ-cCmJE8AU.js +4991 -0
  132. package/dist/swimlanesDiagram-AYQRV4AK-CtuhyguU.js +14 -0
  133. package/dist/taskInbox-DGWYeI2b.js +118 -0
  134. package/dist/taskInbox.en-US-B-OzDmVl.js +118 -0
  135. package/dist/text-BqSVQKS6.js +78 -0
  136. package/dist/text.en-US-BhAxy_LE.js +78 -0
  137. package/dist/timeline-definition-JXYKGLGB-Cc-INsOv.js +1057 -0
  138. package/dist/trendChart-BjEeRS5_.js +135 -0
  139. package/dist/trendChart.en-US-BBGqWUKM.js +135 -0
  140. package/dist/useLabData-Df-jEHKs.js +20470 -0
  141. package/dist/usecaseDiagram-WPOLBNNX-r8wVjopm.js +7920 -0
  142. package/dist/vennDiagram-Q3Y3IDCW-BZiOcgrj.js +1579 -0
  143. package/dist/wardleyDiagram-IVAIDKWA-16jd07C_.js +675 -0
  144. package/dist/workshop-app-DnHNjBqy.js +86038 -0
  145. package/dist/workshop-app.css +1 -0
  146. package/dist/workshop-app.js +4 -0
  147. package/dist/world-Djau1JyJ.js +9 -0
  148. package/dist/xychartDiagram-4URNHDU4-C8DwWQNh.js +1460 -0
  149. package/dist-cli/workshop.js +341 -218
  150. package/example/host.js +109 -0
  151. package/example/index.html +93 -0
  152. package/example/server.mjs +237 -0
  153. package/index.d.ts +48 -0
  154. package/lib/validate.js +47 -1
  155. package/package.json +17 -5
  156. package/runtime/frame-runtime.js +13 -1
  157. package/workshop-component.js +32 -12
  158. package/workshop.js +2 -0
@@ -0,0 +1,1769 @@
1
+ import { g as qt } from "./chunk-5VM5RSS4-BdpQuzmO.js";
2
+ import { g as Xt } from "./chunk-XXDRQBXY-CPYrcdVW.js";
3
+ import { s as Qt } from "./chunk-VQ5W62QI-BiVKc40w.js";
4
+ import { _ as C, q as Jt, l as ee, c as Ae, r as Zt, t as $t, u as rt, b as e1, s as t1, v as s1, a as i1, g as r1, x as a1, m as n1, y as u1, J as o1, z as l1, A as st, k as it, B as c1, D as h1, E as d1, F as p1, G as f1, H as g1, I as b1, K as k1 } from "./mermaid.core-yQghUlIz.js";
5
+ import { c as A1 } from "./chunk-55XCU76K-dcpLOktb.js";
6
+ import { c as m1 } from "./channel-B034hcOF.js";
7
+ import "./dayjs.min-DZ-YV8Mv.js";
8
+ var C1 = "flowchart-", Pe, D1 = (Pe = class {
9
+ // cspell:ignore funs
10
+ constructor() {
11
+ this.vertexCounter = 0, this.config = Ae(), this.diagramId = "", this.vertices = /* @__PURE__ */ new Map(), this.edges = [], this.classes = /* @__PURE__ */ new Map(), this.subGraphs = [], this.subGraphLookup = /* @__PURE__ */ new Map(), this.tooltips = /* @__PURE__ */ new Map(), this.subCount = 0, this.firstGraphFlag = !0, this.secCount = -1, this.posCrossRef = [], this.funs = [], this.setAccTitle = e1, this.setAccDescription = t1, this.setDiagramTitle = s1, this.getAccTitle = i1, this.getAccDescription = r1, this.getDiagramTitle = a1, this.funs.push(this.setupToolTips.bind(this)), this.addVertex = this.addVertex.bind(this), this.firstGraph = this.firstGraph.bind(this), this.setDirection = this.setDirection.bind(this), this.addSubGraph = this.addSubGraph.bind(this), this.addLink = this.addLink.bind(this), this.setLink = this.setLink.bind(this), this.updateLink = this.updateLink.bind(this), this.addClass = this.addClass.bind(this), this.setClass = this.setClass.bind(this), this.destructLink = this.destructLink.bind(this), this.setClickEvent = this.setClickEvent.bind(this), this.setTooltip = this.setTooltip.bind(this), this.updateLinkInterpolate = this.updateLinkInterpolate.bind(this), this.setClickFun = this.setClickFun.bind(this), this.bindFunctions = this.bindFunctions.bind(this), this.lex = {
12
+ firstGraph: this.firstGraph.bind(this)
13
+ }, this.clear(), this.setGen("gen-2");
14
+ }
15
+ sanitizeText(i) {
16
+ return n1.sanitizeText(i, this.config);
17
+ }
18
+ sanitizeNodeLabelType(i) {
19
+ switch (i) {
20
+ case "markdown":
21
+ case "string":
22
+ case "text":
23
+ return i;
24
+ default:
25
+ return "markdown";
26
+ }
27
+ }
28
+ /**
29
+ * Sets the diagram's SVG element ID, used to prefix domIds for uniqueness
30
+ * across multiple diagrams on the same page.
31
+ */
32
+ setDiagramId(i) {
33
+ this.diagramId = i;
34
+ }
35
+ /**
36
+ * Function to lookup domId from id in the graph definition.
37
+ * When diagramId is set, returns the prefixed version for DOM uniqueness.
38
+ *
39
+ * @param id - id of the node
40
+ */
41
+ lookUpDomId(i) {
42
+ for (const r of this.vertices.values())
43
+ if (r.id === i)
44
+ return this.diagramId ? `${this.diagramId}-${r.domId}` : r.domId;
45
+ return this.diagramId ? `${this.diagramId}-${i}` : i;
46
+ }
47
+ /**
48
+ * Function called by parser when a node definition has been found
49
+ */
50
+ addVertex(i, r, a, n, l, b, u = {}, m) {
51
+ if (!i || i.trim().length === 0)
52
+ return;
53
+ let h;
54
+ if (m !== void 0) {
55
+ let k;
56
+ m.includes(`
57
+ `) ? k = m + `
58
+ ` : k = `{
59
+ ` + m + `
60
+ }`, h = u1(k, { schema: o1 });
61
+ }
62
+ const y = this.subGraphLookup.get(i);
63
+ if (y && h) {
64
+ y.metadata = { ...y.metadata, ...h };
65
+ return;
66
+ }
67
+ const B = this.edges.find((k) => k.id === i);
68
+ if (B) {
69
+ const k = h;
70
+ k?.animate !== void 0 && (B.animate = k.animate), k?.animation !== void 0 && (B.animation = k.animation), k?.curve !== void 0 && (B.interpolate = k.curve);
71
+ return;
72
+ }
73
+ let N, f = this.vertices.get(i);
74
+ if (f === void 0 && (r === void 0 && a === void 0 && n !== void 0 && n !== null && ee.warn(
75
+ `Style applied to unknown node "${i}". This may indicate a typo. The node will be created automatically.`
76
+ ), f = {
77
+ id: i,
78
+ labelType: "text",
79
+ domId: C1 + i + "-" + this.vertexCounter,
80
+ styles: [],
81
+ classes: []
82
+ }, this.vertices.set(i, f)), this.vertexCounter++, r !== void 0 ? (this.config = Ae(), N = this.sanitizeText(r.text.trim()), f.labelType = r.type, N.startsWith('"') && N.endsWith('"') && (N = N.substring(1, N.length - 1)), f.text = N) : f.text === void 0 && (f.text = i), a !== void 0 && (f.type = a), n?.forEach((k) => {
83
+ f.styles.push(k);
84
+ }), l?.forEach((k) => {
85
+ f.classes.push(k);
86
+ }), b !== void 0 && (f.dir = b), f.props === void 0 ? f.props = u : u !== void 0 && Object.assign(f.props, u), h !== void 0) {
87
+ if (h.shape) {
88
+ if (h.shape !== h.shape.toLowerCase() || h.shape.includes("_"))
89
+ throw new Error(`No such shape: ${h.shape}. Shape names should be lowercase.`);
90
+ if (!l1(h.shape))
91
+ throw new Error(`No such shape: ${h.shape}.`);
92
+ f.type = h?.shape;
93
+ }
94
+ h?.label && (f.text = h?.label, f.labelType = this.sanitizeNodeLabelType(h?.labelType)), h?.icon && (f.icon = h?.icon, !h.label?.trim() && f.text === i && (f.text = "")), h?.form && (f.form = h?.form), h?.pos && (f.pos = h?.pos), h?.img && (f.img = h?.img, !h.label?.trim() && f.text === i && (f.text = "")), h?.constraint && (f.constraint = h.constraint), h.w && (f.assetWidth = Number(h.w)), h.h && (f.assetHeight = Number(h.h));
95
+ }
96
+ }
97
+ /**
98
+ * Function called by parser when a link/edge definition has been found
99
+ *
100
+ */
101
+ addSingleLink(i, r, a, n) {
102
+ const u = {
103
+ start: i,
104
+ end: r,
105
+ type: void 0,
106
+ text: "",
107
+ labelType: "text",
108
+ classes: [],
109
+ isUserDefinedId: !1,
110
+ interpolate: this.edges.defaultInterpolate
111
+ };
112
+ ee.info("abc78 Got edge...", u);
113
+ const m = a.text;
114
+ if (m !== void 0 && (u.text = this.sanitizeText(m.text.trim()), u.text.startsWith('"') && u.text.endsWith('"') && (u.text = u.text.substring(1, u.text.length - 1)), u.labelType = this.sanitizeNodeLabelType(m.type)), a !== void 0 && (u.type = a.type, u.stroke = a.stroke, u.length = a.length > 10 ? 10 : a.length), n && !this.edges.some((h) => h.id === n))
115
+ u.id = n, u.isUserDefinedId = !0;
116
+ else {
117
+ const h = this.edges.filter((y) => y.start === u.start && y.end === u.end);
118
+ h.length === 0 ? u.id = st(u.start, u.end, { counter: 0, prefix: "L" }) : u.id = st(u.start, u.end, {
119
+ counter: h.length + 1,
120
+ prefix: "L"
121
+ });
122
+ }
123
+ if (this.edges.length < (this.config.maxEdges ?? 500))
124
+ ee.info("Pushing edge..."), this.edges.push(u);
125
+ else
126
+ throw new Error(
127
+ `Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
128
+
129
+ Initialize mermaid with maxEdges set to a higher number to allow more edges.
130
+ You cannot set this config via configuration inside the diagram as it is a secure config.
131
+ You have to call mermaid.initialize.`
132
+ );
133
+ }
134
+ isLinkData(i) {
135
+ return i !== null && typeof i == "object" && "id" in i && typeof i.id == "string";
136
+ }
137
+ addLink(i, r, a) {
138
+ const n = this.isLinkData(a) ? a.id.replace("@", "") : void 0;
139
+ ee.info("addLink", i, r, n);
140
+ for (const l of i)
141
+ for (const b of r) {
142
+ const u = l === i[i.length - 1], m = b === r[0];
143
+ u && m ? this.addSingleLink(l, b, a, n) : this.addSingleLink(l, b, a, void 0);
144
+ }
145
+ }
146
+ /**
147
+ * Updates a link's line interpolation algorithm
148
+ */
149
+ updateLinkInterpolate(i, r) {
150
+ i.forEach((a) => {
151
+ a === "default" ? this.edges.defaultInterpolate = r : this.edges[a].interpolate = r;
152
+ });
153
+ }
154
+ /**
155
+ * Updates a link with a style
156
+ *
157
+ */
158
+ updateLink(i, r) {
159
+ i.forEach((a) => {
160
+ if (typeof a == "number" && a >= this.edges.length)
161
+ throw new Error(
162
+ `The index ${a} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length - 1}. (Help: Ensure that the index is within the range of existing edges.)`
163
+ );
164
+ a === "default" ? this.edges.defaultStyle = r : (this.edges[a].style = r, (this.edges[a]?.style?.length ?? 0) > 0 && !this.edges[a]?.style?.some((n) => n?.startsWith("fill")) && this.edges[a]?.style?.push("fill:none"));
165
+ });
166
+ }
167
+ addClass(i, r) {
168
+ const a = r.join().replace(/\\,/g, "§§§").replace(/,/g, ";").replace(/§§§/g, ",").split(";");
169
+ i.split(",").forEach((n) => {
170
+ let l = this.classes.get(n);
171
+ l === void 0 && (l = { id: n, styles: [], textStyles: [] }, this.classes.set(n, l)), a?.forEach((b) => {
172
+ if (/color/.exec(b)) {
173
+ const u = b.replace("fill", "bgFill");
174
+ l.textStyles.push(u);
175
+ }
176
+ l.styles.push(b);
177
+ });
178
+ });
179
+ }
180
+ /**
181
+ * Called by parser when a graph definition is found, stores the direction of the chart.
182
+ *
183
+ */
184
+ setDirection(i) {
185
+ this.direction = i.trim(), /.*</.exec(this.direction) && (this.direction = "RL"), /.*\^/.exec(this.direction) && (this.direction = "BT"), /.*>/.exec(this.direction) && (this.direction = "LR"), /.*v/.exec(this.direction) && (this.direction = "TB"), this.direction === "TD" && (this.direction = "TB");
186
+ }
187
+ /**
188
+ * Called by parser when a special node is found, e.g. a clickable element.
189
+ *
190
+ * @param ids - Comma separated list of ids
191
+ * @param className - Class to add
192
+ */
193
+ setClass(i, r) {
194
+ for (const a of i.split(",")) {
195
+ const n = this.vertices.get(a);
196
+ n && n.classes.push(r);
197
+ const l = this.edges.find((u) => u.id === a);
198
+ l && l.classes.push(r);
199
+ const b = this.subGraphLookup.get(a);
200
+ b && b.classes.push(r);
201
+ }
202
+ }
203
+ setTooltip(i, r) {
204
+ if (r !== void 0) {
205
+ r = this.sanitizeText(r);
206
+ for (const a of i.split(","))
207
+ this.tooltips.set(this.version === "gen-1" ? this.lookUpDomId(a) : a, r);
208
+ }
209
+ }
210
+ setClickFun(i, r, a) {
211
+ if (Ae().securityLevel !== "loose" || r === void 0)
212
+ return;
213
+ let n = [];
214
+ if (typeof a == "string") {
215
+ n = a.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
216
+ for (let b = 0; b < n.length; b++) {
217
+ let u = n[b].trim();
218
+ u.startsWith('"') && u.endsWith('"') && (u = u.substr(1, u.length - 2)), n[b] = u;
219
+ }
220
+ }
221
+ n.length === 0 && n.push(i);
222
+ const l = this.vertices.get(i);
223
+ l && (l.haveCallback = !0, this.funs.push(() => {
224
+ const b = this.lookUpDomId(i), u = document.querySelector(`[id="${b}"]`);
225
+ u !== null && u.addEventListener(
226
+ "click",
227
+ () => {
228
+ rt.runFunc(r, ...n);
229
+ },
230
+ !1
231
+ );
232
+ }));
233
+ }
234
+ /**
235
+ * Called by parser when a link is found. Adds the URL to the vertex data.
236
+ *
237
+ * @param ids - Comma separated list of ids
238
+ * @param linkStr - URL to create a link for
239
+ * @param target - Target attribute for the link
240
+ */
241
+ setLink(i, r, a) {
242
+ i.split(",").forEach((n) => {
243
+ const l = this.vertices.get(n);
244
+ l !== void 0 && (l.link = rt.formatUrl(r, this.config), l.linkTarget = a);
245
+ }), this.setClass(i, "clickable");
246
+ }
247
+ getTooltip(i) {
248
+ return this.tooltips.get(i);
249
+ }
250
+ /**
251
+ * Called by parser when a click definition is found. Registers an event handler.
252
+ *
253
+ * @param ids - Comma separated list of ids
254
+ * @param functionName - Function to be called on click
255
+ * @param functionArgs - Arguments to be passed to the function
256
+ */
257
+ setClickEvent(i, r, a) {
258
+ i.split(",").forEach((n) => {
259
+ this.setClickFun(n, r, a);
260
+ }), this.setClass(i, "clickable");
261
+ }
262
+ bindFunctions(i) {
263
+ this.funs.forEach((r) => {
264
+ r(i);
265
+ });
266
+ }
267
+ getDirection() {
268
+ return this.direction?.trim();
269
+ }
270
+ /**
271
+ * Retrieval function for fetching the found nodes after parsing has completed.
272
+ *
273
+ */
274
+ getVertices() {
275
+ return this.vertices;
276
+ }
277
+ /**
278
+ * Retrieval function for fetching the found links after parsing has completed.
279
+ *
280
+ */
281
+ getEdges() {
282
+ return this.edges;
283
+ }
284
+ /**
285
+ * Retrieval function for fetching the found class definitions after parsing has completed.
286
+ *
287
+ */
288
+ getClasses() {
289
+ return this.classes;
290
+ }
291
+ setupToolTips(i) {
292
+ const r = A1();
293
+ it(i).select("svg").selectAll("g.node").on("mouseover", (l) => {
294
+ const b = it(l.currentTarget), u = b.attr("title");
295
+ if (u === null)
296
+ return;
297
+ const m = l.currentTarget?.getBoundingClientRect();
298
+ r.transition().duration(200).style("opacity", ".9"), r.text(b.attr("title")).style("left", window.scrollX + m.left + (m.right - m.left) / 2 + "px").style("top", window.scrollY + m.bottom + "px"), r.html(c1.sanitize(u)), b.classed("hover", !0);
299
+ }).on("mouseout", (l) => {
300
+ r.transition().duration(500).style("opacity", 0), it(l.currentTarget).classed("hover", !1);
301
+ });
302
+ }
303
+ /**
304
+ * Clears the internal graph db so that a new graph can be parsed.
305
+ *
306
+ */
307
+ clear(i = "gen-2") {
308
+ this.vertices = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(), this.edges = [], this.funs = [this.setupToolTips.bind(this)], this.diagramId = "", this.subGraphs = [], this.subGraphLookup = /* @__PURE__ */ new Map(), this.subCount = 0, this.tooltips = /* @__PURE__ */ new Map(), this.firstGraphFlag = !0, this.version = i, this.config = Ae(), h1();
309
+ }
310
+ setGen(i) {
311
+ this.version = i || "gen-2";
312
+ }
313
+ defaultStyle() {
314
+ return "fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;";
315
+ }
316
+ addSubGraph(i, r, a) {
317
+ let n = i.text.trim(), l = a.text;
318
+ i === a && /\s/.exec(a.text) && (n = void 0);
319
+ const u = (/* @__PURE__ */ C((f) => {
320
+ const k = { boolean: {}, number: {}, string: {} }, x = [];
321
+ let pe;
322
+ return { nodeList: f.filter(function(c) {
323
+ const p = typeof c;
324
+ return c.stmt && c.stmt === "dir" ? (pe = c.value, !1) : c.trim() === "" ? !1 : p in k ? k[p].hasOwnProperty(c) ? !1 : k[p][c] = !0 : x.includes(c) ? !1 : x.push(c);
325
+ }), dir: pe };
326
+ }, "uniq"))(r.flat()), m = u.nodeList;
327
+ let h = u.dir;
328
+ const y = Ae().flowchart ?? {};
329
+ if (h = h ?? (y.inheritDir ? this.getDirection() ?? Ae().direction ?? void 0 : void 0), this.version === "gen-1")
330
+ for (let f = 0; f < m.length; f++)
331
+ m[f] = this.lookUpDomId(m[f]);
332
+ n = n ?? "subGraph" + this.subCount, l = l || "", l = this.sanitizeText(l), this.subCount = this.subCount + 1;
333
+ const B = {
334
+ id: n,
335
+ nodes: m,
336
+ title: l.trim(),
337
+ classes: [],
338
+ dir: h,
339
+ labelType: this.sanitizeNodeLabelType(a?.type)
340
+ };
341
+ ee.info("Adding", B.id, B.nodes, B.dir), B.nodes = this.makeUniq(B, this.subGraphs).nodes.filter(
342
+ (f) => f !== n
343
+ );
344
+ const N = this.subGraphs.find((f) => f.id === n);
345
+ return N ? N.nodes.push(...B.nodes) : this.subGraphs.push(B), this.subGraphLookup.set(n, N ?? B), n;
346
+ }
347
+ getPosForId(i) {
348
+ for (const [r, a] of this.subGraphs.entries())
349
+ if (a.id === i)
350
+ return r;
351
+ return -1;
352
+ }
353
+ indexNodes2(i, r) {
354
+ const a = this.subGraphs[r].nodes;
355
+ if (this.secCount = this.secCount + 1, this.secCount > 2e3)
356
+ return {
357
+ result: !1,
358
+ count: 0
359
+ };
360
+ if (this.posCrossRef[this.secCount] = r, this.subGraphs[r].id === i)
361
+ return {
362
+ result: !0,
363
+ count: 0
364
+ };
365
+ let n = 0, l = 1;
366
+ for (; n < a.length; ) {
367
+ const b = this.getPosForId(a[n]);
368
+ if (b >= 0) {
369
+ const u = this.indexNodes2(i, b);
370
+ if (u.result)
371
+ return {
372
+ result: !0,
373
+ count: l + u.count
374
+ };
375
+ l = l + u.count;
376
+ }
377
+ n = n + 1;
378
+ }
379
+ return {
380
+ result: !1,
381
+ count: l
382
+ };
383
+ }
384
+ getDepthFirstPos(i) {
385
+ return this.posCrossRef[i];
386
+ }
387
+ indexNodes() {
388
+ this.secCount = -1, this.subGraphs.length > 0 && this.indexNodes2("none", this.subGraphs.length - 1);
389
+ }
390
+ getSubGraphs() {
391
+ return this.subGraphs;
392
+ }
393
+ firstGraph() {
394
+ return this.firstGraphFlag ? (this.firstGraphFlag = !1, !0) : !1;
395
+ }
396
+ destructStartLink(i) {
397
+ let r = i.trim(), a = "arrow_open";
398
+ switch (r[0]) {
399
+ case "<":
400
+ a = "arrow_point", r = r.slice(1);
401
+ break;
402
+ case "x":
403
+ a = "arrow_cross", r = r.slice(1);
404
+ break;
405
+ case "o":
406
+ a = "arrow_circle", r = r.slice(1);
407
+ break;
408
+ }
409
+ let n = "normal";
410
+ return r.includes("=") && (n = "thick"), r.includes(".") && (n = "dotted"), { type: a, stroke: n };
411
+ }
412
+ countChar(i, r) {
413
+ const a = r.length;
414
+ let n = 0;
415
+ for (let l = 0; l < a; ++l)
416
+ r[l] === i && ++n;
417
+ return n;
418
+ }
419
+ destructEndLink(i) {
420
+ const r = i.trim();
421
+ let a = r.slice(0, -1), n = "arrow_open";
422
+ switch (r.slice(-1)) {
423
+ case "x":
424
+ n = "arrow_cross", r.startsWith("x") && (n = "double_" + n, a = a.slice(1));
425
+ break;
426
+ case ">":
427
+ n = "arrow_point", r.startsWith("<") && (n = "double_" + n, a = a.slice(1));
428
+ break;
429
+ case "o":
430
+ n = "arrow_circle", r.startsWith("o") && (n = "double_" + n, a = a.slice(1));
431
+ break;
432
+ }
433
+ let l = "normal", b = a.length - 1;
434
+ a.startsWith("=") && (l = "thick"), a.startsWith("~") && (l = "invisible");
435
+ const u = this.countChar(".", a);
436
+ return u && (l = "dotted", b = u), { type: n, stroke: l, length: b };
437
+ }
438
+ destructLink(i, r) {
439
+ const a = this.destructEndLink(i);
440
+ let n;
441
+ if (r) {
442
+ if (n = this.destructStartLink(r), n.stroke !== a.stroke)
443
+ return { type: "INVALID", stroke: "INVALID" };
444
+ if (n.type === "arrow_open")
445
+ n.type = a.type;
446
+ else {
447
+ if (n.type !== a.type)
448
+ return { type: "INVALID", stroke: "INVALID" };
449
+ n.type = "double_" + n.type;
450
+ }
451
+ return n.type === "double_arrow" && (n.type = "double_arrow_point"), n.length = a.length, n;
452
+ }
453
+ return a;
454
+ }
455
+ // Todo optimizer this by caching existing nodes
456
+ exists(i, r) {
457
+ for (const a of i)
458
+ if (a.nodes.includes(r))
459
+ return !0;
460
+ return !1;
461
+ }
462
+ /**
463
+ * Deletes an id from all subgraphs
464
+ *
465
+ */
466
+ makeUniq(i, r) {
467
+ const a = [];
468
+ return i.nodes.forEach((n, l) => {
469
+ this.exists(r, n) || a.push(i.nodes[l]);
470
+ }), { nodes: a };
471
+ }
472
+ getTypeFromVertex(i) {
473
+ if (i.img)
474
+ return "imageSquare";
475
+ if (i.icon)
476
+ return i.form === "circle" ? "iconCircle" : i.form === "square" ? "iconSquare" : i.form === "rounded" ? "iconRounded" : "icon";
477
+ switch (i.type) {
478
+ case "square":
479
+ case void 0:
480
+ return "squareRect";
481
+ case "round":
482
+ return "roundedRect";
483
+ case "ellipse":
484
+ return "ellipse";
485
+ default:
486
+ return i.type;
487
+ }
488
+ }
489
+ findNode(i, r) {
490
+ return i.find((a) => a.id === r);
491
+ }
492
+ destructEdgeType(i) {
493
+ let r = "none", a = "arrow_point";
494
+ switch (i) {
495
+ case "arrow_point":
496
+ case "arrow_circle":
497
+ case "arrow_cross":
498
+ a = i;
499
+ break;
500
+ case "double_arrow_point":
501
+ case "double_arrow_circle":
502
+ case "double_arrow_cross":
503
+ r = i.replace("double_", ""), a = r;
504
+ break;
505
+ }
506
+ return { arrowTypeStart: r, arrowTypeEnd: a };
507
+ }
508
+ addNodeFromVertex(i, r, a, n, l, b) {
509
+ const u = a.get(i.id), m = n.get(i.id) ?? !1, h = this.findNode(r, i.id);
510
+ if (h)
511
+ h.cssStyles = i.styles, h.cssCompiledStyles = this.getCompiledStyles(i.classes), h.cssClasses = i.classes.join(" ");
512
+ else {
513
+ const y = {
514
+ id: i.id,
515
+ label: i.text,
516
+ labelType: i.labelType,
517
+ labelStyle: "",
518
+ parentId: u,
519
+ padding: l.flowchart?.padding || 8,
520
+ cssStyles: i.styles,
521
+ cssCompiledStyles: this.getCompiledStyles(["default", "node", ...i.classes]),
522
+ cssClasses: "default " + i.classes.join(" "),
523
+ dir: i.dir,
524
+ domId: i.domId,
525
+ look: b,
526
+ link: i.link,
527
+ linkTarget: i.linkTarget,
528
+ tooltip: this.getTooltip(i.id),
529
+ icon: i.icon,
530
+ pos: i.pos,
531
+ img: i.img,
532
+ assetWidth: i.assetWidth,
533
+ assetHeight: i.assetHeight,
534
+ constraint: i.constraint
535
+ };
536
+ m ? r.push({
537
+ ...y,
538
+ isGroup: !0,
539
+ shape: "rect"
540
+ }) : r.push({
541
+ ...y,
542
+ isGroup: !1,
543
+ shape: this.getTypeFromVertex(i),
544
+ minWidth: l.flowchart?.minNodeWidth
545
+ });
546
+ }
547
+ }
548
+ getCompiledStyles(i) {
549
+ let r = [];
550
+ for (const a of i) {
551
+ const n = this.classes.get(a);
552
+ n?.styles && (r = [...r, ...n.styles ?? []].map((l) => l.trim())), n?.textStyles && (r = [...r, ...n.textStyles ?? []].map((l) => l.trim()));
553
+ }
554
+ return r;
555
+ }
556
+ getData() {
557
+ const i = Ae(), r = [], a = [], n = this.getSubGraphs(), l = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map();
558
+ for (const c of n)
559
+ for (const p of c.nodes)
560
+ this.subGraphLookup.has(p) && u.set(p, c.id);
561
+ const m = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Map();
562
+ for (const c of n) {
563
+ const p = u.get(c.id);
564
+ p !== void 0 && h.set(p, [...h.get(p) ?? [], c.id]);
565
+ }
566
+ let y = 0;
567
+ const B = /* @__PURE__ */ C((c) => {
568
+ m.set(c, y++);
569
+ for (const p of h.get(c) ?? [])
570
+ B(p);
571
+ }, "walk");
572
+ for (const c of n)
573
+ u.has(c.id) || B(c.id);
574
+ const N = /* @__PURE__ */ C((c) => this.subGraphLookup.get(c)?.metadata?.view === "collapsed", "isCollapsed"), f = /* @__PURE__ */ C((c) => {
575
+ let p;
576
+ const Y = /* @__PURE__ */ new Set();
577
+ let F = c;
578
+ for (; F !== void 0 && !Y.has(F); )
579
+ Y.add(F), N(F) && (p = F), F = u.get(F);
580
+ return p;
581
+ }, "outermostCollapsed"), k = /* @__PURE__ */ new Set(), x = /* @__PURE__ */ new Map();
582
+ for (const c of n) {
583
+ const p = f(c.id);
584
+ if (p !== void 0) {
585
+ c.id !== p && (k.add(c.id), x.set(c.id, p));
586
+ for (const Y of c.nodes)
587
+ Y !== p && (k.add(Y), x.set(Y, p));
588
+ }
589
+ }
590
+ for (let c = n.length - 1; c >= 0; c--) {
591
+ const p = n[c];
592
+ if (!k.has(p.id)) {
593
+ p.nodes.length > 0 && b.set(p.id, !0);
594
+ for (const Y of p.nodes)
595
+ l.set(Y, p.id);
596
+ }
597
+ }
598
+ for (let c = n.length - 1; c >= 0; c--) {
599
+ const p = n[c];
600
+ k.has(p.id) || (p.metadata?.view === "collapsed" ? r.push({
601
+ id: p.id,
602
+ label: p.title,
603
+ labelStyle: "",
604
+ labelType: p.labelType,
605
+ parentId: l.get(p.id),
606
+ padding: 8,
607
+ cssCompiledStyles: this.getCompiledStyles(p.classes),
608
+ cssClasses: p.classes.join(" "),
609
+ shape: "collapsedGroup",
610
+ dir: p.dir,
611
+ isGroup: !1,
612
+ look: i.look,
613
+ // A collapsed subgraph still consumes its slot, so the cycle does not shift
614
+ // when one is collapsed.
615
+ colorIndex: m.get(p.id)
616
+ }) : r.push({
617
+ id: p.id,
618
+ label: p.title,
619
+ labelStyle: "",
620
+ labelType: p.labelType,
621
+ parentId: l.get(p.id),
622
+ padding: 8,
623
+ cssCompiledStyles: this.getCompiledStyles(p.classes),
624
+ cssClasses: p.classes.join(" "),
625
+ shape: "rect",
626
+ dir: p.dir,
627
+ isGroup: !0,
628
+ look: i.look,
629
+ colorIndex: m.get(p.id),
630
+ // Forwarded so layout engines can read per-container settings such as
631
+ // `@{ algorithm: elk.box }`. `view` is consumed above; everything else
632
+ // is opaque here and simply passed through. The cast is the
633
+ // interface-vs-index-signature gap: `NodeMetaData` is an interface, so
634
+ // it is not structurally assignable to `Record<string, unknown>`.
635
+ metadata: p.metadata
636
+ }));
637
+ }
638
+ this.getVertices().forEach((c) => {
639
+ k.has(c.id) || this.addNodeFromVertex(c, r, l, b, i, i.look || "classic");
640
+ });
641
+ const fe = this.getEdges();
642
+ return fe.forEach((c, p) => {
643
+ const { arrowTypeStart: Y, arrowTypeEnd: F } = this.destructEdgeType(c.type), w = [...fe.defaultStyle ?? []], I = x.get(c.start) ?? c.start, R = x.get(c.end) ?? c.end;
644
+ if (I === R && (x.has(c.start) || x.has(c.end)))
645
+ return;
646
+ c.style && w.push(...c.style);
647
+ const G = {
648
+ id: st(I, R, { counter: p, prefix: "L" }, c.id),
649
+ isUserDefinedId: c.isUserDefinedId,
650
+ start: I,
651
+ end: R,
652
+ type: c.type ?? "normal",
653
+ label: c.text,
654
+ labelType: c.labelType,
655
+ labelpos: "c",
656
+ thickness: c.stroke,
657
+ minlen: c.length,
658
+ classes: c?.stroke === "invisible" ? "" : "edge-thickness-normal edge-pattern-solid flowchart-link",
659
+ arrowTypeStart: c?.stroke === "invisible" || c?.type === "arrow_open" ? "none" : Y,
660
+ arrowTypeEnd: c?.stroke === "invisible" || c?.type === "arrow_open" ? "none" : F,
661
+ arrowheadStyle: "fill: #333",
662
+ cssCompiledStyles: this.getCompiledStyles(c.classes),
663
+ labelStyle: w,
664
+ style: w,
665
+ pattern: c.stroke,
666
+ look: i.look,
667
+ animate: c.animate,
668
+ animation: c.animation,
669
+ curve: c.interpolate || this.edges.defaultInterpolate || i.flowchart?.curve
670
+ };
671
+ a.push(G);
672
+ }), { nodes: r, edges: a, other: {}, config: i };
673
+ }
674
+ defaultConfig() {
675
+ return d1.flowchart;
676
+ }
677
+ }, C(Pe, "FlowDB"), Pe), T1 = /* @__PURE__ */ C(function(s, i) {
678
+ return i.db.getClasses();
679
+ }, "getClasses"), S1 = /* @__PURE__ */ C(async function(s, i, r, a) {
680
+ ee.info("REF0:"), ee.info("Drawing state diagram (v2)", i);
681
+ const { securityLevel: n, flowchart: l, layout: b } = Ae();
682
+ a.db.setDiagramId(i), ee.debug("Before getData: ");
683
+ const u = a.db.getData();
684
+ ee.debug("Data: ", u);
685
+ const m = Xt(i, n), h = a.db.getDirection();
686
+ u.type = a.type, u.layoutAlgorithm = Zt(b), u.direction = h, u.nodeSpacing = l?.nodeSpacing || 50, u.rankSpacing = l?.rankSpacing || 50, u.markers = ["point", "circle", "cross"], u.diagramId = i, ee.debug("REF1:", u), await $t(u, m);
687
+ const y = u.config.flowchart?.diagramPadding ?? 8;
688
+ rt.insertTitle(
689
+ m,
690
+ "flowchartTitleText",
691
+ l?.titleTopMargin || 0,
692
+ a.db.getDiagramTitle()
693
+ ), Qt(m, y, "flowchart", l?.useMaxWidth || !1);
694
+ }, "draw"), E1 = {
695
+ getClasses: T1,
696
+ draw: S1
697
+ }, at = (function() {
698
+ var s = /* @__PURE__ */ C(function(ke, d, g, A) {
699
+ for (g = g || {}, A = ke.length; A--; g[ke[A]] = d) ;
700
+ return g;
701
+ }, "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, 125], l = [2, 2], b = [1, 13], u = [1, 14], m = [1, 15], h = [1, 16], y = [1, 23], B = [1, 25], N = [1, 26], f = [1, 27], k = [1, 50], x = [1, 49], pe = [1, 29], fe = [1, 30], c = [1, 31], p = [1, 32], Y = [1, 33], F = [1, 45], w = [1, 47], I = [1, 43], R = [1, 48], G = [1, 44], O = [1, 51], M = [1, 46], U = [1, 52], W = [1, 53], Me = [1, 34], Ue = [1, 35], We = [1, 36], ze = [1, 37], je = [1, 38], ge = [1, 58], _ = [1, 8, 9, 10, 11, 27, 32, 34, 36, 38, 44, 60, 84, 85, 86, 87, 88, 89, 102, 105, 106, 109, 111, 114, 115, 116, 121, 122, 123, 124, 125], te = [1, 62], se = [1, 61], ie = [1, 63], Te = [8, 9, 11, 75, 77, 78], nt = [1, 79], Se = [1, 92], Ee = [1, 97], ye = [1, 96], xe = [1, 93], Fe = [1, 89], _e = [1, 95], Be = [1, 91], ve = [1, 98], Le = [1, 94], Ve = [1, 99], we = [1, 90], me = [8, 9, 10, 11, 40, 75, 77, 78], j = [8, 9, 10, 11, 40, 46, 75, 77, 78], X = [8, 9, 10, 11, 29, 40, 44, 46, 48, 50, 52, 54, 56, 58, 60, 63, 65, 67, 68, 70, 75, 77, 78, 89, 102, 105, 106, 109, 111, 114, 115, 116], ut = [8, 9, 11, 44, 60, 75, 77, 78, 89, 102, 105, 106, 109, 111, 114, 115, 116], Ie = [44, 60, 89, 102, 105, 106, 109, 111, 114, 115, 116], ot = [1, 122], lt = [1, 123], Ke = [1, 125], He = [1, 124], ct = [44, 60, 62, 74, 89, 102, 105, 106, 109, 111, 114, 115, 116], ht = [1, 134], dt = [1, 148], pt = [1, 149], ft = [1, 150], gt = [1, 151], bt = [1, 136], kt = [1, 138], At = [1, 142], mt = [1, 143], Ct = [1, 144], Dt = [1, 145], Tt = [1, 146], St = [1, 147], Et = [1, 152], yt = [1, 153], xt = [1, 132], Ft = [1, 133], _t = [1, 140], Bt = [1, 135], vt = [1, 139], Lt = [1, 137], Qe = [8, 9, 10, 11, 27, 32, 34, 36, 38, 44, 60, 84, 85, 86, 87, 88, 89, 102, 105, 106, 109, 111, 114, 115, 116, 121, 122, 123, 124, 125], Vt = [1, 155], wt = [1, 157], V = [8, 9, 11], Q = [8, 9, 10, 11, 14, 44, 60, 89, 105, 106, 109, 111, 114, 115, 116], D = [1, 177], K = [1, 173], H = [1, 174], T = [1, 178], S = [1, 175], E = [1, 176], Re = [77, 116, 119], v = [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], It = [10, 106], be = [31, 49, 51, 53, 55, 57, 62, 64, 66, 67, 69, 71, 116, 117, 118], re = [1, 248], ae = [1, 246], ne = [1, 250], ue = [1, 244], oe = [1, 245], le = [1, 247], ce = [1, 249], he = [1, 251], Ne = [1, 269], Rt = [8, 9, 11, 106], $ = [8, 9, 10, 11, 60, 84, 105, 106, 109, 110, 111, 112], Je = {
702
+ trace: /* @__PURE__ */ C(function() {
703
+ }, "trace"),
704
+ yy: {},
705
+ symbols_: { error: 2, start: 3, graphConfig: 4, document: 5, line: 6, statement: 7, SEMI: 8, NEWLINE: 9, SPACE: 10, EOF: 11, GRAPH: 12, NODIR: 13, DIR: 14, FirstStmtSeparator: 15, ending: 16, endToken: 17, spaceList: 18, spaceListNewline: 19, vertexStatement: 20, separator: 21, styleStatement: 22, linkStyleStatement: 23, classDefStatement: 24, classStatement: 25, clickStatement: 26, subgraph: 27, textNoTags: 28, SQS: 29, text: 30, SQE: 31, end: 32, direction: 33, acc_title: 34, acc_title_value: 35, acc_descr: 36, acc_descr_value: 37, acc_descr_multiline_value: 38, shapeData: 39, SHAPE_DATA: 40, link: 41, node: 42, styledVertex: 43, AMP: 44, vertex: 45, STYLE_SEPARATOR: 46, idString: 47, DOUBLECIRCLESTART: 48, DOUBLECIRCLEEND: 49, PS: 50, PE: 51, "(-": 52, "-)": 53, STADIUMSTART: 54, STADIUMEND: 55, SUBROUTINESTART: 56, SUBROUTINEEND: 57, VERTEX_WITH_PROPS_START: 58, "NODE_STRING[field]": 59, COLON: 60, "NODE_STRING[value]": 61, PIPE: 62, CYLINDERSTART: 63, CYLINDEREND: 64, DIAMOND_START: 65, DIAMOND_STOP: 66, TAGEND: 67, TRAPSTART: 68, TRAPEND: 69, INVTRAPSTART: 70, INVTRAPEND: 71, linkStatement: 72, arrowText: 73, TESTSTR: 74, START_LINK: 75, edgeText: 76, LINK: 77, LINK_ID: 78, edgeTextToken: 79, STR: 80, MD_STR: 81, textToken: 82, keywords: 83, STYLE: 84, LINKSTYLE: 85, CLASSDEF: 86, CLASS: 87, CLICK: 88, DOWN: 89, UP: 90, textNoTagsToken: 91, stylesOpt: 92, "idString[vertex]": 93, "idString[class]": 94, CALLBACKNAME: 95, CALLBACKARGS: 96, HREF: 97, LINK_TARGET: 98, "STR[link]": 99, "STR[tooltip]": 100, alphaNum: 101, DEFAULT: 102, numList: 103, INTERPOLATE: 104, NUM: 105, COMMA: 106, style: 107, styleComponent: 108, NODE_STRING: 109, UNIT: 110, BRKT: 111, PCT: 112, idStringToken: 113, MINUS: 114, MULT: 115, UNICODE_TEXT: 116, TEXT: 117, TAGSTART: 118, EDGE_TEXT: 119, alphaNumToken: 120, direction_tb: 121, direction_bt: 122, direction_rl: 123, direction_lr: 124, direction_td: 125, $accept: 0, $end: 1 },
706
+ terminals_: { 2: "error", 8: "SEMI", 9: "NEWLINE", 10: "SPACE", 11: "EOF", 12: "GRAPH", 13: "NODIR", 14: "DIR", 27: "subgraph", 29: "SQS", 31: "SQE", 32: "end", 34: "acc_title", 35: "acc_title_value", 36: "acc_descr", 37: "acc_descr_value", 38: "acc_descr_multiline_value", 40: "SHAPE_DATA", 44: "AMP", 46: "STYLE_SEPARATOR", 48: "DOUBLECIRCLESTART", 49: "DOUBLECIRCLEEND", 50: "PS", 51: "PE", 52: "(-", 53: "-)", 54: "STADIUMSTART", 55: "STADIUMEND", 56: "SUBROUTINESTART", 57: "SUBROUTINEEND", 58: "VERTEX_WITH_PROPS_START", 59: "NODE_STRING[field]", 60: "COLON", 61: "NODE_STRING[value]", 62: "PIPE", 63: "CYLINDERSTART", 64: "CYLINDEREND", 65: "DIAMOND_START", 66: "DIAMOND_STOP", 67: "TAGEND", 68: "TRAPSTART", 69: "TRAPEND", 70: "INVTRAPSTART", 71: "INVTRAPEND", 74: "TESTSTR", 75: "START_LINK", 77: "LINK", 78: "LINK_ID", 80: "STR", 81: "MD_STR", 84: "STYLE", 85: "LINKSTYLE", 86: "CLASSDEF", 87: "CLASS", 88: "CLICK", 89: "DOWN", 90: "UP", 93: "idString[vertex]", 94: "idString[class]", 95: "CALLBACKNAME", 96: "CALLBACKARGS", 97: "HREF", 98: "LINK_TARGET", 99: "STR[link]", 100: "STR[tooltip]", 102: "DEFAULT", 104: "INTERPOLATE", 105: "NUM", 106: "COMMA", 109: "NODE_STRING", 110: "UNIT", 111: "BRKT", 112: "PCT", 114: "MINUS", 115: "MULT", 116: "UNICODE_TEXT", 117: "TEXT", 118: "TAGSTART", 119: "EDGE_TEXT", 121: "direction_tb", 122: "direction_bt", 123: "direction_rl", 124: "direction_lr", 125: "direction_td" },
707
+ productions_: [0, [3, 2], [5, 0], [5, 2], [6, 1], [6, 1], [6, 1], [6, 1], [6, 1], [4, 2], [4, 2], [4, 2], [4, 3], [16, 2], [16, 1], [17, 1], [17, 1], [17, 1], [15, 1], [15, 1], [15, 2], [19, 2], [19, 2], [19, 1], [19, 1], [18, 2], [18, 1], [7, 2], [7, 2], [7, 2], [7, 2], [7, 2], [7, 2], [7, 9], [7, 6], [7, 4], [7, 1], [7, 2], [7, 2], [7, 1], [21, 1], [21, 1], [21, 1], [39, 2], [39, 1], [20, 4], [20, 3], [20, 4], [20, 2], [20, 2], [20, 1], [42, 1], [42, 6], [42, 5], [43, 1], [43, 3], [45, 4], [45, 4], [45, 6], [45, 4], [45, 4], [45, 4], [45, 8], [45, 4], [45, 4], [45, 4], [45, 6], [45, 4], [45, 4], [45, 4], [45, 4], [45, 4], [45, 1], [41, 2], [41, 3], [41, 3], [41, 1], [41, 3], [41, 4], [76, 1], [76, 2], [76, 1], [76, 1], [72, 1], [72, 2], [73, 3], [30, 1], [30, 2], [30, 1], [30, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [28, 1], [28, 2], [28, 1], [28, 1], [24, 5], [25, 5], [26, 2], [26, 4], [26, 3], [26, 5], [26, 3], [26, 5], [26, 5], [26, 7], [26, 2], [26, 4], [26, 2], [26, 4], [26, 4], [26, 6], [22, 5], [23, 5], [23, 5], [23, 9], [23, 9], [23, 7], [23, 7], [103, 1], [103, 3], [92, 1], [92, 3], [107, 1], [107, 2], [108, 1], [108, 1], [108, 1], [108, 1], [108, 1], [108, 1], [108, 1], [108, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [82, 1], [82, 1], [82, 1], [82, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [79, 1], [79, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [47, 1], [47, 2], [101, 1], [101, 2], [33, 1], [33, 1], [33, 1], [33, 1], [33, 1]],
708
+ performAction: /* @__PURE__ */ C(function(d, g, A, o, L, e, Oe) {
709
+ var t = e.length - 1;
710
+ switch (L) {
711
+ case 2:
712
+ this.$ = [];
713
+ break;
714
+ case 3:
715
+ (!Array.isArray(e[t]) || e[t].length > 0) && e[t - 1].push(e[t]), this.$ = e[t - 1];
716
+ break;
717
+ case 4:
718
+ case 183:
719
+ this.$ = e[t];
720
+ break;
721
+ case 11:
722
+ o.setDirection("TB"), this.$ = "TB";
723
+ break;
724
+ case 12:
725
+ o.setDirection(e[t - 1]), this.$ = e[t - 1];
726
+ break;
727
+ case 27:
728
+ this.$ = e[t - 1].nodes;
729
+ break;
730
+ case 28:
731
+ case 29:
732
+ case 30:
733
+ case 31:
734
+ case 32:
735
+ this.$ = [];
736
+ break;
737
+ case 33:
738
+ this.$ = o.addSubGraph(e[t - 6], e[t - 1], e[t - 4]);
739
+ break;
740
+ case 34:
741
+ this.$ = o.addSubGraph(e[t - 3], e[t - 1], e[t - 3]);
742
+ break;
743
+ case 35:
744
+ this.$ = o.addSubGraph(void 0, e[t - 1], void 0);
745
+ break;
746
+ case 37:
747
+ this.$ = e[t].trim(), o.setAccTitle(this.$);
748
+ break;
749
+ case 38:
750
+ case 39:
751
+ this.$ = e[t].trim(), o.setAccDescription(this.$);
752
+ break;
753
+ case 43:
754
+ this.$ = e[t - 1] + e[t];
755
+ break;
756
+ case 44:
757
+ this.$ = e[t];
758
+ break;
759
+ case 45:
760
+ o.addVertex(e[t - 1][e[t - 1].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, e[t]), o.addLink(e[t - 3].stmt, e[t - 1], e[t - 2]), this.$ = { stmt: e[t - 1], nodes: e[t - 1].concat(e[t - 3].nodes) };
761
+ break;
762
+ case 46:
763
+ o.addLink(e[t - 2].stmt, e[t], e[t - 1]), this.$ = { stmt: e[t], nodes: e[t].concat(e[t - 2].nodes) };
764
+ break;
765
+ case 47:
766
+ o.addLink(e[t - 3].stmt, e[t - 1], e[t - 2]), this.$ = { stmt: e[t - 1], nodes: e[t - 1].concat(e[t - 3].nodes) };
767
+ break;
768
+ case 48:
769
+ this.$ = { stmt: e[t - 1], nodes: e[t - 1] };
770
+ break;
771
+ case 49:
772
+ o.addVertex(e[t - 1][e[t - 1].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, e[t]), this.$ = { stmt: e[t - 1], nodes: e[t - 1], shapeData: e[t] };
773
+ break;
774
+ case 50:
775
+ this.$ = { stmt: e[t], nodes: e[t] };
776
+ break;
777
+ case 51:
778
+ this.$ = [e[t]];
779
+ break;
780
+ case 52:
781
+ o.addVertex(e[t - 5][e[t - 5].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, e[t - 4]), this.$ = e[t - 5].concat(e[t]);
782
+ break;
783
+ case 53:
784
+ this.$ = e[t - 4].concat(e[t]);
785
+ break;
786
+ case 54:
787
+ this.$ = e[t];
788
+ break;
789
+ case 55:
790
+ this.$ = e[t - 2], o.setClass(e[t - 2], e[t]);
791
+ break;
792
+ case 56:
793
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "square");
794
+ break;
795
+ case 57:
796
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "doublecircle");
797
+ break;
798
+ case 58:
799
+ this.$ = e[t - 5], o.addVertex(e[t - 5], e[t - 2], "circle");
800
+ break;
801
+ case 59:
802
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "ellipse");
803
+ break;
804
+ case 60:
805
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "stadium");
806
+ break;
807
+ case 61:
808
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "subroutine");
809
+ break;
810
+ case 62:
811
+ this.$ = e[t - 7], o.addVertex(e[t - 7], e[t - 1], "rect", void 0, void 0, void 0, Object.fromEntries([[e[t - 5], e[t - 3]]]));
812
+ break;
813
+ case 63:
814
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "cylinder");
815
+ break;
816
+ case 64:
817
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "round");
818
+ break;
819
+ case 65:
820
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "diamond");
821
+ break;
822
+ case 66:
823
+ this.$ = e[t - 5], o.addVertex(e[t - 5], e[t - 2], "hexagon");
824
+ break;
825
+ case 67:
826
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "odd");
827
+ break;
828
+ case 68:
829
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "trapezoid");
830
+ break;
831
+ case 69:
832
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "inv_trapezoid");
833
+ break;
834
+ case 70:
835
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "lean_right");
836
+ break;
837
+ case 71:
838
+ this.$ = e[t - 3], o.addVertex(e[t - 3], e[t - 1], "lean_left");
839
+ break;
840
+ case 72:
841
+ this.$ = e[t], o.addVertex(e[t]);
842
+ break;
843
+ case 73:
844
+ e[t - 1].text = e[t], this.$ = e[t - 1];
845
+ break;
846
+ case 74:
847
+ case 75:
848
+ e[t - 2].text = e[t - 1], this.$ = e[t - 2];
849
+ break;
850
+ case 76:
851
+ this.$ = e[t];
852
+ break;
853
+ case 77:
854
+ var P = o.destructLink(e[t], e[t - 2]);
855
+ this.$ = { type: P.type, stroke: P.stroke, length: P.length, text: e[t - 1] };
856
+ break;
857
+ case 78:
858
+ var P = o.destructLink(e[t], e[t - 2]);
859
+ this.$ = { type: P.type, stroke: P.stroke, length: P.length, text: e[t - 1], id: e[t - 3] };
860
+ break;
861
+ case 79:
862
+ this.$ = { text: e[t], type: "text" };
863
+ break;
864
+ case 80:
865
+ this.$ = { text: e[t - 1].text + "" + e[t], type: e[t - 1].type };
866
+ break;
867
+ case 81:
868
+ this.$ = { text: e[t], type: "string" };
869
+ break;
870
+ case 82:
871
+ this.$ = { text: e[t], type: "markdown" };
872
+ break;
873
+ case 83:
874
+ var P = o.destructLink(e[t]);
875
+ this.$ = { type: P.type, stroke: P.stroke, length: P.length };
876
+ break;
877
+ case 84:
878
+ var P = o.destructLink(e[t]);
879
+ this.$ = { type: P.type, stroke: P.stroke, length: P.length, id: e[t - 1] };
880
+ break;
881
+ case 85:
882
+ this.$ = e[t - 1];
883
+ break;
884
+ case 86:
885
+ this.$ = { text: e[t], type: "text" };
886
+ break;
887
+ case 87:
888
+ this.$ = { text: e[t - 1].text + "" + e[t], type: e[t - 1].type };
889
+ break;
890
+ case 88:
891
+ this.$ = { text: e[t], type: "string" };
892
+ break;
893
+ case 89:
894
+ case 104:
895
+ this.$ = { text: e[t], type: "markdown" };
896
+ break;
897
+ case 101:
898
+ this.$ = { text: e[t], type: "text" };
899
+ break;
900
+ case 102:
901
+ this.$ = { text: e[t - 1].text + "" + e[t], type: e[t - 1].type };
902
+ break;
903
+ case 103:
904
+ this.$ = { text: e[t], type: "text" };
905
+ break;
906
+ case 105:
907
+ this.$ = e[t - 4], o.addClass(e[t - 2], e[t]);
908
+ break;
909
+ case 106:
910
+ this.$ = e[t - 4], o.setClass(e[t - 2], e[t]);
911
+ break;
912
+ case 107:
913
+ case 115:
914
+ this.$ = e[t - 1], o.setClickEvent(e[t - 1], e[t]);
915
+ break;
916
+ case 108:
917
+ case 116:
918
+ this.$ = e[t - 3], o.setClickEvent(e[t - 3], e[t - 2]), o.setTooltip(e[t - 3], e[t]);
919
+ break;
920
+ case 109:
921
+ this.$ = e[t - 2], o.setClickEvent(e[t - 2], e[t - 1], e[t]);
922
+ break;
923
+ case 110:
924
+ this.$ = e[t - 4], o.setClickEvent(e[t - 4], e[t - 3], e[t - 2]), o.setTooltip(e[t - 4], e[t]);
925
+ break;
926
+ case 111:
927
+ this.$ = e[t - 2], o.setLink(e[t - 2], e[t]);
928
+ break;
929
+ case 112:
930
+ this.$ = e[t - 4], o.setLink(e[t - 4], e[t - 2]), o.setTooltip(e[t - 4], e[t]);
931
+ break;
932
+ case 113:
933
+ this.$ = e[t - 4], o.setLink(e[t - 4], e[t - 2], e[t]);
934
+ break;
935
+ case 114:
936
+ this.$ = e[t - 6], o.setLink(e[t - 6], e[t - 4], e[t]), o.setTooltip(e[t - 6], e[t - 2]);
937
+ break;
938
+ case 117:
939
+ this.$ = e[t - 1], o.setLink(e[t - 1], e[t]);
940
+ break;
941
+ case 118:
942
+ this.$ = e[t - 3], o.setLink(e[t - 3], e[t - 2]), o.setTooltip(e[t - 3], e[t]);
943
+ break;
944
+ case 119:
945
+ this.$ = e[t - 3], o.setLink(e[t - 3], e[t - 2], e[t]);
946
+ break;
947
+ case 120:
948
+ this.$ = e[t - 5], o.setLink(e[t - 5], e[t - 4], e[t]), o.setTooltip(e[t - 5], e[t - 2]);
949
+ break;
950
+ case 121:
951
+ this.$ = e[t - 4], o.addVertex(e[t - 2], void 0, void 0, e[t]);
952
+ break;
953
+ case 122:
954
+ this.$ = e[t - 4], o.updateLink([e[t - 2]], e[t]);
955
+ break;
956
+ case 123:
957
+ this.$ = e[t - 4], o.updateLink(e[t - 2], e[t]);
958
+ break;
959
+ case 124:
960
+ this.$ = e[t - 8], o.updateLinkInterpolate([e[t - 6]], e[t - 2]), o.updateLink([e[t - 6]], e[t]);
961
+ break;
962
+ case 125:
963
+ this.$ = e[t - 8], o.updateLinkInterpolate(e[t - 6], e[t - 2]), o.updateLink(e[t - 6], e[t]);
964
+ break;
965
+ case 126:
966
+ this.$ = e[t - 6], o.updateLinkInterpolate([e[t - 4]], e[t]);
967
+ break;
968
+ case 127:
969
+ this.$ = e[t - 6], o.updateLinkInterpolate(e[t - 4], e[t]);
970
+ break;
971
+ case 128:
972
+ case 130:
973
+ this.$ = [e[t]];
974
+ break;
975
+ case 129:
976
+ case 131:
977
+ e[t - 2].push(e[t]), this.$ = e[t - 2];
978
+ break;
979
+ case 133:
980
+ this.$ = e[t - 1] + e[t];
981
+ break;
982
+ case 181:
983
+ this.$ = e[t];
984
+ break;
985
+ case 182:
986
+ this.$ = e[t - 1] + "" + e[t];
987
+ break;
988
+ case 184:
989
+ this.$ = e[t - 1] + "" + e[t];
990
+ break;
991
+ case 185:
992
+ this.$ = { stmt: "dir", value: "TB" };
993
+ break;
994
+ case 186:
995
+ this.$ = { stmt: "dir", value: "BT" };
996
+ break;
997
+ case 187:
998
+ this.$ = { stmt: "dir", value: "RL" };
999
+ break;
1000
+ case 188:
1001
+ this.$ = { stmt: "dir", value: "LR" };
1002
+ break;
1003
+ case 189:
1004
+ this.$ = { stmt: "dir", value: "TD" };
1005
+ break;
1006
+ }
1007
+ }, "anonymous"),
1008
+ table: [{ 3: 1, 4: 2, 9: i, 10: r, 12: a }, { 1: [3] }, s(n, l, { 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: b, 9: u, 10: m, 11: h, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: y, 33: 24, 34: B, 36: N, 38: f, 42: 28, 43: 39, 44: k, 45: 40, 47: 41, 60: x, 84: pe, 85: fe, 86: c, 87: p, 88: Y, 89: F, 102: w, 105: I, 106: R, 109: G, 111: O, 113: 42, 114: M, 115: U, 116: W, 121: Me, 122: Ue, 123: We, 124: ze, 125: je }, s(n, [2, 9]), s(n, [2, 10]), s(n, [2, 11]), { 8: [1, 55], 9: [1, 56], 10: ge, 15: 54, 18: 57 }, s(_, [2, 3]), s(_, [2, 4]), s(_, [2, 5]), s(_, [2, 6]), s(_, [2, 7]), s(_, [2, 8]), { 8: te, 9: se, 11: ie, 21: 59, 41: 60, 72: 64, 75: [1, 65], 77: [1, 67], 78: [1, 66] }, { 8: te, 9: se, 11: ie, 21: 68 }, { 8: te, 9: se, 11: ie, 21: 69 }, { 8: te, 9: se, 11: ie, 21: 70 }, { 8: te, 9: se, 11: ie, 21: 71 }, { 8: te, 9: se, 11: ie, 21: 72 }, { 8: te, 9: se, 10: [1, 73], 11: ie, 21: 74 }, s(_, [2, 36]), { 35: [1, 75] }, { 37: [1, 76] }, s(_, [2, 39]), s(Te, [2, 50], { 18: 77, 39: 78, 10: ge, 40: nt }), { 10: [1, 80] }, { 10: [1, 81] }, { 10: [1, 82] }, { 10: [1, 83] }, { 14: Se, 44: Ee, 60: ye, 80: [1, 87], 89: xe, 95: [1, 84], 97: [1, 85], 101: 86, 105: Fe, 106: _e, 109: Be, 111: ve, 114: Le, 115: Ve, 116: we, 120: 88 }, s(_, [2, 185]), s(_, [2, 186]), s(_, [2, 187]), s(_, [2, 188]), s(_, [2, 189]), s(me, [2, 51]), s(me, [2, 54], { 46: [1, 100] }), s(j, [2, 72], { 113: 113, 29: [1, 101], 44: k, 48: [1, 102], 50: [1, 103], 52: [1, 104], 54: [1, 105], 56: [1, 106], 58: [1, 107], 60: x, 63: [1, 108], 65: [1, 109], 67: [1, 110], 68: [1, 111], 70: [1, 112], 89: F, 102: w, 105: I, 106: R, 109: G, 111: O, 114: M, 115: U, 116: W }), s(X, [2, 181]), s(X, [2, 142]), s(X, [2, 143]), s(X, [2, 144]), s(X, [2, 145]), s(X, [2, 146]), s(X, [2, 147]), s(X, [2, 148]), s(X, [2, 149]), s(X, [2, 150]), s(X, [2, 151]), s(X, [2, 152]), s(n, [2, 12]), s(n, [2, 18]), s(n, [2, 19]), { 9: [1, 114] }, s(ut, [2, 26], { 18: 115, 10: ge }), s(_, [2, 27]), { 42: 116, 43: 39, 44: k, 45: 40, 47: 41, 60: x, 89: F, 102: w, 105: I, 106: R, 109: G, 111: O, 113: 42, 114: M, 115: U, 116: W }, s(_, [2, 40]), s(_, [2, 41]), s(_, [2, 42]), s(Ie, [2, 76], { 73: 117, 62: [1, 119], 74: [1, 118] }), { 76: 120, 79: 121, 80: ot, 81: lt, 116: Ke, 119: He }, { 75: [1, 126], 77: [1, 127] }, s(ct, [2, 83]), s(_, [2, 28]), s(_, [2, 29]), s(_, [2, 30]), s(_, [2, 31]), s(_, [2, 32]), { 10: ht, 12: dt, 14: pt, 27: ft, 28: 128, 32: gt, 44: bt, 60: kt, 75: At, 80: [1, 130], 81: [1, 131], 83: 141, 84: mt, 85: Ct, 86: Dt, 87: Tt, 88: St, 89: Et, 90: yt, 91: 129, 105: xt, 109: Ft, 111: _t, 114: Bt, 115: vt, 116: Lt }, s(Qe, l, { 5: 154 }), s(_, [2, 37]), s(_, [2, 38]), s(Te, [2, 48], { 44: Vt }), s(Te, [2, 49], { 18: 156, 10: ge, 40: wt }), s(me, [2, 44]), { 44: k, 47: 158, 60: x, 89: F, 102: w, 105: I, 106: R, 109: G, 111: O, 113: 42, 114: M, 115: U, 116: W }, { 102: [1, 159], 103: 160, 105: [1, 161] }, { 44: k, 47: 162, 60: x, 89: F, 102: w, 105: I, 106: R, 109: G, 111: O, 113: 42, 114: M, 115: U, 116: W }, { 44: k, 47: 163, 60: x, 89: F, 102: w, 105: I, 106: R, 109: G, 111: O, 113: 42, 114: M, 115: U, 116: W }, s(V, [2, 107], { 10: [1, 164], 96: [1, 165] }), { 80: [1, 166] }, s(V, [2, 115], { 120: 168, 10: [1, 167], 14: Se, 44: Ee, 60: ye, 89: xe, 105: Fe, 106: _e, 109: Be, 111: ve, 114: Le, 115: Ve, 116: we }), s(V, [2, 117], { 10: [1, 169] }), s(Q, [2, 183]), s(Q, [2, 170]), s(Q, [2, 171]), s(Q, [2, 172]), s(Q, [2, 173]), s(Q, [2, 174]), s(Q, [2, 175]), s(Q, [2, 176]), s(Q, [2, 177]), s(Q, [2, 178]), s(Q, [2, 179]), s(Q, [2, 180]), { 44: k, 47: 170, 60: x, 89: F, 102: w, 105: I, 106: R, 109: G, 111: O, 113: 42, 114: M, 115: U, 116: W }, { 30: 171, 67: D, 80: K, 81: H, 82: 172, 116: T, 117: S, 118: E }, { 30: 179, 67: D, 80: K, 81: H, 82: 172, 116: T, 117: S, 118: E }, { 30: 181, 50: [1, 180], 67: D, 80: K, 81: H, 82: 172, 116: T, 117: S, 118: E }, { 30: 182, 67: D, 80: K, 81: H, 82: 172, 116: T, 117: S, 118: E }, { 30: 183, 67: D, 80: K, 81: H, 82: 172, 116: T, 117: S, 118: E }, { 30: 184, 67: D, 80: K, 81: H, 82: 172, 116: T, 117: S, 118: E }, { 109: [1, 185] }, { 30: 186, 67: D, 80: K, 81: H, 82: 172, 116: T, 117: S, 118: E }, { 30: 187, 65: [1, 188], 67: D, 80: K, 81: H, 82: 172, 116: T, 117: S, 118: E }, { 30: 189, 67: D, 80: K, 81: H, 82: 172, 116: T, 117: S, 118: E }, { 30: 190, 67: D, 80: K, 81: H, 82: 172, 116: T, 117: S, 118: E }, { 30: 191, 67: D, 80: K, 81: H, 82: 172, 116: T, 117: S, 118: E }, s(X, [2, 182]), s(n, [2, 20]), s(ut, [2, 25]), s(Te, [2, 46], { 39: 192, 18: 193, 10: ge, 40: nt }), s(Ie, [2, 73], { 10: [1, 194] }), { 10: [1, 195] }, { 30: 196, 67: D, 80: K, 81: H, 82: 172, 116: T, 117: S, 118: E }, { 77: [1, 197], 79: 198, 116: Ke, 119: He }, s(Re, [2, 79]), s(Re, [2, 81]), s(Re, [2, 82]), s(Re, [2, 168]), s(Re, [2, 169]), { 76: 199, 79: 121, 80: ot, 81: lt, 116: Ke, 119: He }, s(ct, [2, 84]), { 8: te, 9: se, 10: ht, 11: ie, 12: dt, 14: pt, 21: 201, 27: ft, 29: [1, 200], 32: gt, 44: bt, 60: kt, 75: At, 83: 141, 84: mt, 85: Ct, 86: Dt, 87: Tt, 88: St, 89: Et, 90: yt, 91: 202, 105: xt, 109: Ft, 111: _t, 114: Bt, 115: vt, 116: Lt }, s(v, [2, 101]), s(v, [2, 103]), s(v, [2, 104]), s(v, [2, 157]), s(v, [2, 158]), s(v, [2, 159]), s(v, [2, 160]), s(v, [2, 161]), s(v, [2, 162]), s(v, [2, 163]), s(v, [2, 164]), s(v, [2, 165]), s(v, [2, 166]), s(v, [2, 167]), s(v, [2, 90]), s(v, [2, 91]), s(v, [2, 92]), s(v, [2, 93]), s(v, [2, 94]), s(v, [2, 95]), s(v, [2, 96]), s(v, [2, 97]), s(v, [2, 98]), s(v, [2, 99]), s(v, [2, 100]), { 6: 11, 7: 12, 8: b, 9: u, 10: m, 11: h, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: y, 32: [1, 203], 33: 24, 34: B, 36: N, 38: f, 42: 28, 43: 39, 44: k, 45: 40, 47: 41, 60: x, 84: pe, 85: fe, 86: c, 87: p, 88: Y, 89: F, 102: w, 105: I, 106: R, 109: G, 111: O, 113: 42, 114: M, 115: U, 116: W, 121: Me, 122: Ue, 123: We, 124: ze, 125: je }, { 10: ge, 18: 204 }, { 44: [1, 205] }, s(me, [2, 43]), { 10: [1, 206], 44: k, 60: x, 89: F, 102: w, 105: I, 106: R, 109: G, 111: O, 113: 113, 114: M, 115: U, 116: W }, { 10: [1, 207] }, { 10: [1, 208], 106: [1, 209] }, s(It, [2, 128]), { 10: [1, 210], 44: k, 60: x, 89: F, 102: w, 105: I, 106: R, 109: G, 111: O, 113: 113, 114: M, 115: U, 116: W }, { 10: [1, 211], 44: k, 60: x, 89: F, 102: w, 105: I, 106: R, 109: G, 111: O, 113: 113, 114: M, 115: U, 116: W }, { 80: [1, 212] }, s(V, [2, 109], { 10: [1, 213] }), s(V, [2, 111], { 10: [1, 214] }), { 80: [1, 215] }, s(Q, [2, 184]), { 80: [1, 216], 98: [1, 217] }, s(me, [2, 55], { 113: 113, 44: k, 60: x, 89: F, 102: w, 105: I, 106: R, 109: G, 111: O, 114: M, 115: U, 116: W }), { 31: [1, 218], 67: D, 82: 219, 116: T, 117: S, 118: E }, s(be, [2, 86]), s(be, [2, 88]), s(be, [2, 89]), s(be, [2, 153]), s(be, [2, 154]), s(be, [2, 155]), s(be, [2, 156]), { 49: [1, 220], 67: D, 82: 219, 116: T, 117: S, 118: E }, { 30: 221, 67: D, 80: K, 81: H, 82: 172, 116: T, 117: S, 118: E }, { 51: [1, 222], 67: D, 82: 219, 116: T, 117: S, 118: E }, { 53: [1, 223], 67: D, 82: 219, 116: T, 117: S, 118: E }, { 55: [1, 224], 67: D, 82: 219, 116: T, 117: S, 118: E }, { 57: [1, 225], 67: D, 82: 219, 116: T, 117: S, 118: E }, { 60: [1, 226] }, { 64: [1, 227], 67: D, 82: 219, 116: T, 117: S, 118: E }, { 66: [1, 228], 67: D, 82: 219, 116: T, 117: S, 118: E }, { 30: 229, 67: D, 80: K, 81: H, 82: 172, 116: T, 117: S, 118: E }, { 31: [1, 230], 67: D, 82: 219, 116: T, 117: S, 118: E }, { 67: D, 69: [1, 231], 71: [1, 232], 82: 219, 116: T, 117: S, 118: E }, { 67: D, 69: [1, 234], 71: [1, 233], 82: 219, 116: T, 117: S, 118: E }, s(Te, [2, 45], { 18: 156, 10: ge, 40: wt }), s(Te, [2, 47], { 44: Vt }), s(Ie, [2, 75]), s(Ie, [2, 74]), { 62: [1, 235], 67: D, 82: 219, 116: T, 117: S, 118: E }, s(Ie, [2, 77]), s(Re, [2, 80]), { 77: [1, 236], 79: 198, 116: Ke, 119: He }, { 30: 237, 67: D, 80: K, 81: H, 82: 172, 116: T, 117: S, 118: E }, s(Qe, l, { 5: 238 }), s(v, [2, 102]), s(_, [2, 35]), { 43: 239, 44: k, 45: 40, 47: 41, 60: x, 89: F, 102: w, 105: I, 106: R, 109: G, 111: O, 113: 42, 114: M, 115: U, 116: W }, { 10: ge, 18: 240 }, { 10: re, 60: ae, 84: ne, 92: 241, 105: ue, 107: 242, 108: 243, 109: oe, 110: le, 111: ce, 112: he }, { 10: re, 60: ae, 84: ne, 92: 252, 104: [1, 253], 105: ue, 107: 242, 108: 243, 109: oe, 110: le, 111: ce, 112: he }, { 10: re, 60: ae, 84: ne, 92: 254, 104: [1, 255], 105: ue, 107: 242, 108: 243, 109: oe, 110: le, 111: ce, 112: he }, { 105: [1, 256] }, { 10: re, 60: ae, 84: ne, 92: 257, 105: ue, 107: 242, 108: 243, 109: oe, 110: le, 111: ce, 112: he }, { 44: k, 47: 258, 60: x, 89: F, 102: w, 105: I, 106: R, 109: G, 111: O, 113: 42, 114: M, 115: U, 116: W }, s(V, [2, 108]), { 80: [1, 259] }, { 80: [1, 260], 98: [1, 261] }, s(V, [2, 116]), s(V, [2, 118], { 10: [1, 262] }), s(V, [2, 119]), s(j, [2, 56]), s(be, [2, 87]), s(j, [2, 57]), { 51: [1, 263], 67: D, 82: 219, 116: T, 117: S, 118: E }, s(j, [2, 64]), s(j, [2, 59]), s(j, [2, 60]), s(j, [2, 61]), { 109: [1, 264] }, s(j, [2, 63]), s(j, [2, 65]), { 66: [1, 265], 67: D, 82: 219, 116: T, 117: S, 118: E }, s(j, [2, 67]), s(j, [2, 68]), s(j, [2, 70]), s(j, [2, 69]), s(j, [2, 71]), s([10, 44, 60, 89, 102, 105, 106, 109, 111, 114, 115, 116], [2, 85]), s(Ie, [2, 78]), { 31: [1, 266], 67: D, 82: 219, 116: T, 117: S, 118: E }, { 6: 11, 7: 12, 8: b, 9: u, 10: m, 11: h, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: y, 32: [1, 267], 33: 24, 34: B, 36: N, 38: f, 42: 28, 43: 39, 44: k, 45: 40, 47: 41, 60: x, 84: pe, 85: fe, 86: c, 87: p, 88: Y, 89: F, 102: w, 105: I, 106: R, 109: G, 111: O, 113: 42, 114: M, 115: U, 116: W, 121: Me, 122: Ue, 123: We, 124: ze, 125: je }, s(me, [2, 53]), { 43: 268, 44: k, 45: 40, 47: 41, 60: x, 89: F, 102: w, 105: I, 106: R, 109: G, 111: O, 113: 42, 114: M, 115: U, 116: W }, s(V, [2, 121], { 106: Ne }), s(Rt, [2, 130], { 108: 270, 10: re, 60: ae, 84: ne, 105: ue, 109: oe, 110: le, 111: ce, 112: he }), s($, [2, 132]), s($, [2, 134]), s($, [2, 135]), s($, [2, 136]), s($, [2, 137]), s($, [2, 138]), s($, [2, 139]), s($, [2, 140]), s($, [2, 141]), s(V, [2, 122], { 106: Ne }), { 10: [1, 271] }, s(V, [2, 123], { 106: Ne }), { 10: [1, 272] }, s(It, [2, 129]), s(V, [2, 105], { 106: Ne }), s(V, [2, 106], { 113: 113, 44: k, 60: x, 89: F, 102: w, 105: I, 106: R, 109: G, 111: O, 114: M, 115: U, 116: W }), s(V, [2, 110]), s(V, [2, 112], { 10: [1, 273] }), s(V, [2, 113]), { 98: [1, 274] }, { 51: [1, 275] }, { 62: [1, 276] }, { 66: [1, 277] }, { 8: te, 9: se, 11: ie, 21: 278 }, s(_, [2, 34]), s(me, [2, 52]), { 10: re, 60: ae, 84: ne, 105: ue, 107: 279, 108: 243, 109: oe, 110: le, 111: ce, 112: he }, s($, [2, 133]), { 14: Se, 44: Ee, 60: ye, 89: xe, 101: 280, 105: Fe, 106: _e, 109: Be, 111: ve, 114: Le, 115: Ve, 116: we, 120: 88 }, { 14: Se, 44: Ee, 60: ye, 89: xe, 101: 281, 105: Fe, 106: _e, 109: Be, 111: ve, 114: Le, 115: Ve, 116: we, 120: 88 }, { 98: [1, 282] }, s(V, [2, 120]), s(j, [2, 58]), { 30: 283, 67: D, 80: K, 81: H, 82: 172, 116: T, 117: S, 118: E }, s(j, [2, 66]), s(Qe, l, { 5: 284 }), s(Rt, [2, 131], { 108: 270, 10: re, 60: ae, 84: ne, 105: ue, 109: oe, 110: le, 111: ce, 112: he }), s(V, [2, 126], { 120: 168, 10: [1, 285], 14: Se, 44: Ee, 60: ye, 89: xe, 105: Fe, 106: _e, 109: Be, 111: ve, 114: Le, 115: Ve, 116: we }), s(V, [2, 127], { 120: 168, 10: [1, 286], 14: Se, 44: Ee, 60: ye, 89: xe, 105: Fe, 106: _e, 109: Be, 111: ve, 114: Le, 115: Ve, 116: we }), s(V, [2, 114]), { 31: [1, 287], 67: D, 82: 219, 116: T, 117: S, 118: E }, { 6: 11, 7: 12, 8: b, 9: u, 10: m, 11: h, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: y, 32: [1, 288], 33: 24, 34: B, 36: N, 38: f, 42: 28, 43: 39, 44: k, 45: 40, 47: 41, 60: x, 84: pe, 85: fe, 86: c, 87: p, 88: Y, 89: F, 102: w, 105: I, 106: R, 109: G, 111: O, 113: 42, 114: M, 115: U, 116: W, 121: Me, 122: Ue, 123: We, 124: ze, 125: je }, { 10: re, 60: ae, 84: ne, 92: 289, 105: ue, 107: 242, 108: 243, 109: oe, 110: le, 111: ce, 112: he }, { 10: re, 60: ae, 84: ne, 92: 290, 105: ue, 107: 242, 108: 243, 109: oe, 110: le, 111: ce, 112: he }, s(j, [2, 62]), s(_, [2, 33]), s(V, [2, 124], { 106: Ne }), s(V, [2, 125], { 106: Ne })],
1009
+ defaultActions: {},
1010
+ parseError: /* @__PURE__ */ C(function(d, g) {
1011
+ if (g.recoverable)
1012
+ this.trace(d);
1013
+ else {
1014
+ var A = new Error(d);
1015
+ throw A.hash = g, A;
1016
+ }
1017
+ }, "parseError"),
1018
+ parse: /* @__PURE__ */ C(function(d) {
1019
+ var g = this, A = [0], o = [], L = [null], e = [], Oe = this.table, t = "", P = 0, Nt = 0, jt = 2, Gt = 1, Kt = e.slice.call(arguments, 1), z = Object.create(this.lexer), Ce = { yy: {} };
1020
+ for (var Ze in this.yy)
1021
+ Object.prototype.hasOwnProperty.call(this.yy, Ze) && (Ce.yy[Ze] = this.yy[Ze]);
1022
+ z.setInput(d, Ce.yy), Ce.yy.lexer = z, Ce.yy.parser = this, typeof z.yylloc > "u" && (z.yylloc = {});
1023
+ var $e = z.yylloc;
1024
+ e.push($e);
1025
+ var Ht = z.options && z.options.ranges;
1026
+ typeof Ce.yy.parseError == "function" ? this.parseError = Ce.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1027
+ function Yt(J) {
1028
+ A.length = A.length - 2 * J, L.length = L.length - J, e.length = e.length - J;
1029
+ }
1030
+ C(Yt, "popStack");
1031
+ function Pt() {
1032
+ var J;
1033
+ return J = o.pop() || z.lex() || Gt, typeof J != "number" && (J instanceof Array && (o = J, J = o.pop()), J = g.symbols_[J] || J), J;
1034
+ }
1035
+ C(Pt, "lex");
1036
+ for (var q, De, Z, et, Ge = {}, qe, de, Ot, Xe; ; ) {
1037
+ if (De = A[A.length - 1], this.defaultActions[De] ? Z = this.defaultActions[De] : ((q === null || typeof q > "u") && (q = Pt()), Z = Oe[De] && Oe[De][q]), typeof Z > "u" || !Z.length || !Z[0]) {
1038
+ var tt = "";
1039
+ Xe = [];
1040
+ for (qe in Oe[De])
1041
+ this.terminals_[qe] && qe > jt && Xe.push("'" + this.terminals_[qe] + "'");
1042
+ z.showPosition ? tt = "Parse error on line " + (P + 1) + `:
1043
+ ` + z.showPosition() + `
1044
+ Expecting ` + Xe.join(", ") + ", got '" + (this.terminals_[q] || q) + "'" : tt = "Parse error on line " + (P + 1) + ": Unexpected " + (q == Gt ? "end of input" : "'" + (this.terminals_[q] || q) + "'"), this.parseError(tt, {
1045
+ text: z.match,
1046
+ token: this.terminals_[q] || q,
1047
+ line: z.yylineno,
1048
+ loc: $e,
1049
+ expected: Xe
1050
+ });
1051
+ }
1052
+ if (Z[0] instanceof Array && Z.length > 1)
1053
+ throw new Error("Parse Error: multiple actions possible at state: " + De + ", token: " + q);
1054
+ switch (Z[0]) {
1055
+ case 1:
1056
+ A.push(q), L.push(z.yytext), e.push(z.yylloc), A.push(Z[1]), q = null, Nt = z.yyleng, t = z.yytext, P = z.yylineno, $e = z.yylloc;
1057
+ break;
1058
+ case 2:
1059
+ if (de = this.productions_[Z[1]][1], Ge.$ = L[L.length - de], Ge._$ = {
1060
+ first_line: e[e.length - (de || 1)].first_line,
1061
+ last_line: e[e.length - 1].last_line,
1062
+ first_column: e[e.length - (de || 1)].first_column,
1063
+ last_column: e[e.length - 1].last_column
1064
+ }, Ht && (Ge._$.range = [
1065
+ e[e.length - (de || 1)].range[0],
1066
+ e[e.length - 1].range[1]
1067
+ ]), et = this.performAction.apply(Ge, [
1068
+ t,
1069
+ Nt,
1070
+ P,
1071
+ Ce.yy,
1072
+ Z[1],
1073
+ L,
1074
+ e
1075
+ ].concat(Kt)), typeof et < "u")
1076
+ return et;
1077
+ de && (A = A.slice(0, -1 * de * 2), L = L.slice(0, -1 * de), e = e.slice(0, -1 * de)), A.push(this.productions_[Z[1]][0]), L.push(Ge.$), e.push(Ge._$), Ot = Oe[A[A.length - 2]][A[A.length - 1]], A.push(Ot);
1078
+ break;
1079
+ case 3:
1080
+ return !0;
1081
+ }
1082
+ }
1083
+ return !0;
1084
+ }, "parse")
1085
+ }, zt = /* @__PURE__ */ (function() {
1086
+ var ke = {
1087
+ EOF: 1,
1088
+ parseError: /* @__PURE__ */ C(function(g, A) {
1089
+ if (this.yy.parser)
1090
+ this.yy.parser.parseError(g, A);
1091
+ else
1092
+ throw new Error(g);
1093
+ }, "parseError"),
1094
+ // resets the lexer, sets new input
1095
+ setInput: /* @__PURE__ */ C(function(d, g) {
1096
+ return this.yy = g || this.yy || {}, this._input = d, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1097
+ first_line: 1,
1098
+ first_column: 0,
1099
+ last_line: 1,
1100
+ last_column: 0
1101
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1102
+ }, "setInput"),
1103
+ // consumes and returns one char from the input
1104
+ input: /* @__PURE__ */ C(function() {
1105
+ var d = this._input[0];
1106
+ this.yytext += d, this.yyleng++, this.offset++, this.match += d, this.matched += d;
1107
+ var g = d.match(/(?:\r\n?|\n).*/g);
1108
+ return g ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), d;
1109
+ }, "input"),
1110
+ // unshifts one char (or a string) into the input
1111
+ unput: /* @__PURE__ */ C(function(d) {
1112
+ var g = d.length, A = d.split(/(?:\r\n?|\n)/g);
1113
+ this._input = d + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - g), this.offset -= g;
1114
+ var o = this.match.split(/(?:\r\n?|\n)/g);
1115
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), A.length - 1 && (this.yylineno -= A.length - 1);
1116
+ var L = this.yylloc.range;
1117
+ return this.yylloc = {
1118
+ first_line: this.yylloc.first_line,
1119
+ last_line: this.yylineno + 1,
1120
+ first_column: this.yylloc.first_column,
1121
+ last_column: A ? (A.length === o.length ? this.yylloc.first_column : 0) + o[o.length - A.length].length - A[0].length : this.yylloc.first_column - g
1122
+ }, this.options.ranges && (this.yylloc.range = [L[0], L[0] + this.yyleng - g]), this.yyleng = this.yytext.length, this;
1123
+ }, "unput"),
1124
+ // When called from action, caches matched text and appends it on next action
1125
+ more: /* @__PURE__ */ C(function() {
1126
+ return this._more = !0, this;
1127
+ }, "more"),
1128
+ // 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.
1129
+ reject: /* @__PURE__ */ C(function() {
1130
+ if (this.options.backtrack_lexer)
1131
+ this._backtrack = !0;
1132
+ else
1133
+ 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).
1134
+ ` + this.showPosition(), {
1135
+ text: "",
1136
+ token: null,
1137
+ line: this.yylineno
1138
+ });
1139
+ return this;
1140
+ }, "reject"),
1141
+ // retain first n characters of the match
1142
+ less: /* @__PURE__ */ C(function(d) {
1143
+ this.unput(this.match.slice(d));
1144
+ }, "less"),
1145
+ // displays already matched input, i.e. for error messages
1146
+ pastInput: /* @__PURE__ */ C(function() {
1147
+ var d = this.matched.substr(0, this.matched.length - this.match.length);
1148
+ return (d.length > 20 ? "..." : "") + d.substr(-20).replace(/\n/g, "");
1149
+ }, "pastInput"),
1150
+ // displays upcoming input, i.e. for error messages
1151
+ upcomingInput: /* @__PURE__ */ C(function() {
1152
+ var d = this.match;
1153
+ return d.length < 20 && (d += this._input.substr(0, 20 - d.length)), (d.substr(0, 20) + (d.length > 20 ? "..." : "")).replace(/\n/g, "");
1154
+ }, "upcomingInput"),
1155
+ // displays the character position where the lexing error occurred, i.e. for error messages
1156
+ showPosition: /* @__PURE__ */ C(function() {
1157
+ var d = this.pastInput(), g = new Array(d.length + 1).join("-");
1158
+ return d + this.upcomingInput() + `
1159
+ ` + g + "^";
1160
+ }, "showPosition"),
1161
+ // test the lexed token: return FALSE when not a match, otherwise return token
1162
+ test_match: /* @__PURE__ */ C(function(d, g) {
1163
+ var A, o, L;
1164
+ if (this.options.backtrack_lexer && (L = {
1165
+ yylineno: this.yylineno,
1166
+ yylloc: {
1167
+ first_line: this.yylloc.first_line,
1168
+ last_line: this.last_line,
1169
+ first_column: this.yylloc.first_column,
1170
+ last_column: this.yylloc.last_column
1171
+ },
1172
+ yytext: this.yytext,
1173
+ match: this.match,
1174
+ matches: this.matches,
1175
+ matched: this.matched,
1176
+ yyleng: this.yyleng,
1177
+ offset: this.offset,
1178
+ _more: this._more,
1179
+ _input: this._input,
1180
+ yy: this.yy,
1181
+ conditionStack: this.conditionStack.slice(0),
1182
+ done: this.done
1183
+ }, this.options.ranges && (L.yylloc.range = this.yylloc.range.slice(0))), o = d[0].match(/(?:\r\n?|\n).*/g), o && (this.yylineno += o.length), this.yylloc = {
1184
+ first_line: this.yylloc.last_line,
1185
+ last_line: this.yylineno + 1,
1186
+ first_column: this.yylloc.last_column,
1187
+ last_column: o ? o[o.length - 1].length - o[o.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + d[0].length
1188
+ }, this.yytext += d[0], this.match += d[0], this.matches = d, 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(d[0].length), this.matched += d[0], A = this.performAction.call(this, this.yy, this, g, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), A)
1189
+ return A;
1190
+ if (this._backtrack) {
1191
+ for (var e in L)
1192
+ this[e] = L[e];
1193
+ return !1;
1194
+ }
1195
+ return !1;
1196
+ }, "test_match"),
1197
+ // return next match in input
1198
+ next: /* @__PURE__ */ C(function() {
1199
+ if (this.done)
1200
+ return this.EOF;
1201
+ this._input || (this.done = !0);
1202
+ var d, g, A, o;
1203
+ this._more || (this.yytext = "", this.match = "");
1204
+ for (var L = this._currentRules(), e = 0; e < L.length; e++)
1205
+ if (A = this._input.match(this.rules[L[e]]), A && (!g || A[0].length > g[0].length)) {
1206
+ if (g = A, o = e, this.options.backtrack_lexer) {
1207
+ if (d = this.test_match(A, L[e]), d !== !1)
1208
+ return d;
1209
+ if (this._backtrack) {
1210
+ g = !1;
1211
+ continue;
1212
+ } else
1213
+ return !1;
1214
+ } else if (!this.options.flex)
1215
+ break;
1216
+ }
1217
+ return g ? (d = this.test_match(g, L[o]), d !== !1 ? d : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
1218
+ ` + this.showPosition(), {
1219
+ text: "",
1220
+ token: null,
1221
+ line: this.yylineno
1222
+ });
1223
+ }, "next"),
1224
+ // return next match that has a token
1225
+ lex: /* @__PURE__ */ C(function() {
1226
+ var g = this.next();
1227
+ return g || this.lex();
1228
+ }, "lex"),
1229
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
1230
+ begin: /* @__PURE__ */ C(function(g) {
1231
+ this.conditionStack.push(g);
1232
+ }, "begin"),
1233
+ // pop the previously active lexer condition state off the condition stack
1234
+ popState: /* @__PURE__ */ C(function() {
1235
+ var g = this.conditionStack.length - 1;
1236
+ return g > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1237
+ }, "popState"),
1238
+ // produce the lexer rule set which is active for the currently active lexer condition state
1239
+ _currentRules: /* @__PURE__ */ C(function() {
1240
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1241
+ }, "_currentRules"),
1242
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
1243
+ topState: /* @__PURE__ */ C(function(g) {
1244
+ return g = this.conditionStack.length - 1 - Math.abs(g || 0), g >= 0 ? this.conditionStack[g] : "INITIAL";
1245
+ }, "topState"),
1246
+ // alias for begin(condition)
1247
+ pushState: /* @__PURE__ */ C(function(g) {
1248
+ this.begin(g);
1249
+ }, "pushState"),
1250
+ // return the number of states currently on the stack
1251
+ stateStackSize: /* @__PURE__ */ C(function() {
1252
+ return this.conditionStack.length;
1253
+ }, "stateStackSize"),
1254
+ options: {},
1255
+ performAction: /* @__PURE__ */ C(function(g, A, o, L) {
1256
+ switch (o) {
1257
+ case 0:
1258
+ return this.begin("acc_title"), 34;
1259
+ case 1:
1260
+ return this.popState(), "acc_title_value";
1261
+ case 2:
1262
+ return this.begin("acc_descr"), 36;
1263
+ case 3:
1264
+ return this.popState(), "acc_descr_value";
1265
+ case 4:
1266
+ this.begin("acc_descr_multiline");
1267
+ break;
1268
+ case 5:
1269
+ this.popState();
1270
+ break;
1271
+ case 6:
1272
+ return "acc_descr_multiline_value";
1273
+ case 7:
1274
+ return this.pushState("shapeData"), A.yytext = "", 40;
1275
+ case 8:
1276
+ return this.pushState("shapeDataStr"), 40;
1277
+ case 9:
1278
+ return this.popState(), 40;
1279
+ case 10:
1280
+ const e = /\n\s*/g;
1281
+ return A.yytext = A.yytext.replace(e, "<br/>"), 40;
1282
+ case 11:
1283
+ return 40;
1284
+ case 12:
1285
+ this.popState();
1286
+ break;
1287
+ case 13:
1288
+ this.begin("callbackname");
1289
+ break;
1290
+ case 14:
1291
+ this.popState();
1292
+ break;
1293
+ case 15:
1294
+ this.popState(), this.begin("callbackargs");
1295
+ break;
1296
+ case 16:
1297
+ return 95;
1298
+ case 17:
1299
+ this.popState();
1300
+ break;
1301
+ case 18:
1302
+ return 96;
1303
+ case 19:
1304
+ return "MD_STR";
1305
+ case 20:
1306
+ this.popState();
1307
+ break;
1308
+ case 21:
1309
+ this.begin("md_string");
1310
+ break;
1311
+ case 22:
1312
+ return "STR";
1313
+ case 23:
1314
+ this.popState();
1315
+ break;
1316
+ case 24:
1317
+ this.pushState("string");
1318
+ break;
1319
+ case 25:
1320
+ return 84;
1321
+ case 26:
1322
+ return 102;
1323
+ case 27:
1324
+ return 85;
1325
+ case 28:
1326
+ return 104;
1327
+ case 29:
1328
+ return 86;
1329
+ case 30:
1330
+ return 87;
1331
+ case 31:
1332
+ return 97;
1333
+ case 32:
1334
+ this.begin("click");
1335
+ break;
1336
+ case 33:
1337
+ this.popState();
1338
+ break;
1339
+ case 34:
1340
+ return 88;
1341
+ case 35:
1342
+ return g.lex.firstGraph() && this.begin("dir"), 12;
1343
+ case 36:
1344
+ return g.lex.firstGraph() && this.begin("dir"), 12;
1345
+ case 37:
1346
+ return g.lex.firstGraph() && this.begin("dir"), 12;
1347
+ case 38:
1348
+ return g.lex.firstGraph() && this.begin("dir"), 12;
1349
+ case 39:
1350
+ return 27;
1351
+ case 40:
1352
+ return 32;
1353
+ case 41:
1354
+ return 98;
1355
+ case 42:
1356
+ return 98;
1357
+ case 43:
1358
+ return 98;
1359
+ case 44:
1360
+ return 98;
1361
+ case 45:
1362
+ return this.popState(), 13;
1363
+ case 46:
1364
+ return this.popState(), 14;
1365
+ case 47:
1366
+ return this.popState(), 14;
1367
+ case 48:
1368
+ return this.popState(), 14;
1369
+ case 49:
1370
+ return this.popState(), 14;
1371
+ case 50:
1372
+ return this.popState(), 14;
1373
+ case 51:
1374
+ return this.popState(), 14;
1375
+ case 52:
1376
+ return this.popState(), 14;
1377
+ case 53:
1378
+ return this.popState(), 14;
1379
+ case 54:
1380
+ return this.popState(), 14;
1381
+ case 55:
1382
+ return this.popState(), 14;
1383
+ case 56:
1384
+ return 121;
1385
+ case 57:
1386
+ return 122;
1387
+ case 58:
1388
+ return 123;
1389
+ case 59:
1390
+ return 124;
1391
+ case 60:
1392
+ return 125;
1393
+ case 61:
1394
+ return 78;
1395
+ case 62:
1396
+ return 105;
1397
+ case 63:
1398
+ return 111;
1399
+ case 64:
1400
+ return 46;
1401
+ case 65:
1402
+ return 60;
1403
+ case 66:
1404
+ return 44;
1405
+ case 67:
1406
+ return 8;
1407
+ case 68:
1408
+ return 106;
1409
+ case 69:
1410
+ return 115;
1411
+ case 70:
1412
+ return this.popState(), 77;
1413
+ case 71:
1414
+ return this.pushState("edgeText"), 75;
1415
+ case 72:
1416
+ return 119;
1417
+ case 73:
1418
+ return this.popState(), 77;
1419
+ case 74:
1420
+ return this.pushState("thickEdgeText"), 75;
1421
+ case 75:
1422
+ return 119;
1423
+ case 76:
1424
+ return this.popState(), 77;
1425
+ case 77:
1426
+ return this.pushState("dottedEdgeText"), 75;
1427
+ case 78:
1428
+ return 119;
1429
+ case 79:
1430
+ return 77;
1431
+ case 80:
1432
+ return this.popState(), 53;
1433
+ case 81:
1434
+ return "TEXT";
1435
+ case 82:
1436
+ return this.pushState("ellipseText"), 52;
1437
+ case 83:
1438
+ return this.popState(), 55;
1439
+ case 84:
1440
+ return this.pushState("text"), 54;
1441
+ case 85:
1442
+ return this.popState(), 57;
1443
+ case 86:
1444
+ return this.pushState("text"), 56;
1445
+ case 87:
1446
+ return 58;
1447
+ case 88:
1448
+ return this.pushState("text"), 67;
1449
+ case 89:
1450
+ return this.popState(), 64;
1451
+ case 90:
1452
+ return this.pushState("text"), 63;
1453
+ case 91:
1454
+ return this.popState(), 49;
1455
+ case 92:
1456
+ return this.pushState("text"), 48;
1457
+ case 93:
1458
+ return this.popState(), 69;
1459
+ case 94:
1460
+ return this.popState(), 71;
1461
+ case 95:
1462
+ return 117;
1463
+ case 96:
1464
+ return this.pushState("trapText"), 68;
1465
+ case 97:
1466
+ return this.pushState("trapText"), 70;
1467
+ case 98:
1468
+ return 118;
1469
+ case 99:
1470
+ return 67;
1471
+ case 100:
1472
+ return 90;
1473
+ case 101:
1474
+ return "SEP";
1475
+ case 102:
1476
+ return 89;
1477
+ case 103:
1478
+ return 115;
1479
+ case 104:
1480
+ return 111;
1481
+ case 105:
1482
+ return 44;
1483
+ case 106:
1484
+ return 109;
1485
+ case 107:
1486
+ return 114;
1487
+ case 108:
1488
+ return 116;
1489
+ case 109:
1490
+ return this.popState(), 62;
1491
+ case 110:
1492
+ return this.pushState("text"), 62;
1493
+ case 111:
1494
+ return this.popState(), 51;
1495
+ case 112:
1496
+ return this.pushState("text"), 50;
1497
+ case 113:
1498
+ return this.popState(), 31;
1499
+ case 114:
1500
+ return this.pushState("text"), 29;
1501
+ case 115:
1502
+ return this.popState(), 66;
1503
+ case 116:
1504
+ return this.pushState("text"), 65;
1505
+ case 117:
1506
+ return "TEXT";
1507
+ case 118:
1508
+ return "QUOTE";
1509
+ case 119:
1510
+ return 9;
1511
+ case 120:
1512
+ return 10;
1513
+ case 121:
1514
+ return 11;
1515
+ }
1516
+ }, "anonymous"),
1517
+ 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)/, /^(?:swimlane-beta\b)/, /^(?:graph\b)/, /^(?:flowchart\b)/, /^(?:subgraph\b)/, /^(?:end\b\s*)/, /^(?:_self\b)/, /^(?:_blank\b)/, /^(?:_parent\b)/, /^(?:_top\b)/, /^(?:(\r?\n)*\s*\n)/, /^(?:\s*LR\b)/, /^(?:\s*RL\b)/, /^(?:\s*TB\b)/, /^(?:\s*BT\b)/, /^(?:\s*TD\b)/, /^(?:\s*BR\b)/, /^(?:\s*<)/, /^(?:\s*>)/, /^(?:\s*\^)/, /^(?:\s*v\b)/, /^(?:.*direction\s+TB[^\n]*)/, /^(?:.*direction\s+BT[^\n]*)/, /^(?:.*direction\s+RL[^\n]*)/, /^(?:.*direction\s+LR[^\n]*)/, /^(?:.*direction\s+TD[^\n]*)/, /^(?:[^\s\"]+@(?=[^\{\"]))/, /^(?:[0-9]+)/, /^(?:#)/, /^(?::::)/, /^(?::)/, /^(?:&)/, /^(?:;)/, /^(?:,)/, /^(?:\*)/, /^(?:\s*[xo<]?--+[-xo>]\s*)/, /^(?:\s*[xo<]?--\s*)/, /^(?:[^-]|-(?!-)+)/, /^(?:\s*[xo<]?==+[=xo>]\s*)/, /^(?:\s*[xo<]?==\s*)/, /^(?:[^=]|=(?!))/, /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/, /^(?:\s*[xo<]?-\.\s*)/, /^(?:[^\.]|\.(?!))/, /^(?:\s*~~[\~]+\s*)/, /^(?:[-/\)][\)])/, /^(?:[^\(\)\[\]\{\}]|!\)+)/, /^(?:\(-)/, /^(?:\]\))/, /^(?:\(\[)/, /^(?:\]\])/, /^(?:\[\[)/, /^(?:\[\|)/, /^(?:>)/, /^(?:\)\])/, /^(?:\[\()/, /^(?:\)\)\))/, /^(?:\(\(\()/, /^(?:[\\(?=\])][\]])/, /^(?:\/(?=\])\])/, /^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/, /^(?:\[\/)/, /^(?:\[\\)/, /^(?:<)/, /^(?:>)/, /^(?:\^)/, /^(?:\\\|)/, /^(?:v\b)/, /^(?:\*)/, /^(?:#)/, /^(?:&)/, /^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/, /^(?:-)/, /^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/, /^(?:\|)/, /^(?:\|)/, /^(?:\))/, /^(?:\()/, /^(?:\])/, /^(?:\[)/, /^(?:(\}))/, /^(?:\{)/, /^(?:[^\[\]\(\)\{\}\|\"]+)/, /^(?:")/, /^(?:(\r?\n)+)/, /^(?:[^\S\n\r]+)/, /^(?:$)/],
1518
+ conditions: { shapeDataEndBracket: { rules: [21, 24, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, shapeDataStr: { rules: [9, 10, 21, 24, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, shapeData: { rules: [8, 11, 12, 21, 24, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, callbackargs: { rules: [17, 18, 21, 24, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, callbackname: { rules: [14, 15, 16, 21, 24, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, href: { rules: [21, 24, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, click: { rules: [21, 24, 33, 34, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, dottedEdgeText: { rules: [21, 24, 76, 78, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, thickEdgeText: { rules: [21, 24, 73, 75, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, edgeText: { rules: [21, 24, 70, 72, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, trapText: { rules: [21, 24, 79, 82, 84, 86, 90, 92, 93, 94, 95, 96, 97, 110, 112, 114, 116], inclusive: !1 }, ellipseText: { rules: [21, 24, 79, 80, 81, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, text: { rules: [21, 24, 79, 82, 83, 84, 85, 86, 89, 90, 91, 92, 96, 97, 109, 110, 111, 112, 113, 114, 115, 116, 117], inclusive: !1 }, vertex: { rules: [21, 24, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, dir: { rules: [21, 24, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, acc_descr_multiline: { rules: [5, 6, 21, 24, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, acc_descr: { rules: [3, 21, 24, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, acc_title: { rules: [1, 21, 24, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, md_string: { rules: [19, 20, 21, 24, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], inclusive: !1 }, string: { rules: [21, 22, 23, 24, 79, 82, 84, 86, 90, 92, 96, 97, 110, 112, 114, 116], 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, 44, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 73, 74, 76, 77, 79, 82, 84, 86, 87, 88, 90, 92, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 110, 112, 114, 116, 118, 119, 120, 121], inclusive: !0 } }
1519
+ };
1520
+ return ke;
1521
+ })();
1522
+ Je.lexer = zt;
1523
+ function Ye() {
1524
+ this.yy = {};
1525
+ }
1526
+ return C(Ye, "Parser"), Ye.prototype = Je, Je.Parser = Ye, new Ye();
1527
+ })();
1528
+ at.parser = at;
1529
+ var Mt = at, Ut = Object.assign({}, Mt);
1530
+ Ut.parse = (s) => {
1531
+ const i = s.replace(/}\s*\n/g, `}
1532
+ `);
1533
+ return Mt.parse(i);
1534
+ };
1535
+ var y1 = Ut, x1 = /* @__PURE__ */ C((s) => {
1536
+ const { theme: i, bkgColorArray: r, borderColorArray: a } = s;
1537
+ if (!p1(i, a))
1538
+ return "";
1539
+ const n = f1(s.look), l = g1(r);
1540
+ let b = "";
1541
+ for (let u = 0; u < b1(s.THEME_COLOR_LIMIT, a); u++) {
1542
+ const m = a[u % a.length], h = l ? `fill: ${r[u % r.length]};` : "", y = `[data-look="${n}"][data-color-id="color-${u}"]`, B = /* @__PURE__ */ C((f) => `${y}.node ${f}, ${y}.rough-node ${f}`, "collapsedRule"), N = /* @__PURE__ */ C((f) => `${y}.swimlane.cluster .swimlane-title${f}, ${y}.swimlane.cluster .swimlane-body${f}`, "laneRule");
1543
+ b += `
1544
+
1545
+ ${y}.cluster:not(.swimlane) rect {
1546
+ stroke: ${m};
1547
+ ${h}
1548
+ }
1549
+
1550
+ ${y}.cluster:not(.swimlane) path {
1551
+ stroke: ${m};
1552
+ ${h}
1553
+ }
1554
+
1555
+ /* Lane, classic and neo. */
1556
+ ${y}.swimlane.cluster rect.swimlane-title,
1557
+ ${y}.swimlane.cluster rect.swimlane-body {
1558
+ stroke: ${m};
1559
+ ${h}
1560
+ }
1561
+
1562
+ /* Lane, handDrawn: roughjs emits the hachure fill first, then the outline. */
1563
+ ${N(" path:nth-of-type(2)")} {
1564
+ stroke: ${m};
1565
+ }
1566
+ ${l ? `
1567
+ /* A roughjs fill is drawn as lines, so the lane fill is a stroke here. */
1568
+ ${N(" path:first-of-type")} {
1569
+ stroke: ${r[u % r.length]};
1570
+ }
1571
+ ` : ""}
1572
+ ${B(".collapsed-group")},
1573
+ ${B(".collapsed-group path")} {
1574
+ stroke: ${m};
1575
+ ${h}
1576
+ }
1577
+
1578
+ /* The ellipsis dots and the separator take clusterBorder further down, so without
1579
+ these the container is palette-coloured while its own markers are not. */
1580
+ ${B(".collapsed-indicator")} {
1581
+ fill: ${m};
1582
+ }
1583
+
1584
+ ${B(".collapsed-separator")} {
1585
+ stroke: ${m};
1586
+ }
1587
+ `;
1588
+ }
1589
+ return b;
1590
+ }, "genColor"), F1 = /* @__PURE__ */ C((s, i) => {
1591
+ const r = m1, a = r(s, "r"), n = r(s, "g"), l = r(s, "b");
1592
+ return k1(a, n, l, i);
1593
+ }, "fade"), _1 = /* @__PURE__ */ C((s) => `${x1(s)}
1594
+ .label {
1595
+ font-family: ${s.fontFamily};
1596
+ color: ${s.nodeTextColor || s.textColor};
1597
+ }
1598
+ .cluster-label text {
1599
+ fill: ${s.titleColor};
1600
+ }
1601
+ .cluster-label span {
1602
+ color: ${s.titleColor};
1603
+ }
1604
+ .cluster-label span p {
1605
+ background-color: transparent;
1606
+ }
1607
+
1608
+ .label text,span {
1609
+ fill: ${s.nodeTextColor || s.textColor};
1610
+ color: ${s.nodeTextColor || s.textColor};
1611
+ }
1612
+
1613
+ .node rect,
1614
+ .node circle,
1615
+ .node ellipse,
1616
+ .node polygon,
1617
+ .node path {
1618
+ fill: ${s.mainBkg};
1619
+ stroke: ${s.nodeBorder};
1620
+ stroke-width: ${s.strokeWidth ?? 1}px;
1621
+ }
1622
+ .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
1623
+ text-anchor: middle;
1624
+ }
1625
+
1626
+ .node .katex path {
1627
+ fill: #000;
1628
+ stroke: #000;
1629
+ stroke-width: 1px;
1630
+ }
1631
+
1632
+ .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
1633
+ text-align: center;
1634
+ }
1635
+ .node.clickable {
1636
+ cursor: pointer;
1637
+ }
1638
+
1639
+
1640
+ .root .anchor path {
1641
+ fill: ${s.lineColor} !important;
1642
+ stroke-width: 0;
1643
+ stroke: ${s.lineColor};
1644
+ }
1645
+
1646
+ .arrowheadPath {
1647
+ fill: ${s.arrowheadColor};
1648
+ }
1649
+
1650
+ .edgePaths .path {
1651
+ stroke: ${s.lineColor};
1652
+ stroke-width: ${s.strokeWidth ?? 2}px;
1653
+ }
1654
+
1655
+ .flowchart-link {
1656
+ stroke: ${s.lineColor};
1657
+ fill: none;
1658
+ }
1659
+
1660
+ .edgeLabel {
1661
+ background-color: ${s.edgeLabelBackground};
1662
+ p {
1663
+ background-color: ${s.edgeLabelBackground};
1664
+ }
1665
+ rect {
1666
+ opacity: 0.5;
1667
+ background-color: ${s.edgeLabelBackground};
1668
+ fill: ${s.edgeLabelBackground};
1669
+ }
1670
+ text-align: center;
1671
+ }
1672
+
1673
+ /* For html labels only */
1674
+ .labelBkg {
1675
+ background-color: ${F1(s.edgeLabelBackground, 0.5)};
1676
+ // background-color:
1677
+ }
1678
+
1679
+ .cluster rect {
1680
+ fill: ${s.clusterBkg};
1681
+ stroke: ${s.clusterBorder};
1682
+ stroke-width: 1px;
1683
+ }
1684
+
1685
+ .cluster text {
1686
+ fill: ${s.titleColor};
1687
+ }
1688
+
1689
+ .cluster span {
1690
+ color: ${s.titleColor};
1691
+ }
1692
+ /* .cluster div {
1693
+ color: ${s.titleColor};
1694
+ } */
1695
+
1696
+ /* Collapsed subgraph node (@{ view: collapsed }) */
1697
+ .node .collapsed-indicator {
1698
+ fill: ${s.clusterBorder};
1699
+ stroke: none;
1700
+ opacity: 0.6;
1701
+ }
1702
+
1703
+ .node .collapsed-separator {
1704
+ stroke: ${s.clusterBorder};
1705
+ stroke-width: 0.75px;
1706
+ }
1707
+
1708
+ div.mermaidTooltip {
1709
+ position: absolute;
1710
+ text-align: center;
1711
+ max-width: 200px;
1712
+ padding: 2px;
1713
+ font-family: ${s.fontFamily};
1714
+ font-size: 12px;
1715
+ background: ${s.tertiaryColor};
1716
+ border: 1px solid ${s.border2};
1717
+ border-radius: 2px;
1718
+ pointer-events: none;
1719
+ z-index: 100;
1720
+ }
1721
+
1722
+ .flowchartTitleText {
1723
+ text-anchor: middle;
1724
+ font-size: 18px;
1725
+ fill: ${s.textColor};
1726
+ }
1727
+
1728
+ rect.text {
1729
+ fill: none;
1730
+ stroke-width: 0;
1731
+ }
1732
+
1733
+ .icon-shape, .image-shape {
1734
+ background-color: ${s.edgeLabelBackground};
1735
+ p {
1736
+ background-color: ${s.edgeLabelBackground};
1737
+ padding: 2px;
1738
+ }
1739
+ .label rect {
1740
+ opacity: 0.5;
1741
+ background-color: ${s.edgeLabelBackground};
1742
+ fill: ${s.edgeLabelBackground};
1743
+ }
1744
+ text-align: center;
1745
+ }
1746
+ ${qt()}
1747
+ `, "getStyles"), B1 = _1, Wt = /* @__PURE__ */ C(({
1748
+ styles: s = B1
1749
+ } = {}) => ({
1750
+ parser: y1,
1751
+ get db() {
1752
+ return new D1();
1753
+ },
1754
+ renderer: E1,
1755
+ styles: s,
1756
+ init: /* @__PURE__ */ C((i) => {
1757
+ i.flowchart || (i.flowchart = {}), i.flowchart.arrowMarkerAbsolute = i.arrowMarkerAbsolute, Jt({ flowchart: { arrowMarkerAbsolute: i.arrowMarkerAbsolute } });
1758
+ }, "init")
1759
+ }), "createFlowDiagram"), v1 = Wt();
1760
+ const P1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1761
+ __proto__: null,
1762
+ createFlowDiagram: Wt,
1763
+ diagram: v1
1764
+ }, Symbol.toStringTag, { value: "Module" }));
1765
+ export {
1766
+ Wt as c,
1767
+ P1 as f,
1768
+ B1 as s
1769
+ };