@kong-ui-public/documentation 1.4.17-pr.2640.fb8bab909.0 → 1.4.17

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 (84) hide show
  1. package/dist/_basePickBy-BCsiP0lE-DJBdvZNn.js +151 -0
  2. package/dist/{_baseUniq-SAfYgIkf-buEvGj9H.js → _baseUniq-CsvgMmt0-CCBG5z_B.js} +165 -165
  3. package/dist/arc-DYb5Ak6k-js8YHzj6.js +83 -0
  4. package/dist/architecture-U656AL7Q-LZu-yAfZ-CQD6AyxA.js +5 -0
  5. package/dist/architectureDiagram-KFL7JDKH-BK_an8l5-D20M_MXF.js +4665 -0
  6. package/dist/blockDiagram-ZYB65J3Q-C0KtqCEe-pwEm3-ie.js +2265 -0
  7. package/dist/{c4Diagram-6F5ED5ID-D5yqWyf0-DzlUmurv.js → c4Diagram-AAMF2YG6-DYHWlrmc-C6NWDsTV.js} +4 -4
  8. package/dist/{channel-bVcNKbrJ-NqcPkfCx.js → channel-3QVQMCTA-BwyrTaJi.js} +1 -1
  9. package/dist/{chunk-TMUBEWPD-BRIzn5gH-alZ9Sg3f.js → chunk-ANTBXLJU-BhR1MDfy-Bec7kb00.js} +1 -1
  10. package/dist/{chunk-KFBOBJHC-nixdujtH-CrTZo7r-.js → chunk-FHKO5MBM-z_nuC8Da-Dge2Nbr5.js} +1 -1
  11. package/dist/chunk-GLLZNHP4-DgwBbAOT-BUrsAxH8.js +19 -0
  12. package/dist/chunk-JBRWN2VN-CHua2TSC-BYWS19Oz.js +1374 -0
  13. package/dist/chunk-LXBSTHXV-CoED0jHL-Cc8w4JL1.js +1382 -0
  14. package/dist/chunk-NRVI72HA-DxsqT4Dt-Bo_vu9qn.js +20 -0
  15. package/dist/{chunk-ASOPGD6M-B5bA_saK-BiT875Ve.js → chunk-OMD6QJNC-_VI6zVGr-Bb4P7zNG.js} +1 -1
  16. package/dist/chunk-WVR4S24B-C4HIWky3-CkJ0DHSJ.js +8 -0
  17. package/dist/classDiagram-3BZAVTQC-DrmNjTt_-CS9fxl_R.js +16 -0
  18. package/dist/classDiagram-v2-QTMF73CY-DrmNjTt_-CS9fxl_R.js +16 -0
  19. package/dist/{clone-_5SW34SG-DOuhA6mG.js → clone-C0dvnYv6-BozdSvey.js} +1 -1
  20. package/dist/cytoscape.esm-CjI2IsL8-DYIumutE.js +18721 -0
  21. package/dist/{dagre-4EVJKHTY-CcAruc30-B3UMlKNl.js → dagre-2BBEFEWP-Bh_bYuL8-Cej31YXN.js} +53 -53
  22. package/dist/defaultLocale-D7EN2tov-CK6dgF7Y.js +171 -0
  23. package/dist/diagram-4IRLE6MV-34TaesxP-XfF-gcP2.js +533 -0
  24. package/dist/diagram-GUPCWM2R-Cr4-5_uX-B8mxM1Uc.js +143 -0
  25. package/dist/diagram-RP2FKANI-COpvHjzI-C-_mZxuk.js +221 -0
  26. package/dist/documentation.es.js +1 -1
  27. package/dist/documentation.umd.js +860 -399
  28. package/dist/erDiagram-HZWUO2LU-Cu2MerRS-KziSgDQg.js +840 -0
  29. package/dist/flowDiagram-THRYKUMA-CfrQTB8C-BYn8LF24.js +1627 -0
  30. package/dist/ganttDiagram-WV7ZQ7D5-gkieebY_-C7YOriZ4.js +2504 -0
  31. package/dist/gitGraph-F6HP7TQM-suE5ufvy-CQDQV2yP.js +5 -0
  32. package/dist/{gitGraphDiagram-NRZ2UAAF-B-t90-9e-BkGPAEnk.js → gitGraphDiagram-OJR772UL-CYA7EIoU-Bqc1qZk4.js} +103 -103
  33. package/dist/{graph-BYZMvqpu-BXRs5843.js → graph-B_1gOUDz-Dm6REFzZ.js} +2 -2
  34. package/dist/{index-CMZig9xg.js → index-BDD0CD9m.js} +9834 -9540
  35. package/dist/info-NVLQJR56-CdsHk-Jf-tf8zb8tD.js +5 -0
  36. package/dist/infoDiagram-6WOFNB3A-ajp3t5Lm-D80dGo5F.js +24 -0
  37. package/dist/{journeyDiagram-G5WM74LC-BE7U42Ad-y6YegUqL.js → journeyDiagram-FFXJYRFH-kgCEEPLo-CakI8CyJ.js} +357 -333
  38. package/dist/{kanban-definition-QRCXZQQD-C-5-UNRm-BOYYKTAB.js → kanban-definition-KOZQBZVT-CmM4CHe6-rjuufCiO.js} +75 -73
  39. package/dist/{katex-Qk2jHgyB-_qyJ_37x.js → katex-C0Lgw_Sx-CbX2I1cQ.js} +1864 -1814
  40. package/dist/{layout-BHI4imdk-CESYC-il.js → layout-9vIfpCf3-FfABA43y.js} +81 -81
  41. package/dist/linear-C-k9vokG-Md9dfBfB.js +259 -0
  42. package/dist/{mermaid-parser.core-Ce96PX3Q-CV9ue_xr.js → mermaid-parser.core-DHL9WXVx-DeKF3RZx.js} +4080 -3590
  43. package/dist/{mindmap-definition-GWI6TPTV-C98Syvj2-DUWC1UH5.js → mindmap-definition-LNHGMQRG-BsypuFYj-DSVrvuog.js} +1112 -1100
  44. package/dist/packet-BFZMPI3H-BcK9kJ-B-BxxCPBGn.js +5 -0
  45. package/dist/pie-7BOR55EZ-Vt5px0F3-BM7egbMh.js +5 -0
  46. package/dist/pieDiagram-DBDJKBY4-Bam6gKTi-BOqYeC6c.js +161 -0
  47. package/dist/{quadrantDiagram-OS5C2QUG-M57vVPSx-BRx-dMGe.js → quadrantDiagram-YPSRARAO-CJwMw09m-CN2OO-Le.js} +2 -2
  48. package/dist/radar-NHE76QYJ-Br11XWE4-4RP4MPFA.js +5 -0
  49. package/dist/requirementDiagram-EGVEC5DT-DkRytT0X-C2zigskn.js +850 -0
  50. package/dist/{sankeyDiagram-Y46BX6SQ-D6EdYPdp-D2Qzxmhx.js → sankeyDiagram-HRAUVNP4-08s1UHMk-2j8idkNs.js} +198 -193
  51. package/dist/{sequenceDiagram-G6AWOVSC-B171TAb1-KCpoI-Ck.js → sequenceDiagram-WFGC7UMF-6_s7-CN7-D-oTpLFJ.js} +1001 -992
  52. package/dist/stateDiagram-UUKSUZ4H-eWajY90l-BlM614AN.js +263 -0
  53. package/dist/stateDiagram-v2-EYPG3UTE-Dh7Ngu1O-YVMiocHE.js +16 -0
  54. package/dist/style.css +1 -1
  55. package/dist/timeline-definition-3HZDQTIS-4TPEOhE8-fDDLVlO8.js +799 -0
  56. package/dist/treemap-KMMF4GRG-nu7WEuPi-C1YG24W8.js +5 -0
  57. package/dist/{xychartDiagram-6QU3TZC5-CqbTSF5W-CUbJ50KT.js → xychartDiagram-FDP5SA34-BbtKlU7T-D1BI5nWs.js} +459 -423
  58. package/package.json +4 -4
  59. package/dist/_basePickBy-zlkqRmFy-D6w9JBLu.js +0 -151
  60. package/dist/arc-CK9P6CkJ-DVgfRhzX.js +0 -83
  61. package/dist/architecture-I3QFYML2-DJzmbE4M-C3v7Cpg0.js +0 -5
  62. package/dist/architectureDiagram-UYN6MBPD-DkZdgpXi-BTThTJ0F.js +0 -4592
  63. package/dist/blockDiagram-ZHA2E4KO-DnCMGCMN-DBXa-baO.js +0 -2247
  64. package/dist/chunk-5HRBRIJM-BjQ8go1b-CJmT3AYe.js +0 -24
  65. package/dist/chunk-7U56Z5CX-awhAxjZ0-Cs_UWlwk.js +0 -1213
  66. package/dist/chunk-T2TOU4HS-DqOVhIzl-O3PUl7Qp.js +0 -1301
  67. package/dist/classDiagram-LNE6IOMH-fQzyXfo--DYLd8UQH.js +0 -14
  68. package/dist/classDiagram-v2-MQ7JQ4JX-fQzyXfo--DYLd8UQH.js +0 -14
  69. package/dist/cytoscape.esm-DAyNQ0qu-i5PnoWfE.js +0 -16110
  70. package/dist/diagram-QW4FP2JN-DZT_0aFO-SYzM51ke.js +0 -126
  71. package/dist/erDiagram-6RL3IURR-BfgUC5jv-BrebVho-.js +0 -937
  72. package/dist/flowDiagram-7ASYPVHJ-Bo9CnsE7-Ds2vln_y.js +0 -1484
  73. package/dist/ganttDiagram-NTVNEXSI-8E9hjd6N-fR_cmeDc.js +0 -2491
  74. package/dist/gitGraph-YCYPL57B-BnErPIwo-DXUTceC1.js +0 -5
  75. package/dist/info-46DW6VJ7-DPpbx_vA-omPXKuBd.js +0 -5
  76. package/dist/infoDiagram-A4XQUW5V-Bo9uoOcA-CnlgI27B.js +0 -22
  77. package/dist/linear-C2PheBya-BHVXLcru.js +0 -423
  78. package/dist/packet-W2GHVCYJ-BLiQbm7T-BD1xX8XM.js +0 -5
  79. package/dist/pie-BEWT4RHE-D3Mbo3mT-B4n38n6N.js +0 -5
  80. package/dist/pieDiagram-YF2LJOPJ-BJV27s9B-DA7hy5wG.js +0 -161
  81. package/dist/requirementDiagram-MIRIMTAZ-D0KDg7rf-CRMUyo68.js +0 -768
  82. package/dist/stateDiagram-MAYHULR4-D7FUnT9_-aCApnrI4.js +0 -268
  83. package/dist/stateDiagram-v2-4JROLMXI-Cyc74STT-D-7hwTRo.js +0 -14
  84. package/dist/timeline-definition-U7ZMHBDA-Bw-dp1yf-C01CsNUU.js +0 -804
