@ucap-llm/ai-ui 1.1.13 → 1.1.15

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 (111) hide show
  1. package/_basePickBy-DMehTBs0-8955b30b.mjs +151 -0
  2. package/_basePickBy-e7598e72.mjs +153 -0
  3. package/{_baseUniq-2bcae05e.mjs → _baseUniq-8cd7fbc4.mjs} +150 -150
  4. package/_baseUniq-DPnX6tpB-5eb6efbd.mjs +615 -0
  5. package/ai-ui.es.js +9 -8
  6. package/ai-ui.umd.js +3425 -923
  7. package/arc-8909f880.mjs +85 -0
  8. package/arc-qimaJRLH-591a6072.mjs +85 -0
  9. package/architecture-4AB2E3PP-DFmEpUnA-62fe65dd.mjs +10 -0
  10. package/architecture-4AB2E3PP-b04ae9dd.mjs +10 -0
  11. package/{architectureDiagram-IEHRJDOE-e4684ef3.mjs → architectureDiagram-IEHRJDOE-1ccc2c64.mjs} +123 -123
  12. package/architectureDiagram-IEHRJDOE-BRVAVUEE-c068faae.mjs +4641 -0
  13. package/{blockDiagram-JOT3LUYC-504ee31e.mjs → blockDiagram-JOT3LUYC-63569de5.mjs} +5 -5
  14. package/blockDiagram-JOT3LUYC-Cs4tSRey-54d8e29b.mjs +2251 -0
  15. package/{c4Diagram-VJAJSXHY-c5ba6af4.mjs → c4Diagram-VJAJSXHY-355a4170.mjs} +23 -23
  16. package/c4Diagram-VJAJSXHY-C3F9fO0L-0df97cd8.mjs +1583 -0
  17. package/channel-CuHzivgY-bb3d765a.mjs +5 -0
  18. package/channel-a1f4f18c.mjs +5 -0
  19. package/{chunk-4BMEZGHF-8d9a2e4f.mjs → chunk-4BMEZGHF-705995af.mjs} +1 -1
  20. package/chunk-4BMEZGHF-btTOjzEX-c9c5432c.mjs +9 -0
  21. package/{chunk-A2AXSNBT-41ae29f2.mjs → chunk-A2AXSNBT-3a857566.mjs} +10 -10
  22. package/chunk-A2AXSNBT-CPBZRsS7-a80df701.mjs +1373 -0
  23. package/{chunk-AEK57VVT-69e121d6.mjs → chunk-AEK57VVT-6c60e1ee.mjs} +45 -45
  24. package/chunk-AEK57VVT-D62Iwyam-238a3d85.mjs +1361 -0
  25. package/{chunk-D6G4REZN-472adc5b.mjs → chunk-D6G4REZN-11c52918.mjs} +5 -5
  26. package/chunk-D6G4REZN-HlFmQTJy-20704636.mjs +64 -0
  27. package/chunk-RZ5BOZE2-DIFgOqDt-495bec03.mjs +24 -0
  28. package/{chunk-RZ5BOZE2-b7d5d4f5.mjs → chunk-RZ5BOZE2-d6db8103.mjs} +9 -9
  29. package/chunk-XZIHB7SX-CCrbsG0u-f30e4124.mjs +15 -0
  30. package/{chunk-XZIHB7SX-56c08d07.mjs → chunk-XZIHB7SX-fafd3ca2.mjs} +1 -1
  31. package/classDiagram-GIVACNV2-Bv5U0XPL-622b22ed.mjs +18 -0
  32. package/{classDiagram-v2-COTLJTTW-1deea5cc.mjs → classDiagram-GIVACNV2-eca9aeb6.mjs} +5 -5
  33. package/classDiagram-v2-COTLJTTW-Bv5U0XPL-622b22ed.mjs +18 -0
  34. package/{classDiagram-GIVACNV2-1deea5cc.mjs → classDiagram-v2-COTLJTTW-eca9aeb6.mjs} +5 -5
  35. package/{clone-1f18a17f.mjs → clone-327a1426.mjs} +1 -1
  36. package/clone-Csc9uFbU-6c4f28bd.mjs +8 -0
  37. package/cytoscape.esm-Swd9B-1A-3101f241.mjs +18730 -0
  38. package/{dagre-OKDRZEBW-74e73dcf.mjs → dagre-OKDRZEBW-9059bb36.mjs} +81 -81
  39. package/dagre-OKDRZEBW-CoMQYlxF-96274fb0.mjs +448 -0
  40. package/{diagram-SSKATNLV-1a562cb0.mjs → diagram-SSKATNLV-70f68e72.mjs} +34 -34
  41. package/diagram-SSKATNLV-CPuZUaGP-50edcaa0.mjs +225 -0
  42. package/{diagram-VNBRO52H-b765e46f.mjs → diagram-VNBRO52H-39273710.mjs} +35 -35
  43. package/diagram-VNBRO52H-DIIZ-Sll-969266e6.mjs +130 -0
  44. package/{erDiagram-Q7BY3M3F-022c4343.mjs → erDiagram-Q7BY3M3F-96ba3906.mjs} +3 -3
  45. package/erDiagram-Q7BY3M3F-ZKWAM_uE-41c0350d.mjs +843 -0
  46. package/{flowDiagram-4HSFHLVR-6036e284.mjs → flowDiagram-4HSFHLVR-795e3830.mjs} +29 -29
  47. package/flowDiagram-4HSFHLVR-CUJXGEG3-801dde13.mjs +1624 -0
  48. package/{ganttDiagram-APWFNJXF-be871387.mjs → ganttDiagram-APWFNJXF-736e67b6.mjs} +398 -398
  49. package/ganttDiagram-APWFNJXF-C1pgubbs-20beffc3.mjs +2527 -0
  50. package/gitGraph-O2Q2CXLX-00465db9.mjs +10 -0
  51. package/gitGraph-O2Q2CXLX-BYavwGzs-e5f1990e.mjs +10 -0
  52. package/{gitGraphDiagram-7IBYFJ6S-da63c888.mjs → gitGraphDiagram-7IBYFJ6S-115329ab.mjs} +88 -88
  53. package/gitGraphDiagram-7IBYFJ6S-CndxirR4-b39d4089.mjs +716 -0
  54. package/{graph-e71f0e3e.mjs → graph-9e073c5f.mjs} +8 -8
  55. package/graph-DOmtxVvg-727f4e14.mjs +247 -0
  56. package/index-433e2395.mjs +168385 -0
  57. package/info-4N47QTOZ-688db415.mjs +10 -0
  58. package/info-4N47QTOZ-DPyDFN1Z-821cf2f7.mjs +10 -0
  59. package/{infoDiagram-PH2N3AL5-3e1c1c1f.mjs → infoDiagram-PH2N3AL5-29e9585a.mjs} +9 -9
  60. package/infoDiagram-PH2N3AL5-BkSS3vpU-ef4bf66d.mjs +26 -0
  61. package/init-DjUOC4st-87c930f1.mjs +16 -0
  62. package/{journeyDiagram-U35MCT3I-6d29748d.mjs → journeyDiagram-U35MCT3I-7c5644d1.mjs} +41 -41
  63. package/journeyDiagram-U35MCT3I-BN-kCDeJ-ac350902.mjs +811 -0
  64. package/{kanban-definition-NDS4AKOZ-c231ae4c.mjs → kanban-definition-NDS4AKOZ-eff441f9.mjs} +47 -47
  65. package/kanban-definition-NDS4AKOZ-gaDUOiKt-efdba942.mjs +720 -0
  66. package/{layout-b9b9e407.mjs → layout-501d22f0.mjs} +19 -19
  67. package/layout-8X5HiOVA-b6e13cf9.mjs +1323 -0
  68. package/linear-BgV5F0PU-8137edad.mjs +447 -0
  69. package/{linear-99040ddc.mjs → linear-fd3cd932.mjs} +56 -56
  70. package/{mermaid-parser.core-55f134dc.mjs → mermaid-parser.core-6eb44241.mjs} +160 -160
  71. package/mermaid-parser.core-BTS3sfcL-8c80284a.mjs +12810 -0
  72. package/{mindmap-definition-ALO5MXBD-938e2e65.mjs → mindmap-definition-ALO5MXBD-2fe3c748.mjs} +1 -1
  73. package/mindmap-definition-ALO5MXBD-B8q_1sIj-c3599d3c.mjs +3225 -0
  74. package/ordinal-DfAQgscy-1c8e46a9.mjs +65 -0
  75. package/package.json +2 -2
  76. package/packet-KVYON367-DcfdOX-U-afac932a.mjs +10 -0
  77. package/packet-KVYON367-c82af3fe.mjs +10 -0
  78. package/pie-R6RNRRYF-DKruFncB-d07f60c2.mjs +10 -0
  79. package/pie-R6RNRRYF-eb27797b.mjs +10 -0
  80. package/pieDiagram-IB7DONF6-Bijui6_Q-db9fdf3a.mjs +166 -0
  81. package/{pieDiagram-IB7DONF6-6a11673b.mjs → pieDiagram-IB7DONF6-e6863984.mjs} +36 -36
  82. package/{quadrantDiagram-7GDLP6J5-a4a4d9ac.mjs → quadrantDiagram-7GDLP6J5-88df12c2.mjs} +15 -15
  83. package/quadrantDiagram-7GDLP6J5-DzIzViUj-b13add98.mjs +1027 -0
  84. package/radar-MK3ICKWK-723229d0.mjs +10 -0
  85. package/radar-MK3ICKWK-D8wbkmr5-3165faf6.mjs +10 -0
  86. package/{requirementDiagram-KVF5MWMF-a7093c74.mjs → requirementDiagram-KVF5MWMF-7228051c.mjs} +50 -50
  87. package/requirementDiagram-KVF5MWMF-Hqsbdpfq-23374f24.mjs +853 -0
  88. package/{sankeyDiagram-QLVOVGJD-f4bcbb2d.mjs → sankeyDiagram-QLVOVGJD-00a31a99.mjs} +87 -87
  89. package/sankeyDiagram-QLVOVGJD-DGCeusqJ-8ca7e64d.mjs +826 -0
  90. package/{sequenceDiagram-X6HHIX6F-9071cfff.mjs → sequenceDiagram-X6HHIX6F-de203309.mjs} +3 -3
  91. package/sequenceDiagram-X6HHIX6F-kuEE9wSd-5f0ec5cd.mjs +2283 -0
  92. package/{stateDiagram-DGXRK772-fb22a7a5.mjs → stateDiagram-DGXRK772-2341237a.mjs} +48 -48
  93. package/stateDiagram-DGXRK772-Cq-Ce3WP-266efa7f.mjs +274 -0
  94. package/{stateDiagram-v2-YXO3MK2T-67326b76.mjs → stateDiagram-v2-YXO3MK2T-8c81deed.mjs} +5 -5
  95. package/stateDiagram-v2-YXO3MK2T-CplwFWn1-c0024e4e.mjs +18 -0
  96. package/style.css +10 -1
  97. package/timeline-definition-BDJGKUSR-USv5sZzx-22548912.mjs +806 -0
  98. package/{timeline-definition-BDJGKUSR-44f50d45.mjs → timeline-definition-BDJGKUSR-e615901b.mjs} +79 -79
  99. package/{xychartDiagram-VJFVF3MP-2df503f6.mjs → xychartDiagram-VJFVF3MP-9ad66a6b.mjs} +28 -28
  100. package/xychartDiagram-VJFVF3MP-CXCfFZBM-e5ca151e.mjs +1306 -0
  101. package/_basePickBy-12958109.mjs +0 -153
  102. package/arc-14f9a207.mjs +0 -85
  103. package/architecture-4AB2E3PP-bb512ddb.mjs +0 -10
  104. package/channel-7bd711b4.mjs +0 -5
  105. package/gitGraph-O2Q2CXLX-83cfcbef.mjs +0 -10
  106. package/index-f83d4b07.mjs +0 -97448
  107. package/info-4N47QTOZ-20cf90f5.mjs +0 -10
  108. package/katex-2e45926a.mjs +0 -11700
  109. package/packet-KVYON367-453a49e8.mjs +0 -10
  110. package/pie-R6RNRRYF-4d95c8dc.mjs +0 -10
  111. package/radar-MK3ICKWK-100e8fa4.mjs +0 -10
