@fibery/custom-app-text-editor 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/LICENSE +214 -0
  2. package/README.md +33 -0
  3. package/lib/abnfDiagram-VRR7QNED-BgjOQqEh.js +89 -0
  4. package/lib/arc-Dp0rqagO.js +82 -0
  5. package/lib/architecture-TIHT7OUA-DDwCCw0y.js +3 -0
  6. package/lib/architectureDiagram-ZJ3FMSHR-BucIluTN.js +4129 -0
  7. package/lib/array-CApNbSU9.js +6 -0
  8. package/lib/blockDiagram-677ZJIJ3-CWYuHThP.js +3157 -0
  9. package/lib/c4Diagram-LMCZKHZV-Cr3_W-xe.js +2982 -0
  10. package/lib/channel-Bb7a6w5c.js +5 -0
  11. package/lib/chunk-2Q5K7J3B-CINvUK-A.js +15 -0
  12. package/lib/chunk-32BRIVSS-b-BvyGz0.js +61 -0
  13. package/lib/chunk-52WLFC77-Cf8zEoqs.js +593 -0
  14. package/lib/chunk-5VM5RSS4-Dnx15xMv.js +5 -0
  15. package/lib/chunk-7BUUIJ7U-B018BbRy.js +82 -0
  16. package/lib/chunk-C7G6YPKG-CmOuVFlJ.js +67 -0
  17. package/lib/chunk-EX3LRPZG-LynZw14I.js +2042 -0
  18. package/lib/chunk-HOUHSVGY-Br7ZSMKe.js +275 -0
  19. package/lib/chunk-ICXQ74PX-VqT5WUTt.js +1330 -0
  20. package/lib/chunk-JWPE2WC7-Ch0jmUXM.js +8 -0
  21. package/lib/chunk-KEIR6QF5-RwFi50en.js +21456 -0
  22. package/lib/chunk-MOJQB5TN-rQ4AfTd9.js +490 -0
  23. package/lib/chunk-OGEWGWER-BvF6eV9Q.js +32 -0
  24. package/lib/chunk-PUDLZKDR-BW7SZvCB.js +4135 -0
  25. package/lib/chunk-Q4XR5HBZ-CRgGP3ez.js +1635 -0
  26. package/lib/chunk-RYQCIY6F-CHlASUpG.js +241 -0
  27. package/lib/chunk-V7JOEXUC-OY39ml6X.js +3357 -0
  28. package/lib/chunk-VR4S4FIN-Bk7IFdYB.js +26 -0
  29. package/lib/chunk-WYO6CB5R-MV-yOaop.js +3769 -0
  30. package/lib/chunk-XXDRQBXY-Djd1ChwJ.js +9 -0
  31. package/lib/chunk-Y2CYZVJY-QdJ4V9rh.js +12 -0
  32. package/lib/chunk-ZGVPDNZ5-l81xl1BI.js +3738 -0
  33. package/lib/classDiagram-OUVF2IWQ--wRzSvLt.js +30 -0
  34. package/lib/classDiagram-v2-EOCWNBFH-ChMCdPO-.js +30 -0
  35. package/lib/cose-bilkent-JH36ORCC-CyVZn5M3.js +2254 -0
  36. package/lib/custom-app-text-editor.css +2 -0
  37. package/lib/custom-app-text-editor.js +81102 -0
  38. package/lib/cynefin-VYW2F7L2-CMgnLl46.js +3 -0
  39. package/lib/cynefinDiagram-TSTJHNR4-988Y73wV.js +355 -0
  40. package/lib/cytoscape.esm-DMXbtFI-.js +18145 -0
  41. package/lib/dagre-Dmarb1s8.js +1699 -0
  42. package/lib/dagre-VKFMJZFB-Bf-pz2Lx.js +328 -0
  43. package/lib/defaultLocale-A87O3snN.js +198 -0
  44. package/lib/diagram-FQU43EPY-BT8WeVzc.js +432 -0
  45. package/lib/diagram-G47NLZAW-vZ2XG37l.js +527 -0
  46. package/lib/diagram-NH7WQ7WH-CH0IfHB0.js +134 -0
  47. package/lib/diagram-OA4YK3LP-BgwQcJfp.js +300 -0
  48. package/lib/diagram-WEI45ONY-Cd3sVPil.js +214 -0
  49. package/lib/dist-PGS6ynRO.js +59 -0
  50. package/lib/ebnfDiagram-CCIWWBDH-CwBFb2Fm.js +100 -0
  51. package/lib/erDiagram-Q63AITRT-BshRACvj.js +1727 -0
  52. package/lib/eventmodeling-45OFAUF4-BDhzj03B.js +3 -0
  53. package/lib/flowDiagram-23GEKE2U-C3zDgFvZ.js +16 -0
  54. package/lib/ganttDiagram-NO4QXBWP-BD5PiE8x.js +3073 -0
  55. package/lib/gitGraph-TEB2WS4Q-DJA_hE4G.js +3 -0
  56. package/lib/gitGraphDiagram-IHSO6WYX-BAhccBh3.js +733 -0
  57. package/lib/graphlib-DglfpsVp.js +1267 -0
  58. package/lib/index.browser-Dv9K8IAp.js +26 -0
  59. package/lib/info-DKCQHKI2-BD_vOCz6.js +3 -0
  60. package/lib/infoDiagram-FWYZ7A6U-CGZnf03G.js +20 -0
  61. package/lib/init-sjaVZO3f.js +13 -0
  62. package/lib/ishikawaDiagram-FXEZZL3T-PFfVM0NO.js +719 -0
  63. package/lib/journeyDiagram-5HDEW3XC-CRGz7dcx.js +884 -0
  64. package/lib/kanban-definition-HUTT4EX6-BBH4Yn5e.js +974 -0
  65. package/lib/line-CJQicKfr.js +34 -0
  66. package/lib/linear-B9Cv96-J.js +288 -0
  67. package/lib/map-C7KALUOH.js +241 -0
  68. package/lib/mermaid-parser.core-BupC9XGF.js +638 -0
  69. package/lib/mermaid-renderer-Cp0xusfR.js +2425 -0
  70. package/lib/mindmap-definition-LN4V7U3C-CWL1sg0K.js +978 -0
  71. package/lib/ordinal-CNQzPcrr.js +65 -0
  72. package/lib/packet-7NZHBO7P-CgBlALV1.js +3 -0
  73. package/lib/path-DVvH25eQ.js +84 -0
  74. package/lib/pegDiagram-2B236MQR-BKv8dTtv.js +94 -0
  75. package/lib/pie-RZYD4A2V-CryPC-P_.js +3 -0
  76. package/lib/pieDiagram-ENE6RG2P-CXeFg_cL.js +203 -0
  77. package/lib/quadrantDiagram-ABIIQ3AL-v_u3aC8Y.js +2001 -0
  78. package/lib/radar-I7S5WNFK-DgzJDRy3.js +3 -0
  79. package/lib/railroad-3IZDKUUU-DFp3mbpB.js +3 -0
  80. package/lib/railroad-abnf-AHOZXSZD-BRjidKH0.js +3 -0
  81. package/lib/railroad-ebnf-EBAXGLYW-PgrDWact.js +3 -0
  82. package/lib/railroad-peg-LSFZ7HO6-CMKir81Y.js +3 -0
  83. package/lib/railroadDiagram-RFXS5EU6-mEC9tVS-.js +76 -0
  84. package/lib/requirementDiagram-TGXJPOKE-BAEzI7V4.js +2223 -0
  85. package/lib/rolldown-runtime-DArdT4gl.js +23 -0
  86. package/lib/rough.esm-B2w_aYoc.js +1361 -0
  87. package/lib/sankeyDiagram-HTMAVEWB-Dbu-sl2E.js +972 -0
  88. package/lib/sequenceDiagram-DBY2YBRQ-DCuWmWHX.js +4156 -0
  89. package/lib/sizeCapture-X5ZJPWSS-BEIM84He.js +46 -0
  90. package/lib/src-DQbL46sB.js +2139 -0
  91. package/lib/src-DuuHKEe6.js +704 -0
  92. package/lib/stateDiagram-2N3HPSRC-fs9QmDMR.js +220 -0
  93. package/lib/stateDiagram-v2-6OUMAXLB-wWxYbttN.js +30 -0
  94. package/lib/swimlanes-5IMT3BWC-QaXUd9db.js +5069 -0
  95. package/lib/swimlanesDiagram-G3AALYLV-BtGToCzH.js +30 -0
  96. package/lib/timeline-definition-FHXFAJF6-CAsyJrsw.js +1069 -0
  97. package/lib/treeView-QDETBFTQ-DVp4aTZQ.js +3 -0
  98. package/lib/treemap-6X3UGDF4-BbBnHMHJ.js +3 -0
  99. package/lib/types.d.ts +44 -0
  100. package/lib/v4-CZv9Hsqq.js +33 -0
  101. package/lib/vennDiagram-L72KCM5P-C87u0gjr.js +1880 -0
  102. package/lib/wardley-OPB4EBWU-B-RXhnoN.js +3 -0
  103. package/lib/wardleyDiagram-EHGQE667-BxviBDl_.js +645 -0
  104. package/lib/xychartDiagram-FW5EYKEG-BQQhanuH.js +2098 -0
  105. package/package.json +29 -0
