@antdv-next/x 1.2.1-beta.1 → 1.2.1

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 (100) hide show
  1. package/dist/attachments/index.js +1 -2
  2. package/dist/code-highlighter/style/index.d.ts +51 -19
  3. package/dist/code-highlighter/style/index.js +44 -31
  4. package/dist/index.umd.js +54 -44
  5. package/dist/package.js +1 -1
  6. package/dist/sender/hooks/use-speech.js +1 -2
  7. package/dist/suggestion/useActive.js +2 -0
  8. package/dist/theme/util/alias.js +5 -5
  9. package/dist/think/Think.js +2 -3
  10. package/dist/thought-chain/Node.js +2 -3
  11. package/dist/x-provider/index.js +2 -3
  12. package/es/{_basePickBy-CrbncDqR.js → _basePickBy-BL4DHvHb.js} +1 -1
  13. package/es/{_baseUniq-B-qU_Imh.js → _baseUniq-CyFYmJd-.js} +7 -7
  14. package/es/antdv-next-x.esm.js +253 -245
  15. package/es/architecture-PBZL5I3N-M9p1teRv.js +3 -0
  16. package/es/{architectureDiagram-2XIMDMQ5-OvuktNfv.js → architectureDiagram-2XIMDMQ5-zW5aGalx.js} +99 -89
  17. package/es/{blockDiagram-WCTKOSBZ-CS-kh74L.js → blockDiagram-WCTKOSBZ-0QujSG-h.js} +36 -33
  18. package/es/{c4Diagram-IC4MRINW-BZGIF4Dk.js → c4Diagram-IC4MRINW-B7y07WFn.js} +24 -16
  19. package/es/{channel-DrSSYyxp.js → channel-CxLj88Pg.js} +1 -1
  20. package/es/{chunk-4BX2VUAB-Rm8-te6i.js → chunk-4BX2VUAB-CprgMM4u.js} +1 -1
  21. package/es/{chunk-55IACEB6-Tre45n-8.js → chunk-55IACEB6-BpkEkHy8.js} +1 -1
  22. package/es/{chunk-7R4GIKGN-scch4dXY.js → chunk-7R4GIKGN-mKY502R8.js} +6 -4
  23. package/es/{chunk-FMBD7UC4-JmekSPZP.js → chunk-FMBD7UC4-B88neS61.js} +1 -1
  24. package/es/{chunk-GEFDOKGD-BEzc6NZw.js → chunk-GEFDOKGD-oBEpn5hN.js} +67 -27
  25. package/es/chunk-GLR3WWYH-B2D9kjtF.js +41 -0
  26. package/es/chunk-HHEYEP7N-DcZkCke2.js +9 -0
  27. package/es/{chunk-JSJVCQXG-_l_UVbaa.js → chunk-JSJVCQXG-BbVOaXjl.js} +3 -3
  28. package/es/{chunk-KX2RTZJC-BUWM8pJz.js → chunk-KX2RTZJC-Dw3D7Wrw.js} +2 -2
  29. package/es/{chunk-KYZI473N-BSgb_E0Q.js → chunk-KYZI473N-33-uii7Y.js} +10 -10
  30. package/es/{chunk-MX3YWQON-D602L8pU.js → chunk-MX3YWQON-D4cz36rq.js} +1 -1
  31. package/es/{chunk-NQ4KR5QH-BPQV0i93.js → chunk-NQ4KR5QH-CprADZhD.js} +44 -40
  32. package/es/{chunk-O4XLMI2P-BMqc3iYa.js → chunk-O4XLMI2P-DBAvycZ-.js} +13 -14
  33. package/es/{chunk-PQ6SQG4A-DcYrzB1X.js → chunk-PQ6SQG4A-BITIwHAS.js} +2 -2
  34. package/es/{chunk-PU5JKC2W-TuGY6X1n.js → chunk-PU5JKC2W-DIl8TkGX.js} +22 -26
  35. package/es/{chunk-QZHKN3VN-CKbD02cl.js → chunk-QZHKN3VN-Cg0ROtzE.js} +1 -1
  36. package/es/{chunk-WL4C6EOR-B31ErTFp.js → chunk-WL4C6EOR-Bhp_3T_o.js} +15 -15
  37. package/es/chunk-XPW4576I-255j2Rgd.js +1146 -0
  38. package/es/{chunk-XZSTWKYB-DYKLwCEy.js → chunk-XZSTWKYB-kjAdbx6i.js} +266 -321
  39. package/es/{chunk-YBOYWFTD-CRiKEIiS.js → chunk-YBOYWFTD-C2IdGsg8.js} +5 -5
  40. package/es/classDiagram-VBA2DB6C-BQonl2jX.js +29 -0
  41. package/es/classDiagram-v2-RAHNMMFH-C9U3lqTc.js +29 -0
  42. package/es/{clone-yzFtXY5G.js → clone-DIGEZsKS.js} +1 -1
  43. package/es/{cose-bilkent-S5V4N54A-BM90wTBk.js → cose-bilkent-S5V4N54A-Cyxewg9z.js} +36 -31
  44. package/es/{cytoscape.esm-B_-hKv4-.js → cytoscape.esm-DBPri10E.js} +197 -155
  45. package/es/{dagre-DCYVBij1.js → dagre-BHOjJWBG.js} +26 -24
  46. package/es/{dagre-KLK3FWXG-Ced70SgJ.js → dagre-KLK3FWXG-CnJPDj7X.js} +17 -18
  47. package/es/{defaultLocale-yzzuPw6P.js → defaultLocale-aSMWOJHq.js} +4 -1
  48. package/es/{diagram-E7M64L7V-xZCloH_i.js → diagram-E7M64L7V-CBOCgbMd.js} +22 -24
  49. package/es/{diagram-IFDJBPK2-BTmFZhvz.js → diagram-IFDJBPK2-BtubJp0H.js} +11 -11
  50. package/es/{diagram-P4PSJMXO-DX_3B0LB.js → diagram-P4PSJMXO-CI30BBYG.js} +10 -10
  51. package/es/{dist-h4ggShny.js → dist-BpM0Gz7z.js} +1 -1
  52. package/es/{erDiagram-INFDFZHY-MJ_HVY-7.js → erDiagram-INFDFZHY-C8hYuPxm.js} +21 -21
  53. package/es/{flowDiagram-PKNHOUZH-CQIRy1sx.js → flowDiagram-PKNHOUZH-D5vrDkks.js} +40 -33
  54. package/es/{ganttDiagram-A5KZAMGK-Dw9bjWjx.js → ganttDiagram-A5KZAMGK-BmIEQBGq.js} +33 -21
  55. package/es/gitGraph-HDMCJU4V-x8fnR2OX.js +3 -0
  56. package/es/{gitGraphDiagram-K3NZZRJ6-Gk6FiGbZ.js → gitGraphDiagram-K3NZZRJ6-PO0pMJD3.js} +7 -7
  57. package/es/{graphlib-BMvIh7N7.js → graphlib-DqWOhV4K.js} +2 -2
  58. package/es/info-3K5VOQVL-CRBCVSej.js +3 -0
  59. package/es/{infoDiagram-LFFYTUFH-CS64-uil.js → infoDiagram-LFFYTUFH-DOcKfbXf.js} +4 -4
  60. package/es/{init-sjaVZO3f.js → init-Co4dhKfe.js} +3 -1
  61. package/es/isEmpty-BJdINx-6.js +35 -0
  62. package/es/{ishikawaDiagram-PHBUUO56-C_Hw5UnV.js → ishikawaDiagram-PHBUUO56-DM1elxPS.js} +12 -12
  63. package/es/{journeyDiagram-4ABVD52K-CFFyM4Ar.js → journeyDiagram-4ABVD52K-BnYWOH1P.js} +11 -11
  64. package/es/{kanban-definition-K7BYSVSG-B_R-mA10.js → kanban-definition-K7BYSVSG-Ys7nAs7y.js} +27 -26
  65. package/es/{katex-C-qdUNlg.js → katex-olkKUfKs.js} +52 -62
  66. package/es/{line-D05MESIS.js → line-Cm2n2y9Z.js} +1 -1
  67. package/es/{linear-B8tPH2Pw.js → linear-D-yDc6KG.js} +6 -4
  68. package/es/{mermaid-parser.core-C_69nk7j.js → mermaid-parser.core-DFgQn74w.js} +8 -8
  69. package/es/mermaid.core-BzgA0NbC.js +680 -0
  70. package/es/{mindmap-definition-YRQLILUH-qgGUYYe3.js → mindmap-definition-YRQLILUH-Ca8psfLi.js} +26 -24
  71. package/es/{ordinal-CNQzPcrr.js → ordinal-95c16pGC.js} +1 -1
  72. package/es/packet-RMMSAZCW-CyE-elPF.js +3 -0
  73. package/es/pie-UPGHQEXC-EfdQ-_OF.js +3 -0
  74. package/es/{pieDiagram-SKSYHLDU-B8-AVOmP.js → pieDiagram-SKSYHLDU-DhQSMJCw.js} +11 -11
  75. package/es/{quadrantDiagram-337W2JSQ-C2Z0CN4Z.js → quadrantDiagram-337W2JSQ-jOtIC8r0.js} +9 -9
  76. package/es/radar-KQ55EAFF-B68vkNB4.js +3 -0
  77. package/es/{requirementDiagram-Z7DCOOCP-Cdj7PwWC.js → requirementDiagram-Z7DCOOCP-CNngzPE4.js} +18 -18
  78. package/es/{rolldown-runtime-CEY2VRuR.js → rolldown-runtime-Dv1pqm0U.js} +2 -2
  79. package/es/{sankeyDiagram-WA2Y5GQK-BNmU-dM1.js → sankeyDiagram-WA2Y5GQK-BgsyVNdD.js} +9 -9
  80. package/es/{sequenceDiagram-2WXFIKYE-pj0uPf22.js → sequenceDiagram-2WXFIKYE-BAc5PP9P.js} +46 -34
  81. package/es/{shiki-runtime-7QG17np_.js → shiki-runtime-BlKUZiZP.js} +41 -44
  82. package/es/{src-Dynw_Lub.js → src-3T61hYex.js} +1 -1
  83. package/es/{stateDiagram-RAJIS63D-BgCfMnGb.js → stateDiagram-RAJIS63D-153LjStx.js} +18 -18
  84. package/es/stateDiagram-v2-FVOUBMTO-BXEvy1YD.js +27 -0
  85. package/es/{timeline-definition-YZTLITO2-Bj5QKnBI.js → timeline-definition-YZTLITO2-BLhlkb_X.js} +8 -8
  86. package/es/treemap-KZPCXAKY-Dg_ShzRB.js +3 -0
  87. package/es/{vennDiagram-LZ73GAT5-lpWcIvN6.js → vennDiagram-LZ73GAT5-BTYWphmf.js} +13 -13
  88. package/es/{xychartDiagram-JWTSCODW-De1M-7Yz.js → xychartDiagram-JWTSCODW-B9Nlu6S_.js} +29 -25
  89. package/package.json +1 -1
  90. package/es/architecture-PBZL5I3N-BRGGaMu3.js +0 -3
  91. package/es/classDiagram-VBA2DB6C-BDqwxUdU.js +0 -29
  92. package/es/classDiagram-v2-RAHNMMFH-DdmOjeUb.js +0 -29
  93. package/es/gitGraph-HDMCJU4V-oForq_Vw.js +0 -3
  94. package/es/info-3K5VOQVL-0F-ZLEMx.js +0 -3
  95. package/es/mermaid.core-BVGVwWcu.js +0 -1914
  96. package/es/packet-RMMSAZCW-CeqtQQ_e.js +0 -3
  97. package/es/pie-UPGHQEXC-BI60FhK4.js +0 -3
  98. package/es/radar-KQ55EAFF-CRwOOFw0.js +0 -3
  99. package/es/stateDiagram-v2-FVOUBMTO-ByMhP6Xo.js +0 -27
  100. package/es/treemap-KZPCXAKY-BlOAFUbR.js +0 -3