@@ -1,9 +1,9 @@
1
- import { _ as X, aq as F, ar as Y, as as _, at as H, l as i, d as V, au as q, av as U, af as $, ak as z, ag as P, ae as K, aw as Q, ax as W, ay as Z } from "./index-f83d4b07.mjs";
2
- import { G as B } from "./graph-e71f0e3e.mjs";
3
- import { l as I } from "./layout-b9b9e407.mjs";
4
- import { i as x } from "./_baseUniq-2bcae05e.mjs";
5
- import { c as L } from "./clone-1f18a17f.mjs";
6
- import { m as A } from "./_basePickBy-12958109.mjs";
1
+ import { bz as X, cV as Y, cW as j, cX as H, cY as _, bM as i, bF as V, cZ as $, c_ as z, cG as U, cL as W, cH as P, cF as Z, c$ as q, d0 as K, d1 as Q } from "./index-433e2395.mjs";
2
+ import { G as B } from "./graph-9e073c5f.mjs";
3
+ import { l as L } from "./layout-501d22f0.mjs";
4
+ import { i as x } from "./_baseUniq-8cd7fbc4.mjs";
5
+ import { c as I } from "./clone-327a1426.mjs";
6
+ import { m as A } from "./_basePickBy-e7598e72.mjs";
7
7
  import "vue";
