for-humanity 0.12.0 → 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 (226) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/README.md +16 -9
  3. package/dist/browser.js +16 -16
  4. package/dist/cli.css +2 -968
  5. package/dist/cli.js +92 -2318
  6. package/dist/config.js +1 -0
  7. package/dist/constant/copy.d.ts +100 -0
  8. package/dist/constant/site.d.ts +20 -0
  9. package/dist/constant/status.d.ts +19 -0
  10. package/dist/copy-C1uzvEnr.js +103 -0
  11. package/dist/group-path-XAThmzvC.js +10 -0
  12. package/dist/load-site-CbpLEhwu.js +2379 -0
  13. package/dist/logger-Dv1i9xSV.js +9 -0
  14. package/dist/mermaid/THIRD-PARTY-NOTICES.txt +3134 -0
  15. package/dist/mermaid/chunk--TN-qHgG.js +2 -0
  16. package/dist/mermaid/chunk-0kM1Lv4D.js +2 -0
  17. package/dist/mermaid/chunk-3FHei3pH.js +2001 -0
  18. package/dist/mermaid/chunk-3_2p2GqN.js +2 -0
  19. package/dist/mermaid/chunk-6HLei9i0.js +84 -0
  20. package/dist/mermaid/chunk-7Sz3kAwl.js +2214 -0
  21. package/dist/mermaid/chunk-7Tarqbpa.js +18047 -0
  22. package/dist/mermaid/chunk-9kkt8lzL.js +10 -0
  23. package/dist/mermaid/chunk-B--pNBQF.js +884 -0
  24. package/dist/mermaid/chunk-B4F-pysn.js +4241 -0
  25. package/dist/mermaid/chunk-B58sEIY_.js +14 -0
  26. package/dist/mermaid/chunk-B9_UWzSH.js +1517 -0
  27. package/dist/mermaid/chunk-BB8uZHwY.js +75 -0
  28. package/dist/mermaid/chunk-BFfk0LEc.js +717 -0
  29. package/dist/mermaid/chunk-BKri0qr7.js +89 -0
  30. package/dist/mermaid/chunk-BL404pH5.js +26 -0
  31. package/dist/mermaid/chunk-BLeiQSWo.js +354 -0
  32. package/dist/mermaid/chunk-BOmH_UFd.js +2 -0
  33. package/dist/mermaid/chunk-BSej9Nhy.js +1361 -0
  34. package/dist/mermaid/chunk-BYzrzvCI.js +12 -0
  35. package/dist/mermaid/chunk-BariMtWr.js +3020 -0
  36. package/dist/mermaid/chunk-BcrBoMwH.js +2352 -0
  37. package/dist/mermaid/chunk-Bok8z-Yo.js +67 -0
  38. package/dist/mermaid/chunk-BpTHLKQM.js +1970 -0
  39. package/dist/mermaid/chunk-BqjuxRsC.js +733 -0
  40. package/dist/mermaid/chunk-BuvPd-s5.js +1073 -0
  41. package/dist/mermaid/chunk-BvVehae3.js +5069 -0
  42. package/dist/mermaid/chunk-C-JABYpd.js +3075 -0
  43. package/dist/mermaid/chunk-C9XlTm4w.js +2 -0
  44. package/dist/mermaid/chunk-CApNbSU9.js +6 -0
  45. package/dist/mermaid/chunk-CCM2AH-C.js +9 -0
  46. package/dist/mermaid/chunk-CD1E0F_N.js +2 -0
  47. package/dist/mermaid/chunk-CDWvKG7D.js +2 -0
  48. package/dist/mermaid/chunk-CEVPpC1F.js +34 -0
  49. package/dist/mermaid/chunk-CLDr12lf.js +47504 -0
  50. package/dist/mermaid/chunk-CLVYqOBI.js +61 -0
  51. package/dist/mermaid/chunk-CLeOkFb5.js +15 -0
  52. package/dist/mermaid/chunk-CLgRAtOz.js +37 -0
  53. package/dist/mermaid/chunk-CMqFNUBl.js +134 -0
  54. package/dist/mermaid/chunk-CTPaBJXB.js +2 -0
  55. package/dist/mermaid/chunk-CVi6IGBL.js +2 -0
  56. package/dist/mermaid/chunk-CWV_EN-4.js +4745 -0
  57. package/dist/mermaid/chunk-CZ0dAs3g.js +2 -0
  58. package/dist/mermaid/chunk-C_YGy4Fn.js +236 -0
  59. package/dist/mermaid/chunk-CcVH22Yt.js +100 -0
  60. package/dist/mermaid/chunk-CgG6CD9_.js +7175 -0
  61. package/dist/mermaid/chunk-CgOP6IDB.js +3397 -0
  62. package/dist/mermaid/chunk-Cgg2UTSf.js +13 -0
  63. package/dist/mermaid/chunk-ChJfJJ1A.js +214 -0
  64. package/dist/mermaid/chunk-Ck5XRA46.js +447 -0
  65. package/dist/mermaid/chunk-Ckuw16cl.js +203 -0
  66. package/dist/mermaid/chunk-CpAbRCbF.js +1880 -0
  67. package/dist/mermaid/chunk-CuYekbSv.js +2 -0
  68. package/dist/mermaid/chunk-CwS4wZ5a.js +2 -0
  69. package/dist/mermaid/chunk-D-bcrBO3.js +82 -0
  70. package/dist/mermaid/chunk-D3IEAkCW.js +76 -0
  71. package/dist/mermaid/chunk-D8XfBJ_K.js +645 -0
  72. package/dist/mermaid/chunk-D9Ddd9y4.js +2228 -0
  73. package/dist/mermaid/chunk-DBh1mIbK.js +12 -0
  74. package/dist/mermaid/chunk-DD6Df6Ic.js +5 -0
  75. package/dist/mermaid/chunk-DGVDaXjx.js +8 -0
  76. package/dist/mermaid/chunk-DK9KqIXj.js +632 -0
  77. package/dist/mermaid/chunk-DORnIAsy.js +4487 -0
  78. package/dist/mermaid/chunk-DU69_VcF.js +363 -0
  79. package/dist/mermaid/chunk-DVNvSFoz.js +2144 -0
  80. package/dist/mermaid/chunk-DZe-4kde.js +20 -0
  81. package/dist/mermaid/chunk-D_a06Rz4.js +287 -0
  82. package/dist/mermaid/chunk-DfyFJJi2.js +972 -0
  83. package/dist/mermaid/chunk-DhKYPp1Z.js +2 -0
  84. package/dist/mermaid/chunk-DjFqgNTG.js +94 -0
  85. package/dist/mermaid/chunk-DmbDDrr-.js +65 -0
  86. package/dist/mermaid/chunk-DpuxlyL_.js +696 -0
  87. package/dist/mermaid/chunk-DqGhppWe.js +2 -0
  88. package/dist/mermaid/chunk-DqPZxHXa.js +5 -0
  89. package/dist/mermaid/chunk-Dt_1Jyif.js +293 -0
  90. package/dist/mermaid/chunk-DyQBE_NW.js +1935 -0
  91. package/dist/mermaid/chunk-JckyC4mW.js +1009 -0
  92. package/dist/mermaid/chunk-K7Myuj2-.js +1334 -0
  93. package/dist/mermaid/chunk-KuPYb48V.js +275 -0
  94. package/dist/mermaid/chunk-MFVRUoO0.js +4020 -0
  95. package/dist/mermaid/chunk-MbInCS_6.js +28 -0
  96. package/dist/mermaid/chunk-MexOLyKV.js +355 -0
  97. package/dist/mermaid/chunk-NnbDtJzg.js +21856 -0
  98. package/dist/mermaid/chunk-SGpOYZbI.js +2139 -0
  99. package/dist/mermaid/chunk-TbxLDlcU.js +198 -0
  100. package/dist/mermaid/chunk-TftHqGLg.js +490 -0
  101. package/dist/mermaid/chunk-UjQ8vA_Z.js +4138 -0
  102. package/dist/mermaid/chunk-YgmVTKqc.js +16 -0
  103. package/dist/mermaid/chunk-_a9EZE1v.js +1798 -0
  104. package/dist/mermaid/chunk-dTb8jqeP.js +2 -0
  105. package/dist/mermaid/chunk-fFdMfF8S.js +2240 -0
  106. package/dist/mermaid/chunk-feYbMzBj.js +1267 -0
  107. package/dist/mermaid/chunk-g3Pn8DkW.js +46 -0
  108. package/dist/mermaid/chunk-hM77LvCb.js +19832 -0
  109. package/dist/mermaid/chunk-hUDb-eAW.js +527 -0
  110. package/dist/mermaid/chunk-tpABtZ-3.js +4252 -0
  111. package/dist/mermaid/chunk-xIbz3oFK.js +59 -0
  112. package/dist/mermaid/chunk-yBz-vst0.js +976 -0
  113. package/dist/mermaid/mermaid-BhtR3wyB.js +1145 -0
  114. package/dist/run-site-command-C80YoNOe.js +129 -0
  115. package/dist/site-config-bllORGpm.js +90 -0
  116. package/dist/site.js +1 -0
  117. package/dist/start-dev-server-C4_Lu1nZ.js +176 -0
  118. package/dist/to-change-queue-DbEnZGNK.js +34 -0
  119. package/dist/to-error-message-pF6_7wGK.js +16 -0
  120. package/dist/type/group-path.d.ts +7 -0
  121. package/dist/type/site-config.d.ts +57 -0
  122. package/package.json +34 -17
  123. package/src/component/widget/cursor-face/_constant/cursor-face.ts +0 -14
  124. package/src/component/widget/cursor-face/wg-cursor-face.css +0 -15
  125. package/src/component/widget/cursor-face/wg-cursor-face.tsx +0 -153
  126. package/src/component/widget/navigation/_constant/locale.ts +0 -9
  127. package/src/component/widget/navigation/_constant/navigation-data-schema.ts +0 -33
  128. package/src/component/widget/navigation/_constant/navigation.ts +0 -9
  129. package/src/component/widget/navigation/_constant/reading-line.ts +0 -4
  130. package/src/component/widget/navigation/_function/restore-navigation-scroll.ts +0 -59
  131. package/src/component/widget/navigation/_function/to-doc-groups/_to-doc-branches.ts +0 -15
  132. package/src/component/widget/navigation/_function/to-doc-groups/_to-doc-group-branches.ts +0 -70
  133. package/src/component/widget/navigation/_function/to-doc-groups/to-doc-groups.ts +0 -15
  134. package/src/component/widget/navigation/_function/to-navigation-data/_to-navigation-document.ts +0 -13
  135. package/src/component/widget/navigation/_function/to-navigation-data/_to-navigation-group.ts +0 -13
  136. package/src/component/widget/navigation/_function/to-navigation-data/to-navigation-data.ts +0 -18
  137. package/src/component/widget/navigation/_function/to-navigation-json.ts +0 -8
  138. package/src/component/widget/navigation/_function/to-toc-groups.ts +0 -38
  139. package/src/component/widget/navigation/_type/doc-branch.ts +0 -11
  140. package/src/component/widget/navigation/_type/doc-group.ts +0 -24
  141. package/src/component/widget/navigation/_type/navigation-data.ts +0 -75
  142. package/src/component/widget/navigation/_type/navigation-focus-snapshot.ts +0 -17
  143. package/src/component/widget/navigation/_type/toc-group.ts +0 -39
  144. package/src/component/widget/navigation/_wg-navigation-nav-list.css +0 -48
  145. package/src/component/widget/navigation/_wg-navigation-nav-list.tsx +0 -61
  146. package/src/component/widget/navigation/_wg-navigation-nav.css +0 -21
  147. package/src/component/widget/navigation/_wg-navigation-nav.tsx +0 -33
  148. package/src/component/widget/navigation/_wg-navigation-scroll.tsx +0 -117
  149. package/src/component/widget/navigation/_wg-navigation-toc.css +0 -91
  150. package/src/component/widget/navigation/_wg-navigation-toc.tsx +0 -114
  151. package/src/component/widget/navigation/wg-navigation.css +0 -282
  152. package/src/component/widget/navigation/wg-navigation.tsx +0 -420
  153. package/src/component/widget/prose/_constant/heading-highlight.ts +0 -4
  154. package/src/component/widget/prose/_constant/section.ts +0 -7
  155. package/src/component/widget/prose/_constant/status.ts +0 -9
  156. package/src/component/widget/prose/_function/has-block-content.ts +0 -30
  157. package/src/component/widget/prose/_function/rehype-head.ts +0 -31
  158. package/src/component/widget/prose/_function/rehype-sections/_to-section-headings.ts +0 -20
  159. package/src/component/widget/prose/_function/rehype-sections/rehype-sections.ts +0 -21
  160. package/src/component/widget/prose/_function/rehype-tables.ts +0 -22
  161. package/src/component/widget/prose/_function/remark-blocks.ts +0 -112
  162. package/src/component/widget/prose/_function/remark-flow.ts +0 -26
  163. package/src/component/widget/prose/_function/remark-links.ts +0 -33
  164. package/src/component/widget/prose/_function/remark-parts.ts +0 -26
  165. package/src/component/widget/prose/_function/remark-status.ts +0 -59
  166. package/src/component/widget/prose/_function/remark-swatch.ts +0 -16
  167. package/src/component/widget/prose/_function/remark-unknown-directives.ts +0 -25
  168. package/src/component/widget/prose/wg-prose.css +0 -484
  169. package/src/component/widget/prose/wg-prose.tsx +0 -43
  170. package/src/component/widget/shell/wg-shell.css +0 -63
  171. package/src/component/widget/shell/wg-shell.tsx +0 -88
  172. package/src/component/widget/shell-controls/wg-shell-controls.css +0 -4
  173. package/src/component/widget/shell-controls/wg-shell-controls.tsx +0 -170
  174. package/src/constant/asset.ts +0 -63
  175. package/src/constant/copy.ts +0 -133
  176. package/src/constant/doc.ts +0 -13
  177. package/src/constant/font.ts +0 -34
  178. package/src/constant/site.ts +0 -24
  179. package/src/constant/status.ts +0 -15
  180. package/src/entry/browser/browser.tsx +0 -22
  181. package/src/entry/cli/_constant/cli.ts +0 -19
  182. package/src/entry/cli/_constant/crawling.ts +0 -14
  183. package/src/entry/cli/_constant/snippet.ts +0 -21
  184. package/src/entry/cli/_function/create-app.tsx +0 -57
  185. package/src/entry/cli/_function/create-dev-app.ts +0 -87
  186. package/src/entry/cli/_function/create-processor/_rehype-assets.ts +0 -70
  187. package/src/entry/cli/_function/create-processor/_rehype-heading-ids.ts +0 -34
  188. package/src/entry/cli/_function/create-processor/_remark-report.ts +0 -15
  189. package/src/entry/cli/_function/create-processor/_remark-snippets.ts +0 -117
  190. package/src/entry/cli/_function/create-processor/_shiki-transformers.ts +0 -91
  191. package/src/entry/cli/_function/create-processor/create-processor.ts +0 -64
  192. package/src/entry/cli/_function/read-docs.ts +0 -128
  193. package/src/entry/cli/_function/read-home.ts +0 -32
  194. package/src/entry/cli/_function/to-crawling-app.ts +0 -42
  195. package/src/entry/cli/cli.test.ts +0 -804
  196. package/src/entry/cli/cli.ts +0 -206
  197. package/src/env.d.ts +0 -6
  198. package/src/page/doc/pg-doc.tsx +0 -35
  199. package/src/page/home/pg-home.tsx +0 -40
  200. package/src/store/navigation/create-navigation-stores.test.ts +0 -74
  201. package/src/store/navigation/create-navigation-stores.ts +0 -59
  202. package/src/store/navigation/navigation-state.ts +0 -36
  203. package/src/store/navigation/navigation-storage.ts +0 -9
  204. package/src/store/navigation/to-navigation-scroll-state.ts +0 -42
  205. package/src/style/base.css +0 -28
  206. package/src/style/token.css +0 -188
  207. package/src/type/doc-content.ts +0 -15
  208. package/src/type/doc-data.ts +0 -38
  209. package/src/type/doc-file-data.ts +0 -21
  210. package/src/type/doc-heading.ts +0 -17
  211. package/src/type/doc-outline.ts +0 -16
  212. package/src/type/doc-section.ts +0 -9
  213. package/src/type/doc.ts +0 -20
  214. package/src/type/group-path.ts +0 -7
  215. package/src/type/site-assets.ts +0 -25
  216. package/src/type/site-config.ts +0 -73
  217. package/src/type/vfile-data.d.ts +0 -10
  218. package/src/util/async/to-change-queue.test.ts +0 -58
  219. package/src/util/async/to-change-queue.ts +0 -43
  220. package/src/util/dom/find-hash-target.ts +0 -18
  221. package/src/util/dom/reveal-hash-target.ts +0 -15
  222. package/src/util/error/to-error-message.ts +0 -10
  223. package/src/util/file/to-asset-path.ts +0 -26
  224. package/src/util/font/to-font-css.test.ts +0 -41
  225. package/src/util/font/to-font-css.ts +0 -28
  226. package/src/util/mermaid/render-flow.js +0 -321
