@nxgt/material 1.12.3 → 1.16.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 (151) hide show
  1. package/README.md +5 -1
  2. package/dist/abnfDiagram-O67JEVCF-mm89LXw2.js +89 -0
  3. package/dist/architecture-7GRP2DOG-DDr0RGVC.js +3 -0
  4. package/dist/architectureDiagram-NJMV4G6O-CGoA5SIv.js +4146 -0
  5. package/dist/array-CApNbSU9.js +6 -0
  6. package/dist/blockDiagram-BEXU5L5S-Dq8gitB4.js +1946 -0
  7. package/dist/c4Diagram-YGBWAQC7-DO_alqIu.js +2990 -0
  8. package/dist/channel-1fT-W0NS.js +5 -0
  9. package/dist/chunk-2Q5K7J3B-kzxEEeTu.js +15 -0
  10. package/dist/chunk-3FUC2YCW-C3yD2fMw.js +364 -0
  11. package/dist/chunk-5DYCD2WN-Dn2jrYde.js +37 -0
  12. package/dist/chunk-5VM5RSS4-Cr17nBXp.js +5 -0
  13. package/dist/chunk-6AEJRKK7-JyfUnUEu.js +10 -0
  14. package/dist/chunk-742MDFTN-BbWkrtj2.js +275 -0
  15. package/dist/chunk-7INBJB4K-C3x7JNTG.js +4487 -0
  16. package/dist/chunk-7M6MHVWA-Cc7UTu4b.js +4256 -0
  17. package/dist/chunk-7PRAP22T-C8rsGRvH.js +67 -0
  18. package/dist/chunk-DUW6YSOI-BdOla2G8.js +10 -0
  19. package/dist/chunk-FOHPRMQF-Crq0JMf2.js +21388 -0
  20. package/dist/chunk-GNY47TPC-d-Bi8r0p.js +75 -0
  21. package/dist/chunk-GTNCS2PH-CTS015lZ.js +490 -0
  22. package/dist/chunk-GWA4HPMP-B4pgM-E1.js +61 -0
  23. package/dist/chunk-J5ZVWO5B-CYzz6Pq8.js +12 -0
  24. package/dist/chunk-JWPE2WC7-Ccb0QaC8.js +8 -0
  25. package/dist/chunk-LNGE3PJU-CiGrDO_F.js +1513 -0
  26. package/dist/chunk-MBY4JIJT-Dg6AeftH.js +1847 -0
  27. package/dist/chunk-NETBCI7D-TXZM0vKz.js +236 -0
  28. package/dist/chunk-O7XYJQB3-md6vjVm4.js +3922 -0
  29. package/dist/chunk-UA2S7LBM-DQTYPe9y.js +363 -0
  30. package/dist/chunk-WEXAMYUT-DmKWJz6y.js +26 -0
  31. package/dist/chunk-XXDRQBXY-C9XIYQdM.js +9 -0
  32. package/dist/chunk-Y2CYZVJY-i11wjrBe.js +12 -0
  33. package/dist/chunk-Z7XXMR3K-BoDf6lxl.js +677 -0
  34. package/dist/chunk-ZIGJFQKS-CP5430fN.js +663 -0
  35. package/dist/classDiagram-v2-NBCMYWYE-6KoTmufe.js +3397 -0
  36. package/dist/components.js +3 -3
  37. package/dist/cose-bilkent-JH36ORCC-CejnZl_t.js +2251 -0
  38. package/dist/cynefin-OW5HDTMX-B8HVdZhp.js +3 -0
  39. package/dist/cynefinDiagram-VND7K2PF-DZnc0dlm.js +349 -0
  40. package/dist/cytoscape.esm-_jXi1N4y.js +18151 -0
  41. package/dist/dagre-6A5THRUB-cuS57NO5.js +2192 -0
  42. package/dist/diagram-22UHCM2B-zQSFmH0t.js +5084 -0
  43. package/dist/diagram-3UASUU5V-D45Fgu1j.js +724 -0
  44. package/dist/diagram-ATOU4E4O-YMtQnlqd.js +432 -0
  45. package/dist/diagram-CDSNMT55-DP7UmEW1.js +301 -0
  46. package/dist/diagram-MLGK6HIB-WvSqrTRC.js +134 -0
  47. package/dist/diagram-MPIPVDR6-C2F3__mt.js +214 -0
  48. package/dist/dist-1DdJvBEt.js +50 -0
  49. package/dist/{dist-DGsPFADz.js → dist-DppLdkXt.js} +2 -2
  50. package/dist/dnd.js +2 -2
  51. package/dist/ebnfDiagram-ZINNZB2B-BZC6cSiy.js +100 -0
  52. package/dist/elk-276RUBZZ-7DJf1MEV.js +47598 -0
  53. package/dist/erDiagram-OPXOYQCR-YKlEVEF0.js +1970 -0
  54. package/dist/eventmodeling-NTZA5JFV-C1CEo-26.js +3 -0
  55. package/dist/flowDiagram-KWPJA3E3-DyLvzIlg.js +17 -0
  56. package/dist/ganttDiagram-FUAMR5RP-KIaOrYOF.js +2928 -0
  57. package/dist/gitGraph-4MIJSDKK-BTeCS_5q.js +3 -0
  58. package/dist/gitGraphDiagram-X574FWY7-DpFW-7JE.js +729 -0
  59. package/dist/graphlib-DFaO_iIU.js +372 -0
  60. package/dist/{hooks-BjSuqEof.js → hooks-C5xy0u03.js} +1 -1
  61. package/dist/hooks.js +1 -1
  62. package/dist/{i18n-DmVqVJXj.js → i18n-Cech9IAc.js} +328 -843
  63. package/dist/i18n.js +1 -1
  64. package/dist/info-A6RAGUB7-BvtuPd9C.js +3 -0
  65. package/dist/infoDiagram-VRGFBTTK-H3F-BCnu.js +20 -0
  66. package/dist/init-Buj1GKRa.js +27 -0
  67. package/dist/isArrayLikeObject-VG1KOJ3m.js +539 -0
  68. package/dist/ishikawaDiagram-OU5B5YK6-DgQDmcF3.js +719 -0
  69. package/dist/journeyDiagram-ZHPQQLJL-CanDOlfn.js +884 -0
  70. package/dist/kanban-definition-PNTS6WVX-DmnUgxgb.js +976 -0
  71. package/dist/katex-BMQ6LGsM.js +21962 -0
  72. package/dist/lib/components/index.d.ts +4 -0
  73. package/dist/lib/components/ui/action-card.d.ts +1 -1
  74. package/dist/lib/components/ui/chat/chat-composer-mentions.d.ts +8 -0
  75. package/dist/lib/components/ui/chat/chat-composer.d.ts +5 -1
  76. package/dist/lib/components/ui/chat/chat-markdown.d.ts +2 -2
  77. package/dist/lib/components/ui/emoji/emoji-list.d.ts +5 -0
  78. package/dist/lib/components/ui/emoji/emoji-picker.d.ts +7 -0
  79. package/dist/lib/components/ui/emoji/emoji.utils.d.ts +2 -0
  80. package/dist/lib/components/ui/emoji/emoji.utils.test.d.ts +1 -0
  81. package/dist/lib/components/ui/emoji/index.d.ts +4 -0
  82. package/dist/lib/components/ui/emoji/types.d.ts +6 -0
  83. package/dist/lib/components/ui/entity-header.stories.d.ts +1 -0
  84. package/dist/lib/components/ui/kanban/kanban.stories.d.ts +1 -0
  85. package/dist/lib/components/ui/markdown/index.d.ts +3 -0
  86. package/dist/lib/components/ui/markdown/markdown.d.ts +7 -0
  87. package/dist/lib/components/ui/markdown/markdown.stories.d.ts +14 -0
  88. package/dist/lib/components/ui/markdown/markdown.test.d.ts +1 -0
  89. package/dist/lib/components/ui/markdown/markdown.utils.d.ts +1 -0
  90. package/dist/lib/components/ui/markdown/mermaid.lazy.d.ts +12 -0
  91. package/dist/lib/components/ui/markdown/partials/markdown-code.d.ts +2 -0
  92. package/dist/lib/components/ui/markdown/partials/mermaid-diagram.d.ts +4 -0
  93. package/dist/lib/components/ui/mentions/index.d.ts +3 -0
  94. package/dist/lib/components/ui/mentions/mention-list.d.ts +8 -0
  95. package/dist/lib/components/ui/mentions/mentions.utils.d.ts +7 -0
  96. package/dist/lib/components/ui/mentions/mentions.utils.test.d.ts +1 -0
  97. package/dist/lib/components/ui/mentions/types.d.ts +7 -0
  98. package/dist/lib/components/ui/rich-text-editor/extensions/mention/mention-list.d.ts +12 -1
  99. package/dist/lib/components/ui/terminal/index.d.ts +2 -0
  100. package/dist/lib/components/ui/terminal/terminal.d.ts +11 -0
  101. package/dist/lib/components/ui/terminal/terminal.stories.d.ts +14 -0
  102. package/dist/lib/components/ui/terminal/terminal.utils.d.ts +5 -0
  103. package/dist/lib/components/ui/terminal/terminal.utils.test.d.ts +1 -0
  104. package/dist/lib/i18n/resources/en/index.d.ts +13 -0
  105. package/dist/lib/i18n/resources/en/material.json.d.ts +14 -1
  106. package/dist/lib/i18n/resources/fr/index.d.ts +13 -0
  107. package/dist/lib/i18n/resources/fr/material.json.d.ts +14 -1
  108. package/dist/lib/i18n/resources/index.d.ts +26 -0
  109. package/dist/lib/i18n/translator.d.ts +1 -1
  110. package/dist/{lib-B1KXma-r.js → lib-Bbw5QPoj.js} +472 -471
  111. package/dist/lib.js +2 -2
  112. package/dist/{main-Cw-Yaqo9.js → main-BjDU9FDM.js} +58614 -29566
  113. package/dist/main.js +6 -6
  114. package/dist/material.css +1 -1
  115. package/dist/math-C5EhTgJw.js +10 -0
  116. package/dist/mermaid-parser.core-Cz-MfB4Z.js +638 -0
  117. package/dist/mermaid.core-BI1sunfX.js +1096 -0
  118. package/dist/mindmap-definition-NLK3R4M7-DW0BIU_q.js +1008 -0
  119. package/dist/ordinal-DuP05kVQ.js +65 -0
  120. package/dist/packet-AYTQ26CC-CshIswP8.js +3 -0
  121. package/dist/path-Cjou0lUh.js +85 -0
  122. package/dist/pegDiagram-GJSIUBJH-CJIx0u4M.js +94 -0
  123. package/dist/pie-WAS4IAKB-CYs22y4X.js +3 -0
  124. package/dist/pieDiagram-5QR66LMP-zAhv5fKz.js +157 -0
  125. package/dist/quadrantDiagram-O4NWA36T-CO4n_yQo.js +2001 -0
  126. package/dist/radar-RG4KPBEZ-BOJKjbGv.js +3 -0
  127. package/dist/railroad-74A4TZTK-Dt1BmUkI.js +3 -0
  128. package/dist/railroad-abnf-HS5TGJTU-Cs9GMUMY.js +3 -0
  129. package/dist/railroad-ebnf-LZEXJU2U-D4y0fXoW.js +3 -0
  130. package/dist/railroad-peg-WCYAUIDC-D2f_ZNR5.js +3 -0
  131. package/dist/railroadDiagram-XR7U4H2S-B8iV7mfe.js +76 -0
  132. package/dist/requirementDiagram-PLB6GJNP-CGoX1NrW.js +2228 -0
  133. package/dist/rough.esm-rcMoXTJj.js +1352 -0
  134. package/dist/sankeyDiagram-IPEJSGJF-DdSM2wiI.js +962 -0
  135. package/dist/sequenceDiagram-PO4LG4MO-CCRqF5XO.js +4200 -0
  136. package/dist/sizeCapture-INFHLROL-CHXIsPO_.js +46 -0
  137. package/dist/src-B4npqWNl.js +1775 -0
  138. package/dist/stateDiagram-v2-GCMORJYK-CQTX5ks8.js +2143 -0
  139. package/dist/step-B6KjpKgN.js +706 -0
  140. package/dist/string-B-ZWXCs2.js +392 -0
  141. package/dist/swimlanes-2SLR337P-C2NNOb5n.js +4763 -0
  142. package/dist/swimlanesDiagram-TC7HE7FX-CPsqPrbP.js +28 -0
  143. package/dist/timeline-definition-EJHVYXUP-DuxGHv-N.js +1073 -0
  144. package/dist/treeView-Q6P3EWNA-BrJylG9N.js +3 -0
  145. package/dist/treemap-WGGIJYW6-DpIZuqbj.js +3 -0
  146. package/dist/usecaseDiagram-POWQR4AR-cuAeIBW3.js +9932 -0
  147. package/dist/vennDiagram-UO4OBE2U-DLwBSAnC.js +1880 -0
  148. package/dist/wardley-WFR3VGLG-CbwdAAbH.js +3 -0
  149. package/dist/wardleyDiagram-VNRHLVJA-D7IZU6vu.js +645 -0
  150. package/dist/xychartDiagram-PMCCYNJV-BDOFv_xK.js +2167 -0
  151. package/package.json +7 -1
