@omg-dev/app 0.5.1 → 0.6.2

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