@@ -0,0 +1,5069 @@
1
+ import { m as e, p as t } from "./chunk-DVNvSFoz.js";
2
+ import { n } from "./chunk-BYzrzvCI.js";
3
+ import { C as r, G as i, H as a, U as o, _ as s, a as c, at as l, b as u, d, et as f, q as p, s as m, v as h } from "./chunk-MFVRUoO0.js";
4
+ import { t as g } from "./chunk-DD6Df6Ic.js";
5
+ import { _, c as v } from "./chunk-K7Myuj2-.js";
6
+ import { n as y, t as b } from "./chunk-B9_UWzSH.js";
7
+ import "./chunk-Bok8z-Yo.js";
8
+ import "./chunk-KuPYb48V.js";
9
+ import "./chunk-_a9EZE1v.js";
10
+ import { i as x, n as S, o as C, r as w } from "./chunk-DBh1mIbK.js";
11
+ import { a as T } from "./chunk-DORnIAsy.js";
12
+ import "./chunk-CLgRAtOz.js";
13
+ import "./chunk-DU69_VcF.js";
14
+ import "./chunk-DpuxlyL_.js";
15
+ import { r as E, t as D } from "./chunk-BB8uZHwY.js";
16
+ import { t as O } from "./chunk-DqPZxHXa.js";
17
+ import { t as k } from "./chunk-CLVYqOBI.js";
18
+ import { t as A } from "./chunk-CCM2AH-C.js";
19
+ import { t as j } from "./chunk-BL404pH5.js";
20
+ //#region node_modules/.pnpm/mermaid@12.2.0/node_modules/mermaid/dist/chunks/mermaid.core/diagram-TYUNFSNR.mjs
21
+ var M = {
22
+ SHAPE_UNSUPPORTED: "SHAPE_UNSUPPORTED",
23
+ SHAPE_REMOVED: "SHAPE_REMOVED",
24
+ EDGE_OPERATOR_UNSUPPORTED: "EDGE_OPERATOR_UNSUPPORTED",
25
+ REFERENCE_EDGE_LABEL_REJECTED: "REFERENCE_EDGE_LABEL_REJECTED",
26
+ CONNECTOR_REF_UNRESOLVED: "CONNECTOR_REF_UNRESOLVED",
27
+ CONNECTOR_REF_NOT_A_CONNECTOR: "CONNECTOR_REF_NOT_A_CONNECTOR",
28
+ METADATA_KEY_MISAPPLIED: "METADATA_KEY_MISAPPLIED",
29
+ DUPLICATE_ID_NODE: "DUPLICATE_ID_NODE",
30
+ RESERVED_SYNTHETIC_ID: "RESERVED_SYNTHETIC_ID",
31
+ CONTAINMENT_VIOLATION: "CONTAINMENT_VIOLATION",
32
+ EDGE_SEMANTIC_CONTRADICTION: "EDGE_SEMANTIC_CONTRADICTION",
33
+ FLOW_NO_INPUT: "FLOW_NO_INPUT"
34
+ }, N = /* @__PURE__ */ new Set([
35
+ M.SHAPE_UNSUPPORTED,
36
+ M.SHAPE_REMOVED,
37
+ M.CONTAINMENT_VIOLATION
38
+ ]);
39
+ new Set(Object.values(M).filter((e) => !N.has(e)));
40
+ var P = /* @__PURE__ */ new Map([
41
+ ["task", "roundedRect"],
42
+ ["tool", "subroutine"],
43
+ ["input", "lean-right"],
44
+ ["decision", "diamond"],
45
+ ["refdoc", "lin-doc"],
46
+ ["action", "hexagon"],
47
+ ["round", "rect"]
48
+ ]), ee = /* @__PURE__ */ new Set(/* @__PURE__ */ "doc.stadium.terminal.circle.trapezoid.inv_trapezoid.inv-trapezoid.doublecircle.double-circle.typeDeclaration.procs.lean_left.lean-left.in-out.cylinder.ellipse.odd.tag-rect.tagged-rectangle.delay.half-rounded-rectangle.lin-rect.lined-rectangle.win-pane.window-pane.curv-trap.curved-trapezoid".split(".")), te = /* @__PURE__ */ new Set([
49
+ "roundedRect",
50
+ "subroutine",
51
+ "subprocess",
52
+ "subproc",
53
+ "framed-rectangle",
54
+ "lean-right",
55
+ "diamond",
56
+ "lin-doc",
57
+ "lined-document",
58
+ "hexagon",
59
+ "hex",
60
+ "connector",
61
+ "collapsedGroup"
62
+ ]), F = "roundedRect";
63
+ function I(e) {
64
+ return e && (P.get(e) ?? e);
65
+ }
66
+ n(I, "resolveShapeAlias");
67
+ function ne(t, n) {
68
+ for (let r of t) if (!r.isGroup) {
69
+ if ((!r.shape || r.shape === "squareRect" || r.shape === "rect") && (r.shape = F), ee.has(r.shape)) {
70
+ let t = `shape "${r.shape}" was removed in v0.8.1, using "${F}"`;
71
+ n?.emitError ? n.emitError("SHAPE_REMOVED", t, { nodeId: r.id }) : e.warn(`agentflow: ${t}`), r.shape = F;
72
+ } else if (!te.has(r.shape)) {
73
+ let t = `shape "${r.shape}" is not supported, using "${F}"`;
74
+ n?.emitWarning ? n.emitWarning("SHAPE_UNSUPPORTED", t, { nodeId: r.id }) : e.warn(`agentflow: ${t}`), r.shape = F;
75
+ }
76
+ }
77
+ }
78
+ n(ne, "normaliseNodeShapes");
79
+ var L = /* @__PURE__ */ new Map([
80
+ ["tool", 0],
81
+ ["task", 1],
82
+ ["decision", 2],
83
+ ["input", 3],
84
+ ["refdoc", 4],
85
+ ["connector", 5],
86
+ ["action", 6]
87
+ ]), R = L.size, z = /* @__PURE__ */ n((e) => `af-kind-${e}`, "kindClass"), B = [...L.keys()], V = /* @__PURE__ */ n((e) => Math.max(1, e - R), "containerSlotCount"), H = /* @__PURE__ */ n((e, t) => {
88
+ let n = R + e % V(t);
89
+ return t > 0 ? n % t : n;
90
+ }, "containerSlot");
91
+ function re(e, t, n) {
92
+ let r = u().themeVariables?.borderColorArray, i = Array.isArray(r) ? r.length : 0, a = n.size;
93
+ for (let r of e ?? []) {
94
+ if (r.isGroup || r.shape === "collapsedGroup") {
95
+ r.colorIndex = H(n.get(String(r.id)) ?? a++, i);
96
+ continue;
97
+ }
98
+ let e = t(String(r.id));
99
+ e && L.has(e) && (r.cssClasses = `${r.cssClasses ?? ""} ${z(e)}`.replace(/\s+/g, " ").trim());
100
+ }
101
+ }
102
+ n(re, "assignColorSlots");
103
+ var ie = "agentflow-", ae = /* @__PURE__ */ new Set([
104
+ "shape",
105
+ "view",
106
+ "icon",
107
+ "img",
108
+ "form",
109
+ "pos",
110
+ "w",
111
+ "h",
112
+ "class",
113
+ "style",
114
+ "labelType"
115
+ ]), oe = /* @__PURE__ */ new Set([
116
+ "subroutine",
117
+ "subprocess",
118
+ "subproc",
119
+ "framed-rectangle",
120
+ "tool"
121
+ ]), se = { flow: "flowGroup" };
122
+ function ce(e) {
123
+ if (Array.isArray(e)) return e.map((e) => ce(e));
124
+ if (typeof e != "object" || !e) return e;
125
+ let t = {};
126
+ for (let n of Object.keys(e)) n !== "__proto__" && n !== "constructor" && n !== "prototype" && (t[n] = ce(e[n]));
127
+ return t;
128
+ }
129
+ n(ce, "stripPrototypeKeys");
130
+ function le(e) {
131
+ let t = !1, n = !1, r = 0, i, a = [];
132
+ for (let o of e.split("\n")) {
133
+ if (i !== void 0) {
134
+ let e = o.length - o.trimStart().length;
135
+ if (o.trim() === "" || e > i) {
136
+ a.push(o);
137
+ continue;
138
+ }
139
+ i = void 0;
140
+ }
141
+ let e = -1;
142
+ for (let i = 0; i < o.length; i++) {
143
+ let a = o[i];
144
+ if (n) a === "\\" ? i++ : a === "\"" && (n = !1);
145
+ else if (t) a === "'" && (t = !1);
146
+ else if (a === "\"") n = !0;
147
+ else if (a === "'") t = !0;
148
+ else if (a === "#" && (i === 0 || o[i - 1] === " " || o[i - 1] === " ")) {
149
+ e = i;
150
+ break;
151
+ } else a === "[" || a === "{" ? r++ : (a === "]" || a === "}") && (r = Math.max(0, r - 1));
152
+ }
153
+ if (t || n || r > 0) {
154
+ a.push(o);
155
+ continue;
156
+ }
157
+ let s = e >= 0 ? o.slice(0, e) : o, c = e >= 0 ? o.slice(e) : "";
158
+ /:\s*[>|][\d+-]*\s*$/.test(s) ? (i = o.length - o.trimStart().length, a.push(o)) : a.push(s.replace(/,([\t ]*)$/, "$1") + c);
159
+ }
160
+ return a.join("\n");
161
+ }
162
+ n(le, "stripLineTrailingCommas");
163
+ var ue = class {
164
+ constructor() {
165
+ this.vertexCounter = 0, this.config = u(), this.vertices = /* @__PURE__ */ new Map(), this.edges = [], this.classes = /* @__PURE__ */ new Map(), this.subGraphs = [], this.subGraphLookup = /* @__PURE__ */ new Map(), this.globalNodes = /* @__PURE__ */ new Set(), this.connectors = /* @__PURE__ */ new Map(), this.tooltips = /* @__PURE__ */ new Map(), this.subCount = 0, this.firstGraphFlag = !0, this.secCount = -1, this.posCrossRef = [], this.diagramId = "", this.preserveCommentsWhenParsing = !0, this.frontmatterLineOffset = 0, this.elementMappings = [], this.bareVertexMappings = /* @__PURE__ */ new WeakSet(), this.diagnostics = [], this.postParseValidationRun = !1, this.funs = [], this.setAccTitle = o, this.setAccDescription = a, this.setDiagramTitle = p, this.getAccTitle = h, this.getAccDescription = s, this.getDiagramTitle = r, this.funs.push(this.setupToolTips.bind(this)), this.addVertex = this.addVertex.bind(this), this.firstGraph = this.firstGraph.bind(this), this.setDirection = this.setDirection.bind(this), this.addSubGraph = this.addSubGraph.bind(this), this.addGlobal = this.addGlobal.bind(this), this.addConnector = this.addConnector.bind(this), this.addConnectorMapping = this.addConnectorMapping.bind(this), this.addLink = this.addLink.bind(this), this.setLink = this.setLink.bind(this), this.updateLink = this.updateLink.bind(this), this.addClass = this.addClass.bind(this), this.setClass = this.setClass.bind(this), this.destructLink = this.destructLink.bind(this), this.setClickEvent = this.setClickEvent.bind(this), this.setTooltip = this.setTooltip.bind(this), this.updateLinkInterpolate = this.updateLinkInterpolate.bind(this), this.setClickFun = this.setClickFun.bind(this), this.bindFunctions = this.bindFunctions.bind(this), this.setFrontmatterLineOffset = this.setFrontmatterLineOffset.bind(this), this.addVertexMapping = this.addVertexMapping.bind(this), this.extendVertexMapping = this.extendVertexMapping.bind(this), this.addEdgeMapping = this.addEdgeMapping.bind(this), this.addSubgraphMapping = this.addSubgraphMapping.bind(this), this.emitWarning = this.emitWarning.bind(this), this.emitError = this.emitError.bind(this), this.getDiagnostics = this.getDiagnostics.bind(this), this.lex = { firstGraph: this.firstGraph.bind(this) }, this.clear(), this.setGen("gen-2");
166
+ }
167
+ static {
168
+ n(this, "AgentFlowDB");
169
+ }
170
+ sanitizeText(e) {
171
+ return m.sanitizeText(e, this.config);
172
+ }
173
+ sanitizeNodeLabelType(e) {
174
+ switch (e) {
175
+ case "markdown":
176
+ case "string":
177
+ case "text": return e;
178
+ default: return "markdown";
179
+ }
180
+ }
181
+ setDiagramId(e) {
182
+ this.diagramId = e;
183
+ }
184
+ lookUpDomId(e) {
185
+ for (let t of this.vertices.values()) if (t.id === e) return this.diagramId ? `${this.diagramId}-${t.domId}` : t.domId;
186
+ return this.diagramId ? `${this.diagramId}-${e}` : e;
187
+ }
188
+ addVertex(e, t, n, r, i, a, o = {}, s, c) {
189
+ if (!e || e.trim().length === 0) return;
190
+ let l;
191
+ if (s !== void 0) {
192
+ let e;
193
+ e = s.includes("\n") ? s + "\n" : "{\n" + s + "\n}";
194
+ try {
195
+ l = y(e, { schema: b }) ?? {};
196
+ } catch (e) {
197
+ let t = s.includes("\n") ? le(s) : s;
198
+ if (t !== s) try {
199
+ l = y(t + "\n", { schema: b }) ?? {};
200
+ } catch {
201
+ this.rethrowMetadataYamlError(e, s, c);
202
+ }
203
+ else this.rethrowMetadataYamlError(e, s, c);
204
+ }
205
+ l = ce(l);
206
+ }
207
+ let d;
208
+ if (l && typeof l.shape == "string") {
209
+ let e = l;
210
+ d = e.shape;
211
+ let t = I(d);
212
+ t && t !== d && (e.shape = t);
213
+ }
214
+ let f = this.subGraphLookup.get(e);
215
+ if (f && l) {
216
+ f.metadata = {
217
+ ...f.metadata,
218
+ ...l
219
+ };
220
+ return;
221
+ }
222
+ let p = this.connectors.get(e);
223
+ if (p && l) {
224
+ p.metadata = {
225
+ ...p.metadata,
226
+ ...l
227
+ };
228
+ return;
229
+ }
230
+ if (e === "connectors") return;
231
+ let m = this.edges.find((t) => t.id === e);
232
+ if (m) {
233
+ let e = l;
234
+ e?.animate !== void 0 && (m.animate = e.animate), e?.animation !== void 0 && (m.animation = e.animation), e?.curve !== void 0 && (m.interpolate = e.curve), l && (m.metadata = {
235
+ ...m.metadata,
236
+ ...l
237
+ });
238
+ return;
239
+ }
240
+ let h, g = this.vertices.get(e);
241
+ if (g === void 0 && (g = {
242
+ id: e,
243
+ labelType: "text",
244
+ domId: ie + e + "-" + this.vertexCounter,
245
+ styles: [],
246
+ classes: []
247
+ }, this.vertices.set(e, g)), this.vertexCounter++, t === void 0 ? g.text === void 0 && (g.text = e) : (this.config = u(), h = this.sanitizeText(t.text.trim()), g.labelType = t.type, h.startsWith("\"") && h.endsWith("\"") && (h = h.substring(1, h.length - 1)), g.text = h), n !== void 0 && (g.type = n), r?.forEach((e) => {
248
+ g.styles.push(e);
249
+ }), i?.forEach((e) => {
250
+ g.classes.push(e);
251
+ }), a !== void 0 && (g.dir = a), g.props === void 0 ? g.props = o : o !== void 0 && Object.assign(g.props, o), l) {
252
+ if (g.metadata = {
253
+ ...g.metadata,
254
+ ...l
255
+ }, l.shape) {
256
+ let e = d ?? l.shape;
257
+ if (typeof e != "string") throw this.positionedShapeError(`No such shape: ${JSON.stringify(e)}.`, c);
258
+ if (e !== e.toLowerCase() || e.includes("_")) throw this.positionedShapeError(`No such shape: ${e}. Shape names should be lowercase.`, c);
259
+ if (!T(l.shape)) throw this.positionedShapeError(`No such shape: ${l.shape}.`, c);
260
+ g.type = l?.shape;
261
+ }
262
+ l?.label && (g.text = this.sanitizeText(l.label), g.labelType = this.sanitizeNodeLabelType(l?.labelType));
263
+ }
264
+ }
265
+ positionedShapeError(e, t) {
266
+ let n = Error(e);
267
+ if (!t) return n;
268
+ let r = t.first_line + this.frontmatterLineOffset;
269
+ return Object.assign(n, { hash: {
270
+ text: "",
271
+ token: null,
272
+ line: r - 1,
273
+ loc: {
274
+ first_line: r,
275
+ last_line: t.last_line + this.frontmatterLineOffset,
276
+ first_column: t.first_column,
277
+ last_column: t.last_column
278
+ },
279
+ expected: []
280
+ } }), n;
281
+ }
282
+ rethrowMetadataYamlError(e, t, r) {
283
+ let i = e;
284
+ if (!i || i.name !== "YAMLException" || !i.mark || !r) throw e;
285
+ let a;
286
+ try {
287
+ let e = !t.includes("\n"), o = e ? "{\n" + t + "\n}" : t + "\n", s = r.first_line + this.frontmatterLineOffset, c = r.first_column + 2, l = /* @__PURE__ */ n((t, n) => e ? {
288
+ line: s,
289
+ column: c + (t === 1 ? n : 0)
290
+ } : {
291
+ line: s + t,
292
+ column: t === 0 ? c + n : n
293
+ }, "toSource"), u = l(i.mark.line, i.mark.column), d = i.reason ?? (i.message ?? "").split("\n")[0].replace(/\s*\(\d+:\d+\)\s*$/, ""), f = o.split("\n"), p = [];
294
+ if (e) p.push(1);
295
+ else for (let e = i.mark.line - 1; e <= i.mark.line + 1; e++) e < 0 || e >= f.length || (e !== f.length - 1 || f[e] !== "" || e === i.mark.line) && p.push(e);
296
+ let m = Math.max(...p.map((e) => String(l(e, 0).line).length)), h = [];
297
+ for (let e of p) {
298
+ let t = l(e, 0).line, n = ` ${String(t).padStart(m)} | `;
299
+ h.push(n + f[e].replace(/\t/g, "→")), e === i.mark.line && h.push("-".repeat(n.length + i.mark.column) + "^");
300
+ }
301
+ a = {
302
+ message: `${d} (${u.line}:${u.column + 1})
303
+
304
+ ${h.join("\n")}`,
305
+ markLine: u.line - 1,
306
+ markColumn: u.column,
307
+ hash: {
308
+ text: "",
309
+ token: null,
310
+ line: u.line - 1,
311
+ loc: {
312
+ first_line: u.line,
313
+ last_line: u.line,
314
+ first_column: u.column,
315
+ last_column: u.column + 1
316
+ },
317
+ expected: []
318
+ }
319
+ };
320
+ } catch {}
321
+ throw a && (i.message = a.message, i.mark.line = a.markLine, i.mark.column = a.markColumn, i.hash = a.hash), i;
322
+ }
323
+ addSingleLink(t, n, r, i) {
324
+ let a = {
325
+ start: t,
326
+ end: n,
327
+ type: void 0,
328
+ text: "",
329
+ labelType: "text",
330
+ classes: [],
331
+ isUserDefinedId: !1,
332
+ interpolate: this.edges.defaultInterpolate
333
+ };
334
+ e.info("abc78 Got edge...", a);
335
+ let o = r.text;
336
+ if (o !== void 0 && (a.text = this.sanitizeText(o.text.trim()), a.text.startsWith("\"") && a.text.endsWith("\"") && (a.text = a.text.substring(1, a.text.length - 1)), a.labelType = this.sanitizeNodeLabelType(o.type)), r !== void 0 && (a.type = r.type, a.stroke = r.stroke, a.length = r.length > 10 ? 10 : r.length, r.edgeSemantic && (a.edgeSemantic = r.edgeSemantic)), i && !this.edges.some((e) => e.id === i)) a.id = i, a.isUserDefinedId = !0;
337
+ else {
338
+ let e = this.edges.filter((e) => e.start === a.start && e.end === a.end);
339
+ a.id = e.length === 0 ? v(a.start, a.end, {
340
+ counter: 0,
341
+ prefix: "L"
342
+ }) : v(a.start, a.end, {
343
+ counter: e.length + 1,
344
+ prefix: "L"
345
+ });
346
+ }
347
+ if (this.edges.length < (this.config.maxEdges ?? 500)) e.info("Pushing edge..."), this.edges.push(a);
348
+ else throw Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
349
+
350
+ Initialize mermaid with maxEdges set to a higher number to allow more edges.
351
+ You cannot set this config via configuration inside the diagram as it is a secure config.
352
+ You have to call mermaid.initialize.`);
353
+ }
354
+ isLinkData(e) {
355
+ return typeof e == "object" && !!e && "id" in e && typeof e.id == "string";
356
+ }
357
+ addLink(t, n, r) {
358
+ let i = this.isLinkData(r) ? r.id.replace("@", "") : void 0;
359
+ e.info("addLink", t, n, i);
360
+ for (let e of t) for (let a of n) {
361
+ let o = e === t[t.length - 1], s = a === n[0];
362
+ o && s ? this.addSingleLink(e, a, r, i) : this.addSingleLink(e, a, r, void 0);
363
+ }
364
+ }
365
+ updateLinkInterpolate(e, t) {
366
+ e.forEach((e) => {
367
+ if (e === "default") this.edges.defaultInterpolate = t;
368
+ else {
369
+ if (typeof e == "number" && e >= this.edges.length) throw Error(`The index ${e} 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.)`);
370
+ this.edges[e].interpolate = t;
371
+ }
372
+ });
373
+ }
374
+ updateLink(e, t) {
375
+ e.forEach((e) => {
376
+ if (typeof e == "number" && e >= this.edges.length) throw Error(`The index ${e} 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.)`);
377
+ e === "default" ? this.edges.defaultStyle = t : (this.edges[e].style = t, (this.edges[e]?.style?.length ?? 0) > 0 && !this.edges[e]?.style?.some((e) => e?.startsWith("fill")) && this.edges[e]?.style?.push("fill:none"));
378
+ });
379
+ }
380
+ addClass(e, t) {
381
+ let n = t.join().replace(/\\,/g, "§§§").replace(/,/g, ";").replace(/§§§/g, ",").split(";");
382
+ e.split(",").forEach((e) => {
383
+ let t = this.classes.get(e);
384
+ t === void 0 && (t = {
385
+ id: e,
386
+ styles: [],
387
+ textStyles: []
388
+ }, this.classes.set(e, t)), n?.forEach((e) => {
389
+ if (/color/.exec(e)) {
390
+ let n = e.replace("fill", "bgFill");
391
+ t.textStyles.push(n);
392
+ }
393
+ t.styles.push(e);
394
+ });
395
+ });
396
+ }
397
+ setDirection(e) {
398
+ this.direction = e.trim(), /.*</.exec(this.direction) && (this.direction = "RL"), /.*\^/.exec(this.direction) && (this.direction = "BT"), /.*>/.exec(this.direction) && (this.direction = "LR"), /.*v/.exec(this.direction) && (this.direction = "TB"), this.direction === "TD" && (this.direction = "TB");
399
+ }
400
+ setClass(e, t) {
401
+ for (let n of e.split(",")) {
402
+ let e = this.vertices.get(n);
403
+ e && e.classes.push(t);
404
+ let r = this.edges.find((e) => e.id === n);
405
+ r && r.classes.push(t);
406
+ let i = this.subGraphLookup.get(n);
407
+ i && i.classes.push(t);
408
+ }
409
+ }
410
+ setTooltip(e, t) {
411
+ if (t !== void 0) {
412
+ t = this.sanitizeText(t);
413
+ for (let n of e.split(",")) this.tooltips.set(this.version === "gen-1" ? this.lookUpDomId(n) : n, t);
414
+ }
415
+ }
416
+ setClickFun(e, t, n) {
417
+ if (u().securityLevel !== "loose" || t === void 0) return;
418
+ let r = [];
419
+ if (typeof n == "string") {
420
+ r = n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
421
+ for (let e = 0; e < r.length; e++) {
422
+ let t = r[e].trim();
423
+ t.startsWith("\"") && t.endsWith("\"") && (t = t.substr(1, t.length - 2)), r[e] = t;
424
+ }
425
+ }
426
+ r.length === 0 && r.push(e);
427
+ let i = this.vertices.get(e);
428
+ i && (i.haveCallback = !0, this.funs.push(() => {
429
+ let n = this.lookUpDomId(e), i = document.querySelector(`[id="${n}"]`);
430
+ i !== null && i.addEventListener("click", () => {
431
+ _.runFunc(t, ...r);
432
+ }, !1);
433
+ }));
434
+ }
435
+ setLink(e, t, n) {
436
+ e.split(",").forEach((e) => {
437
+ let r = this.vertices.get(e);
438
+ r !== void 0 && (r.link = _.formatUrl(t, this.config), r.linkTarget = n);
439
+ }), this.setClass(e, "clickable");
440
+ }
441
+ getTooltip(e) {
442
+ return this.tooltips.get(e);
443
+ }
444
+ setClickEvent(e, t, n) {
445
+ e.split(",").forEach((e) => {
446
+ this.setClickFun(e, t, n);
447
+ }), this.setClass(e, "clickable");
448
+ }
449
+ bindFunctions(e) {
450
+ this.funs.forEach((t) => {
451
+ t(e);
452
+ });
453
+ }
454
+ getDirection() {
455
+ return this.direction?.trim();
456
+ }
457
+ getVertices() {
458
+ return this.vertices;
459
+ }
460
+ getEdges() {
461
+ return this.edges;
462
+ }
463
+ isToolDefinition(e) {
464
+ return oe.has(e.type);
465
+ }
466
+ getTools() {
467
+ let e = [];
468
+ for (let t of this.vertices.values()) this.isToolDefinition(t) && e.push(t);
469
+ return e;
470
+ }
471
+ getClasses() {
472
+ return this.classes;
473
+ }
474
+ setupToolTips(e) {
475
+ let n = k();
476
+ t(e).select("svg").selectAll("g.node").on("mouseover", (e) => {
477
+ let r = t(e.currentTarget), i = r.attr("title");
478
+ if (i === null) return;
479
+ let a = e.currentTarget?.getBoundingClientRect();
480
+ n.transition().duration(200).style("opacity", ".9"), n.text(r.attr("title")).style("left", window.scrollX + a.left + (a.right - a.left) / 2 + "px").style("top", window.scrollY + a.bottom + "px"), n.html(f.sanitize(i)), r.classed("hover", !0);
481
+ }).on("mouseout", (e) => {
482
+ n.transition().duration(500).style("opacity", 0), t(e.currentTarget).classed("hover", !1);
483
+ });
484
+ }
485
+ clear(e = "gen-2") {
486
+ this.vertices = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(), this.edges = [], this.funs = [this.setupToolTips.bind(this)], this.subGraphs = [], this.subGraphLookup = /* @__PURE__ */ new Map(), this.globalNodes = /* @__PURE__ */ new Set(), this.connectors = /* @__PURE__ */ new Map(), this.subCount = 0, this.tooltips = /* @__PURE__ */ new Map(), this.firstGraphFlag = !0, this.version = e, this.config = u(), this.diagramId = "", this.vertexCounter = 0, this.direction = void 0, this.secCount = -1, this.posCrossRef = [], this.frontmatterLineOffset = 0, this.elementMappings = [], this.bareVertexMappings = /* @__PURE__ */ new WeakSet(), this.diagnostics = [], this.postParseValidationRun = !1, c();
487
+ }
488
+ setGen(e) {
489
+ this.version = e || "gen-2";
490
+ }
491
+ defaultStyle() {
492
+ return "fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;";
493
+ }
494
+ addSubGraph(t, r, i, a) {
495
+ let o = t?.text?.trim(), s = i?.text;
496
+ t === i && i?.text && /\s/.exec(i.text) && (o = void 0);
497
+ let c = (/* @__PURE__ */ n((e) => {
498
+ let t = {
499
+ boolean: {},
500
+ number: {},
501
+ string: {}
502
+ }, n = [], r;
503
+ return {
504
+ nodeList: e.filter(function(e) {
505
+ let i = typeof e;
506
+ return e.stmt && e.stmt === "dir" ? (r = e.value, !1) : e.trim() === "" ? !1 : i in t ? t[i].hasOwnProperty(e) ? !1 : t[i][e] = !0 : !n.includes(e) && n.push(e);
507
+ }),
508
+ dir: r
509
+ };
510
+ }, "uniq"))(r.flat()), l = c.nodeList, d = c.dir, f = u().flowchart ?? {};
511
+ if (d ??= f.inheritDir ? this.getDirection() ?? u().direction ?? void 0 : void 0, this.version === "gen-1") for (let e = 0; e < l.length; e++) l[e] = this.lookUpDomId(l[e]);
512
+ o ??= "subGraph" + this.subCount, s ||= "", s = this.sanitizeText(s), this.subCount += 1;
513
+ let p = {
514
+ id: o,
515
+ nodes: l.filter((e) => e !== o && !this.globalNodes.has(e)),
516
+ title: s.trim(),
517
+ classes: [],
518
+ dir: d,
519
+ labelType: this.sanitizeNodeLabelType(i?.type),
520
+ type: a ?? "flow"
521
+ };
522
+ e.info("Adding", p.id, p.nodes, p.dir), p.nodes = this.makeUniq(p, this.subGraphs).nodes;
523
+ let m = this.getPosForId(o);
524
+ if (m !== -1) {
525
+ let e = this.subGraphs[m];
526
+ for (let t of p.nodes) e.nodes.includes(t) || e.nodes.push(t);
527
+ p.title && (e.title = p.title), p.dir && (e.dir = p.dir), p.type && (e.type = p.type), this.subGraphLookup.set(o, e);
528
+ } else this.subGraphs.push(p), this.subGraphLookup.set(o, p);
529
+ return o;
530
+ }
531
+ addGlobal(e) {
532
+ for (let t of e.flat()) {
533
+ if (typeof t != "string") continue;
534
+ let e = t.trim();
535
+ e !== "" && this.globalNodes.add(e);
536
+ }
537
+ for (let e of this.subGraphs) e.nodes = e.nodes.filter((e) => !this.globalNodes.has(e));
538
+ }
539
+ getPosForId(e) {
540
+ for (let [t, n] of this.subGraphs.entries()) if (n.id === e) return t;
541
+ return -1;
542
+ }
543
+ indexNodes2(e, t) {
544
+ let n = this.subGraphs[t].nodes;
545
+ if (this.secCount += 1, this.secCount > 2e3) return {
546
+ result: !1,
547
+ count: 0
548
+ };
549
+ if (this.posCrossRef[this.secCount] = t, this.subGraphs[t].id === e) return {
550
+ result: !0,
551
+ count: 0
552
+ };
553
+ let r = 0, i = 1;
554
+ for (; r < n.length;) {
555
+ let t = this.getPosForId(n[r]);
556
+ if (t >= 0) {
557
+ let n = this.indexNodes2(e, t);
558
+ if (n.result) return {
559
+ result: !0,
560
+ count: i + n.count
561
+ };
562
+ i += n.count;
563
+ }
564
+ r += 1;
565
+ }
566
+ return {
567
+ result: !1,
568
+ count: i
569
+ };
570
+ }
571
+ getDepthFirstPos(e) {
572
+ return this.posCrossRef[e];
573
+ }
574
+ indexNodes() {
575
+ this.secCount = -1, this.subGraphs.length > 0 && this.indexNodes2("none", this.subGraphs.length - 1);
576
+ }
577
+ addConnector(e, t) {
578
+ let n = e?.text?.trim();
579
+ if (!n) return "";
580
+ let r = t?.text?.trim() ?? "", i = r.length > 0 ? this.sanitizeText(r) : n, a = this.connectors.get(n);
581
+ return a ? r.length > 0 && (a.text = i) : (a = {
582
+ id: n,
583
+ labelType: "text",
584
+ domId: ie + n + "-" + this.vertexCounter,
585
+ styles: [],
586
+ classes: [],
587
+ isConnector: !0,
588
+ text: i
589
+ }, this.connectors.set(n, a), this.vertices.set(n, a), this.vertexCounter++), n;
590
+ }
591
+ getSubGraphs() {
592
+ return this.subGraphs;
593
+ }
594
+ getConnectors() {
595
+ return [...this.connectors.values()];
596
+ }
597
+ firstGraph() {
598
+ return this.firstGraphFlag ? (this.firstGraphFlag = !1, !0) : !1;
599
+ }
600
+ computeEdgeSemantic(e, t) {
601
+ if (e === "arrow_point" && t === "normal") return "sequence";
602
+ if (e === "arrow_cross" && t === "normal") return "failure";
603
+ if (e === "arrow_open" && t === "dotted") return "reference";
604
+ }
605
+ destructStartLink(e) {
606
+ let t = e.trim(), n = "normal";
607
+ return t.includes(".") && (n = "dotted"), {
608
+ type: "arrow_open",
609
+ stroke: n
610
+ };
611
+ }
612
+ countChar(e, t) {
613
+ let n = t.length, r = 0;
614
+ for (let i = 0; i < n; ++i) t[i] === e && ++r;
615
+ return r;
616
+ }
617
+ destructEndLink(e) {
618
+ let t = e.trim(), n = t.slice(0, -1), r = "arrow_open";
619
+ switch (t.slice(-1)) {
620
+ case "x":
621
+ r = "arrow_cross";
622
+ break;
623
+ case ">":
624
+ r = "arrow_point";
625
+ break;
626
+ case "-":
627
+ case ".": r = "arrow_open", n = t;
628
+ }
629
+ let i = "normal", a = n.length - 1, o = this.countChar(".", n);
630
+ return o > 0 && (i = "dotted", a = o), {
631
+ type: r,
632
+ stroke: i,
633
+ length: a
634
+ };
635
+ }
636
+ destructLink(e, t) {
637
+ let n = this.destructEndLink(e), r;
638
+ return t ? (r = this.destructStartLink(t), r.stroke === n.stroke ? (r.type = n.type, r.length = n.length, {
639
+ ...r,
640
+ edgeSemantic: this.computeEdgeSemantic(r.type, r.stroke)
641
+ }) : {
642
+ type: "INVALID",
643
+ stroke: "INVALID"
644
+ }) : {
645
+ ...n,
646
+ edgeSemantic: this.computeEdgeSemantic(n.type, n.stroke)
647
+ };
648
+ }
649
+ exists(e, t) {
650
+ for (let n of e) if (n.nodes.includes(t)) return !0;
651
+ return !1;
652
+ }
653
+ makeUniq(e, t) {
654
+ let n = [];
655
+ return e.nodes.forEach((r, i) => {
656
+ this.exists(t, r) || n.push(e.nodes[i]);
657
+ }), { nodes: n };
658
+ }
659
+ getTypeFromVertex(e) {
660
+ let t = typeof e.type == "string" ? I(e.type) : e.type;
661
+ switch (t) {
662
+ case "square":
663
+ case void 0: return "squareRect";
664
+ case "round": return "roundedRect";
665
+ case "ellipse": return "ellipse";
666
+ default: return t;
667
+ }
668
+ }
669
+ findNode(e, t) {
670
+ return e.find((e) => e.id === t);
671
+ }
672
+ destructEdgeType(e) {
673
+ let t = "none", n = "arrow_point";
674
+ switch (e) {
675
+ case "arrow_point":
676
+ case "arrow_circle":
677
+ case "arrow_cross":
678
+ case "arrow_hierarchy":
679
+ n = e;
680
+ break;
681
+ case "double_arrow_point":
682
+ case "double_arrow_circle":
683
+ case "double_arrow_cross": t = e.replace("double_", ""), n = t;
684
+ }
685
+ return {
686
+ arrowTypeStart: t,
687
+ arrowTypeEnd: n
688
+ };
689
+ }
690
+ addNodeFromVertex(e, t, n, r, i, a) {
691
+ let o = n.get(e.id), s = r.get(e.id) ?? !1, c = this.findNode(t, e.id);
692
+ if (c) c.cssStyles = e.styles, c.cssCompiledStyles = this.getCompiledStyles(e.classes), c.cssClasses = e.classes.join(" ");
693
+ else {
694
+ let n = {
695
+ id: e.id,
696
+ label: e.text,
697
+ labelType: e.labelType,
698
+ labelStyle: "",
699
+ parentId: o,
700
+ padding: i.flowchart?.padding || 8,
701
+ cssStyles: e.styles,
702
+ cssCompiledStyles: this.getCompiledStyles([
703
+ "default",
704
+ "node",
705
+ ...e.classes
706
+ ]),
707
+ cssClasses: "default " + e.classes.join(" "),
708
+ dir: e.dir,
709
+ domId: e.domId,
710
+ look: a,
711
+ link: e.link,
712
+ linkTarget: e.linkTarget,
713
+ tooltip: this.getTooltip(e.id),
714
+ metadata: e.metadata
715
+ };
716
+ s ? t.push({
717
+ ...n,
718
+ isGroup: !0,
719
+ shape: "rect"
720
+ }) : t.push({
721
+ ...n,
722
+ isGroup: !1,
723
+ shape: this.getTypeFromVertex(e),
724
+ wrappingWidth: i.agentflow?.wrappingWidth,
725
+ minWidth: i.agentflow?.minNodeWidth
726
+ });
727
+ }
728
+ }
729
+ getCompiledStyles(e) {
730
+ let t = [];
731
+ for (let n of e) {
732
+ let e = this.classes.get(n);
733
+ e?.styles && (t = [...t, ...e.styles ?? []].map((e) => e.trim())), e?.textStyles && (t = [...t, ...e.textStyles ?? []].map((e) => e.trim()));
734
+ }
735
+ return t;
736
+ }
737
+ runPostParseValidators() {
738
+ this.postParseValidationRun ||= !0;
739
+ }
740
+ getData() {
741
+ this.runPostParseValidators();
742
+ let e = u(), t = [], r = [], i = this.getSubGraphs(), a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ n((e, t, n = /* @__PURE__ */ new Set()) => {
743
+ if (n.has(e)) return;
744
+ n.add(e);
745
+ let r = this.subGraphLookup.get(e);
746
+ if (r) for (let e of r.nodes) e === t || n.has(e) || (s.add(e), c.set(e, t), l(e, t, n));
747
+ }, "collectDescendants");
748
+ for (let e of i) e.metadata?.view === "collapsed" && !s.has(e.id) && l(e.id, e.id);
749
+ let d = /* @__PURE__ */ n((e, t) => {
750
+ let n = /* @__PURE__ */ new Set(), r = t;
751
+ for (; r !== void 0 && !n.has(r);) {
752
+ if (r === e) return !0;
753
+ n.add(r), r = a.get(r);
754
+ }
755
+ return !1;
756
+ }, "wouldCloseContainmentCycle");
757
+ for (let e = i.length - 1; e >= 0; e--) {
758
+ let t = i[e];
759
+ if (!s.has(t.id)) {
760
+ t.nodes.length > 0 && o.set(t.id, !0);
761
+ for (let e of t.nodes) d(e, t.id) ? this.emitWarning(M.CONTAINMENT_VIOLATION, `Container "${t.id}" cannot contain "${e}" because "${e}" already contains it. The nesting that would close the loop is dropped.`, { nodeId: e }) : a.set(e, t.id);
762
+ }
763
+ }
764
+ for (let n = i.length - 1; n >= 0; n--) {
765
+ let r = i[n];
766
+ if (!s.has(r.id)) {
767
+ if (r.metadata?.view === "collapsed") {
768
+ let n = {
769
+ ...r.metadata,
770
+ containerType: r.type
771
+ };
772
+ t.push({
773
+ id: r.id,
774
+ label: r.title,
775
+ labelStyle: "",
776
+ labelType: r.labelType,
777
+ parentId: a.get(r.id),
778
+ padding: 8,
779
+ cssCompiledStyles: this.getCompiledStyles(r.classes),
780
+ cssClasses: r.classes.join(" "),
781
+ shape: "collapsedGroup",
782
+ dir: r.dir,
783
+ isGroup: !1,
784
+ look: e.look,
785
+ metadata: n
786
+ });
787
+ } else t.push({
788
+ id: r.id,
789
+ label: r.title,
790
+ labelStyle: "",
791
+ labelType: r.labelType,
792
+ parentId: a.get(r.id),
793
+ padding: 8,
794
+ cssCompiledStyles: this.getCompiledStyles(r.classes),
795
+ cssClasses: r.classes.join(" "),
796
+ shape: se[r.type ?? "flow"],
797
+ dir: r.dir,
798
+ isGroup: !0,
799
+ look: e.look,
800
+ metadata: r.metadata
801
+ });
802
+ }
803
+ }
804
+ this.getVertices().forEach((n) => {
805
+ s.has(n.id) || this.addNodeFromVertex(n, t, a, o, e, e.look || "classic");
806
+ });
807
+ let f = this.getEdges();
808
+ f.forEach((t, n) => {
809
+ let i = c.get(t.start) ?? t.start, a = c.get(t.end) ?? t.end;
810
+ if (i === a && t.start !== t.end) return;
811
+ let { arrowTypeStart: o, arrowTypeEnd: s } = this.destructEdgeType(t.type), l = [...f.defaultStyle ?? []];
812
+ t.style && l.push(...t.style);
813
+ let u = {
814
+ id: v(i, a, {
815
+ counter: n,
816
+ prefix: "L"
817
+ }, t.id),
818
+ isUserDefinedId: t.isUserDefinedId,
819
+ start: i,
820
+ end: a,
821
+ type: t.type ?? "normal",
822
+ label: t.text,
823
+ labelType: t.labelType,
824
+ labelpos: "c",
825
+ thickness: t.stroke,
826
+ minlen: t.length,
827
+ classes: t?.stroke === "invisible" ? "" : "edge-thickness-normal edge-pattern-solid flowchart-link",
828
+ arrowTypeStart: t?.stroke === "invisible" || t?.type === "arrow_open" ? "none" : o,
829
+ arrowTypeEnd: t?.stroke === "invisible" || t?.type === "arrow_open" ? "none" : s,
830
+ arrowheadStyle: "fill: #333",
831
+ cssCompiledStyles: this.getCompiledStyles(t.classes),
832
+ labelStyle: l,
833
+ style: l,
834
+ pattern: t.stroke,
835
+ look: e.look,
836
+ animate: t.animate,
837
+ animation: t.animation,
838
+ curve: t.interpolate || this.edges.defaultInterpolate || e.flowchart?.curve,
839
+ metadata: t.metadata
840
+ };
841
+ r.push(u);
842
+ }), ne(t, this);
843
+ let p = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map();
844
+ for (let e of i) {
845
+ let t = a.get(e.id);
846
+ t !== void 0 && m.set(t, [...m.get(t) ?? [], e.id]);
847
+ }
848
+ let h = 0, g = /* @__PURE__ */ n((e) => {
849
+ if (!p.has(e)) {
850
+ p.set(e, h++);
851
+ for (let t of m.get(e) ?? []) g(t);
852
+ }
853
+ }, "walkContainers");
854
+ for (let e of i) a.get(e.id) === void 0 && g(e.id);
855
+ let _ = new Set(this.getConnectors().map((e) => e.id));
856
+ return re(t, (e) => {
857
+ if (_.has(e)) return "connector";
858
+ let t = this.vertices.get(e);
859
+ return t ? this.deriveVertexKind(t, I(t.type)) : void 0;
860
+ }, p), {
861
+ nodes: t,
862
+ edges: r,
863
+ other: {},
864
+ config: e,
865
+ connectors: this.getConnectors()
866
+ };
867
+ }
868
+ defaultConfig() {
869
+ return d.flowchart;
870
+ }
871
+ deriveVertexKind(e, t) {
872
+ return this.isToolDefinition(e) ? "tool" : t === "hexagon" || t === "hex" ? "action" : t === "lean-right" || t === "lean_right" ? "input" : t === "lin-doc" || t === "lined-document" ? "refdoc" : t === "diamond" ? "decision" : "task";
873
+ }
874
+ getSemanticModel() {
875
+ this.runPostParseValidators();
876
+ let e = new Set(this.subGraphs.map((e) => e.id)), t = [], n = [];
877
+ for (let [r, i] of this.vertices) {
878
+ if (e.has(r)) continue;
879
+ if (i.isConnector) {
880
+ let e = { id: r };
881
+ if (i.text !== void 0 && i.text !== r && (e.title = i.text), i.metadata && Object.keys(i.metadata).length > 0) {
882
+ let t = {};
883
+ for (let [e, n] of Object.entries(i.metadata)) ae.has(e) || (t[e] = n);
884
+ Object.keys(t).length > 0 && (e.metadata = t);
885
+ }
886
+ n.push(e);
887
+ continue;
888
+ }
889
+ let a = { id: r };
890
+ i.text !== void 0 && (a.label = i.text);
891
+ let o = typeof i.type == "string" ? I(i.type) : i.type;
892
+ if (o !== void 0 && (a.shape = o), a.vertexKind = this.deriveVertexKind(i, o), i.metadata && Object.keys(i.metadata).length > 0) {
893
+ let e = {};
894
+ for (let [t, n] of Object.entries(i.metadata)) ae.has(t) || (e[t] = n);
895
+ Object.keys(e).length > 0 && (a.metadata = e);
896
+ }
897
+ t.push(a);
898
+ }
899
+ let r = {
900
+ vertices: t,
901
+ edges: this.edges.map((e) => {
902
+ let t = {
903
+ start: e.start,
904
+ end: e.end
905
+ };
906
+ return e.id !== void 0 && (t.id = e.id), typeof e.text == "string" && e.text.length > 0 && (t.label = e.text), e.type !== void 0 && (t.type = e.type), e.stroke !== void 0 && (t.stroke = e.stroke), e.edgeSemantic !== void 0 && (t.edgeSemantic = e.edgeSemantic), e.length !== void 0 && (t.length = e.length), e.metadata && Object.keys(e.metadata).length > 0 && (t.metadata = { ...e.metadata }), t;
907
+ }),
908
+ subGraphs: this.subGraphs.map((e) => {
909
+ let t = {
910
+ id: e.id,
911
+ nodes: [...e.nodes]
912
+ };
913
+ if (e.type !== void 0 && (t.type = e.type), e.title !== void 0 && (t.title = e.title), e.dir !== void 0 && (t.direction = e.dir), e.metadata && Object.keys(e.metadata).length > 0) {
914
+ let n = {};
915
+ for (let [t, r] of Object.entries(e.metadata)) ae.has(t) || (n[t] = r);
916
+ Object.keys(n).length > 0 && (t.metadata = n);
917
+ }
918
+ return t;
919
+ }),
920
+ connectors: n,
921
+ diagnostics: this.diagnostics
922
+ };
923
+ return this.direction !== void 0 && (r.direction = this.direction), r;
924
+ }
925
+ setFrontmatterLineOffset(e) {
926
+ this.frontmatterLineOffset = e ?? 0;
927
+ }
928
+ toElementPosition(e) {
929
+ let t = e?.first_line ?? 0, n = e?.first_column ?? 0, r = e?.last_line ?? t, i = e?.last_column ?? n, [a, o] = e?.range ?? [0, 0];
930
+ return {
931
+ startLine: t + this.frontmatterLineOffset,
932
+ startColumn: n,
933
+ endLine: r + this.frontmatterLineOffset,
934
+ endColumn: i,
935
+ startIndex: a,
936
+ endIndex: o
937
+ };
938
+ }
939
+ pushMapping(e, t, n) {
940
+ if (!e) return;
941
+ let r = {
942
+ id: e,
943
+ type: t,
944
+ position: this.toElementPosition(n)
945
+ };
946
+ return this.elementMappings.push(r), r;
947
+ }
948
+ addVertexMapping(e, t, n, r) {
949
+ let i = this.pushMapping(e, "vertex", r);
950
+ i && n == null && this.bareVertexMappings.add(i);
951
+ }
952
+ extendVertexMapping(e, t) {
953
+ if (!e || !t) return;
954
+ let n = this.toElementPosition(t);
955
+ for (let t = this.elementMappings.length - 1; t >= 0; t--) {
956
+ let r = this.elementMappings[t];
957
+ if (r.type === "vertex" && r.id === e) {
958
+ this.bareVertexMappings.has(r) && (r.type = "attachment", this.bareVertexMappings.delete(r)), (n.endLine > r.position.endLine || n.endLine === r.position.endLine && n.endColumn > r.position.endColumn) && (r.position.endLine = n.endLine, r.position.endColumn = n.endColumn, r.position.endIndex = n.endIndex);
959
+ return;
960
+ }
961
+ }
962
+ this.pushMapping(e, "attachment", t);
963
+ }
964
+ addEdgeMapping(e, t, n, r) {
965
+ let i = Array.isArray(t) ? t.map((e) => typeof e == "string" ? e : e?.id ?? "").filter(Boolean) : [], a = i.length > 0 ? i.join(">") : "edge";
966
+ this.pushMapping(a, "edge", r);
967
+ }
968
+ addSubgraphMapping(e, t, n, r) {
969
+ let i = (typeof e == "string" ? e : e?.text) ?? "", a = this.toElementPosition(n), o = r ? this.toElementPosition(r) : a;
970
+ i && this.elementMappings.push({
971
+ id: i,
972
+ type: "subgraph",
973
+ position: {
974
+ startLine: a.startLine,
975
+ startColumn: a.startColumn,
976
+ endLine: o.endLine,
977
+ endColumn: o.endColumn,
978
+ startIndex: a.startIndex,
979
+ endIndex: o.endIndex
980
+ }
981
+ });
982
+ }
983
+ addConnectorMapping(e, t, n, r) {
984
+ let i = e?.text?.trim() ?? "";
985
+ if (!i) return;
986
+ let a = this.toElementPosition(n), o = r ? this.toElementPosition(r) : a;
987
+ this.elementMappings.push({
988
+ id: i,
989
+ type: "connector",
990
+ position: {
991
+ startLine: a.startLine,
992
+ startColumn: a.startColumn,
993
+ endLine: o.endLine,
994
+ endColumn: o.endColumn,
995
+ startIndex: a.startIndex,
996
+ endIndex: o.endIndex
997
+ }
998
+ });
999
+ }
1000
+ getElementMappings() {
1001
+ return [...this.elementMappings];
1002
+ }
1003
+ getElementById(e) {
1004
+ return this.elementMappings.find((t) => t.id === e);
1005
+ }
1006
+ getElementsOnLine(e) {
1007
+ return this.elementMappings.filter((t) => e >= t.position.startLine && e <= t.position.endLine);
1008
+ }
1009
+ getElementAtPosition(e, t) {
1010
+ let r = this.elementMappings.filter((n) => {
1011
+ let { startLine: r, startColumn: i, endLine: a, endColumn: o } = n.position;
1012
+ return !(e < r || e > a || e === r && t < i || e === a && t > o);
1013
+ });
1014
+ if (r.length === 0) return;
1015
+ let i = /* @__PURE__ */ n(({ position: e }) => [e.endLine - e.startLine, e.endColumn - e.startColumn], "span");
1016
+ return r.reduce((e, t) => {
1017
+ let [n, r] = i(e), [a, o] = i(t);
1018
+ return a === n ? o < r ? t : e : a < n ? t : e;
1019
+ });
1020
+ }
1021
+ getMappingStats() {
1022
+ let e = 0, t = 0, n = 0, r = 0, i = 0;
1023
+ for (let a of this.elementMappings) a.type === "vertex" ? e++ : a.type === "edge" ? t++ : a.type === "subgraph" ? n++ : a.type === "connector" ? r++ : a.type === "attachment" && i++;
1024
+ return {
1025
+ vertices: e,
1026
+ edges: t,
1027
+ subgraphs: n,
1028
+ connectors: r,
1029
+ attachments: i,
1030
+ totalElements: this.elementMappings.length
1031
+ };
1032
+ }
1033
+ emitDiagnostic(t, n, r, i) {
1034
+ let a = i?.nodeId ?? i?.edgeId, o = a ? this.getElementById(a) : void 0, s = {
1035
+ id: t,
1036
+ severity: n,
1037
+ message: r,
1038
+ ...i?.nodeId ? { nodeId: i.nodeId } : {},
1039
+ ...i?.edgeId && !i?.nodeId ? { edgeId: i.edgeId } : {},
1040
+ ...o ? { position: o.position } : {}
1041
+ };
1042
+ if (this.diagnostics.some((e) => e.id === s.id && e.severity === s.severity && e.message === s.message && e.nodeId === s.nodeId && e.edgeId === s.edgeId)) return;
1043
+ this.diagnostics.push(s);
1044
+ let c = `agentflow[${t}]: ${r}`;
1045
+ n === "error" ? e.error(c) : e.warn(c);
1046
+ }
1047
+ emitWarning(e, t, n) {
1048
+ this.emitDiagnostic(e, "warning", t, n);
1049
+ }
1050
+ emitError(e, t, n) {
1051
+ this.emitDiagnostic(e, "error", t, n);
1052
+ }
1053
+ getDiagnostics() {
1054
+ return [...this.diagnostics];
1055
+ }
1056
+ }, de = {
1057
+ getClasses: /* @__PURE__ */ n(function(e, t) {
1058
+ return t.db.getClasses();
1059
+ }, "getClasses"),
1060
+ draw: /* @__PURE__ */ n(async function(t, n, r, i) {
1061
+ e.debug("Drawing agentflow diagram", n);
1062
+ let { securityLevel: a, agentflow: o, layout: s } = u();
1063
+ i.db.setDiagramId(n), e.debug("Before getData: ");
1064
+ let c = i.db.getData();
1065
+ e.debug("Data: ", c);
1066
+ let l = A(n, a), d = i.db.getDirection();
1067
+ c.type = i.type, c.layoutAlgorithm = D(s), c.layoutAlgorithm === "dagre" && s === "elk" && e.warn("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."), c.direction = d, c.nodeSpacing = o?.nodeSpacing || 50, c.rankSpacing = o?.rankSpacing || 50, c.markers = [
1068
+ "point",
1069
+ "circle",
1070
+ "cross",
1071
+ "hierarchy"
1072
+ ], c.diagramId = n, e.debug("REF1:", c), await E(c, l);
1073
+ let f = o?.diagramPadding ?? 8;
1074
+ _.insertTitle(l, "agentflowTitleText", o?.titleTopMargin ?? 0, i.db.getDiagramTitle()), j(l, f, "agentflow", o?.useMaxWidth ?? !0);
1075
+ }, "draw")
1076
+ }, fe = (function() {
1077
+ var e = /* @__PURE__ */ n(function(e, t, n, r) {
1078
+ for (n ||= {}, r = e.length; r--; n[e[r]] = t);
1079
+ return n;
1080
+ }, "o"), t = [1, 5], r = [1, 4], i = [1, 3], a = [1, 6], o = [
1081
+ 1,
1082
+ 8,
1083
+ 9,
1084
+ 10,
1085
+ 11,
1086
+ 12,
1087
+ 28,
1088
+ 35,
1089
+ 36,
1090
+ 38,
1091
+ 40,
1092
+ 42,
1093
+ 47,
1094
+ 63,
1095
+ 87,
1096
+ 88,
1097
+ 89,
1098
+ 90,
1099
+ 91,
1100
+ 92,
1101
+ 105,
1102
+ 108,
1103
+ 109,
1104
+ 112,
1105
+ 114,
1106
+ 117,
1107
+ 118,
1108
+ 119,
1109
+ 124,
1110
+ 125,
1111
+ 126,
1112
+ 127,
1113
+ 128
1114
+ ], s = [2, 2], c = [1, 15], l = [1, 16], u = [1, 17], d = [1, 18], f = [1, 19], p = [1, 26], m = [1, 27], h = [1, 28], g = [1, 30], _ = [1, 31], v = [1, 32], y = [1, 55], b = [1, 54], x = [1, 34], S = [1, 35], C = [1, 36], w = [1, 37], T = [1, 38], E = [1, 50], D = [1, 52], O = [1, 48], k = [1, 53], A = [1, 49], j = [1, 56], M = [1, 51], N = [1, 57], P = [1, 58], ee = [1, 39], te = [1, 40], F = [1, 41], I = [1, 42], ne = [1, 43], L = [1, 64], R = [
1115
+ 1,
1116
+ 8,
1117
+ 9,
1118
+ 10,
1119
+ 11,
1120
+ 12,
1121
+ 28,
1122
+ 33,
1123
+ 35,
1124
+ 36,
1125
+ 38,
1126
+ 40,
1127
+ 42,
1128
+ 47,
1129
+ 63,
1130
+ 87,
1131
+ 88,
1132
+ 89,
1133
+ 90,
1134
+ 91,
1135
+ 92,
1136
+ 105,
1137
+ 108,
1138
+ 109,
1139
+ 112,
1140
+ 114,
1141
+ 117,
1142
+ 118,
1143
+ 119,
1144
+ 124,
1145
+ 125,
1146
+ 126,
1147
+ 127,
1148
+ 128
1149
+ ], z = [1, 70], B = [1, 68], V = [1, 67], H = [1, 69], re = [
1150
+ 8,
1151
+ 9,
1152
+ 10,
1153
+ 12,
1154
+ 78,
1155
+ 80,
1156
+ 81
1157
+ ], ie = [1, 88], ae = [1, 101], oe = [1, 106], se = [1, 105], ce = [1, 102], le = [1, 98], ue = [1, 104], de = [1, 100], fe = [1, 107], pe = [1, 103], me = [1, 108], he = [1, 99], ge = [
1158
+ 8,
1159
+ 9,
1160
+ 10,
1161
+ 11,
1162
+ 12,
1163
+ 43,
1164
+ 78,
1165
+ 80,
1166
+ 81
1167
+ ], U = [
1168
+ 8,
1169
+ 9,
1170
+ 10,
1171
+ 11,
1172
+ 12,
1173
+ 43,
1174
+ 49,
1175
+ 78,
1176
+ 80,
1177
+ 81
1178
+ ], W = [
1179
+ 8,
1180
+ 9,
1181
+ 10,
1182
+ 11,
1183
+ 12,
1184
+ 30,
1185
+ 43,
1186
+ 47,
1187
+ 49,
1188
+ 51,
1189
+ 53,
1190
+ 55,
1191
+ 57,
1192
+ 59,
1193
+ 61,
1194
+ 63,
1195
+ 66,
1196
+ 68,
1197
+ 70,
1198
+ 71,
1199
+ 73,
1200
+ 78,
1201
+ 80,
1202
+ 81,
1203
+ 92,
1204
+ 105,
1205
+ 108,
1206
+ 109,
1207
+ 112,
1208
+ 114,
1209
+ 117,
1210
+ 118,
1211
+ 119
1212
+ ], _e = [
1213
+ 8,
1214
+ 9,
1215
+ 10,
1216
+ 12,
1217
+ 47,
1218
+ 63,
1219
+ 78,
1220
+ 80,
1221
+ 81,
1222
+ 92,
1223
+ 105,
1224
+ 108,
1225
+ 109,
1226
+ 112,
1227
+ 114,
1228
+ 117,
1229
+ 118,
1230
+ 119
1231
+ ], ve = [
1232
+ 47,
1233
+ 63,
1234
+ 92,
1235
+ 105,
1236
+ 108,
1237
+ 109,
1238
+ 112,
1239
+ 114,
1240
+ 117,
1241
+ 118,
1242
+ 119
1243
+ ], ye = [1, 131], be = [1, 132], xe = [1, 134], Se = [1, 133], Ce = [
1244
+ 47,
1245
+ 63,
1246
+ 65,
1247
+ 77,
1248
+ 92,
1249
+ 105,
1250
+ 108,
1251
+ 109,
1252
+ 112,
1253
+ 114,
1254
+ 117,
1255
+ 118,
1256
+ 119
1257
+ ], we = [1, 143], Te = [1, 157], Ee = [1, 158], De = [1, 159], Oe = [1, 162], ke = [1, 161], Ae = [1, 160], je = [1, 145], Me = [1, 147], Ne = [1, 151], Pe = [1, 139], Fe = [1, 140], Ie = [1, 152], Le = [1, 153], Re = [1, 154], ze = [1, 155], Be = [1, 156], Ve = [1, 163], He = [1, 164], Ue = [1, 141], We = [1, 142], Ge = [1, 149], Ke = [1, 144], qe = [1, 148], Je = [1, 146], Ye = [
1258
+ 8,
1259
+ 9,
1260
+ 10,
1261
+ 11,
1262
+ 12,
1263
+ 28,
1264
+ 33,
1265
+ 35,
1266
+ 36,
1267
+ 38,
1268
+ 40,
1269
+ 42,
1270
+ 47,
1271
+ 63,
1272
+ 87,
1273
+ 88,
1274
+ 89,
1275
+ 90,
1276
+ 91,
1277
+ 92,
1278
+ 105,
1279
+ 108,
1280
+ 109,
1281
+ 112,
1282
+ 114,
1283
+ 117,
1284
+ 118,
1285
+ 119,
1286
+ 124,
1287
+ 125,
1288
+ 126,
1289
+ 127,
1290
+ 128
1291
+ ], Xe = [1, 168], Ze = [1, 170], G = [
1292
+ 8,
1293
+ 9,
1294
+ 10,
1295
+ 12
1296
+ ], K = [
1297
+ 8,
1298
+ 9,
1299
+ 10,
1300
+ 11,
1301
+ 12,
1302
+ 15,
1303
+ 47,
1304
+ 63,
1305
+ 92,
1306
+ 108,
1307
+ 109,
1308
+ 112,
1309
+ 114,
1310
+ 117,
1311
+ 118,
1312
+ 119
1313
+ ], q = [1, 190], J = [1, 186], Y = [1, 187], X = [1, 191], Z = [1, 188], Q = [1, 189], Qe = [
1314
+ 80,
1315
+ 119,
1316
+ 122
1317
+ ], $ = [
1318
+ 8,
1319
+ 9,
1320
+ 10,
1321
+ 11,
1322
+ 12,
1323
+ 13,
1324
+ 15,
1325
+ 28,
1326
+ 30,
1327
+ 33,
1328
+ 35,
1329
+ 36,
1330
+ 43,
1331
+ 47,
1332
+ 63,
1333
+ 78,
1334
+ 87,
1335
+ 88,
1336
+ 89,
1337
+ 90,
1338
+ 91,
1339
+ 92,
1340
+ 93,
1341
+ 108,
1342
+ 112,
1343
+ 114,
1344
+ 117,
1345
+ 118,
1346
+ 119
1347
+ ], $e = [11, 109], et = [
1348
+ 32,
1349
+ 52,
1350
+ 54,
1351
+ 56,
1352
+ 58,
1353
+ 60,
1354
+ 65,
1355
+ 67,
1356
+ 69,
1357
+ 70,
1358
+ 72,
1359
+ 74,
1360
+ 119,
1361
+ 120,
1362
+ 121
1363
+ ], tt = [1, 269], nt = [1, 267], rt = [1, 271], it = [1, 265], at = [1, 266], ot = [1, 268], st = [1, 270], ct = [1, 272], lt = [1, 292], ut = [
1364
+ 8,
1365
+ 9,
1366
+ 10,
1367
+ 12,
1368
+ 109
1369
+ ], dt = [
1370
+ 8,
1371
+ 9,
1372
+ 10,
1373
+ 11,
1374
+ 12,
1375
+ 63,
1376
+ 87,
1377
+ 108,
1378
+ 109,
1379
+ 112,
1380
+ 113,
1381
+ 114,
1382
+ 115
1383
+ ], ft = {
1384
+ trace: /* @__PURE__ */ n(function() {}, "trace"),
1385
+ yy: {},
1386
+ symbols_: {
1387
+ error: 2,
1388
+ start: 3,
1389
+ graphConfig: 4,
1390
+ document: 5,
1391
+ line: 6,
1392
+ statement: 7,
1393
+ COMMENT: 8,
1394
+ SEMI: 9,
1395
+ NEWLINE: 10,
1396
+ SPACE: 11,
1397
+ EOF: 12,
1398
+ GRAPH: 13,
1399
+ NODIR: 14,
1400
+ DIR: 15,
1401
+ FirstStmtSeparator: 16,
1402
+ ending: 17,
1403
+ endToken: 18,
1404
+ spaceList: 19,
1405
+ spaceListNewline: 20,
1406
+ vertexStatement: 21,
1407
+ separator: 22,
1408
+ styleStatement: 23,
1409
+ linkStyleStatement: 24,
1410
+ classDefStatement: 25,
1411
+ classStatement: 26,
1412
+ clickStatement: 27,
1413
+ flow: 28,
1414
+ textNoTags: 29,
1415
+ SQS: 30,
1416
+ text: 31,
1417
+ SQE: 32,
1418
+ end: 33,
1419
+ shapeData: 34,
1420
+ global: 35,
1421
+ connector: 36,
1422
+ direction: 37,
1423
+ acc_title: 38,
1424
+ acc_title_value: 39,
1425
+ acc_descr: 40,
1426
+ acc_descr_value: 41,
1427
+ acc_descr_multiline_value: 42,
1428
+ SHAPE_DATA: 43,
1429
+ link: 44,
1430
+ node: 45,
1431
+ styledVertex: 46,
1432
+ AMP: 47,
1433
+ vertex: 48,
1434
+ STYLE_SEPARATOR: 49,
1435
+ idString: 50,
1436
+ DOUBLECIRCLESTART: 51,
1437
+ DOUBLECIRCLEEND: 52,
1438
+ PS: 53,
1439
+ PE: 54,
1440
+ "(-": 55,
1441
+ "-)": 56,
1442
+ STADIUMSTART: 57,
1443
+ STADIUMEND: 58,
1444
+ SUBROUTINESTART: 59,
1445
+ SUBROUTINEEND: 60,
1446
+ VERTEX_WITH_PROPS_START: 61,
1447
+ "NODE_STRING[field]": 62,
1448
+ COLON: 63,
1449
+ "NODE_STRING[value]": 64,
1450
+ PIPE: 65,
1451
+ CYLINDERSTART: 66,
1452
+ CYLINDEREND: 67,
1453
+ DIAMOND_START: 68,
1454
+ DIAMOND_STOP: 69,
1455
+ TAGEND: 70,
1456
+ TRAPSTART: 71,
1457
+ TRAPEND: 72,
1458
+ INVTRAPSTART: 73,
1459
+ INVTRAPEND: 74,
1460
+ linkStatement: 75,
1461
+ arrowText: 76,
1462
+ TESTSTR: 77,
1463
+ START_LINK: 78,
1464
+ edgeText: 79,
1465
+ LINK: 80,
1466
+ LINK_ID: 81,
1467
+ edgeTextToken: 82,
1468
+ STR: 83,
1469
+ MD_STR: 84,
1470
+ textToken: 85,
1471
+ keywords: 86,
1472
+ STYLE: 87,
1473
+ LINKSTYLE: 88,
1474
+ CLASSDEF: 89,
1475
+ CLASS: 90,
1476
+ CLICK: 91,
1477
+ DOWN: 92,
1478
+ UP: 93,
1479
+ textNoTagsToken: 94,
1480
+ stylesOpt: 95,
1481
+ "idString[vertex]": 96,
1482
+ "idString[class]": 97,
1483
+ CALLBACKNAME: 98,
1484
+ CALLBACKARGS: 99,
1485
+ HREF: 100,
1486
+ LINK_TARGET: 101,
1487
+ "STR[link]": 102,
1488
+ "STR[tooltip]": 103,
1489
+ alphaNum: 104,
1490
+ DEFAULT: 105,
1491
+ numList: 106,
1492
+ INTERPOLATE: 107,
1493
+ NUM: 108,
1494
+ COMMA: 109,
1495
+ style: 110,
1496
+ styleComponent: 111,
1497
+ NODE_STRING: 112,
1498
+ UNIT: 113,
1499
+ BRKT: 114,
1500
+ PCT: 115,
1501
+ idStringToken: 116,
1502
+ MINUS: 117,
1503
+ MULT: 118,
1504
+ UNICODE_TEXT: 119,
1505
+ TEXT: 120,
1506
+ TAGSTART: 121,
1507
+ EDGE_TEXT: 122,
1508
+ alphaNumToken: 123,
1509
+ direction_tb: 124,
1510
+ direction_bt: 125,
1511
+ direction_rl: 126,
1512
+ direction_lr: 127,
1513
+ direction_td: 128,
1514
+ $accept: 0,
1515
+ $end: 1
1516
+ },
1517
+ terminals_: {
1518
+ 2: "error",
1519
+ 8: "COMMENT",
1520
+ 9: "SEMI",
1521
+ 10: "NEWLINE",
1522
+ 11: "SPACE",
1523
+ 12: "EOF",
1524
+ 13: "GRAPH",
1525
+ 14: "NODIR",
1526
+ 15: "DIR",
1527
+ 28: "flow",
1528
+ 30: "SQS",
1529
+ 32: "SQE",
1530
+ 33: "end",
1531
+ 35: "global",
1532
+ 36: "connector",
1533
+ 38: "acc_title",
1534
+ 39: "acc_title_value",
1535
+ 40: "acc_descr",
1536
+ 41: "acc_descr_value",
1537
+ 42: "acc_descr_multiline_value",
1538
+ 43: "SHAPE_DATA",
1539
+ 47: "AMP",
1540
+ 49: "STYLE_SEPARATOR",
1541
+ 51: "DOUBLECIRCLESTART",
1542
+ 52: "DOUBLECIRCLEEND",
1543
+ 53: "PS",
1544
+ 54: "PE",
1545
+ 55: "(-",
1546
+ 56: "-)",
1547
+ 57: "STADIUMSTART",
1548
+ 58: "STADIUMEND",
1549
+ 59: "SUBROUTINESTART",
1550
+ 60: "SUBROUTINEEND",
1551
+ 61: "VERTEX_WITH_PROPS_START",
1552
+ 62: "NODE_STRING[field]",
1553
+ 63: "COLON",
1554
+ 64: "NODE_STRING[value]",
1555
+ 65: "PIPE",
1556
+ 66: "CYLINDERSTART",
1557
+ 67: "CYLINDEREND",
1558
+ 68: "DIAMOND_START",
1559
+ 69: "DIAMOND_STOP",
1560
+ 70: "TAGEND",
1561
+ 71: "TRAPSTART",
1562
+ 72: "TRAPEND",
1563
+ 73: "INVTRAPSTART",
1564
+ 74: "INVTRAPEND",
1565
+ 77: "TESTSTR",
1566
+ 78: "START_LINK",
1567
+ 80: "LINK",
1568
+ 81: "LINK_ID",
1569
+ 83: "STR",
1570
+ 84: "MD_STR",
1571
+ 87: "STYLE",
1572
+ 88: "LINKSTYLE",
1573
+ 89: "CLASSDEF",
1574
+ 90: "CLASS",
1575
+ 91: "CLICK",
1576
+ 92: "DOWN",
1577
+ 93: "UP",
1578
+ 96: "idString[vertex]",
1579
+ 97: "idString[class]",
1580
+ 98: "CALLBACKNAME",
1581
+ 99: "CALLBACKARGS",
1582
+ 100: "HREF",
1583
+ 101: "LINK_TARGET",
1584
+ 102: "STR[link]",
1585
+ 103: "STR[tooltip]",
1586
+ 105: "DEFAULT",
1587
+ 107: "INTERPOLATE",
1588
+ 108: "NUM",
1589
+ 109: "COMMA",
1590
+ 112: "NODE_STRING",
1591
+ 113: "UNIT",
1592
+ 114: "BRKT",
1593
+ 115: "PCT",
1594
+ 117: "MINUS",
1595
+ 118: "MULT",
1596
+ 119: "UNICODE_TEXT",
1597
+ 120: "TEXT",
1598
+ 121: "TAGSTART",
1599
+ 122: "EDGE_TEXT",
1600
+ 124: "direction_tb",
1601
+ 125: "direction_bt",
1602
+ 126: "direction_rl",
1603
+ 127: "direction_lr",
1604
+ 128: "direction_td"
1605
+ },
1606
+ productions_: [
1607
+ 0,
1608
+ [3, 2],
1609
+ [5, 0],
1610
+ [5, 2],
1611
+ [6, 1],
1612
+ [6, 1],
1613
+ [6, 1],
1614
+ [6, 1],
1615
+ [6, 1],
1616
+ [6, 1],
1617
+ [4, 2],
1618
+ [4, 2],
1619
+ [4, 2],
1620
+ [4, 2],
1621
+ [4, 3],
1622
+ [17, 2],
1623
+ [17, 1],
1624
+ [18, 1],
1625
+ [18, 1],
1626
+ [18, 1],
1627
+ [16, 1],
1628
+ [16, 1],
1629
+ [16, 2],
1630
+ [16, 1],
1631
+ [20, 2],
1632
+ [20, 2],
1633
+ [20, 2],
1634
+ [20, 1],
1635
+ [20, 1],
1636
+ [20, 1],
1637
+ [19, 2],
1638
+ [19, 1],
1639
+ [7, 2],
1640
+ [7, 2],
1641
+ [7, 2],
1642
+ [7, 2],
1643
+ [7, 2],
1644
+ [7, 2],
1645
+ [7, 9],
1646
+ [7, 10],
1647
+ [7, 6],
1648
+ [7, 7],
1649
+ [7, 4],
1650
+ [7, 4],
1651
+ [7, 7],
1652
+ [7, 8],
1653
+ [7, 4],
1654
+ [7, 5],
1655
+ [7, 1],
1656
+ [7, 2],
1657
+ [7, 2],
1658
+ [7, 1],
1659
+ [22, 1],
1660
+ [22, 1],
1661
+ [22, 1],
1662
+ [22, 1],
1663
+ [34, 2],
1664
+ [34, 1],
1665
+ [21, 4],
1666
+ [21, 3],
1667
+ [21, 4],
1668
+ [21, 2],
1669
+ [21, 2],
1670
+ [21, 1],
1671
+ [45, 1],
1672
+ [45, 6],
1673
+ [45, 5],
1674
+ [46, 1],
1675
+ [46, 3],
1676
+ [48, 4],
1677
+ [48, 4],
1678
+ [48, 6],
1679
+ [48, 4],
1680
+ [48, 4],
1681
+ [48, 4],
1682
+ [48, 8],
1683
+ [48, 4],
1684
+ [48, 4],
1685
+ [48, 4],
1686
+ [48, 6],
1687
+ [48, 4],
1688
+ [48, 4],
1689
+ [48, 4],
1690
+ [48, 4],
1691
+ [48, 4],
1692
+ [48, 1],
1693
+ [44, 2],
1694
+ [44, 3],
1695
+ [44, 3],
1696
+ [44, 1],
1697
+ [44, 3],
1698
+ [44, 4],
1699
+ [79, 1],
1700
+ [79, 2],
1701
+ [79, 1],
1702
+ [79, 1],
1703
+ [75, 1],
1704
+ [75, 2],
1705
+ [76, 3],
1706
+ [31, 1],
1707
+ [31, 2],
1708
+ [31, 1],
1709
+ [31, 1],
1710
+ [86, 1],
1711
+ [86, 1],
1712
+ [86, 1],
1713
+ [86, 1],
1714
+ [86, 1],
1715
+ [86, 1],
1716
+ [86, 1],
1717
+ [86, 1],
1718
+ [86, 1],
1719
+ [86, 1],
1720
+ [86, 1],
1721
+ [86, 1],
1722
+ [86, 1],
1723
+ [29, 1],
1724
+ [29, 2],
1725
+ [29, 1],
1726
+ [29, 1],
1727
+ [25, 5],
1728
+ [26, 5],
1729
+ [27, 2],
1730
+ [27, 4],
1731
+ [27, 3],
1732
+ [27, 5],
1733
+ [27, 3],
1734
+ [27, 5],
1735
+ [27, 5],
1736
+ [27, 7],
1737
+ [27, 2],
1738
+ [27, 4],
1739
+ [27, 2],
1740
+ [27, 4],
1741
+ [27, 4],
1742
+ [27, 6],
1743
+ [23, 5],
1744
+ [24, 5],
1745
+ [24, 5],
1746
+ [24, 9],
1747
+ [24, 9],
1748
+ [24, 7],
1749
+ [24, 7],
1750
+ [106, 1],
1751
+ [106, 3],
1752
+ [95, 1],
1753
+ [95, 3],
1754
+ [110, 1],
1755
+ [110, 2],
1756
+ [111, 1],
1757
+ [111, 1],
1758
+ [111, 1],
1759
+ [111, 1],
1760
+ [111, 1],
1761
+ [111, 1],
1762
+ [111, 1],
1763
+ [111, 1],
1764
+ [116, 1],
1765
+ [116, 1],
1766
+ [116, 1],
1767
+ [116, 1],
1768
+ [116, 1],
1769
+ [116, 1],
1770
+ [116, 1],
1771
+ [116, 1],
1772
+ [116, 1],
1773
+ [116, 1],
1774
+ [116, 1],
1775
+ [85, 1],
1776
+ [85, 1],
1777
+ [85, 1],
1778
+ [85, 1],
1779
+ [94, 1],
1780
+ [94, 1],
1781
+ [94, 1],
1782
+ [94, 1],
1783
+ [94, 1],
1784
+ [94, 1],
1785
+ [94, 1],
1786
+ [94, 1],
1787
+ [94, 1],
1788
+ [94, 1],
1789
+ [94, 1],
1790
+ [82, 1],
1791
+ [82, 1],
1792
+ [123, 1],
1793
+ [123, 1],
1794
+ [123, 1],
1795
+ [123, 1],
1796
+ [123, 1],
1797
+ [123, 1],
1798
+ [123, 1],
1799
+ [123, 1],
1800
+ [123, 1],
1801
+ [123, 1],
1802
+ [123, 1],
1803
+ [50, 1],
1804
+ [50, 2],
1805
+ [104, 1],
1806
+ [104, 2],
1807
+ [37, 1],
1808
+ [37, 1],
1809
+ [37, 1],
1810
+ [37, 1],
1811
+ [37, 1]
1812
+ ],
1813
+ performAction: /* @__PURE__ */ n(function(e, t, n, r, i, a, o) {
1814
+ var s = a.length - 1;
1815
+ switch (i) {
1816
+ case 2:
1817
+ this.$ = [];
1818
+ break;
1819
+ case 3:
1820
+ (!Array.isArray(a[s]) || a[s].length > 0) && a[s - 1].push(a[s]), this.$ = a[s - 1];
1821
+ break;
1822
+ case 4:
1823
+ case 198:
1824
+ this.$ = a[s];
1825
+ break;
1826
+ case 5:
1827
+ case 33:
1828
+ case 34:
1829
+ case 35:
1830
+ case 36:
1831
+ case 37:
1832
+ this.$ = [];
1833
+ break;
1834
+ case 13:
1835
+ r.setDirection("TB"), this.$ = "TB";
1836
+ break;
1837
+ case 14:
1838
+ r.setDirection(a[s - 1]), this.$ = a[s - 1];
1839
+ break;
1840
+ case 32:
1841
+ this.$ = a[s - 1].nodes;
1842
+ break;
1843
+ case 38:
1844
+ this.$ = r.addSubGraph(a[s - 6], a[s - 1], a[s - 4], "flow"), r.addSubgraphMapping && r.addSubgraphMapping(a[s - 6], a[s - 4], o[s - 8], o[s]);
1845
+ break;
1846
+ case 39:
1847
+ this.$ = r.addSubGraph(a[s - 7], a[s - 1], a[s - 5], "flow"), r.addVertex(this.$, void 0, void 0, void 0, void 0, void 0, void 0, a[s - 3], o[s - 3]), r.addSubgraphMapping && r.addSubgraphMapping(a[s - 7], a[s - 5], o[s - 9], o[s]);
1848
+ break;
1849
+ case 40:
1850
+ this.$ = r.addSubGraph(a[s - 3], a[s - 1], {
1851
+ text: "",
1852
+ type: "text"
1853
+ }, "flow"), r.addSubgraphMapping && r.addSubgraphMapping(a[s - 3], {
1854
+ text: "",
1855
+ type: "text"
1856
+ }, o[s - 5], o[s]);
1857
+ break;
1858
+ case 41:
1859
+ this.$ = r.addSubGraph(a[s - 4], a[s - 1], {
1860
+ text: "",
1861
+ type: "text"
1862
+ }, "flow"), r.addVertex(this.$, void 0, void 0, void 0, void 0, void 0, void 0, a[s - 3], o[s - 3]), r.addSubgraphMapping && r.addSubgraphMapping(a[s - 4], {
1863
+ text: "",
1864
+ type: "text"
1865
+ }, o[s - 6], o[s]);
1866
+ break;
1867
+ case 42:
1868
+ this.$ = r.addSubGraph(void 0, a[s - 1], void 0, "flow"), r.addSubgraphMapping && r.addSubgraphMapping(void 0, void 0, o[s - 3], o[s]);
1869
+ break;
1870
+ case 43:
1871
+ r.addGlobal(a[s - 1]), this.$ = [];
1872
+ break;
1873
+ case 44:
1874
+ this.$ = r.addConnector(a[s - 4], a[s - 2]), r.addConnectorMapping && r.addConnectorMapping(a[s - 4], a[s - 2], o[s - 6], o[s]);
1875
+ break;
1876
+ case 45:
1877
+ this.$ = r.addConnector(a[s - 5], a[s - 3]), r.addVertex(this.$, void 0, void 0, void 0, void 0, void 0, void 0, a[s - 1], o[s - 1]), r.addConnectorMapping && r.addConnectorMapping(a[s - 5], a[s - 3], o[s - 7], o[s]);
1878
+ break;
1879
+ case 46:
1880
+ this.$ = r.addConnector(a[s - 1], {
1881
+ text: "",
1882
+ type: "text"
1883
+ }), r.addConnectorMapping && r.addConnectorMapping(a[s - 1], {
1884
+ text: "",
1885
+ type: "text"
1886
+ }, o[s - 3], o[s]);
1887
+ break;
1888
+ case 47:
1889
+ this.$ = r.addConnector(a[s - 2], {
1890
+ text: "",
1891
+ type: "text"
1892
+ }), r.addVertex(this.$, void 0, void 0, void 0, void 0, void 0, void 0, a[s - 1], o[s - 1]), r.addConnectorMapping && r.addConnectorMapping(a[s - 2], {
1893
+ text: "",
1894
+ type: "text"
1895
+ }, o[s - 4], o[s]);
1896
+ break;
1897
+ case 49:
1898
+ this.$ = a[s].trim(), r.setAccTitle(this.$);
1899
+ break;
1900
+ case 50:
1901
+ case 51:
1902
+ this.$ = a[s].trim(), r.setAccDescription(this.$);
1903
+ break;
1904
+ case 56:
1905
+ this.$ = a[s - 1] + a[s];
1906
+ break;
1907
+ case 57:
1908
+ this.$ = a[s];
1909
+ break;
1910
+ case 58:
1911
+ r.addVertex(a[s - 1][a[s - 1].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, a[s], o[s]), r.extendVertexMapping && r.extendVertexMapping(a[s - 1][a[s - 1].length - 1], o[s]), r.addLink(a[s - 3].stmt, a[s - 1], a[s - 2]), r.addEdgeMapping && r.addEdgeMapping(a[s - 3].stmt, a[s - 1], a[s - 2], this._$), this.$ = {
1912
+ stmt: a[s - 1],
1913
+ nodes: a[s - 1].concat(a[s - 3].nodes)
1914
+ };
1915
+ break;
1916
+ case 59:
1917
+ r.addLink(a[s - 2].stmt, a[s], a[s - 1]), r.addEdgeMapping && r.addEdgeMapping(a[s - 2].stmt, a[s], a[s - 1], this._$), this.$ = {
1918
+ stmt: a[s],
1919
+ nodes: a[s].concat(a[s - 2].nodes)
1920
+ };
1921
+ break;
1922
+ case 60:
1923
+ r.addLink(a[s - 3].stmt, a[s - 1], a[s - 2]), r.addEdgeMapping && r.addEdgeMapping(a[s - 3].stmt, a[s - 1], a[s - 2], this._$), this.$ = {
1924
+ stmt: a[s - 1],
1925
+ nodes: a[s - 1].concat(a[s - 3].nodes)
1926
+ };
1927
+ break;
1928
+ case 61:
1929
+ this.$ = {
1930
+ stmt: a[s - 1],
1931
+ nodes: a[s - 1]
1932
+ };
1933
+ break;
1934
+ case 62:
1935
+ r.addVertex(a[s - 1][a[s - 1].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, a[s], o[s]), r.extendVertexMapping && r.extendVertexMapping(a[s - 1][a[s - 1].length - 1], o[s]), this.$ = {
1936
+ stmt: a[s - 1],
1937
+ nodes: a[s - 1],
1938
+ shapeData: a[s]
1939
+ };
1940
+ break;
1941
+ case 63:
1942
+ this.$ = {
1943
+ stmt: a[s],
1944
+ nodes: a[s]
1945
+ };
1946
+ break;
1947
+ case 64:
1948
+ this.$ = [a[s]];
1949
+ break;
1950
+ case 65:
1951
+ r.addVertex(a[s - 5][a[s - 5].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, a[s - 4], o[s - 4]), r.extendVertexMapping && r.extendVertexMapping(a[s - 5][a[s - 5].length - 1], o[s - 4]), this.$ = a[s - 5].concat(a[s]);
1952
+ break;
1953
+ case 66:
1954
+ this.$ = a[s - 4].concat(a[s]);
1955
+ break;
1956
+ case 67:
1957
+ this.$ = a[s];
1958
+ break;
1959
+ case 68:
1960
+ this.$ = a[s - 2], r.setClass(a[s - 2], a[s]);
1961
+ break;
1962
+ case 69:
1963
+ this.$ = a[s - 3], r.addVertex(a[s - 3], a[s - 1], "square"), r.addVertexMapping && r.addVertexMapping(a[s - 3], a[s - 1], "square", this._$);
1964
+ break;
1965
+ case 70:
1966
+ this.$ = a[s - 3], r.addVertex(a[s - 3], a[s - 1], "doublecircle"), r.addVertexMapping && r.addVertexMapping(a[s - 3], a[s - 1], "doublecircle", this._$);
1967
+ break;
1968
+ case 71:
1969
+ this.$ = a[s - 5], r.addVertex(a[s - 5], a[s - 2], "circle"), r.addVertexMapping && r.addVertexMapping(a[s - 5], a[s - 2], "circle", this._$);
1970
+ break;
1971
+ case 72:
1972
+ this.$ = a[s - 3], r.addVertex(a[s - 3], a[s - 1], "ellipse"), r.addVertexMapping && r.addVertexMapping(a[s - 3], a[s - 1], "ellipse", this._$);
1973
+ break;
1974
+ case 73:
1975
+ this.$ = a[s - 3], r.addVertex(a[s - 3], a[s - 1], "stadium"), r.addVertexMapping && r.addVertexMapping(a[s - 3], a[s - 1], "stadium", this._$);
1976
+ break;
1977
+ case 74:
1978
+ this.$ = a[s - 3], r.addVertex(a[s - 3], a[s - 1], "subroutine"), r.addVertexMapping && r.addVertexMapping(a[s - 3], a[s - 1], "subroutine", this._$);
1979
+ break;
1980
+ case 75:
1981
+ this.$ = a[s - 7], r.addVertex(a[s - 7], a[s - 1], "rect", void 0, void 0, void 0, Object.fromEntries([[a[s - 5], a[s - 3]]])), r.addVertexMapping && r.addVertexMapping(a[s - 7], a[s - 1], "rect", this._$);
1982
+ break;
1983
+ case 76:
1984
+ this.$ = a[s - 3], r.addVertex(a[s - 3], a[s - 1], "cylinder"), r.addVertexMapping && r.addVertexMapping(a[s - 3], a[s - 1], "cylinder", this._$);
1985
+ break;
1986
+ case 77:
1987
+ this.$ = a[s - 3], r.addVertex(a[s - 3], a[s - 1], "round"), r.addVertexMapping && r.addVertexMapping(a[s - 3], a[s - 1], "round", this._$);
1988
+ break;
1989
+ case 78:
1990
+ this.$ = a[s - 3], r.addVertex(a[s - 3], a[s - 1], "diamond"), r.addVertexMapping && r.addVertexMapping(a[s - 3], a[s - 1], "diamond", this._$);
1991
+ break;
1992
+ case 79:
1993
+ this.$ = a[s - 5], r.addVertex(a[s - 5], a[s - 2], "hexagon"), r.addVertexMapping && r.addVertexMapping(a[s - 5], a[s - 2], "hexagon", this._$);
1994
+ break;
1995
+ case 80:
1996
+ this.$ = a[s - 3], r.addVertex(a[s - 3], a[s - 1], "odd"), r.addVertexMapping && r.addVertexMapping(a[s - 3], a[s - 1], "odd", this._$);
1997
+ break;
1998
+ case 81:
1999
+ this.$ = a[s - 3], r.addVertex(a[s - 3], a[s - 1], "trapezoid"), r.addVertexMapping && r.addVertexMapping(a[s - 3], a[s - 1], "trapezoid", this._$);
2000
+ break;
2001
+ case 82:
2002
+ this.$ = a[s - 3], r.addVertex(a[s - 3], a[s - 1], "inv_trapezoid"), r.addVertexMapping && r.addVertexMapping(a[s - 3], a[s - 1], "inv_trapezoid", this._$);
2003
+ break;
2004
+ case 83:
2005
+ this.$ = a[s - 3], r.addVertex(a[s - 3], a[s - 1], "lean_right"), r.addVertexMapping && r.addVertexMapping(a[s - 3], a[s - 1], "lean_right", this._$);
2006
+ break;
2007
+ case 84:
2008
+ this.$ = a[s - 3], r.addVertex(a[s - 3], a[s - 1], "lean_left"), r.addVertexMapping && r.addVertexMapping(a[s - 3], a[s - 1], "lean_left", this._$);
2009
+ break;
2010
+ case 85:
2011
+ this.$ = a[s], r.addVertex(a[s]), r.addVertexMapping && r.addVertexMapping(a[s], void 0, void 0, this._$);
2012
+ break;
2013
+ case 86:
2014
+ a[s - 1].text = a[s], this.$ = a[s - 1];
2015
+ break;
2016
+ case 87:
2017
+ case 88:
2018
+ a[s - 2].text = a[s - 1], this.$ = a[s - 2];
2019
+ break;
2020
+ case 89:
2021
+ this.$ = a[s];
2022
+ break;
2023
+ case 90:
2024
+ var c = r.destructLink(a[s], a[s - 2]);
2025
+ this.$ = {
2026
+ type: c.type,
2027
+ stroke: c.stroke,
2028
+ length: c.length,
2029
+ edgeSemantic: c.edgeSemantic,
2030
+ text: a[s - 1]
2031
+ };
2032
+ break;
2033
+ case 91:
2034
+ var c = r.destructLink(a[s], a[s - 2]);
2035
+ this.$ = {
2036
+ type: c.type,
2037
+ stroke: c.stroke,
2038
+ length: c.length,
2039
+ edgeSemantic: c.edgeSemantic,
2040
+ text: a[s - 1],
2041
+ id: a[s - 3]
2042
+ };
2043
+ break;
2044
+ case 92:
2045
+ this.$ = {
2046
+ text: a[s],
2047
+ type: "text"
2048
+ };
2049
+ break;
2050
+ case 93:
2051
+ this.$ = {
2052
+ text: a[s - 1].text + "" + a[s],
2053
+ type: a[s - 1].type
2054
+ };
2055
+ break;
2056
+ case 94:
2057
+ this.$ = {
2058
+ text: a[s],
2059
+ type: "string"
2060
+ };
2061
+ break;
2062
+ case 95:
2063
+ this.$ = {
2064
+ text: a[s],
2065
+ type: "markdown"
2066
+ };
2067
+ break;
2068
+ case 96:
2069
+ var c = r.destructLink(a[s]);
2070
+ this.$ = {
2071
+ type: c.type,
2072
+ stroke: c.stroke,
2073
+ length: c.length,
2074
+ edgeSemantic: c.edgeSemantic
2075
+ };
2076
+ break;
2077
+ case 97:
2078
+ var c = r.destructLink(a[s]);
2079
+ this.$ = {
2080
+ type: c.type,
2081
+ stroke: c.stroke,
2082
+ length: c.length,
2083
+ edgeSemantic: c.edgeSemantic,
2084
+ id: a[s - 1]
2085
+ };
2086
+ break;
2087
+ case 98:
2088
+ this.$ = a[s - 1];
2089
+ break;
2090
+ case 99:
2091
+ this.$ = {
2092
+ text: a[s],
2093
+ type: "text"
2094
+ };
2095
+ break;
2096
+ case 100:
2097
+ this.$ = {
2098
+ text: a[s - 1].text + "" + a[s],
2099
+ type: a[s - 1].type
2100
+ };
2101
+ break;
2102
+ case 101:
2103
+ this.$ = {
2104
+ text: a[s],
2105
+ type: "string"
2106
+ };
2107
+ break;
2108
+ case 102:
2109
+ case 119:
2110
+ this.$ = {
2111
+ text: a[s],
2112
+ type: "markdown"
2113
+ };
2114
+ break;
2115
+ case 116:
2116
+ this.$ = {
2117
+ text: a[s],
2118
+ type: "text"
2119
+ };
2120
+ break;
2121
+ case 117:
2122
+ this.$ = {
2123
+ text: a[s - 1].text + "" + a[s],
2124
+ type: a[s - 1].type
2125
+ };
2126
+ break;
2127
+ case 118:
2128
+ this.$ = {
2129
+ text: a[s],
2130
+ type: "text"
2131
+ };
2132
+ break;
2133
+ case 120:
2134
+ this.$ = a[s - 4], r.addClass(a[s - 2], a[s]);
2135
+ break;
2136
+ case 121:
2137
+ this.$ = a[s - 4], r.setClass(a[s - 2], a[s]);
2138
+ break;
2139
+ case 122:
2140
+ case 130:
2141
+ this.$ = a[s - 1], r.setClickEvent(a[s - 1], a[s]);
2142
+ break;
2143
+ case 123:
2144
+ case 131:
2145
+ this.$ = a[s - 3], r.setClickEvent(a[s - 3], a[s - 2]), r.setTooltip(a[s - 3], a[s]);
2146
+ break;
2147
+ case 124:
2148
+ this.$ = a[s - 2], r.setClickEvent(a[s - 2], a[s - 1], a[s]);
2149
+ break;
2150
+ case 125:
2151
+ this.$ = a[s - 4], r.setClickEvent(a[s - 4], a[s - 3], a[s - 2]), r.setTooltip(a[s - 4], a[s]);
2152
+ break;
2153
+ case 126:
2154
+ this.$ = a[s - 2], r.setLink(a[s - 2], a[s]);
2155
+ break;
2156
+ case 127:
2157
+ this.$ = a[s - 4], r.setLink(a[s - 4], a[s - 2]), r.setTooltip(a[s - 4], a[s]);
2158
+ break;
2159
+ case 128:
2160
+ this.$ = a[s - 4], r.setLink(a[s - 4], a[s - 2], a[s]);
2161
+ break;
2162
+ case 129:
2163
+ this.$ = a[s - 6], r.setLink(a[s - 6], a[s - 4], a[s]), r.setTooltip(a[s - 6], a[s - 2]);
2164
+ break;
2165
+ case 132:
2166
+ this.$ = a[s - 1], r.setLink(a[s - 1], a[s]);
2167
+ break;
2168
+ case 133:
2169
+ this.$ = a[s - 3], r.setLink(a[s - 3], a[s - 2]), r.setTooltip(a[s - 3], a[s]);
2170
+ break;
2171
+ case 134:
2172
+ this.$ = a[s - 3], r.setLink(a[s - 3], a[s - 2], a[s]);
2173
+ break;
2174
+ case 135:
2175
+ this.$ = a[s - 5], r.setLink(a[s - 5], a[s - 4], a[s]), r.setTooltip(a[s - 5], a[s - 2]);
2176
+ break;
2177
+ case 136:
2178
+ this.$ = a[s - 4], r.addVertex(a[s - 2], void 0, void 0, a[s]);
2179
+ break;
2180
+ case 137:
2181
+ this.$ = a[s - 4], r.updateLink([a[s - 2]], a[s]);
2182
+ break;
2183
+ case 138:
2184
+ this.$ = a[s - 4], r.updateLink(a[s - 2], a[s]);
2185
+ break;
2186
+ case 139:
2187
+ this.$ = a[s - 8], r.updateLinkInterpolate([a[s - 6]], a[s - 2]), r.updateLink([a[s - 6]], a[s]);
2188
+ break;
2189
+ case 140:
2190
+ this.$ = a[s - 8], r.updateLinkInterpolate(a[s - 6], a[s - 2]), r.updateLink(a[s - 6], a[s]);
2191
+ break;
2192
+ case 141:
2193
+ this.$ = a[s - 6], r.updateLinkInterpolate([a[s - 4]], a[s]);
2194
+ break;
2195
+ case 142:
2196
+ this.$ = a[s - 6], r.updateLinkInterpolate(a[s - 4], a[s]);
2197
+ break;
2198
+ case 143:
2199
+ case 145:
2200
+ this.$ = [a[s]];
2201
+ break;
2202
+ case 144:
2203
+ case 146:
2204
+ a[s - 2].push(a[s]), this.$ = a[s - 2];
2205
+ break;
2206
+ case 148:
2207
+ this.$ = a[s - 1] + a[s];
2208
+ break;
2209
+ case 196:
2210
+ this.$ = a[s];
2211
+ break;
2212
+ case 197:
2213
+ this.$ = a[s - 1] + "" + a[s];
2214
+ break;
2215
+ case 199:
2216
+ this.$ = a[s - 1] + "" + a[s];
2217
+ break;
2218
+ case 200:
2219
+ this.$ = {
2220
+ stmt: "dir",
2221
+ value: "TB"
2222
+ };
2223
+ break;
2224
+ case 201:
2225
+ this.$ = {
2226
+ stmt: "dir",
2227
+ value: "BT"
2228
+ };
2229
+ break;
2230
+ case 202:
2231
+ this.$ = {
2232
+ stmt: "dir",
2233
+ value: "RL"
2234
+ };
2235
+ break;
2236
+ case 203:
2237
+ this.$ = {
2238
+ stmt: "dir",
2239
+ value: "LR"
2240
+ };
2241
+ break;
2242
+ case 204: this.$ = {
2243
+ stmt: "dir",
2244
+ value: "TD"
2245
+ };
2246
+ }
2247
+ }, "anonymous"),
2248
+ table: [
2249
+ {
2250
+ 3: 1,
2251
+ 4: 2,
2252
+ 8: t,
2253
+ 10: r,
2254
+ 11: i,
2255
+ 13: a
2256
+ },
2257
+ { 1: [3] },
2258
+ e(o, s, { 5: 7 }),
2259
+ {
2260
+ 4: 8,
2261
+ 8: t,
2262
+ 10: r,
2263
+ 11: i,
2264
+ 13: a
2265
+ },
2266
+ {
2267
+ 4: 9,
2268
+ 8: t,
2269
+ 10: r,
2270
+ 11: i,
2271
+ 13: a
2272
+ },
2273
+ {
2274
+ 4: 10,
2275
+ 8: t,
2276
+ 10: r,
2277
+ 11: i,
2278
+ 13: a
2279
+ },
2280
+ {
2281
+ 14: [1, 11],
2282
+ 15: [1, 12]
2283
+ },
2284
+ {
2285
+ 1: [2, 1],
2286
+ 6: 13,
2287
+ 7: 14,
2288
+ 8: c,
2289
+ 9: l,
2290
+ 10: u,
2291
+ 11: d,
2292
+ 12: f,
2293
+ 21: 20,
2294
+ 23: 21,
2295
+ 24: 22,
2296
+ 25: 23,
2297
+ 26: 24,
2298
+ 27: 25,
2299
+ 28: p,
2300
+ 35: m,
2301
+ 36: h,
2302
+ 37: 29,
2303
+ 38: g,
2304
+ 40: _,
2305
+ 42: v,
2306
+ 45: 33,
2307
+ 46: 44,
2308
+ 47: y,
2309
+ 48: 45,
2310
+ 50: 46,
2311
+ 63: b,
2312
+ 87: x,
2313
+ 88: S,
2314
+ 89: C,
2315
+ 90: w,
2316
+ 91: T,
2317
+ 92: E,
2318
+ 105: D,
2319
+ 108: O,
2320
+ 109: k,
2321
+ 112: A,
2322
+ 114: j,
2323
+ 116: 47,
2324
+ 117: M,
2325
+ 118: N,
2326
+ 119: P,
2327
+ 124: ee,
2328
+ 125: te,
2329
+ 126: F,
2330
+ 127: I,
2331
+ 128: ne
2332
+ },
2333
+ e(o, [2, 10]),
2334
+ e(o, [2, 11]),
2335
+ e(o, [2, 12]),
2336
+ e(o, [2, 13]),
2337
+ {
2338
+ 8: [1, 63],
2339
+ 9: [1, 60],
2340
+ 10: [1, 61],
2341
+ 11: L,
2342
+ 16: 59,
2343
+ 19: 62
2344
+ },
2345
+ e(R, [2, 3]),
2346
+ e(R, [2, 4]),
2347
+ e(R, [2, 5]),
2348
+ e(R, [2, 6]),
2349
+ e(R, [2, 7]),
2350
+ e(R, [2, 8]),
2351
+ e(R, [2, 9]),
2352
+ {
2353
+ 8: z,
2354
+ 9: B,
2355
+ 10: V,
2356
+ 12: H,
2357
+ 22: 65,
2358
+ 44: 66,
2359
+ 75: 71,
2360
+ 78: [1, 72],
2361
+ 80: [1, 74],
2362
+ 81: [1, 73]
2363
+ },
2364
+ {
2365
+ 8: z,
2366
+ 9: B,
2367
+ 10: V,
2368
+ 12: H,
2369
+ 22: 75
2370
+ },
2371
+ {
2372
+ 8: z,
2373
+ 9: B,
2374
+ 10: V,
2375
+ 12: H,
2376
+ 22: 76
2377
+ },
2378
+ {
2379
+ 8: z,
2380
+ 9: B,
2381
+ 10: V,
2382
+ 12: H,
2383
+ 22: 77
2384
+ },
2385
+ {
2386
+ 8: z,
2387
+ 9: B,
2388
+ 10: V,
2389
+ 12: H,
2390
+ 22: 78
2391
+ },
2392
+ {
2393
+ 8: z,
2394
+ 9: B,
2395
+ 10: V,
2396
+ 12: H,
2397
+ 22: 79
2398
+ },
2399
+ {
2400
+ 8: z,
2401
+ 9: B,
2402
+ 10: V,
2403
+ 11: [1, 80],
2404
+ 12: H,
2405
+ 22: 81
2406
+ },
2407
+ {
2408
+ 8: z,
2409
+ 9: B,
2410
+ 10: V,
2411
+ 12: H,
2412
+ 22: 82
2413
+ },
2414
+ { 11: [1, 83] },
2415
+ e(R, [2, 48]),
2416
+ { 39: [1, 84] },
2417
+ { 41: [1, 85] },
2418
+ e(R, [2, 51]),
2419
+ e(re, [2, 63], {
2420
+ 19: 86,
2421
+ 34: 87,
2422
+ 11: L,
2423
+ 43: ie
2424
+ }),
2425
+ { 11: [1, 89] },
2426
+ { 11: [1, 90] },
2427
+ { 11: [1, 91] },
2428
+ { 11: [1, 92] },
2429
+ {
2430
+ 15: ae,
2431
+ 47: oe,
2432
+ 63: se,
2433
+ 83: [1, 96],
2434
+ 92: ce,
2435
+ 98: [1, 93],
2436
+ 100: [1, 94],
2437
+ 104: 95,
2438
+ 108: le,
2439
+ 109: ue,
2440
+ 112: de,
2441
+ 114: fe,
2442
+ 117: pe,
2443
+ 118: me,
2444
+ 119: he,
2445
+ 123: 97
2446
+ },
2447
+ e(R, [2, 200]),
2448
+ e(R, [2, 201]),
2449
+ e(R, [2, 202]),
2450
+ e(R, [2, 203]),
2451
+ e(R, [2, 204]),
2452
+ e(ge, [2, 64]),
2453
+ e(ge, [2, 67], { 49: [1, 109] }),
2454
+ e(U, [2, 85], {
2455
+ 116: 122,
2456
+ 30: [1, 110],
2457
+ 47: y,
2458
+ 51: [1, 111],
2459
+ 53: [1, 112],
2460
+ 55: [1, 113],
2461
+ 57: [1, 114],
2462
+ 59: [1, 115],
2463
+ 61: [1, 116],
2464
+ 63: b,
2465
+ 66: [1, 117],
2466
+ 68: [1, 118],
2467
+ 70: [1, 119],
2468
+ 71: [1, 120],
2469
+ 73: [1, 121],
2470
+ 92: E,
2471
+ 105: D,
2472
+ 108: O,
2473
+ 109: k,
2474
+ 112: A,
2475
+ 114: j,
2476
+ 117: M,
2477
+ 118: N,
2478
+ 119: P
2479
+ }),
2480
+ e(W, [2, 196]),
2481
+ e(W, [2, 157]),
2482
+ e(W, [2, 158]),
2483
+ e(W, [2, 159]),
2484
+ e(W, [2, 160]),
2485
+ e(W, [2, 161]),
2486
+ e(W, [2, 162]),
2487
+ e(W, [2, 163]),
2488
+ e(W, [2, 164]),
2489
+ e(W, [2, 165]),
2490
+ e(W, [2, 166]),
2491
+ e(W, [2, 167]),
2492
+ e(o, [2, 14]),
2493
+ e(o, [2, 20]),
2494
+ e(o, [2, 21]),
2495
+ { 10: [1, 123] },
2496
+ e(o, [2, 23]),
2497
+ e(_e, [2, 31], {
2498
+ 19: 124,
2499
+ 11: L
2500
+ }),
2501
+ e(R, [2, 32]),
2502
+ {
2503
+ 45: 125,
2504
+ 46: 44,
2505
+ 47: y,
2506
+ 48: 45,
2507
+ 50: 46,
2508
+ 63: b,
2509
+ 92: E,
2510
+ 105: D,
2511
+ 108: O,
2512
+ 109: k,
2513
+ 112: A,
2514
+ 114: j,
2515
+ 116: 47,
2516
+ 117: M,
2517
+ 118: N,
2518
+ 119: P
2519
+ },
2520
+ e(R, [2, 52]),
2521
+ e(R, [2, 53]),
2522
+ e(R, [2, 54]),
2523
+ e(R, [2, 55]),
2524
+ e(ve, [2, 89], {
2525
+ 76: 126,
2526
+ 65: [1, 128],
2527
+ 77: [1, 127]
2528
+ }),
2529
+ {
2530
+ 79: 129,
2531
+ 82: 130,
2532
+ 83: ye,
2533
+ 84: be,
2534
+ 119: xe,
2535
+ 122: Se
2536
+ },
2537
+ {
2538
+ 78: [1, 135],
2539
+ 80: [1, 136]
2540
+ },
2541
+ e(Ce, [2, 96]),
2542
+ e(R, [2, 33]),
2543
+ e(R, [2, 34]),
2544
+ e(R, [2, 35]),
2545
+ e(R, [2, 36]),
2546
+ e(R, [2, 37]),
2547
+ {
2548
+ 11: we,
2549
+ 13: Te,
2550
+ 15: Ee,
2551
+ 28: De,
2552
+ 29: 137,
2553
+ 33: Oe,
2554
+ 35: ke,
2555
+ 36: Ae,
2556
+ 47: je,
2557
+ 63: Me,
2558
+ 78: Ne,
2559
+ 83: Pe,
2560
+ 84: Fe,
2561
+ 86: 150,
2562
+ 87: Ie,
2563
+ 88: Le,
2564
+ 89: Re,
2565
+ 90: ze,
2566
+ 91: Be,
2567
+ 92: Ve,
2568
+ 93: He,
2569
+ 94: 138,
2570
+ 108: Ue,
2571
+ 112: We,
2572
+ 114: Ge,
2573
+ 117: Ke,
2574
+ 118: qe,
2575
+ 119: Je
2576
+ },
2577
+ e(Ye, s, { 5: 165 }),
2578
+ e(Ye, s, { 5: 166 }),
2579
+ {
2580
+ 11: we,
2581
+ 13: Te,
2582
+ 15: Ee,
2583
+ 28: De,
2584
+ 29: 167,
2585
+ 33: Oe,
2586
+ 35: ke,
2587
+ 36: Ae,
2588
+ 47: je,
2589
+ 63: Me,
2590
+ 78: Ne,
2591
+ 83: Pe,
2592
+ 84: Fe,
2593
+ 86: 150,
2594
+ 87: Ie,
2595
+ 88: Le,
2596
+ 89: Re,
2597
+ 90: ze,
2598
+ 91: Be,
2599
+ 92: Ve,
2600
+ 93: He,
2601
+ 94: 138,
2602
+ 108: Ue,
2603
+ 112: We,
2604
+ 114: Ge,
2605
+ 117: Ke,
2606
+ 118: qe,
2607
+ 119: Je
2608
+ },
2609
+ e(R, [2, 49]),
2610
+ e(R, [2, 50]),
2611
+ e(re, [2, 61], { 47: Xe }),
2612
+ e(re, [2, 62], {
2613
+ 19: 169,
2614
+ 11: L,
2615
+ 43: Ze
2616
+ }),
2617
+ e(ge, [2, 57]),
2618
+ {
2619
+ 47: y,
2620
+ 50: 171,
2621
+ 63: b,
2622
+ 92: E,
2623
+ 105: D,
2624
+ 108: O,
2625
+ 109: k,
2626
+ 112: A,
2627
+ 114: j,
2628
+ 116: 47,
2629
+ 117: M,
2630
+ 118: N,
2631
+ 119: P
2632
+ },
2633
+ {
2634
+ 105: [1, 172],
2635
+ 106: 173,
2636
+ 108: [1, 174]
2637
+ },
2638
+ {
2639
+ 47: y,
2640
+ 50: 175,
2641
+ 63: b,
2642
+ 92: E,
2643
+ 105: D,
2644
+ 108: O,
2645
+ 109: k,
2646
+ 112: A,
2647
+ 114: j,
2648
+ 116: 47,
2649
+ 117: M,
2650
+ 118: N,
2651
+ 119: P
2652
+ },
2653
+ {
2654
+ 47: y,
2655
+ 50: 176,
2656
+ 63: b,
2657
+ 92: E,
2658
+ 105: D,
2659
+ 108: O,
2660
+ 109: k,
2661
+ 112: A,
2662
+ 114: j,
2663
+ 116: 47,
2664
+ 117: M,
2665
+ 118: N,
2666
+ 119: P
2667
+ },
2668
+ e(G, [2, 122], {
2669
+ 11: [1, 177],
2670
+ 99: [1, 178]
2671
+ }),
2672
+ { 83: [1, 179] },
2673
+ e(G, [2, 130], {
2674
+ 123: 181,
2675
+ 11: [1, 180],
2676
+ 15: ae,
2677
+ 47: oe,
2678
+ 63: se,
2679
+ 92: ce,
2680
+ 108: le,
2681
+ 109: ue,
2682
+ 112: de,
2683
+ 114: fe,
2684
+ 117: pe,
2685
+ 118: me,
2686
+ 119: he
2687
+ }),
2688
+ e(G, [2, 132], { 11: [1, 182] }),
2689
+ e(K, [2, 198]),
2690
+ e(K, [2, 185]),
2691
+ e(K, [2, 186]),
2692
+ e(K, [2, 187]),
2693
+ e(K, [2, 188]),
2694
+ e(K, [2, 189]),
2695
+ e(K, [2, 190]),
2696
+ e(K, [2, 191]),
2697
+ e(K, [2, 192]),
2698
+ e(K, [2, 193]),
2699
+ e(K, [2, 194]),
2700
+ e(K, [2, 195]),
2701
+ {
2702
+ 47: y,
2703
+ 50: 183,
2704
+ 63: b,
2705
+ 92: E,
2706
+ 105: D,
2707
+ 108: O,
2708
+ 109: k,
2709
+ 112: A,
2710
+ 114: j,
2711
+ 116: 47,
2712
+ 117: M,
2713
+ 118: N,
2714
+ 119: P
2715
+ },
2716
+ {
2717
+ 31: 184,
2718
+ 70: q,
2719
+ 83: J,
2720
+ 84: Y,
2721
+ 85: 185,
2722
+ 119: X,
2723
+ 120: Z,
2724
+ 121: Q
2725
+ },
2726
+ {
2727
+ 31: 192,
2728
+ 70: q,
2729
+ 83: J,
2730
+ 84: Y,
2731
+ 85: 185,
2732
+ 119: X,
2733
+ 120: Z,
2734
+ 121: Q
2735
+ },
2736
+ {
2737
+ 31: 194,
2738
+ 53: [1, 193],
2739
+ 70: q,
2740
+ 83: J,
2741
+ 84: Y,
2742
+ 85: 185,
2743
+ 119: X,
2744
+ 120: Z,
2745
+ 121: Q
2746
+ },
2747
+ {
2748
+ 31: 195,
2749
+ 70: q,
2750
+ 83: J,
2751
+ 84: Y,
2752
+ 85: 185,
2753
+ 119: X,
2754
+ 120: Z,
2755
+ 121: Q
2756
+ },
2757
+ {
2758
+ 31: 196,
2759
+ 70: q,
2760
+ 83: J,
2761
+ 84: Y,
2762
+ 85: 185,
2763
+ 119: X,
2764
+ 120: Z,
2765
+ 121: Q
2766
+ },
2767
+ {
2768
+ 31: 197,
2769
+ 70: q,
2770
+ 83: J,
2771
+ 84: Y,
2772
+ 85: 185,
2773
+ 119: X,
2774
+ 120: Z,
2775
+ 121: Q
2776
+ },
2777
+ { 112: [1, 198] },
2778
+ {
2779
+ 31: 199,
2780
+ 70: q,
2781
+ 83: J,
2782
+ 84: Y,
2783
+ 85: 185,
2784
+ 119: X,
2785
+ 120: Z,
2786
+ 121: Q
2787
+ },
2788
+ {
2789
+ 31: 200,
2790
+ 68: [1, 201],
2791
+ 70: q,
2792
+ 83: J,
2793
+ 84: Y,
2794
+ 85: 185,
2795
+ 119: X,
2796
+ 120: Z,
2797
+ 121: Q
2798
+ },
2799
+ {
2800
+ 31: 202,
2801
+ 70: q,
2802
+ 83: J,
2803
+ 84: Y,
2804
+ 85: 185,
2805
+ 119: X,
2806
+ 120: Z,
2807
+ 121: Q
2808
+ },
2809
+ {
2810
+ 31: 203,
2811
+ 70: q,
2812
+ 83: J,
2813
+ 84: Y,
2814
+ 85: 185,
2815
+ 119: X,
2816
+ 120: Z,
2817
+ 121: Q
2818
+ },
2819
+ {
2820
+ 31: 204,
2821
+ 70: q,
2822
+ 83: J,
2823
+ 84: Y,
2824
+ 85: 185,
2825
+ 119: X,
2826
+ 120: Z,
2827
+ 121: Q
2828
+ },
2829
+ e(W, [2, 197]),
2830
+ e(o, [2, 22]),
2831
+ e(_e, [2, 30]),
2832
+ e(re, [2, 59], {
2833
+ 34: 205,
2834
+ 19: 206,
2835
+ 11: L,
2836
+ 43: ie
2837
+ }),
2838
+ e(ve, [2, 86], { 11: [1, 207] }),
2839
+ { 11: [1, 208] },
2840
+ {
2841
+ 31: 209,
2842
+ 70: q,
2843
+ 83: J,
2844
+ 84: Y,
2845
+ 85: 185,
2846
+ 119: X,
2847
+ 120: Z,
2848
+ 121: Q
2849
+ },
2850
+ {
2851
+ 80: [1, 210],
2852
+ 82: 211,
2853
+ 119: xe,
2854
+ 122: Se
2855
+ },
2856
+ e(Qe, [2, 92]),
2857
+ e(Qe, [2, 94]),
2858
+ e(Qe, [2, 95]),
2859
+ e(Qe, [2, 183]),
2860
+ e(Qe, [2, 184]),
2861
+ {
2862
+ 79: 212,
2863
+ 82: 130,
2864
+ 83: ye,
2865
+ 84: be,
2866
+ 119: xe,
2867
+ 122: Se
2868
+ },
2869
+ e(Ce, [2, 97]),
2870
+ {
2871
+ 8: z,
2872
+ 9: B,
2873
+ 10: V,
2874
+ 11: we,
2875
+ 12: H,
2876
+ 13: Te,
2877
+ 15: Ee,
2878
+ 22: 214,
2879
+ 28: De,
2880
+ 30: [1, 213],
2881
+ 33: Oe,
2882
+ 34: 215,
2883
+ 35: ke,
2884
+ 36: Ae,
2885
+ 43: ie,
2886
+ 47: je,
2887
+ 63: Me,
2888
+ 78: Ne,
2889
+ 86: 150,
2890
+ 87: Ie,
2891
+ 88: Le,
2892
+ 89: Re,
2893
+ 90: ze,
2894
+ 91: Be,
2895
+ 92: Ve,
2896
+ 93: He,
2897
+ 94: 216,
2898
+ 108: Ue,
2899
+ 112: We,
2900
+ 114: Ge,
2901
+ 117: Ke,
2902
+ 118: qe,
2903
+ 119: Je
2904
+ },
2905
+ e($, [2, 116]),
2906
+ e($, [2, 118]),
2907
+ e($, [2, 119]),
2908
+ e($, [2, 172]),
2909
+ e($, [2, 173]),
2910
+ e($, [2, 174]),
2911
+ e($, [2, 175]),
2912
+ e($, [2, 176]),
2913
+ e($, [2, 177]),
2914
+ e($, [2, 178]),
2915
+ e($, [2, 179]),
2916
+ e($, [2, 180]),
2917
+ e($, [2, 181]),
2918
+ e($, [2, 182]),
2919
+ e($, [2, 103]),
2920
+ e($, [2, 104]),
2921
+ e($, [2, 105]),
2922
+ e($, [2, 106]),
2923
+ e($, [2, 107]),
2924
+ e($, [2, 108]),
2925
+ e($, [2, 109]),
2926
+ e($, [2, 110]),
2927
+ e($, [2, 111]),
2928
+ e($, [2, 112]),
2929
+ e($, [2, 113]),
2930
+ e($, [2, 114]),
2931
+ e($, [2, 115]),
2932
+ {
2933
+ 6: 13,
2934
+ 7: 14,
2935
+ 8: c,
2936
+ 9: l,
2937
+ 10: u,
2938
+ 11: d,
2939
+ 12: f,
2940
+ 21: 20,
2941
+ 23: 21,
2942
+ 24: 22,
2943
+ 25: 23,
2944
+ 26: 24,
2945
+ 27: 25,
2946
+ 28: p,
2947
+ 33: [1, 217],
2948
+ 35: m,
2949
+ 36: h,
2950
+ 37: 29,
2951
+ 38: g,
2952
+ 40: _,
2953
+ 42: v,
2954
+ 45: 33,
2955
+ 46: 44,
2956
+ 47: y,
2957
+ 48: 45,
2958
+ 50: 46,
2959
+ 63: b,
2960
+ 87: x,
2961
+ 88: S,
2962
+ 89: C,
2963
+ 90: w,
2964
+ 91: T,
2965
+ 92: E,
2966
+ 105: D,
2967
+ 108: O,
2968
+ 109: k,
2969
+ 112: A,
2970
+ 114: j,
2971
+ 116: 47,
2972
+ 117: M,
2973
+ 118: N,
2974
+ 119: P,
2975
+ 124: ee,
2976
+ 125: te,
2977
+ 126: F,
2978
+ 127: I,
2979
+ 128: ne
2980
+ },
2981
+ {
2982
+ 6: 13,
2983
+ 7: 14,
2984
+ 8: c,
2985
+ 9: l,
2986
+ 10: u,
2987
+ 11: d,
2988
+ 12: f,
2989
+ 21: 20,
2990
+ 23: 21,
2991
+ 24: 22,
2992
+ 25: 23,
2993
+ 26: 24,
2994
+ 27: 25,
2995
+ 28: p,
2996
+ 33: [1, 218],
2997
+ 35: m,
2998
+ 36: h,
2999
+ 37: 29,
3000
+ 38: g,
3001
+ 40: _,
3002
+ 42: v,
3003
+ 45: 33,
3004
+ 46: 44,
3005
+ 47: y,
3006
+ 48: 45,
3007
+ 50: 46,
3008
+ 63: b,
3009
+ 87: x,
3010
+ 88: S,
3011
+ 89: C,
3012
+ 90: w,
3013
+ 91: T,
3014
+ 92: E,
3015
+ 105: D,
3016
+ 108: O,
3017
+ 109: k,
3018
+ 112: A,
3019
+ 114: j,
3020
+ 116: 47,
3021
+ 117: M,
3022
+ 118: N,
3023
+ 119: P,
3024
+ 124: ee,
3025
+ 125: te,
3026
+ 126: F,
3027
+ 127: I,
3028
+ 128: ne
3029
+ },
3030
+ {
3031
+ 8: z,
3032
+ 9: B,
3033
+ 10: V,
3034
+ 11: we,
3035
+ 12: H,
3036
+ 13: Te,
3037
+ 15: Ee,
3038
+ 22: 220,
3039
+ 28: De,
3040
+ 30: [1, 219],
3041
+ 33: Oe,
3042
+ 34: 221,
3043
+ 35: ke,
3044
+ 36: Ae,
3045
+ 43: ie,
3046
+ 47: je,
3047
+ 63: Me,
3048
+ 78: Ne,
3049
+ 86: 150,
3050
+ 87: Ie,
3051
+ 88: Le,
3052
+ 89: Re,
3053
+ 90: ze,
3054
+ 91: Be,
3055
+ 92: Ve,
3056
+ 93: He,
3057
+ 94: 216,
3058
+ 108: Ue,
3059
+ 112: We,
3060
+ 114: Ge,
3061
+ 117: Ke,
3062
+ 118: qe,
3063
+ 119: Je
3064
+ },
3065
+ {
3066
+ 11: L,
3067
+ 19: 222
3068
+ },
3069
+ { 47: [1, 223] },
3070
+ e(ge, [2, 56]),
3071
+ {
3072
+ 11: [1, 224],
3073
+ 47: y,
3074
+ 63: b,
3075
+ 92: E,
3076
+ 105: D,
3077
+ 108: O,
3078
+ 109: k,
3079
+ 112: A,
3080
+ 114: j,
3081
+ 116: 122,
3082
+ 117: M,
3083
+ 118: N,
3084
+ 119: P
3085
+ },
3086
+ { 11: [1, 225] },
3087
+ {
3088
+ 11: [1, 226],
3089
+ 109: [1, 227]
3090
+ },
3091
+ e($e, [2, 143]),
3092
+ {
3093
+ 11: [1, 228],
3094
+ 47: y,
3095
+ 63: b,
3096
+ 92: E,
3097
+ 105: D,
3098
+ 108: O,
3099
+ 109: k,
3100
+ 112: A,
3101
+ 114: j,
3102
+ 116: 122,
3103
+ 117: M,
3104
+ 118: N,
3105
+ 119: P
3106
+ },
3107
+ {
3108
+ 11: [1, 229],
3109
+ 47: y,
3110
+ 63: b,
3111
+ 92: E,
3112
+ 105: D,
3113
+ 108: O,
3114
+ 109: k,
3115
+ 112: A,
3116
+ 114: j,
3117
+ 116: 122,
3118
+ 117: M,
3119
+ 118: N,
3120
+ 119: P
3121
+ },
3122
+ { 83: [1, 230] },
3123
+ e(G, [2, 124], { 11: [1, 231] }),
3124
+ e(G, [2, 126], { 11: [1, 232] }),
3125
+ { 83: [1, 233] },
3126
+ e(K, [2, 199]),
3127
+ {
3128
+ 83: [1, 234],
3129
+ 101: [1, 235]
3130
+ },
3131
+ e(ge, [2, 68], {
3132
+ 116: 122,
3133
+ 47: y,
3134
+ 63: b,
3135
+ 92: E,
3136
+ 105: D,
3137
+ 108: O,
3138
+ 109: k,
3139
+ 112: A,
3140
+ 114: j,
3141
+ 117: M,
3142
+ 118: N,
3143
+ 119: P
3144
+ }),
3145
+ {
3146
+ 32: [1, 236],
3147
+ 70: q,
3148
+ 85: 237,
3149
+ 119: X,
3150
+ 120: Z,
3151
+ 121: Q
3152
+ },
3153
+ e(et, [2, 99]),
3154
+ e(et, [2, 101]),
3155
+ e(et, [2, 102]),
3156
+ e(et, [2, 168]),
3157
+ e(et, [2, 169]),
3158
+ e(et, [2, 170]),
3159
+ e(et, [2, 171]),
3160
+ {
3161
+ 52: [1, 238],
3162
+ 70: q,
3163
+ 85: 237,
3164
+ 119: X,
3165
+ 120: Z,
3166
+ 121: Q
3167
+ },
3168
+ {
3169
+ 31: 239,
3170
+ 70: q,
3171
+ 83: J,
3172
+ 84: Y,
3173
+ 85: 185,
3174
+ 119: X,
3175
+ 120: Z,
3176
+ 121: Q
3177
+ },
3178
+ {
3179
+ 54: [1, 240],
3180
+ 70: q,
3181
+ 85: 237,
3182
+ 119: X,
3183
+ 120: Z,
3184
+ 121: Q
3185
+ },
3186
+ {
3187
+ 56: [1, 241],
3188
+ 70: q,
3189
+ 85: 237,
3190
+ 119: X,
3191
+ 120: Z,
3192
+ 121: Q
3193
+ },
3194
+ {
3195
+ 58: [1, 242],
3196
+ 70: q,
3197
+ 85: 237,
3198
+ 119: X,
3199
+ 120: Z,
3200
+ 121: Q
3201
+ },
3202
+ {
3203
+ 60: [1, 243],
3204
+ 70: q,
3205
+ 85: 237,
3206
+ 119: X,
3207
+ 120: Z,
3208
+ 121: Q
3209
+ },
3210
+ { 63: [1, 244] },
3211
+ {
3212
+ 67: [1, 245],
3213
+ 70: q,
3214
+ 85: 237,
3215
+ 119: X,
3216
+ 120: Z,
3217
+ 121: Q
3218
+ },
3219
+ {
3220
+ 69: [1, 246],
3221
+ 70: q,
3222
+ 85: 237,
3223
+ 119: X,
3224
+ 120: Z,
3225
+ 121: Q
3226
+ },
3227
+ {
3228
+ 31: 247,
3229
+ 70: q,
3230
+ 83: J,
3231
+ 84: Y,
3232
+ 85: 185,
3233
+ 119: X,
3234
+ 120: Z,
3235
+ 121: Q
3236
+ },
3237
+ {
3238
+ 32: [1, 248],
3239
+ 70: q,
3240
+ 85: 237,
3241
+ 119: X,
3242
+ 120: Z,
3243
+ 121: Q
3244
+ },
3245
+ {
3246
+ 70: q,
3247
+ 72: [1, 249],
3248
+ 74: [1, 250],
3249
+ 85: 237,
3250
+ 119: X,
3251
+ 120: Z,
3252
+ 121: Q
3253
+ },
3254
+ {
3255
+ 70: q,
3256
+ 72: [1, 252],
3257
+ 74: [1, 251],
3258
+ 85: 237,
3259
+ 119: X,
3260
+ 120: Z,
3261
+ 121: Q
3262
+ },
3263
+ e(re, [2, 58], {
3264
+ 19: 169,
3265
+ 11: L,
3266
+ 43: Ze
3267
+ }),
3268
+ e(re, [2, 60], { 47: Xe }),
3269
+ e(ve, [2, 88]),
3270
+ e(ve, [2, 87]),
3271
+ {
3272
+ 65: [1, 253],
3273
+ 70: q,
3274
+ 85: 237,
3275
+ 119: X,
3276
+ 120: Z,
3277
+ 121: Q
3278
+ },
3279
+ e(ve, [2, 90]),
3280
+ e(Qe, [2, 93]),
3281
+ {
3282
+ 80: [1, 254],
3283
+ 82: 211,
3284
+ 119: xe,
3285
+ 122: Se
3286
+ },
3287
+ {
3288
+ 31: 255,
3289
+ 70: q,
3290
+ 83: J,
3291
+ 84: Y,
3292
+ 85: 185,
3293
+ 119: X,
3294
+ 120: Z,
3295
+ 121: Q
3296
+ },
3297
+ e(Ye, s, { 5: 256 }),
3298
+ {
3299
+ 8: z,
3300
+ 9: B,
3301
+ 10: V,
3302
+ 12: H,
3303
+ 22: 257,
3304
+ 43: Ze
3305
+ },
3306
+ e($, [2, 117]),
3307
+ e(R, [2, 42]),
3308
+ e(R, [2, 43]),
3309
+ {
3310
+ 31: 258,
3311
+ 70: q,
3312
+ 83: J,
3313
+ 84: Y,
3314
+ 85: 185,
3315
+ 119: X,
3316
+ 120: Z,
3317
+ 121: Q
3318
+ },
3319
+ e(R, [2, 46]),
3320
+ {
3321
+ 8: z,
3322
+ 9: B,
3323
+ 10: V,
3324
+ 12: H,
3325
+ 22: 259,
3326
+ 43: Ze
3327
+ },
3328
+ {
3329
+ 46: 260,
3330
+ 47: y,
3331
+ 48: 45,
3332
+ 50: 46,
3333
+ 63: b,
3334
+ 92: E,
3335
+ 105: D,
3336
+ 108: O,
3337
+ 109: k,
3338
+ 112: A,
3339
+ 114: j,
3340
+ 116: 47,
3341
+ 117: M,
3342
+ 118: N,
3343
+ 119: P
3344
+ },
3345
+ {
3346
+ 11: L,
3347
+ 19: 261
3348
+ },
3349
+ {
3350
+ 11: tt,
3351
+ 63: nt,
3352
+ 87: rt,
3353
+ 95: 262,
3354
+ 108: it,
3355
+ 110: 263,
3356
+ 111: 264,
3357
+ 112: at,
3358
+ 113: ot,
3359
+ 114: st,
3360
+ 115: ct
3361
+ },
3362
+ {
3363
+ 11: tt,
3364
+ 63: nt,
3365
+ 87: rt,
3366
+ 95: 273,
3367
+ 107: [1, 274],
3368
+ 108: it,
3369
+ 110: 263,
3370
+ 111: 264,
3371
+ 112: at,
3372
+ 113: ot,
3373
+ 114: st,
3374
+ 115: ct
3375
+ },
3376
+ {
3377
+ 11: tt,
3378
+ 63: nt,
3379
+ 87: rt,
3380
+ 95: 275,
3381
+ 107: [1, 276],
3382
+ 108: it,
3383
+ 110: 263,
3384
+ 111: 264,
3385
+ 112: at,
3386
+ 113: ot,
3387
+ 114: st,
3388
+ 115: ct
3389
+ },
3390
+ { 108: [1, 277] },
3391
+ {
3392
+ 11: tt,
3393
+ 63: nt,
3394
+ 87: rt,
3395
+ 95: 278,
3396
+ 108: it,
3397
+ 110: 263,
3398
+ 111: 264,
3399
+ 112: at,
3400
+ 113: ot,
3401
+ 114: st,
3402
+ 115: ct
3403
+ },
3404
+ {
3405
+ 47: y,
3406
+ 50: 279,
3407
+ 63: b,
3408
+ 92: E,
3409
+ 105: D,
3410
+ 108: O,
3411
+ 109: k,
3412
+ 112: A,
3413
+ 114: j,
3414
+ 116: 47,
3415
+ 117: M,
3416
+ 118: N,
3417
+ 119: P
3418
+ },
3419
+ e(G, [2, 123]),
3420
+ { 83: [1, 280] },
3421
+ {
3422
+ 83: [1, 281],
3423
+ 101: [1, 282]
3424
+ },
3425
+ e(G, [2, 131]),
3426
+ e(G, [2, 133], { 11: [1, 283] }),
3427
+ e(G, [2, 134]),
3428
+ e(U, [2, 69]),
3429
+ e(et, [2, 100]),
3430
+ e(U, [2, 70]),
3431
+ {
3432
+ 54: [1, 284],
3433
+ 70: q,
3434
+ 85: 237,
3435
+ 119: X,
3436
+ 120: Z,
3437
+ 121: Q
3438
+ },
3439
+ e(U, [2, 77]),
3440
+ e(U, [2, 72]),
3441
+ e(U, [2, 73]),
3442
+ e(U, [2, 74]),
3443
+ { 112: [1, 285] },
3444
+ e(U, [2, 76]),
3445
+ e(U, [2, 78]),
3446
+ {
3447
+ 69: [1, 286],
3448
+ 70: q,
3449
+ 85: 237,
3450
+ 119: X,
3451
+ 120: Z,
3452
+ 121: Q
3453
+ },
3454
+ e(U, [2, 80]),
3455
+ e(U, [2, 81]),
3456
+ e(U, [2, 83]),
3457
+ e(U, [2, 82]),
3458
+ e(U, [2, 84]),
3459
+ e([
3460
+ 11,
3461
+ 47,
3462
+ 63,
3463
+ 92,
3464
+ 105,
3465
+ 108,
3466
+ 109,
3467
+ 112,
3468
+ 114,
3469
+ 117,
3470
+ 118,
3471
+ 119
3472
+ ], [2, 98]),
3473
+ e(ve, [2, 91]),
3474
+ {
3475
+ 32: [1, 287],
3476
+ 70: q,
3477
+ 85: 237,
3478
+ 119: X,
3479
+ 120: Z,
3480
+ 121: Q
3481
+ },
3482
+ {
3483
+ 6: 13,
3484
+ 7: 14,
3485
+ 8: c,
3486
+ 9: l,
3487
+ 10: u,
3488
+ 11: d,
3489
+ 12: f,
3490
+ 21: 20,
3491
+ 23: 21,
3492
+ 24: 22,
3493
+ 25: 23,
3494
+ 26: 24,
3495
+ 27: 25,
3496
+ 28: p,
3497
+ 33: [1, 288],
3498
+ 35: m,
3499
+ 36: h,
3500
+ 37: 29,
3501
+ 38: g,
3502
+ 40: _,
3503
+ 42: v,
3504
+ 45: 33,
3505
+ 46: 44,
3506
+ 47: y,
3507
+ 48: 45,
3508
+ 50: 46,
3509
+ 63: b,
3510
+ 87: x,
3511
+ 88: S,
3512
+ 89: C,
3513
+ 90: w,
3514
+ 91: T,
3515
+ 92: E,
3516
+ 105: D,
3517
+ 108: O,
3518
+ 109: k,
3519
+ 112: A,
3520
+ 114: j,
3521
+ 116: 47,
3522
+ 117: M,
3523
+ 118: N,
3524
+ 119: P,
3525
+ 124: ee,
3526
+ 125: te,
3527
+ 126: F,
3528
+ 127: I,
3529
+ 128: ne
3530
+ },
3531
+ e(Ye, s, { 5: 289 }),
3532
+ {
3533
+ 32: [1, 290],
3534
+ 70: q,
3535
+ 85: 237,
3536
+ 119: X,
3537
+ 120: Z,
3538
+ 121: Q
3539
+ },
3540
+ e(R, [2, 47]),
3541
+ e(ge, [2, 66]),
3542
+ {
3543
+ 46: 291,
3544
+ 47: y,
3545
+ 48: 45,
3546
+ 50: 46,
3547
+ 63: b,
3548
+ 92: E,
3549
+ 105: D,
3550
+ 108: O,
3551
+ 109: k,
3552
+ 112: A,
3553
+ 114: j,
3554
+ 116: 47,
3555
+ 117: M,
3556
+ 118: N,
3557
+ 119: P
3558
+ },
3559
+ e(G, [2, 136], { 109: lt }),
3560
+ e(ut, [2, 145], {
3561
+ 111: 293,
3562
+ 11: tt,
3563
+ 63: nt,
3564
+ 87: rt,
3565
+ 108: it,
3566
+ 112: at,
3567
+ 113: ot,
3568
+ 114: st,
3569
+ 115: ct
3570
+ }),
3571
+ e(dt, [2, 147]),
3572
+ e(dt, [2, 149]),
3573
+ e(dt, [2, 150]),
3574
+ e(dt, [2, 151]),
3575
+ e(dt, [2, 152]),
3576
+ e(dt, [2, 153]),
3577
+ e(dt, [2, 154]),
3578
+ e(dt, [2, 155]),
3579
+ e(dt, [2, 156]),
3580
+ e(G, [2, 137], { 109: lt }),
3581
+ { 11: [1, 294] },
3582
+ e(G, [2, 138], { 109: lt }),
3583
+ { 11: [1, 295] },
3584
+ e($e, [2, 144]),
3585
+ e(G, [2, 120], { 109: lt }),
3586
+ e(G, [2, 121], {
3587
+ 116: 122,
3588
+ 47: y,
3589
+ 63: b,
3590
+ 92: E,
3591
+ 105: D,
3592
+ 108: O,
3593
+ 109: k,
3594
+ 112: A,
3595
+ 114: j,
3596
+ 117: M,
3597
+ 118: N,
3598
+ 119: P
3599
+ }),
3600
+ e(G, [2, 125]),
3601
+ e(G, [2, 127], { 11: [1, 296] }),
3602
+ e(G, [2, 128]),
3603
+ { 101: [1, 297] },
3604
+ { 54: [1, 298] },
3605
+ { 65: [1, 299] },
3606
+ { 69: [1, 300] },
3607
+ {
3608
+ 8: z,
3609
+ 9: B,
3610
+ 10: V,
3611
+ 12: H,
3612
+ 22: 301,
3613
+ 34: 302,
3614
+ 43: ie
3615
+ },
3616
+ e(R, [2, 40]),
3617
+ {
3618
+ 6: 13,
3619
+ 7: 14,
3620
+ 8: c,
3621
+ 9: l,
3622
+ 10: u,
3623
+ 11: d,
3624
+ 12: f,
3625
+ 21: 20,
3626
+ 23: 21,
3627
+ 24: 22,
3628
+ 25: 23,
3629
+ 26: 24,
3630
+ 27: 25,
3631
+ 28: p,
3632
+ 33: [1, 303],
3633
+ 35: m,
3634
+ 36: h,
3635
+ 37: 29,
3636
+ 38: g,
3637
+ 40: _,
3638
+ 42: v,
3639
+ 45: 33,
3640
+ 46: 44,
3641
+ 47: y,
3642
+ 48: 45,
3643
+ 50: 46,
3644
+ 63: b,
3645
+ 87: x,
3646
+ 88: S,
3647
+ 89: C,
3648
+ 90: w,
3649
+ 91: T,
3650
+ 92: E,
3651
+ 105: D,
3652
+ 108: O,
3653
+ 109: k,
3654
+ 112: A,
3655
+ 114: j,
3656
+ 116: 47,
3657
+ 117: M,
3658
+ 118: N,
3659
+ 119: P,
3660
+ 124: ee,
3661
+ 125: te,
3662
+ 126: F,
3663
+ 127: I,
3664
+ 128: ne
3665
+ },
3666
+ {
3667
+ 8: z,
3668
+ 9: B,
3669
+ 10: V,
3670
+ 12: H,
3671
+ 22: 304,
3672
+ 34: 305,
3673
+ 43: ie
3674
+ },
3675
+ e(ge, [2, 65]),
3676
+ {
3677
+ 11: tt,
3678
+ 63: nt,
3679
+ 87: rt,
3680
+ 108: it,
3681
+ 110: 306,
3682
+ 111: 264,
3683
+ 112: at,
3684
+ 113: ot,
3685
+ 114: st,
3686
+ 115: ct
3687
+ },
3688
+ e(dt, [2, 148]),
3689
+ {
3690
+ 15: ae,
3691
+ 47: oe,
3692
+ 63: se,
3693
+ 92: ce,
3694
+ 104: 307,
3695
+ 108: le,
3696
+ 109: ue,
3697
+ 112: de,
3698
+ 114: fe,
3699
+ 117: pe,
3700
+ 118: me,
3701
+ 119: he,
3702
+ 123: 97
3703
+ },
3704
+ {
3705
+ 15: ae,
3706
+ 47: oe,
3707
+ 63: se,
3708
+ 92: ce,
3709
+ 104: 308,
3710
+ 108: le,
3711
+ 109: ue,
3712
+ 112: de,
3713
+ 114: fe,
3714
+ 117: pe,
3715
+ 118: me,
3716
+ 119: he,
3717
+ 123: 97
3718
+ },
3719
+ { 101: [1, 309] },
3720
+ e(G, [2, 135]),
3721
+ e(U, [2, 71]),
3722
+ {
3723
+ 31: 310,
3724
+ 70: q,
3725
+ 83: J,
3726
+ 84: Y,
3727
+ 85: 185,
3728
+ 119: X,
3729
+ 120: Z,
3730
+ 121: Q
3731
+ },
3732
+ e(U, [2, 79]),
3733
+ e(Ye, s, { 5: 311 }),
3734
+ {
3735
+ 8: z,
3736
+ 9: B,
3737
+ 10: V,
3738
+ 12: H,
3739
+ 22: 312,
3740
+ 43: Ze
3741
+ },
3742
+ e(R, [2, 41]),
3743
+ e(R, [2, 44]),
3744
+ {
3745
+ 8: z,
3746
+ 9: B,
3747
+ 10: V,
3748
+ 12: H,
3749
+ 22: 313,
3750
+ 43: Ze
3751
+ },
3752
+ e(ut, [2, 146], {
3753
+ 111: 293,
3754
+ 11: tt,
3755
+ 63: nt,
3756
+ 87: rt,
3757
+ 108: it,
3758
+ 112: at,
3759
+ 113: ot,
3760
+ 114: st,
3761
+ 115: ct
3762
+ }),
3763
+ e(G, [2, 141], {
3764
+ 123: 181,
3765
+ 11: [1, 314],
3766
+ 15: ae,
3767
+ 47: oe,
3768
+ 63: se,
3769
+ 92: ce,
3770
+ 108: le,
3771
+ 109: ue,
3772
+ 112: de,
3773
+ 114: fe,
3774
+ 117: pe,
3775
+ 118: me,
3776
+ 119: he
3777
+ }),
3778
+ e(G, [2, 142], {
3779
+ 123: 181,
3780
+ 11: [1, 315],
3781
+ 15: ae,
3782
+ 47: oe,
3783
+ 63: se,
3784
+ 92: ce,
3785
+ 108: le,
3786
+ 109: ue,
3787
+ 112: de,
3788
+ 114: fe,
3789
+ 117: pe,
3790
+ 118: me,
3791
+ 119: he
3792
+ }),
3793
+ e(G, [2, 129]),
3794
+ {
3795
+ 32: [1, 316],
3796
+ 70: q,
3797
+ 85: 237,
3798
+ 119: X,
3799
+ 120: Z,
3800
+ 121: Q
3801
+ },
3802
+ {
3803
+ 6: 13,
3804
+ 7: 14,
3805
+ 8: c,
3806
+ 9: l,
3807
+ 10: u,
3808
+ 11: d,
3809
+ 12: f,
3810
+ 21: 20,
3811
+ 23: 21,
3812
+ 24: 22,
3813
+ 25: 23,
3814
+ 26: 24,
3815
+ 27: 25,
3816
+ 28: p,
3817
+ 33: [1, 317],
3818
+ 35: m,
3819
+ 36: h,
3820
+ 37: 29,
3821
+ 38: g,
3822
+ 40: _,
3823
+ 42: v,
3824
+ 45: 33,
3825
+ 46: 44,
3826
+ 47: y,
3827
+ 48: 45,
3828
+ 50: 46,
3829
+ 63: b,
3830
+ 87: x,
3831
+ 88: S,
3832
+ 89: C,
3833
+ 90: w,
3834
+ 91: T,
3835
+ 92: E,
3836
+ 105: D,
3837
+ 108: O,
3838
+ 109: k,
3839
+ 112: A,
3840
+ 114: j,
3841
+ 116: 47,
3842
+ 117: M,
3843
+ 118: N,
3844
+ 119: P,
3845
+ 124: ee,
3846
+ 125: te,
3847
+ 126: F,
3848
+ 127: I,
3849
+ 128: ne
3850
+ },
3851
+ e(Ye, s, { 5: 318 }),
3852
+ e(R, [2, 45]),
3853
+ {
3854
+ 11: tt,
3855
+ 63: nt,
3856
+ 87: rt,
3857
+ 95: 319,
3858
+ 108: it,
3859
+ 110: 263,
3860
+ 111: 264,
3861
+ 112: at,
3862
+ 113: ot,
3863
+ 114: st,
3864
+ 115: ct
3865
+ },
3866
+ {
3867
+ 11: tt,
3868
+ 63: nt,
3869
+ 87: rt,
3870
+ 95: 320,
3871
+ 108: it,
3872
+ 110: 263,
3873
+ 111: 264,
3874
+ 112: at,
3875
+ 113: ot,
3876
+ 114: st,
3877
+ 115: ct
3878
+ },
3879
+ e(U, [2, 75]),
3880
+ e(R, [2, 38]),
3881
+ {
3882
+ 6: 13,
3883
+ 7: 14,
3884
+ 8: c,
3885
+ 9: l,
3886
+ 10: u,
3887
+ 11: d,
3888
+ 12: f,
3889
+ 21: 20,
3890
+ 23: 21,
3891
+ 24: 22,
3892
+ 25: 23,
3893
+ 26: 24,
3894
+ 27: 25,
3895
+ 28: p,
3896
+ 33: [1, 321],
3897
+ 35: m,
3898
+ 36: h,
3899
+ 37: 29,
3900
+ 38: g,
3901
+ 40: _,
3902
+ 42: v,
3903
+ 45: 33,
3904
+ 46: 44,
3905
+ 47: y,
3906
+ 48: 45,
3907
+ 50: 46,
3908
+ 63: b,
3909
+ 87: x,
3910
+ 88: S,
3911
+ 89: C,
3912
+ 90: w,
3913
+ 91: T,
3914
+ 92: E,
3915
+ 105: D,
3916
+ 108: O,
3917
+ 109: k,
3918
+ 112: A,
3919
+ 114: j,
3920
+ 116: 47,
3921
+ 117: M,
3922
+ 118: N,
3923
+ 119: P,
3924
+ 124: ee,
3925
+ 125: te,
3926
+ 126: F,
3927
+ 127: I,
3928
+ 128: ne
3929
+ },
3930
+ e(G, [2, 139], { 109: lt }),
3931
+ e(G, [2, 140], { 109: lt }),
3932
+ e(R, [2, 39])
3933
+ ],
3934
+ defaultActions: {},
3935
+ parseError: /* @__PURE__ */ n(function(e, t) {
3936
+ if (t.recoverable) this.trace(e);
3937
+ else {
3938
+ var n = Error(e);
3939
+ throw n.hash = t, n;
3940
+ }
3941
+ }, "parseError"),
3942
+ parse: /* @__PURE__ */ n(function(e) {
3943
+ var t = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
3944
+ for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
3945
+ h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
3946
+ var v = h.yylloc;
3947
+ o.push(v);
3948
+ var y = h.options && h.options.ranges;
3949
+ this.parseError = typeof g.yy.parseError == "function" ? g.yy.parseError : Object.getPrototypeOf(this).parseError;
3950
+ function b(e) {
3951
+ r.length -= 2 * e, a.length -= e, o.length -= e;
3952
+ }
3953
+ n(b, "popStack");
3954
+ function x() {
3955
+ var e = i.pop() || h.lex() || p;
3956
+ return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = t.symbols_[e] || e), e;
3957
+ }
3958
+ n(x, "lex");
3959
+ for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
3960
+ if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
3961
+ var M = "";
3962
+ for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
3963
+ M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
3964
+ text: h.match,
3965
+ token: this.terminals_[S] || S,
3966
+ line: h.yylineno,
3967
+ loc: v,
3968
+ expected: j
3969
+ });
3970
+ }
3971
+ if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
3972
+ switch (T[0]) {
3973
+ case 1:
3974
+ r.push(S), a.push(h.yytext), o.push(h.yylloc), r.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
3975
+ break;
3976
+ case 2:
3977
+ if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
3978
+ first_line: o[o.length - (k || 1)].first_line,
3979
+ last_line: o[o.length - 1].last_line,
3980
+ first_column: o[o.length - (k || 1)].first_column,
3981
+ last_column: o[o.length - 1].last_column
3982
+ }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
3983
+ c,
3984
+ u,
3985
+ l,
3986
+ g.yy,
3987
+ T[1],
3988
+ a,
3989
+ o
3990
+ ].concat(m)), E !== void 0) return E;
3991
+ k && (r = r.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), r.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[r[r.length - 2]][r[r.length - 1]], r.push(A);
3992
+ break;
3993
+ case 3: return !0;
3994
+ }
3995
+ }
3996
+ return !0;
3997
+ }, "parse")
3998
+ };
3999
+ ft.lexer = /* @__PURE__ */ (function() {
4000
+ return {
4001
+ EOF: 1,
4002
+ parseError: /* @__PURE__ */ n(function(e, t) {
4003
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
4004
+ else throw Error(e);
4005
+ }, "parseError"),
4006
+ setInput: /* @__PURE__ */ n(function(e, t) {
4007
+ return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
4008
+ first_line: 1,
4009
+ first_column: 0,
4010
+ last_line: 1,
4011
+ last_column: 0
4012
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
4013
+ }, "setInput"),
4014
+ input: /* @__PURE__ */ n(function() {
4015
+ var e = this._input[0];
4016
+ return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
4017
+ }, "input"),
4018
+ unput: /* @__PURE__ */ n(function(e) {
4019
+ var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
4020
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
4021
+ var r = this.match.split(/(?:\r\n?|\n)/g);
4022
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
4023
+ var i = this.yylloc.range;
4024
+ return this.yylloc = {
4025
+ first_line: this.yylloc.first_line,
4026
+ last_line: this.yylineno + 1,
4027
+ first_column: this.yylloc.first_column,
4028
+ last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
4029
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
4030
+ }, "unput"),
4031
+ more: /* @__PURE__ */ n(function() {
4032
+ return this._more = !0, this;
4033
+ }, "more"),
4034
+ reject: /* @__PURE__ */ n(function() {
4035
+ if (this.options.backtrack_lexer) this._backtrack = !0;
4036
+ else 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(), {
4037
+ text: "",
4038
+ token: null,
4039
+ line: this.yylineno
4040
+ });
4041
+ return this;
4042
+ }, "reject"),
4043
+ less: /* @__PURE__ */ n(function(e) {
4044
+ this.unput(this.match.slice(e));
4045
+ }, "less"),
4046
+ pastInput: /* @__PURE__ */ n(function() {
4047
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
4048
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
4049
+ }, "pastInput"),
4050
+ upcomingInput: /* @__PURE__ */ n(function() {
4051
+ var e = this.match;
4052
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
4053
+ }, "upcomingInput"),
4054
+ showPosition: /* @__PURE__ */ n(function() {
4055
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
4056
+ return e + this.upcomingInput() + "\n" + t + "^";
4057
+ }, "showPosition"),
4058
+ test_match: /* @__PURE__ */ n(function(e, t) {
4059
+ var n, r, i;
4060
+ if (this.options.backtrack_lexer && (i = {
4061
+ yylineno: this.yylineno,
4062
+ yylloc: {
4063
+ first_line: this.yylloc.first_line,
4064
+ last_line: this.last_line,
4065
+ first_column: this.yylloc.first_column,
4066
+ last_column: this.yylloc.last_column
4067
+ },
4068
+ yytext: this.yytext,
4069
+ match: this.match,
4070
+ matches: this.matches,
4071
+ matched: this.matched,
4072
+ yyleng: this.yyleng,
4073
+ offset: this.offset,
4074
+ _more: this._more,
4075
+ _input: this._input,
4076
+ yy: this.yy,
4077
+ conditionStack: this.conditionStack.slice(0),
4078
+ done: this.done
4079
+ }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
4080
+ first_line: this.yylloc.last_line,
4081
+ last_line: this.yylineno + 1,
4082
+ first_column: this.yylloc.last_column,
4083
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
4084
+ }, this.yytext += e[0], this.match += e[0], this.matches = e, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(e[0].length), this.matched += e[0], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
4085
+ if (this._backtrack) {
4086
+ for (var a in i) this[a] = i[a];
4087
+ return !1;
4088
+ }
4089
+ return !1;
4090
+ }, "test_match"),
4091
+ next: /* @__PURE__ */ n(function() {
4092
+ if (this.done) return this.EOF;
4093
+ this._input || (this.done = !0);
4094
+ var e, t, n, r;
4095
+ this._more || (this.yytext = "", this.match = "");
4096
+ for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
4097
+ if (t = n, r = a, this.options.backtrack_lexer) {
4098
+ if (e = this.test_match(n, i[a]), e !== !1) return e;
4099
+ if (this._backtrack) {
4100
+ t = !1;
4101
+ continue;
4102
+ }
4103
+ return !1;
4104
+ }
4105
+ if (!this.options.flex) break;
4106
+ }
4107
+ return t ? (e = this.test_match(t, i[r]), e !== !1 && e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
4108
+ text: "",
4109
+ token: null,
4110
+ line: this.yylineno
4111
+ });
4112
+ }, "next"),
4113
+ lex: /* @__PURE__ */ n(function() {
4114
+ return this.next() || this.lex();
4115
+ }, "lex"),
4116
+ begin: /* @__PURE__ */ n(function(e) {
4117
+ this.conditionStack.push(e);
4118
+ }, "begin"),
4119
+ popState: /* @__PURE__ */ n(function() {
4120
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
4121
+ }, "popState"),
4122
+ _currentRules: /* @__PURE__ */ n(function() {
4123
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
4124
+ }, "_currentRules"),
4125
+ topState: /* @__PURE__ */ n(function(e) {
4126
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
4127
+ }, "topState"),
4128
+ pushState: /* @__PURE__ */ n(function(e) {
4129
+ this.begin(e);
4130
+ }, "pushState"),
4131
+ stateStackSize: /* @__PURE__ */ n(function() {
4132
+ return this.conditionStack.length;
4133
+ }, "stateStackSize"),
4134
+ options: {},
4135
+ performAction: /* @__PURE__ */ n(function(e, t, n, r) {
4136
+ switch (n) {
4137
+ case 0: return this.begin("acc_title"), 38;
4138
+ case 1: return this.popState(), "acc_title_value";
4139
+ case 2: return this.begin("acc_descr"), 40;
4140
+ case 3: return this.popState(), "acc_descr_value";
4141
+ case 4:
4142
+ this.begin("acc_descr_multiline");
4143
+ break;
4144
+ case 5:
4145
+ this.popState();
4146
+ break;
4147
+ case 6: return "acc_descr_multiline_value";
4148
+ case 7: return this.pushState("shapeData"), t.yytext = "", 43;
4149
+ case 8: return this.pushState("shapeDataStr"), 43;
4150
+ case 9: return this.popState(), 43;
4151
+ case 10: return t.yytext = t.yytext.replace(/\n\s*/g, "<br/>"), 43;
4152
+ case 11: return 43;
4153
+ case 12:
4154
+ this.popState();
4155
+ break;
4156
+ case 13:
4157
+ this.begin("callbackname");
4158
+ break;
4159
+ case 14:
4160
+ this.popState();
4161
+ break;
4162
+ case 15:
4163
+ this.popState(), this.begin("callbackargs");
4164
+ break;
4165
+ case 16: return 98;
4166
+ case 17:
4167
+ this.popState();
4168
+ break;
4169
+ case 18: return 99;
4170
+ case 19: return "MD_STR";
4171
+ case 20:
4172
+ this.popState();
4173
+ break;
4174
+ case 21:
4175
+ this.begin("md_string");
4176
+ break;
4177
+ case 22: return "STR";
4178
+ case 23:
4179
+ this.popState();
4180
+ break;
4181
+ case 24:
4182
+ this.pushState("string");
4183
+ break;
4184
+ case 25: return 87;
4185
+ case 26: return 105;
4186
+ case 27: return 88;
4187
+ case 28: return 107;
4188
+ case 29: return 89;
4189
+ case 30: return 90;
4190
+ case 31: return 100;
4191
+ case 32:
4192
+ this.begin("click");
4193
+ break;
4194
+ case 33:
4195
+ this.popState();
4196
+ break;
4197
+ case 34: return 91;
4198
+ case 35: return e.lex.firstGraph() && this.begin("dir"), 13;
4199
+ case 36: return 28;
4200
+ case 37: return 36;
4201
+ case 38: return 35;
4202
+ case 39: return 33;
4203
+ case 40: return 101;
4204
+ case 41: return 101;
4205
+ case 42: return 101;
4206
+ case 43: return 101;
4207
+ case 44: return this.popState(), 14;
4208
+ case 45: return this.popState(), 15;
4209
+ case 46: return this.popState(), 15;
4210
+ case 47: return this.popState(), 15;
4211
+ case 48: return this.popState(), 15;
4212
+ case 49: return this.popState(), 15;
4213
+ case 50: return this.popState(), 15;
4214
+ case 51: return this.popState(), 15;
4215
+ case 52: return this.popState(), 15;
4216
+ case 53: return this.popState(), 15;
4217
+ case 54: return this.popState(), 15;
4218
+ case 55: return 124;
4219
+ case 56: return 125;
4220
+ case 57: return 126;
4221
+ case 58: return 127;
4222
+ case 59: return 128;
4223
+ case 60: return 81;
4224
+ case 61: return 108;
4225
+ case 62: return 114;
4226
+ case 63: return 49;
4227
+ case 64: return 63;
4228
+ case 65: return 47;
4229
+ case 66: return 9;
4230
+ case 67: return 109;
4231
+ case 68: return 118;
4232
+ case 69: return this.popState(), 80;
4233
+ case 70: return this.pushState("edgeText"), 78;
4234
+ case 71: return 122;
4235
+ case 72: return 80;
4236
+ case 73: break;
4237
+ case 74: return this.popState(), 56;
4238
+ case 75: return "TEXT";
4239
+ case 76: return this.pushState("ellipseText"), 55;
4240
+ case 77: return this.popState(), 58;
4241
+ case 78: return this.pushState("text"), 57;
4242
+ case 79: return this.popState(), 60;
4243
+ case 80: return this.pushState("text"), 59;
4244
+ case 81: return 61;
4245
+ case 82: return this.pushState("text"), 70;
4246
+ case 83: return this.popState(), 67;
4247
+ case 84: return this.pushState("text"), 66;
4248
+ case 85: return this.popState(), 52;
4249
+ case 86: return this.pushState("text"), 51;
4250
+ case 87: break;
4251
+ case 88: return this.popState(), 72;
4252
+ case 89: return this.popState(), 74;
4253
+ case 90: return 120;
4254
+ case 91: return this.pushState("trapText"), 71;
4255
+ case 92: return this.pushState("trapText"), 73;
4256
+ case 93: return 121;
4257
+ case 94: return 70;
4258
+ case 95: return 93;
4259
+ case 96: return "SEP";
4260
+ case 97: return 92;
4261
+ case 98: return 118;
4262
+ case 99: return 114;
4263
+ case 100: return 47;
4264
+ case 101: return 8;
4265
+ case 102: return 112;
4266
+ case 103: return 117;
4267
+ case 104: return 119;
4268
+ case 105: return this.popState(), 65;
4269
+ case 106: return this.pushState("text"), 65;
4270
+ case 107: return this.popState(), 54;
4271
+ case 108: return this.pushState("text"), 53;
4272
+ case 109: return this.popState(), 32;
4273
+ case 110: return this.pushState("text"), 30;
4274
+ case 111: return this.popState(), 69;
4275
+ case 112: return this.pushState("text"), 68;
4276
+ case 113: break;
4277
+ case 114: return "TEXT";
4278
+ case 115: return "QUOTE";
4279
+ case 116: return 10;
4280
+ case 117: return 11;
4281
+ case 118: return 12;
4282
+ }
4283
+ }, "anonymous"),
4284
+ rules: [
4285
+ /^(?:accTitle\s*:\s*)/,
4286
+ /^(?:(?!\n||)*[^\n]*)/,
4287
+ /^(?:accDescr\s*:\s*)/,
4288
+ /^(?:(?!\n||)*[^\n]*)/,
4289
+ /^(?:accDescr\s*\{\s*)/,
4290
+ /^(?:[\}])/,
4291
+ /^(?:[^\}]*)/,
4292
+ /^(?:@\{)/,
4293
+ /^(?:["])/,
4294
+ /^(?:["])/,
4295
+ /^(?:[^\"]+)/,
4296
+ /^(?:[^}^"]+)/,
4297
+ /^(?:\})/,
4298
+ /^(?:call[\s]+)/,
4299
+ /^(?:\([\s]*\))/,
4300
+ /^(?:\()/,
4301
+ /^(?:[^(]*)/,
4302
+ /^(?:\))/,
4303
+ /^(?:[^)]*)/,
4304
+ /^(?:[^`"]+)/,
4305
+ /^(?:[`]["])/,
4306
+ /^(?:["][`])/,
4307
+ /^(?:[^"]+)/,
4308
+ /^(?:["])/,
4309
+ /^(?:["])/,
4310
+ /^(?:style\b)/,
4311
+ /^(?:default\b)/,
4312
+ /^(?:linkStyle\b)/,
4313
+ /^(?:interpolate\b)/,
4314
+ /^(?:classDef\b)/,
4315
+ /^(?:class\b)/,
4316
+ /^(?:href[\s])/,
4317
+ /^(?:click[\s]+)/,
4318
+ /^(?:[\s\n])/,
4319
+ /^(?:[^\s\n]*)/,
4320
+ /^(?:agentflow-beta\b)/,
4321
+ /^(?:flow\b)/,
4322
+ /^(?:connector\b)/,
4323
+ /^(?:global\b[ \t]*)/,
4324
+ /^(?:end\b[ \t]*)/,
4325
+ /^(?:_self\b)/,
4326
+ /^(?:_blank\b)/,
4327
+ /^(?:_parent\b)/,
4328
+ /^(?:_top\b)/,
4329
+ /^(?:(\r?\n)*\s*\n)/,
4330
+ /^(?:\s*LR\b)/,
4331
+ /^(?:\s*RL\b)/,
4332
+ /^(?:\s*TB\b)/,
4333
+ /^(?:\s*BT\b)/,
4334
+ /^(?:\s*TD\b)/,
4335
+ /^(?:\s*BR\b)/,
4336
+ /^(?:\s*<)/,
4337
+ /^(?:\s*>)/,
4338
+ /^(?:\s*\^)/,
4339
+ /^(?:\s*v\b)/,
4340
+ /^(?:.*direction\s+TB[^\n]*)/,
4341
+ /^(?:.*direction\s+BT[^\n]*)/,
4342
+ /^(?:.*direction\s+RL[^\n]*)/,
4343
+ /^(?:.*direction\s+LR[^\n]*)/,
4344
+ /^(?:.*direction\s+TD[^\n]*)/,
4345
+ /^(?:[^\s\"]+@(?=[^\{\"]))/,
4346
+ /^(?:[0-9]+)/,
4347
+ /^(?:#)/,
4348
+ /^(?::::)/,
4349
+ /^(?::)/,
4350
+ /^(?:&)/,
4351
+ /^(?:;)/,
4352
+ /^(?:,)/,
4353
+ /^(?:\*)/,
4354
+ /^(?:\s*--+[x>]\s*)/,
4355
+ /^(?:\s*--\s*)/,
4356
+ /^(?:[^-]|-(?!-)+)/,
4357
+ /^(?:\s*-\.+-\s*)/,
4358
+ /^(?:%%(?!\{)[^\n]*)/,
4359
+ /^(?:[-/\)][\)])/,
4360
+ /^(?:[^\(\)\[\]\{\}]|!\)+)/,
4361
+ /^(?:\(-)/,
4362
+ /^(?:\]\))/,
4363
+ /^(?:\(\[)/,
4364
+ /^(?:\]\])/,
4365
+ /^(?:\[\[)/,
4366
+ /^(?:\[\|)/,
4367
+ /^(?:>)/,
4368
+ /^(?:\)\])/,
4369
+ /^(?:\[\()/,
4370
+ /^(?:\)\)\))/,
4371
+ /^(?:\(\(\()/,
4372
+ /^(?:%%(?!\{)[^\n]*)/,
4373
+ /^(?:[\\(?=\])][\]])/,
4374
+ /^(?:\/(?=\])\])/,
4375
+ /^(?:\/(?!\])|\\(?!\])|(?:[^\\\[\]\(\)\{\}\/%]+|(?!))+)/,
4376
+ /^(?:\[\/)/,
4377
+ /^(?:\[\\)/,
4378
+ /^(?:<)/,
4379
+ /^(?:>)/,
4380
+ /^(?:\^)/,
4381
+ /^(?:\\\|)/,
4382
+ /^(?:v\b)/,
4383
+ /^(?:\*)/,
4384
+ /^(?:#)/,
4385
+ /^(?:&)/,
4386
+ /^(?:[ \t]*%%(?!\{)[^\n]*)/,
4387
+ /^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,
4388
+ /^(?:-)/,
4389
+ /^(?:[\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])/,
4390
+ /^(?:\|)/,
4391
+ /^(?:\|)/,
4392
+ /^(?:\))/,
4393
+ /^(?:\()/,
4394
+ /^(?:\])/,
4395
+ /^(?:\[)/,
4396
+ /^(?:(\}))/,
4397
+ /^(?:\{)/,
4398
+ /^(?:%%(?!\{)[^\n]*)/,
4399
+ /^(?:(?:[^\[\]\(\)\{\}\|\"%]+|(?!))+)/,
4400
+ /^(?:")/,
4401
+ /^(?:(\r?\n)+)/,
4402
+ /^(?:\s)/,
4403
+ /^(?:$)/
4404
+ ],
4405
+ conditions: {
4406
+ shapeDataEndBracket: {
4407
+ rules: [
4408
+ 21,
4409
+ 24,
4410
+ 76,
4411
+ 78,
4412
+ 80,
4413
+ 84,
4414
+ 86,
4415
+ 91,
4416
+ 92,
4417
+ 106,
4418
+ 108,
4419
+ 110,
4420
+ 112
4421
+ ],
4422
+ inclusive: !1
4423
+ },
4424
+ shapeDataStr: {
4425
+ rules: [
4426
+ 9,
4427
+ 10,
4428
+ 21,
4429
+ 24,
4430
+ 76,
4431
+ 78,
4432
+ 80,
4433
+ 84,
4434
+ 86,
4435
+ 91,
4436
+ 92,
4437
+ 106,
4438
+ 108,
4439
+ 110,
4440
+ 112
4441
+ ],
4442
+ inclusive: !1
4443
+ },
4444
+ shapeData: {
4445
+ rules: [
4446
+ 8,
4447
+ 11,
4448
+ 12,
4449
+ 21,
4450
+ 24,
4451
+ 76,
4452
+ 78,
4453
+ 80,
4454
+ 84,
4455
+ 86,
4456
+ 91,
4457
+ 92,
4458
+ 106,
4459
+ 108,
4460
+ 110,
4461
+ 112
4462
+ ],
4463
+ inclusive: !1
4464
+ },
4465
+ callbackargs: {
4466
+ rules: [
4467
+ 17,
4468
+ 18,
4469
+ 21,
4470
+ 24,
4471
+ 76,
4472
+ 78,
4473
+ 80,
4474
+ 84,
4475
+ 86,
4476
+ 91,
4477
+ 92,
4478
+ 106,
4479
+ 108,
4480
+ 110,
4481
+ 112
4482
+ ],
4483
+ inclusive: !1
4484
+ },
4485
+ callbackname: {
4486
+ rules: [
4487
+ 14,
4488
+ 15,
4489
+ 16,
4490
+ 21,
4491
+ 24,
4492
+ 76,
4493
+ 78,
4494
+ 80,
4495
+ 84,
4496
+ 86,
4497
+ 91,
4498
+ 92,
4499
+ 106,
4500
+ 108,
4501
+ 110,
4502
+ 112
4503
+ ],
4504
+ inclusive: !1
4505
+ },
4506
+ href: {
4507
+ rules: [
4508
+ 21,
4509
+ 24,
4510
+ 76,
4511
+ 78,
4512
+ 80,
4513
+ 84,
4514
+ 86,
4515
+ 91,
4516
+ 92,
4517
+ 106,
4518
+ 108,
4519
+ 110,
4520
+ 112
4521
+ ],
4522
+ inclusive: !1
4523
+ },
4524
+ click: {
4525
+ rules: [
4526
+ 21,
4527
+ 24,
4528
+ 33,
4529
+ 34,
4530
+ 76,
4531
+ 78,
4532
+ 80,
4533
+ 84,
4534
+ 86,
4535
+ 91,
4536
+ 92,
4537
+ 106,
4538
+ 108,
4539
+ 110,
4540
+ 112
4541
+ ],
4542
+ inclusive: !1
4543
+ },
4544
+ edgeText: {
4545
+ rules: [
4546
+ 21,
4547
+ 24,
4548
+ 69,
4549
+ 71,
4550
+ 76,
4551
+ 78,
4552
+ 80,
4553
+ 84,
4554
+ 86,
4555
+ 91,
4556
+ 92,
4557
+ 106,
4558
+ 108,
4559
+ 110,
4560
+ 112
4561
+ ],
4562
+ inclusive: !1
4563
+ },
4564
+ trapText: {
4565
+ rules: [
4566
+ 21,
4567
+ 24,
4568
+ 76,
4569
+ 78,
4570
+ 80,
4571
+ 84,
4572
+ 86,
4573
+ 87,
4574
+ 88,
4575
+ 89,
4576
+ 90,
4577
+ 91,
4578
+ 92,
4579
+ 106,
4580
+ 108,
4581
+ 110,
4582
+ 112
4583
+ ],
4584
+ inclusive: !1
4585
+ },
4586
+ ellipseText: {
4587
+ rules: [
4588
+ 21,
4589
+ 24,
4590
+ 73,
4591
+ 74,
4592
+ 75,
4593
+ 76,
4594
+ 78,
4595
+ 80,
4596
+ 84,
4597
+ 86,
4598
+ 91,
4599
+ 92,
4600
+ 106,
4601
+ 108,
4602
+ 110,
4603
+ 112
4604
+ ],
4605
+ inclusive: !1
4606
+ },
4607
+ text: {
4608
+ rules: [
4609
+ 21,
4610
+ 24,
4611
+ 76,
4612
+ 77,
4613
+ 78,
4614
+ 79,
4615
+ 80,
4616
+ 83,
4617
+ 84,
4618
+ 85,
4619
+ 86,
4620
+ 91,
4621
+ 92,
4622
+ 105,
4623
+ 106,
4624
+ 107,
4625
+ 108,
4626
+ 109,
4627
+ 110,
4628
+ 111,
4629
+ 112,
4630
+ 113,
4631
+ 114
4632
+ ],
4633
+ inclusive: !1
4634
+ },
4635
+ vertex: {
4636
+ rules: [
4637
+ 21,
4638
+ 24,
4639
+ 76,
4640
+ 78,
4641
+ 80,
4642
+ 84,
4643
+ 86,
4644
+ 91,
4645
+ 92,
4646
+ 106,
4647
+ 108,
4648
+ 110,
4649
+ 112
4650
+ ],
4651
+ inclusive: !1
4652
+ },
4653
+ dir: {
4654
+ rules: [
4655
+ 21,
4656
+ 24,
4657
+ 44,
4658
+ 45,
4659
+ 46,
4660
+ 47,
4661
+ 48,
4662
+ 49,
4663
+ 50,
4664
+ 51,
4665
+ 52,
4666
+ 53,
4667
+ 54,
4668
+ 76,
4669
+ 78,
4670
+ 80,
4671
+ 84,
4672
+ 86,
4673
+ 91,
4674
+ 92,
4675
+ 106,
4676
+ 108,
4677
+ 110,
4678
+ 112
4679
+ ],
4680
+ inclusive: !1
4681
+ },
4682
+ acc_descr_multiline: {
4683
+ rules: [
4684
+ 5,
4685
+ 6,
4686
+ 21,
4687
+ 24,
4688
+ 76,
4689
+ 78,
4690
+ 80,
4691
+ 84,
4692
+ 86,
4693
+ 91,
4694
+ 92,
4695
+ 106,
4696
+ 108,
4697
+ 110,
4698
+ 112
4699
+ ],
4700
+ inclusive: !1
4701
+ },
4702
+ acc_descr: {
4703
+ rules: [
4704
+ 3,
4705
+ 21,
4706
+ 24,
4707
+ 76,
4708
+ 78,
4709
+ 80,
4710
+ 84,
4711
+ 86,
4712
+ 91,
4713
+ 92,
4714
+ 106,
4715
+ 108,
4716
+ 110,
4717
+ 112
4718
+ ],
4719
+ inclusive: !1
4720
+ },
4721
+ acc_title: {
4722
+ rules: [
4723
+ 1,
4724
+ 21,
4725
+ 24,
4726
+ 76,
4727
+ 78,
4728
+ 80,
4729
+ 84,
4730
+ 86,
4731
+ 91,
4732
+ 92,
4733
+ 106,
4734
+ 108,
4735
+ 110,
4736
+ 112
4737
+ ],
4738
+ inclusive: !1
4739
+ },
4740
+ md_string: {
4741
+ rules: [
4742
+ 19,
4743
+ 20,
4744
+ 21,
4745
+ 24,
4746
+ 76,
4747
+ 78,
4748
+ 80,
4749
+ 84,
4750
+ 86,
4751
+ 91,
4752
+ 92,
4753
+ 106,
4754
+ 108,
4755
+ 110,
4756
+ 112
4757
+ ],
4758
+ inclusive: !1
4759
+ },
4760
+ string: {
4761
+ rules: [
4762
+ 21,
4763
+ 22,
4764
+ 23,
4765
+ 24,
4766
+ 76,
4767
+ 78,
4768
+ 80,
4769
+ 84,
4770
+ 86,
4771
+ 91,
4772
+ 92,
4773
+ 106,
4774
+ 108,
4775
+ 110,
4776
+ 112
4777
+ ],
4778
+ inclusive: !1
4779
+ },
4780
+ INITIAL: {
4781
+ rules: [
4782
+ 0,
4783
+ 2,
4784
+ 4,
4785
+ 7,
4786
+ 13,
4787
+ 21,
4788
+ 24,
4789
+ 25,
4790
+ 26,
4791
+ 27,
4792
+ 28,
4793
+ 29,
4794
+ 30,
4795
+ 31,
4796
+ 32,
4797
+ 35,
4798
+ 36,
4799
+ 37,
4800
+ 38,
4801
+ 39,
4802
+ 40,
4803
+ 41,
4804
+ 42,
4805
+ 43,
4806
+ 55,
4807
+ 56,
4808
+ 57,
4809
+ 58,
4810
+ 59,
4811
+ 60,
4812
+ 61,
4813
+ 62,
4814
+ 63,
4815
+ 64,
4816
+ 65,
4817
+ 66,
4818
+ 67,
4819
+ 68,
4820
+ 69,
4821
+ 70,
4822
+ 72,
4823
+ 76,
4824
+ 78,
4825
+ 80,
4826
+ 81,
4827
+ 82,
4828
+ 84,
4829
+ 86,
4830
+ 91,
4831
+ 92,
4832
+ 93,
4833
+ 94,
4834
+ 95,
4835
+ 96,
4836
+ 97,
4837
+ 98,
4838
+ 99,
4839
+ 100,
4840
+ 101,
4841
+ 102,
4842
+ 103,
4843
+ 104,
4844
+ 106,
4845
+ 108,
4846
+ 110,
4847
+ 112,
4848
+ 115,
4849
+ 116,
4850
+ 117,
4851
+ 118
4852
+ ],
4853
+ inclusive: !0
4854
+ }
4855
+ }
4856
+ };
4857
+ })();
4858
+ function pt() {
4859
+ this.yy = {};
4860
+ }
4861
+ return n(pt, "Parser"), pt.prototype = ft, ft.Parser = pt, new pt();
4862
+ })();
4863
+ fe.parser = fe;
4864
+ var pe = fe, me = Object.assign({}, pe);
4865
+ me.parse = (e) => {
4866
+ let t = e.replace(/}[^\S\n]*\n/g, "}\n");
4867
+ return pe.parse(t);
4868
+ };
4869
+ var he = me, ge = /* @__PURE__ */ n((e) => {
4870
+ let { theme: t, bkgColorArray: r, borderColorArray: i } = e;
4871
+ if (!x(t, i)) return "";
4872
+ let a = C(e.look), o = w(r), s = S(e.THEME_COLOR_LIMIT, i), c = /* @__PURE__ */ n((e) => i[e % i.length], "border"), l = /* @__PURE__ */ n((e) => o ? `fill: ${r[e % r.length]};` : "", "fill"), u = "";
4873
+ for (let e of B) {
4874
+ let t = L.get(e), n = `[data-look="${a}"].node.${z(e)}`;
4875
+ u += `
4876
+
4877
+ ${n} rect,
4878
+ ${n} path,
4879
+ ${n} polygon {
4880
+ stroke: ${c(t)};
4881
+ ${l(t)}
4882
+ }
4883
+ `;
4884
+ }
4885
+ for (let e = 0; e < V(s); e++) {
4886
+ let t = H(e, s), r = `[data-look="${a}"][data-color-id="color-${t}"].cluster`, i = `[data-look="${a}"][data-color-id="color-${t}"].node`, o = /* @__PURE__ */ n((e) => `${r} ${e}, ${i} ${e}`, "rule");
4887
+ u += `
4888
+
4889
+ ${o("rect")},
4890
+ ${o("path")} {
4891
+ stroke: ${c(t)};
4892
+ ${l(t)}
4893
+ }
4894
+ `;
4895
+ }
4896
+ return u;
4897
+ }, "genColor"), U = /* @__PURE__ */ n((e, t) => {
4898
+ let n = g, r = n(e, "r"), i = n(e, "g"), a = n(e, "b");
4899
+ return l(r, i, a, t);
4900
+ }, "fade"), W = {
4901
+ parser: he,
4902
+ get db() {
4903
+ return new ue();
4904
+ },
4905
+ renderer: de,
4906
+ styles: /* @__PURE__ */ n((e) => `${ge(e)}
4907
+ .label {
4908
+ font-family: ${e.fontFamily};
4909
+ color: ${e.nodeTextColor || e.textColor};
4910
+ }
4911
+ .cluster-label text {
4912
+ fill: ${e.titleColor};
4913
+ }
4914
+ .cluster-label span {
4915
+ color: ${e.titleColor};
4916
+ }
4917
+ .cluster-label span p {
4918
+ background-color: transparent;
4919
+ }
4920
+
4921
+ .label text,span {
4922
+ fill: ${e.nodeTextColor || e.textColor};
4923
+ color: ${e.nodeTextColor || e.textColor};
4924
+ }
4925
+
4926
+ .node rect,
4927
+ .node circle,
4928
+ .node ellipse,
4929
+ .node polygon,
4930
+ .node path {
4931
+ fill: ${e.mainBkg};
4932
+ stroke: ${e.nodeBorder};
4933
+ stroke-width: ${e.strokeWidth ?? 1}px;
4934
+ }
4935
+ .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
4936
+ text-anchor: middle;
4937
+ }
4938
+ .node .katex path {
4939
+ fill: ${e.nodeTextColor || e.textColor};
4940
+ stroke: ${e.nodeTextColor || e.textColor};
4941
+ stroke-width: 1px;
4942
+ }
4943
+
4944
+ .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
4945
+ text-align: center;
4946
+ }
4947
+ .node.clickable {
4948
+ cursor: pointer;
4949
+ }
4950
+
4951
+
4952
+ .root .anchor path {
4953
+ fill: ${e.lineColor} !important;
4954
+ stroke-width: 0;
4955
+ stroke: ${e.lineColor};
4956
+ }
4957
+
4958
+ .arrowheadPath {
4959
+ fill: ${e.arrowheadColor};
4960
+ }
4961
+
4962
+ .edgePaths .path {
4963
+ stroke: ${e.lineColor};
4964
+ stroke-width: ${e.strokeWidth ?? 2}px;
4965
+ }
4966
+
4967
+ .flowchart-link {
4968
+ stroke: ${e.lineColor};
4969
+ fill: none;
4970
+ }
4971
+
4972
+ .edgeLabel {
4973
+ background-color: ${e.edgeLabelBackground};
4974
+ p {
4975
+ background-color: ${e.edgeLabelBackground};
4976
+ }
4977
+ rect {
4978
+ opacity: 0.5;
4979
+ background-color: ${e.edgeLabelBackground};
4980
+ fill: ${e.edgeLabelBackground};
4981
+ }
4982
+ text-align: center;
4983
+ }
4984
+
4985
+ /* For html labels only */
4986
+ .labelBkg {
4987
+ background-color: ${U(e.edgeLabelBackground, .5)};
4988
+ }
4989
+
4990
+ .cluster rect {
4991
+ fill: ${e.clusterBkg};
4992
+ stroke: ${e.clusterBorder};
4993
+ stroke-width: 1px;
4994
+ }
4995
+
4996
+ .flow-cluster rect {
4997
+ fill: none;
4998
+ stroke: ${e.clusterBorder};
4999
+ stroke-width: 0.75px;
5000
+ }
5001
+
5002
+ .node .collapsed-indicator {
5003
+ fill: ${e.nodeBorder};
5004
+ stroke: none;
5005
+ stroke-width: 0;
5006
+ opacity: 0.5;
5007
+ }
5008
+
5009
+ .node .collapsed-separator {
5010
+ stroke-width: 0.75px;
5011
+ }
5012
+
5013
+ .cluster text {
5014
+ fill: ${e.titleColor};
5015
+ }
5016
+
5017
+ .cluster span {
5018
+ color: ${e.titleColor};
5019
+ }
5020
+ /* .cluster div {
5021
+ color: ${e.titleColor};
5022
+ } */
5023
+
5024
+ div.mermaidTooltip {
5025
+ position: absolute;
5026
+ text-align: center;
5027
+ max-width: 200px;
5028
+ padding: 2px;
5029
+ font-family: ${e.fontFamily};
5030
+ font-size: 12px;
5031
+ background: ${e.tertiaryColor};
5032
+ border: 1px solid ${e.border2};
5033
+ border-radius: 2px;
5034
+ pointer-events: none;
5035
+ z-index: 100;
5036
+ }
5037
+
5038
+ .agentflowTitleText {
5039
+ text-anchor: middle;
5040
+ font-size: 18px;
5041
+ fill: ${e.textColor};
5042
+ }
5043
+
5044
+ rect.text {
5045
+ fill: none;
5046
+ stroke-width: 0;
5047
+ }
5048
+
5049
+ .icon-shape, .image-shape {
5050
+ background-color: ${e.edgeLabelBackground};
5051
+ p {
5052
+ background-color: ${e.edgeLabelBackground};
5053
+ padding: 2px;
5054
+ }
5055
+ .label rect {
5056
+ opacity: 0.5;
5057
+ background-color: ${e.edgeLabelBackground};
5058
+ fill: ${e.edgeLabelBackground};
5059
+ }
5060
+ text-align: center;
5061
+ }
5062
+ ${O()}
5063
+ `, "getStyles"),
5064
+ init: /* @__PURE__ */ n((e) => {
5065
+ e.agentflow ??= {}, e.layout && i({ layout: e.layout }), e.flowchart ??= {}, e.flowchart.arrowMarkerAbsolute = e.arrowMarkerAbsolute, i({ flowchart: { arrowMarkerAbsolute: e.arrowMarkerAbsolute } });
5066
+ }, "init")
5067
+ };
5068
+ //#endregion
5069
+ export { W as diagram };