@@ -0,0 +1,5 @@
1
+ import { ot as e, st as t } from "./chunk-O7XYJQB3-md6vjVm4.js";
2
+ //#region node_modules/khroma/dist/methods/channel.js
3
+ var n = (n, r) => t.lang.round(e.parse(n)[r]);
4
+ //#endregion
5
+ export { n as t };
@@ -0,0 +1,15 @@
1
+ import { n as e } from "./chunk-Y2CYZVJY-i11wjrBe.js";
2
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-2Q5K7J3B.mjs
3
+ var t = class {
4
+ constructor(e) {
5
+ this.init = e, this.records = this.init();
6
+ }
7
+ static {
8
+ e(this, "ImperativeState");
9
+ }
10
+ reset() {
11
+ this.records = this.init();
12
+ }
13
+ };
14
+ //#endregion
15
+ export { t };
@@ -0,0 +1,364 @@
1
+ import { t as e } from "./graphlib-DFaO_iIU.js";
2
+ import { n as t } from "./src-B4npqWNl.js";
3
+ import { g as n } from "./chunk-ZIGJFQKS-CP5430fN.js";
4
+ import { n as r } from "./chunk-Y2CYZVJY-i11wjrBe.js";
5
+ import { b as i, x as a } from "./chunk-O7XYJQB3-md6vjVm4.js";
6
+ import { o } from "./chunk-7INBJB4K-C3x7JNTG.js";
7
+ import { i as s, n as c, r as l, t as u } from "./chunk-5DYCD2WN-Dn2jrYde.js";
8
+ import { a as d, c as f, i as p, n as m, r as h, t as g, u as _ } from "./chunk-Z7XXMR3K-BoDf6lxl.js";
9
+ import { r as v, t as y } from "./chunk-UA2S7LBM-DQTYPe9y.js";
10
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-3FUC2YCW.mjs
11
+ function b(e, { edgePathsClass: t = "edges edgePaths" } = {}) {
12
+ let n = e.insert("g").attr("class", "root");
13
+ return {
14
+ clusters: n.insert("g").attr("class", "clusters"),
15
+ edgePaths: n.insert("g").attr("class", t),
16
+ edgeLabels: n.insert("g").attr("class", "edgeLabels"),
17
+ nodes: n.insert("g").attr("class", "nodes"),
18
+ rootGroups: n
19
+ };
20
+ }
21
+ r(b, "createLayoutElementGroups");
22
+ async function x(e, t, n) {
23
+ if (t.label) {
24
+ let { shapeSvg: r, bbox: i } = await o(e, n === void 0 ? t : {
25
+ ...t,
26
+ width: n
27
+ });
28
+ t.labelBBox = {
29
+ width: i.width,
30
+ height: i.height
31
+ }, r.remove();
32
+ } else t.labelBBox = {
33
+ width: 0,
34
+ height: 0
35
+ };
36
+ }
37
+ r(x, "measureGroupLabel");
38
+ async function S(e, t, n) {
39
+ let r = await l(e, t, n), i = r.node()?.getBBox() ?? {
40
+ width: 0,
41
+ height: 0
42
+ };
43
+ return t.width = i.width, t.height = i.height, r;
44
+ }
45
+ r(S, "insertMeasuredNode");
46
+ function C(e, t, n) {
47
+ let r = e, i = /* @__PURE__ */ new Set();
48
+ for (; r;) {
49
+ if (r.dir) return r.dir;
50
+ if (!r.parentId || i.has(r.parentId)) break;
51
+ i.add(r.parentId), r = t.get(r.parentId);
52
+ }
53
+ return n;
54
+ }
55
+ r(C, "resolveNodeDir");
56
+ async function w(t, n, r = {}) {
57
+ let i = new e({
58
+ multigraph: !0,
59
+ compound: !0
60
+ }), o = [...n.edges], s = a(), c = b(t), { edgeLabels: l, nodes: u } = c, f = /* @__PURE__ */ new Map(), p = new Map(n.nodes.map((e) => [e.id, e])), m = n.direction, g = t.node() != null;
61
+ await Promise.all(n.nodes.map(async (e) => {
62
+ if (e.isGroup) {
63
+ if (g) {
64
+ let t = r.unwrapGroupLabels && e.labelType !== "markdown";
65
+ await x(u, e, t ? Infinity : void 0);
66
+ }
67
+ i.setNode(e.id, { ...e });
68
+ } else {
69
+ if (g) {
70
+ let t = await S(u, e, {
71
+ config: s,
72
+ dir: C(e, p, m)
73
+ });
74
+ f.set(e.id, t);
75
+ }
76
+ i.setNode(e.id, { ...e });
77
+ }
78
+ }));
79
+ for (let e of o) g && h(e) && await d(l, e), i.setEdge(e.start, e.end, { ...e }, e.id), n.edges.some((t) => t.id === e.id) || n.edges.push(e);
80
+ if (globalThis.mermaidCaptureSizes) {
81
+ let { captureNodeSizes: e } = await import("./sizeCapture-INFHLROL-CHXIsPO_.js");
82
+ e(t, n);
83
+ }
84
+ return {
85
+ graph: i,
86
+ groups: c,
87
+ nodeElements: f
88
+ };
89
+ }
90
+ r(w, "createGraphWithElements");
91
+ var T = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map(), O = /* @__PURE__ */ r(() => {
92
+ E.clear(), D.clear(), T.clear();
93
+ }, "clear"), k = /* @__PURE__ */ r((e, n) => {
94
+ let r = E.get(n) || [];
95
+ return t.trace("In isDescendant", n, " ", e, " = ", r.includes(e)), r.includes(e);
96
+ }, "isDescendant"), A = /* @__PURE__ */ r((e, n) => {
97
+ let r = E.get(n) || [];
98
+ return t.info("Descendants of ", n, " is ", r), t.info("Edge is ", e), e.v === n || e.w === n ? !1 : r ? r.includes(e.v) || k(e.v, n) || k(e.w, n) || r.includes(e.w) : (t.debug("Tilt, ", n, ",not in descendants"), !1);
99
+ }, "edgeInCluster"), j = /* @__PURE__ */ r((e, n, r, i) => {
100
+ t.debug("Copying children of ", e, "root", i, "data", n.node(e), i);
101
+ let a = n.children(e) || [];
102
+ e !== i && a.push(e), t.debug("Copying (nodes) clusterId", e, "nodes", a), a.forEach((a) => {
103
+ if (n.children(a).length > 0) j(a, n, r, i);
104
+ else {
105
+ let o = n.node(a);
106
+ t.info("cp ", a, " to ", i, " with parent ", e), r.setNode(a, o), i !== n.parent(a) && (t.debug("Setting parent", a, n.parent(a)), r.setParent(a, n.parent(a))), e !== i && a !== e ? (t.debug("Setting parent", a, e), r.setParent(a, e)) : (t.info("In copy ", e, "root", i, "data", n.node(e), i), t.debug("Not Setting parent for node=", a, "cluster!==rootId", e !== i, "node!==clusterId", a !== e));
107
+ let s = n.edges(a);
108
+ t.debug("Copying Edges", s), s.forEach((a) => {
109
+ t.info("Edge", a);
110
+ let o = n.edge(a.v, a.w, a.name);
111
+ t.info("Edge data", o, i);
112
+ try {
113
+ A(a, i) ? (t.info("Copying as ", a.v, a.w, o, a.name), r.setEdge(a.v, a.w, o, a.name), t.info("newGraph edges ", r.edges(), r.edge(r.edges()[0]))) : t.info("Skipping copy of edge ", a.v, "-->", a.w, " rootId: ", i, " clusterId:", e);
114
+ } catch (e) {
115
+ t.error(e);
116
+ }
117
+ });
118
+ }
119
+ t.debug("Removing node", a), n.removeNode(a);
120
+ });
121
+ }, "copy"), M = /* @__PURE__ */ r((e, t) => {
122
+ let n = t.children(e), r = [...n];
123
+ for (let i of n) D.set(i, e), r = [...r, ...M(i, t)];
124
+ return r;
125
+ }, "extractDescendants"), N = /* @__PURE__ */ r((e, t, n) => {
126
+ let r = e.edges().filter((e) => e.v === t || e.w === t), i = e.edges().filter((e) => e.v === n || e.w === n), a = r.map((e) => ({
127
+ v: e.v === t ? n : e.v,
128
+ w: e.w === t ? t : e.w
129
+ })), o = i.map((e) => ({
130
+ v: e.v,
131
+ w: e.w
132
+ }));
133
+ return a.filter((e) => o.some((t) => e.v === t.v && e.w === t.w));
134
+ }, "findCommonEdges"), P = /* @__PURE__ */ r((e, n, r) => {
135
+ let i = n.children(e);
136
+ if (t.trace("Searching children of id ", e, i), i.length < 1) return e;
137
+ let a;
138
+ for (let e of i) {
139
+ let t = P(e, n, r), i = N(n, r, t);
140
+ if (t) if (i.length > 0) a = t;
141
+ else return t;
142
+ }
143
+ return a;
144
+ }, "findNonClusterChild"), F = /* @__PURE__ */ r((e) => !T.has(e) || !T.get(e).externalConnections ? e : T.has(e) ? T.get(e).id : e, "getAnchorId"), I = /* @__PURE__ */ r((e, n) => {
145
+ if (!e || n > 10) {
146
+ t.debug("Opting out, no graph ");
147
+ return;
148
+ } else t.debug("Opting in, graph ");
149
+ e.nodes().forEach(function(n) {
150
+ e.children(n).length > 0 && (t.debug("Cluster identified", n, " Replacement id in edges: ", P(n, e, n)), E.set(n, M(n, e)), T.set(n, {
151
+ id: P(n, e, n),
152
+ clusterData: e.node(n)
153
+ }));
154
+ }), e.nodes().forEach(function(n) {
155
+ let r = e.children(n), i = e.edges();
156
+ r.length > 0 ? (t.debug("Cluster identified", n, E), i.forEach((e) => {
157
+ k(e.v, n) ^ k(e.w, n) && (t.debug("Edge: ", e, " leaves cluster ", n), t.debug("Descendants of XXX ", n, ": ", E.get(n)), T.get(n).externalConnections = !0);
158
+ })) : t.debug("Not a cluster ", n, E);
159
+ });
160
+ for (let t of T.keys()) {
161
+ let n = T.get(t).id, r = e.parent(n);
162
+ r !== t && T.has(r) && !T.get(r).externalConnections && (T.get(t).id = r);
163
+ let i = e.edges().some((e) => e.v === t);
164
+ if (n && T.get(t)?.externalConnections && i && B(e, n, t)) {
165
+ let r = V(e, t, e.parent(n));
166
+ r && (T.get(t).id = r);
167
+ }
168
+ }
169
+ e.edges().forEach(function(n) {
170
+ let r = e.edge(n);
171
+ t.debug("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(n)), t.debug("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(e.edge(n)));
172
+ let i = n.v, a = n.w;
173
+ if (t.debug("Fix XXX", T, "ids:", n.v, n.w, "Translating: ", T.get(n.v), " --- ", T.get(n.w)), T.get(n.v) || T.get(n.w)) {
174
+ if (t.debug("Fixing and trying - removing XXX", n.v, n.w, n.name), i = F(n.v), a = F(n.w), e.removeEdge(n.v, n.w, n.name), i !== n.v) {
175
+ let t = e.parent(i);
176
+ T.get(t).externalConnections = !0, r.fromCluster = n.v;
177
+ }
178
+ if (a !== n.w) {
179
+ let t = e.parent(a);
180
+ T.get(t).externalConnections = !0, r.toCluster = n.w;
181
+ }
182
+ t.debug("Fix Replacing with XXX", i, a, n.name), e.setEdge(i, a, r, n.name);
183
+ }
184
+ }), L(e, 0), t.trace(T);
185
+ }, "adjustClustersAndEdges"), L = /* @__PURE__ */ r((n, r) => {
186
+ if (r > 10) {
187
+ t.error("Bailing out");
188
+ return;
189
+ }
190
+ let i = n.nodes(), a = !1;
191
+ for (let e of i) {
192
+ let t = n.children(e);
193
+ a ||= t.length > 0;
194
+ }
195
+ if (!a) {
196
+ t.debug("Done, no node has children", n.nodes());
197
+ return;
198
+ }
199
+ t.debug("Nodes = ", i, r);
200
+ for (let a of i) if (t.debug("Extracting node", a, T, T.has(a) && !T.get(a).externalConnections, !n.parent(a), n.node(a), n.children("D"), " Depth ", r), !T.has(a)) t.debug("Not a cluster", a, r);
201
+ else if (!T.get(a).externalConnections && n.children(a) && n.children(a).length > 0) {
202
+ t.debug("Cluster without external connections, without a parent and with children", a, r);
203
+ let i = n.graph().rankdir === "TB" ? "LR" : "TB";
204
+ T.get(a)?.clusterData?.dir && (i = T.get(a).clusterData.dir, t.debug("Fixing dir", T.get(a).clusterData.dir, i));
205
+ let o = new e({
206
+ multigraph: !0,
207
+ compound: !0
208
+ }).setGraph({
209
+ rankdir: i,
210
+ nodesep: 50,
211
+ ranksep: 50,
212
+ marginx: 8,
213
+ marginy: 8
214
+ }).setDefaultEdgeLabel(function() {
215
+ return {};
216
+ });
217
+ j(a, n, o, a), n.setNode(a, {
218
+ clusterNode: !0,
219
+ id: a,
220
+ clusterData: T.get(a).clusterData,
221
+ label: T.get(a).label,
222
+ graph: o
223
+ });
224
+ } else t.debug("Cluster ** ", a, " **not meeting the criteria !externalConnections:", !T.get(a).externalConnections, " no parent: ", !n.parent(a), " children ", n.children(a) && n.children(a).length > 0, n.children("D"), r), t.debug(T);
225
+ i = n.nodes(), t.debug("New list of nodes", i);
226
+ for (let e of i) {
227
+ let i = n.node(e);
228
+ t.debug(" Now next level", e, i), i?.clusterNode && L(i.graph, r + 1);
229
+ }
230
+ }, "extractor"), R = /* @__PURE__ */ r((e, t) => {
231
+ if (t.length === 0) return [];
232
+ let n = Object.assign([], t);
233
+ return t.forEach((t) => {
234
+ let r = R(e, e.children(t));
235
+ n = [...n, ...r];
236
+ }), n;
237
+ }, "sorter"), z = /* @__PURE__ */ r((e) => R(e, e.children()), "sortNodesByHierarchy"), B = /* @__PURE__ */ r((e, t, n) => {
238
+ let r = e.parent(t);
239
+ for (; r && r !== n;) {
240
+ let t = T.get(r);
241
+ if (t && !t.externalConnections) return !0;
242
+ r = e.parent(r);
243
+ }
244
+ return !1;
245
+ }, "isNodeInExtractableCluster"), V = /* @__PURE__ */ r((e, t, n) => {
246
+ let r = e.children(t) ?? [];
247
+ for (let i of r) {
248
+ if (i === n || k(i, n)) continue;
249
+ let r = P(i, e, t);
250
+ if (r && !B(e, r, t)) return r;
251
+ }
252
+ return null;
253
+ }, "findSafeAnchorNode");
254
+ function H({ prepareLayout: e, measureLayout: t, runLayoutCore: n, paintLayout: i, afterPaint: a, paintOptions: o }) {
255
+ let s = t ?? W;
256
+ return /* @__PURE__ */ r(async function(t, r, c, l) {
257
+ let u = r.select("g");
258
+ (c?.insertMarkers ?? f)(u, t.markers, t.type, t.diagramId), U();
259
+ let d = {
260
+ element: u,
261
+ helpers: c,
262
+ options: l
263
+ };
264
+ d.preparedLayout = await e?.(t, d);
265
+ let p = await s(t, d), m = await n(t, d), h = {
266
+ ...d,
267
+ measure: p
268
+ };
269
+ i ? await i(t, h, m) : await G(t, h, o), await a?.(t, h, m);
270
+ }, "render");
271
+ }
272
+ r(H, "createCommonLayoutRenderer");
273
+ function U() {
274
+ u(), g(), y(), O();
275
+ }
276
+ r(U, "clearLayoutRenderState");
277
+ async function W(e, { element: t }, n) {
278
+ return await w(t, e, n);
279
+ }
280
+ r(W, "defaultMeasureLayout");
281
+ async function G(e, t, n = {}) {
282
+ let { measure: r } = t, { groups: i } = r;
283
+ for (let r of n.getNodes?.(e, t) ?? e.nodes) n.skipNode?.(r, t) || await K(i, r, t, n);
284
+ let a = J(e.nodes);
285
+ for (let r of e.edges) Y(r, n) || await X(i, r, a, e, n, t);
286
+ }
287
+ r(G, "paintLayoutData");
288
+ async function K(e, t, n, r) {
289
+ t.clusterNode ? s(t) : q(t, n, r) ? await v(e.clusters, t) : s(t);
290
+ }
291
+ r(K, "paintLayoutNode");
292
+ function q(e, t, n) {
293
+ return e.isGroup === !0 && (n.isCluster?.(e, t) ?? !0);
294
+ }
295
+ r(q, "shouldPaintAsCluster");
296
+ function J(e) {
297
+ let t = /* @__PURE__ */ new Map();
298
+ for (let n of e) n?.id && t.set(n.id, n);
299
+ return t;
300
+ }
301
+ r(J, "buildNodeLookup");
302
+ function Y(e, t) {
303
+ return e.isLayoutOnly || !!t.skipEdge?.(e);
304
+ }
305
+ r(Y, "shouldSkipPaintEdge");
306
+ async function X(e, t, n, r, i, a) {
307
+ let o = p(e.edgePaths, { ...t }, i.clusterDb ?? /* @__PURE__ */ new Map(), r.type, Z(t.start, t, n, a, i), Z(t.end, t, n, a, i), r.diagramId, Q(t, i));
308
+ h(t) && (m.has(t.id) || await d(e.edgeLabels, t), $(t, o));
309
+ }
310
+ r(X, "paintLayoutEdge");
311
+ function Z(e, t, n, r, i) {
312
+ return i.getEdgeNode?.(e, t, r) ?? (e ? n.get(e) ?? {} : {});
313
+ }
314
+ r(Z, "getRenderedNode");
315
+ function Q(e, t) {
316
+ return typeof t.skipIntersect == "function" ? t.skipIntersect(e) : t.skipIntersect ?? !1;
317
+ }
318
+ r(Q, "shouldSkipIntersect");
319
+ function $(e, r) {
320
+ let a = r?.updatedPath ?? r?.originalPath, { subGraphTitleTotalMargin: o } = c({ flowchart: i().flowchart ?? {} });
321
+ if (e.label) {
322
+ let i = m.get(e.id), s = e.x, c = e.y;
323
+ if (a) {
324
+ let i = n.calcLabelPosition(a);
325
+ t.debug("Moving label " + e.label + " from (", s, ",", c, ") to (", i.x, ",", i.y, ") abc88"), r?.updatedPath && (s = i.x, c = i.y);
326
+ }
327
+ i.attr("transform", `translate(${s}, ${c + o / 2})`);
328
+ }
329
+ if (e?.startLabelLeft) {
330
+ let t = _.get(e.id).startLeft, r = e?.x, i = e?.y;
331
+ if (a) {
332
+ let t = n.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", a);
333
+ r = t.x, i = t.y;
334
+ }
335
+ t.attr("transform", `translate(${r}, ${i})`);
336
+ }
337
+ if (e.startLabelRight) {
338
+ let t = _.get(e.id).startRight, r = e.x, i = e.y;
339
+ if (a) {
340
+ let t = n.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_right", a);
341
+ r = t.x, i = t.y;
342
+ }
343
+ t.attr("transform", `translate(${r}, ${i})`);
344
+ }
345
+ if (e.endLabelLeft) {
346
+ let t = _.get(e.id).endLeft, r = e.x, i = e.y;
347
+ if (a) {
348
+ let t = n.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", a);
349
+ r = t.x, i = t.y;
350
+ }
351
+ t.attr("transform", `translate(${r}, ${i})`);
352
+ }
353
+ if (e.endLabelRight) {
354
+ let t = _.get(e.id).endRight, r = e.x, i = e.y;
355
+ if (a) {
356
+ let t = n.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", a);
357
+ r = t.x, i = t.y;
358
+ }
359
+ t.attr("transform", `translate(${r}, ${i})`);
360
+ }
361
+ }
362
+ r($, "positionRenderedEdgeLabel");
363
+ //#endregion
364
+ export { W as a, z as c, b as i, T as n, P as o, H as r, S as s, I as t };
@@ -0,0 +1,37 @@
1
+ import { n as e } from "./src-B4npqWNl.js";
2
+ import { u as t } from "./chunk-ZIGJFQKS-CP5430fN.js";
3
+ import { n } from "./chunk-Y2CYZVJY-i11wjrBe.js";
4
+ import { s as r } from "./chunk-7INBJB4K-C3x7JNTG.js";
5
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-5DYCD2WN.mjs
6
+ var i = /* @__PURE__ */ n(({ flowchart: e }) => {
7
+ let t = e?.subGraphTitleMargin?.top ?? 0, n = e?.subGraphTitleMargin?.bottom ?? 0;
8
+ return {
9
+ subGraphTitleTopMargin: t,
10
+ subGraphTitleBottomMargin: n,
11
+ subGraphTitleTotalMargin: t + n
12
+ };
13
+ }, "getSubGraphTitleMargins"), a = /* @__PURE__ */ new Map();
14
+ async function o(e, n, i) {
15
+ let o, s;
16
+ n.shape === "rect" && (n.rx && n.ry ? n.shape = "roundedRect" : n.shape = "squareRect");
17
+ let c = n.shape ? r[n.shape] : void 0;
18
+ if (!c) throw Error(`No such shape: ${n.shape}. Please check your syntax.`);
19
+ if (n.link) {
20
+ let t;
21
+ i.config.securityLevel === "sandbox" ? t = "_top" : n.linkTarget && (t = n.linkTarget || "_blank"), o = e.insert("svg:a").attr("xlink:href", n.link).attr("target", t ?? null), s = await c(o, n, i);
22
+ } else s = await c(e, n, i), o = s;
23
+ return o.attr("data-look", t(n.look)), n.tooltip && s.attr("title", n.tooltip), a.set(n.id, o), n.haveCallback && o.attr("class", o.attr("class") + " clickable"), o;
24
+ }
25
+ n(o, "insertNode");
26
+ var s = /* @__PURE__ */ n((e, t) => {
27
+ a.set(t.id, e);
28
+ }, "setNodeElem"), c = /* @__PURE__ */ n(() => {
29
+ a.clear();
30
+ }, "clear"), l = /* @__PURE__ */ n((t) => {
31
+ let n = a.get(t.id);
32
+ e.trace("Transforming node", t.diff, t, "translate(" + (t.x - t.width / 2 - 5) + ", " + t.width / 2 + ")");
33
+ let r = t.diff || 0;
34
+ return t.clusterNode ? n.attr("transform", "translate(" + (t.x + r - t.width / 2) + ", " + (t.y - t.height / 2 - 8) + ")") : n.attr("transform", "translate(" + t.x + ", " + t.y + ")"), r;
35
+ }, "positionNode");
36
+ //#endregion
37
+ export { s as a, l as i, i as n, o as r, c as t };
@@ -0,0 +1,5 @@
1
+ import { n as e } from "./chunk-Y2CYZVJY-i11wjrBe.js";
2
+ //#region 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 };
@@ -0,0 +1,10 @@
1
+ import { t as e } from "./src-B4npqWNl.js";
2
+ import { n as t } from "./chunk-Y2CYZVJY-i11wjrBe.js";
3
+ import { x as n } from "./chunk-O7XYJQB3-md6vjVm4.js";
4
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-6AEJRKK7.mjs
5
+ var r = /* @__PURE__ */ t((t) => {
6
+ let { securityLevel: r } = n(), i = e("body");
7
+ return r === "sandbox" && (i = e((e(`#i${t}`).node()?.contentDocument ?? document).body)), i.select(`#${t}`);
8
+ }, "selectSvgElement");
9
+ //#endregion
10
+ export { r as t };