@@ -0,0 +1,3 @@
1
+ import "./chunk-XZSTWKYB-kjAdbx6i.js";
2
+ import { h as e } from "./mermaid-parser.core-DFgQn74w.js";
3
+ export { e as createArchitectureServices };
@@ -1,12 +1,12 @@
1
- import { o as e, t } from "./rolldown-runtime-CEY2VRuR.js";
2
- import { g as n, h as r, p as i } from "./src-Dynw_Lub.js";
3
- import { r as a, s as o } from "./chunk-GEFDOKGD-BEzc6NZw.js";
4
- import { t as s } from "./mermaid-parser.core-C_69nk7j.js";
5
- import { B as c, C as l, K as u, L as d, V as f, W as p, _ as m, a as h, b as g, d as _, v, y } from "./chunk-7R4GIKGN-scch4dXY.js";
6
- import { a as b, i as x, n as S, r as C } from "./chunk-PU5JKC2W-TuGY6X1n.js";
7
- import { t as w } from "./chunk-4BX2VUAB-Rm8-te6i.js";
8
- import { t as T } from "./cytoscape.esm-B_-hKv4-.js";
9
- import { a as E } from "./mermaid.core-BVGVwWcu.js";
1
+ import { o as e, t } from "./rolldown-runtime-Dv1pqm0U.js";
2
+ import { g as n, h as r, p as i } from "./src-3T61hYex.js";
3
+ import { r as a, s as o } from "./chunk-GEFDOKGD-oBEpn5hN.js";
4
+ import { t as s } from "./mermaid-parser.core-DFgQn74w.js";
5
+ import { B as c, C as l, K as u, L as d, V as f, W as p, _ as m, a as h, b as g, d as _, v, y } from "./chunk-7R4GIKGN-mKY502R8.js";
6
+ import { t as b } from "./chunk-HHEYEP7N-DcZkCke2.js";
7
+ import { a as x, i as S, n as C, r as w } from "./chunk-PU5JKC2W-DIl8TkGX.js";
8
+ import { t as T } from "./chunk-4BX2VUAB-CprgMM4u.js";
9
+ import { t as E } from "./cytoscape.esm-DBPri10E.js";
10
10
  //#region ../../node_modules/.pnpm/layout-base@2.0.1/node_modules/layout-base/layout-base.js
