local-operator-ui 0.12.7 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. package/out/main/index.jsc +0 -0
  2. package/out/preload/index.jsc +0 -0
  3. package/out/renderer/assets/_basePickBy-Dt8NA_1A.js +1 -0
  4. package/out/renderer/assets/_baseUniq-Dfn2rCfr.js +1 -0
  5. package/out/renderer/assets/agent-details-page-CJJgDqdX.js +6 -0
  6. package/out/renderer/assets/agent-hub-page-CznUZD2f.js +11 -0
  7. package/out/renderer/assets/agents-page-COdPTFYp.js +18 -0
  8. package/out/renderer/assets/arc-C1_J1TYO.js +1 -0
  9. package/out/renderer/assets/architectureDiagram-IEHRJDOE-p5UIRlv1.js +36 -0
  10. package/out/renderer/assets/asn1-EdZsLKOL.js +1 -0
  11. package/out/renderer/assets/band-CquvqAHh.js +1 -0
  12. package/out/renderer/assets/blockDiagram-JOT3LUYC-Dk6LFvtm.js +121 -0
  13. package/out/renderer/assets/c4Diagram-VJAJSXHY-C0Hp8OKf.js +10 -0
  14. package/out/renderer/assets/channel-BqUr4Qsu.js +1 -0
  15. package/out/renderer/assets/chunk-4BMEZGHF-CV1FNkGZ.js +1 -0
  16. package/out/renderer/assets/chunk-A2AXSNBT-Co_5OkmZ.js +164 -0
  17. package/out/renderer/assets/chunk-AEK57VVT-Bu3wjBen.js +220 -0
  18. package/out/renderer/assets/chunk-D6G4REZN-BvFphnUv.js +1 -0
  19. package/out/renderer/assets/chunk-RZ5BOZE2-DBIcRvVx.js +1 -0
  20. package/out/renderer/assets/chunk-XZIHB7SX-DjSBj758.js +1 -0
  21. package/out/renderer/assets/classDiagram-GIVACNV2-DyZfTBa4.js +1 -0
  22. package/out/renderer/assets/classDiagram-v2-COTLJTTW-DyZfTBa4.js +1 -0
  23. package/out/renderer/assets/clojure-BMjYHr_A.js +1 -0
  24. package/out/renderer/assets/clone-hR8g0-gq.js +1 -0
  25. package/out/renderer/assets/css-BnMrqG3P.js +1 -0
  26. package/out/renderer/assets/cytoscape.esm-DHvQc-Lm.js +331 -0
  27. package/out/renderer/assets/dagre-OKDRZEBW-DbOc711m.js +4 -0
  28. package/out/renderer/assets/diagram-SSKATNLV-YLnBMg9L.js +43 -0
  29. package/out/renderer/assets/diagram-VNBRO52H-DHzPX2Ws.js +24 -0
  30. package/out/renderer/assets/erDiagram-Q7BY3M3F-CxFuapOs.js +60 -0
  31. package/out/renderer/assets/flowDiagram-4HSFHLVR-D5vc3yns.js +161 -0
  32. package/out/renderer/assets/ganttDiagram-APWFNJXF-ejBZIm6I.js +257 -0
  33. package/out/renderer/assets/gitGraphDiagram-7IBYFJ6S-6m7tU_G2.js +65 -0
  34. package/out/renderer/assets/graph-DIHt6FPP.js +1 -0
  35. package/out/renderer/assets/icon-CTN1YQYZ.js +195 -0
  36. package/out/renderer/assets/icon-nCvgDdVX.css +1 -0
  37. package/out/renderer/assets/index-BpRBp6-j.js +7 -0
  38. package/out/renderer/assets/index-BweSWC55.js +1 -0
  39. package/out/renderer/assets/index-CLHdxmCS.js +1272 -0
  40. package/out/renderer/assets/index-DikLkf3S.css +1 -0
  41. package/out/renderer/assets/infoDiagram-PH2N3AL5-D1KBOewb.js +2 -0
  42. package/out/renderer/assets/init-Dmth1JHB.js +1 -0
  43. package/out/renderer/assets/installer-T4sGv29U.js +16 -0
  44. package/out/renderer/assets/javascript-qCveANmP.js +1 -0
  45. package/out/renderer/assets/journeyDiagram-U35MCT3I-DsqwRdF3.js +138 -0
  46. package/out/renderer/assets/kanban-definition-NDS4AKOZ-BQvBdP_9.js +88 -0
  47. package/out/renderer/assets/katex-BCx1q_2Y.css +1 -0
  48. package/out/renderer/assets/layout-C7qoUpVb.js +1 -0
  49. package/out/renderer/assets/linear-BfLTrHPc.js +1 -0
  50. package/out/renderer/assets/mermaid.core-CyfNZ-Rl.js +213 -0
  51. package/out/renderer/assets/mindmap-definition-ALO5MXBD-CTSdCgh1.js +95 -0
  52. package/out/renderer/assets/mllike-CXdrOF99.js +1 -0
  53. package/out/renderer/assets/ordinal-DILIJJjt.js +1 -0
  54. package/out/renderer/assets/page-header-CNXeqkJB.js +1 -0
  55. package/out/renderer/assets/parseISO-CyJpeshf.js +6 -0
  56. package/out/renderer/assets/pieDiagram-IB7DONF6-CeYuFnxD.js +30 -0
  57. package/out/renderer/assets/pug-DukmZTjD.js +1 -0
  58. package/out/renderer/assets/python-BuPzkPfP.js +1 -0
  59. package/out/renderer/assets/quadrantDiagram-7GDLP6J5-urCUNLvr.js +7 -0
  60. package/out/renderer/assets/radar-MK3ICKWK-D0m91kg2.js +128 -0
  61. package/out/renderer/assets/requirementDiagram-KVF5MWMF-7WDiFe7C.js +64 -0
  62. package/out/renderer/assets/rpm-CTu-6PCP.js +1 -0
  63. package/out/renderer/assets/sankeyDiagram-QLVOVGJD-BvCTETAk.js +10 -0
  64. package/out/renderer/assets/schedules-page-B2sb5H0L.js +115 -0
  65. package/out/renderer/assets/sequenceDiagram-X6HHIX6F-DGlKyLMu.js +122 -0
  66. package/out/renderer/assets/settings-page-DnOXVx9n.js +154 -0
  67. package/out/renderer/assets/settings-section-CBkMzMRA.js +6 -0
  68. package/out/renderer/assets/sql-D0XecflT.js +1 -0
  69. package/out/renderer/assets/square-pen-C9ah35lX.js +6 -0
  70. package/out/renderer/assets/stateDiagram-DGXRK772-BY_eMRWs.js +1 -0
  71. package/out/renderer/assets/stateDiagram-v2-YXO3MK2T-DecHc3j6.js +1 -0
  72. package/out/renderer/assets/step-DMJAOHzS.js +1 -0
  73. package/out/renderer/assets/time-BOTM2Tp0.js +1 -0
  74. package/out/renderer/assets/timeline-definition-BDJGKUSR-9Ezq9kKH.js +61 -0
  75. package/out/renderer/assets/ttcn-cfg-B9xdYoR4.js +1 -0
  76. package/out/renderer/assets/use-agent-like-mutation-BYo-fu7V.js +1 -0
  77. package/out/renderer/assets/xychartDiagram-VJFVF3MP-O2pD61nn.js +7 -0
  78. package/out/renderer/index.html +4 -4
  79. package/out/renderer/installer.html +3 -3
  80. package/package.json +50 -22
  81. package/out/renderer/assets/GeistMonoNerdFontMono-Black-CPyfXpD2.otf +0 -0
  82. package/out/renderer/assets/GeistMonoNerdFontMono-Light-CRgGhpeL.otf +0 -0
  83. package/out/renderer/assets/GeistMonoNerdFontMono-Medium-Dui3XGJy.otf +0 -0
  84. package/out/renderer/assets/GeistMonoNerdFontMono-Thin-D5jufbuH.otf +0 -0
  85. package/out/renderer/assets/GeistMonoNerdFontMono-UltraBlack-CChzVbOW.otf +0 -0
  86. package/out/renderer/assets/_basePickBy-Xni00Dlk.js +0 -195
  87. package/out/renderer/assets/_baseUniq-JxZZknyU.js +0 -835
  88. package/out/renderer/assets/arc-BPRFPuHz.js +0 -131
  89. package/out/renderer/assets/architectureDiagram-IEHRJDOE-iKnn0iSS.js +0 -8653
  90. package/out/renderer/assets/asn1-BnOEsgAm.js +0 -144
  91. package/out/renderer/assets/blockDiagram-JOT3LUYC-BW-Yo0Fe.js +0 -3585
  92. package/out/renderer/assets/c4Diagram-VJAJSXHY-cTGz3ymz.js +0 -2487
  93. package/out/renderer/assets/channel-CsQk5gsI.js +0 -7
  94. package/out/renderer/assets/chunk-4BMEZGHF-DjpLWrPj.js +0 -16
  95. package/out/renderer/assets/chunk-A2AXSNBT-Blza621e.js +0 -1827
  96. package/out/renderer/assets/chunk-AEK57VVT-ZmlsDCZe.js +0 -1953
  97. package/out/renderer/assets/chunk-D6G4REZN-C7msyVje.js +0 -108
  98. package/out/renderer/assets/chunk-RZ5BOZE2-CWvJQJJl.js +0 -34
  99. package/out/renderer/assets/chunk-XZIHB7SX-C-gdVJBt.js +0 -19
  100. package/out/renderer/assets/classDiagram-GIVACNV2-BcRnaMRd.js +0 -21
  101. package/out/renderer/assets/classDiagram-v2-COTLJTTW-BcRnaMRd.js +0 -21
  102. package/out/renderer/assets/clear-icon-with-text-Cu96UxOE.png +0 -0
  103. package/out/renderer/assets/clojure-BhXMqnxz.js +0 -849
  104. package/out/renderer/assets/clone-3XFGex6Y.js +0 -8
  105. package/out/renderer/assets/css-c-jst79C.js +0 -1783
  106. package/out/renderer/assets/cytoscape.esm-C0AOj4uS.js +0 -30062
  107. package/out/renderer/assets/dagre-OKDRZEBW-BMuSMCUF.js +0 -695
  108. package/out/renderer/assets/diagram-SSKATNLV-BCxxN7T6.js +0 -304
  109. package/out/renderer/assets/diagram-VNBRO52H-q41sVUvc.js +0 -193
  110. package/out/renderer/assets/erDiagram-Q7BY3M3F-BFd2rLsa.js +0 -1160
  111. package/out/renderer/assets/flowDiagram-4HSFHLVR-_Arrrk_3.js +0 -2324
  112. package/out/renderer/assets/fonts-CM-VN_uu.css +0 -64
  113. package/out/renderer/assets/fonts-DqkQ6BY5.js +0 -31168
  114. package/out/renderer/assets/ganttDiagram-APWFNJXF-Dzw68AV_.js +0 -2500
  115. package/out/renderer/assets/gitGraphDiagram-7IBYFJ6S-BlkO8Bzg.js +0 -1204
  116. package/out/renderer/assets/graph-DL-34vhw.js +0 -424
  117. package/out/renderer/assets/index-BDLsFoJv.js +0 -312
  118. package/out/renderer/assets/index-CiPFa_9B.css +0 -10
  119. package/out/renderer/assets/index-MaDq9HTX.js +0 -365078
  120. package/out/renderer/assets/index-vAasWWpO.js +0 -406
  121. package/out/renderer/assets/infoDiagram-PH2N3AL5-DO4pqvW_.js +0 -33
  122. package/out/renderer/assets/installer-Ct30gPA9.js +0 -511
  123. package/out/renderer/assets/javascript-C3MnDRiU.js +0 -994
  124. package/out/renderer/assets/journeyDiagram-U35MCT3I-BJQ-FRal.js +0 -1199
  125. package/out/renderer/assets/kanban-definition-NDS4AKOZ-B1zGbozL.js +0 -1046
  126. package/out/renderer/assets/layout-BrQGvDtH.js +0 -2060
  127. package/out/renderer/assets/mindmap-definition-ALO5MXBD-B5SNv6RZ.js +0 -5836
  128. package/out/renderer/assets/mllike-DHn7xckP.js +0 -334
  129. package/out/renderer/assets/pieDiagram-IB7DONF6-DKT0Bk2S.js +0 -239
  130. package/out/renderer/assets/pug-By0kVCfm.js +0 -405
  131. package/out/renderer/assets/python-CvWbmiX4.js +0 -427
  132. package/out/renderer/assets/quadrantDiagram-7GDLP6J5-CFMDiFFE.js +0 -1340
  133. package/out/renderer/assets/radar-MK3ICKWK-DwsnroMG.js +0 -16935
  134. package/out/renderer/assets/requirementDiagram-KVF5MWMF-DPTaldQZ.js +0 -1163
  135. package/out/renderer/assets/rpm-C-DLY-If.js +0 -109
  136. package/out/renderer/assets/sankeyDiagram-QLVOVGJD-DIFNjSQ_.js +0 -1201
  137. package/out/renderer/assets/sequenceDiagram-X6HHIX6F-Chi1Y6mU.js +0 -3415
  138. package/out/renderer/assets/sql-BSrOzCRI.js +0 -354
  139. package/out/renderer/assets/stateDiagram-DGXRK772-DcmhTUVK.js +0 -467
  140. package/out/renderer/assets/stateDiagram-v2-YXO3MK2T-Dy-oRm-T.js +0 -21
  141. package/out/renderer/assets/timeline-definition-BDJGKUSR-0y2wZWef.js +0 -1223
  142. package/out/renderer/assets/ttcn-cfg-Dc39-fIP.js +0 -133
  143. package/out/renderer/assets/xychartDiagram-VJFVF3MP-Bbr5uqsp.js +0 -1800