8
8
  function E(e) {
9
9
  var t = {
@@ -15,12 +15,12 @@ function E(e) {
15
15
  nodes: ee(e),
16
16
  edges: ne(e)
17
17
  };
18
- return x(e.graph()) || (t.value = L(e.graph())), t;
18
+ return x(e.graph()) || (t.value = I(e.graph())), t;
19
19
  }
20
20
  function ee(e) {
21
21
  return A(e.nodes(), function(t) {
22
- var n = e.node(t), o = e.parent(t), c = { v: t };
23
- return x(n) || (c.value = n), x(o) || (c.parent = o), c;
22
+ var n = e.node(t), o = e.parent(t), a = { v: t };
23
+ return x(n) || (a.value = n), x(o) || (a.parent = o), a;
24
24
  });
25
25
  }
26
26
  function ne(e) {
@@ -29,15 +29,15 @@ function ne(e) {
29
29
  return x(t.name) || (o.name = t.name), x(n) || (o.value = n), o;
30
30
  });
31
31
  }
32
- var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), J = /* @__PURE__ */ new Map(), te = /* @__PURE__ */ X(() => {
33
- b.clear(), J.clear(), f.clear();
32
+ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), G = /* @__PURE__ */ new Map(), te = /* @__PURE__ */ X(() => {
33
+ b.clear(), G.clear(), f.clear();
34
34
  }, "clear"), O = /* @__PURE__ */ X((e, t) => {
35
35
  const n = b.get(t) || [];
36
36
  return i.trace("In isDescendant", t, " ", e, " = ", n.includes(e)), n.includes(e);
37
37
  }, "isDescendant"), se = /* @__PURE__ */ X((e, t) => {
38
38
  const n = b.get(t) || [];
39
39
  return i.info("Descendants of ", t, " is ", n), i.info("Edge is ", e), e.v === t || e.w === t ? !1 : n ? n.includes(e.v) || O(e.v, t) || O(e.w, t) || n.includes(e.w) : (i.debug("Tilt, ", t, ",not in descendants"), !1);
40
- }, "edgeInCluster"), G = /* @__PURE__ */ X((e, t, n, o) => {
40
+ }, "edgeInCluster"), J = /* @__PURE__ */ X((e, t, n, o) => {
41
41
  i.warn(
42
42
  "Copying children of ",
43
43
  e,
@@ -47,27 +47,27 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), J = /* @__PURE
47
47
  t.node(e),
48
48
  o
49
49
  );
50
- const c = t.children(e) || [];
51
- e !== o && c.push(e), i.warn("Copying (nodes) clusterId", e, "nodes", c), c.forEach((a) => {
52
- if (t.children(a).length > 0)
53
- G(a, t, n, o);
50
+ const a = t.children(e) || [];
51
+ e !== o && a.push(e), i.warn("Copying (nodes) clusterId", e, "nodes", a), a.forEach((c) => {
52
+ if (t.children(c).length > 0)
53
+ J(c, t, n, o);
54
54
  else {
55
- const r = t.node(a);
56
- i.info("cp ", a, " to ", o, " with parent ", e), n.setNode(a, r), o !== t.parent(a) && (i.warn("Setting parent", a, t.parent(a)), n.setParent(a, t.parent(a))), e !== o && a !== e ? (i.debug("Setting parent", a, e), n.setParent(a, e)) : (i.info("In copy ", e, "root", o, "data", t.node(e), o), i.debug(
55
+ const r = t.node(c);
56
+ i.info("cp ", c, " to ", o, " with parent ", e), n.setNode(c, r), o !== t.parent(c) && (i.warn("Setting parent", c, t.parent(c)), n.setParent(c, t.parent(c))), e !== o && c !== e ? (i.debug("Setting parent", c, e), n.setParent(c, e)) : (i.info("In copy ", e, "root", o, "data", t.node(e), o), i.debug(
57
57
  "Not Setting parent for node=",
58
- a,
58
+ c,
59
59
  "cluster!==rootId",
60
60
  e !== o,
61
61
  "node!==clusterId",
62
- a !== e
62
+ c !== e
63
63
  ));
64
- const u = t.edges(a);
64
+ const u = t.edges(c);
65
65
  i.debug("Copying Edges", u), u.forEach((l) => {
66
66
  i.info("Edge", l);
67
- const h = t.edge(l.v, l.w, l.name);
68
- i.info("Edge data", h, o);
67
+ const v = t.edge(l.v, l.w, l.name);
68
+ i.info("Edge data", v, o);
69
69
  try {
70
- se(l, o) ? (i.info("Copying as ", l.v, l.w, h, l.name), n.setEdge(l.v, l.w, h, l.name), i.info("newGraph edges ", n.edges(), n.edge(n.edges()[0]))) : i.info(
70
+ se(l, o) ? (i.info("Copying as ", l.v, l.w, v, l.name), n.setEdge(l.v, l.w, v, l.name), i.info("newGraph edges ", n.edges(), n.edge(n.edges()[0]))) : i.info(
71
71
  "Skipping copy of edge ",
72
72
  l.v,
73
73
  "-->",
@@ -82,31 +82,31 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), J = /* @__PURE
82
82
  }
83
83
  });
84
84
  }
85
- i.debug("Removing node", a), t.removeNode(a);
85
+ i.debug("Removing node", c), t.removeNode(c);
86
86
  });
87
87
  }, "copy"), R = /* @__PURE__ */ X((e, t) => {
88
88
  const n = t.children(e);
89
89
  let o = [...n];
90
- for (const c of n)
91
- J.set(c, e), o = [...o, ...R(c, t)];
90
+ for (const a of n)
91
+ G.set(a, e), o = [...o, ...R(a, t)];
92
92
  return o;
93
93
  }, "extractDescendants"), ie = /* @__PURE__ */ X((e, t, n) => {
94
- const o = e.edges().filter((l) => l.v === t || l.w === t), c = e.edges().filter((l) => l.v === n || l.w === n), a = o.map((l) => ({ v: l.v === t ? n : l.v, w: l.w === t ? t : l.w })), r = c.map((l) => ({ v: l.v, w: l.w }));
95
- return a.filter((l) => r.some((h) => l.v === h.v && l.w === h.w));
94
+ const o = e.edges().filter((l) => l.v === t || l.w === t), a = e.edges().filter((l) => l.v === n || l.w === n), c = o.map((l) => ({ v: l.v === t ? n : l.v, w: l.w === t ? t : l.w })), r = a.map((l) => ({ v: l.v, w: l.w }));
95
+ return c.filter((l) => r.some((v) => l.v === v.v && l.w === v.w));
96
96
  }, "findCommonEdges"), D = /* @__PURE__ */ X((e, t, n) => {
97
97
  const o = t.children(e);
98
98
  if (i.trace("Searching children of id ", e, o), o.length < 1)
99
99
  return e;
100
- let c;
101
- for (const a of o) {
102
- const r = D(a, t, n), u = ie(t, n, r);
100
+ let a;
101
+ for (const c of o) {
102
+ const r = D(c, t, n), u = ie(t, n, r);
103
103
  if (r)
104
104
  if (u.length > 0)
105
- c = r;
105
+ a = r;
106
106
  else
107
107
  return r;
108
108
  }
109
- return c;
109
+ return a;
110
110
  }, "findNonClusterChild"), k = /* @__PURE__ */ X((e) => !f.has(e) || !f.get(e).externalConnections ? e : f.has(e) ? f.get(e).id : e, "getAnchorId"), re = /* @__PURE__ */ X((e, t) => {
111
111
  if (!e || t > 10) {
112
112
  i.debug("Opting out, no graph ");
@@ -121,20 +121,20 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), J = /* @__PURE
121
121
  D(n, e, n)
122
122
  ), b.set(n, R(n, e)), f.set(n, { id: D(n, e, n), clusterData: e.node(n) }));
123
123
  }), e.nodes().forEach(function(n) {
124
- const o = e.children(n), c = e.edges();
125
- o.length > 0 ? (i.debug("Cluster identified", n, b), c.forEach((a) => {
126
- const r = O(a.v, n), u = O(a.w, n);
127
- r ^ u && (i.warn("Edge: ", a, " leaves cluster ", n), i.warn("Descendants of XXX ", n, ": ", b.get(n)), f.get(n).externalConnections = !0);
124
+ const o = e.children(n), a = e.edges();
125
+ o.length > 0 ? (i.debug("Cluster identified", n, b), a.forEach((c) => {
126
+ const r = O(c.v, n), u = O(c.w, n);
127
+ r ^ u && (i.warn("Edge: ", c, " leaves cluster ", n), i.warn("Descendants of XXX ", n, ": ", b.get(n)), f.get(n).externalConnections = !0);
128
128
  })) : i.debug("Not a cluster ", n, b);
129
129
  });
130
130
  for (let n of f.keys()) {
131
- const o = f.get(n).id, c = e.parent(o);
132
- c !== n && f.has(c) && !f.get(c).externalConnections && (f.get(n).id = c);
131
+ const o = f.get(n).id, a = e.parent(o);
132
+ a !== n && f.has(a) && !f.get(a).externalConnections && (f.get(n).id = a);
133
133
  }
134
134
  e.edges().forEach(function(n) {
135
135
  const o = e.edge(n);
136
136
  i.warn("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(n)), i.warn("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(e.edge(n)));
137
- let c = n.v, a = n.w;
137
+ let a = n.v, c = n.w;
138
138
  if (i.warn(
139
139
  "Fix XXX",
140
140
  f,
@@ -146,19 +146,19 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), J = /* @__PURE
146
146
  " --- ",
147
147
  f.get(n.w)
148
148
  ), f.get(n.v) || f.get(n.w)) {
149
- if (i.warn("Fixing and trying - removing XXX", n.v, n.w, n.name), c = k(n.v), a = k(n.w), e.removeEdge(n.v, n.w, n.name), c !== n.v) {
150
- const r = e.parent(c);
149
+ if (i.warn("Fixing and trying - removing XXX", n.v, n.w, n.name), a = k(n.v), c = k(n.w), e.removeEdge(n.v, n.w, n.name), a !== n.v) {
150
+ const r = e.parent(a);
151
151
  f.get(r).externalConnections = !0, o.fromCluster = n.v;
152
152
  }
153
- if (a !== n.w) {
154
- const r = e.parent(a);
153
+ if (c !== n.w) {
154
+ const r = e.parent(c);
155
155
  f.get(r).externalConnections = !0, o.toCluster = n.w;
156
156
  }
157
- i.warn("Fix Replacing with XXX", c, a, n.name), e.setEdge(c, a, o, n.name);
157
+ i.warn("Fix Replacing with XXX", a, c, n.name), e.setEdge(a, c, o, n.name);
158
158
  }
159
159
  }), i.warn("Adjusted Graph", E(e)), T(e, 0), i.trace(f);
160
160
  }, "adjustClustersAndEdges"), T = /* @__PURE__ */ X((e, t) => {
161
- var c, a;
161
+ var a, c;
162
162
  if (i.warn("extractor - ", t, E(e), e.children("D")), t > 10) {
163
163
  i.error("Bailing out");
164
164
  return;
@@ -193,8 +193,8 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), J = /* @__PURE
193
193
  t
194
194
  );
195
195
  let l = e.graph().rankdir === "TB" ? "LR" : "TB";
196
- (a = (c = f.get(r)) == null ? void 0 : c.clusterData) != null && a.dir && (l = f.get(r).clusterData.dir, i.warn("Fixing dir", f.get(r).clusterData.dir, l));
197
- const h = new B({
196
+ (c = (a = f.get(r)) == null ? void 0 : a.clusterData) != null && c.dir && (l = f.get(r).clusterData.dir, i.warn("Fixing dir", f.get(r).clusterData.dir, l));
197
+ const v = new B({
198
198
  multigraph: !0,
199
199
  compound: !0
200
200
  }).setGraph({
@@ -206,13 +206,13 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), J = /* @__PURE
206
206
  }).setDefaultEdgeLabel(function() {
207
207
  return {};
208
208
  });
209
- i.warn("Old graph before copy", E(e)), G(r, e, h, r), e.setNode(r, {
209
+ i.warn("Old graph before copy", E(e)), J(r, e, v, r), e.setNode(r, {
210
210
  clusterNode: !0,
211
211
  id: r,
212
212
  clusterData: f.get(r).clusterData,
213
213
  label: f.get(r).label,
214
- graph: h
215
- }), i.warn("New graph after copy node: (", r, ")", E(h)), i.debug("Old graph after copy", E(e));
214
+ graph: v
215
+ }), i.warn("New graph after copy node: (", r, ")", E(v)), i.debug("Old graph after copy", E(e));
216
216
  } else
217
217
  i.warn(
218
218
  "Cluster ** ",
@@ -236,21 +236,21 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), J = /* @__PURE
236
236
  return [];
237
237
  let n = Object.assign([], t);
238
238
  return t.forEach((o) => {
239
- const c = e.children(o), a = M(e, c);
240
- n = [...n, ...a];
239
+ const a = e.children(o), c = M(e, a);
240
+ n = [...n, ...c];
241
241
  }), n;
242
- }, "sorter"), oe = /* @__PURE__ */ X((e) => M(e, e.children()), "sortNodesByHierarchy"), j = /* @__PURE__ */ X(async (e, t, n, o, c, a) => {
243
- i.warn("Graph in recursive render:XAX", E(t), c);
242
+ }, "sorter"), oe = /* @__PURE__ */ X((e) => M(e, e.children()), "sortNodesByHierarchy"), F = /* @__PURE__ */ X(async (e, t, n, o, a, c) => {
243
+ i.warn("Graph in recursive render:XAX", E(t), a);
244
244
  const r = t.graph().rankdir;
245
245
  i.trace("Dir in recursive render - dir:", r);
246
246
  const u = e.insert("g").attr("class", "root");
247
247
  t.nodes() ? i.info("Recursive render XXX", t.nodes()) : i.info("No nodes found for", t), t.edges().length > 0 && i.info("Recursive edges", t.edge(t.edges()[0]));
248
- const l = u.insert("g").attr("class", "clusters"), h = u.insert("g").attr("class", "edgePaths"), C = u.insert("g").attr("class", "edgeLabels"), g = u.insert("g").attr("class", "nodes");
248
+ const l = u.insert("g").attr("class", "clusters"), v = u.insert("g").attr("class", "edgePaths"), C = u.insert("g").attr("class", "edgeLabels"), g = u.insert("g").attr("class", "nodes");
249
249
  await Promise.all(
250
250
  t.nodes().map(async function(d) {
251
251
  const s = t.node(d);
252
- if (c !== void 0) {
253
- const w = JSON.parse(JSON.stringify(c.clusterData));
252
+ if (a !== void 0) {
253
+ const w = JSON.parse(JSON.stringify(a.clusterData));
254
254
  i.trace(
255
255
  `Setting data for parent cluster XXX
256
256
  Node.id = `,
@@ -260,8 +260,8 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), J = /* @__PURE
260
260
  w.height,
261
261
  `
262
262
  Parent cluster`,
263
- c.height
264
- ), t.setNode(c.id, w), t.parent(d) || (i.trace("Setting parent", d, c.id), t.setParent(d, c.id, w));
263
+ a.height
264
+ ), t.setNode(a.id, w), t.parent(d) || (i.trace("Setting parent", d, a.id), t.setParent(d, a.id, w));
265
265
  }
266
266
  if (i.info("(Insert) Node XXX" + d + ": " + JSON.stringify(t.node(d))), s != null && s.clusterNode) {
267
267
  i.info("Cluster identified XBX", d, s.width, t.node(d));
@@ -271,15 +271,15 @@ Parent cluster`,
271
271
  ranksep: w + 25,
272
272
  nodesep: m
273
273
  });
274
- const N = await j(
274
+ const N = await F(
275
275
  g,
276
276
  s.graph,
277
277
  n,
278
278
  o,
279
279
  t.node(d),
280
- a
280
+ c
281
281
  ), S = N.elem;
282
- q(s, S), s.diff = N.diff || 0, i.info(
282
+ $(s, S), s.diff = N.diff || 0, i.info(
283
283
  "New compound node after recursive render XAX",
284
284
  d,
285
285
  "width",
@@ -289,7 +289,7 @@ Parent cluster`,
289
289
  s.height
290
290
  // node.x,
291
291
  // node.y
292
- ), U(S, s);
292
+ ), z(S, s);
293
293
  } else
294
294
  t.children(d).length > 0 ? (i.trace(
295
295
  "Cluster - the non recursive path XBX",
@@ -299,7 +299,7 @@ Parent cluster`,
299
299
  s.width,
300
300
  "Graph:",
301
301
  t
302
- ), i.trace(D(s.id, t)), f.set(s.id, { id: D(s.id, t), node: s })) : (i.trace("Node - the non recursive path XAX", d, g, t.node(d), r), await $(g, t.node(d), { config: a, dir: r }));
302
+ ), i.trace(D(s.id, t)), f.set(s.id, { id: D(s.id, t), node: s })) : (i.trace("Node - the non recursive path XAX", d, g, t.node(d), r), await U(g, t.node(d), { config: c, dir: r }));
303
303
  })
304
304
  ), await (/* @__PURE__ */ X(async () => {
305
305
  const d = t.edges().map(async function(s) {
@@ -313,11 +313,11 @@ Parent cluster`,
313
313
  "Translating: ",
314
314
  f.get(s.v),
315
315
  f.get(s.w)
316
- ), await Z(C, w);
316
+ ), await Q(C, w);
317
317
  });
318
318
  await Promise.all(d);
319
- }, "processEdges"))(), i.info("Graph before layout:", JSON.stringify(E(t))), i.info("############################################# XXX"), i.info("### Layout ### XXX"), i.info("############################################# XXX"), I(t), i.info("Graph after layout:", JSON.stringify(E(t)));
320
- let p = 0, { subGraphTitleTotalMargin: y } = z(a);
319
+ }, "processEdges"))(), i.info("Graph before layout:", JSON.stringify(E(t))), i.info("############################################# XXX"), i.info("### Layout ### XXX"), i.info("############################################# XXX"), L(t), i.info("Graph after layout:", JSON.stringify(E(t)));
320
+ let p = 0, { subGraphTitleTotalMargin: y } = W(c);
321
321
  return await Promise.all(
322
322
  oe(t).map(async function(d) {
323
323
  var w;
@@ -352,7 +352,7 @@ Parent cluster`,
352
352
  t.parent(d)
353
353
  ), s.height += y, t.node(s.parentId);
354
354
  const m = (s == null ? void 0 : s.padding) / 2 || 0, N = ((w = s == null ? void 0 : s.labelBBox) == null ? void 0 : w.height) || 0, S = N - m || 0;
355
- i.debug("OffsetY", S, "labelHeight", N, "halfPadding", m), await K(l, s), f.get(s.id).node = s;
355
+ i.debug("OffsetY", S, "labelHeight", N, "halfPadding", m), await Z(l, s), f.get(s.id).node = s;
356
356
  } else {
357
357
  const m = t.node(s.parentId);
358
358
  s.y += y / 2, i.info(
@@ -378,31 +378,31 @@ Parent cluster`,
378
378
  i.info("Edge " + d.v + " -> " + d.w + ": " + JSON.stringify(s), s), s.points.forEach((S) => S.y += y / 2);
379
379
  const w = t.node(d.v);
380
380
  var m = t.node(d.w);
381
- const N = Q(h, s, f, n, w, m, o);
382
- W(s, N);
381
+ const N = q(v, s, f, n, w, m, o);
382
+ K(s, N);
383
383
  }), t.nodes().forEach(function(d) {
384
384
  const s = t.node(d);
385
385
  i.info(d, s.type, s.diff), s.isGroup && (p = s.diff);
386
386
  }), i.warn("Returning from recursive render XAX", u, p), { elem: u, diff: p };
387
387
  }, "recursiveRender"), we = /* @__PURE__ */ X(async (e, t) => {
388
- var a, r, u, l, h, C;
388
+ var c, r, u, l, v, C;
389
389
  const n = new B({
390
390
  multigraph: !0,
391
391
  compound: !0
392
392
  }).setGraph({
393
393
  rankdir: e.direction,
394
- nodesep: ((a = e.config) == null ? void 0 : a.nodeSpacing) || ((u = (r = e.config) == null ? void 0 : r.flowchart) == null ? void 0 : u.nodeSpacing) || e.nodeSpacing,
395
- ranksep: ((l = e.config) == null ? void 0 : l.rankSpacing) || ((C = (h = e.config) == null ? void 0 : h.flowchart) == null ? void 0 : C.rankSpacing) || e.rankSpacing,
394
+ nodesep: ((c = e.config) == null ? void 0 : c.nodeSpacing) || ((u = (r = e.config) == null ? void 0 : r.flowchart) == null ? void 0 : u.nodeSpacing) || e.nodeSpacing,
395
+ ranksep: ((l = e.config) == null ? void 0 : l.rankSpacing) || ((C = (v = e.config) == null ? void 0 : v.flowchart) == null ? void 0 : C.rankSpacing) || e.rankSpacing,
396
396
  marginx: 8,
397
397
  marginy: 8
398
398
  }).setDefaultEdgeLabel(function() {
399
399
  return {};
400
400
  }), o = t.select("g");
401
- F(o, e.markers, e.type, e.diagramId), Y(), _(), H(), te(), e.nodes.forEach((g) => {
401
+ Y(o, e.markers, e.type, e.diagramId), j(), H(), _(), te(), e.nodes.forEach((g) => {
402
402
  n.setNode(g.id, { ...g }), g.parentId && n.setParent(g.id, g.parentId);
403
403
  }), i.debug("Edges:", e.edges), e.edges.forEach((g) => {
404
404
  if (g.start === g.end) {
405
- const v = g.start, p = v + "---" + v + "---1", y = v + "---" + v + "---2", d = n.node(v);
405
+ const h = g.start, p = h + "---" + h + "---1", y = h + "---" + h + "---2", d = n.node(h);
406
406
  n.setNode(p, {
407
407
  domId: p,
408
408
  id: p,
@@ -429,18 +429,18 @@ Parent cluster`,
429
429
  height: 10
430
430
  }), n.setParent(y, d.parentId);
431
431
  const s = structuredClone(g), w = structuredClone(g), m = structuredClone(g);
432
- s.label = "", s.arrowTypeEnd = "none", s.id = v + "-cyclic-special-1", w.arrowTypeStart = "none", w.arrowTypeEnd = "none", w.id = v + "-cyclic-special-mid", m.label = "", d.isGroup && (s.fromCluster = v, m.toCluster = v), m.id = v + "-cyclic-special-2", m.arrowTypeStart = "none", n.setEdge(v, p, s, v + "-cyclic-special-0"), n.setEdge(p, y, w, v + "-cyclic-special-1"), n.setEdge(y, v, m, v + "-cyc<lic-special-2");
432
+ s.label = "", s.arrowTypeEnd = "none", s.id = h + "-cyclic-special-1", w.arrowTypeStart = "none", w.arrowTypeEnd = "none", w.id = h + "-cyclic-special-mid", m.label = "", d.isGroup && (s.fromCluster = h, m.toCluster = h), m.id = h + "-cyclic-special-2", m.arrowTypeStart = "none", n.setEdge(h, p, s, h + "-cyclic-special-0"), n.setEdge(p, y, w, h + "-cyclic-special-1"), n.setEdge(y, h, m, h + "-cyc<lic-special-2");
433
433
  } else
434
434
  n.setEdge(g.start, g.end, { ...g }, g.id);
435
435
  }), i.warn("Graph at first:", JSON.stringify(E(n))), re(n), i.warn("Graph after XAX:", JSON.stringify(E(n)));
436
- const c = V();
437
- await j(
436
+ const a = V();
437
+ await F(
438
438
  o,
439
439
  n,
440
440
  e.type,
441
441
  e.diagramId,
442
442
  void 0,
443
- c
443
+ a
444
444
  );
445
445
  }, "render");
446
446
  export {