@@ -1,9 +1,9 @@
1
- import { _ as w, m as L, c as M, a as j, b as F, l as t, g as Y, u as _, s as H, i as $, d as q, e as z, p as D, f as K, h as Q, j as U } from "./index-CMZig9xg.js";
2
- import { L as k } from "./graph-BYZMvqpu-BXRs5843.js";
3
- import { o as V } from "./layout-BHI4imdk-CESYC-il.js";
4
- import { E as x } from "./_baseUniq-SAfYgIkf-buEvGj9H.js";
5
- import { a as W } from "./clone-_5SW34SG-DOuhA6mG.js";
6
- import { g as G } from "./_basePickBy-zlkqRmFy-D6w9JBLu.js";
1
+ import { _ as v, m as L, c as M, a as j, b as F, l as t, g as Y, u as _, s as H, i as $, d as q, e as z, p as D, f as K, h as Q, j as U } from "./index-BDD0CD9m.js";
2
+ import { L as k } from "./graph-B_1gOUDz-Dm6REFzZ.js";
3
+ import { o as V } from "./layout-9vIfpCf3-FfABA43y.js";
4
+ import { E as S } from "./_baseUniq-CsvgMmt0-CCBG5z_B.js";
5
+ import { a as W } from "./clone-C0dvnYv6-BozdSvey.js";
6
+ import { g as G } from "./_basePickBy-BCsiP0lE-DJBdvZNn.js";
7
7
  function X(e) {
8
8
  var n = {
9
9
  options: {
@@ -14,29 +14,29 @@ function X(e) {
14
14
  nodes: Z(e),
15
15
  edges: ee(e)
16
16
  };
17
- return x(e.graph()) || (n.value = W(e.graph())), n;
17
+ return S(e.graph()) || (n.value = W(e.graph())), n;
18
18
  }
19
19
  function Z(e) {
20
20
  return G(e.nodes(), function(n) {
21
21
  var r = e.node(n), s = e.parent(n), d = { v: n };
22
- return x(r) || (d.value = r), x(s) || (d.parent = s), d;
22
+ return S(r) || (d.value = r), S(s) || (d.parent = s), d;
23
23
  });
24
24
  }
25
25
  function ee(e) {
26
26
  return G(e.edges(), function(n) {
27
27
  var r = e.edge(n), s = { v: n.v, w: n.w };
28
- return x(n.name) || (s.name = n.name), x(r) || (s.value = r), s;
28
+ return S(n.name) || (s.name = n.name), S(r) || (s.value = r), s;
29
29
  });
30
30
  }
31
- var u = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map(), ne = /* @__PURE__ */ w(() => {
31
+ var u = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map(), ne = /* @__PURE__ */ v(() => {
32
32
  N.clear(), B.clear(), u.clear();
33
- }, "clear"), I = /* @__PURE__ */ w((e, n) => {
33
+ }, "clear"), I = /* @__PURE__ */ v((e, n) => {
34
34
  const r = N.get(n) || [];
35
35
  return t.trace("In isDescendant", n, " ", e, " = ", r.includes(e)), r.includes(e);
36
- }, "isDescendant"), re = /* @__PURE__ */ w((e, n) => {
36
+ }, "isDescendant"), re = /* @__PURE__ */ v((e, n) => {
37
37
  const r = N.get(n) || [];
38
38
  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) || I(e.v, n) || I(e.w, n) || r.includes(e.w) : (t.debug("Tilt, ", n, ",not in descendants"), !1);
39
- }, "edgeInCluster"), J = /* @__PURE__ */ w((e, n, r, s) => {
39
+ }, "edgeInCluster"), J = /* @__PURE__ */ v((e, n, r, s) => {
40
40
  t.warn(
41
41
  "Copying children of ",
42
42
  e,
@@ -83,22 +83,22 @@ var u = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), B = /* @__PURE
83
83
  }
84
84
  t.debug("Removing node", c), n.removeNode(c);
85
85
  });
86
- }, "copy"), P = /* @__PURE__ */ w((e, n) => {
86
+ }, "copy"), P = /* @__PURE__ */ v((e, n) => {
87
87
  const r = n.children(e);
88
88
  let s = [...r];
89
89
  for (const d of r)
90
90
  B.set(d, e), s = [...s, ...P(d, n)];
91
91
  return s;
92
- }, "extractDescendants"), te = /* @__PURE__ */ w((e, n, r) => {
92
+ }, "extractDescendants"), te = /* @__PURE__ */ v((e, n, r) => {
93
93
  const s = e.edges().filter((l) => l.v === n || l.w === n), d = e.edges().filter((l) => l.v === r || l.w === r), c = s.map((l) => ({ v: l.v === n ? r : l.v, w: l.w === n ? n : l.w })), a = d.map((l) => ({ v: l.v, w: l.w }));
94
94
  return c.filter((l) => a.some((f) => l.v === f.v && l.w === f.w));
95
- }, "findCommonEdges"), S = /* @__PURE__ */ w((e, n, r) => {
95
+ }, "findCommonEdges"), x = /* @__PURE__ */ v((e, n, r) => {
96
96
  const s = n.children(e);
97
97
  if (t.trace("Searching children of id ", e, s), s.length < 1)
98
98
  return e;
99
99
  let d;
100
100
  for (const c of s) {
101
- const a = S(c, n, r), l = te(n, r, a);
101
+ const a = x(c, n, r), l = te(n, r, a);
102
102
  if (a)
103
103
  if (l.length > 0)
104
104
  d = a;
@@ -106,7 +106,7 @@ var u = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), B = /* @__PURE
106
106
  return a;
107
107
  }
108
108
  return d;
109
- }, "findNonClusterChild"), O = /* @__PURE__ */ w((e) => !u.has(e) || !u.get(e).externalConnections ? e : u.has(e) ? u.get(e).id : e, "getAnchorId"), ie = /* @__PURE__ */ w((e, n) => {
109
+ }, "findNonClusterChild"), O = /* @__PURE__ */ v((e) => !u.has(e) || !u.get(e).externalConnections ? e : u.has(e) ? u.get(e).id : e, "getAnchorId"), ie = /* @__PURE__ */ v((e, n) => {
110
110
  if (!e || n > 10) {
111
111
  t.debug("Opting out, no graph ");
112
112
  return;
@@ -117,8 +117,8 @@ var u = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), B = /* @__PURE
117
117
  "Cluster identified",
118
118
  r,
119
119
  " Replacement id in edges: ",
120
- S(r, e, r)
121
- ), N.set(r, P(r, e)), u.set(r, { id: S(r, e, r), clusterData: e.node(r) }));
120
+ x(r, e, r)
121
+ ), N.set(r, P(r, e)), u.set(r, { id: x(r, e, r), clusterData: e.node(r) }));
122
122
  }), e.nodes().forEach(function(r) {
123
123
  const s = e.children(r), d = e.edges();
124
124
  s.length > 0 ? (t.debug("Cluster identified", r, N), d.forEach((c) => {
@@ -155,8 +155,8 @@ var u = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), B = /* @__PURE
155
155
  }
156
156
  t.warn("Fix Replacing with XXX", d, c, r.name), e.setEdge(d, c, s, r.name);
157
157
  }
158
- }), t.warn("Adjusted Graph", X(e)), A(e, 0), t.trace(u);
159
- }, "adjustClustersAndEdges"), A = /* @__PURE__ */ w((e, n) => {
158
+ }), t.warn("Adjusted Graph", X(e)), T(e, 0), t.trace(u);
159
+ }, "adjustClustersAndEdges"), T = /* @__PURE__ */ v((e, n) => {
160
160
  var r, s;
161
161
  if (t.warn("extractor - ", n, X(e), e.children("D")), n > 10) {
162
162
  t.error("Bailing out");
@@ -228,23 +228,23 @@ var u = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), B = /* @__PURE
228
228
  d = e.nodes(), t.warn("New list of nodes", d);
229
229
  for (const a of d) {
230
230
  const l = e.node(a);
231
- t.warn(" Now next level", a, l), l != null && l.clusterNode && A(l.graph, n + 1);
231
+ t.warn(" Now next level", a, l), l != null && l.clusterNode && T(l.graph, n + 1);
232
232
  }
233
- }, "extractor"), R = /* @__PURE__ */ w((e, n) => {
233
+ }, "extractor"), A = /* @__PURE__ */ v((e, n) => {
234
234
  if (n.length === 0)
235
235
  return [];
236
236
  let r = Object.assign([], n);
237
237
  return n.forEach((s) => {
238
- const d = e.children(s), c = R(e, d);
238
+ const d = e.children(s), c = A(e, d);
239
239
  r = [...r, ...c];
240
240
  }), r;
241
- }, "sorter"), ae = /* @__PURE__ */ w((e) => R(e, e.children()), "sortNodesByHierarchy"), T = /* @__PURE__ */ w(async (e, n, r, s, d, c) => {
241
+ }, "sorter"), ae = /* @__PURE__ */ v((e) => A(e, e.children()), "sortNodesByHierarchy"), R = /* @__PURE__ */ v(async (e, n, r, s, d, c) => {
242
242
  t.warn("Graph in recursive render:XAX", X(n), d);
243
243
  const a = n.graph().rankdir;
244
244
  t.trace("Dir in recursive render - dir:", a);
245
245
  const l = e.insert("g").attr("class", "root");
246
246
  n.nodes() ? t.info("Recursive render XXX", n.nodes()) : t.info("No nodes found for", n), n.edges().length > 0 && t.info("Recursive edges", n.edge(n.edges()[0]));
247
- const f = l.insert("g").attr("class", "clusters"), E = l.insert("g").attr("class", "edgePaths"), C = l.insert("g").attr("class", "edgeLabels"), h = l.insert("g").attr("class", "nodes");
247
+ const f = l.insert("g").attr("class", "clusters"), E = l.insert("g").attr("class", "edgePaths"), C = l.insert("g").attr("class", "edgeLabels"), p = l.insert("g").attr("class", "nodes");
248
248
  await Promise.all(
249
249
  n.nodes().map(async function(g) {
250
250
  const o = n.node(g);
@@ -264,14 +264,14 @@ Parent cluster`,
264
264
  }
265
265
  if (t.info("(Insert) Node XXX" + g + ": " + JSON.stringify(n.node(g))), o != null && o.clusterNode) {
266
266
  t.info("Cluster identified XBX", g, o.width, n.node(g));
267
- const { ranksep: i, nodesep: v } = n.graph();
267
+ const { ranksep: i, nodesep: w } = n.graph();
268
268
  o.graph.setGraph({
269
269
  ...o.graph.graph(),
270
270
  ranksep: i + 25,
271
- nodesep: v
271
+ nodesep: w
272
272
  });
273
- const m = await T(
274
- h,
273
+ const m = await R(
274
+ p,
275
275
  o.graph,
276
276
  r,
277
277
  s,
@@ -298,9 +298,9 @@ Parent cluster`,
298
298
  o.width,
299
299
  "Graph:",
300
300
  n
301
- ), t.trace(S(o.id, n)), u.set(o.id, { id: S(o.id, n), node: o })) : (t.trace("Node - the non recursive path XAX", g, h, n.node(g), a), await $(h, n.node(g), { config: c, dir: a }));
301
+ ), t.trace(x(o.id, n)), u.set(o.id, { id: x(o.id, n), node: o })) : (t.trace("Node - the non recursive path XAX", g, p, n.node(g), a), await $(p, n.node(g), { config: c, dir: a }));
302
302
  })
303
- ), await (/* @__PURE__ */ w(async () => {
303
+ ), await (/* @__PURE__ */ v(async () => {
304
304
  const g = n.edges().map(async function(o) {
305
305
  const i = n.edge(o.v, o.w, o.name);
306
306
  t.info("Edge " + o.v + " -> " + o.w + ": " + JSON.stringify(o)), t.info("Edge " + o.v + " -> " + o.w + ": ", o, " ", JSON.stringify(n.edge(o))), t.info(
@@ -316,7 +316,7 @@ Parent cluster`,
316
316
  });
317
317
  await Promise.all(g);
318
318
  }, "processEdges"))(), t.info("Graph before layout:", JSON.stringify(X(n))), t.info("############################################# XXX"), t.info("### Layout ### XXX"), t.info("############################################# XXX"), V(n), t.info("Graph after layout:", JSON.stringify(X(n)));
319
- let p = 0, { subGraphTitleTotalMargin: y } = z(c);
319
+ let h = 0, { subGraphTitleTotalMargin: y } = z(c);
320
320
  return await Promise.all(
321
321
  ae(n).map(async function(g) {
322
322
  var o;
@@ -350,10 +350,10 @@ Parent cluster`,
350
350
  i.height,
351
351
  n.parent(g)
352
352
  ), i.height += y, n.node(i.parentId);
353
- const v = (i == null ? void 0 : i.padding) / 2 || 0, m = ((o = i == null ? void 0 : i.labelBBox) == null ? void 0 : o.height) || 0, b = m - v || 0;
354
- t.debug("OffsetY", b, "labelHeight", m, "halfPadding", v), await K(f, i), u.get(i.id).node = i;
353
+ const w = (i == null ? void 0 : i.padding) / 2 || 0, m = ((o = i == null ? void 0 : i.labelBBox) == null ? void 0 : o.height) || 0, b = m - w || 0;
354
+ t.debug("OffsetY", b, "labelHeight", m, "halfPadding", w), await K(f, i), u.get(i.id).node = i;
355
355
  } else {
356
- const v = n.node(i.parentId);
356
+ const w = n.node(i.parentId);
357
357
  i.y += y / 2, t.info(
358
358
  "A regular node XBX1 - using the padding",
359
359
  i.id,
@@ -366,8 +366,8 @@ Parent cluster`,
366
366
  "offsetY",
367
367
  i.offsetY,
368
368
  "parent",
369
- v,
370
- v == null ? void 0 : v.offsetY,
369
+ w,
370
+ w == null ? void 0 : w.offsetY,
371
371
  i
372
372
  ), D(i);
373
373
  }
@@ -376,14 +376,14 @@ Parent cluster`,
376
376
  const o = n.edge(g);
377
377
  t.info("Edge " + g.v + " -> " + g.w + ": " + JSON.stringify(o), o), o.points.forEach((b) => b.y += y / 2);
378
378
  const i = n.node(g.v);
379
- var v = n.node(g.w);
380
- const m = Q(E, o, u, r, i, v, s);
379
+ var w = n.node(g.w);
380
+ const m = Q(E, o, u, r, i, w, s);
381
381
  U(o, m);
382
382
  }), n.nodes().forEach(function(g) {
383
383
  const o = n.node(g);
384
- t.info(g, o.type, o.diff), o.isGroup && (p = o.diff);
385
- }), t.warn("Returning from recursive render XAX", l, p), { elem: l, diff: p };
386
- }, "recursiveRender"), ue = /* @__PURE__ */ w(async (e, n) => {
384
+ t.info(g, o.type, o.diff), o.isGroup && (h = o.diff);
385
+ }), t.warn("Returning from recursive render XAX", l, h), { elem: l, diff: h };
386
+ }, "recursiveRender"), ue = /* @__PURE__ */ v(async (e, n) => {
387
387
  var r, s, d, c, a, l;
388
388
  const f = new k({
389
389
  multigraph: !0,
@@ -397,11 +397,11 @@ Parent cluster`,
397
397
  }).setDefaultEdgeLabel(function() {
398
398
  return {};
399
399
  }), E = n.select("g");
400
- L(E, e.markers, e.type, e.diagramId), M(), j(), F(), ne(), e.nodes.forEach((h) => {
401
- f.setNode(h.id, { ...h }), h.parentId && f.setParent(h.id, h.parentId);
402
- }), t.debug("Edges:", e.edges), e.edges.forEach((h) => {
403
- if (h.start === h.end) {
404
- const p = h.start, y = p + "---" + p + "---1", g = p + "---" + p + "---2", o = f.node(p);
400
+ L(E, e.markers, e.type, e.diagramId), M(), j(), F(), ne(), e.nodes.forEach((p) => {
401
+ f.setNode(p.id, { ...p }), p.parentId && f.setParent(p.id, p.parentId);
402
+ }), t.debug("Edges:", e.edges), e.edges.forEach((p) => {
403
+ if (p.start === p.end) {
404
+ const h = p.start, y = h + "---" + h + "---1", g = h + "---" + h + "---2", o = f.node(h);
405
405
  f.setNode(y, {
406
406
  domId: y,
407
407
  id: y,
@@ -427,13 +427,13 @@ Parent cluster`,
427
427
  width: 10,
428
428
  height: 10
429
429
  }), f.setParent(g, o.parentId);
430
- const i = structuredClone(h), v = structuredClone(h), m = structuredClone(h);
431
- i.label = "", i.arrowTypeEnd = "none", i.id = p + "-cyclic-special-1", v.arrowTypeEnd = "none", v.id = p + "-cyclic-special-mid", m.label = "", o.isGroup && (i.fromCluster = p, m.toCluster = p), m.id = p + "-cyclic-special-2", f.setEdge(p, y, i, p + "-cyclic-special-0"), f.setEdge(y, g, v, p + "-cyclic-special-1"), f.setEdge(g, p, m, p + "-cyc<lic-special-2");
430
+ const i = structuredClone(p), w = structuredClone(p), m = structuredClone(p);
431
+ i.label = "", i.arrowTypeEnd = "none", i.id = h + "-cyclic-special-1", w.arrowTypeStart = "none", w.arrowTypeEnd = "none", w.id = h + "-cyclic-special-mid", m.label = "", o.isGroup && (i.fromCluster = h, m.toCluster = h), m.id = h + "-cyclic-special-2", m.arrowTypeStart = "none", f.setEdge(h, y, i, h + "-cyclic-special-0"), f.setEdge(y, g, w, h + "-cyclic-special-1"), f.setEdge(g, h, m, h + "-cyc<lic-special-2");
432
432
  } else
433
- f.setEdge(h.start, h.end, { ...h }, h.id);
433
+ f.setEdge(p.start, p.end, { ...p }, p.id);
434
434
  }), t.warn("Graph at first:", JSON.stringify(X(f))), ie(f), t.warn("Graph after XAX:", JSON.stringify(X(f)));
435
435
  const C = Y();
436
- await T(
436
+ await R(
437
437
  E,
438
438
  f,
439
439
  e.type,
@@ -0,0 +1,171 @@
1
+ function J(t) {
2
+ return Math.abs(t = Math.round(t)) >= 1e21 ? t.toLocaleString("en").replace(/,/g, "") : t.toString(10);
3
+ }
4
+ function N(t, i) {
5
+ if ((o = (t = i ? t.toExponential(i - 1) : t.toExponential()).indexOf("e")) < 0) return null;
6
+ var o, r = t.slice(0, o);
7
+ return [
8
+ r.length > 1 ? r[0] + r.slice(2) : r,
9
+ +t.slice(o + 1)
10
+ ];
11
+ }
12
+ function K(t) {
13
+ return t = N(Math.abs(t)), t ? t[1] : NaN;
14
+ }
15
+ function P(t, i) {
16
+ return function(o, r) {
17
+ for (var n = o.length, s = [], d = 0, u = t[0], y = 0; n > 0 && u > 0 && (y + u + 1 > r && (u = Math.max(1, r - y)), s.push(o.substring(n -= u, n + u)), !((y += u + 1) > r)); )
18
+ u = t[d = (d + 1) % t.length];
19
+ return s.reverse().join(i);
20
+ };
21
+ }
22
+ function Q(t) {
23
+ return function(i) {
24
+ return i.replace(/[0-9]/g, function(o) {
25
+ return t[+o];
26
+ });
27
+ };
28
+ }
29
+ var R = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
30
+ function E(t) {
31
+ if (!(i = R.exec(t))) throw new Error("invalid format: " + t);
32
+ var i;
33
+ return new $({
34
+ fill: i[1],
35
+ align: i[2],
36
+ sign: i[3],
37
+ symbol: i[4],
38
+ zero: i[5],
39
+ width: i[6],
40
+ comma: i[7],
41
+ precision: i[8] && i[8].slice(1),
42
+ trim: i[9],
43
+ type: i[10]
44
+ });
45
+ }
46
+ E.prototype = $.prototype;
47
+ function $(t) {
48
+ this.fill = t.fill === void 0 ? " " : t.fill + "", this.align = t.align === void 0 ? ">" : t.align + "", this.sign = t.sign === void 0 ? "-" : t.sign + "", this.symbol = t.symbol === void 0 ? "" : t.symbol + "", this.zero = !!t.zero, this.width = t.width === void 0 ? void 0 : +t.width, this.comma = !!t.comma, this.precision = t.precision === void 0 ? void 0 : +t.precision, this.trim = !!t.trim, this.type = t.type === void 0 ? "" : t.type + "";
49
+ }
50
+ $.prototype.toString = function() {
51
+ return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
52
+ };
53
+ function V(t) {
54
+ t: for (var i = t.length, o = 1, r = -1, n; o < i; ++o)
55
+ switch (t[o]) {
56
+ case ".":
57
+ r = n = o;
58
+ break;
59
+ case "0":
60
+ r === 0 && (r = o), n = o;
61
+ break;
62
+ default:
63
+ if (!+t[o]) break t;
64
+ r > 0 && (r = 0);
65
+ break;
66
+ }
67
+ return r > 0 ? t.slice(0, r) + t.slice(n + 1) : t;
68
+ }
69
+ var q;
70
+ function W(t, i) {
71
+ var o = N(t, i);
72
+ if (!o) return t + "";
73
+ var r = o[0], n = o[1], s = n - (q = Math.max(-8, Math.min(8, Math.floor(n / 3))) * 3) + 1, d = r.length;
74
+ return s === d ? r : s > d ? r + new Array(s - d + 1).join("0") : s > 0 ? r.slice(0, s) + "." + r.slice(s) : "0." + new Array(1 - s).join("0") + N(t, Math.max(0, i + s - 1))[0];
75
+ }
76
+ function O(t, i) {
77
+ var o = N(t, i);
78
+ if (!o) return t + "";
79
+ var r = o[0], n = o[1];
80
+ return n < 0 ? "0." + new Array(-n).join("0") + r : r.length > n + 1 ? r.slice(0, n + 1) + "." + r.slice(n + 1) : r + new Array(n - r.length + 2).join("0");
81
+ }
82
+ const T = {
83
+ "%": (t, i) => (t * 100).toFixed(i),
84
+ b: (t) => Math.round(t).toString(2),
85
+ c: (t) => t + "",
86
+ d: J,
87
+ e: (t, i) => t.toExponential(i),
88
+ f: (t, i) => t.toFixed(i),
89
+ g: (t, i) => t.toPrecision(i),
90
+ o: (t) => Math.round(t).toString(8),
91
+ p: (t, i) => O(t * 100, i),
92
+ r: O,
93
+ s: W,
94
+ X: (t) => Math.round(t).toString(16).toUpperCase(),
95
+ x: (t) => Math.round(t).toString(16)
96
+ };
97
+ function U(t) {
98
+ return t;
99
+ }
100
+ var Y = Array.prototype.map, Z = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
101
+ function _(t) {
102
+ var i = t.grouping === void 0 || t.thousands === void 0 ? U : P(Y.call(t.grouping, Number), t.thousands + ""), o = t.currency === void 0 ? "" : t.currency[0] + "", r = t.currency === void 0 ? "" : t.currency[1] + "", n = t.decimal === void 0 ? "." : t.decimal + "", s = t.numerals === void 0 ? U : Q(Y.call(t.numerals, String)), d = t.percent === void 0 ? "%" : t.percent + "", u = t.minus === void 0 ? "−" : t.minus + "", y = t.nan === void 0 ? "NaN" : t.nan + "";
103
+ function C(a) {
104
+ a = E(a);
105
+ var M = a.fill, b = a.align, h = a.sign, w = a.symbol, v = a.zero, x = a.width, j = a.comma, g = a.precision, F = a.trim, c = a.type;
106
+ c === "n" ? (j = !0, c = "g") : T[c] || (g === void 0 && (g = 12), F = !0, c = "g"), (v || M === "0" && b === "=") && (v = !0, M = "0", b = "=");
107
+ var D = w === "$" ? o : w === "#" && /[boxX]/.test(c) ? "0" + c.toLowerCase() : "", H = w === "$" ? r : /[%p]/.test(c) ? d : "", L = T[c], I = /[defgprs%]/.test(c);
108
+ g = g === void 0 ? 6 : /[gprs]/.test(c) ? Math.max(1, Math.min(21, g)) : Math.max(0, Math.min(20, g));
109
+ function X(e) {
110
+ var m = D, l = H, p, G, k;
111
+ if (c === "c")
112
+ l = L(e) + l, e = "";
113
+ else {
114
+ e = +e;
115
+ var S = e < 0 || 1 / e < 0;
116
+ if (e = isNaN(e) ? y : L(Math.abs(e), g), F && (e = V(e)), S && +e == 0 && h !== "+" && (S = !1), m = (S ? h === "(" ? h : u : h === "-" || h === "(" ? "" : h) + m, l = (c === "s" ? Z[8 + q / 3] : "") + l + (S && h === "(" ? ")" : ""), I) {
117
+ for (p = -1, G = e.length; ++p < G; )
118
+ if (k = e.charCodeAt(p), 48 > k || k > 57) {
119
+ l = (k === 46 ? n + e.slice(p + 1) : e.slice(p)) + l, e = e.slice(0, p);
120
+ break;
121
+ }
122
+ }
123
+ }
124
+ j && !v && (e = i(e, 1 / 0));
125
+ var z = m.length + e.length + l.length, f = z < x ? new Array(x - z + 1).join(M) : "";
126
+ switch (j && v && (e = i(f + e, f.length ? x - l.length : 1 / 0), f = ""), b) {
127
+ case "<":
128
+ e = m + e + l + f;
129
+ break;
130
+ case "=":
131
+ e = m + f + e + l;
132
+ break;
133
+ case "^":
134
+ e = f.slice(0, z = f.length >> 1) + m + e + l + f.slice(z);
135
+ break;
136
+ default:
137
+ e = f + m + e + l;
138
+ break;
139
+ }
140
+ return s(e);
141
+ }
142
+ return X.toString = function() {
143
+ return a + "";
144
+ }, X;
145
+ }
146
+ function B(a, M) {
147
+ var b = C((a = E(a), a.type = "f", a)), h = Math.max(-8, Math.min(8, Math.floor(K(M) / 3))) * 3, w = Math.pow(10, -h), v = Z[8 + h / 3];
148
+ return function(x) {
149
+ return b(w * x) + v;
150
+ };
151
+ }
152
+ return {
153
+ format: C,
154
+ formatPrefix: B
155
+ };
156
+ }
157
+ var A, tt, it;
158
+ et({
159
+ thousands: ",",
160
+ grouping: [3],
161
+ currency: ["$", ""]
162
+ });
163
+ function et(t) {
164
+ return A = _(t), tt = A.format, it = A.formatPrefix, A;
165
+ }
166
+ export {
167
+ K as J,
168
+ E as N,
169
+ tt as n,
170
+ it as t
171
+ };