@@ -0,0 +1,593 @@
1
+ import { n as e } from "./chunk-Y2CYZVJY-QdJ4V9rh.js";
2
+ import { m as t, p as n } from "./src-DQbL46sB.js";
3
+ import { T as r, b as i, x as a } from "./chunk-WYO6CB5R-MV-yOaop.js";
4
+ import { $ as o, J as s, K as c, Q as l, X as u, Y as d, Z as f, et as p, g as m, nt as h, q as g, rt as _, tt as v, u as y } from "./chunk-ICXQ74PX-VqT5WUTt.js";
5
+ import { t as b } from "./line-CJQicKfr.js";
6
+ import { n as x } from "./chunk-Q4XR5HBZ-CRgGP3ez.js";
7
+ import { i as S, n as ee, r as C, t as w } from "./chunk-7BUUIJ7U-B018BbRy.js";
8
+ import { n as T } from "./chunk-OGEWGWER-BvF6eV9Q.js";
9
+ import { i as E, n as D } from "./chunk-C7G6YPKG-CmOuVFlJ.js";
10
+ import { t as te } from "./rough.esm-B2w_aYoc.js";
11
+ import { r as O } from "./chunk-ZGVPDNZ5-l81xl1BI.js";
12
+ //#region ../../node_modules/.pnpm/mermaid@11.16.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-52WLFC77.mjs
13
+ var ne = /* @__PURE__ */ e((e, t, n, r, i, a = !1, o) => {
14
+ t.arrowTypeStart && j(e, "start", t.arrowTypeStart, n, r, i, a, o), t.arrowTypeEnd && j(e, "end", t.arrowTypeEnd, n, r, i, a, o);
15
+ }, "addEdgeMarkers"), k = {
16
+ arrow_cross: {
17
+ type: "cross",
18
+ fill: !1
19
+ },
20
+ arrow_point: {
21
+ type: "point",
22
+ fill: !0
23
+ },
24
+ arrow_barb: {
25
+ type: "barb",
26
+ fill: !0
27
+ },
28
+ arrow_barb_neo: {
29
+ type: "barb",
30
+ fill: !0
31
+ },
32
+ arrow_circle: {
33
+ type: "circle",
34
+ fill: !1
35
+ },
36
+ aggregation: {
37
+ type: "aggregation",
38
+ fill: !1
39
+ },
40
+ extension: {
41
+ type: "extension",
42
+ fill: !1
43
+ },
44
+ composition: {
45
+ type: "composition",
46
+ fill: !0
47
+ },
48
+ dependency: {
49
+ type: "dependency",
50
+ fill: !0
51
+ },
52
+ lollipop: {
53
+ type: "lollipop",
54
+ fill: !1
55
+ },
56
+ only_one: {
57
+ type: "onlyOne",
58
+ fill: !1
59
+ },
60
+ zero_or_one: {
61
+ type: "zeroOrOne",
62
+ fill: !1
63
+ },
64
+ one_or_more: {
65
+ type: "oneOrMore",
66
+ fill: !1
67
+ },
68
+ zero_or_more: {
69
+ type: "zeroOrMore",
70
+ fill: !1
71
+ },
72
+ requirement_arrow: {
73
+ type: "requirement_arrow",
74
+ fill: !1
75
+ },
76
+ requirement_contains: {
77
+ type: "requirement_contains",
78
+ fill: !1
79
+ }
80
+ }, A = [
81
+ "cross",
82
+ "point",
83
+ "circle",
84
+ "lollipop",
85
+ "aggregation",
86
+ "extension",
87
+ "composition",
88
+ "dependency",
89
+ "barb"
90
+ ], j = /* @__PURE__ */ e((e, n, r, i, a, o, s = !1, c) => {
91
+ let l = k[r], u = l && A.includes(l.type);
92
+ if (!l) {
93
+ t.warn(`Unknown arrow type: ${r}`);
94
+ return;
95
+ }
96
+ let d = `${a}_${o}-${l.type}${n === "start" ? "Start" : "End"}${s && u ? "-margin" : ""}`;
97
+ if (c && c.trim() !== "") {
98
+ let t = `${d}_${c.replace(/[^\dA-Za-z]/g, "_")}`;
99
+ if (!document.getElementById(t)) {
100
+ let e = document.getElementById(d);
101
+ if (e) {
102
+ let n = e.cloneNode(!0);
103
+ n.id = t, n.querySelectorAll("path, circle, line").forEach((e) => {
104
+ e.setAttribute("stroke", c), l.fill && e.setAttribute("fill", c);
105
+ }), e.parentNode?.appendChild(n);
106
+ }
107
+ }
108
+ e.attr(`marker-${n}`, `url(${i}#${t})`);
109
+ } else e.attr(`marker-${n}`, `url(${i}#${d})`);
110
+ }, "addEdgeMarker"), re = /* @__PURE__ */ e((e) => typeof e == "string" ? e : a()?.flowchart?.curve, "resolveEdgeCurveType"), M = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ e(() => {
111
+ M.clear(), N.clear();
112
+ }, "clear"), F = /* @__PURE__ */ e((e) => e ? typeof e == "string" ? e : e.reduce((e, t) => e + ";" + t, "") : "", "getLabelStyles"), I = /* @__PURE__ */ e(async (e, i) => {
113
+ let o = a(), s = r(o), { labelStyles: c } = E(i);
114
+ i.labelStyle = c;
115
+ let l = e.insert("g").attr("class", "edgeLabel"), u = l.insert("g").attr("class", "label").attr("data-id", i.id), d = i.labelType === "markdown", f = await x(e, i.label, {
116
+ style: F(i.labelStyle),
117
+ useHtmlLabels: s,
118
+ addSvgBackground: !0,
119
+ isNode: !1,
120
+ markdown: d,
121
+ width: void 0
122
+ }, o);
123
+ u.node().appendChild(f), t.info("abc82", i, i.labelType);
124
+ let p = f.getBBox(), m = p;
125
+ if (s) {
126
+ let e = f.children[0], t = n(f);
127
+ p = e.getBoundingClientRect(), m = p, t.attr("width", p.width), t.attr("height", p.height);
128
+ } else {
129
+ let e = n(f).select("text").node();
130
+ e && typeof e.getBBox == "function" && (m = e.getBBox());
131
+ }
132
+ u.attr("transform", w(m, s)), M.set(i.id, l), i.width = p.width, i.height = p.height;
133
+ let h;
134
+ if (i.startLabelLeft) {
135
+ let t = e.insert("g").attr("class", "edgeTerminals"), r = t.insert("g").attr("class", "inner"), a = await O(r, i.startLabelLeft, F(i.labelStyle) || "", !1, !1);
136
+ h = a;
137
+ let o = a.getBBox();
138
+ if (s) {
139
+ let e = a.children[0], t = n(a);
140
+ o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
141
+ }
142
+ r.attr("transform", w(o, s)), N.get(i.id) || N.set(i.id, {}), N.get(i.id).startLeft = t, L(h, i.startLabelLeft);
143
+ }
144
+ if (i.startLabelRight) {
145
+ let t = e.insert("g").attr("class", "edgeTerminals"), r = t.insert("g").attr("class", "inner"), a = await O(r, i.startLabelRight, F(i.labelStyle) || "", !1, !1);
146
+ h = a;
147
+ let o = a.getBBox();
148
+ if (s) {
149
+ let e = a.children[0], t = n(a);
150
+ o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
151
+ }
152
+ r.attr("transform", w(o, s)), N.get(i.id) || N.set(i.id, {}), N.get(i.id).startRight = t, L(h, i.startLabelRight);
153
+ }
154
+ if (i.endLabelLeft) {
155
+ let t = e.insert("g").attr("class", "edgeTerminals"), r = t.insert("g").attr("class", "inner"), a = await O(t, i.endLabelLeft, F(i.labelStyle) || "", !1, !1);
156
+ h = a;
157
+ let o = a.getBBox();
158
+ if (s) {
159
+ let e = a.children[0], t = n(a);
160
+ o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
161
+ }
162
+ r.attr("transform", w(o, s)), N.get(i.id) || N.set(i.id, {}), N.get(i.id).endLeft = t, L(h, i.endLabelLeft);
163
+ }
164
+ if (i.endLabelRight) {
165
+ let t = e.insert("g").attr("class", "edgeTerminals"), r = t.insert("g").attr("class", "inner"), a = await O(t, i.endLabelRight, F(i.labelStyle) || "", !1, !1);
166
+ h = a;
167
+ let o = a.getBBox();
168
+ if (s) {
169
+ let e = a.children[0], t = n(a);
170
+ o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
171
+ }
172
+ r.attr("transform", w(o, s)), N.get(i.id) || N.set(i.id, {}), N.get(i.id).endRight = t, L(h, i.endLabelRight);
173
+ }
174
+ return f;
175
+ }, "insertEdgeLabel");
176
+ function L(e, t) {
177
+ r(a()) && e && (e.style.width = t.length * 9 + "px", e.style.height = "12px");
178
+ }
179
+ e(L, "setTerminalWidth");
180
+ var R = /* @__PURE__ */ e((e, n) => {
181
+ t.debug("Moving label abc88 ", e.id, e.label, M.get(e.id), n);
182
+ let r = n.updatedPath ? n.updatedPath : n.originalPath, i = a(), { subGraphTitleTotalMargin: o } = T(i);
183
+ if (e.label) {
184
+ let i = M.get(e.id), a = e.x, s = e.y;
185
+ if (r) {
186
+ let i = m.calcLabelPosition(r);
187
+ t.debug("Moving label " + e.label + " from (", a, ",", s, ") to (", i.x, ",", i.y, ") abc88"), n.updatedPath && (a = i.x, s = i.y);
188
+ }
189
+ i.attr("transform", `translate(${a}, ${s + o / 2})`);
190
+ }
191
+ if (e.startLabelLeft) {
192
+ let t = N.get(e.id).startLeft, n = e.x, i = e.y;
193
+ if (r) {
194
+ let t = m.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", r);
195
+ n = t.x, i = t.y;
196
+ }
197
+ t.attr("transform", `translate(${n}, ${i})`);
198
+ }
199
+ if (e.startLabelRight) {
200
+ let t = N.get(e.id).startRight, n = e.x, i = e.y;
201
+ if (r) {
202
+ let t = m.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_right", r);
203
+ n = t.x, i = t.y;
204
+ }
205
+ t.attr("transform", `translate(${n}, ${i})`);
206
+ }
207
+ if (e.endLabelLeft) {
208
+ let t = N.get(e.id).endLeft, n = e.x, i = e.y;
209
+ if (r) {
210
+ let t = m.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", r);
211
+ n = t.x, i = t.y;
212
+ }
213
+ t.attr("transform", `translate(${n}, ${i})`);
214
+ }
215
+ if (e.endLabelRight) {
216
+ let t = N.get(e.id).endRight, n = e.x, i = e.y;
217
+ if (r) {
218
+ let t = m.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", r);
219
+ n = t.x, i = t.y;
220
+ }
221
+ t.attr("transform", `translate(${n}, ${i})`);
222
+ }
223
+ }, "positionEdgeLabel"), ie = /* @__PURE__ */ e((e, t) => {
224
+ if (!e?.isLabelEdge || !e?.id?.endsWith("-to-label") || !Array.isArray(t) || t.length !== 2) return t;
225
+ let [n, r] = t, i = Math.abs(r.x - n.x), a = Math.abs(r.y - n.y);
226
+ return i < .001 || a < .001 ? t : a >= i ? [
227
+ n,
228
+ {
229
+ x: n.x,
230
+ y: r.y
231
+ },
232
+ r
233
+ ] : [
234
+ n,
235
+ {
236
+ x: r.x,
237
+ y: n.y
238
+ },
239
+ r
240
+ ];
241
+ }, "orthogonalizeToLabelClippedPoints"), z = /* @__PURE__ */ e((e, t) => {
242
+ let n = e.x, r = e.y, i = Math.abs(t.x - n), a = Math.abs(t.y - r), o = e.width / 2, s = e.height / 2;
243
+ return i >= o || a >= s;
244
+ }, "outsideNode"), B = /* @__PURE__ */ e((e, n, r) => {
245
+ t.debug(`intersection calc abc89:
246
+ outsidePoint: ${JSON.stringify(n)}
247
+ insidePoint : ${JSON.stringify(r)}
248
+ node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);
249
+ let i = e.x, a = e.y, o = Math.abs(i - r.x), s = e.width / 2, c = r.x < n.x ? s - o : s + o, l = e.height / 2, u = Math.abs(n.y - r.y), d = Math.abs(n.x - r.x);
250
+ if (Math.abs(a - n.y) * s > Math.abs(i - n.x) * l) {
251
+ let e = r.y < n.y ? n.y - l - a : a - l - n.y;
252
+ c = d * e / u;
253
+ let i = {
254
+ x: r.x < n.x ? r.x + c : r.x - d + c,
255
+ y: r.y < n.y ? r.y + u - e : r.y - u + e
256
+ };
257
+ return c === 0 && (i.x = n.x, i.y = n.y), d === 0 && (i.x = n.x), u === 0 && (i.y = n.y), t.debug(`abc89 top/bottom calc, Q ${u}, q ${e}, R ${d}, r ${c}`, i), i;
258
+ }
259
+ {
260
+ c = r.x < n.x ? n.x - s - i : i - s - n.x;
261
+ let e = u * c / d, a = r.x < n.x ? r.x + d - c : r.x - d + c, o = r.y < n.y ? r.y + e : r.y - e;
262
+ return t.debug(`sides calc abc89, Q ${u}, q ${e}, R ${d}, r ${c}`, {
263
+ _x: a,
264
+ _y: o
265
+ }), c === 0 && (a = n.x, o = n.y), d === 0 && (a = n.x), u === 0 && (o = n.y), {
266
+ x: a,
267
+ y: o
268
+ };
269
+ }
270
+ }, "intersection"), V = /* @__PURE__ */ e((e, n) => {
271
+ t.warn("abc88 cutPathAtIntersect", e, n);
272
+ let r = [], i = e[0], a = !1;
273
+ return e.forEach((e) => {
274
+ if (t.info("abc88 checking point", e, n), !z(n, e) && !a) {
275
+ let o = B(n, i, e);
276
+ t.debug("abc88 inside", e, i, o), t.debug("abc88 intersection", o, n);
277
+ let s = !1;
278
+ r.forEach((e) => {
279
+ s ||= e.x === o.x && e.y === o.y;
280
+ }), r.some((e) => e.x === o.x && e.y === o.y) ? t.warn("abc88 no intersect", o, r) : r.push(o), a = !0;
281
+ } else t.warn("abc88 outside", e, i), i = e, a || r.push(e);
282
+ }), t.debug("returning points", r), r;
283
+ }, "cutPathAtIntersect");
284
+ function H(e) {
285
+ let t = [], n = [];
286
+ for (let r = 1; r < e.length - 1; r++) {
287
+ let i = e[r - 1], a = e[r], o = e[r + 1];
288
+ (i.x === a.x && a.y === o.y && Math.abs(a.x - o.x) > 5 && Math.abs(a.y - i.y) > 5 || i.y === a.y && a.x === o.x && Math.abs(a.x - i.x) > 5 && Math.abs(a.y - o.y) > 5) && (t.push(a), n.push(r));
289
+ }
290
+ return {
291
+ cornerPoints: t,
292
+ cornerPointPositions: n
293
+ };
294
+ }
295
+ e(H, "extractCornerPoints");
296
+ var U = /* @__PURE__ */ e(function(e, t, n) {
297
+ let r = t.x - e.x, i = t.y - e.y, a = n / Math.sqrt(r * r + i * i);
298
+ return {
299
+ x: t.x - a * r,
300
+ y: t.y - a * i
301
+ };
302
+ }, "findAdjacentPoint"), ae = /* @__PURE__ */ e(function(e) {
303
+ let { cornerPointPositions: n } = H(e), r = [];
304
+ for (let i = 0; i < e.length; i++) if (n.includes(i)) {
305
+ let n = e[i - 1], a = e[i + 1], o = e[i], s = U(n, o, 5), c = U(a, o, 5), l = c.x - s.x, u = c.y - s.y;
306
+ r.push(s);
307
+ let d = Math.sqrt(2) * 2, f = {
308
+ x: o.x,
309
+ y: o.y
310
+ };
311
+ Math.abs(a.x - n.x) > 10 && Math.abs(a.y - n.y) >= 10 ? (t.debug("Corner point fixing", Math.abs(a.x - n.x), Math.abs(a.y - n.y)), f = o.x === s.x ? {
312
+ x: l < 0 ? s.x - 5 + d : s.x + 5 - d,
313
+ y: u < 0 ? s.y - d : s.y + d
314
+ } : {
315
+ x: l < 0 ? s.x - d : s.x + d,
316
+ y: u < 0 ? s.y - 5 + d : s.y + 5 - d
317
+ }) : t.debug("Corner point skipping fixing", Math.abs(a.x - n.x), Math.abs(a.y - n.y)), r.push(f, c);
318
+ } else r.push(e[i]);
319
+ return r;
320
+ }, "fixCorners"), oe = /* @__PURE__ */ e((e, t, n) => {
321
+ let r = e - t - n, i = Math.floor(r / 4);
322
+ return `0 ${t} ${Array(i).fill("2 2").join(" ")} ${n}`;
323
+ }, "generateDashArray"), W = /* @__PURE__ */ e(function(e, r, i, x, C, w, T, E = !1) {
324
+ if (!T) throw Error(`insertEdge: missing diagramId for edge "${r.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);
325
+ let { handDrawnSeed: O, layout: k } = a(), A = r.points, j = !1, M = C;
326
+ var N = w;
327
+ let P = [];
328
+ for (let e in r.cssCompiledStyles) D(e) || P.push(r.cssCompiledStyles[e]);
329
+ if (k === "swimlane") {
330
+ if (N.intersect && M.intersect && Array.isArray(A) && A.length >= 2) {
331
+ if (A.length === 2) A = [M.intersect(A[0]), N.intersect(A[1])];
332
+ else {
333
+ let e = A.slice(1, -1), t = e[0], n = e[e.length - 1], r = .5, i = Math.abs(A[A.length - 1].x - n.x) < r && Math.abs(A[A.length - 1].y - n.y) < r, a = M.intersect(t), o = i ? n : N.intersect(n), s = Math.abs(o.x - n.x) < r && Math.abs(o.y - n.y) < r, c = Math.abs(a.x - t.x) < r && Math.abs(a.y - t.y) < r ? [] : [a], l = s ? [] : [o];
334
+ A = [
335
+ ...c,
336
+ ...e,
337
+ ...l
338
+ ];
339
+ }
340
+ }
341
+ A = ie(r, A);
342
+ } else N.intersect && M.intersect && !E && (A = A.slice(1, r.points.length - 1), A.unshift(M.intersect(A[0])), A.push(N.intersect(A[A.length - 1])));
343
+ let F = btoa(JSON.stringify(A));
344
+ r.toCluster && (t.info("to cluster abc88", i.get(r.toCluster)), A = V(r.points, i.get(r.toCluster).node), j = !0), r.fromCluster && (t.debug("from cluster abc88", i.get(r.fromCluster), JSON.stringify(A, null, 2)), A = V(A.reverse(), i.get(r.fromCluster).node).reverse(), j = !0);
345
+ let I = A.filter((e) => !Number.isNaN(e.y)), L = re(r.curve);
346
+ L !== "rounded" && (I = ae(I));
347
+ let R = _;
348
+ switch (L) {
349
+ case "linear":
350
+ R = _;
351
+ break;
352
+ case "basis":
353
+ R = p;
354
+ break;
355
+ case "cardinal":
356
+ R = o;
357
+ break;
358
+ case "bumpX":
359
+ R = v;
360
+ break;
361
+ case "bumpY":
362
+ R = h;
363
+ break;
364
+ case "catmullRom":
365
+ R = l;
366
+ break;
367
+ case "monotoneX":
368
+ R = u;
369
+ break;
370
+ case "monotoneY":
371
+ R = f;
372
+ break;
373
+ case "natural":
374
+ R = d;
375
+ break;
376
+ case "step":
377
+ R = s;
378
+ break;
379
+ case "stepAfter":
380
+ R = c;
381
+ break;
382
+ case "stepBefore":
383
+ R = g;
384
+ break;
385
+ case "rounded":
386
+ R = _;
387
+ break;
388
+ default: R = p;
389
+ }
390
+ let { x: z, y: B } = ee(r), H = b().x(z).y(B).curve(R), U;
391
+ switch (r.thickness) {
392
+ case "normal":
393
+ U = "edge-thickness-normal";
394
+ break;
395
+ case "thick":
396
+ U = "edge-thickness-thick";
397
+ break;
398
+ case "invisible":
399
+ U = "edge-thickness-invisible";
400
+ break;
401
+ default: U = "edge-thickness-normal";
402
+ }
403
+ switch (r.pattern) {
404
+ case "solid":
405
+ U += " edge-pattern-solid";
406
+ break;
407
+ case "dotted":
408
+ U += " edge-pattern-dotted";
409
+ break;
410
+ case "dashed":
411
+ U += " edge-pattern-dashed";
412
+ break;
413
+ default: U += " edge-pattern-solid";
414
+ }
415
+ let W, K = L === "rounded" ? G(q(I, r), 5) : H(I), J = Array.isArray(r.style) ? r.style : [r.style], Y = J.find((e) => e?.startsWith("stroke:")), X = "";
416
+ r.animate && (X = "edge-animation-fast"), r.animation && (X = "edge-animation-" + r.animation);
417
+ let Z = !1;
418
+ if (r.look === "handDrawn") {
419
+ let t = te.svg(e);
420
+ Object.assign([], I);
421
+ let i = t.path(K, {
422
+ roughness: .3,
423
+ seed: O
424
+ });
425
+ U += " transition", W = n(i).select("path").attr("id", `${T}-${r.id}`).attr("class", " " + U + (r.classes ? " " + r.classes : "") + (X ? " " + X : "")).attr("style", J ? J.reduce((e, t) => e + ";" + t, "") : "");
426
+ let a = W.attr("d");
427
+ W.attr("d", a), e.node().appendChild(W.node());
428
+ } else {
429
+ let t = P.join(";"), n = J ? J.reduce((e, t) => e + t + ";", "") : "", i = (t ? t + ";" + n + ";" : n) + ";" + (J ? J.reduce((e, t) => e + ";" + t, "") : "");
430
+ W = e.append("path").attr("d", K).attr("id", `${T}-${r.id}`).attr("class", " " + U + (r.classes ? " " + r.classes : "") + (X ? " " + X : "")).attr("style", i), Y = i.match(/stroke:([^;]+)/)?.[1], Z = r.animate === !0 || !!r.animation || t.includes("animation");
431
+ let a = W.node(), o = typeof a.getTotalLength == "function" ? a.getTotalLength() : 0, s = S[r.arrowTypeStart] || 0, c = S[r.arrowTypeEnd] || 0;
432
+ if (r.look === "neo" && !Z) {
433
+ let e = `stroke-dasharray: ${r.pattern === "dotted" || r.pattern === "dashed" ? oe(o, s, c) : `0 ${s} ${o - s - c} ${c}`}; stroke-dashoffset: 0;`;
434
+ W.attr("style", e + W.attr("style"));
435
+ }
436
+ }
437
+ W.attr("data-edge", !0), W.attr("data-et", "edge"), W.attr("data-id", r.id), W.attr("data-points", F), W.attr("data-look", y(r.look)), r.showPoints && I.forEach((t) => {
438
+ e.append("circle").style("stroke", "red").style("fill", "red").attr("r", 1).attr("cx", t.x).attr("cy", t.y);
439
+ });
440
+ let Q = "";
441
+ (a().flowchart.arrowMarkerAbsolute || a().state.arrowMarkerAbsolute) && (Q = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, Q = Q.replace(/\(/g, "\\(").replace(/\)/g, "\\)")), t.info("arrowTypeStart", r.arrowTypeStart), t.info("arrowTypeEnd", r.arrowTypeEnd);
442
+ let se = !Z && r?.look === "neo";
443
+ ne(W, r, Q, T, x, se, Y);
444
+ let ce = Math.floor(A.length / 2), le = A[ce];
445
+ m.isLabelCoordinateInPath(le, W.attr("d")) || (j = !0);
446
+ let $ = {};
447
+ return j && ($.updatedPath = A), $.originalPath = r.points, $;
448
+ }, "insertEdge");
449
+ function G(e, t) {
450
+ if (e.length < 2) return "";
451
+ let n = "", r = e.length, i = 1e-5;
452
+ for (let a = 0; a < r; a++) {
453
+ let o = e[a], s = e[a - 1], c = e[a + 1];
454
+ if (a === 0) n += `M${o.x},${o.y}`;
455
+ else if (a === r - 1) n += `L${o.x},${o.y}`;
456
+ else {
457
+ let e = o.x - s.x, r = o.y - s.y, a = c.x - o.x, l = c.y - o.y, u = Math.hypot(e, r), d = Math.hypot(a, l);
458
+ if (u < i || d < i) {
459
+ n += `L${o.x},${o.y}`;
460
+ continue;
461
+ }
462
+ let f = e / u, p = r / u, m = a / d, h = l / d, g = f * m + p * h, _ = Math.acos(Math.max(-1, Math.min(1, g)));
463
+ if (_ < i || Math.abs(Math.PI - _) < i) {
464
+ n += `L${o.x},${o.y}`;
465
+ continue;
466
+ }
467
+ let v = Math.min(t / Math.sin(_ / 2), u / 2, d / 2), y = o.x - f * v, b = o.y - p * v, x = o.x + m * v, S = o.y + h * v;
468
+ n += `L${y},${b}`, n += `Q${o.x},${o.y} ${x},${S}`;
469
+ }
470
+ }
471
+ return n;
472
+ }
473
+ e(G, "generateRoundedPath");
474
+ function K(e, t) {
475
+ if (!e || !t) return {
476
+ angle: 0,
477
+ deltaX: 0,
478
+ deltaY: 0
479
+ };
480
+ let n = t.x - e.x, r = t.y - e.y;
481
+ return {
482
+ angle: Math.atan2(r, n),
483
+ deltaX: n,
484
+ deltaY: r
485
+ };
486
+ }
487
+ e(K, "calculateDeltaAndAngle");
488
+ function q(e, t) {
489
+ let n = e.map((e) => ({ ...e }));
490
+ if (e.length >= 2 && C[t.arrowTypeStart]) {
491
+ let r = C[t.arrowTypeStart], i = e[0], a = e[1], { angle: o } = K(i, a), s = r * Math.cos(o), c = r * Math.sin(o);
492
+ n[0].x = i.x + s, n[0].y = i.y + c;
493
+ }
494
+ let r = e.length;
495
+ if (r >= 2 && C[t.arrowTypeEnd]) {
496
+ let i = C[t.arrowTypeEnd], a = e[r - 1], o = e[r - 2], { angle: s } = K(o, a), c = i * Math.cos(s), l = i * Math.sin(s);
497
+ n[r - 1].x = a.x - c, n[r - 1].y = a.y - l;
498
+ }
499
+ return n;
500
+ }
501
+ e(q, "applyMarkerOffsetsToPoints");
502
+ var J = /* @__PURE__ */ e((e, t, n, r) => {
503
+ t.forEach((t) => {
504
+ Y[t](e, n, r);
505
+ });
506
+ }, "insertMarkers"), Y = {
507
+ extension: /* @__PURE__ */ e((e, n, r) => {
508
+ t.trace("Making markers for ", r), e.append("defs").append("marker").attr("id", r + "_" + n + "-extensionStart").attr("class", "marker extension " + n).attr("refX", 18).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), e.append("defs").append("marker").attr("id", r + "_" + n + "-extensionEnd").attr("class", "marker extension " + n).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z"), e.append("marker").attr("id", r + "_" + n + "-extensionStart-margin").attr("class", "marker extension " + n).attr("refX", 18).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").attr("viewBox", "0 0 20 14").append("polygon").attr("points", "10,7 18,13 18,1").style("stroke-width", 2).style("stroke-dasharray", "0"), e.append("defs").append("marker").attr("id", r + "_" + n + "-extensionEnd-margin").attr("class", "marker extension " + n).attr("refX", 9).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").attr("viewBox", "0 0 20 14").append("polygon").attr("points", "10,1 10,13 18,7").style("stroke-width", 2).style("stroke-dasharray", "0");
509
+ }, "extension"),
510
+ composition: /* @__PURE__ */ e((e, t, n) => {
511
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionStart").attr("class", "marker composition " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionEnd").attr("class", "marker composition " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionStart-margin").attr("class", "marker composition " + t).attr("refX", 15).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 0).attr("viewBox", "0 0 15 15").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionEnd-margin").attr("class", "marker composition " + t).attr("refX", 3.5).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 0).attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
512
+ }, "composition"),
513
+ aggregation: /* @__PURE__ */ e((e, t, n) => {
514
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationStart").attr("class", "marker aggregation " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationEnd").attr("class", "marker aggregation " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationStart-margin").attr("class", "marker aggregation " + t).attr("refX", 15).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 2).attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationEnd-margin").attr("class", "marker aggregation " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 2).attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
515
+ }, "aggregation"),
516
+ dependency: /* @__PURE__ */ e((e, t, n) => {
517
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyStart").attr("class", "marker dependency " + t).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyEnd").attr("class", "marker dependency " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyStart-margin").attr("class", "marker dependency " + t).attr("refX", 4).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 0).attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyEnd-margin").attr("class", "marker dependency " + t).attr("refX", 16).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 0).attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
518
+ }, "dependency"),
519
+ lollipop: /* @__PURE__ */ e((e, t, n) => {
520
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopStart").attr("class", "marker lollipop " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopEnd").attr("class", "marker lollipop " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopStart-margin").attr("class", "marker lollipop " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6).attr("stroke-width", 2), e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopEnd-margin").attr("class", "marker lollipop " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6).attr("stroke-width", 2);
521
+ }, "lollipop"),
522
+ point: /* @__PURE__ */ e((e, t, n) => {
523
+ e.append("marker").attr("id", n + "_" + t + "-pointEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 8).attr("markerHeight", 8).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-pointStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 8).attr("markerHeight", 8).attr("orient", "auto").append("path").attr("d", "M 0 5 L 10 10 L 10 0 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-pointEnd-margin").attr("class", "marker " + t).attr("viewBox", "0 0 11.5 14").attr("refX", 11.5).attr("refY", 7).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 10.5).attr("markerHeight", 14).attr("orient", "auto").append("path").attr("d", "M 0 0 L 11.5 7 L 0 14 z").attr("class", "arrowMarkerPath").style("stroke-width", 0).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-pointStart-margin").attr("class", "marker " + t).attr("viewBox", "0 0 11.5 14").attr("refX", 1).attr("refY", 7).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11.5).attr("markerHeight", 14).attr("orient", "auto").append("polygon").attr("points", "0,7 11.5,14 11.5,0").attr("class", "arrowMarkerPath").style("stroke-width", 0).style("stroke-dasharray", "1,0");
524
+ }, "point"),
525
+ circle: /* @__PURE__ */ e((e, t, n) => {
526
+ e.append("marker").attr("id", n + "_" + t + "-circleEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 11).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-circleStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", -1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-circleEnd-margin").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refY", 5).attr("refX", 12.25).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 14).attr("markerHeight", 14).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 0).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-circleStart-margin").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", -2).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 14).attr("markerHeight", 14).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 0).style("stroke-dasharray", "1,0");
527
+ }, "circle"),
528
+ cross: /* @__PURE__ */ e((e, t, n) => {
529
+ e.append("marker").attr("id", n + "_" + t + "-crossEnd").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", 12).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-crossStart").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", -1).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-crossEnd-margin").attr("class", "marker cross " + t).attr("viewBox", "0 0 15 15").attr("refX", 17.7).attr("refY", 7.5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 1,1 L 14,14 M 1,14 L 14,1").attr("class", "arrowMarkerPath").style("stroke-width", 2.5), e.append("marker").attr("id", n + "_" + t + "-crossStart-margin").attr("class", "marker cross " + t).attr("viewBox", "0 0 15 15").attr("refX", -3.5).attr("refY", 7.5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 1,1 L 14,14 M 1,14 L 14,1").attr("class", "arrowMarkerPath").style("stroke-width", 2.5).style("stroke-dasharray", "1,0");
530
+ }, "cross"),
531
+ barb: /* @__PURE__ */ e((e, t, n) => {
532
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
533
+ }, "barb"),
534
+ barbNeo: /* @__PURE__ */ e((e, t, n) => {
535
+ let { themeVariables: r } = i(), { transitionColor: a } = r;
536
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("path").attr("d", "M 19,7 L11,14 L13,7 L11,0 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-barbEnd-margin").attr("refX", 17).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M 19,7 L11,14 L13,7 L11,0 Z").attr("fill", `${a}`);
537
+ }, "barbNeo"),
538
+ only_one: /* @__PURE__ */ e((e, t, n) => {
539
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-onlyOneStart").attr("class", "marker onlyOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("d", "M9,0 L9,18 M15,0 L15,18"), e.append("defs").append("marker").attr("id", n + "_" + t + "-onlyOneEnd").attr("class", "marker onlyOne " + t).attr("refX", 18).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("d", "M3,0 L3,18 M9,0 L9,18");
540
+ }, "only_one"),
541
+ zero_or_one: /* @__PURE__ */ e((e, t, n) => {
542
+ let r = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneStart").attr("class", "marker zeroOrOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto");
543
+ r.append("circle").attr("fill", "white").attr("cx", 21).attr("cy", 9).attr("r", 6), r.append("path").attr("d", "M9,0 L9,18");
544
+ let i = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneEnd").attr("class", "marker zeroOrOne " + t).attr("refX", 30).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto");
545
+ i.append("circle").attr("fill", "white").attr("cx", 9).attr("cy", 9).attr("r", 6), i.append("path").attr("d", "M21,0 L21,18");
546
+ }, "zero_or_one"),
547
+ one_or_more: /* @__PURE__ */ e((e, t, n) => {
548
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-oneOrMoreStart").attr("class", "marker oneOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("d", "M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"), e.append("defs").append("marker").attr("id", n + "_" + t + "-oneOrMoreEnd").attr("class", "marker oneOrMore " + t).attr("refX", 27).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("d", "M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18");
549
+ }, "one_or_more"),
550
+ zero_or_more: /* @__PURE__ */ e((e, t, n) => {
551
+ let r = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreStart").attr("class", "marker zeroOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto");
552
+ r.append("circle").attr("fill", "white").attr("cx", 48).attr("cy", 18).attr("r", 6), r.append("path").attr("d", "M0,18 Q18,0 36,18 Q18,36 0,18");
553
+ let i = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreEnd").attr("class", "marker zeroOrMore " + t).attr("refX", 39).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto");
554
+ i.append("circle").attr("fill", "white").attr("cx", 9).attr("cy", 18).attr("r", 6), i.append("path").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18");
555
+ }, "zero_or_more"),
556
+ only_one_neo: /* @__PURE__ */ e((e, t, n) => {
557
+ let { themeVariables: r } = i(), { strokeWidth: a } = r;
558
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-onlyOneStart").attr("class", "marker onlyOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M9,0 L9,18 M15,0 L15,18").attr("stroke-width", `${a}`), e.append("defs").append("marker").attr("id", n + "_" + t + "-onlyOneEnd").attr("class", "marker onlyOne " + t).attr("refX", 18).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M3,0 L3,18 M9,0 L9,18").attr("stroke-width", `${a}`);
559
+ }, "only_one_neo"),
560
+ zero_or_one_neo: /* @__PURE__ */ e((e, t, n) => {
561
+ let { themeVariables: r } = i(), { strokeWidth: a, mainBkg: o } = r, s = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneStart").attr("class", "marker zeroOrOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse");
562
+ s.append("circle").attr("fill", o ?? "white").attr("cx", 21).attr("cy", 9).attr("stroke-width", `${a}`).attr("r", 6), s.append("path").attr("d", "M9,0 L9,18").attr("stroke-width", `${a}`);
563
+ let c = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneEnd").attr("class", "marker zeroOrOne " + t).attr("refX", 30).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto");
564
+ c.append("circle").attr("fill", o ?? "white").attr("cx", 9).attr("cy", 9).attr("stroke-width", `${a}`).attr("r", 6), c.append("path").attr("d", "M21,0 L21,18").attr("stroke-width", `${a}`);
565
+ }, "zero_or_one_neo"),
566
+ one_or_more_neo: /* @__PURE__ */ e((e, t, n) => {
567
+ let { themeVariables: r } = i(), { strokeWidth: a } = r;
568
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-oneOrMoreStart").attr("class", "marker oneOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width", `${a}`), e.append("defs").append("marker").attr("id", n + "_" + t + "-oneOrMoreEnd").attr("class", "marker oneOrMore " + t).attr("refX", 27).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width", `${a}`);
569
+ }, "one_or_more_neo"),
570
+ zero_or_more_neo: /* @__PURE__ */ e((e, t, n) => {
571
+ let { themeVariables: r } = i(), { strokeWidth: a, mainBkg: o } = r, s = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreStart").attr("class", "marker zeroOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto");
572
+ s.append("circle").attr("fill", o ?? "white").attr("cx", 45.5).attr("cy", 18).attr("r", 6).attr("stroke-width", `${a}`), s.append("path").attr("d", "M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width", `${a}`);
573
+ let c = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreEnd").attr("class", "marker zeroOrMore " + t).attr("refX", 39).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse");
574
+ c.append("circle").attr("fill", o ?? "white").attr("cx", 11).attr("cy", 18).attr("r", 6).attr("stroke-width", `${a}`), c.append("path").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width", `${a}`);
575
+ }, "zero_or_more_neo"),
576
+ requirement_arrow: /* @__PURE__ */ e((e, t, n) => {
577
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_arrowEnd").attr("refX", 20).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").append("path").attr("d", "M0,0\n L20,10\n M20,10\n L0,20");
578
+ }, "requirement_arrow"),
579
+ requirement_contains: /* @__PURE__ */ e((e, t, n) => {
580
+ let r = e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_containsStart").attr("refX", 0).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").append("g");
581
+ r.append("circle").attr("cx", 10).attr("cy", 10).attr("r", 9).attr("fill", "none"), r.append("line").attr("x1", 1).attr("x2", 19).attr("y1", 10).attr("y2", 10), r.append("line").attr("y1", 1).attr("y2", 19).attr("x1", 10).attr("x2", 10);
582
+ }, "requirement_contains"),
583
+ requirement_arrow_neo: /* @__PURE__ */ e((e, t, n) => {
584
+ let { themeVariables: r } = i(), { strokeWidth: a } = r;
585
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_arrowEnd").attr("refX", 20).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").attr("stroke-width", `${a}`).attr("viewBox", "0 0 25 20").append("path").attr("d", "M0,0\n L20,10\n M20,10\n L0,20").attr("stroke-linejoin", "miter");
586
+ }, "requirement_arrow_neo"),
587
+ requirement_contains_neo: /* @__PURE__ */ e((e, t, n) => {
588
+ let { themeVariables: r } = i(), { strokeWidth: a } = r, o = e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_containsStart").attr("refX", 0).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("g");
589
+ o.append("circle").attr("cx", 10).attr("cy", 10).attr("r", 9).attr("fill", "none"), o.append("line").attr("x1", 1).attr("x2", 19).attr("y1", 10).attr("y2", 10), o.append("line").attr("y1", 1).attr("y2", 19).attr("x1", 10).attr("x2", 10), o.selectAll("*").attr("stroke-width", `${a}`);
590
+ }, "requirement_contains_neo")
591
+ }, X = J;
592
+ //#endregion
593
+ export { X as a, I as i, M as n, R as o, W as r, N as s, P as t };
@@ -0,0 +1,5 @@
1
+ import { n as e } from "./chunk-Y2CYZVJY-QdJ4V9rh.js";
2
+ //#region ../../node_modules/.pnpm/mermaid@11.16.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5VM5RSS4.mjs
3
+ var t = /* @__PURE__ */ e(() => "\n /* Font Awesome icon styling - consolidated */\n .label-icon {\n display: inline-block;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n }\n \n .node .label-icon path {\n fill: currentColor;\n stroke: revert;\n stroke-width: revert;\n }\n", "getIconStyles");
4
+ //#endregion
5
+ export { t };