@@ -1,2324 +0,0 @@
1
- import { _ as __name, o as setConfig2, l as log, c as getConfig2, d as select, p as getRegisteredLayoutAlgorithm, r as render, u as utils_default, b as setAccTitle, s as setAccDescription, q as setDiagramTitle, a as getAccTitle, g as getAccDescription, t as getDiagramTitle, k as common_default, v as load, J as JSON_SCHEMA, x as isValidShape, y as getEdgeId, z as clear, A as defaultConfig2, B as rgba } from "./index-MaDq9HTX.js";
2
- import { g as getDiagramElement, s as setupViewPortForSVG } from "./chunk-RZ5BOZE2-CWvJQJJl.js";
3
- import { c as channel } from "./channel-CsQk5gsI.js";
4
- import "./fonts-DqkQ6BY5.js";
5
- var MERMAID_DOM_ID_PREFIX = "flowchart-";
6
- var FlowDB = class {
7
- // cspell:ignore funs
8
- constructor() {
9
- this.vertexCounter = 0;
10
- this.config = getConfig2();
11
- this.vertices = /* @__PURE__ */ new Map();
12
- this.edges = [];
13
- this.classes = /* @__PURE__ */ new Map();
14
- this.subGraphs = [];
15
- this.subGraphLookup = /* @__PURE__ */ new Map();
16
- this.tooltips = /* @__PURE__ */ new Map();
17
- this.subCount = 0;
18
- this.firstGraphFlag = true;
19
- this.secCount = -1;
20
- this.posCrossRef = [];
21
- this.funs = [];
22
- this.setAccTitle = setAccTitle;
23
- this.setAccDescription = setAccDescription;
24
- this.setDiagramTitle = setDiagramTitle;
25
- this.getAccTitle = getAccTitle;
26
- this.getAccDescription = getAccDescription;
27
- this.getDiagramTitle = getDiagramTitle;
28
- this.funs.push(this.setupToolTips.bind(this));
29
- this.addVertex = this.addVertex.bind(this);
30
- this.firstGraph = this.firstGraph.bind(this);
31
- this.setDirection = this.setDirection.bind(this);
32
- this.addSubGraph = this.addSubGraph.bind(this);
33
- this.addLink = this.addLink.bind(this);
34
- this.setLink = this.setLink.bind(this);
35
- this.updateLink = this.updateLink.bind(this);
36
- this.addClass = this.addClass.bind(this);
37
- this.setClass = this.setClass.bind(this);
38
- this.destructLink = this.destructLink.bind(this);
39
- this.setClickEvent = this.setClickEvent.bind(this);
40
- this.setTooltip = this.setTooltip.bind(this);
41
- this.updateLinkInterpolate = this.updateLinkInterpolate.bind(this);
42
- this.setClickFun = this.setClickFun.bind(this);
43
- this.bindFunctions = this.bindFunctions.bind(this);
44
- this.lex = {
45
- firstGraph: this.firstGraph.bind(this)
46
- };
47
- this.clear();
48
- this.setGen("gen-2");
49
- }
50
- static {
51
- __name(this, "FlowDB");
52
- }
53
- sanitizeText(txt) {
54
- return common_default.sanitizeText(txt, this.config);
55
- }
56
- /**
57
- * Function to lookup domId from id in the graph definition.
58
- *
59
- * @param id - id of the node
60
- */
61
- lookUpDomId(id) {
62
- for (const vertex of this.vertices.values()) {
63
- if (vertex.id === id) {
64
- return vertex.domId;
65
- }
66
- }
67
- return id;
68
- }
69
- /**
70
- * Function called by parser when a node definition has been found
71
- */
72
- addVertex(id, textObj, type, style, classes, dir, props = {}, metadata) {
73
- if (!id || id.trim().length === 0) {
74
- return;
75
- }
76
- let doc;
77
- if (metadata !== void 0) {
78
- let yamlData;
79
- if (!metadata.includes("\n")) {
80
- yamlData = "{\n" + metadata + "\n}";
81
- } else {
82
- yamlData = metadata + "\n";
83
- }
84
- doc = load(yamlData, { schema: JSON_SCHEMA });
85
- }
86
- const edge = this.edges.find((e) => e.id === id);
87
- if (edge) {
88
- const edgeDoc = doc;
89
- if (edgeDoc?.animate !== void 0) {
90
- edge.animate = edgeDoc.animate;
91
- }
92
- if (edgeDoc?.animation !== void 0) {
93
- edge.animation = edgeDoc.animation;
94
- }
95
- return;
96
- }
97
- let txt;
98
- let vertex = this.vertices.get(id);
99
- if (vertex === void 0) {
100
- vertex = {
101
- id,
102
- labelType: "text",
103
- domId: MERMAID_DOM_ID_PREFIX + id + "-" + this.vertexCounter,
104
- styles: [],
105
- classes: []
106
- };
107
- this.vertices.set(id, vertex);
108
- }
109
- this.vertexCounter++;
110
- if (textObj !== void 0) {
111
- this.config = getConfig2();
112
- txt = this.sanitizeText(textObj.text.trim());
113
- vertex.labelType = textObj.type;
114
- if (txt.startsWith('"') && txt.endsWith('"')) {
115
- txt = txt.substring(1, txt.length - 1);
116
- }
117
- vertex.text = txt;
118
- } else {
119
- if (vertex.text === void 0) {
120
- vertex.text = id;
121
- }
122
- }
123
- if (type !== void 0) {
124
- vertex.type = type;
125
- }
126
- if (style !== void 0 && style !== null) {
127
- style.forEach((s) => {
128
- vertex.styles.push(s);
129
- });
130
- }
131
- if (classes !== void 0 && classes !== null) {
132
- classes.forEach((s) => {
133
- vertex.classes.push(s);
134
- });
135
- }
136
- if (dir !== void 0) {
137
- vertex.dir = dir;
138
- }
139
- if (vertex.props === void 0) {
140
- vertex.props = props;
141
- } else if (props !== void 0) {
142
- Object.assign(vertex.props, props);
143
- }
144
- if (doc !== void 0) {
145
- if (doc.shape) {
146
- if (doc.shape !== doc.shape.toLowerCase() || doc.shape.includes("_")) {
147
- throw new Error(`No such shape: ${doc.shape}. Shape names should be lowercase.`);
148
- } else if (!isValidShape(doc.shape)) {
149
- throw new Error(`No such shape: ${doc.shape}.`);
150
- }
151
- vertex.type = doc?.shape;
152
- }
153
- if (doc?.label) {
154
- vertex.text = doc?.label;
155
- }
156
- if (doc?.icon) {
157
- vertex.icon = doc?.icon;
158
- if (!doc.label?.trim() && vertex.text === id) {
159
- vertex.text = "";
160
- }
161
- }
162
- if (doc?.form) {
163
- vertex.form = doc?.form;
164
- }
165
- if (doc?.pos) {
166
- vertex.pos = doc?.pos;
167
- }
168
- if (doc?.img) {
169
- vertex.img = doc?.img;
170
- if (!doc.label?.trim() && vertex.text === id) {
171
- vertex.text = "";
172
- }
173
- }
174
- if (doc?.constraint) {
175
- vertex.constraint = doc.constraint;
176
- }
177
- if (doc.w) {
178
- vertex.assetWidth = Number(doc.w);
179
- }
180
- if (doc.h) {
181
- vertex.assetHeight = Number(doc.h);
182
- }
183
- }
184
- }
185
- /**
186
- * Function called by parser when a link/edge definition has been found
187
- *
188
- */
189
- addSingleLink(_start, _end, type, id) {
190
- const start = _start;
191
- const end = _end;
192
- const edge = {
193
- start,
194
- end,
195
- type: void 0,
196
- text: "",
197
- labelType: "text",
198
- classes: [],
199
- isUserDefinedId: false,
200
- interpolate: this.edges.defaultInterpolate
201
- };
202
- log.info("abc78 Got edge...", edge);
203
- const linkTextObj = type.text;
204
- if (linkTextObj !== void 0) {
205
- edge.text = this.sanitizeText(linkTextObj.text.trim());
206
- if (edge.text.startsWith('"') && edge.text.endsWith('"')) {
207
- edge.text = edge.text.substring(1, edge.text.length - 1);
208
- }
209
- edge.labelType = linkTextObj.type;
210
- }
211
- if (type !== void 0) {
212
- edge.type = type.type;
213
- edge.stroke = type.stroke;
214
- edge.length = type.length > 10 ? 10 : type.length;
215
- }
216
- if (id && !this.edges.some((e) => e.id === id)) {
217
- edge.id = id;
218
- edge.isUserDefinedId = true;
219
- } else {
220
- const existingLinks = this.edges.filter((e) => e.start === edge.start && e.end === edge.end);
221
- if (existingLinks.length === 0) {
222
- edge.id = getEdgeId(edge.start, edge.end, { counter: 0, prefix: "L" });
223
- } else {
224
- edge.id = getEdgeId(edge.start, edge.end, {
225
- counter: existingLinks.length + 1,
226
- prefix: "L"
227
- });
228
- }
229
- }
230
- if (this.edges.length < (this.config.maxEdges ?? 500)) {
231
- log.info("Pushing edge...");
232
- this.edges.push(edge);
233
- } else {
234
- throw new Error(
235
- `Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
236
-
237
- Initialize mermaid with maxEdges set to a higher number to allow more edges.
238
- You cannot set this config via configuration inside the diagram as it is a secure config.
239
- You have to call mermaid.initialize.`
240
- );
241
- }
242
- }
243
- isLinkData(value) {
244
- return value !== null && typeof value === "object" && "id" in value && typeof value.id === "string";
245
- }
246
- addLink(_start, _end, linkData) {
247
- const id = this.isLinkData(linkData) ? linkData.id.replace("@", "") : void 0;
248
- log.info("addLink", _start, _end, id);
249
- for (const start of _start) {
250
- for (const end of _end) {
251
- const isLastStart = start === _start[_start.length - 1];
252
- const isFirstEnd = end === _end[0];
253
- if (isLastStart && isFirstEnd) {
254
- this.addSingleLink(start, end, linkData, id);
255
- } else {
256
- this.addSingleLink(start, end, linkData, void 0);
257
- }
258
- }
259
- }
260
- }
261
- /**
262
- * Updates a link's line interpolation algorithm
263
- */
264
- updateLinkInterpolate(positions, interpolate) {
265
- positions.forEach((pos) => {
266
- if (pos === "default") {
267
- this.edges.defaultInterpolate = interpolate;
268
- } else {
269
- this.edges[pos].interpolate = interpolate;
270
- }
271
- });
272
- }
273
- /**
274
- * Updates a link with a style
275
- *
276
- */
277
- updateLink(positions, style) {
278
- positions.forEach((pos) => {
279
- if (typeof pos === "number" && pos >= this.edges.length) {
280
- throw new Error(
281
- `The index ${pos} 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.)`
282
- );
283
- }
284
- if (pos === "default") {
285
- this.edges.defaultStyle = style;
286
- } else {
287
- this.edges[pos].style = style;
288
- if ((this.edges[pos]?.style?.length ?? 0) > 0 && !this.edges[pos]?.style?.some((s) => s?.startsWith("fill"))) {
289
- this.edges[pos]?.style?.push("fill:none");
290
- }
291
- }
292
- });
293
- }
294
- addClass(ids, _style) {
295
- const style = _style.join().replace(/\\,/g, "§§§").replace(/,/g, ";").replace(/§§§/g, ",").split(";");
296
- ids.split(",").forEach((id) => {
297
- let classNode = this.classes.get(id);
298
- if (classNode === void 0) {
299
- classNode = { id, styles: [], textStyles: [] };
300
- this.classes.set(id, classNode);
301
- }
302
- if (style !== void 0 && style !== null) {
303
- style.forEach((s) => {
304
- if (/color/.exec(s)) {
305
- const newStyle = s.replace("fill", "bgFill");
306
- classNode.textStyles.push(newStyle);
307
- }
308
- classNode.styles.push(s);
309
- });
310
- }
311
- });
312
- }
313
- /**
314
- * Called by parser when a graph definition is found, stores the direction of the chart.
315
- *
316
- */
317
- setDirection(dir) {
318
- this.direction = dir;
319
- if (/.*</.exec(this.direction)) {
320
- this.direction = "RL";
321
- }
322
- if (/.*\^/.exec(this.direction)) {
323
- this.direction = "BT";
324
- }
325
- if (/.*>/.exec(this.direction)) {
326
- this.direction = "LR";
327
- }
328
- if (/.*v/.exec(this.direction)) {
329
- this.direction = "TB";
330
- }
331
- if (this.direction === "TD") {
332
- this.direction = "TB";
333
- }
334
- }
335
- /**
336
- * Called by parser when a special node is found, e.g. a clickable element.
337
- *
338
- * @param ids - Comma separated list of ids
339
- * @param className - Class to add
340
- */
341
- setClass(ids, className) {
342
- for (const id of ids.split(",")) {
343
- const vertex = this.vertices.get(id);
344
- if (vertex) {
345
- vertex.classes.push(className);
346
- }
347
- const edge = this.edges.find((e) => e.id === id);
348
- if (edge) {
349
- edge.classes.push(className);
350
- }
351
- const subGraph = this.subGraphLookup.get(id);
352
- if (subGraph) {
353
- subGraph.classes.push(className);
354
- }
355
- }
356
- }
357
- setTooltip(ids, tooltip) {
358
- if (tooltip === void 0) {
359
- return;
360
- }
361
- tooltip = this.sanitizeText(tooltip);
362
- for (const id of ids.split(",")) {
363
- this.tooltips.set(this.version === "gen-1" ? this.lookUpDomId(id) : id, tooltip);
364
- }
365
- }
366
- setClickFun(id, functionName, functionArgs) {
367
- const domId = this.lookUpDomId(id);
368
- if (getConfig2().securityLevel !== "loose") {
369
- return;
370
- }
371
- if (functionName === void 0) {
372
- return;
373
- }
374
- let argList = [];
375
- if (typeof functionArgs === "string") {
376
- argList = functionArgs.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
377
- for (let i = 0; i < argList.length; i++) {
378
- let item = argList[i].trim();
379
- if (item.startsWith('"') && item.endsWith('"')) {
380
- item = item.substr(1, item.length - 2);
381
- }
382
- argList[i] = item;
383
- }
384
- }
385
- if (argList.length === 0) {
386
- argList.push(id);
387
- }
388
- const vertex = this.vertices.get(id);
389
- if (vertex) {
390
- vertex.haveCallback = true;
391
- this.funs.push(() => {
392
- const elem = document.querySelector(`[id="${domId}"]`);
393
- if (elem !== null) {
394
- elem.addEventListener(
395
- "click",
396
- () => {
397
- utils_default.runFunc(functionName, ...argList);
398
- },
399
- false
400
- );
401
- }
402
- });
403
- }
404
- }
405
- /**
406
- * Called by parser when a link is found. Adds the URL to the vertex data.
407
- *
408
- * @param ids - Comma separated list of ids
409
- * @param linkStr - URL to create a link for
410
- * @param target - Target attribute for the link
411
- */
412
- setLink(ids, linkStr, target) {
413
- ids.split(",").forEach((id) => {
414
- const vertex = this.vertices.get(id);
415
- if (vertex !== void 0) {
416
- vertex.link = utils_default.formatUrl(linkStr, this.config);
417
- vertex.linkTarget = target;
418
- }
419
- });
420
- this.setClass(ids, "clickable");
421
- }
422
- getTooltip(id) {
423
- return this.tooltips.get(id);
424
- }
425
- /**
426
- * Called by parser when a click definition is found. Registers an event handler.
427
- *
428
- * @param ids - Comma separated list of ids
429
- * @param functionName - Function to be called on click
430
- * @param functionArgs - Arguments to be passed to the function
431
- */
432
- setClickEvent(ids, functionName, functionArgs) {
433
- ids.split(",").forEach((id) => {
434
- this.setClickFun(id, functionName, functionArgs);
435
- });
436
- this.setClass(ids, "clickable");
437
- }
438
- bindFunctions(element) {
439
- this.funs.forEach((fun) => {
440
- fun(element);
441
- });
442
- }
443
- getDirection() {
444
- return this.direction?.trim();
445
- }
446
- /**
447
- * Retrieval function for fetching the found nodes after parsing has completed.
448
- *
449
- */
450
- getVertices() {
451
- return this.vertices;
452
- }
453
- /**
454
- * Retrieval function for fetching the found links after parsing has completed.
455
- *
456
- */
457
- getEdges() {
458
- return this.edges;
459
- }
460
- /**
461
- * Retrieval function for fetching the found class definitions after parsing has completed.
462
- *
463
- */
464
- getClasses() {
465
- return this.classes;
466
- }
467
- setupToolTips(element) {
468
- let tooltipElem = select(".mermaidTooltip");
469
- if ((tooltipElem._groups || tooltipElem)[0][0] === null) {
470
- tooltipElem = select("body").append("div").attr("class", "mermaidTooltip").style("opacity", 0);
471
- }
472
- const svg = select(element).select("svg");
473
- const nodes = svg.selectAll("g.node");
474
- nodes.on("mouseover", (e) => {
475
- const el = select(e.currentTarget);
476
- const title = el.attr("title");
477
- if (title === null) {
478
- return;
479
- }
480
- const rect = e.currentTarget?.getBoundingClientRect();
481
- tooltipElem.transition().duration(200).style("opacity", ".9");
482
- tooltipElem.text(el.attr("title")).style("left", window.scrollX + rect.left + (rect.right - rect.left) / 2 + "px").style("top", window.scrollY + rect.bottom + "px");
483
- tooltipElem.html(tooltipElem.html().replace(/&lt;br\/&gt;/g, "<br/>"));
484
- el.classed("hover", true);
485
- }).on("mouseout", (e) => {
486
- tooltipElem.transition().duration(500).style("opacity", 0);
487
- const el = select(e.currentTarget);
488
- el.classed("hover", false);
489
- });
490
- }
491
- /**
492
- * Clears the internal graph db so that a new graph can be parsed.
493
- *
494
- */
495
- clear(ver = "gen-2") {
496
- this.vertices = /* @__PURE__ */ new Map();
497
- this.classes = /* @__PURE__ */ new Map();
498
- this.edges = [];
499
- this.funs = [this.setupToolTips.bind(this)];
500
- this.subGraphs = [];
501
- this.subGraphLookup = /* @__PURE__ */ new Map();
502
- this.subCount = 0;
503
- this.tooltips = /* @__PURE__ */ new Map();
504
- this.firstGraphFlag = true;
505
- this.version = ver;
506
- this.config = getConfig2();
507
- clear();
508
- }
509
- setGen(ver) {
510
- this.version = ver || "gen-2";
511
- }
512
- defaultStyle() {
513
- return "fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;";
514
- }
515
- addSubGraph(_id, list, _title) {
516
- let id = _id.text.trim();
517
- let title = _title.text;
518
- if (_id === _title && /\s/.exec(_title.text)) {
519
- id = void 0;
520
- }
521
- const uniq = /* @__PURE__ */ __name((a) => {
522
- const prims = { boolean: {}, number: {}, string: {} };
523
- const objs = [];
524
- let dir2;
525
- const nodeList2 = a.filter(function(item) {
526
- const type = typeof item;
527
- if (item.stmt && item.stmt === "dir") {
528
- dir2 = item.value;
529
- return false;
530
- }
531
- if (item.trim() === "") {
532
- return false;
533
- }
534
- if (type in prims) {
535
- return prims[type].hasOwnProperty(item) ? false : prims[type][item] = true;
536
- } else {
537
- return objs.includes(item) ? false : objs.push(item);
538
- }
539
- });
540
- return { nodeList: nodeList2, dir: dir2 };
541
- }, "uniq");
542
- const { nodeList, dir } = uniq(list.flat());
543
- if (this.version === "gen-1") {
544
- for (let i = 0; i < nodeList.length; i++) {
545
- nodeList[i] = this.lookUpDomId(nodeList[i]);
546
- }
547
- }
548
- id = id ?? "subGraph" + this.subCount;
549
- title = title || "";
550
- title = this.sanitizeText(title);
551
- this.subCount = this.subCount + 1;
552
- const subGraph = {
553
- id,
554
- nodes: nodeList,
555
- title: title.trim(),
556
- classes: [],
557
- dir,
558
- labelType: _title.type
559
- };
560
- log.info("Adding", subGraph.id, subGraph.nodes, subGraph.dir);
561
- subGraph.nodes = this.makeUniq(subGraph, this.subGraphs).nodes;
562
- this.subGraphs.push(subGraph);
563
- this.subGraphLookup.set(id, subGraph);
564
- return id;
565
- }
566
- getPosForId(id) {
567
- for (const [i, subGraph] of this.subGraphs.entries()) {
568
- if (subGraph.id === id) {
569
- return i;
570
- }
571
- }
572
- return -1;
573
- }
574
- indexNodes2(id, pos) {
575
- const nodes = this.subGraphs[pos].nodes;
576
- this.secCount = this.secCount + 1;
577
- if (this.secCount > 2e3) {
578
- return {
579
- result: false,
580
- count: 0
581
- };
582
- }
583
- this.posCrossRef[this.secCount] = pos;
584
- if (this.subGraphs[pos].id === id) {
585
- return {
586
- result: true,
587
- count: 0
588
- };
589
- }
590
- let count = 0;
591
- let posCount = 1;
592
- while (count < nodes.length) {
593
- const childPos = this.getPosForId(nodes[count]);
594
- if (childPos >= 0) {
595
- const res = this.indexNodes2(id, childPos);
596
- if (res.result) {
597
- return {
598
- result: true,
599
- count: posCount + res.count
600
- };
601
- } else {
602
- posCount = posCount + res.count;
603
- }
604
- }
605
- count = count + 1;
606
- }
607
- return {
608
- result: false,
609
- count: posCount
610
- };
611
- }
612
- getDepthFirstPos(pos) {
613
- return this.posCrossRef[pos];
614
- }
615
- indexNodes() {
616
- this.secCount = -1;
617
- if (this.subGraphs.length > 0) {
618
- this.indexNodes2("none", this.subGraphs.length - 1);
619
- }
620
- }
621
- getSubGraphs() {
622
- return this.subGraphs;
623
- }
624
- firstGraph() {
625
- if (this.firstGraphFlag) {
626
- this.firstGraphFlag = false;
627
- return true;
628
- }
629
- return false;
630
- }
631
- destructStartLink(_str) {
632
- let str = _str.trim();
633
- let type = "arrow_open";
634
- switch (str[0]) {
635
- case "<":
636
- type = "arrow_point";
637
- str = str.slice(1);
638
- break;
639
- case "x":
640
- type = "arrow_cross";
641
- str = str.slice(1);
642
- break;
643
- case "o":
644
- type = "arrow_circle";
645
- str = str.slice(1);
646
- break;
647
- }
648
- let stroke = "normal";
649
- if (str.includes("=")) {
650
- stroke = "thick";
651
- }
652
- if (str.includes(".")) {
653
- stroke = "dotted";
654
- }
655
- return { type, stroke };
656
- }
657
- countChar(char, str) {
658
- const length = str.length;
659
- let count = 0;
660
- for (let i = 0; i < length; ++i) {
661
- if (str[i] === char) {
662
- ++count;
663
- }
664
- }
665
- return count;
666
- }
667
- destructEndLink(_str) {
668
- const str = _str.trim();
669
- let line = str.slice(0, -1);
670
- let type = "arrow_open";
671
- switch (str.slice(-1)) {
672
- case "x":
673
- type = "arrow_cross";
674
- if (str.startsWith("x")) {
675
- type = "double_" + type;
676
- line = line.slice(1);
677
- }
678
- break;
679
- case ">":
680
- type = "arrow_point";
681
- if (str.startsWith("<")) {
682
- type = "double_" + type;
683
- line = line.slice(1);
684
- }
685
- break;
686
- case "o":
687
- type = "arrow_circle";
688
- if (str.startsWith("o")) {
689
- type = "double_" + type;
690
- line = line.slice(1);
691
- }
692
- break;
693
- }
694
- let stroke = "normal";
695
- let length = line.length - 1;
696
- if (line.startsWith("=")) {
697
- stroke = "thick";
698
- }
699
- if (line.startsWith("~")) {
700
- stroke = "invisible";
701
- }
702
- const dots = this.countChar(".", line);
703
- if (dots) {
704
- stroke = "dotted";
705
- length = dots;
706
- }
707
- return { type, stroke, length };
708
- }
709
- destructLink(_str, _startStr) {
710
- const info = this.destructEndLink(_str);
711
- let startInfo;
712
- if (_startStr) {
713
- startInfo = this.destructStartLink(_startStr);
714
- if (startInfo.stroke !== info.stroke) {
715
- return { type: "INVALID", stroke: "INVALID" };
716
- }
717
- if (startInfo.type === "arrow_open") {
718
- startInfo.type = info.type;
719
- } else {
720
- if (startInfo.type !== info.type) {
721
- return { type: "INVALID", stroke: "INVALID" };
722
- }
723
- startInfo.type = "double_" + startInfo.type;
724
- }
725
- if (startInfo.type === "double_arrow") {
726
- startInfo.type = "double_arrow_point";
727
- }
728
- startInfo.length = info.length;
729
- return startInfo;
730
- }
731
- return info;
732
- }
733
- // Todo optimizer this by caching existing nodes
734
- exists(allSgs, _id) {
735
- for (const sg of allSgs) {
736
- if (sg.nodes.includes(_id)) {
737
- return true;
738
- }
739
- }
740
- return false;
741
- }
742
- /**
743
- * Deletes an id from all subgraphs
744
- *
745
- */
746
- makeUniq(sg, allSubgraphs) {
747
- const res = [];
748
- sg.nodes.forEach((_id, pos) => {
749
- if (!this.exists(allSubgraphs, _id)) {
750
- res.push(sg.nodes[pos]);
751
- }
752
- });
753
- return { nodes: res };
754
- }
755
- getTypeFromVertex(vertex) {
756
- if (vertex.img) {
757
- return "imageSquare";
758
- }
759
- if (vertex.icon) {
760
- if (vertex.form === "circle") {
761
- return "iconCircle";
762
- }
763
- if (vertex.form === "square") {
764
- return "iconSquare";
765
- }
766
- if (vertex.form === "rounded") {
767
- return "iconRounded";
768
- }
769
- return "icon";
770
- }
771
- switch (vertex.type) {
772
- case "square":
773
- case void 0:
774
- return "squareRect";
775
- case "round":
776
- return "roundedRect";
777
- case "ellipse":
778
- return "ellipse";
779
- default:
780
- return vertex.type;
781
- }
782
- }
783
- findNode(nodes, id) {
784
- return nodes.find((node) => node.id === id);
785
- }
786
- destructEdgeType(type) {
787
- let arrowTypeStart = "none";
788
- let arrowTypeEnd = "arrow_point";
789
- switch (type) {
790
- case "arrow_point":
791
- case "arrow_circle":
792
- case "arrow_cross":
793
- arrowTypeEnd = type;
794
- break;
795
- case "double_arrow_point":
796
- case "double_arrow_circle":
797
- case "double_arrow_cross":
798
- arrowTypeStart = type.replace("double_", "");
799
- arrowTypeEnd = arrowTypeStart;
800
- break;
801
- }
802
- return { arrowTypeStart, arrowTypeEnd };
803
- }
804
- addNodeFromVertex(vertex, nodes, parentDB, subGraphDB, config, look) {
805
- const parentId = parentDB.get(vertex.id);
806
- const isGroup = subGraphDB.get(vertex.id) ?? false;
807
- const node = this.findNode(nodes, vertex.id);
808
- if (node) {
809
- node.cssStyles = vertex.styles;
810
- node.cssCompiledStyles = this.getCompiledStyles(vertex.classes);
811
- node.cssClasses = vertex.classes.join(" ");
812
- } else {
813
- const baseNode = {
814
- id: vertex.id,
815
- label: vertex.text,
816
- labelStyle: "",
817
- parentId,
818
- padding: config.flowchart?.padding || 8,
819
- cssStyles: vertex.styles,
820
- cssCompiledStyles: this.getCompiledStyles(["default", "node", ...vertex.classes]),
821
- cssClasses: "default " + vertex.classes.join(" "),
822
- dir: vertex.dir,
823
- domId: vertex.domId,
824
- look,
825
- link: vertex.link,
826
- linkTarget: vertex.linkTarget,
827
- tooltip: this.getTooltip(vertex.id),
828
- icon: vertex.icon,
829
- pos: vertex.pos,
830
- img: vertex.img,
831
- assetWidth: vertex.assetWidth,
832
- assetHeight: vertex.assetHeight,
833
- constraint: vertex.constraint
834
- };
835
- if (isGroup) {
836
- nodes.push({
837
- ...baseNode,
838
- isGroup: true,
839
- shape: "rect"
840
- });
841
- } else {
842
- nodes.push({
843
- ...baseNode,
844
- isGroup: false,
845
- shape: this.getTypeFromVertex(vertex)
846
- });
847
- }
848
- }
849
- }
850
- getCompiledStyles(classDefs) {
851
- let compiledStyles = [];
852
- for (const customClass of classDefs) {
853
- const cssClass = this.classes.get(customClass);
854
- if (cssClass?.styles) {
855
- compiledStyles = [...compiledStyles, ...cssClass.styles ?? []].map((s) => s.trim());
856
- }
857
- if (cssClass?.textStyles) {
858
- compiledStyles = [...compiledStyles, ...cssClass.textStyles ?? []].map((s) => s.trim());
859
- }
860
- }
861
- return compiledStyles;
862
- }
863
- getData() {
864
- const config = getConfig2();
865
- const nodes = [];
866
- const edges = [];
867
- const subGraphs = this.getSubGraphs();
868
- const parentDB = /* @__PURE__ */ new Map();
869
- const subGraphDB = /* @__PURE__ */ new Map();
870
- for (let i = subGraphs.length - 1; i >= 0; i--) {
871
- const subGraph = subGraphs[i];
872
- if (subGraph.nodes.length > 0) {
873
- subGraphDB.set(subGraph.id, true);
874
- }
875
- for (const id of subGraph.nodes) {
876
- parentDB.set(id, subGraph.id);
877
- }
878
- }
879
- for (let i = subGraphs.length - 1; i >= 0; i--) {
880
- const subGraph = subGraphs[i];
881
- nodes.push({
882
- id: subGraph.id,
883
- label: subGraph.title,
884
- labelStyle: "",
885
- parentId: parentDB.get(subGraph.id),
886
- padding: 8,
887
- cssCompiledStyles: this.getCompiledStyles(subGraph.classes),
888
- cssClasses: subGraph.classes.join(" "),
889
- shape: "rect",
890
- dir: subGraph.dir,
891
- isGroup: true,
892
- look: config.look
893
- });
894
- }
895
- const n = this.getVertices();
896
- n.forEach((vertex) => {
897
- this.addNodeFromVertex(vertex, nodes, parentDB, subGraphDB, config, config.look || "classic");
898
- });
899
- const e = this.getEdges();
900
- e.forEach((rawEdge, index) => {
901
- const { arrowTypeStart, arrowTypeEnd } = this.destructEdgeType(rawEdge.type);
902
- const styles = [...e.defaultStyle ?? []];
903
- if (rawEdge.style) {
904
- styles.push(...rawEdge.style);
905
- }
906
- const edge = {
907
- id: getEdgeId(rawEdge.start, rawEdge.end, { counter: index, prefix: "L" }, rawEdge.id),
908
- isUserDefinedId: rawEdge.isUserDefinedId,
909
- start: rawEdge.start,
910
- end: rawEdge.end,
911
- type: rawEdge.type ?? "normal",
912
- label: rawEdge.text,
913
- labelpos: "c",
914
- thickness: rawEdge.stroke,
915
- minlen: rawEdge.length,
916
- classes: rawEdge?.stroke === "invisible" ? "" : "edge-thickness-normal edge-pattern-solid flowchart-link",
917
- arrowTypeStart: rawEdge?.stroke === "invisible" || rawEdge?.type === "arrow_open" ? "none" : arrowTypeStart,
918
- arrowTypeEnd: rawEdge?.stroke === "invisible" || rawEdge?.type === "arrow_open" ? "none" : arrowTypeEnd,
919
- arrowheadStyle: "fill: #333",
920
- cssCompiledStyles: this.getCompiledStyles(rawEdge.classes),
921
- labelStyle: styles,
922
- style: styles,
923
- pattern: rawEdge.stroke,
924
- look: config.look,
925
- animate: rawEdge.animate,
926
- animation: rawEdge.animation,
927
- curve: rawEdge.interpolate || this.edges.defaultInterpolate || config.flowchart?.curve
928
- };
929
- edges.push(edge);
930
- });
931
- return { nodes, edges, other: {}, config };
932
- }
933
- defaultConfig() {
934
- return defaultConfig2.flowchart;
935
- }
936
- };
937
- var getClasses = /* @__PURE__ */ __name(function(text, diagramObj) {
938
- return diagramObj.db.getClasses();
939
- }, "getClasses");
940
- var draw = /* @__PURE__ */ __name(async function(text, id, _version, diag) {
941
- log.info("REF0:");
942
- log.info("Drawing state diagram (v2)", id);
943
- const { securityLevel, flowchart: conf, layout } = getConfig2();
944
- let sandboxElement;
945
- if (securityLevel === "sandbox") {
946
- sandboxElement = select("#i" + id);
947
- }
948
- const doc = securityLevel === "sandbox" ? sandboxElement.nodes()[0].contentDocument : document;
949
- log.debug("Before getData: ");
950
- const data4Layout = diag.db.getData();
951
- log.debug("Data: ", data4Layout);
952
- const svg = getDiagramElement(id, securityLevel);
953
- const direction = diag.db.getDirection();
954
- data4Layout.type = diag.type;
955
- data4Layout.layoutAlgorithm = getRegisteredLayoutAlgorithm(layout);
956
- if (data4Layout.layoutAlgorithm === "dagre" && layout === "elk") {
957
- log.warn(
958
- "flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."
959
- );
960
- }
961
- data4Layout.direction = direction;
962
- data4Layout.nodeSpacing = conf?.nodeSpacing || 50;
963
- data4Layout.rankSpacing = conf?.rankSpacing || 50;
964
- data4Layout.markers = ["point", "circle", "cross"];
965
- data4Layout.diagramId = id;
966
- log.debug("REF1:", data4Layout);
967
- await render(data4Layout, svg);
968
- const padding = data4Layout.config.flowchart?.diagramPadding ?? 8;
969
- utils_default.insertTitle(
970
- svg,
971
- "flowchartTitleText",
972
- conf?.titleTopMargin || 0,
973
- diag.db.getDiagramTitle()
974
- );
975
- setupViewPortForSVG(svg, padding, "flowchart", conf?.useMaxWidth || false);
976
- for (const vertex of data4Layout.nodes) {
977
- const node = select(`#${id} [id="${vertex.id}"]`);
978
- if (!node || !vertex.link) {
979
- continue;
980
- }
981
- const link = doc.createElementNS("http://www.w3.org/2000/svg", "a");
982
- link.setAttributeNS("http://www.w3.org/2000/svg", "class", vertex.cssClasses);
983
- link.setAttributeNS("http://www.w3.org/2000/svg", "rel", "noopener");
984
- if (securityLevel === "sandbox") {
985
- link.setAttributeNS("http://www.w3.org/2000/svg", "target", "_top");
986
- } else if (vertex.linkTarget) {
987
- link.setAttributeNS("http://www.w3.org/2000/svg", "target", vertex.linkTarget);
988
- }
989
- const linkNode = node.insert(function() {
990
- return link;
991
- }, ":first-child");
992
- const shape = node.select(".label-container");
993
- if (shape) {
994
- linkNode.append(function() {
995
- return shape.node();
996
- });
997
- }
998
- const label = node.select(".label");
999
- if (label) {
1000
- linkNode.append(function() {
1001
- return label.node();
1002
- });
1003
- }
1004
- }
1005
- }, "draw");
1006
- var flowRenderer_v3_unified_default = {
1007
- getClasses,
1008
- draw
1009
- };
1010
- var parser = function() {
1011
- var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
1012
- for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
1013
- return o2;
1014
- }, "o"), $V0 = [1, 4], $V1 = [1, 3], $V2 = [1, 5], $V3 = [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], $V4 = [2, 2], $V5 = [1, 13], $V6 = [1, 14], $V7 = [1, 15], $V8 = [1, 16], $V9 = [1, 23], $Va = [1, 25], $Vb = [1, 26], $Vc = [1, 27], $Vd = [1, 49], $Ve = [1, 48], $Vf = [1, 29], $Vg = [1, 30], $Vh = [1, 31], $Vi = [1, 32], $Vj = [1, 33], $Vk = [1, 44], $Vl = [1, 46], $Vm = [1, 42], $Vn = [1, 47], $Vo = [1, 43], $Vp = [1, 50], $Vq = [1, 45], $Vr = [1, 51], $Vs = [1, 52], $Vt = [1, 34], $Vu = [1, 35], $Vv = [1, 36], $Vw = [1, 37], $Vx = [1, 57], $Vy = [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], $Vz = [1, 61], $VA = [1, 60], $VB = [1, 62], $VC = [8, 9, 11, 75, 77, 78], $VD = [1, 78], $VE = [1, 91], $VF = [1, 96], $VG = [1, 95], $VH = [1, 92], $VI = [1, 88], $VJ = [1, 94], $VK = [1, 90], $VL = [1, 97], $VM = [1, 93], $VN = [1, 98], $VO = [1, 89], $VP = [8, 9, 10, 11, 40, 75, 77, 78], $VQ = [8, 9, 10, 11, 40, 46, 75, 77, 78], $VR = [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], $VS = [8, 9, 11, 44, 60, 75, 77, 78, 89, 102, 105, 106, 109, 111, 114, 115, 116], $VT = [44, 60, 89, 102, 105, 106, 109, 111, 114, 115, 116], $VU = [1, 121], $VV = [1, 122], $VW = [1, 124], $VX = [1, 123], $VY = [44, 60, 62, 74, 89, 102, 105, 106, 109, 111, 114, 115, 116], $VZ = [1, 133], $V_ = [1, 147], $V$ = [1, 148], $V01 = [1, 149], $V11 = [1, 150], $V21 = [1, 135], $V31 = [1, 137], $V41 = [1, 141], $V51 = [1, 142], $V61 = [1, 143], $V71 = [1, 144], $V81 = [1, 145], $V91 = [1, 146], $Va1 = [1, 151], $Vb1 = [1, 152], $Vc1 = [1, 131], $Vd1 = [1, 132], $Ve1 = [1, 139], $Vf1 = [1, 134], $Vg1 = [1, 138], $Vh1 = [1, 136], $Vi1 = [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], $Vj1 = [1, 154], $Vk1 = [1, 156], $Vl1 = [8, 9, 11], $Vm1 = [8, 9, 10, 11, 14, 44, 60, 89, 105, 106, 109, 111, 114, 115, 116], $Vn1 = [1, 176], $Vo1 = [1, 172], $Vp1 = [1, 173], $Vq1 = [1, 177], $Vr1 = [1, 174], $Vs1 = [1, 175], $Vt1 = [77, 116, 119], $Vu1 = [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], $Vv1 = [10, 106], $Vw1 = [31, 49, 51, 53, 55, 57, 62, 64, 66, 67, 69, 71, 116, 117, 118], $Vx1 = [1, 247], $Vy1 = [1, 245], $Vz1 = [1, 249], $VA1 = [1, 243], $VB1 = [1, 244], $VC1 = [1, 246], $VD1 = [1, 248], $VE1 = [1, 250], $VF1 = [1, 268], $VG1 = [8, 9, 11, 106], $VH1 = [8, 9, 10, 11, 60, 84, 105, 106, 109, 110, 111, 112];
1015
- var parser2 = {
1016
- trace: /* @__PURE__ */ __name(function trace() {
1017
- }, "trace"),
1018
- yy: {},
1019
- symbols_: { "error": 2, "start": 3, "graphConfig": 4, "document": 5, "line": 6, "statement": 7, "SEMI": 8, "NEWLINE": 9, "SPACE": 10, "EOF": 11, "GRAPH": 12, "NODIR": 13, "DIR": 14, "FirstStmtSeparator": 15, "ending": 16, "endToken": 17, "spaceList": 18, "spaceListNewline": 19, "vertexStatement": 20, "separator": 21, "styleStatement": 22, "linkStyleStatement": 23, "classDefStatement": 24, "classStatement": 25, "clickStatement": 26, "subgraph": 27, "textNoTags": 28, "SQS": 29, "text": 30, "SQE": 31, "end": 32, "direction": 33, "acc_title": 34, "acc_title_value": 35, "acc_descr": 36, "acc_descr_value": 37, "acc_descr_multiline_value": 38, "shapeData": 39, "SHAPE_DATA": 40, "link": 41, "node": 42, "styledVertex": 43, "AMP": 44, "vertex": 45, "STYLE_SEPARATOR": 46, "idString": 47, "DOUBLECIRCLESTART": 48, "DOUBLECIRCLEEND": 49, "PS": 50, "PE": 51, "(-": 52, "-)": 53, "STADIUMSTART": 54, "STADIUMEND": 55, "SUBROUTINESTART": 56, "SUBROUTINEEND": 57, "VERTEX_WITH_PROPS_START": 58, "NODE_STRING[field]": 59, "COLON": 60, "NODE_STRING[value]": 61, "PIPE": 62, "CYLINDERSTART": 63, "CYLINDEREND": 64, "DIAMOND_START": 65, "DIAMOND_STOP": 66, "TAGEND": 67, "TRAPSTART": 68, "TRAPEND": 69, "INVTRAPSTART": 70, "INVTRAPEND": 71, "linkStatement": 72, "arrowText": 73, "TESTSTR": 74, "START_LINK": 75, "edgeText": 76, "LINK": 77, "LINK_ID": 78, "edgeTextToken": 79, "STR": 80, "MD_STR": 81, "textToken": 82, "keywords": 83, "STYLE": 84, "LINKSTYLE": 85, "CLASSDEF": 86, "CLASS": 87, "CLICK": 88, "DOWN": 89, "UP": 90, "textNoTagsToken": 91, "stylesOpt": 92, "idString[vertex]": 93, "idString[class]": 94, "CALLBACKNAME": 95, "CALLBACKARGS": 96, "HREF": 97, "LINK_TARGET": 98, "STR[link]": 99, "STR[tooltip]": 100, "alphaNum": 101, "DEFAULT": 102, "numList": 103, "INTERPOLATE": 104, "NUM": 105, "COMMA": 106, "style": 107, "styleComponent": 108, "NODE_STRING": 109, "UNIT": 110, "BRKT": 111, "PCT": 112, "idStringToken": 113, "MINUS": 114, "MULT": 115, "UNICODE_TEXT": 116, "TEXT": 117, "TAGSTART": 118, "EDGE_TEXT": 119, "alphaNumToken": 120, "direction_tb": 121, "direction_bt": 122, "direction_rl": 123, "direction_lr": 124, "$accept": 0, "$end": 1 },
1020
- 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" },
1021
- 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]],
1022
- performAction: /* @__PURE__ */ __name(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
1023
- var $0 = $$.length - 1;
1024
- switch (yystate) {
1025
- case 2:
1026
- this.$ = [];
1027
- break;
1028
- case 3:
1029
- if (!Array.isArray($$[$0]) || $$[$0].length > 0) {
1030
- $$[$0 - 1].push($$[$0]);
1031
- }
1032
- this.$ = $$[$0 - 1];
1033
- break;
1034
- case 4:
1035
- case 183:
1036
- this.$ = $$[$0];
1037
- break;
1038
- case 11:
1039
- yy.setDirection("TB");
1040
- this.$ = "TB";
1041
- break;
1042
- case 12:
1043
- yy.setDirection($$[$0 - 1]);
1044
- this.$ = $$[$0 - 1];
1045
- break;
1046
- case 27:
1047
- this.$ = $$[$0 - 1].nodes;
1048
- break;
1049
- case 28:
1050
- case 29:
1051
- case 30:
1052
- case 31:
1053
- case 32:
1054
- this.$ = [];
1055
- break;
1056
- case 33:
1057
- this.$ = yy.addSubGraph($$[$0 - 6], $$[$0 - 1], $$[$0 - 4]);
1058
- break;
1059
- case 34:
1060
- this.$ = yy.addSubGraph($$[$0 - 3], $$[$0 - 1], $$[$0 - 3]);
1061
- break;
1062
- case 35:
1063
- this.$ = yy.addSubGraph(void 0, $$[$0 - 1], void 0);
1064
- break;
1065
- case 37:
1066
- this.$ = $$[$0].trim();
1067
- yy.setAccTitle(this.$);
1068
- break;
1069
- case 38:
1070
- case 39:
1071
- this.$ = $$[$0].trim();
1072
- yy.setAccDescription(this.$);
1073
- break;
1074
- case 43:
1075
- this.$ = $$[$0 - 1] + $$[$0];
1076
- break;
1077
- case 44:
1078
- this.$ = $$[$0];
1079
- break;
1080
- case 45:
1081
- yy.addVertex($$[$0 - 1][$$[$0 - 1].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, $$[$0]);
1082
- yy.addLink($$[$0 - 3].stmt, $$[$0 - 1], $$[$0 - 2]);
1083
- this.$ = { stmt: $$[$0 - 1], nodes: $$[$0 - 1].concat($$[$0 - 3].nodes) };
1084
- break;
1085
- case 46:
1086
- yy.addLink($$[$0 - 2].stmt, $$[$0], $$[$0 - 1]);
1087
- this.$ = { stmt: $$[$0], nodes: $$[$0].concat($$[$0 - 2].nodes) };
1088
- break;
1089
- case 47:
1090
- yy.addLink($$[$0 - 3].stmt, $$[$0 - 1], $$[$0 - 2]);
1091
- this.$ = { stmt: $$[$0 - 1], nodes: $$[$0 - 1].concat($$[$0 - 3].nodes) };
1092
- break;
1093
- case 48:
1094
- this.$ = { stmt: $$[$0 - 1], nodes: $$[$0 - 1] };
1095
- break;
1096
- case 49:
1097
- yy.addVertex($$[$0 - 1][$$[$0 - 1].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, $$[$0]);
1098
- this.$ = { stmt: $$[$0 - 1], nodes: $$[$0 - 1], shapeData: $$[$0] };
1099
- break;
1100
- case 50:
1101
- this.$ = { stmt: $$[$0], nodes: $$[$0] };
1102
- break;
1103
- case 51:
1104
- this.$ = [$$[$0]];
1105
- break;
1106
- case 52:
1107
- yy.addVertex($$[$0 - 5][$$[$0 - 5].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, $$[$0 - 4]);
1108
- this.$ = $$[$0 - 5].concat($$[$0]);
1109
- break;
1110
- case 53:
1111
- this.$ = $$[$0 - 4].concat($$[$0]);
1112
- break;
1113
- case 54:
1114
- this.$ = $$[$0];
1115
- break;
1116
- case 55:
1117
- this.$ = $$[$0 - 2];
1118
- yy.setClass($$[$0 - 2], $$[$0]);
1119
- break;
1120
- case 56:
1121
- this.$ = $$[$0 - 3];
1122
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "square");
1123
- break;
1124
- case 57:
1125
- this.$ = $$[$0 - 3];
1126
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "doublecircle");
1127
- break;
1128
- case 58:
1129
- this.$ = $$[$0 - 5];
1130
- yy.addVertex($$[$0 - 5], $$[$0 - 2], "circle");
1131
- break;
1132
- case 59:
1133
- this.$ = $$[$0 - 3];
1134
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "ellipse");
1135
- break;
1136
- case 60:
1137
- this.$ = $$[$0 - 3];
1138
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "stadium");
1139
- break;
1140
- case 61:
1141
- this.$ = $$[$0 - 3];
1142
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "subroutine");
1143
- break;
1144
- case 62:
1145
- this.$ = $$[$0 - 7];
1146
- yy.addVertex($$[$0 - 7], $$[$0 - 1], "rect", void 0, void 0, void 0, Object.fromEntries([[$$[$0 - 5], $$[$0 - 3]]]));
1147
- break;
1148
- case 63:
1149
- this.$ = $$[$0 - 3];
1150
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "cylinder");
1151
- break;
1152
- case 64:
1153
- this.$ = $$[$0 - 3];
1154
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "round");
1155
- break;
1156
- case 65:
1157
- this.$ = $$[$0 - 3];
1158
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "diamond");
1159
- break;
1160
- case 66:
1161
- this.$ = $$[$0 - 5];
1162
- yy.addVertex($$[$0 - 5], $$[$0 - 2], "hexagon");
1163
- break;
1164
- case 67:
1165
- this.$ = $$[$0 - 3];
1166
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "odd");
1167
- break;
1168
- case 68:
1169
- this.$ = $$[$0 - 3];
1170
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "trapezoid");
1171
- break;
1172
- case 69:
1173
- this.$ = $$[$0 - 3];
1174
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "inv_trapezoid");
1175
- break;
1176
- case 70:
1177
- this.$ = $$[$0 - 3];
1178
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "lean_right");
1179
- break;
1180
- case 71:
1181
- this.$ = $$[$0 - 3];
1182
- yy.addVertex($$[$0 - 3], $$[$0 - 1], "lean_left");
1183
- break;
1184
- case 72:
1185
- this.$ = $$[$0];
1186
- yy.addVertex($$[$0]);
1187
- break;
1188
- case 73:
1189
- $$[$0 - 1].text = $$[$0];
1190
- this.$ = $$[$0 - 1];
1191
- break;
1192
- case 74:
1193
- case 75:
1194
- $$[$0 - 2].text = $$[$0 - 1];
1195
- this.$ = $$[$0 - 2];
1196
- break;
1197
- case 76:
1198
- this.$ = $$[$0];
1199
- break;
1200
- case 77:
1201
- var inf = yy.destructLink($$[$0], $$[$0 - 2]);
1202
- this.$ = { "type": inf.type, "stroke": inf.stroke, "length": inf.length, "text": $$[$0 - 1] };
1203
- break;
1204
- case 78:
1205
- var inf = yy.destructLink($$[$0], $$[$0 - 2]);
1206
- this.$ = { "type": inf.type, "stroke": inf.stroke, "length": inf.length, "text": $$[$0 - 1], "id": $$[$0 - 3] };
1207
- break;
1208
- case 79:
1209
- this.$ = { text: $$[$0], type: "text" };
1210
- break;
1211
- case 80:
1212
- this.$ = { text: $$[$0 - 1].text + "" + $$[$0], type: $$[$0 - 1].type };
1213
- break;
1214
- case 81:
1215
- this.$ = { text: $$[$0], type: "string" };
1216
- break;
1217
- case 82:
1218
- this.$ = { text: $$[$0], type: "markdown" };
1219
- break;
1220
- case 83:
1221
- var inf = yy.destructLink($$[$0]);
1222
- this.$ = { "type": inf.type, "stroke": inf.stroke, "length": inf.length };
1223
- break;
1224
- case 84:
1225
- var inf = yy.destructLink($$[$0]);
1226
- this.$ = { "type": inf.type, "stroke": inf.stroke, "length": inf.length, "id": $$[$0 - 1] };
1227
- break;
1228
- case 85:
1229
- this.$ = $$[$0 - 1];
1230
- break;
1231
- case 86:
1232
- this.$ = { text: $$[$0], type: "text" };
1233
- break;
1234
- case 87:
1235
- this.$ = { text: $$[$0 - 1].text + "" + $$[$0], type: $$[$0 - 1].type };
1236
- break;
1237
- case 88:
1238
- this.$ = { text: $$[$0], type: "string" };
1239
- break;
1240
- case 89:
1241
- case 104:
1242
- this.$ = { text: $$[$0], type: "markdown" };
1243
- break;
1244
- case 101:
1245
- this.$ = { text: $$[$0], type: "text" };
1246
- break;
1247
- case 102:
1248
- this.$ = { text: $$[$0 - 1].text + "" + $$[$0], type: $$[$0 - 1].type };
1249
- break;
1250
- case 103:
1251
- this.$ = { text: $$[$0], type: "text" };
1252
- break;
1253
- case 105:
1254
- this.$ = $$[$0 - 4];
1255
- yy.addClass($$[$0 - 2], $$[$0]);
1256
- break;
1257
- case 106:
1258
- this.$ = $$[$0 - 4];
1259
- yy.setClass($$[$0 - 2], $$[$0]);
1260
- break;
1261
- case 107:
1262
- case 115:
1263
- this.$ = $$[$0 - 1];
1264
- yy.setClickEvent($$[$0 - 1], $$[$0]);
1265
- break;
1266
- case 108:
1267
- case 116:
1268
- this.$ = $$[$0 - 3];
1269
- yy.setClickEvent($$[$0 - 3], $$[$0 - 2]);
1270
- yy.setTooltip($$[$0 - 3], $$[$0]);
1271
- break;
1272
- case 109:
1273
- this.$ = $$[$0 - 2];
1274
- yy.setClickEvent($$[$0 - 2], $$[$0 - 1], $$[$0]);
1275
- break;
1276
- case 110:
1277
- this.$ = $$[$0 - 4];
1278
- yy.setClickEvent($$[$0 - 4], $$[$0 - 3], $$[$0 - 2]);
1279
- yy.setTooltip($$[$0 - 4], $$[$0]);
1280
- break;
1281
- case 111:
1282
- this.$ = $$[$0 - 2];
1283
- yy.setLink($$[$0 - 2], $$[$0]);
1284
- break;
1285
- case 112:
1286
- this.$ = $$[$0 - 4];
1287
- yy.setLink($$[$0 - 4], $$[$0 - 2]);
1288
- yy.setTooltip($$[$0 - 4], $$[$0]);
1289
- break;
1290
- case 113:
1291
- this.$ = $$[$0 - 4];
1292
- yy.setLink($$[$0 - 4], $$[$0 - 2], $$[$0]);
1293
- break;
1294
- case 114:
1295
- this.$ = $$[$0 - 6];
1296
- yy.setLink($$[$0 - 6], $$[$0 - 4], $$[$0]);
1297
- yy.setTooltip($$[$0 - 6], $$[$0 - 2]);
1298
- break;
1299
- case 117:
1300
- this.$ = $$[$0 - 1];
1301
- yy.setLink($$[$0 - 1], $$[$0]);
1302
- break;
1303
- case 118:
1304
- this.$ = $$[$0 - 3];
1305
- yy.setLink($$[$0 - 3], $$[$0 - 2]);
1306
- yy.setTooltip($$[$0 - 3], $$[$0]);
1307
- break;
1308
- case 119:
1309
- this.$ = $$[$0 - 3];
1310
- yy.setLink($$[$0 - 3], $$[$0 - 2], $$[$0]);
1311
- break;
1312
- case 120:
1313
- this.$ = $$[$0 - 5];
1314
- yy.setLink($$[$0 - 5], $$[$0 - 4], $$[$0]);
1315
- yy.setTooltip($$[$0 - 5], $$[$0 - 2]);
1316
- break;
1317
- case 121:
1318
- this.$ = $$[$0 - 4];
1319
- yy.addVertex($$[$0 - 2], void 0, void 0, $$[$0]);
1320
- break;
1321
- case 122:
1322
- this.$ = $$[$0 - 4];
1323
- yy.updateLink([$$[$0 - 2]], $$[$0]);
1324
- break;
1325
- case 123:
1326
- this.$ = $$[$0 - 4];
1327
- yy.updateLink($$[$0 - 2], $$[$0]);
1328
- break;
1329
- case 124:
1330
- this.$ = $$[$0 - 8];
1331
- yy.updateLinkInterpolate([$$[$0 - 6]], $$[$0 - 2]);
1332
- yy.updateLink([$$[$0 - 6]], $$[$0]);
1333
- break;
1334
- case 125:
1335
- this.$ = $$[$0 - 8];
1336
- yy.updateLinkInterpolate($$[$0 - 6], $$[$0 - 2]);
1337
- yy.updateLink($$[$0 - 6], $$[$0]);
1338
- break;
1339
- case 126:
1340
- this.$ = $$[$0 - 6];
1341
- yy.updateLinkInterpolate([$$[$0 - 4]], $$[$0]);
1342
- break;
1343
- case 127:
1344
- this.$ = $$[$0 - 6];
1345
- yy.updateLinkInterpolate($$[$0 - 4], $$[$0]);
1346
- break;
1347
- case 128:
1348
- case 130:
1349
- this.$ = [$$[$0]];
1350
- break;
1351
- case 129:
1352
- case 131:
1353
- $$[$0 - 2].push($$[$0]);
1354
- this.$ = $$[$0 - 2];
1355
- break;
1356
- case 133:
1357
- this.$ = $$[$0 - 1] + $$[$0];
1358
- break;
1359
- case 181:
1360
- this.$ = $$[$0];
1361
- break;
1362
- case 182:
1363
- this.$ = $$[$0 - 1] + "" + $$[$0];
1364
- break;
1365
- case 184:
1366
- this.$ = $$[$0 - 1] + "" + $$[$0];
1367
- break;
1368
- case 185:
1369
- this.$ = { stmt: "dir", value: "TB" };
1370
- break;
1371
- case 186:
1372
- this.$ = { stmt: "dir", value: "BT" };
1373
- break;
1374
- case 187:
1375
- this.$ = { stmt: "dir", value: "RL" };
1376
- break;
1377
- case 188:
1378
- this.$ = { stmt: "dir", value: "LR" };
1379
- break;
1380
- }
1381
- }, "anonymous"),
1382
- table: [{ 3: 1, 4: 2, 9: $V0, 10: $V1, 12: $V2 }, { 1: [3] }, o($V3, $V4, { 5: 6 }), { 4: 7, 9: $V0, 10: $V1, 12: $V2 }, { 4: 8, 9: $V0, 10: $V1, 12: $V2 }, { 13: [1, 9], 14: [1, 10] }, { 1: [2, 1], 6: 11, 7: 12, 8: $V5, 9: $V6, 10: $V7, 11: $V8, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: $V9, 33: 24, 34: $Va, 36: $Vb, 38: $Vc, 42: 28, 43: 38, 44: $Vd, 45: 39, 47: 40, 60: $Ve, 84: $Vf, 85: $Vg, 86: $Vh, 87: $Vi, 88: $Vj, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 41, 114: $Vq, 115: $Vr, 116: $Vs, 121: $Vt, 122: $Vu, 123: $Vv, 124: $Vw }, o($V3, [2, 9]), o($V3, [2, 10]), o($V3, [2, 11]), { 8: [1, 54], 9: [1, 55], 10: $Vx, 15: 53, 18: 56 }, o($Vy, [2, 3]), o($Vy, [2, 4]), o($Vy, [2, 5]), o($Vy, [2, 6]), o($Vy, [2, 7]), o($Vy, [2, 8]), { 8: $Vz, 9: $VA, 11: $VB, 21: 58, 41: 59, 72: 63, 75: [1, 64], 77: [1, 66], 78: [1, 65] }, { 8: $Vz, 9: $VA, 11: $VB, 21: 67 }, { 8: $Vz, 9: $VA, 11: $VB, 21: 68 }, { 8: $Vz, 9: $VA, 11: $VB, 21: 69 }, { 8: $Vz, 9: $VA, 11: $VB, 21: 70 }, { 8: $Vz, 9: $VA, 11: $VB, 21: 71 }, { 8: $Vz, 9: $VA, 10: [1, 72], 11: $VB, 21: 73 }, o($Vy, [2, 36]), { 35: [1, 74] }, { 37: [1, 75] }, o($Vy, [2, 39]), o($VC, [2, 50], { 18: 76, 39: 77, 10: $Vx, 40: $VD }), { 10: [1, 79] }, { 10: [1, 80] }, { 10: [1, 81] }, { 10: [1, 82] }, { 14: $VE, 44: $VF, 60: $VG, 80: [1, 86], 89: $VH, 95: [1, 83], 97: [1, 84], 101: 85, 105: $VI, 106: $VJ, 109: $VK, 111: $VL, 114: $VM, 115: $VN, 116: $VO, 120: 87 }, o($Vy, [2, 185]), o($Vy, [2, 186]), o($Vy, [2, 187]), o($Vy, [2, 188]), o($VP, [2, 51]), o($VP, [2, 54], { 46: [1, 99] }), o($VQ, [2, 72], { 113: 112, 29: [1, 100], 44: $Vd, 48: [1, 101], 50: [1, 102], 52: [1, 103], 54: [1, 104], 56: [1, 105], 58: [1, 106], 60: $Ve, 63: [1, 107], 65: [1, 108], 67: [1, 109], 68: [1, 110], 70: [1, 111], 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 114: $Vq, 115: $Vr, 116: $Vs }), o($VR, [2, 181]), o($VR, [2, 142]), o($VR, [2, 143]), o($VR, [2, 144]), o($VR, [2, 145]), o($VR, [2, 146]), o($VR, [2, 147]), o($VR, [2, 148]), o($VR, [2, 149]), o($VR, [2, 150]), o($VR, [2, 151]), o($VR, [2, 152]), o($V3, [2, 12]), o($V3, [2, 18]), o($V3, [2, 19]), { 9: [1, 113] }, o($VS, [2, 26], { 18: 114, 10: $Vx }), o($Vy, [2, 27]), { 42: 115, 43: 38, 44: $Vd, 45: 39, 47: 40, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 41, 114: $Vq, 115: $Vr, 116: $Vs }, o($Vy, [2, 40]), o($Vy, [2, 41]), o($Vy, [2, 42]), o($VT, [2, 76], { 73: 116, 62: [1, 118], 74: [1, 117] }), { 76: 119, 79: 120, 80: $VU, 81: $VV, 116: $VW, 119: $VX }, { 75: [1, 125], 77: [1, 126] }, o($VY, [2, 83]), o($Vy, [2, 28]), o($Vy, [2, 29]), o($Vy, [2, 30]), o($Vy, [2, 31]), o($Vy, [2, 32]), { 10: $VZ, 12: $V_, 14: $V$, 27: $V01, 28: 127, 32: $V11, 44: $V21, 60: $V31, 75: $V41, 80: [1, 129], 81: [1, 130], 83: 140, 84: $V51, 85: $V61, 86: $V71, 87: $V81, 88: $V91, 89: $Va1, 90: $Vb1, 91: 128, 105: $Vc1, 109: $Vd1, 111: $Ve1, 114: $Vf1, 115: $Vg1, 116: $Vh1 }, o($Vi1, $V4, { 5: 153 }), o($Vy, [2, 37]), o($Vy, [2, 38]), o($VC, [2, 48], { 44: $Vj1 }), o($VC, [2, 49], { 18: 155, 10: $Vx, 40: $Vk1 }), o($VP, [2, 44]), { 44: $Vd, 47: 157, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 41, 114: $Vq, 115: $Vr, 116: $Vs }, { 102: [1, 158], 103: 159, 105: [1, 160] }, { 44: $Vd, 47: 161, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 41, 114: $Vq, 115: $Vr, 116: $Vs }, { 44: $Vd, 47: 162, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 41, 114: $Vq, 115: $Vr, 116: $Vs }, o($Vl1, [2, 107], { 10: [1, 163], 96: [1, 164] }), { 80: [1, 165] }, o($Vl1, [2, 115], { 120: 167, 10: [1, 166], 14: $VE, 44: $VF, 60: $VG, 89: $VH, 105: $VI, 106: $VJ, 109: $VK, 111: $VL, 114: $VM, 115: $VN, 116: $VO }), o($Vl1, [2, 117], { 10: [1, 168] }), o($Vm1, [2, 183]), o($Vm1, [2, 170]), o($Vm1, [2, 171]), o($Vm1, [2, 172]), o($Vm1, [2, 173]), o($Vm1, [2, 174]), o($Vm1, [2, 175]), o($Vm1, [2, 176]), o($Vm1, [2, 177]), o($Vm1, [2, 178]), o($Vm1, [2, 179]), o($Vm1, [2, 180]), { 44: $Vd, 47: 169, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 41, 114: $Vq, 115: $Vr, 116: $Vs }, { 30: 170, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 30: 178, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 30: 180, 50: [1, 179], 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 30: 181, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 30: 182, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 30: 183, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 109: [1, 184] }, { 30: 185, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 30: 186, 65: [1, 187], 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 30: 188, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 30: 189, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 30: 190, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, o($VR, [2, 182]), o($V3, [2, 20]), o($VS, [2, 25]), o($VC, [2, 46], { 39: 191, 18: 192, 10: $Vx, 40: $VD }), o($VT, [2, 73], { 10: [1, 193] }), { 10: [1, 194] }, { 30: 195, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 77: [1, 196], 79: 197, 116: $VW, 119: $VX }, o($Vt1, [2, 79]), o($Vt1, [2, 81]), o($Vt1, [2, 82]), o($Vt1, [2, 168]), o($Vt1, [2, 169]), { 76: 198, 79: 120, 80: $VU, 81: $VV, 116: $VW, 119: $VX }, o($VY, [2, 84]), { 8: $Vz, 9: $VA, 10: $VZ, 11: $VB, 12: $V_, 14: $V$, 21: 200, 27: $V01, 29: [1, 199], 32: $V11, 44: $V21, 60: $V31, 75: $V41, 83: 140, 84: $V51, 85: $V61, 86: $V71, 87: $V81, 88: $V91, 89: $Va1, 90: $Vb1, 91: 201, 105: $Vc1, 109: $Vd1, 111: $Ve1, 114: $Vf1, 115: $Vg1, 116: $Vh1 }, o($Vu1, [2, 101]), o($Vu1, [2, 103]), o($Vu1, [2, 104]), o($Vu1, [2, 157]), o($Vu1, [2, 158]), o($Vu1, [2, 159]), o($Vu1, [2, 160]), o($Vu1, [2, 161]), o($Vu1, [2, 162]), o($Vu1, [2, 163]), o($Vu1, [2, 164]), o($Vu1, [2, 165]), o($Vu1, [2, 166]), o($Vu1, [2, 167]), o($Vu1, [2, 90]), o($Vu1, [2, 91]), o($Vu1, [2, 92]), o($Vu1, [2, 93]), o($Vu1, [2, 94]), o($Vu1, [2, 95]), o($Vu1, [2, 96]), o($Vu1, [2, 97]), o($Vu1, [2, 98]), o($Vu1, [2, 99]), o($Vu1, [2, 100]), { 6: 11, 7: 12, 8: $V5, 9: $V6, 10: $V7, 11: $V8, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: $V9, 32: [1, 202], 33: 24, 34: $Va, 36: $Vb, 38: $Vc, 42: 28, 43: 38, 44: $Vd, 45: 39, 47: 40, 60: $Ve, 84: $Vf, 85: $Vg, 86: $Vh, 87: $Vi, 88: $Vj, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 41, 114: $Vq, 115: $Vr, 116: $Vs, 121: $Vt, 122: $Vu, 123: $Vv, 124: $Vw }, { 10: $Vx, 18: 203 }, { 44: [1, 204] }, o($VP, [2, 43]), { 10: [1, 205], 44: $Vd, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 112, 114: $Vq, 115: $Vr, 116: $Vs }, { 10: [1, 206] }, { 10: [1, 207], 106: [1, 208] }, o($Vv1, [2, 128]), { 10: [1, 209], 44: $Vd, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 112, 114: $Vq, 115: $Vr, 116: $Vs }, { 10: [1, 210], 44: $Vd, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 112, 114: $Vq, 115: $Vr, 116: $Vs }, { 80: [1, 211] }, o($Vl1, [2, 109], { 10: [1, 212] }), o($Vl1, [2, 111], { 10: [1, 213] }), { 80: [1, 214] }, o($Vm1, [2, 184]), { 80: [1, 215], 98: [1, 216] }, o($VP, [2, 55], { 113: 112, 44: $Vd, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 114: $Vq, 115: $Vr, 116: $Vs }), { 31: [1, 217], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, o($Vw1, [2, 86]), o($Vw1, [2, 88]), o($Vw1, [2, 89]), o($Vw1, [2, 153]), o($Vw1, [2, 154]), o($Vw1, [2, 155]), o($Vw1, [2, 156]), { 49: [1, 219], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 30: 220, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 51: [1, 221], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 53: [1, 222], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 55: [1, 223], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 57: [1, 224], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 60: [1, 225] }, { 64: [1, 226], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 66: [1, 227], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 30: 228, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 31: [1, 229], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 67: $Vn1, 69: [1, 230], 71: [1, 231], 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 67: $Vn1, 69: [1, 233], 71: [1, 232], 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, o($VC, [2, 45], { 18: 155, 10: $Vx, 40: $Vk1 }), o($VC, [2, 47], { 44: $Vj1 }), o($VT, [2, 75]), o($VT, [2, 74]), { 62: [1, 234], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, o($VT, [2, 77]), o($Vt1, [2, 80]), { 77: [1, 235], 79: 197, 116: $VW, 119: $VX }, { 30: 236, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, o($Vi1, $V4, { 5: 237 }), o($Vu1, [2, 102]), o($Vy, [2, 35]), { 43: 238, 44: $Vd, 45: 39, 47: 40, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 41, 114: $Vq, 115: $Vr, 116: $Vs }, { 10: $Vx, 18: 239 }, { 10: $Vx1, 60: $Vy1, 84: $Vz1, 92: 240, 105: $VA1, 107: 241, 108: 242, 109: $VB1, 110: $VC1, 111: $VD1, 112: $VE1 }, { 10: $Vx1, 60: $Vy1, 84: $Vz1, 92: 251, 104: [1, 252], 105: $VA1, 107: 241, 108: 242, 109: $VB1, 110: $VC1, 111: $VD1, 112: $VE1 }, { 10: $Vx1, 60: $Vy1, 84: $Vz1, 92: 253, 104: [1, 254], 105: $VA1, 107: 241, 108: 242, 109: $VB1, 110: $VC1, 111: $VD1, 112: $VE1 }, { 105: [1, 255] }, { 10: $Vx1, 60: $Vy1, 84: $Vz1, 92: 256, 105: $VA1, 107: 241, 108: 242, 109: $VB1, 110: $VC1, 111: $VD1, 112: $VE1 }, { 44: $Vd, 47: 257, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 41, 114: $Vq, 115: $Vr, 116: $Vs }, o($Vl1, [2, 108]), { 80: [1, 258] }, { 80: [1, 259], 98: [1, 260] }, o($Vl1, [2, 116]), o($Vl1, [2, 118], { 10: [1, 261] }), o($Vl1, [2, 119]), o($VQ, [2, 56]), o($Vw1, [2, 87]), o($VQ, [2, 57]), { 51: [1, 262], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, o($VQ, [2, 64]), o($VQ, [2, 59]), o($VQ, [2, 60]), o($VQ, [2, 61]), { 109: [1, 263] }, o($VQ, [2, 63]), o($VQ, [2, 65]), { 66: [1, 264], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, o($VQ, [2, 67]), o($VQ, [2, 68]), o($VQ, [2, 70]), o($VQ, [2, 69]), o($VQ, [2, 71]), o([10, 44, 60, 89, 102, 105, 106, 109, 111, 114, 115, 116], [2, 85]), o($VT, [2, 78]), { 31: [1, 265], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 6: 11, 7: 12, 8: $V5, 9: $V6, 10: $V7, 11: $V8, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: $V9, 32: [1, 266], 33: 24, 34: $Va, 36: $Vb, 38: $Vc, 42: 28, 43: 38, 44: $Vd, 45: 39, 47: 40, 60: $Ve, 84: $Vf, 85: $Vg, 86: $Vh, 87: $Vi, 88: $Vj, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 41, 114: $Vq, 115: $Vr, 116: $Vs, 121: $Vt, 122: $Vu, 123: $Vv, 124: $Vw }, o($VP, [2, 53]), { 43: 267, 44: $Vd, 45: 39, 47: 40, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 41, 114: $Vq, 115: $Vr, 116: $Vs }, o($Vl1, [2, 121], { 106: $VF1 }), o($VG1, [2, 130], { 108: 269, 10: $Vx1, 60: $Vy1, 84: $Vz1, 105: $VA1, 109: $VB1, 110: $VC1, 111: $VD1, 112: $VE1 }), o($VH1, [2, 132]), o($VH1, [2, 134]), o($VH1, [2, 135]), o($VH1, [2, 136]), o($VH1, [2, 137]), o($VH1, [2, 138]), o($VH1, [2, 139]), o($VH1, [2, 140]), o($VH1, [2, 141]), o($Vl1, [2, 122], { 106: $VF1 }), { 10: [1, 270] }, o($Vl1, [2, 123], { 106: $VF1 }), { 10: [1, 271] }, o($Vv1, [2, 129]), o($Vl1, [2, 105], { 106: $VF1 }), o($Vl1, [2, 106], { 113: 112, 44: $Vd, 60: $Ve, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 114: $Vq, 115: $Vr, 116: $Vs }), o($Vl1, [2, 110]), o($Vl1, [2, 112], { 10: [1, 272] }), o($Vl1, [2, 113]), { 98: [1, 273] }, { 51: [1, 274] }, { 62: [1, 275] }, { 66: [1, 276] }, { 8: $Vz, 9: $VA, 11: $VB, 21: 277 }, o($Vy, [2, 34]), o($VP, [2, 52]), { 10: $Vx1, 60: $Vy1, 84: $Vz1, 105: $VA1, 107: 278, 108: 242, 109: $VB1, 110: $VC1, 111: $VD1, 112: $VE1 }, o($VH1, [2, 133]), { 14: $VE, 44: $VF, 60: $VG, 89: $VH, 101: 279, 105: $VI, 106: $VJ, 109: $VK, 111: $VL, 114: $VM, 115: $VN, 116: $VO, 120: 87 }, { 14: $VE, 44: $VF, 60: $VG, 89: $VH, 101: 280, 105: $VI, 106: $VJ, 109: $VK, 111: $VL, 114: $VM, 115: $VN, 116: $VO, 120: 87 }, { 98: [1, 281] }, o($Vl1, [2, 120]), o($VQ, [2, 58]), { 30: 282, 67: $Vn1, 80: $Vo1, 81: $Vp1, 82: 171, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, o($VQ, [2, 66]), o($Vi1, $V4, { 5: 283 }), o($VG1, [2, 131], { 108: 269, 10: $Vx1, 60: $Vy1, 84: $Vz1, 105: $VA1, 109: $VB1, 110: $VC1, 111: $VD1, 112: $VE1 }), o($Vl1, [2, 126], { 120: 167, 10: [1, 284], 14: $VE, 44: $VF, 60: $VG, 89: $VH, 105: $VI, 106: $VJ, 109: $VK, 111: $VL, 114: $VM, 115: $VN, 116: $VO }), o($Vl1, [2, 127], { 120: 167, 10: [1, 285], 14: $VE, 44: $VF, 60: $VG, 89: $VH, 105: $VI, 106: $VJ, 109: $VK, 111: $VL, 114: $VM, 115: $VN, 116: $VO }), o($Vl1, [2, 114]), { 31: [1, 286], 67: $Vn1, 82: 218, 116: $Vq1, 117: $Vr1, 118: $Vs1 }, { 6: 11, 7: 12, 8: $V5, 9: $V6, 10: $V7, 11: $V8, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: $V9, 32: [1, 287], 33: 24, 34: $Va, 36: $Vb, 38: $Vc, 42: 28, 43: 38, 44: $Vd, 45: 39, 47: 40, 60: $Ve, 84: $Vf, 85: $Vg, 86: $Vh, 87: $Vi, 88: $Vj, 89: $Vk, 102: $Vl, 105: $Vm, 106: $Vn, 109: $Vo, 111: $Vp, 113: 41, 114: $Vq, 115: $Vr, 116: $Vs, 121: $Vt, 122: $Vu, 123: $Vv, 124: $Vw }, { 10: $Vx1, 60: $Vy1, 84: $Vz1, 92: 288, 105: $VA1, 107: 241, 108: 242, 109: $VB1, 110: $VC1, 111: $VD1, 112: $VE1 }, { 10: $Vx1, 60: $Vy1, 84: $Vz1, 92: 289, 105: $VA1, 107: 241, 108: 242, 109: $VB1, 110: $VC1, 111: $VD1, 112: $VE1 }, o($VQ, [2, 62]), o($Vy, [2, 33]), o($Vl1, [2, 124], { 106: $VF1 }), o($Vl1, [2, 125], { 106: $VF1 })],
1383
- defaultActions: {},
1384
- parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
1385
- if (hash.recoverable) {
1386
- this.trace(str);
1387
- } else {
1388
- var error = new Error(str);
1389
- error.hash = hash;
1390
- throw error;
1391
- }
1392
- }, "parseError"),
1393
- parse: /* @__PURE__ */ __name(function parse(input) {
1394
- var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, TERROR = 2, EOF = 1;
1395
- var args = lstack.slice.call(arguments, 1);
1396
- var lexer2 = Object.create(this.lexer);
1397
- var sharedState = { yy: {} };
1398
- for (var k in this.yy) {
1399
- if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
1400
- sharedState.yy[k] = this.yy[k];
1401
- }
1402
- }
1403
- lexer2.setInput(input, sharedState.yy);
1404
- sharedState.yy.lexer = lexer2;
1405
- sharedState.yy.parser = this;
1406
- if (typeof lexer2.yylloc == "undefined") {
1407
- lexer2.yylloc = {};
1408
- }
1409
- var yyloc = lexer2.yylloc;
1410
- lstack.push(yyloc);
1411
- var ranges = lexer2.options && lexer2.options.ranges;
1412
- if (typeof sharedState.yy.parseError === "function") {
1413
- this.parseError = sharedState.yy.parseError;
1414
- } else {
1415
- this.parseError = Object.getPrototypeOf(this).parseError;
1416
- }
1417
- function popStack(n) {
1418
- stack.length = stack.length - 2 * n;
1419
- vstack.length = vstack.length - n;
1420
- lstack.length = lstack.length - n;
1421
- }
1422
- __name(popStack, "popStack");
1423
- function lex() {
1424
- var token;
1425
- token = tstack.pop() || lexer2.lex() || EOF;
1426
- if (typeof token !== "number") {
1427
- if (token instanceof Array) {
1428
- tstack = token;
1429
- token = tstack.pop();
1430
- }
1431
- token = self.symbols_[token] || token;
1432
- }
1433
- return token;
1434
- }
1435
- __name(lex, "lex");
1436
- var symbol, state, action, r, yyval = {}, p, len, newState, expected;
1437
- while (true) {
1438
- state = stack[stack.length - 1];
1439
- if (this.defaultActions[state]) {
1440
- action = this.defaultActions[state];
1441
- } else {
1442
- if (symbol === null || typeof symbol == "undefined") {
1443
- symbol = lex();
1444
- }
1445
- action = table[state] && table[state][symbol];
1446
- }
1447
- if (typeof action === "undefined" || !action.length || !action[0]) {
1448
- var errStr = "";
1449
- expected = [];
1450
- for (p in table[state]) {
1451
- if (this.terminals_[p] && p > TERROR) {
1452
- expected.push("'" + this.terminals_[p] + "'");
1453
- }
1454
- }
1455
- if (lexer2.showPosition) {
1456
- errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
1457
- } else {
1458
- errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
1459
- }
1460
- this.parseError(errStr, {
1461
- text: lexer2.match,
1462
- token: this.terminals_[symbol] || symbol,
1463
- line: lexer2.yylineno,
1464
- loc: yyloc,
1465
- expected
1466
- });
1467
- }
1468
- if (action[0] instanceof Array && action.length > 1) {
1469
- throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
1470
- }
1471
- switch (action[0]) {
1472
- case 1:
1473
- stack.push(symbol);
1474
- vstack.push(lexer2.yytext);
1475
- lstack.push(lexer2.yylloc);
1476
- stack.push(action[1]);
1477
- symbol = null;
1478
- {
1479
- yyleng = lexer2.yyleng;
1480
- yytext = lexer2.yytext;
1481
- yylineno = lexer2.yylineno;
1482
- yyloc = lexer2.yylloc;
1483
- }
1484
- break;
1485
- case 2:
1486
- len = this.productions_[action[1]][1];
1487
- yyval.$ = vstack[vstack.length - len];
1488
- yyval._$ = {
1489
- first_line: lstack[lstack.length - (len || 1)].first_line,
1490
- last_line: lstack[lstack.length - 1].last_line,
1491
- first_column: lstack[lstack.length - (len || 1)].first_column,
1492
- last_column: lstack[lstack.length - 1].last_column
1493
- };
1494
- if (ranges) {
1495
- yyval._$.range = [
1496
- lstack[lstack.length - (len || 1)].range[0],
1497
- lstack[lstack.length - 1].range[1]
1498
- ];
1499
- }
1500
- r = this.performAction.apply(yyval, [
1501
- yytext,
1502
- yyleng,
1503
- yylineno,
1504
- sharedState.yy,
1505
- action[1],
1506
- vstack,
1507
- lstack
1508
- ].concat(args));
1509
- if (typeof r !== "undefined") {
1510
- return r;
1511
- }
1512
- if (len) {
1513
- stack = stack.slice(0, -1 * len * 2);
1514
- vstack = vstack.slice(0, -1 * len);
1515
- lstack = lstack.slice(0, -1 * len);
1516
- }
1517
- stack.push(this.productions_[action[1]][0]);
1518
- vstack.push(yyval.$);
1519
- lstack.push(yyval._$);
1520
- newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
1521
- stack.push(newState);
1522
- break;
1523
- case 3:
1524
- return true;
1525
- }
1526
- }
1527
- return true;
1528
- }, "parse")
1529
- };
1530
- var lexer = /* @__PURE__ */ function() {
1531
- var lexer2 = {
1532
- EOF: 1,
1533
- parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
1534
- if (this.yy.parser) {
1535
- this.yy.parser.parseError(str, hash);
1536
- } else {
1537
- throw new Error(str);
1538
- }
1539
- }, "parseError"),
1540
- // resets the lexer, sets new input
1541
- setInput: /* @__PURE__ */ __name(function(input, yy) {
1542
- this.yy = yy || this.yy || {};
1543
- this._input = input;
1544
- this._more = this._backtrack = this.done = false;
1545
- this.yylineno = this.yyleng = 0;
1546
- this.yytext = this.matched = this.match = "";
1547
- this.conditionStack = ["INITIAL"];
1548
- this.yylloc = {
1549
- first_line: 1,
1550
- first_column: 0,
1551
- last_line: 1,
1552
- last_column: 0
1553
- };
1554
- if (this.options.ranges) {
1555
- this.yylloc.range = [0, 0];
1556
- }
1557
- this.offset = 0;
1558
- return this;
1559
- }, "setInput"),
1560
- // consumes and returns one char from the input
1561
- input: /* @__PURE__ */ __name(function() {
1562
- var ch = this._input[0];
1563
- this.yytext += ch;
1564
- this.yyleng++;
1565
- this.offset++;
1566
- this.match += ch;
1567
- this.matched += ch;
1568
- var lines = ch.match(/(?:\r\n?|\n).*/g);
1569
- if (lines) {
1570
- this.yylineno++;
1571
- this.yylloc.last_line++;
1572
- } else {
1573
- this.yylloc.last_column++;
1574
- }
1575
- if (this.options.ranges) {
1576
- this.yylloc.range[1]++;
1577
- }
1578
- this._input = this._input.slice(1);
1579
- return ch;
1580
- }, "input"),
1581
- // unshifts one char (or a string) into the input
1582
- unput: /* @__PURE__ */ __name(function(ch) {
1583
- var len = ch.length;
1584
- var lines = ch.split(/(?:\r\n?|\n)/g);
1585
- this._input = ch + this._input;
1586
- this.yytext = this.yytext.substr(0, this.yytext.length - len);
1587
- this.offset -= len;
1588
- var oldLines = this.match.split(/(?:\r\n?|\n)/g);
1589
- this.match = this.match.substr(0, this.match.length - 1);
1590
- this.matched = this.matched.substr(0, this.matched.length - 1);
1591
- if (lines.length - 1) {
1592
- this.yylineno -= lines.length - 1;
1593
- }
1594
- var r = this.yylloc.range;
1595
- this.yylloc = {
1596
- first_line: this.yylloc.first_line,
1597
- last_line: this.yylineno + 1,
1598
- first_column: this.yylloc.first_column,
1599
- last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len
1600
- };
1601
- if (this.options.ranges) {
1602
- this.yylloc.range = [r[0], r[0] + this.yyleng - len];
1603
- }
1604
- this.yyleng = this.yytext.length;
1605
- return this;
1606
- }, "unput"),
1607
- // When called from action, caches matched text and appends it on next action
1608
- more: /* @__PURE__ */ __name(function() {
1609
- this._more = true;
1610
- return this;
1611
- }, "more"),
1612
- // 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.
1613
- reject: /* @__PURE__ */ __name(function() {
1614
- if (this.options.backtrack_lexer) {
1615
- this._backtrack = true;
1616
- } else {
1617
- 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).\n" + this.showPosition(), {
1618
- text: "",
1619
- token: null,
1620
- line: this.yylineno
1621
- });
1622
- }
1623
- return this;
1624
- }, "reject"),
1625
- // retain first n characters of the match
1626
- less: /* @__PURE__ */ __name(function(n) {
1627
- this.unput(this.match.slice(n));
1628
- }, "less"),
1629
- // displays already matched input, i.e. for error messages
1630
- pastInput: /* @__PURE__ */ __name(function() {
1631
- var past = this.matched.substr(0, this.matched.length - this.match.length);
1632
- return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
1633
- }, "pastInput"),
1634
- // displays upcoming input, i.e. for error messages
1635
- upcomingInput: /* @__PURE__ */ __name(function() {
1636
- var next = this.match;
1637
- if (next.length < 20) {
1638
- next += this._input.substr(0, 20 - next.length);
1639
- }
1640
- return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
1641
- }, "upcomingInput"),
1642
- // displays the character position where the lexing error occurred, i.e. for error messages
1643
- showPosition: /* @__PURE__ */ __name(function() {
1644
- var pre = this.pastInput();
1645
- var c = new Array(pre.length + 1).join("-");
1646
- return pre + this.upcomingInput() + "\n" + c + "^";
1647
- }, "showPosition"),
1648
- // test the lexed token: return FALSE when not a match, otherwise return token
1649
- test_match: /* @__PURE__ */ __name(function(match, indexed_rule) {
1650
- var token, lines, backup;
1651
- if (this.options.backtrack_lexer) {
1652
- backup = {
1653
- yylineno: this.yylineno,
1654
- yylloc: {
1655
- first_line: this.yylloc.first_line,
1656
- last_line: this.last_line,
1657
- first_column: this.yylloc.first_column,
1658
- last_column: this.yylloc.last_column
1659
- },
1660
- yytext: this.yytext,
1661
- match: this.match,
1662
- matches: this.matches,
1663
- matched: this.matched,
1664
- yyleng: this.yyleng,
1665
- offset: this.offset,
1666
- _more: this._more,
1667
- _input: this._input,
1668
- yy: this.yy,
1669
- conditionStack: this.conditionStack.slice(0),
1670
- done: this.done
1671
- };
1672
- if (this.options.ranges) {
1673
- backup.yylloc.range = this.yylloc.range.slice(0);
1674
- }
1675
- }
1676
- lines = match[0].match(/(?:\r\n?|\n).*/g);
1677
- if (lines) {
1678
- this.yylineno += lines.length;
1679
- }
1680
- this.yylloc = {
1681
- first_line: this.yylloc.last_line,
1682
- last_line: this.yylineno + 1,
1683
- first_column: this.yylloc.last_column,
1684
- last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
1685
- };
1686
- this.yytext += match[0];
1687
- this.match += match[0];
1688
- this.matches = match;
1689
- this.yyleng = this.yytext.length;
1690
- if (this.options.ranges) {
1691
- this.yylloc.range = [this.offset, this.offset += this.yyleng];
1692
- }
1693
- this._more = false;
1694
- this._backtrack = false;
1695
- this._input = this._input.slice(match[0].length);
1696
- this.matched += match[0];
1697
- token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
1698
- if (this.done && this._input) {
1699
- this.done = false;
1700
- }
1701
- if (token) {
1702
- return token;
1703
- } else if (this._backtrack) {
1704
- for (var k in backup) {
1705
- this[k] = backup[k];
1706
- }
1707
- return false;
1708
- }
1709
- return false;
1710
- }, "test_match"),
1711
- // return next match in input
1712
- next: /* @__PURE__ */ __name(function() {
1713
- if (this.done) {
1714
- return this.EOF;
1715
- }
1716
- if (!this._input) {
1717
- this.done = true;
1718
- }
1719
- var token, match, tempMatch, index;
1720
- if (!this._more) {
1721
- this.yytext = "";
1722
- this.match = "";
1723
- }
1724
- var rules = this._currentRules();
1725
- for (var i = 0; i < rules.length; i++) {
1726
- tempMatch = this._input.match(this.rules[rules[i]]);
1727
- if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
1728
- match = tempMatch;
1729
- index = i;
1730
- if (this.options.backtrack_lexer) {
1731
- token = this.test_match(tempMatch, rules[i]);
1732
- if (token !== false) {
1733
- return token;
1734
- } else if (this._backtrack) {
1735
- match = false;
1736
- continue;
1737
- } else {
1738
- return false;
1739
- }
1740
- } else if (!this.options.flex) {
1741
- break;
1742
- }
1743
- }
1744
- }
1745
- if (match) {
1746
- token = this.test_match(match, rules[index]);
1747
- if (token !== false) {
1748
- return token;
1749
- }
1750
- return false;
1751
- }
1752
- if (this._input === "") {
1753
- return this.EOF;
1754
- } else {
1755
- return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
1756
- text: "",
1757
- token: null,
1758
- line: this.yylineno
1759
- });
1760
- }
1761
- }, "next"),
1762
- // return next match that has a token
1763
- lex: /* @__PURE__ */ __name(function lex() {
1764
- var r = this.next();
1765
- if (r) {
1766
- return r;
1767
- } else {
1768
- return this.lex();
1769
- }
1770
- }, "lex"),
1771
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
1772
- begin: /* @__PURE__ */ __name(function begin(condition) {
1773
- this.conditionStack.push(condition);
1774
- }, "begin"),
1775
- // pop the previously active lexer condition state off the condition stack
1776
- popState: /* @__PURE__ */ __name(function popState() {
1777
- var n = this.conditionStack.length - 1;
1778
- if (n > 0) {
1779
- return this.conditionStack.pop();
1780
- } else {
1781
- return this.conditionStack[0];
1782
- }
1783
- }, "popState"),
1784
- // produce the lexer rule set which is active for the currently active lexer condition state
1785
- _currentRules: /* @__PURE__ */ __name(function _currentRules() {
1786
- if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
1787
- return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
1788
- } else {
1789
- return this.conditions["INITIAL"].rules;
1790
- }
1791
- }, "_currentRules"),
1792
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
1793
- topState: /* @__PURE__ */ __name(function topState(n) {
1794
- n = this.conditionStack.length - 1 - Math.abs(n || 0);
1795
- if (n >= 0) {
1796
- return this.conditionStack[n];
1797
- } else {
1798
- return "INITIAL";
1799
- }
1800
- }, "topState"),
1801
- // alias for begin(condition)
1802
- pushState: /* @__PURE__ */ __name(function pushState(condition) {
1803
- this.begin(condition);
1804
- }, "pushState"),
1805
- // return the number of states currently on the stack
1806
- stateStackSize: /* @__PURE__ */ __name(function stateStackSize() {
1807
- return this.conditionStack.length;
1808
- }, "stateStackSize"),
1809
- options: {},
1810
- performAction: /* @__PURE__ */ __name(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
1811
- switch ($avoiding_name_collisions) {
1812
- case 0:
1813
- this.begin("acc_title");
1814
- return 34;
1815
- case 1:
1816
- this.popState();
1817
- return "acc_title_value";
1818
- case 2:
1819
- this.begin("acc_descr");
1820
- return 36;
1821
- case 3:
1822
- this.popState();
1823
- return "acc_descr_value";
1824
- case 4:
1825
- this.begin("acc_descr_multiline");
1826
- break;
1827
- case 5:
1828
- this.popState();
1829
- break;
1830
- case 6:
1831
- return "acc_descr_multiline_value";
1832
- case 7:
1833
- this.pushState("shapeData");
1834
- yy_.yytext = "";
1835
- return 40;
1836
- case 8:
1837
- this.pushState("shapeDataStr");
1838
- return 40;
1839
- case 9:
1840
- this.popState();
1841
- return 40;
1842
- case 10:
1843
- const re = /\n\s*/g;
1844
- yy_.yytext = yy_.yytext.replace(re, "<br/>");
1845
- return 40;
1846
- case 11:
1847
- return 40;
1848
- case 12:
1849
- this.popState();
1850
- break;
1851
- case 13:
1852
- this.begin("callbackname");
1853
- break;
1854
- case 14:
1855
- this.popState();
1856
- break;
1857
- case 15:
1858
- this.popState();
1859
- this.begin("callbackargs");
1860
- break;
1861
- case 16:
1862
- return 95;
1863
- case 17:
1864
- this.popState();
1865
- break;
1866
- case 18:
1867
- return 96;
1868
- case 19:
1869
- return "MD_STR";
1870
- case 20:
1871
- this.popState();
1872
- break;
1873
- case 21:
1874
- this.begin("md_string");
1875
- break;
1876
- case 22:
1877
- return "STR";
1878
- case 23:
1879
- this.popState();
1880
- break;
1881
- case 24:
1882
- this.pushState("string");
1883
- break;
1884
- case 25:
1885
- return 84;
1886
- case 26:
1887
- return 102;
1888
- case 27:
1889
- return 85;
1890
- case 28:
1891
- return 104;
1892
- case 29:
1893
- return 86;
1894
- case 30:
1895
- return 87;
1896
- case 31:
1897
- return 97;
1898
- case 32:
1899
- this.begin("click");
1900
- break;
1901
- case 33:
1902
- this.popState();
1903
- break;
1904
- case 34:
1905
- return 88;
1906
- case 35:
1907
- if (yy.lex.firstGraph()) {
1908
- this.begin("dir");
1909
- }
1910
- return 12;
1911
- case 36:
1912
- if (yy.lex.firstGraph()) {
1913
- this.begin("dir");
1914
- }
1915
- return 12;
1916
- case 37:
1917
- if (yy.lex.firstGraph()) {
1918
- this.begin("dir");
1919
- }
1920
- return 12;
1921
- case 38:
1922
- return 27;
1923
- case 39:
1924
- return 32;
1925
- case 40:
1926
- return 98;
1927
- case 41:
1928
- return 98;
1929
- case 42:
1930
- return 98;
1931
- case 43:
1932
- return 98;
1933
- case 44:
1934
- this.popState();
1935
- return 13;
1936
- case 45:
1937
- this.popState();
1938
- return 14;
1939
- case 46:
1940
- this.popState();
1941
- return 14;
1942
- case 47:
1943
- this.popState();
1944
- return 14;
1945
- case 48:
1946
- this.popState();
1947
- return 14;
1948
- case 49:
1949
- this.popState();
1950
- return 14;
1951
- case 50:
1952
- this.popState();
1953
- return 14;
1954
- case 51:
1955
- this.popState();
1956
- return 14;
1957
- case 52:
1958
- this.popState();
1959
- return 14;
1960
- case 53:
1961
- this.popState();
1962
- return 14;
1963
- case 54:
1964
- this.popState();
1965
- return 14;
1966
- case 55:
1967
- return 121;
1968
- case 56:
1969
- return 122;
1970
- case 57:
1971
- return 123;
1972
- case 58:
1973
- return 124;
1974
- case 59:
1975
- return 78;
1976
- case 60:
1977
- return 105;
1978
- case 61:
1979
- return 111;
1980
- case 62:
1981
- return 46;
1982
- case 63:
1983
- return 60;
1984
- case 64:
1985
- return 44;
1986
- case 65:
1987
- return 8;
1988
- case 66:
1989
- return 106;
1990
- case 67:
1991
- return 115;
1992
- case 68:
1993
- this.popState();
1994
- return 77;
1995
- case 69:
1996
- this.pushState("edgeText");
1997
- return 75;
1998
- case 70:
1999
- return 119;
2000
- case 71:
2001
- this.popState();
2002
- return 77;
2003
- case 72:
2004
- this.pushState("thickEdgeText");
2005
- return 75;
2006
- case 73:
2007
- return 119;
2008
- case 74:
2009
- this.popState();
2010
- return 77;
2011
- case 75:
2012
- this.pushState("dottedEdgeText");
2013
- return 75;
2014
- case 76:
2015
- return 119;
2016
- case 77:
2017
- return 77;
2018
- case 78:
2019
- this.popState();
2020
- return 53;
2021
- case 79:
2022
- return "TEXT";
2023
- case 80:
2024
- this.pushState("ellipseText");
2025
- return 52;
2026
- case 81:
2027
- this.popState();
2028
- return 55;
2029
- case 82:
2030
- this.pushState("text");
2031
- return 54;
2032
- case 83:
2033
- this.popState();
2034
- return 57;
2035
- case 84:
2036
- this.pushState("text");
2037
- return 56;
2038
- case 85:
2039
- return 58;
2040
- case 86:
2041
- this.pushState("text");
2042
- return 67;
2043
- case 87:
2044
- this.popState();
2045
- return 64;
2046
- case 88:
2047
- this.pushState("text");
2048
- return 63;
2049
- case 89:
2050
- this.popState();
2051
- return 49;
2052
- case 90:
2053
- this.pushState("text");
2054
- return 48;
2055
- case 91:
2056
- this.popState();
2057
- return 69;
2058
- case 92:
2059
- this.popState();
2060
- return 71;
2061
- case 93:
2062
- return 117;
2063
- case 94:
2064
- this.pushState("trapText");
2065
- return 68;
2066
- case 95:
2067
- this.pushState("trapText");
2068
- return 70;
2069
- case 96:
2070
- return 118;
2071
- case 97:
2072
- return 67;
2073
- case 98:
2074
- return 90;
2075
- case 99:
2076
- return "SEP";
2077
- case 100:
2078
- return 89;
2079
- case 101:
2080
- return 115;
2081
- case 102:
2082
- return 111;
2083
- case 103:
2084
- return 44;
2085
- case 104:
2086
- return 109;
2087
- case 105:
2088
- return 114;
2089
- case 106:
2090
- return 116;
2091
- case 107:
2092
- this.popState();
2093
- return 62;
2094
- case 108:
2095
- this.pushState("text");
2096
- return 62;
2097
- case 109:
2098
- this.popState();
2099
- return 51;
2100
- case 110:
2101
- this.pushState("text");
2102
- return 50;
2103
- case 111:
2104
- this.popState();
2105
- return 31;
2106
- case 112:
2107
- this.pushState("text");
2108
- return 29;
2109
- case 113:
2110
- this.popState();
2111
- return 66;
2112
- case 114:
2113
- this.pushState("text");
2114
- return 65;
2115
- case 115:
2116
- return "TEXT";
2117
- case 116:
2118
- return "QUOTE";
2119
- case 117:
2120
- return 9;
2121
- case 118:
2122
- return 10;
2123
- case 119:
2124
- return 11;
2125
- }
2126
- }, "anonymous"),
2127
- rules: [/^(?:accTitle\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*\{\s*)/, /^(?:[\}])/, /^(?:[^\}]*)/, /^(?:@\{)/, /^(?:["])/, /^(?:["])/, /^(?:[^\"]+)/, /^(?:[^}^"]+)/, /^(?:\})/, /^(?:call[\s]+)/, /^(?:\([\s]*\))/, /^(?:\()/, /^(?:[^(]*)/, /^(?:\))/, /^(?:[^)]*)/, /^(?:[^`"]+)/, /^(?:[`]["])/, /^(?:["][`])/, /^(?:[^"]+)/, /^(?:["])/, /^(?:["])/, /^(?:style\b)/, /^(?:default\b)/, /^(?:linkStyle\b)/, /^(?:interpolate\b)/, /^(?:classDef\b)/, /^(?:class\b)/, /^(?:href[\s])/, /^(?:click[\s]+)/, /^(?:[\s\n])/, /^(?:[^\s\n]*)/, /^(?:flowchart-elk\b)/, /^(?:graph\b)/, /^(?:flowchart\b)/, /^(?:subgraph\b)/, /^(?:end\b\s*)/, /^(?:_self\b)/, /^(?:_blank\b)/, /^(?:_parent\b)/, /^(?:_top\b)/, /^(?:(\r?\n)*\s*\n)/, /^(?:\s*LR\b)/, /^(?:\s*RL\b)/, /^(?:\s*TB\b)/, /^(?:\s*BT\b)/, /^(?:\s*TD\b)/, /^(?:\s*BR\b)/, /^(?:\s*<)/, /^(?:\s*>)/, /^(?:\s*\^)/, /^(?:\s*v\b)/, /^(?:.*direction\s+TB[^\n]*)/, /^(?:.*direction\s+BT[^\n]*)/, /^(?:.*direction\s+RL[^\n]*)/, /^(?:.*direction\s+LR[^\n]*)/, /^(?:[^\s\"]+@(?=[^\{\"]))/, /^(?:[0-9]+)/, /^(?:#)/, /^(?::::)/, /^(?::)/, /^(?:&)/, /^(?:;)/, /^(?:,)/, /^(?:\*)/, /^(?:\s*[xo<]?--+[-xo>]\s*)/, /^(?:\s*[xo<]?--\s*)/, /^(?:[^-]|-(?!-)+)/, /^(?:\s*[xo<]?==+[=xo>]\s*)/, /^(?:\s*[xo<]?==\s*)/, /^(?:[^=]|=(?!))/, /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/, /^(?:\s*[xo<]?-\.\s*)/, /^(?:[^\.]|\.(?!))/, /^(?:\s*~~[\~]+\s*)/, /^(?:[-/\)][\)])/, /^(?:[^\(\)\[\]\{\}]|!\)+)/, /^(?:\(-)/, /^(?:\]\))/, /^(?:\(\[)/, /^(?:\]\])/, /^(?:\[\[)/, /^(?:\[\|)/, /^(?:>)/, /^(?:\)\])/, /^(?:\[\()/, /^(?:\)\)\))/, /^(?:\(\(\()/, /^(?:[\\(?=\])][\]])/, /^(?:\/(?=\])\])/, /^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/, /^(?:\[\/)/, /^(?:\[\\)/, /^(?:<)/, /^(?:>)/, /^(?:\^)/, /^(?:\\\|)/, /^(?:v\b)/, /^(?:\*)/, /^(?:#)/, /^(?:&)/, /^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/, /^(?:-)/, /^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/, /^(?:\|)/, /^(?:\|)/, /^(?:\))/, /^(?:\()/, /^(?:\])/, /^(?:\[)/, /^(?:(\}))/, /^(?:\{)/, /^(?:[^\[\]\(\)\{\}\|\"]+)/, /^(?:")/, /^(?:(\r?\n)+)/, /^(?:\s)/, /^(?:$)/],
2128
- conditions: { "shapeDataEndBracket": { "rules": [21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "shapeDataStr": { "rules": [9, 10, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "shapeData": { "rules": [8, 11, 12, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "callbackargs": { "rules": [17, 18, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "callbackname": { "rules": [14, 15, 16, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "href": { "rules": [21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "click": { "rules": [21, 24, 33, 34, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "dottedEdgeText": { "rules": [21, 24, 74, 76, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "thickEdgeText": { "rules": [21, 24, 71, 73, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "edgeText": { "rules": [21, 24, 68, 70, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "trapText": { "rules": [21, 24, 77, 80, 82, 84, 88, 90, 91, 92, 93, 94, 95, 108, 110, 112, 114], "inclusive": false }, "ellipseText": { "rules": [21, 24, 77, 78, 79, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "text": { "rules": [21, 24, 77, 80, 81, 82, 83, 84, 87, 88, 89, 90, 94, 95, 107, 108, 109, 110, 111, 112, 113, 114, 115], "inclusive": false }, "vertex": { "rules": [21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "dir": { "rules": [21, 24, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "acc_descr_multiline": { "rules": [5, 6, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "acc_descr": { "rules": [3, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "acc_title": { "rules": [1, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "md_string": { "rules": [19, 20, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "string": { "rules": [21, 22, 23, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], "inclusive": false }, "INITIAL": { "rules": [0, 2, 4, 7, 13, 21, 24, 25, 26, 27, 28, 29, 30, 31, 32, 35, 36, 37, 38, 39, 40, 41, 42, 43, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 71, 72, 74, 75, 77, 80, 82, 84, 85, 86, 88, 90, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 108, 110, 112, 114, 116, 117, 118, 119], "inclusive": true } }
2129
- };
2130
- return lexer2;
2131
- }();
2132
- parser2.lexer = lexer;
2133
- function Parser() {
2134
- this.yy = {};
2135
- }
2136
- __name(Parser, "Parser");
2137
- Parser.prototype = parser2;
2138
- parser2.Parser = Parser;
2139
- return new Parser();
2140
- }();
2141
- parser.parser = parser;
2142
- var flow_default = parser;
2143
- var newParser = Object.assign({}, flow_default);
2144
- newParser.parse = (src) => {
2145
- const newSrc = src.replace(/}\s*\n/g, "}\n");
2146
- return flow_default.parse(newSrc);
2147
- };
2148
- var flowParser_default = newParser;
2149
- var fade = /* @__PURE__ */ __name((color, opacity) => {
2150
- const channel2 = channel;
2151
- const r = channel2(color, "r");
2152
- const g = channel2(color, "g");
2153
- const b = channel2(color, "b");
2154
- return rgba(r, g, b, opacity);
2155
- }, "fade");
2156
- var getStyles = /* @__PURE__ */ __name((options) => `.label {
2157
- font-family: ${options.fontFamily};
2158
- color: ${options.nodeTextColor || options.textColor};
2159
- }
2160
- .cluster-label text {
2161
- fill: ${options.titleColor};
2162
- }
2163
- .cluster-label span {
2164
- color: ${options.titleColor};
2165
- }
2166
- .cluster-label span p {
2167
- background-color: transparent;
2168
- }
2169
-
2170
- .label text,span {
2171
- fill: ${options.nodeTextColor || options.textColor};
2172
- color: ${options.nodeTextColor || options.textColor};
2173
- }
2174
-
2175
- .node rect,
2176
- .node circle,
2177
- .node ellipse,
2178
- .node polygon,
2179
- .node path {
2180
- fill: ${options.mainBkg};
2181
- stroke: ${options.nodeBorder};
2182
- stroke-width: 1px;
2183
- }
2184
- .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
2185
- text-anchor: middle;
2186
- }
2187
- // .flowchart-label .text-outer-tspan {
2188
- // text-anchor: middle;
2189
- // }
2190
- // .flowchart-label .text-inner-tspan {
2191
- // text-anchor: start;
2192
- // }
2193
-
2194
- .node .katex path {
2195
- fill: #000;
2196
- stroke: #000;
2197
- stroke-width: 1px;
2198
- }
2199
-
2200
- .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
2201
- text-align: center;
2202
- }
2203
- .node.clickable {
2204
- cursor: pointer;
2205
- }
2206
-
2207
-
2208
- .root .anchor path {
2209
- fill: ${options.lineColor} !important;
2210
- stroke-width: 0;
2211
- stroke: ${options.lineColor};
2212
- }
2213
-
2214
- .arrowheadPath {
2215
- fill: ${options.arrowheadColor};
2216
- }
2217
-
2218
- .edgePath .path {
2219
- stroke: ${options.lineColor};
2220
- stroke-width: 2.0px;
2221
- }
2222
-
2223
- .flowchart-link {
2224
- stroke: ${options.lineColor};
2225
- fill: none;
2226
- }
2227
-
2228
- .edgeLabel {
2229
- background-color: ${options.edgeLabelBackground};
2230
- p {
2231
- background-color: ${options.edgeLabelBackground};
2232
- }
2233
- rect {
2234
- opacity: 0.5;
2235
- background-color: ${options.edgeLabelBackground};
2236
- fill: ${options.edgeLabelBackground};
2237
- }
2238
- text-align: center;
2239
- }
2240
-
2241
- /* For html labels only */
2242
- .labelBkg {
2243
- background-color: ${fade(options.edgeLabelBackground, 0.5)};
2244
- // background-color:
2245
- }
2246
-
2247
- .cluster rect {
2248
- fill: ${options.clusterBkg};
2249
- stroke: ${options.clusterBorder};
2250
- stroke-width: 1px;
2251
- }
2252
-
2253
- .cluster text {
2254
- fill: ${options.titleColor};
2255
- }
2256
-
2257
- .cluster span {
2258
- color: ${options.titleColor};
2259
- }
2260
- /* .cluster div {
2261
- color: ${options.titleColor};
2262
- } */
2263
-
2264
- div.mermaidTooltip {
2265
- position: absolute;
2266
- text-align: center;
2267
- max-width: 200px;
2268
- padding: 2px;
2269
- font-family: ${options.fontFamily};
2270
- font-size: 12px;
2271
- background: ${options.tertiaryColor};
2272
- border: 1px solid ${options.border2};
2273
- border-radius: 2px;
2274
- pointer-events: none;
2275
- z-index: 100;
2276
- }
2277
-
2278
- .flowchartTitleText {
2279
- text-anchor: middle;
2280
- font-size: 18px;
2281
- fill: ${options.textColor};
2282
- }
2283
-
2284
- rect.text {
2285
- fill: none;
2286
- stroke-width: 0;
2287
- }
2288
-
2289
- .icon-shape, .image-shape {
2290
- background-color: ${options.edgeLabelBackground};
2291
- p {
2292
- background-color: ${options.edgeLabelBackground};
2293
- padding: 2px;
2294
- }
2295
- rect {
2296
- opacity: 0.5;
2297
- background-color: ${options.edgeLabelBackground};
2298
- fill: ${options.edgeLabelBackground};
2299
- }
2300
- text-align: center;
2301
- }
2302
- `, "getStyles");
2303
- var styles_default = getStyles;
2304
- var diagram = {
2305
- parser: flowParser_default,
2306
- get db() {
2307
- return new FlowDB();
2308
- },
2309
- renderer: flowRenderer_v3_unified_default,
2310
- styles: styles_default,
2311
- init: /* @__PURE__ */ __name((cnf) => {
2312
- if (!cnf.flowchart) {
2313
- cnf.flowchart = {};
2314
- }
2315
- if (cnf.layout) {
2316
- setConfig2({ layout: cnf.layout });
2317
- }
2318
- cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;
2319
- setConfig2({ flowchart: { arrowMarkerAbsolute: cnf.arrowMarkerAbsolute } });
2320
- }, "init")
2321
- };
2322
- export {
2323
- diagram
2324
- };