11
11
  var D = /* @__PURE__ */ t(((e, t) => {
12
12
  (function(n, r) {
@@ -102,7 +102,7 @@ var D = /* @__PURE__ */ t(((e, t) => {
102
102
  (function(e, t, n) {
103
103
  var r = n(2), i = n(10), a = n(13), o = n(0), s = n(16), c = n(5);
104
104
  function l(e, t, n, o) {
105
- n == null && o == null && (o = t), r.call(this, o), e.graphManager != null && (e = e.graphManager), this.estimatedSize = i.MIN_VALUE, this.inclusionTreeDepth = i.MAX_VALUE, this.vGraphObject = o, this.edges = [], this.graphManager = e, this.rect = n != null && t != null ? new a(t.x, t.y, n.width, n.height) : new a();
105
+ n == null && o == null && (o = t), r.call(this, o), e.graphManager != null && (e = e.graphManager), this.estimatedSize = i.MIN_VALUE, this.inclusionTreeDepth = i.MAX_VALUE, this.vGraphObject = o, this.edges = [], this.graphManager = e, n != null && t != null ? this.rect = new a(t.x, t.y, n.width, n.height) : this.rect = new a();
106
106
  }
107
107
  for (var u in l.prototype = Object.create(r.prototype), r) l[u] = r[u];
108
108
  l.prototype.getEdges = function() {
@@ -272,11 +272,12 @@ var D = /* @__PURE__ */ t(((e, t) => {
272
272
  if (this.graphManager == null) throw "Graph has no graph mgr!";
273
273
  if (this.getNodes().indexOf(r) > -1) throw "Node already in graph!";
274
274
  return r.owner = this, this.getNodes().push(r), r;
275
+ } else {
276
+ var i = e;
277
+ if (!(this.getNodes().indexOf(t) > -1 && this.getNodes().indexOf(n) > -1)) throw "Source or target not in graph!";
278
+ if (t.owner != n.owner || t.owner != this) throw "Both owners must be this graph!";
279
+ return t.owner == n.owner ? (i.source = t, i.target = n, i.isInterGraph = !1, this.getEdges().push(i), t.edges.push(i), n != t && n.edges.push(i), i) : null;
275
280
  }
276
- var i = e;
277
- if (!(this.getNodes().indexOf(t) > -1 && this.getNodes().indexOf(n) > -1)) throw "Source or target not in graph!";
278
- if (t.owner != n.owner || t.owner != this) throw "Both owners must be this graph!";
279
- return t.owner == n.owner ? (i.source = t, i.target = n, i.isInterGraph = !1, this.getEdges().push(i), t.edges.push(i), n != t && n.edges.push(i), i) : null;
280
281
  }, f.prototype.remove = function(e) {
281
282
  var t = e;
282
283
  if (e instanceof s) {
@@ -328,7 +329,7 @@ var D = /* @__PURE__ */ t(((e, t) => {
328
329
  var i = t[r];
329
330
  e += i.calcEstimatedSize();
330
331
  }
331
- return this.estimatedSize = e == 0 ? a.EMPTY_COMPOUND_NODE_SIZE : e / Math.sqrt(this.nodes.length), this.estimatedSize;
332
+ return e == 0 ? this.estimatedSize = a.EMPTY_COMPOUND_NODE_SIZE : this.estimatedSize = e / Math.sqrt(this.nodes.length), this.estimatedSize;
332
333
  }, f.prototype.updateConnected = function() {
333
334
  var e = this;
334
335
  if (this.nodes.length == 0) {
@@ -368,16 +369,17 @@ var D = /* @__PURE__ */ t(((e, t) => {
368
369
  if (this.graphs.push(e), e.parent != null) throw "Already has a parent!";
369
370
  if (t.child != null) throw "Already has a child!";
370
371
  return e.parent = t, t.child = e, e;
372
+ } else {
373
+ i = n, r = t, n = e;
374
+ var a = r.getOwner(), o = i.getOwner();
375
+ if (a == null || a.getGraphManager() != this) throw "Source not in this graph mgr!";
376
+ if (o == null || o.getGraphManager() != this) throw "Target not in this graph mgr!";
377
+ if (a == o) return n.isInterGraph = !1, a.add(n, r, i);
378
+ if (n.isInterGraph = !0, n.source = r, n.target = i, this.edges.indexOf(n) > -1) throw "Edge already in inter-graph edge list!";
379
+ if (this.edges.push(n), n.source == null || n.target == null) throw "Edge source and/or target is null!";
380
+ if (n.source.edges.indexOf(n) != -1 || n.target.edges.indexOf(n) != -1) throw "Edge already in source and/or target incidency list!";
381
+ return n.source.edges.push(n), n.target.edges.push(n), n;
371
382
  }
372
- i = n, r = t, n = e;
373
- var a = r.getOwner(), o = i.getOwner();
374
- if (a == null || a.getGraphManager() != this) throw "Source not in this graph mgr!";
375
- if (o == null || o.getGraphManager() != this) throw "Target not in this graph mgr!";
376
- if (a == o) return n.isInterGraph = !1, a.add(n, r, i);
377
- if (n.isInterGraph = !0, n.source = r, n.target = i, this.edges.indexOf(n) > -1) throw "Edge already in inter-graph edge list!";
378
- if (this.edges.push(n), n.source == null || n.target == null) throw "Edge source and/or target is null!";
379
- if (n.source.edges.indexOf(n) != -1 || n.target.edges.indexOf(n) != -1) throw "Edge already in source and/or target incidency list!";
380
- return n.source.edges.push(n), n.target.edges.push(n), n;
381
383
  }, a.prototype.remove = function(e) {
382
384
  if (e instanceof r) {
383
385
  var t = e;
@@ -513,7 +515,7 @@ var D = /* @__PURE__ */ t(((e, t) => {
513
515
  var o = a * n[0], s = n[1] / a;
514
516
  n[0] < s ? s = n[0] : o = n[1], n[0] = -1 * i[0] * (s / 2 + r), n[1] = -1 * i[1] * (o / 2 + r);
515
517
  }, i.decideDirectionsForOverlappingNodes = function(e, t, n) {
516
- n[0] = e.getCenterX() < t.getCenterX() ? -1 : 1, n[1] = e.getCenterY() < t.getCenterY() ? -1 : 1;
518
+ e.getCenterX() < t.getCenterX() ? n[0] = -1 : n[0] = 1, e.getCenterY() < t.getCenterY() ? n[1] = -1 : n[1] = 1;
517
519
  }, i.getIntersection2 = function(e, t, n) {
518
520
  var r = e.getCenterX(), i = e.getCenterY(), a = t.getCenterX(), o = t.getCenterY();
519
521
  if (e.intersects(t)) return n[0] = r, n[1] = i, n[2] = a, n[3] = o, !0;
@@ -537,7 +539,9 @@ var D = /* @__PURE__ */ t(((e, t) => {
537
539
  case 3:
538
540
  j = d, A = r + m / D, n[0] = A, n[1] = j;
539
541
  break;
540
- case 4: A = u, j = i + -p * D, n[0] = A, n[1] = j;
542
+ case 4:
543
+ A = u, j = i + -p * D, n[0] = A, n[1] = j;
544
+ break;
541
545
  }
542
546
  if (!w) switch (k) {
543
547
  case 1:
@@ -549,7 +553,9 @@ var D = /* @__PURE__ */ t(((e, t) => {
549
553
  case 3:
550
554
  N = y, M = a + S / D, n[2] = M, n[3] = N;
551
555
  break;
552
- case 4: M = v, N = o + -x * D, n[2] = M, n[3] = N;
556
+ case 4:
557
+ M = v, N = o + -x * D, n[2] = M, n[3] = N;
558
+ break;
553
559
  }
554
560
  }
555
561
  return !1;
@@ -572,8 +578,7 @@ var D = /* @__PURE__ */ t(((e, t) => {
572
578
  if (c * c - 4 * s * l >= 0) {
573
579
  var u = (-c + Math.sqrt(c * c - 4 * s * l)) / (2 * s), d = (-c - Math.sqrt(c * c - 4 * s * l)) / (2 * s);
574
580
  return u >= 0 && u <= 1 ? [u] : d >= 0 && d <= 1 ? [d] : null;
575
- }
576
- return null;
581
+ } else return null;
577
582
  }, i.HALF_PI = .5 * Math.PI, i.ONE_AND_HALF_PI = 1.5 * Math.PI, i.TWO_PI = 2 * Math.PI, i.THREE_PI = 3 * Math.PI, e.exports = i;
578
583
  }),
579
584
  (function(e, t, n) {
@@ -809,8 +814,7 @@ var D = /* @__PURE__ */ t(((e, t) => {
809
814
  if (Array.isArray(e)) {
810
815
  for (var t = 0, n = Array(e.length); t < e.length; t++) n[t] = e[t];
811
816
  return n;
812
- }
813
- return Array.from(e);
817
+ } else return Array.from(e);
814
818
  }
815
819
  var i = n(0), a = n(7), o = n(3), s = n(1), c = n(6), l = n(5), u = n(17), d = n(29);
816
820
  function f(e) {
@@ -838,7 +842,7 @@ var D = /* @__PURE__ */ t(((e, t) => {
838
842
  }, f.prototype.runLayout = function() {
839
843
  this.isLayoutFinished = !1, this.tilingPreLayout && this.tilingPreLayout(), this.initParameters();
840
844
  var e = !this.checkLayoutSuccess() && this.layout();
841
- return i.ANIMATE !== "during" && (e && (this.isSubLayout || this.doPostLayout()), this.tilingPostLayout && this.tilingPostLayout(), this.isLayoutFinished = !0, e);
845
+ return i.ANIMATE === "during" ? !1 : (e && (this.isSubLayout || this.doPostLayout()), this.tilingPostLayout && this.tilingPostLayout(), this.isLayoutFinished = !0, e);
842
846
  }, f.prototype.doPostLayout = function() {
843
847
  this.incremental || this.transform(), this.update();
844
848
  }, f.prototype.update2 = function() {
@@ -936,9 +940,10 @@ var D = /* @__PURE__ */ t(((e, t) => {
936
940
  i += (o - t) / 50 * (e - 50);
937
941
  }
938
942
  return i;
943
+ } else {
944
+ var s, c;
945
+ return e <= 50 ? (s = 9 * t / 500, c = t / 10) : (s = 9 * t / 50, c = -8 * t), s * e + c;
939
946
  }
940
- var s, c;
941
- return e <= 50 ? (s = 9 * t / 500, c = t / 10) : (s = 9 * t / 50, c = -8 * t), s * e + c;
942
947
  }, f.findCenterOfTree = function(e) {
943
948
  var t = [];
944
949
  t = t.concat(e);
@@ -1032,8 +1037,7 @@ var D = /* @__PURE__ */ t(((e, t) => {
1032
1037
  if (Array.isArray(e)) {
1033
1038
  for (var t = 0, n = Array(e.length); t < e.length; t++) n[t] = e[t];
1034
1039
  return n;
1035
- }
1036
- return Array.from(e);
1040
+ } else return Array.from(e);
1037
1041
  }
1038
1042
  var i = n(15), a = n(4), o = n(0), s = n(8), c = n(9);
1039
1043
  function l() {
@@ -1046,7 +1050,7 @@ var D = /* @__PURE__ */ t(((e, t) => {
1046
1050
  for (var e, t, n, r, i, s, c, l = this.getGraphManager().getAllEdges(), u = 0; u < l.length; u++) e = l[u], t = e.idealLength, e.isInterGraph && (r = e.getSource(), i = e.getTarget(), s = e.getSourceInLca().getEstimatedSize(), c = e.getTargetInLca().getEstimatedSize(), this.useSmartIdealEdgeLengthCalculation && (e.idealLength += s + c - 2 * o.SIMPLE_NODE_SIZE), n = e.getLca().getInclusionTreeDepth(), e.idealLength += t * a.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR * (r.getInclusionTreeDepth() + i.getInclusionTreeDepth() - 2 * n));
1047
1051
  }, l.prototype.initSpringEmbedder = function() {
1048
1052
  var e = this.getAllNodes().length;
1049
- this.incremental ? (e > a.ADAPTATION_LOWER_NODE_LIMIT && (this.coolingFactor = Math.max(this.coolingFactor * a.COOLING_ADAPTATION_FACTOR, this.coolingFactor - (e - a.ADAPTATION_LOWER_NODE_LIMIT) / (a.ADAPTATION_UPPER_NODE_LIMIT - a.ADAPTATION_LOWER_NODE_LIMIT) * this.coolingFactor * (1 - a.COOLING_ADAPTATION_FACTOR))), this.maxNodeDisplacement = a.MAX_NODE_DISPLACEMENT_INCREMENTAL) : (this.coolingFactor = e > a.ADAPTATION_LOWER_NODE_LIMIT ? Math.max(a.COOLING_ADAPTATION_FACTOR, 1 - (e - a.ADAPTATION_LOWER_NODE_LIMIT) / (a.ADAPTATION_UPPER_NODE_LIMIT - a.ADAPTATION_LOWER_NODE_LIMIT) * (1 - a.COOLING_ADAPTATION_FACTOR)) : 1, this.initialCoolingFactor = this.coolingFactor, this.maxNodeDisplacement = a.MAX_NODE_DISPLACEMENT), this.maxIterations = Math.max(this.getAllNodes().length * 5, this.maxIterations), this.displacementThresholdPerNode = 3 * a.DEFAULT_EDGE_LENGTH / 100, this.totalDisplacementThreshold = this.displacementThresholdPerNode * this.getAllNodes().length, this.repulsionRange = this.calcRepulsionRange();
1053
+ this.incremental ? (e > a.ADAPTATION_LOWER_NODE_LIMIT && (this.coolingFactor = Math.max(this.coolingFactor * a.COOLING_ADAPTATION_FACTOR, this.coolingFactor - (e - a.ADAPTATION_LOWER_NODE_LIMIT) / (a.ADAPTATION_UPPER_NODE_LIMIT - a.ADAPTATION_LOWER_NODE_LIMIT) * this.coolingFactor * (1 - a.COOLING_ADAPTATION_FACTOR))), this.maxNodeDisplacement = a.MAX_NODE_DISPLACEMENT_INCREMENTAL) : (e > a.ADAPTATION_LOWER_NODE_LIMIT ? this.coolingFactor = Math.max(a.COOLING_ADAPTATION_FACTOR, 1 - (e - a.ADAPTATION_LOWER_NODE_LIMIT) / (a.ADAPTATION_UPPER_NODE_LIMIT - a.ADAPTATION_LOWER_NODE_LIMIT) * (1 - a.COOLING_ADAPTATION_FACTOR)) : this.coolingFactor = 1, this.initialCoolingFactor = this.coolingFactor, this.maxNodeDisplacement = a.MAX_NODE_DISPLACEMENT), this.maxIterations = Math.max(this.getAllNodes().length * 5, this.maxIterations), this.displacementThresholdPerNode = 3 * a.DEFAULT_EDGE_LENGTH / 100, this.totalDisplacementThreshold = this.displacementThresholdPerNode * this.getAllNodes().length, this.repulsionRange = this.calcRepulsionRange();
1050
1054
  }, l.prototype.calcSpringForces = function() {
1051
1055
  for (var e = this.getAllEdges(), t, n = 0; n < e.length; n++) t = e[n], this.calcSpringForce(t, t.idealLength);
1052
1056
  }, l.prototype.calcRepulsionForces = function() {
@@ -1471,6 +1475,7 @@ var D = /* @__PURE__ */ t(((e, t) => {
1471
1475
  U++;
1472
1476
  }
1473
1477
  H = 0, E--;
1478
+ break;
1474
1479
  }
1475
1480
  }
1476
1481
  return {
@@ -1690,7 +1695,7 @@ var D = /* @__PURE__ */ t(((e, t) => {
1690
1695
  }, x.prototype.newEdge = function(e) {
1691
1696
  return new s(null, null, e);
1692
1697
  }, x.prototype.initParameters = function() {
1693
- r.prototype.initParameters.call(this, arguments), this.isSubLayout || (this.idealEdgeLength = c.DEFAULT_EDGE_LENGTH < 10 ? 10 : c.DEFAULT_EDGE_LENGTH, this.useSmartIdealEdgeLengthCalculation = c.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION, this.gravityConstant = u.DEFAULT_GRAVITY_STRENGTH, this.compoundGravityConstant = u.DEFAULT_COMPOUND_GRAVITY_STRENGTH, this.gravityRangeFactor = u.DEFAULT_GRAVITY_RANGE_FACTOR, this.compoundGravityRangeFactor = u.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR, this.prunedNodesAll = [], this.growTreeIterations = 0, this.afterGrowthIterations = 0, this.isTreeGrowing = !1, this.isGrowthFinished = !1);
1698
+ r.prototype.initParameters.call(this, arguments), this.isSubLayout || (c.DEFAULT_EDGE_LENGTH < 10 ? this.idealEdgeLength = 10 : this.idealEdgeLength = c.DEFAULT_EDGE_LENGTH, this.useSmartIdealEdgeLengthCalculation = c.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION, this.gravityConstant = u.DEFAULT_GRAVITY_STRENGTH, this.compoundGravityConstant = u.DEFAULT_COMPOUND_GRAVITY_STRENGTH, this.gravityRangeFactor = u.DEFAULT_GRAVITY_RANGE_FACTOR, this.compoundGravityRangeFactor = u.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR, this.prunedNodesAll = [], this.growTreeIterations = 0, this.afterGrowthIterations = 0, this.isTreeGrowing = !1, this.isGrowthFinished = !1);
1694
1699
  }, x.prototype.initSpringEmbedder = function() {
1695
1700
  r.prototype.initSpringEmbedder.call(this), this.coolingCycle = 0, this.maxCoolingCycle = this.maxIterations / u.CONVERGENCE_CHECK_PERIOD, this.finalTemperature = .04, this.coolingAdjuster = 1;
1696
1701
  }, x.prototype.layout = function() {
@@ -1728,13 +1733,13 @@ var D = /* @__PURE__ */ t(((e, t) => {
1728
1733
  var e = new Set(this.getAllNodes()), t = this.nodesWithGravity.filter(function(t) {
1729
1734
  return e.has(t);
1730
1735
  });
1731
- this.graphManager.setAllNodesToApplyGravitation(t), this.graphManager.updateBounds(), this.updateGrid(), this.coolingFactor = c.PURE_INCREMENTAL ? u.DEFAULT_COOLING_FACTOR_INCREMENTAL / 2 : u.DEFAULT_COOLING_FACTOR_INCREMENTAL;
1736
+ this.graphManager.setAllNodesToApplyGravitation(t), this.graphManager.updateBounds(), this.updateGrid(), c.PURE_INCREMENTAL ? this.coolingFactor = u.DEFAULT_COOLING_FACTOR_INCREMENTAL / 2 : this.coolingFactor = u.DEFAULT_COOLING_FACTOR_INCREMENTAL;
1732
1737
  } else this.isTreeGrowing = !1, this.isGrowthFinished = !0;
1733
1738
  this.growTreeIterations++;
1734
1739
  }
1735
1740
  if (this.isGrowthFinished) {
1736
1741
  if (this.isConverged()) return !0;
1737
- this.afterGrowthIterations % 10 == 0 && (this.graphManager.updateBounds(), this.updateGrid()), this.coolingFactor = c.PURE_INCREMENTAL ? u.DEFAULT_COOLING_FACTOR_INCREMENTAL / 2 * ((100 - this.afterGrowthIterations) / 100) : u.DEFAULT_COOLING_FACTOR_INCREMENTAL * ((100 - this.afterGrowthIterations) / 100), this.afterGrowthIterations++;
1742
+ this.afterGrowthIterations % 10 == 0 && (this.graphManager.updateBounds(), this.updateGrid()), c.PURE_INCREMENTAL ? this.coolingFactor = u.DEFAULT_COOLING_FACTOR_INCREMENTAL / 2 * ((100 - this.afterGrowthIterations) / 100) : this.coolingFactor = u.DEFAULT_COOLING_FACTOR_INCREMENTAL * ((100 - this.afterGrowthIterations) / 100), this.afterGrowthIterations++;
1738
1743
  }
1739
1744
  var n = !this.isTreeGrowing && !this.isGrowthFinished, r = this.growTreeIterations % 10 == 1 && this.isTreeGrowing || this.afterGrowthIterations % 10 == 1 && this.isGrowthFinished;
1740
1745
  return this.totalDisplacement = 0, this.graphManager.updateBounds(), this.calcSpringForces(), this.calcRepulsionForces(n, r), this.calcGravitationalForces(), this.moveNodes(), this.animate(), !1;
@@ -2313,8 +2318,7 @@ var D = /* @__PURE__ */ t(((e, t) => {
2313
2318
  if (Array.isArray(e)) {
2314
2319
  for (var t = 0, n = Array(e.length); t < e.length; t++) n[t] = e[t];
2315
2320
  return n;
2316
- }
2317
- return Array.from(e);
2321
+ } else return Array.from(e);
2318
2322
  }
2319
2323
  var i = n(806), a = n(551).LinkedList, o = n(551).Matrix, s = n(551).SVD;
2320
2324
  function c() {}
@@ -2326,7 +2330,7 @@ var D = /* @__PURE__ */ t(((e, t) => {
2326
2330
  m.getChild() ?? (c.set(m.id, f++), l.push(m.getCenterX()), u.push(m.getCenterY()), n.set(m.id, m));
2327
2331
  }
2328
2332
  t.relativePlacementConstraint && t.relativePlacementConstraint.forEach(function(e) {
2329
- !e.gap && e.gap != 0 && (e.gap = e.left ? i.DEFAULT_EDGE_LENGTH + n.get(e.left).getWidth() / 2 + n.get(e.right).getWidth() / 2 : i.DEFAULT_EDGE_LENGTH + n.get(e.top).getHeight() / 2 + n.get(e.bottom).getHeight() / 2);
2333
+ !e.gap && e.gap != 0 && (e.left ? e.gap = i.DEFAULT_EDGE_LENGTH + n.get(e.left).getWidth() / 2 + n.get(e.right).getWidth() / 2 : e.gap = i.DEFAULT_EDGE_LENGTH + n.get(e.top).getHeight() / 2 + n.get(e.bottom).getHeight() / 2);
2330
2334
  });
2331
2335
  var h = function(e, t) {
2332
2336
  return {
@@ -2385,7 +2389,7 @@ var D = /* @__PURE__ */ t(((e, t) => {
2385
2389
  } else {
2386
2390
  var o = 0;
2387
2391
  e.forEach(function(e) {
2388
- o += t == "horizontal" ? c.has(e) ? l[c.get(e)] : i.get(e) : c.has(e) ? u[c.get(e)] : i.get(e);
2392
+ t == "horizontal" ? o += c.has(e) ? l[c.get(e)] : i.get(e) : o += c.has(e) ? u[c.get(e)] : i.get(e);
2389
2393
  }), o /= e.length, e.forEach(function(e) {
2390
2394
  f.set(e, o);
2391
2395
  });
@@ -2956,11 +2960,11 @@ var D = /* @__PURE__ */ t(((e, t) => {
2956
2960
  f.id = s.id(), f.idealLength = y(e.idealEdgeLength, s), f.edgeElasticity = y(e.edgeElasticity, s), i += f.idealLength, a++;
2957
2961
  }
2958
2962
  }
2959
- e.idealEdgeLength != null && (u.DEFAULT_EDGE_LENGTH = l.DEFAULT_EDGE_LENGTH = a > 0 ? i / a : v(e.idealEdgeLength) ? 50 : e.idealEdgeLength, u.MIN_REPULSION_DIST = l.MIN_REPULSION_DIST = l.DEFAULT_EDGE_LENGTH / 10, u.DEFAULT_RADIAL_SEPARATION = l.DEFAULT_EDGE_LENGTH);
2963
+ e.idealEdgeLength != null && (a > 0 ? u.DEFAULT_EDGE_LENGTH = l.DEFAULT_EDGE_LENGTH = i / a : v(e.idealEdgeLength) ? u.DEFAULT_EDGE_LENGTH = l.DEFAULT_EDGE_LENGTH = 50 : u.DEFAULT_EDGE_LENGTH = l.DEFAULT_EDGE_LENGTH = e.idealEdgeLength, u.MIN_REPULSION_DIST = l.MIN_REPULSION_DIST = l.DEFAULT_EDGE_LENGTH / 10, u.DEFAULT_RADIAL_SEPARATION = l.DEFAULT_EDGE_LENGTH);
2960
2964
  }, C = function(e, t) {
2961
2965
  t.fixedNodeConstraint && (e.constraints.fixedNodeConstraint = t.fixedNodeConstraint), t.alignmentConstraint && (e.constraints.alignmentConstraint = t.alignmentConstraint), t.relativePlacementConstraint && (e.constraints.relativePlacementConstraint = t.relativePlacementConstraint);
2962
2966
  };
2963
- e.nestingFactor != null && (u.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = e.nestingFactor), e.gravity != null && (u.DEFAULT_GRAVITY_STRENGTH = l.DEFAULT_GRAVITY_STRENGTH = e.gravity), e.numIter != null && (u.MAX_ITERATIONS = l.MAX_ITERATIONS = e.numIter), e.gravityRange != null && (u.DEFAULT_GRAVITY_RANGE_FACTOR = l.DEFAULT_GRAVITY_RANGE_FACTOR = e.gravityRange), e.gravityCompound != null && (u.DEFAULT_COMPOUND_GRAVITY_STRENGTH = l.DEFAULT_COMPOUND_GRAVITY_STRENGTH = e.gravityCompound), e.gravityRangeCompound != null && (u.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = e.gravityRangeCompound), e.initialEnergyOnIncremental != null && (u.DEFAULT_COOLING_FACTOR_INCREMENTAL = l.DEFAULT_COOLING_FACTOR_INCREMENTAL = e.initialEnergyOnIncremental), e.tilingCompareBy != null && (u.TILING_COMPARE_BY = e.tilingCompareBy), c.QUALITY = e.quality == "proof" ? 2 : 0, u.NODE_DIMENSIONS_INCLUDE_LABELS = l.NODE_DIMENSIONS_INCLUDE_LABELS = c.NODE_DIMENSIONS_INCLUDE_LABELS = e.nodeDimensionsIncludeLabels, u.DEFAULT_INCREMENTAL = l.DEFAULT_INCREMENTAL = c.DEFAULT_INCREMENTAL = !e.randomize, u.ANIMATE = l.ANIMATE = c.ANIMATE = e.animate, u.TILE = e.tile, u.TILING_PADDING_VERTICAL = typeof e.tilingPaddingVertical == "function" ? e.tilingPaddingVertical.call() : e.tilingPaddingVertical, u.TILING_PADDING_HORIZONTAL = typeof e.tilingPaddingHorizontal == "function" ? e.tilingPaddingHorizontal.call() : e.tilingPaddingHorizontal, u.DEFAULT_INCREMENTAL = l.DEFAULT_INCREMENTAL = c.DEFAULT_INCREMENTAL = !0, u.PURE_INCREMENTAL = !e.randomize, c.DEFAULT_UNIFORM_LEAF_NODE_SIZES = e.uniformNodeDimensions, e.step == "transformed" && (u.TRANSFORM_ON_CONSTRAINT_HANDLING = !0, u.ENFORCE_CONSTRAINTS = !1, u.APPLY_LAYOUT = !1), e.step == "enforced" && (u.TRANSFORM_ON_CONSTRAINT_HANDLING = !1, u.ENFORCE_CONSTRAINTS = !0, u.APPLY_LAYOUT = !1), e.step == "cose" && (u.TRANSFORM_ON_CONSTRAINT_HANDLING = !1, u.ENFORCE_CONSTRAINTS = !1, u.APPLY_LAYOUT = !0), e.step == "all" && (u.TRANSFORM_ON_CONSTRAINT_HANDLING = !!e.randomize, u.ENFORCE_CONSTRAINTS = !0, u.APPLY_LAYOUT = !0), u.TREE_REDUCTION_ON_INCREMENTAL = !(e.fixedNodeConstraint || e.alignmentConstraint || e.relativePlacementConstraint);
2967
+ e.nestingFactor != null && (u.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = e.nestingFactor), e.gravity != null && (u.DEFAULT_GRAVITY_STRENGTH = l.DEFAULT_GRAVITY_STRENGTH = e.gravity), e.numIter != null && (u.MAX_ITERATIONS = l.MAX_ITERATIONS = e.numIter), e.gravityRange != null && (u.DEFAULT_GRAVITY_RANGE_FACTOR = l.DEFAULT_GRAVITY_RANGE_FACTOR = e.gravityRange), e.gravityCompound != null && (u.DEFAULT_COMPOUND_GRAVITY_STRENGTH = l.DEFAULT_COMPOUND_GRAVITY_STRENGTH = e.gravityCompound), e.gravityRangeCompound != null && (u.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = e.gravityRangeCompound), e.initialEnergyOnIncremental != null && (u.DEFAULT_COOLING_FACTOR_INCREMENTAL = l.DEFAULT_COOLING_FACTOR_INCREMENTAL = e.initialEnergyOnIncremental), e.tilingCompareBy != null && (u.TILING_COMPARE_BY = e.tilingCompareBy), e.quality == "proof" ? c.QUALITY = 2 : c.QUALITY = 0, u.NODE_DIMENSIONS_INCLUDE_LABELS = l.NODE_DIMENSIONS_INCLUDE_LABELS = c.NODE_DIMENSIONS_INCLUDE_LABELS = e.nodeDimensionsIncludeLabels, u.DEFAULT_INCREMENTAL = l.DEFAULT_INCREMENTAL = c.DEFAULT_INCREMENTAL = !e.randomize, u.ANIMATE = l.ANIMATE = c.ANIMATE = e.animate, u.TILE = e.tile, u.TILING_PADDING_VERTICAL = typeof e.tilingPaddingVertical == "function" ? e.tilingPaddingVertical.call() : e.tilingPaddingVertical, u.TILING_PADDING_HORIZONTAL = typeof e.tilingPaddingHorizontal == "function" ? e.tilingPaddingHorizontal.call() : e.tilingPaddingHorizontal, u.DEFAULT_INCREMENTAL = l.DEFAULT_INCREMENTAL = c.DEFAULT_INCREMENTAL = !0, u.PURE_INCREMENTAL = !e.randomize, c.DEFAULT_UNIFORM_LEAF_NODE_SIZES = e.uniformNodeDimensions, e.step == "transformed" && (u.TRANSFORM_ON_CONSTRAINT_HANDLING = !0, u.ENFORCE_CONSTRAINTS = !1, u.APPLY_LAYOUT = !1), e.step == "enforced" && (u.TRANSFORM_ON_CONSTRAINT_HANDLING = !1, u.ENFORCE_CONSTRAINTS = !0, u.APPLY_LAYOUT = !1), e.step == "cose" && (u.TRANSFORM_ON_CONSTRAINT_HANDLING = !1, u.ENFORCE_CONSTRAINTS = !1, u.APPLY_LAYOUT = !0), e.step == "all" && (e.randomize ? u.TRANSFORM_ON_CONSTRAINT_HANDLING = !0 : u.TRANSFORM_ON_CONSTRAINT_HANDLING = !1, u.ENFORCE_CONSTRAINTS = !0, u.APPLY_LAYOUT = !0), e.fixedNodeConstraint || e.alignmentConstraint || e.relativePlacementConstraint ? u.TREE_REDUCTION_ON_INCREMENTAL = !1 : u.TREE_REDUCTION_ON_INCREMENTAL = !0;
2964
2968
  var w = new i(), T = w.newGraphManager();
2965
2969
  return x(T.addRoot(), r.getTopMostNodes(f), w, e), S(w, T, p), C(w, e), w.runLayout(), _;
2966
2970
  } };
@@ -3175,21 +3179,22 @@ var D = /* @__PURE__ */ t(((e, t) => {
3175
3179
  x: r.x,
3176
3180
  y: r.y
3177
3181
  };
3182
+ } else {
3183
+ var c = void 0;
3184
+ return i.forEach(function(t) {
3185
+ var n = t.nodeIndexes.get(e.id());
3186
+ n != null && (c = {
3187
+ x: t.xCoords[n],
3188
+ y: t.yCoords[n]
3189
+ });
3190
+ }), c ??= {
3191
+ x: e.position("x"),
3192
+ y: e.position("y")
3193
+ }, {
3194
+ x: c.x,
3195
+ y: c.y
3196
+ };
3178
3197
  }
3179
- var c = void 0;
3180
- return i.forEach(function(t) {
3181
- var n = t.nodeIndexes.get(e.id());
3182
- n != null && (c = {
3183
- x: t.xCoords[n],
3184
- y: t.yCoords[n]
3185
- });
3186
- }), c ??= {
3187
- x: e.position("x"),
3188
- y: e.position("y")
3189
- }, {
3190
- x: c.x,
3191
- y: c.y
3192
- };
3193
3198
  };
3194
3199
  if (t.quality == "default" || t.quality == "proof" || t.randomize) {
3195
3200
  var j = o.calcParentsWithoutChildren(n, r), M = r.filter(function(e) {
@@ -3335,17 +3340,18 @@ var D = /* @__PURE__ */ t(((e, t) => {
3335
3340
  xCoords: f,
3336
3341
  yCoords: p
3337
3342
  }), U;
3343
+ } else {
3344
+ var ie = l.keys(), K = t.getElementById(ie.next().value), q = K.position(), J = K.outerWidth();
3345
+ if (f.push(q.x), p.push(q.y), y == 2) {
3346
+ var Y = t.getElementById(ie.next().value).outerWidth();
3347
+ f.push(q.x + J / 2 + Y / 2 + e.idealEdgeLength), p.push(q.y);
3348
+ }
3349
+ return U = {
3350
+ nodeIndexes: l,
3351
+ xCoords: f,
3352
+ yCoords: p
3353
+ }, U;
3338
3354
  }
3339
- var ie = l.keys(), K = t.getElementById(ie.next().value), q = K.position(), J = K.outerWidth();
3340
- if (f.push(q.x), p.push(q.y), y == 2) {
3341
- var Y = t.getElementById(ie.next().value).outerWidth();
3342
- f.push(q.x + J / 2 + Y / 2 + e.idealEdgeLength), p.push(q.y);
3343
- }
3344
- return U = {
3345
- nodeIndexes: l,
3346
- xCoords: f,
3347
- yCoords: p
3348
- }, U;
3349
3355
  } };
3350
3356
  }),
3351
3357
  579: ((e, t, n) => {
@@ -3567,7 +3573,7 @@ var D = /* @__PURE__ */ t(((e, t) => {
3567
3573
  return this.getConfig()[e];
3568
3574
  }
3569
3575
  }, ie = /* @__PURE__ */ r((e, t) => {
3570
- w(e, t), e.groups.map((e) => t.addGroup(e)), e.services.map((e) => t.addService({
3576
+ T(e, t), e.groups.map((e) => t.addGroup(e)), e.services.map((e) => t.addService({
3571
3577
  ...e,
3572
3578
  type: "service"
3573
3579
  })), e.junctions.map((e) => t.addJunction({
@@ -3624,28 +3630,28 @@ var D = /* @__PURE__ */ t(((e, t) => {
3624
3630
  disk: { body: J("<rect x=\"20\" y=\"15\" width=\"40\" height=\"50\" rx=\"1\" ry=\"1\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><ellipse cx=\"24\" cy=\"19.17\" rx=\".8\" ry=\".83\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><ellipse cx=\"56\" cy=\"19.17\" rx=\".8\" ry=\".83\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><ellipse cx=\"24\" cy=\"60.83\" rx=\".8\" ry=\".83\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><ellipse cx=\"56\" cy=\"60.83\" rx=\".8\" ry=\".83\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><ellipse cx=\"40\" cy=\"33.75\" rx=\"14\" ry=\"14.58\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><ellipse cx=\"40\" cy=\"33.75\" rx=\"4\" ry=\"4.17\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><path d=\"m37.51,42.52l-4.83,13.22c-.26.71-1.1,1.02-1.76.64l-4.18-2.42c-.66-.38-.81-1.26-.33-1.84l9.01-10.8c.88-1.05,2.56-.08,2.09,1.2Z\" style=\"fill: #fff; stroke-width: 0px;\"/>") },
3625
3631
  internet: { body: J("<circle cx=\"40\" cy=\"40\" r=\"22.5\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><line x1=\"40\" y1=\"17.5\" x2=\"40\" y2=\"62.5\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><line x1=\"17.5\" y1=\"40\" x2=\"62.5\" y2=\"40\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><path d=\"m39.99,17.51c-15.28,11.1-15.28,33.88,0,44.98\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><path d=\"m40.01,17.51c15.28,11.1,15.28,33.88,0,44.98\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><line x1=\"19.75\" y1=\"30.1\" x2=\"60.25\" y2=\"30.1\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><line x1=\"19.75\" y1=\"49.9\" x2=\"60.25\" y2=\"49.9\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/>") },
3626
3632
  cloud: { body: J("<path d=\"m65,47.5c0,2.76-2.24,5-5,5H20c-2.76,0-5-2.24-5-5,0-1.87,1.03-3.51,2.56-4.36-.04-.21-.06-.42-.06-.64,0-2.6,2.48-4.74,5.65-4.97,1.65-4.51,6.34-7.76,11.85-7.76.86,0,1.69.08,2.5.23,2.09-1.57,4.69-2.5,7.5-2.5,6.1,0,11.19,4.38,12.28,10.17,2.14.56,3.72,2.51,3.72,4.83,0,.03,0,.07-.01.1,2.29.46,4.01,2.48,4.01,4.9Z\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/>") },
3627
- unknown: b,
3633
+ unknown: x,
3628
3634
  blank: { body: J("") }
3629
3635
  }
3630
3636
  }, ae = /* @__PURE__ */ r(async function(e, t, n) {
3631
3637
  let r = n.getConfigField("padding"), i = n.getConfigField("iconSize"), a = i / 2, s = i / 6, c = s / 2;
3632
3638
  await Promise.all(t.edges().map(async (t) => {
3633
- let { source: i, sourceDir: l, sourceArrow: u, sourceGroup: d, target: f, targetDir: p, targetArrow: m, targetGroup: h, label: _ } = re(t), { x: v, y } = t[0].sourceEndpoint(), { x: b, y: x } = t[0].midpoint(), { x: C, y: w } = t[0].targetEndpoint(), T = r + 4;
3634
- if (d && (F(l) ? v += l === "L" ? -T : T : y += l === "T" ? -T : T + 18), h && (F(p) ? C += p === "L" ? -T : T : w += p === "T" ? -T : T + 18), !d && n.getNode(i)?.type === "junction" && (F(l) ? v += l === "L" ? a : -a : y += l === "T" ? a : -a), !h && n.getNode(f)?.type === "junction" && (F(p) ? C += p === "L" ? a : -a : w += p === "T" ? a : -a), t[0]._private.rscratch) {
3639
+ let { source: i, sourceDir: l, sourceArrow: u, sourceGroup: d, target: f, targetDir: p, targetArrow: m, targetGroup: h, label: _ } = re(t), { x: v, y } = t[0].sourceEndpoint(), { x: b, y: x } = t[0].midpoint(), { x: S, y: w } = t[0].targetEndpoint(), T = r + 4;
3640
+ if (d && (F(l) ? v += l === "L" ? -T : T : y += l === "T" ? -T : T + 18), h && (F(p) ? S += p === "L" ? -T : T : w += p === "T" ? -T : T + 18), !d && n.getNode(i)?.type === "junction" && (F(l) ? v += l === "L" ? a : -a : y += l === "T" ? a : -a), !h && n.getNode(f)?.type === "junction" && (F(p) ? S += p === "L" ? a : -a : w += p === "T" ? a : -a), t[0]._private.rscratch) {
3635
3641
  let t = e.insert("g");
3636
- if (t.insert("path").attr("d", `M ${v},${y} L ${b},${x} L${C},${w} `).attr("class", "edge").attr("id", o(i, f, { prefix: "L" })), u) {
3642
+ if (t.insert("path").attr("d", `M ${v},${y} L ${b},${x} L${S},${w} `).attr("class", "edge").attr("id", o(i, f, { prefix: "L" })), u) {
3637
3643
  let e = F(l) ? M[l](v, s) : v - c, n = I(l) ? M[l](y, s) : y - c;
3638
3644
  t.insert("polygon").attr("points", j[l](s)).attr("transform", `translate(${e},${n})`).attr("class", "arrow");
3639
3645
  }
3640
3646
  if (m) {
3641
- let e = F(p) ? M[p](C, s) : C - c, n = I(p) ? M[p](w, s) : w - c;
3647
+ let e = F(p) ? M[p](S, s) : S - c, n = I(p) ? M[p](w, s) : w - c;
3642
3648
  t.insert("polygon").attr("points", j[p](s)).attr("transform", `translate(${e},${n})`).attr("class", "arrow");
3643
3649
  }
3644
3650
  if (_) {
3645
3651
  let e = L(l, p) ? "XY" : F(l) ? "X" : "Y", n = 0;
3646
- n = e === "X" ? Math.abs(v - C) : e === "Y" ? Math.abs(y - w) / 1.5 : Math.abs(v - C) / 2;
3652
+ n = e === "X" ? Math.abs(v - S) : e === "Y" ? Math.abs(y - w) / 1.5 : Math.abs(v - S) / 2;
3647
3653
  let r = t.append("g");
3648
- if (await S(r, _, {
3654
+ if (await C(r, _, {
3649
3655
  useHtmlLabels: !1,
3650
3656
  width: n,
3651
3657
  classes: "architecture-service-label"
@@ -3677,7 +3683,7 @@ var D = /* @__PURE__ */ t(((e, t) => {
3677
3683
  let f = e.append("g"), p = l, m = u;
3678
3684
  if (o.icon) {
3679
3685
  let e = f.append("g");
3680
- e.html(`<g>${await C(o.icon, {
3686
+ e.html(`<g>${await w(o.icon, {
3681
3687
  height: r,
3682
3688
  width: r,
3683
3689
  fallbackPrefix: Y.prefix
@@ -3685,7 +3691,7 @@ var D = /* @__PURE__ */ t(((e, t) => {
3685
3691
  }
3686
3692
  if (o.label) {
3687
3693
  let e = f.append("g");
3688
- await S(e, o.label, {
3694
+ await C(e, o.label, {
3689
3695
  useHtmlLabels: !1,
3690
3696
  width: c,
3691
3697
  classes: "architecture-service-label"
@@ -3700,20 +3706,20 @@ var D = /* @__PURE__ */ t(((e, t) => {
3700
3706
  let n = t.append("g"), a = e.getConfigField("iconSize");
3701
3707
  if (i.title) {
3702
3708
  let e = n.append("g");
3703
- await S(e, i.title, {
3709
+ await C(e, i.title, {
3704
3710
  useHtmlLabels: !1,
3705
3711
  width: a * 1.5,
3706
3712
  classes: "architecture-service-label"
3707
3713
  }, r), e.attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle"), e.attr("transform", "translate(" + a / 2 + ", " + a + ")");
3708
3714
  }
3709
3715
  let o = n.append("g");
3710
- if (i.icon) o.html(`<g>${await C(i.icon, {
3716
+ if (i.icon) o.html(`<g>${await w(i.icon, {
3711
3717
  height: a,
3712
3718
  width: a,
3713
3719
  fallbackPrefix: Y.prefix
3714
3720
  })}</g>`);
3715
3721
  else if (i.iconText) {
3716
- o.html(`<g>${await C("blank", {
3722
+ o.html(`<g>${await w("blank", {
3717
3723
  height: a,
3718
3724
  width: a,
3719
3725
  fallbackPrefix: Y.prefix
@@ -3734,10 +3740,10 @@ var D = /* @__PURE__ */ t(((e, t) => {
3734
3740
  r.width = a, r.height = o, e.setElementForId(n.id, r);
3735
3741
  });
3736
3742
  }, "drawJunctions");
3737
- x([{
3743
+ S([{
3738
3744
  name: Y.prefix,
3739
3745
  icons: Y
3740
- }]), T.use(k.default);
3746
+ }]), E.use(k.default);
3741
3747
  function se(e, t, n) {
3742
3748
  e.forEach((e) => {
3743
3749
  t.add({
@@ -3891,7 +3897,7 @@ function pe(e, t) {
3891
3897
  r(pe, "getRelativeConstraints");
3892
3898
  function me(e, t, a, o, s, { spatialMaps: c, groupAlignments: l }) {
3893
3899
  return new Promise((u) => {
3894
- let d = i("body").append("div").attr("id", "cy").attr("style", "display:none"), f = T({
3900
+ let d = i("body").append("div").attr("id", "cy").attr("style", "display:none"), f = E({
3895
3901
  container: document.getElementById("cy"),
3896
3902
  style: [
3897
3903
  {
@@ -3985,14 +3991,18 @@ function me(e, t, a, o, s, { spatialMaps: c, groupAlignments: l }) {
3985
3991
  case d >= 0:
3986
3992
  d = 1;
3987
3993
  break;
3988
- case d < 0: d = -1;
3994
+ case d < 0:
3995
+ d = -1;
3996
+ break;
3989
3997
  }
3990
3998
  let f = (c - o) * (n - o) + (l - s) * (r - s);
3991
3999
  switch (!0) {
3992
4000
  case f >= 0:
3993
4001
  f = 1;
3994
4002
  break;
3995
- case f < 0: f = -1;
4003
+ case f < 0:
4004
+ f = -1;
4005
+ break;
3996
4006
  }
3997
4007
  return a = Math.abs(a) * d, i *= f, {
3998
4008
  distances: a,
@@ -4020,7 +4030,7 @@ var he = {
4020
4030
  return new G();
4021
4031
  },
4022
4032
  renderer: { draw: /* @__PURE__ */ r(async (e, t, n, r) => {
4023
- let i = r.db, a = i.getServices(), o = i.getJunctions(), s = i.getGroups(), c = i.getEdges(), l = i.getDataStructures(), d = E(t), f = d.append("g");
4033
+ let i = r.db, a = i.getServices(), o = i.getJunctions(), s = i.getGroups(), c = i.getEdges(), l = i.getDataStructures(), d = b(t), f = d.append("g");
4024
4034
  f.attr("class", "architecture-edges");
4025
4035
  let p = d.append("g");
4026
4036
  p.attr("class", "architecture-services");
@@ -1,14 +1,14 @@
1
- import { g as e, h as t, p as n } from "./src-Dynw_Lub.js";
2
- import { T as r, c as i, h as a, i as o } from "./chunk-GEFDOKGD-BEzc6NZw.js";
3
- import { t as s } from "./clone-yzFtXY5G.js";
4
- import { t as c } from "./graphlib-BMvIh7N7.js";
5
- import { D as l, L as u, a as d, b as f, c as p, nt as m, s as h, w as g, y as _ } from "./chunk-7R4GIKGN-scch4dXY.js";
6
- import { t as v } from "./channel-DrSSYyxp.js";
7
- import { t as y } from "./line-D05MESIS.js";
8
- import { n as b } from "./chunk-PU5JKC2W-TuGY6X1n.js";
9
- import { t as x } from "./chunk-FMBD7UC4-JmekSPZP.js";
10
- import { n as S, t as C } from "./chunk-MX3YWQON-D602L8pU.js";
11
- import { n as w, t as T } from "./chunk-YBOYWFTD-CRiKEIiS.js";
1
+ import { g as e, h as t, p as n } from "./src-3T61hYex.js";
2
+ import { T as r, c as i, h as a, i as o } from "./chunk-GEFDOKGD-oBEpn5hN.js";
3
+ import { t as s } from "./clone-DIGEZsKS.js";
4
+ import { t as c } from "./graphlib-DqWOhV4K.js";
5
+ import { D as l, L as u, a as d, b as f, c as p, nt as m, s as h, w as g, y as _ } from "./chunk-7R4GIKGN-mKY502R8.js";
6
+ import { t as v } from "./channel-CxLj88Pg.js";
7
+ import { t as y } from "./line-Cm2n2y9Z.js";
8
+ import { n as b } from "./chunk-PU5JKC2W-DIl8TkGX.js";
9
+ import { t as x } from "./chunk-FMBD7UC4-B88neS61.js";
10
+ import { n as S, t as C } from "./chunk-MX3YWQON-D4cz36rq.js";
11
+ import { n as w, t as T } from "./chunk-YBOYWFTD-C2IdGsg8.js";
12
12
  //#region ../../node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-WCTKOSBZ.mjs
13
13
  var E = (function() {
14
14
  var e = /* @__PURE__ */ t(function(e, t, n, r) {
@@ -208,7 +208,7 @@ var E = (function() {
208
208
  r.getLogger().debug("Stop EOF2 ");
209
209
  break;
210
210
  case 12:
211
- r.getLogger().debug("Rule: statement: ", a[s]), this.$ = typeof a[s].length == "number" ? a[s] : [a[s]];
211
+ r.getLogger().debug("Rule: statement: ", a[s]), typeof a[s].length == "number" ? this.$ = a[s] : this.$ = [a[s]];
212
212
  break;
213
213
  case 13:
214
214
  r.getLogger().debug("Rule: statement #2: ", a[s - 1]), this.$ = [a[s - 1]].concat(a[s]);
@@ -349,11 +349,13 @@ var E = (function() {
349
349
  styleClass: a[s].trim()
350
350
  };
351
351
  break;
352
- case 38: this.$ = {
353
- type: "applyStyles",
354
- id: a[s - 1].trim(),
355
- stylesStr: a[s].trim()
356
- };
352
+ case 38:
353
+ this.$ = {
354
+ type: "applyStyles",
355
+ id: a[s - 1].trim(),
356
+ stylesStr: a[s].trim()
357
+ };
358
+ break;
357
359
  }
358
360
  }, "anonymous"),
359
361
  table: [
@@ -534,7 +536,7 @@ var E = (function() {
534
536
  var v = h.yylloc;
535
537
  o.push(v);
536
538
  var y = h.options && h.options.ranges;
537
- this.parseError = typeof g.yy.parseError == "function" ? g.yy.parseError : Object.getPrototypeOf(this).parseError;
539
+ typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
538
540
  function b(e) {
539
541
  r.length -= 2 * e, a.length -= e, o.length -= e;
540
542
  }
@@ -687,10 +689,8 @@ var E = (function() {
687
689
  if (this._backtrack) {
688
690
  t = !1;
689
691
  continue;
690
- }
691
- return !1;
692
- }
693
- if (!this.options.flex) break;
692
+ } else return !1;
693
+ } else if (!this.options.flex) break;
694
694
  }
695
695
  return t ? (e = this.test_match(t, i[r]), e !== !1 && e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
696
696
  text: "",
@@ -1175,7 +1175,7 @@ var D = E, O = /* @__PURE__ */ new Map(), k = [], A = /* @__PURE__ */ new Map(),
1175
1175
  children: []
1176
1176
  }, O.set(t, n);
1177
1177
  }
1178
- n.classes || (n.classes = []), n.classes.push(t);
1178
+ n.classes ||= [], n.classes.push(t);
1179
1179
  });
1180
1180
  }, "setCssClass"), se = /* @__PURE__ */ t((t, n) => {
1181
1181
  let r = t.flat(), i = [], a = r.find((e) => e?.type === "column-setting")?.columns ?? -1;
@@ -1197,7 +1197,7 @@ var D = E, O = /* @__PURE__ */ new Map(), k = [], A = /* @__PURE__ */ new Map(),
1197
1197
  let e = (A.get(t.id) ?? 0) + 1;
1198
1198
  A.set(t.id, e), t.id = e + "-" + t.id, k.push(t);
1199
1199
  } else {
1200
- t.label ||= t.type === "composite" ? "" : t.id;
1200
+ t.label || (t.type === "composite" ? t.label = "" : t.label = t.id);
1201
1201
  let e = O.get(t.id);
1202
1202
  if (e === void 0 ? O.set(t.id, t) : (t.type !== "na" && (e.type = t.type), t.label !== t.id && (e.label = t.label)), t.children && se(t.children, t), t.type === "space") {
1203
1203
  let e = t.width ?? 1;
@@ -1285,8 +1285,8 @@ var fe = 0, pe = {
1285
1285
  clear: ce,
1286
1286
  generateId: /* @__PURE__ */ t(() => (fe++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + fe), "generateId")
1287
1287
  }, I = /* @__PURE__ */ t((e, t) => {
1288
- let n = v, r = n(e, "r"), i = n(e, "g"), a = n(e, "b");
1289
- return m(r, i, a, t);
1288
+ let n = v;
1289
+ return m(n(e, "r"), n(e, "g"), n(e, "b"), t);
1290
1290
  }, "fade"), me = /* @__PURE__ */ t((e) => `.label {
1291
1291
  font-family: ${e.fontFamily};
1292
1292
  color: ${e.nodeTextColor || e.textColor};
@@ -1698,14 +1698,14 @@ function U(e, t) {
1698
1698
  t(U, "setTerminalWidth");
1699
1699
  var Ee = /* @__PURE__ */ t((t, n) => {
1700
1700
  e.debug("Moving label abc88 ", t.id, t.label, V[t.id], n);
1701
- let r = n.updatedPath ? n.updatedPath : n.originalPath, i = f(), { subGraphTitleTotalMargin: o } = w(i);
1701
+ let r = n.updatedPath ? n.updatedPath : n.originalPath, { subGraphTitleTotalMargin: i } = w(f());
1702
1702
  if (t.label) {
1703
- let i = V[t.id], s = t.x, c = t.y;
1703
+ let o = V[t.id], s = t.x, c = t.y;
1704
1704
  if (r) {
1705
1705
  let i = a.calcLabelPosition(r);
1706
1706
  e.debug("Moving label " + t.label + " from (", s, ",", c, ") to (", i.x, ",", i.y, ") abc88"), n.updatedPath && (s = i.x, c = i.y);
1707
1707
  }
1708
- i.attr("transform", `translate(${s}, ${c + o / 2})`);
1708
+ o.attr("transform", `translate(${s}, ${c + i / 2})`);
1709
1709
  }
1710
1710
  if (t.startLabelLeft) {
1711
1711
  let e = H[t.id].startLeft, n = t.x, i = t.y;
@@ -1756,8 +1756,7 @@ var Ee = /* @__PURE__ */ t((t, n) => {
1756
1756
  y: r.y < n.y ? r.y + u - t : r.y - u + t
1757
1757
  };
1758
1758
  return c === 0 && (i.x = n.x, i.y = n.y), d === 0 && (i.x = n.x), u === 0 && (i.y = n.y), e.debug(`abc89 topp/bott calc, Q ${u}, q ${t}, R ${d}, r ${c}`, i), i;
1759
- }
1760
- {
1759
+ } else {
1761
1760
  c = r.x < n.x ? n.x - s - i : i - s - n.x;
1762
1761
  let t = u * c / d, a = r.x < n.x ? r.x + d - c : r.x - d + c, o = r.y < n.y ? r.y + t : r.y - t;
1763
1762
  return e.debug(`sides calc abc89, Q ${u}, q ${t}, R ${d}, r ${c}`, {
@@ -1807,7 +1806,9 @@ var Ee = /* @__PURE__ */ t((t, n) => {
1807
1806
  case "dotted":
1808
1807
  x += " edge-pattern-dotted";
1809
1808
  break;
1810
- case "dashed": x += " edge-pattern-dashed";
1809
+ case "dashed":
1810
+ x += " edge-pattern-dashed";
1811
+ break;
1811
1812
  }
1812
1813
  let C = t.append("path").attr("d", b(h)).attr("id", i.id).attr("class", " " + x + (i.classes ? " " + i.classes : "")).attr("style", i.style), w = "";
1813
1814
  (f().flowchart.arrowMarkerAbsolute || f().state.arrowMarkerAbsolute) && (w = l(!0)), Se(C, i, w, c, o);
@@ -1822,7 +1823,9 @@ var Ee = /* @__PURE__ */ t((t, n) => {
1822
1823
  case "y":
1823
1824
  t.add("up"), t.add("down");
1824
1825
  break;
1825
- default: t.add(n);
1826
+ default:
1827
+ t.add(n);
1828
+ break;
1826
1829
  }
1827
1830
  return t;
1828
1831
  }, "expandAndDeduplicateDirections"), Me = /* @__PURE__ */ t((e, t, n) => {