@leanspec/ui-components 0.2.21 → 0.2.23

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 (171) hide show
  1. package/dist/{_baseUniq-KSDS6tgF.js → _baseUniq-C4bkXOdh.js} +2 -2
  2. package/dist/{_baseUniq-ifpVq4u5.cjs → _baseUniq-NOqaX5H-.cjs} +1 -1
  3. package/dist/{arc-C-X5Xt_b.js → arc-DFohBtPV.js} +1 -1
  4. package/dist/{arc-CutFaiCL.cjs → arc-tyrH719b.cjs} +1 -1
  5. package/dist/{architecture-U656AL7Q-BB1A66AM.js → architecture-U656AL7Q-BBwC7kfZ.js} +1 -1
  6. package/dist/{architecture-U656AL7Q-DOVRDeZr.cjs → architecture-U656AL7Q-SovojSOj.cjs} +1 -1
  7. package/dist/architectureDiagram-VXUJARFQ-C4hhcqJd.cjs +36 -0
  8. package/dist/{architectureDiagram-VXUJARFQ-Bal8NTn4.js → architectureDiagram-VXUJARFQ-_R9_zrc5.js} +1272 -1279
  9. package/dist/{blockDiagram-VD42YOAC-B2gTo5wW.js → blockDiagram-VD42YOAC-CiyHYW6w.js} +911 -920
  10. package/dist/blockDiagram-VD42YOAC-DDU7DL-t.cjs +122 -0
  11. package/dist/c4Diagram-YG6GDRKO-B2Hnd24N.cjs +10 -0
  12. package/dist/{c4Diagram-YG6GDRKO-dIf_vNCY.js → c4Diagram-YG6GDRKO-D9NuNc3r.js} +162 -163
  13. package/dist/channel-CCjQuxFu.cjs +1 -0
  14. package/dist/{channel-klR7o7JB.js → channel-mhjF1lKa.js} +1 -1
  15. package/dist/chunk-4BX2VUAB-8sPjSRf4.cjs +1 -0
  16. package/dist/chunk-4BX2VUAB-D4Zhvat9.js +8 -0
  17. package/dist/{chunk-55IACEB6-C88Xx0rU.cjs → chunk-55IACEB6-BuOA2zgr.cjs} +1 -1
  18. package/dist/{chunk-55IACEB6-Dd3NjClm.js → chunk-55IACEB6-C_MzxCLx.js} +1 -1
  19. package/dist/{chunk-B4BG7PRW-BTU_nPVE.cjs → chunk-B4BG7PRW-C0iFhfj1.cjs} +6 -6
  20. package/dist/{chunk-B4BG7PRW-DLUrgkJI.js → chunk-B4BG7PRW-Q8H7OQ1o.js} +247 -248
  21. package/dist/chunk-DI55MBZ5-DFTfH1ih.cjs +220 -0
  22. package/dist/{chunk-DI55MBZ5-BwHLqSW9.js → chunk-DI55MBZ5-qwPYmgAw.js} +440 -452
  23. package/dist/{chunk-FMBD7UC4-CedTj9g2.cjs → chunk-FMBD7UC4-CPX03hX9.cjs} +1 -1
  24. package/dist/{chunk-FMBD7UC4-6dsbMKM7.js → chunk-FMBD7UC4-DhXvRHU3.js} +1 -1
  25. package/dist/chunk-QN33PNHL-BL0nCK1x.cjs +1 -0
  26. package/dist/chunk-QN33PNHL-CLwAcvO2.js +19 -0
  27. package/dist/{chunk-QZHKN3VN-CVAEdzef.js → chunk-QZHKN3VN-3tLb49S_.js} +1 -1
  28. package/dist/{chunk-QZHKN3VN-CU1cLvn7.cjs → chunk-QZHKN3VN-NXe7XoPI.cjs} +1 -1
  29. package/dist/{chunk-TZMSLE5B-Dy6zxWyY.cjs → chunk-TZMSLE5B-DG9JqGDb.cjs} +1 -1
  30. package/dist/{chunk-TZMSLE5B-Cc8_PJIq.js → chunk-TZMSLE5B-DfaYobmr.js} +1 -1
  31. package/dist/{classDiagram-2ON5EDUG-CJQWUYqu.cjs → classDiagram-2ON5EDUG-CV-RQXaH.cjs} +1 -1
  32. package/dist/{classDiagram-v2-WZHVMYZB-D7bjndmT.js → classDiagram-2ON5EDUG-xB0RyXwt.js} +2 -2
  33. package/dist/{classDiagram-v2-WZHVMYZB-CJQWUYqu.cjs → classDiagram-v2-WZHVMYZB-CV-RQXaH.cjs} +1 -1
  34. package/dist/{classDiagram-2ON5EDUG-D7bjndmT.js → classDiagram-v2-WZHVMYZB-xB0RyXwt.js} +2 -2
  35. package/dist/clone-Db2amhxD.cjs +1 -0
  36. package/dist/{clone-7srXemyd.js → clone-DqT6If4_.js} +1 -1
  37. package/dist/{code-block-37QAKDTI-MRm4xHKr.js → code-block-37QAKDTI-CWOOD74I.js} +1 -1
  38. package/dist/{code-block-37QAKDTI-BAYBliUK.cjs → code-block-37QAKDTI-uxfAy-E5.cjs} +1 -1
  39. package/dist/components/graph/dependency-graph.d.ts.map +1 -1
  40. package/dist/components/hierarchy/hierarchy-tree.d.ts +24 -0
  41. package/dist/components/hierarchy/hierarchy-tree.d.ts.map +1 -0
  42. package/dist/components/hierarchy/index.d.ts +2 -0
  43. package/dist/components/hierarchy/index.d.ts.map +1 -0
  44. package/dist/components/index.d.ts +1 -0
  45. package/dist/components/index.d.ts.map +1 -1
  46. package/dist/components/layout/index.d.ts +1 -1
  47. package/dist/components/layout/index.d.ts.map +1 -1
  48. package/dist/components/layout/loading-skeletons.d.ts +39 -0
  49. package/dist/components/layout/loading-skeletons.d.ts.map +1 -1
  50. package/dist/components/spec/spec-card.d.ts +1 -1
  51. package/dist/components/spec/spec-card.d.ts.map +1 -1
  52. package/dist/components/ui/index.d.ts +3 -3
  53. package/dist/components/ui/index.d.ts.map +1 -1
  54. package/dist/{cose-bilkent-S5V4N54A-0O3dLIoy.js → cose-bilkent-S5V4N54A-DBS7wwrE.js} +281 -281
  55. package/dist/cose-bilkent-S5V4N54A-SbkkFEUD.cjs +1 -0
  56. package/dist/cytoscape.esm-CNUX3VTg.cjs +321 -0
  57. package/dist/{cytoscape.esm-CjI2IsL8.js → cytoscape.esm-Cvf3sx9F.js} +18 -49
  58. package/dist/dagre-6UL2VRFP-Lv6cE2gX.js +443 -0
  59. package/dist/dagre-6UL2VRFP-PalD6t9U.cjs +4 -0
  60. package/dist/{diagram-PSM6KHXK-s2xYLlND.js → diagram-PSM6KHXK-8QKT-Vki.js} +17 -19
  61. package/dist/diagram-PSM6KHXK-v8YbZXb0.cjs +24 -0
  62. package/dist/{diagram-QEK2KX5R-D700jvoY.js → diagram-QEK2KX5R-Bqh-tlSV.js} +10 -14
  63. package/dist/diagram-QEK2KX5R-BzjP3pVl.cjs +43 -0
  64. package/dist/{diagram-S2PKOQOG-BkgBSa1Q.js → diagram-S2PKOQOG-Csj0p-s-.js} +22 -23
  65. package/dist/diagram-S2PKOQOG-IkbiPUJ8.cjs +24 -0
  66. package/dist/{erDiagram-Q2GNP2WA-DKKIPwgH.cjs → erDiagram-Q2GNP2WA-BkUigWGJ.cjs} +3 -3
  67. package/dist/{erDiagram-Q2GNP2WA-CXv6THpi.js → erDiagram-Q2GNP2WA-sDpapMNP.js} +73 -74
  68. package/dist/{flowDiagram-NV44I4VS-Dsrv00Gy.js → flowDiagram-NV44I4VS-CitCGiJE.js} +438 -445
  69. package/dist/flowDiagram-NV44I4VS-CkSnWJRl.cjs +162 -0
  70. package/dist/{ganttDiagram-JELNMOA3-BuwyOUxF.cjs → ganttDiagram-JELNMOA3-7lQJBEfz.cjs} +1 -1
  71. package/dist/{ganttDiagram-JELNMOA3-CqVYbgbk.js → ganttDiagram-JELNMOA3-DAaUYzNs.js} +2 -2
  72. package/dist/{gitGraph-F6HP7TQM-BtoBLEOj.cjs → gitGraph-F6HP7TQM-BOxOUe-M.cjs} +1 -1
  73. package/dist/{gitGraph-F6HP7TQM-q5owfB75.js → gitGraph-F6HP7TQM-C2AsvVF3.js} +1 -1
  74. package/dist/gitGraphDiagram-NY62KEGX-ZRyPj0Wi.cjs +65 -0
  75. package/dist/gitGraphDiagram-NY62KEGX-lj732X3H.js +699 -0
  76. package/dist/{graph-rt_wscbL.js → graph-Bg_3T7Ud.js} +2 -2
  77. package/dist/{graph-CxpBbnBw.cjs → graph-Cu_dYuuO.cjs} +1 -1
  78. package/dist/hooks/index.d.ts +1 -0
  79. package/dist/hooks/index.d.ts.map +1 -1
  80. package/dist/hooks/use-spec-sync.d.ts +13 -0
  81. package/dist/hooks/use-spec-sync.d.ts.map +1 -0
  82. package/dist/index-Dy6CZ8M8.cjs +2103 -0
  83. package/dist/{index-BsdeQX2F.js → index-sw7mRKux.js} +32343 -31696
  84. package/dist/index.cjs +1 -1
  85. package/dist/index.js +525 -503
  86. package/dist/{info-NVLQJR56-Ctx23Jwq.cjs → info-NVLQJR56-CVPwWxmd.cjs} +1 -1
  87. package/dist/info-NVLQJR56-CkwixcJh.js +5 -0
  88. package/dist/{infoDiagram-WHAUD3N6-ICmXrgfx.cjs → infoDiagram-WHAUD3N6-BMwDBsqy.cjs} +1 -1
  89. package/dist/{infoDiagram-WHAUD3N6-Fq8ToFQ6.js → infoDiagram-WHAUD3N6-BbjOpAi3.js} +2 -2
  90. package/dist/{journeyDiagram-XKPGCS4Q-BzZgPZwu.js → journeyDiagram-XKPGCS4Q-Cx34P8cj.js} +4 -4
  91. package/dist/{journeyDiagram-XKPGCS4Q-BkYLuV5M.cjs → journeyDiagram-XKPGCS4Q-owe1muzO.cjs} +1 -1
  92. package/dist/kanban-definition-3W4ZIXB7-BG76XYj7.cjs +89 -0
  93. package/dist/kanban-definition-3W4ZIXB7-BP3ykzKL.js +719 -0
  94. package/dist/{layout-CeChnsru.cjs → layout-BM-_iYaN.cjs} +1 -1
  95. package/dist/{layout-CX9neEHw.js → layout-Bft_7Aja.js} +4 -4
  96. package/dist/lib/hierarchy.d.ts +18 -0
  97. package/dist/lib/hierarchy.d.ts.map +1 -0
  98. package/dist/lib/index.d.ts +1 -0
  99. package/dist/lib/index.d.ts.map +1 -1
  100. package/dist/{linear-CkUVga7d.js → linear-BDIyMYXP.js} +1 -1
  101. package/dist/{linear-DLfe3Is-.cjs → linear-DTAQTaEQ.cjs} +1 -1
  102. package/dist/{mermaid-4DMBBIKO-DK6bOe0l.cjs → mermaid-4DMBBIKO-B7O_d629.cjs} +1 -1
  103. package/dist/mermaid-4DMBBIKO-hCNdiULh.js +4 -0
  104. package/dist/{mermaid-parser.core-B7VTdQ1C.js → mermaid-parser.core-BQu7eTx9.js} +2740 -2756
  105. package/dist/mermaid-parser.core-DYuBLIYw.cjs +128 -0
  106. package/dist/{min-C_bmS8M7.cjs → min-B_0S1fKc.cjs} +1 -1
  107. package/dist/{min-Ar5ebLd-.js → min-g4o2CnuX.js} +2 -2
  108. package/dist/mindmap-definition-VGOIOE7T-CkItDrx9.cjs +68 -0
  109. package/dist/{mindmap-definition-VGOIOE7T-DeGZNL21.js → mindmap-definition-VGOIOE7T-CteUNe1z.js} +166 -169
  110. package/dist/{ordinal-DfAQgscy.js → ordinal-B6-f3MAq.js} +1 -1
  111. package/dist/{packet-BFZMPI3H-DFZzoAsC.js → packet-BFZMPI3H-85mavqoW.js} +1 -1
  112. package/dist/{packet-BFZMPI3H-BVRarKKV.cjs → packet-BFZMPI3H-Dvo7vnhK.cjs} +1 -1
  113. package/dist/{pie-7BOR55EZ-0edBRKAY.cjs → pie-7BOR55EZ-CSQSin36.cjs} +1 -1
  114. package/dist/pie-7BOR55EZ-DEUNQ2Gx.js +5 -0
  115. package/dist/{pieDiagram-ADFJNKIX-Ceq-kf3C.cjs → pieDiagram-ADFJNKIX-BHhXUCfj.cjs} +2 -2
  116. package/dist/{pieDiagram-ADFJNKIX-C_V2NX6O.js → pieDiagram-ADFJNKIX-COS6mtim.js} +21 -21
  117. package/dist/quadrantDiagram-AYHSOK5B-D_HlZ7yZ.cjs +7 -0
  118. package/dist/{quadrantDiagram-AYHSOK5B-B8fSnYQi.js → quadrantDiagram-AYHSOK5B-DmRa7VCS.js} +227 -229
  119. package/dist/{radar-NHE76QYJ-gAJ22qc7.cjs → radar-NHE76QYJ-BcVzBWDr.cjs} +1 -1
  120. package/dist/radar-NHE76QYJ-CdgX_Cpr.js +5 -0
  121. package/dist/{requirementDiagram-UZGBJVZJ-D6BE-Q1l.cjs → requirementDiagram-UZGBJVZJ-BHFRZggR.cjs} +7 -7
  122. package/dist/{requirementDiagram-UZGBJVZJ-MnXD59Yw.js → requirementDiagram-UZGBJVZJ-CcQIz-20.js} +186 -188
  123. package/dist/{sankeyDiagram-TZEHDZUN-Dx8_KSIc.cjs → sankeyDiagram-TZEHDZUN-CSkEJj9g.cjs} +5 -5
  124. package/dist/{sankeyDiagram-TZEHDZUN-Dfyu7oJ6.js → sankeyDiagram-TZEHDZUN-CpcshR0Z.js} +186 -186
  125. package/dist/{sequenceDiagram-WL72ISMW-D2pgAoWi.js → sequenceDiagram-WL72ISMW-B1iDbV8x.js} +213 -220
  126. package/dist/{sequenceDiagram-WL72ISMW-CUYHrDfm.cjs → sequenceDiagram-WL72ISMW-DscxgBA5.cjs} +16 -16
  127. package/dist/{stateDiagram-FKZM4ZOC-DYV-na53.js → stateDiagram-FKZM4ZOC-DIutB6RS.js} +4 -4
  128. package/dist/{stateDiagram-FKZM4ZOC-CtYt1Ixa.cjs → stateDiagram-FKZM4ZOC-c19kgfCN.cjs} +1 -1
  129. package/dist/{stateDiagram-v2-4FDKWEC3-Kp4sxr9o.js → stateDiagram-v2-4FDKWEC3-BKEaZomO.js} +2 -2
  130. package/dist/{stateDiagram-v2-4FDKWEC3-CeSnHO3T.cjs → stateDiagram-v2-4FDKWEC3-CCn-Iy_C.cjs} +1 -1
  131. package/dist/timeline-definition-IT6M3QCI-CfRSUfqZ.cjs +61 -0
  132. package/dist/{timeline-definition-IT6M3QCI-621ePKJ0.js → timeline-definition-IT6M3QCI-D1yY4TSO.js} +211 -215
  133. package/dist/{treemap-KMMF4GRG-DSNryTu7.cjs → treemap-KMMF4GRG-Cn6nuBab.cjs} +1 -1
  134. package/dist/{treemap-KMMF4GRG-l6HrdCLC.js → treemap-KMMF4GRG-KtkxYt13.js} +1 -1
  135. package/dist/types/specs.d.ts +2 -0
  136. package/dist/types/specs.d.ts.map +1 -1
  137. package/dist/ui-components.css +1 -1
  138. package/dist/{xychartDiagram-PRI3JC2R-C2_xziD5.cjs → xychartDiagram-PRI3JC2R-OeJ2-Nwx.cjs} +1 -1
  139. package/dist/{xychartDiagram-PRI3JC2R-CkfCv2o_.js → xychartDiagram-PRI3JC2R-a_g9ptTp.js} +3 -3
  140. package/package.json +5 -2
  141. package/dist/architectureDiagram-VXUJARFQ-WCtQIdet.cjs +0 -36
  142. package/dist/blockDiagram-VD42YOAC-CGdaLv7H.cjs +0 -122
  143. package/dist/c4Diagram-YG6GDRKO-DfRXyZHM.cjs +0 -10
  144. package/dist/channel-CMrUjUoZ.cjs +0 -1
  145. package/dist/chunk-4BX2VUAB-BQgzc1Sm.js +0 -9
  146. package/dist/chunk-4BX2VUAB-CO5acanJ.cjs +0 -1
  147. package/dist/chunk-DI55MBZ5-lVvJu2kr.cjs +0 -220
  148. package/dist/chunk-QN33PNHL-DHNejhbC.js +0 -20
  149. package/dist/chunk-QN33PNHL-Dr9ghdFD.cjs +0 -1
  150. package/dist/clone-Chgndk5P.cjs +0 -1
  151. package/dist/cose-bilkent-S5V4N54A-CPai-c_a.cjs +0 -1
  152. package/dist/cytoscape.esm-o9WRfNPd.cjs +0 -331
  153. package/dist/dagre-6UL2VRFP-BqaZre9N.js +0 -446
  154. package/dist/dagre-6UL2VRFP-CeIiJJG5.cjs +0 -4
  155. package/dist/diagram-PSM6KHXK-oD045yZG.cjs +0 -24
  156. package/dist/diagram-QEK2KX5R-VH7_rcp0.cjs +0 -43
  157. package/dist/diagram-S2PKOQOG-CjDpLVdl.cjs +0 -24
  158. package/dist/flowDiagram-NV44I4VS-U52jVnrS.cjs +0 -162
  159. package/dist/gitGraphDiagram-NY62KEGX-DH1I05Ix.cjs +0 -65
  160. package/dist/gitGraphDiagram-NY62KEGX-DOanbk62.js +0 -712
  161. package/dist/index-Cg8ByiK0.cjs +0 -2153
  162. package/dist/info-NVLQJR56-hH82KARZ.js +0 -5
  163. package/dist/kanban-definition-3W4ZIXB7-BV7UYL3n.cjs +0 -89
  164. package/dist/kanban-definition-3W4ZIXB7-CrmrjRAg.js +0 -721
  165. package/dist/mermaid-4DMBBIKO-wnX9ATcq.js +0 -4
  166. package/dist/mermaid-parser.core-DvlzR6J2.cjs +0 -128
  167. package/dist/mindmap-definition-VGOIOE7T-BBqv9TKM.cjs +0 -68
  168. package/dist/pie-7BOR55EZ-zLMdfI8h.js +0 -5
  169. package/dist/quadrantDiagram-AYHSOK5B-BButfYaS.cjs +0 -7
  170. package/dist/radar-NHE76QYJ-DeqJwy76.js +0 -5
  171. package/dist/timeline-definition-IT6M3QCI-4fRZfQpb.cjs +0 -61
@@ -1,10 +1,10 @@
1
- import { aL as Ze, _ as dt, P as ke, ah as qe, l as Se, e as Qe, d as Je, y as Ke, z as je, g as _e, s as tr, D as er, K as rr, L as ir, M as ar, f as Ee, ar as me, aM as pe, m as nr, h as or, C as sr, aN as hr, aO as lr } from "./index-BsdeQX2F.js";
2
- import { p as fr } from "./chunk-4BX2VUAB-BQgzc1Sm.js";
3
- import { p as cr } from "./mermaid-parser.core-B7VTdQ1C.js";
4
- import { c as Fe } from "./cytoscape.esm-CjI2IsL8.js";
1
+ import { aL as Ze, _ as dt, P as ke, ah as qe, l as Se, e as Qe, d as Je, y as Ke, z as je, g as _e, s as tr, D as er, K as rr, L as ir, M as ar, f as Ee, ar as me, aM as pe, m as nr, h as or, C as sr, aN as hr, aO as lr } from "./index-sw7mRKux.js";
2
+ import { p as fr } from "./chunk-4BX2VUAB-D4Zhvat9.js";
3
+ import { p as cr } from "./mermaid-parser.core-BQu7eTx9.js";
4
+ import { c as Fe } from "./cytoscape.esm-Cvf3sx9F.js";
5
5
  var he = { exports: {} }, le = { exports: {} }, fe = { exports: {} }, gr = fe.exports, we;
6
6
  function ur() {
7
- return we || (we = 1, (function(I, D) {
7
+ return we || (we = 1, (function(I, x) {
8
8
  (function(P, N) {
9
9
  I.exports = N();
10
10
  })(gr, function() {
@@ -66,38 +66,38 @@ function ur() {
66
66
  /***/
67
67
  (function(A, P, N) {
68
68
  var u = N(2), h = N(8), a = N(9);
69
- function r(f, i, g) {
70
- u.call(this, g), this.isOverlapingSourceAndTarget = !1, this.vGraphObject = g, this.bendpoints = [], this.source = f, this.target = i;
69
+ function e(l, i, g) {
70
+ u.call(this, g), this.isOverlapingSourceAndTarget = !1, this.vGraphObject = g, this.bendpoints = [], this.source = l, this.target = i;
71
71
  }
72
- r.prototype = Object.create(u.prototype);
73
- for (var e in u)
74
- r[e] = u[e];
75
- r.prototype.getSource = function() {
72
+ e.prototype = Object.create(u.prototype);
73
+ for (var r in u)
74
+ e[r] = u[r];
75
+ e.prototype.getSource = function() {
76
76
  return this.source;
77
- }, r.prototype.getTarget = function() {
77
+ }, e.prototype.getTarget = function() {
78
78
  return this.target;
79
- }, r.prototype.isInterGraph = function() {
79
+ }, e.prototype.isInterGraph = function() {
80
80
  return this.isInterGraph;
81
- }, r.prototype.getLength = function() {
81
+ }, e.prototype.getLength = function() {
82
82
  return this.length;
83
- }, r.prototype.isOverlapingSourceAndTarget = function() {
83
+ }, e.prototype.isOverlapingSourceAndTarget = function() {
84
84
  return this.isOverlapingSourceAndTarget;
85
- }, r.prototype.getBendpoints = function() {
85
+ }, e.prototype.getBendpoints = function() {
86
86
  return this.bendpoints;
87
- }, r.prototype.getLca = function() {
87
+ }, e.prototype.getLca = function() {
88
88
  return this.lca;
89
- }, r.prototype.getSourceInLca = function() {
89
+ }, e.prototype.getSourceInLca = function() {
90
90
  return this.sourceInLca;
91
- }, r.prototype.getTargetInLca = function() {
91
+ }, e.prototype.getTargetInLca = function() {
92
92
  return this.targetInLca;
93
- }, r.prototype.getOtherEnd = function(f) {
94
- if (this.source === f)
93
+ }, e.prototype.getOtherEnd = function(l) {
94
+ if (this.source === l)
95
95
  return this.target;
96
- if (this.target === f)
96
+ if (this.target === l)
97
97
  return this.source;
98
98
  throw "Node is not incident with this edge";
99
- }, r.prototype.getOtherEndInGraph = function(f, i) {
100
- for (var g = this.getOtherEnd(f), t = i.getGraphManager().getRoot(); ; ) {
99
+ }, e.prototype.getOtherEndInGraph = function(l, i) {
100
+ for (var g = this.getOtherEnd(l), t = i.getGraphManager().getRoot(); ; ) {
101
101
  if (g.getOwner() == i)
102
102
  return g;
103
103
  if (g.getOwner() == t)
@@ -105,12 +105,12 @@ function ur() {
105
105
  g = g.getOwner().getParent();
106
106
  }
107
107
  return null;
108
- }, r.prototype.updateLength = function() {
109
- var f = new Array(4);
110
- this.isOverlapingSourceAndTarget = h.getIntersection(this.target.getRect(), this.source.getRect(), f), this.isOverlapingSourceAndTarget || (this.lengthX = f[0] - f[2], this.lengthY = f[1] - f[3], Math.abs(this.lengthX) < 1 && (this.lengthX = a.sign(this.lengthX)), Math.abs(this.lengthY) < 1 && (this.lengthY = a.sign(this.lengthY)), this.length = Math.sqrt(this.lengthX * this.lengthX + this.lengthY * this.lengthY));
111
- }, r.prototype.updateLengthSimple = function() {
108
+ }, e.prototype.updateLength = function() {
109
+ var l = new Array(4);
110
+ this.isOverlapingSourceAndTarget = h.getIntersection(this.target.getRect(), this.source.getRect(), l), this.isOverlapingSourceAndTarget || (this.lengthX = l[0] - l[2], this.lengthY = l[1] - l[3], Math.abs(this.lengthX) < 1 && (this.lengthX = a.sign(this.lengthX)), Math.abs(this.lengthY) < 1 && (this.lengthY = a.sign(this.lengthY)), this.length = Math.sqrt(this.lengthX * this.lengthX + this.lengthY * this.lengthY));
111
+ }, e.prototype.updateLengthSimple = function() {
112
112
  this.lengthX = this.target.getCenterX() - this.source.getCenterX(), this.lengthY = this.target.getCenterY() - this.source.getCenterY(), Math.abs(this.lengthX) < 1 && (this.lengthX = a.sign(this.lengthX)), Math.abs(this.lengthY) < 1 && (this.lengthY = a.sign(this.lengthY)), this.length = Math.sqrt(this.lengthX * this.lengthX + this.lengthY * this.lengthY);
113
- }, A.exports = r;
113
+ }, A.exports = e;
114
114
  }),
115
115
  /* 2 */
116
116
  /***/
@@ -123,7 +123,7 @@ function ur() {
123
123
  /* 3 */
124
124
  /***/
125
125
  (function(A, P, N) {
126
- var u = N(2), h = N(10), a = N(13), r = N(0), e = N(16), f = N(5);
126
+ var u = N(2), h = N(10), a = N(13), e = N(0), r = N(16), l = N(5);
127
127
  function i(t, o, s, c) {
128
128
  s == null && c == null && (c = o), u.call(this, c), t.graphManager != null && (t = t.graphManager), this.estimatedSize = h.MIN_VALUE, this.inclusionTreeDepth = h.MAX_VALUE, this.vGraphObject = c, this.edges = [], this.graphManager = t, s != null && o != null ? this.rect = new a(o.x, o.y, s.width, s.height) : this.rect = new a();
129
129
  }
@@ -149,9 +149,9 @@ function ur() {
149
149
  }, i.prototype.getCenterY = function() {
150
150
  return this.rect.y + this.rect.height / 2;
151
151
  }, i.prototype.getCenter = function() {
152
- return new f(this.rect.x + this.rect.width / 2, this.rect.y + this.rect.height / 2);
152
+ return new l(this.rect.x + this.rect.width / 2, this.rect.y + this.rect.height / 2);
153
153
  }, i.prototype.getLocation = function() {
154
- return new f(this.rect.x, this.rect.y);
154
+ return new l(this.rect.x, this.rect.y);
155
155
  }, i.prototype.getRect = function() {
156
156
  return this.rect;
157
157
  }, i.prototype.getDiagonal = function() {
@@ -194,8 +194,8 @@ function ur() {
194
194
  }, i.prototype.withChildren = function() {
195
195
  var t = /* @__PURE__ */ new Set(), o, s;
196
196
  if (t.add(this), this.child != null)
197
- for (var c = this.child.getNodes(), l = 0; l < c.length; l++)
198
- o = c[l], s = o.withChildren(), s.forEach(function(T) {
197
+ for (var c = this.child.getNodes(), f = 0; f < c.length; f++)
198
+ o = c[f], s = o.withChildren(), s.forEach(function(T) {
199
199
  t.add(T);
200
200
  });
201
201
  return t;
@@ -214,16 +214,16 @@ function ur() {
214
214
  }, i.prototype.calcEstimatedSize = function() {
215
215
  return this.child == null ? this.estimatedSize = (this.rect.width + this.rect.height) / 2 : (this.estimatedSize = this.child.calcEstimatedSize(), this.rect.width = this.estimatedSize, this.rect.height = this.estimatedSize, this.estimatedSize);
216
216
  }, i.prototype.scatter = function() {
217
- var t, o, s = -r.INITIAL_WORLD_BOUNDARY, c = r.INITIAL_WORLD_BOUNDARY;
218
- t = r.WORLD_CENTER_X + e.nextDouble() * (c - s) + s;
219
- var l = -r.INITIAL_WORLD_BOUNDARY, T = r.INITIAL_WORLD_BOUNDARY;
220
- o = r.WORLD_CENTER_Y + e.nextDouble() * (T - l) + l, this.rect.x = t, this.rect.y = o;
217
+ var t, o, s = -e.INITIAL_WORLD_BOUNDARY, c = e.INITIAL_WORLD_BOUNDARY;
218
+ t = e.WORLD_CENTER_X + r.nextDouble() * (c - s) + s;
219
+ var f = -e.INITIAL_WORLD_BOUNDARY, T = e.INITIAL_WORLD_BOUNDARY;
220
+ o = e.WORLD_CENTER_Y + r.nextDouble() * (T - f) + f, this.rect.x = t, this.rect.y = o;
221
221
  }, i.prototype.updateBounds = function() {
222
222
  if (this.getChild() == null)
223
223
  throw "assert failed";
224
224
  if (this.getChild().getNodes().length != 0) {
225
225
  var t = this.getChild();
226
- if (t.updateBounds(!0), this.rect.x = t.getLeft(), this.rect.y = t.getTop(), this.setWidth(t.getRight() - t.getLeft()), this.setHeight(t.getBottom() - t.getTop()), r.NODE_DIMENSIONS_INCLUDE_LABELS) {
226
+ if (t.updateBounds(!0), this.rect.x = t.getLeft(), this.rect.y = t.getTop(), this.setWidth(t.getRight() - t.getLeft()), this.setHeight(t.getBottom() - t.getTop()), e.NODE_DIMENSIONS_INCLUDE_LABELS) {
227
227
  var o = t.getRight() - t.getLeft(), s = t.getBottom() - t.getTop();
228
228
  this.labelWidth && (this.labelPosHorizontal == "left" ? (this.rect.x -= this.labelWidth, this.setWidth(o + this.labelWidth)) : this.labelPosHorizontal == "center" && this.labelWidth > o ? (this.rect.x -= (this.labelWidth - o) / 2, this.setWidth(this.labelWidth)) : this.labelPosHorizontal == "right" && this.setWidth(o + this.labelWidth)), this.labelHeight && (this.labelPosVertical == "top" ? (this.rect.y -= this.labelHeight, this.setHeight(s + this.labelHeight)) : this.labelPosVertical == "center" && this.labelHeight > s ? (this.rect.y -= (this.labelHeight - s) / 2, this.setHeight(this.labelHeight)) : this.labelPosVertical == "bottom" && this.setHeight(s + this.labelHeight));
229
229
  }
@@ -234,11 +234,11 @@ function ur() {
234
234
  return this.inclusionTreeDepth;
235
235
  }, i.prototype.transform = function(t) {
236
236
  var o = this.rect.x;
237
- o > r.WORLD_BOUNDARY ? o = r.WORLD_BOUNDARY : o < -r.WORLD_BOUNDARY && (o = -r.WORLD_BOUNDARY);
237
+ o > e.WORLD_BOUNDARY ? o = e.WORLD_BOUNDARY : o < -e.WORLD_BOUNDARY && (o = -e.WORLD_BOUNDARY);
238
238
  var s = this.rect.y;
239
- s > r.WORLD_BOUNDARY ? s = r.WORLD_BOUNDARY : s < -r.WORLD_BOUNDARY && (s = -r.WORLD_BOUNDARY);
240
- var c = new f(o, s), l = t.inverseTransformPoint(c);
241
- this.setLocation(l.x, l.y);
239
+ s > e.WORLD_BOUNDARY ? s = e.WORLD_BOUNDARY : s < -e.WORLD_BOUNDARY && (s = -e.WORLD_BOUNDARY);
240
+ var c = new l(o, s), f = t.inverseTransformPoint(c);
241
+ this.setLocation(f.x, f.y);
242
242
  }, i.prototype.getLeft = function() {
243
243
  return this.rect.x;
244
244
  }, i.prototype.getRight = function() {
@@ -286,9 +286,9 @@ function ur() {
286
286
  /* 6 */
287
287
  /***/
288
288
  (function(A, P, N) {
289
- var u = N(2), h = N(10), a = N(0), r = N(7), e = N(3), f = N(1), i = N(13), g = N(12), t = N(11);
290
- function o(c, l, T) {
291
- u.call(this, T), this.estimatedSize = h.MIN_VALUE, this.margin = a.DEFAULT_GRAPH_MARGIN, this.edges = [], this.nodes = [], this.isConnected = !1, this.parent = c, l != null && l instanceof r ? this.graphManager = l : l != null && l instanceof Layout && (this.graphManager = l.graphManager);
289
+ var u = N(2), h = N(10), a = N(0), e = N(7), r = N(3), l = N(1), i = N(13), g = N(12), t = N(11);
290
+ function o(c, f, T) {
291
+ u.call(this, T), this.estimatedSize = h.MIN_VALUE, this.margin = a.DEFAULT_GRAPH_MARGIN, this.edges = [], this.nodes = [], this.isConnected = !1, this.parent = c, f != null && f instanceof e ? this.graphManager = f : f != null && f instanceof Layout && (this.graphManager = f.graphManager);
292
292
  }
293
293
  o.prototype = Object.create(u.prototype);
294
294
  for (var s in u)
@@ -311,8 +311,8 @@ function ur() {
311
311
  return this.bottom;
312
312
  }, o.prototype.isConnected = function() {
313
313
  return this.isConnected;
314
- }, o.prototype.add = function(c, l, T) {
315
- if (l == null && T == null) {
314
+ }, o.prototype.add = function(c, f, T) {
315
+ if (f == null && T == null) {
316
316
  var d = c;
317
317
  if (this.graphManager == null)
318
318
  throw "Graph has no graph mgr!";
@@ -321,28 +321,28 @@ function ur() {
321
321
  return d.owner = this, this.getNodes().push(d), d;
322
322
  } else {
323
323
  var v = c;
324
- if (!(this.getNodes().indexOf(l) > -1 && this.getNodes().indexOf(T) > -1))
324
+ if (!(this.getNodes().indexOf(f) > -1 && this.getNodes().indexOf(T) > -1))
325
325
  throw "Source or target not in graph!";
326
- if (!(l.owner == T.owner && l.owner == this))
326
+ if (!(f.owner == T.owner && f.owner == this))
327
327
  throw "Both owners must be this graph!";
328
- return l.owner != T.owner ? null : (v.source = l, v.target = T, v.isInterGraph = !1, this.getEdges().push(v), l.edges.push(v), T != l && T.edges.push(v), v);
328
+ return f.owner != T.owner ? null : (v.source = f, v.target = T, v.isInterGraph = !1, this.getEdges().push(v), f.edges.push(v), T != f && T.edges.push(v), v);
329
329
  }
330
330
  }, o.prototype.remove = function(c) {
331
- var l = c;
332
- if (c instanceof e) {
333
- if (l == null)
331
+ var f = c;
332
+ if (c instanceof r) {
333
+ if (f == null)
334
334
  throw "Node is null!";
335
- if (!(l.owner != null && l.owner == this))
335
+ if (!(f.owner != null && f.owner == this))
336
336
  throw "Owner graph is invalid!";
337
337
  if (this.graphManager == null)
338
338
  throw "Owner graph manager is invalid!";
339
- for (var T = l.edges.slice(), d, v = T.length, L = 0; L < v; L++)
339
+ for (var T = f.edges.slice(), d, v = T.length, L = 0; L < v; L++)
340
340
  d = T[L], d.isInterGraph ? this.graphManager.remove(d) : d.source.owner.remove(d);
341
- var S = this.nodes.indexOf(l);
342
- if (S == -1)
341
+ var b = this.nodes.indexOf(f);
342
+ if (b == -1)
343
343
  throw "Node not in owner node list!";
344
- this.nodes.splice(S, 1);
345
- } else if (c instanceof f) {
344
+ this.nodes.splice(b, 1);
345
+ } else if (c instanceof l) {
346
346
  var d = c;
347
347
  if (d == null)
348
348
  throw "Edge is null!";
@@ -354,30 +354,30 @@ function ur() {
354
354
  if (!(C > -1 && G > -1))
355
355
  throw "Source and/or target doesn't know this edge!";
356
356
  d.source.edges.splice(C, 1), d.target != d.source && d.target.edges.splice(G, 1);
357
- var S = d.source.owner.getEdges().indexOf(d);
358
- if (S == -1)
357
+ var b = d.source.owner.getEdges().indexOf(d);
358
+ if (b == -1)
359
359
  throw "Not in owner's edge list!";
360
- d.source.owner.getEdges().splice(S, 1);
360
+ d.source.owner.getEdges().splice(b, 1);
361
361
  }
362
362
  }, o.prototype.updateLeftTop = function() {
363
- for (var c = h.MAX_VALUE, l = h.MAX_VALUE, T, d, v, L = this.getNodes(), S = L.length, C = 0; C < S; C++) {
363
+ for (var c = h.MAX_VALUE, f = h.MAX_VALUE, T, d, v, L = this.getNodes(), b = L.length, C = 0; C < b; C++) {
364
364
  var G = L[C];
365
- T = G.getTop(), d = G.getLeft(), c > T && (c = T), l > d && (l = d);
365
+ T = G.getTop(), d = G.getLeft(), c > T && (c = T), f > d && (f = d);
366
366
  }
367
- return c == h.MAX_VALUE ? null : (L[0].getParent().paddingLeft != null ? v = L[0].getParent().paddingLeft : v = this.margin, this.left = l - v, this.top = c - v, new g(this.left, this.top));
367
+ return c == h.MAX_VALUE ? null : (L[0].getParent().paddingLeft != null ? v = L[0].getParent().paddingLeft : v = this.margin, this.left = f - v, this.top = c - v, new g(this.left, this.top));
368
368
  }, o.prototype.updateBounds = function(c) {
369
- for (var l = h.MAX_VALUE, T = -h.MAX_VALUE, d = h.MAX_VALUE, v = -h.MAX_VALUE, L, S, C, G, K, X = this.nodes, Q = X.length, O = 0; O < Q; O++) {
370
- var rt = X[O];
371
- c && rt.child != null && rt.updateBounds(), L = rt.getLeft(), S = rt.getRight(), C = rt.getTop(), G = rt.getBottom(), l > L && (l = L), T < S && (T = S), d > C && (d = C), v < G && (v = G);
369
+ for (var f = h.MAX_VALUE, T = -h.MAX_VALUE, d = h.MAX_VALUE, v = -h.MAX_VALUE, L, b, C, G, k, Y = this.nodes, K = Y.length, O = 0; O < K; O++) {
370
+ var it = Y[O];
371
+ c && it.child != null && it.updateBounds(), L = it.getLeft(), b = it.getRight(), C = it.getTop(), G = it.getBottom(), f > L && (f = L), T < b && (T = b), d > C && (d = C), v < G && (v = G);
372
372
  }
373
- var n = new i(l, d, T - l, v - d);
374
- l == h.MAX_VALUE && (this.left = this.parent.getLeft(), this.right = this.parent.getRight(), this.top = this.parent.getTop(), this.bottom = this.parent.getBottom()), X[0].getParent().paddingLeft != null ? K = X[0].getParent().paddingLeft : K = this.margin, this.left = n.x - K, this.right = n.x + n.width + K, this.top = n.y - K, this.bottom = n.y + n.height + K;
373
+ var n = new i(f, d, T - f, v - d);
374
+ f == h.MAX_VALUE && (this.left = this.parent.getLeft(), this.right = this.parent.getRight(), this.top = this.parent.getTop(), this.bottom = this.parent.getBottom()), Y[0].getParent().paddingLeft != null ? k = Y[0].getParent().paddingLeft : k = this.margin, this.left = n.x - k, this.right = n.x + n.width + k, this.top = n.y - k, this.bottom = n.y + n.height + k;
375
375
  }, o.calculateBounds = function(c) {
376
- for (var l = h.MAX_VALUE, T = -h.MAX_VALUE, d = h.MAX_VALUE, v = -h.MAX_VALUE, L, S, C, G, K = c.length, X = 0; X < K; X++) {
377
- var Q = c[X];
378
- L = Q.getLeft(), S = Q.getRight(), C = Q.getTop(), G = Q.getBottom(), l > L && (l = L), T < S && (T = S), d > C && (d = C), v < G && (v = G);
376
+ for (var f = h.MAX_VALUE, T = -h.MAX_VALUE, d = h.MAX_VALUE, v = -h.MAX_VALUE, L, b, C, G, k = c.length, Y = 0; Y < k; Y++) {
377
+ var K = c[Y];
378
+ L = K.getLeft(), b = K.getRight(), C = K.getTop(), G = K.getBottom(), f > L && (f = L), T < b && (T = b), d > C && (d = C), v < G && (v = G);
379
379
  }
380
- var O = new i(l, d, T - l, v - d);
380
+ var O = new i(f, d, T - f, v - d);
381
381
  return O;
382
382
  }, o.prototype.getInclusionTreeDepth = function() {
383
383
  return this == this.graphManager.getRoot() ? 1 : this.parent.getInclusionTreeDepth();
@@ -386,8 +386,8 @@ function ur() {
386
386
  throw "assert failed";
387
387
  return this.estimatedSize;
388
388
  }, o.prototype.calcEstimatedSize = function() {
389
- for (var c = 0, l = this.nodes, T = l.length, d = 0; d < T; d++) {
390
- var v = l[d];
389
+ for (var c = 0, f = this.nodes, T = f.length, d = 0; d < T; d++) {
390
+ var v = f[d];
391
391
  c += v.calcEstimatedSize();
392
392
  }
393
393
  return c == 0 ? this.estimatedSize = a.EMPTY_COMPOUND_NODE_SIZE : this.estimatedSize = c / Math.sqrt(this.nodes.length), this.estimatedSize;
@@ -397,26 +397,26 @@ function ur() {
397
397
  this.isConnected = !0;
398
398
  return;
399
399
  }
400
- var l = new t(), T = /* @__PURE__ */ new Set(), d = this.nodes[0], v, L, S = d.withChildren();
401
- for (S.forEach(function(O) {
402
- l.push(O), T.add(O);
403
- }); l.length !== 0; ) {
404
- d = l.shift(), v = d.getEdges();
400
+ var f = new t(), T = /* @__PURE__ */ new Set(), d = this.nodes[0], v, L, b = d.withChildren();
401
+ for (b.forEach(function(O) {
402
+ f.push(O), T.add(O);
403
+ }); f.length !== 0; ) {
404
+ d = f.shift(), v = d.getEdges();
405
405
  for (var C = v.length, G = 0; G < C; G++) {
406
- var K = v[G];
407
- if (L = K.getOtherEndInGraph(d, this), L != null && !T.has(L)) {
408
- var X = L.withChildren();
409
- X.forEach(function(O) {
410
- l.push(O), T.add(O);
406
+ var k = v[G];
407
+ if (L = k.getOtherEndInGraph(d, this), L != null && !T.has(L)) {
408
+ var Y = L.withChildren();
409
+ Y.forEach(function(O) {
410
+ f.push(O), T.add(O);
411
411
  });
412
412
  }
413
413
  }
414
414
  }
415
415
  if (this.isConnected = !1, T.size >= this.nodes.length) {
416
- var Q = 0;
416
+ var K = 0;
417
417
  T.forEach(function(O) {
418
- O.owner == c && Q++;
419
- }), Q == this.nodes.length && (this.isConnected = !0);
418
+ O.owner == c && K++;
419
+ }), K == this.nodes.length && (this.isConnected = !0);
420
420
  }
421
421
  }, A.exports = o;
422
422
  }),
@@ -424,64 +424,64 @@ function ur() {
424
424
  /***/
425
425
  (function(A, P, N) {
426
426
  var u, h = N(1);
427
- function a(r) {
428
- u = N(6), this.layout = r, this.graphs = [], this.edges = [];
427
+ function a(e) {
428
+ u = N(6), this.layout = e, this.graphs = [], this.edges = [];
429
429
  }
430
430
  a.prototype.addRoot = function() {
431
- var r = this.layout.newGraph(), e = this.layout.newNode(null), f = this.add(r, e);
432
- return this.setRootGraph(f), this.rootGraph;
433
- }, a.prototype.add = function(r, e, f, i, g) {
434
- if (f == null && i == null && g == null) {
435
- if (r == null)
436
- throw "Graph is null!";
431
+ var e = this.layout.newGraph(), r = this.layout.newNode(null), l = this.add(e, r);
432
+ return this.setRootGraph(l), this.rootGraph;
433
+ }, a.prototype.add = function(e, r, l, i, g) {
434
+ if (l == null && i == null && g == null) {
437
435
  if (e == null)
436
+ throw "Graph is null!";
437
+ if (r == null)
438
438
  throw "Parent node is null!";
439
- if (this.graphs.indexOf(r) > -1)
439
+ if (this.graphs.indexOf(e) > -1)
440
440
  throw "Graph already in this graph mgr!";
441
- if (this.graphs.push(r), r.parent != null)
441
+ if (this.graphs.push(e), e.parent != null)
442
442
  throw "Already has a parent!";
443
- if (e.child != null)
443
+ if (r.child != null)
444
444
  throw "Already has a child!";
445
- return r.parent = e, e.child = r, r;
445
+ return e.parent = r, r.child = e, e;
446
446
  } else {
447
- g = f, i = e, f = r;
447
+ g = l, i = r, l = e;
448
448
  var t = i.getOwner(), o = g.getOwner();
449
449
  if (!(t != null && t.getGraphManager() == this))
450
450
  throw "Source not in this graph mgr!";
451
451
  if (!(o != null && o.getGraphManager() == this))
452
452
  throw "Target not in this graph mgr!";
453
453
  if (t == o)
454
- return f.isInterGraph = !1, t.add(f, i, g);
455
- if (f.isInterGraph = !0, f.source = i, f.target = g, this.edges.indexOf(f) > -1)
454
+ return l.isInterGraph = !1, t.add(l, i, g);
455
+ if (l.isInterGraph = !0, l.source = i, l.target = g, this.edges.indexOf(l) > -1)
456
456
  throw "Edge already in inter-graph edge list!";
457
- if (this.edges.push(f), !(f.source != null && f.target != null))
457
+ if (this.edges.push(l), !(l.source != null && l.target != null))
458
458
  throw "Edge source and/or target is null!";
459
- if (!(f.source.edges.indexOf(f) == -1 && f.target.edges.indexOf(f) == -1))
459
+ if (!(l.source.edges.indexOf(l) == -1 && l.target.edges.indexOf(l) == -1))
460
460
  throw "Edge already in source and/or target incidency list!";
461
- return f.source.edges.push(f), f.target.edges.push(f), f;
461
+ return l.source.edges.push(l), l.target.edges.push(l), l;
462
462
  }
463
- }, a.prototype.remove = function(r) {
464
- if (r instanceof u) {
465
- var e = r;
466
- if (e.getGraphManager() != this)
463
+ }, a.prototype.remove = function(e) {
464
+ if (e instanceof u) {
465
+ var r = e;
466
+ if (r.getGraphManager() != this)
467
467
  throw "Graph not in this graph mgr";
468
- if (!(e == this.rootGraph || e.parent != null && e.parent.graphManager == this))
468
+ if (!(r == this.rootGraph || r.parent != null && r.parent.graphManager == this))
469
469
  throw "Invalid parent node!";
470
- var f = [];
471
- f = f.concat(e.getEdges());
472
- for (var i, g = f.length, t = 0; t < g; t++)
473
- i = f[t], e.remove(i);
470
+ var l = [];
471
+ l = l.concat(r.getEdges());
472
+ for (var i, g = l.length, t = 0; t < g; t++)
473
+ i = l[t], r.remove(i);
474
474
  var o = [];
475
- o = o.concat(e.getNodes());
475
+ o = o.concat(r.getNodes());
476
476
  var s;
477
477
  g = o.length;
478
478
  for (var t = 0; t < g; t++)
479
- s = o[t], e.remove(s);
480
- e == this.rootGraph && this.setRootGraph(null);
481
- var c = this.graphs.indexOf(e);
482
- this.graphs.splice(c, 1), e.parent = null;
483
- } else if (r instanceof h) {
484
- if (i = r, i == null)
479
+ s = o[t], r.remove(s);
480
+ r == this.rootGraph && this.setRootGraph(null);
481
+ var c = this.graphs.indexOf(r);
482
+ this.graphs.splice(c, 1), r.parent = null;
483
+ } else if (e instanceof h) {
484
+ if (i = e, i == null)
485
485
  throw "Edge is null!";
486
486
  if (!i.isInterGraph)
487
487
  throw "Not an inter-graph edge!";
@@ -503,9 +503,9 @@ function ur() {
503
503
  return this.graphs;
504
504
  }, a.prototype.getAllNodes = function() {
505
505
  if (this.allNodes == null) {
506
- for (var r = [], e = this.getGraphs(), f = e.length, i = 0; i < f; i++)
507
- r = r.concat(e[i].getNodes());
508
- this.allNodes = r;
506
+ for (var e = [], r = this.getGraphs(), l = r.length, i = 0; i < l; i++)
507
+ e = e.concat(r[i].getNodes());
508
+ this.allNodes = e;
509
509
  }
510
510
  return this.allNodes;
511
511
  }, a.prototype.resetAllNodes = function() {
@@ -516,103 +516,103 @@ function ur() {
516
516
  this.allNodesToApplyGravitation = null;
517
517
  }, a.prototype.getAllEdges = function() {
518
518
  if (this.allEdges == null) {
519
- var r = [], e = this.getGraphs();
520
- e.length;
521
- for (var f = 0; f < e.length; f++)
522
- r = r.concat(e[f].getEdges());
523
- r = r.concat(this.edges), this.allEdges = r;
519
+ var e = [], r = this.getGraphs();
520
+ r.length;
521
+ for (var l = 0; l < r.length; l++)
522
+ e = e.concat(r[l].getEdges());
523
+ e = e.concat(this.edges), this.allEdges = e;
524
524
  }
525
525
  return this.allEdges;
526
526
  }, a.prototype.getAllNodesToApplyGravitation = function() {
527
527
  return this.allNodesToApplyGravitation;
528
- }, a.prototype.setAllNodesToApplyGravitation = function(r) {
528
+ }, a.prototype.setAllNodesToApplyGravitation = function(e) {
529
529
  if (this.allNodesToApplyGravitation != null)
530
530
  throw "assert failed";
531
- this.allNodesToApplyGravitation = r;
531
+ this.allNodesToApplyGravitation = e;
532
532
  }, a.prototype.getRoot = function() {
533
533
  return this.rootGraph;
534
- }, a.prototype.setRootGraph = function(r) {
535
- if (r.getGraphManager() != this)
534
+ }, a.prototype.setRootGraph = function(e) {
535
+ if (e.getGraphManager() != this)
536
536
  throw "Root not in this graph mgr!";
537
- this.rootGraph = r, r.parent == null && (r.parent = this.layout.newNode("Root node"));
537
+ this.rootGraph = e, e.parent == null && (e.parent = this.layout.newNode("Root node"));
538
538
  }, a.prototype.getLayout = function() {
539
539
  return this.layout;
540
- }, a.prototype.isOneAncestorOfOther = function(r, e) {
541
- if (!(r != null && e != null))
540
+ }, a.prototype.isOneAncestorOfOther = function(e, r) {
541
+ if (!(e != null && r != null))
542
542
  throw "assert failed";
543
- if (r == e)
543
+ if (e == r)
544
544
  return !0;
545
- var f = r.getOwner(), i;
545
+ var l = e.getOwner(), i;
546
546
  do {
547
- if (i = f.getParent(), i == null)
547
+ if (i = l.getParent(), i == null)
548
548
  break;
549
- if (i == e)
549
+ if (i == r)
550
550
  return !0;
551
- if (f = i.getOwner(), f == null)
551
+ if (l = i.getOwner(), l == null)
552
552
  break;
553
553
  } while (!0);
554
- f = e.getOwner();
554
+ l = r.getOwner();
555
555
  do {
556
- if (i = f.getParent(), i == null)
556
+ if (i = l.getParent(), i == null)
557
557
  break;
558
- if (i == r)
558
+ if (i == e)
559
559
  return !0;
560
- if (f = i.getOwner(), f == null)
560
+ if (l = i.getOwner(), l == null)
561
561
  break;
562
562
  } while (!0);
563
563
  return !1;
564
564
  }, a.prototype.calcLowestCommonAncestors = function() {
565
- for (var r, e, f, i, g, t = this.getAllEdges(), o = t.length, s = 0; s < o; s++) {
566
- if (r = t[s], e = r.source, f = r.target, r.lca = null, r.sourceInLca = e, r.targetInLca = f, e == f) {
567
- r.lca = e.getOwner();
565
+ for (var e, r, l, i, g, t = this.getAllEdges(), o = t.length, s = 0; s < o; s++) {
566
+ if (e = t[s], r = e.source, l = e.target, e.lca = null, e.sourceInLca = r, e.targetInLca = l, r == l) {
567
+ e.lca = r.getOwner();
568
568
  continue;
569
569
  }
570
- for (i = e.getOwner(); r.lca == null; ) {
571
- for (r.targetInLca = f, g = f.getOwner(); r.lca == null; ) {
570
+ for (i = r.getOwner(); e.lca == null; ) {
571
+ for (e.targetInLca = l, g = l.getOwner(); e.lca == null; ) {
572
572
  if (g == i) {
573
- r.lca = g;
573
+ e.lca = g;
574
574
  break;
575
575
  }
576
576
  if (g == this.rootGraph)
577
577
  break;
578
- if (r.lca != null)
578
+ if (e.lca != null)
579
579
  throw "assert failed";
580
- r.targetInLca = g.getParent(), g = r.targetInLca.getOwner();
580
+ e.targetInLca = g.getParent(), g = e.targetInLca.getOwner();
581
581
  }
582
582
  if (i == this.rootGraph)
583
583
  break;
584
- r.lca == null && (r.sourceInLca = i.getParent(), i = r.sourceInLca.getOwner());
584
+ e.lca == null && (e.sourceInLca = i.getParent(), i = e.sourceInLca.getOwner());
585
585
  }
586
- if (r.lca == null)
586
+ if (e.lca == null)
587
587
  throw "assert failed";
588
588
  }
589
- }, a.prototype.calcLowestCommonAncestor = function(r, e) {
590
- if (r == e)
591
- return r.getOwner();
592
- var f = r.getOwner();
589
+ }, a.prototype.calcLowestCommonAncestor = function(e, r) {
590
+ if (e == r)
591
+ return e.getOwner();
592
+ var l = e.getOwner();
593
593
  do {
594
- if (f == null)
594
+ if (l == null)
595
595
  break;
596
- var i = e.getOwner();
596
+ var i = r.getOwner();
597
597
  do {
598
598
  if (i == null)
599
599
  break;
600
- if (i == f)
600
+ if (i == l)
601
601
  return i;
602
602
  i = i.getParent().getOwner();
603
603
  } while (!0);
604
- f = f.getParent().getOwner();
604
+ l = l.getParent().getOwner();
605
605
  } while (!0);
606
- return f;
607
- }, a.prototype.calcInclusionTreeDepths = function(r, e) {
608
- r == null && e == null && (r = this.rootGraph, e = 1);
609
- for (var f, i = r.getNodes(), g = i.length, t = 0; t < g; t++)
610
- f = i[t], f.inclusionTreeDepth = e, f.child != null && this.calcInclusionTreeDepths(f.child, e + 1);
606
+ return l;
607
+ }, a.prototype.calcInclusionTreeDepths = function(e, r) {
608
+ e == null && r == null && (e = this.rootGraph, r = 1);
609
+ for (var l, i = e.getNodes(), g = i.length, t = 0; t < g; t++)
610
+ l = i[t], l.inclusionTreeDepth = r, l.child != null && this.calcInclusionTreeDepths(l.child, r + 1);
611
611
  }, a.prototype.includesInvalidEdge = function() {
612
- for (var r, e = [], f = this.edges.length, i = 0; i < f; i++)
613
- r = this.edges[i], this.isOneAncestorOfOther(r.source, r.target) && e.push(r);
614
- for (var i = 0; i < e.length; i++)
615
- this.remove(e[i]);
612
+ for (var e, r = [], l = this.edges.length, i = 0; i < l; i++)
613
+ e = this.edges[i], this.isOneAncestorOfOther(e.source, e.target) && r.push(e);
614
+ for (var i = 0; i < r.length; i++)
615
+ this.remove(r[i]);
616
616
  return !1;
617
617
  }, A.exports = a;
618
618
  }),
@@ -622,87 +622,87 @@ function ur() {
622
622
  var u = N(12);
623
623
  function h() {
624
624
  }
625
- h.calcSeparationAmount = function(a, r, e, f) {
626
- if (!a.intersects(r))
625
+ h.calcSeparationAmount = function(a, e, r, l) {
626
+ if (!a.intersects(e))
627
627
  throw "assert failed";
628
628
  var i = new Array(2);
629
- this.decideDirectionsForOverlappingNodes(a, r, i), e[0] = Math.min(a.getRight(), r.getRight()) - Math.max(a.x, r.x), e[1] = Math.min(a.getBottom(), r.getBottom()) - Math.max(a.y, r.y), a.getX() <= r.getX() && a.getRight() >= r.getRight() ? e[0] += Math.min(r.getX() - a.getX(), a.getRight() - r.getRight()) : r.getX() <= a.getX() && r.getRight() >= a.getRight() && (e[0] += Math.min(a.getX() - r.getX(), r.getRight() - a.getRight())), a.getY() <= r.getY() && a.getBottom() >= r.getBottom() ? e[1] += Math.min(r.getY() - a.getY(), a.getBottom() - r.getBottom()) : r.getY() <= a.getY() && r.getBottom() >= a.getBottom() && (e[1] += Math.min(a.getY() - r.getY(), r.getBottom() - a.getBottom()));
630
- var g = Math.abs((r.getCenterY() - a.getCenterY()) / (r.getCenterX() - a.getCenterX()));
631
- r.getCenterY() === a.getCenterY() && r.getCenterX() === a.getCenterX() && (g = 1);
632
- var t = g * e[0], o = e[1] / g;
633
- e[0] < o ? o = e[0] : t = e[1], e[0] = -1 * i[0] * (o / 2 + f), e[1] = -1 * i[1] * (t / 2 + f);
634
- }, h.decideDirectionsForOverlappingNodes = function(a, r, e) {
635
- a.getCenterX() < r.getCenterX() ? e[0] = -1 : e[0] = 1, a.getCenterY() < r.getCenterY() ? e[1] = -1 : e[1] = 1;
636
- }, h.getIntersection2 = function(a, r, e) {
637
- var f = a.getCenterX(), i = a.getCenterY(), g = r.getCenterX(), t = r.getCenterY();
638
- if (a.intersects(r))
639
- return e[0] = f, e[1] = i, e[2] = g, e[3] = t, !0;
640
- var o = a.getX(), s = a.getY(), c = a.getRight(), l = a.getX(), T = a.getBottom(), d = a.getRight(), v = a.getWidthHalf(), L = a.getHeightHalf(), S = r.getX(), C = r.getY(), G = r.getRight(), K = r.getX(), X = r.getBottom(), Q = r.getRight(), O = r.getWidthHalf(), rt = r.getHeightHalf(), n = !1, m = !1;
641
- if (f === g) {
629
+ this.decideDirectionsForOverlappingNodes(a, e, i), r[0] = Math.min(a.getRight(), e.getRight()) - Math.max(a.x, e.x), r[1] = Math.min(a.getBottom(), e.getBottom()) - Math.max(a.y, e.y), a.getX() <= e.getX() && a.getRight() >= e.getRight() ? r[0] += Math.min(e.getX() - a.getX(), a.getRight() - e.getRight()) : e.getX() <= a.getX() && e.getRight() >= a.getRight() && (r[0] += Math.min(a.getX() - e.getX(), e.getRight() - a.getRight())), a.getY() <= e.getY() && a.getBottom() >= e.getBottom() ? r[1] += Math.min(e.getY() - a.getY(), a.getBottom() - e.getBottom()) : e.getY() <= a.getY() && e.getBottom() >= a.getBottom() && (r[1] += Math.min(a.getY() - e.getY(), e.getBottom() - a.getBottom()));
630
+ var g = Math.abs((e.getCenterY() - a.getCenterY()) / (e.getCenterX() - a.getCenterX()));
631
+ e.getCenterY() === a.getCenterY() && e.getCenterX() === a.getCenterX() && (g = 1);
632
+ var t = g * r[0], o = r[1] / g;
633
+ r[0] < o ? o = r[0] : t = r[1], r[0] = -1 * i[0] * (o / 2 + l), r[1] = -1 * i[1] * (t / 2 + l);
634
+ }, h.decideDirectionsForOverlappingNodes = function(a, e, r) {
635
+ a.getCenterX() < e.getCenterX() ? r[0] = -1 : r[0] = 1, a.getCenterY() < e.getCenterY() ? r[1] = -1 : r[1] = 1;
636
+ }, h.getIntersection2 = function(a, e, r) {
637
+ var l = a.getCenterX(), i = a.getCenterY(), g = e.getCenterX(), t = e.getCenterY();
638
+ if (a.intersects(e))
639
+ return r[0] = l, r[1] = i, r[2] = g, r[3] = t, !0;
640
+ var o = a.getX(), s = a.getY(), c = a.getRight(), f = a.getX(), T = a.getBottom(), d = a.getRight(), v = a.getWidthHalf(), L = a.getHeightHalf(), b = e.getX(), C = e.getY(), G = e.getRight(), k = e.getX(), Y = e.getBottom(), K = e.getRight(), O = e.getWidthHalf(), it = e.getHeightHalf(), n = !1, m = !1;
641
+ if (l === g) {
642
642
  if (i > t)
643
- return e[0] = f, e[1] = s, e[2] = g, e[3] = X, !1;
643
+ return r[0] = l, r[1] = s, r[2] = g, r[3] = Y, !1;
644
644
  if (i < t)
645
- return e[0] = f, e[1] = T, e[2] = g, e[3] = C, !1;
645
+ return r[0] = l, r[1] = T, r[2] = g, r[3] = C, !1;
646
646
  } else if (i === t) {
647
- if (f > g)
648
- return e[0] = o, e[1] = i, e[2] = G, e[3] = t, !1;
649
- if (f < g)
650
- return e[0] = c, e[1] = i, e[2] = S, e[3] = t, !1;
647
+ if (l > g)
648
+ return r[0] = o, r[1] = i, r[2] = G, r[3] = t, !1;
649
+ if (l < g)
650
+ return r[0] = c, r[1] = i, r[2] = b, r[3] = t, !1;
651
651
  } else {
652
- var p = a.height / a.width, E = r.height / r.width, y = (t - i) / (g - f), R = void 0, M = void 0, F = void 0, W = void 0, x = void 0, k = void 0;
653
- if (-p === y ? f > g ? (e[0] = l, e[1] = T, n = !0) : (e[0] = c, e[1] = s, n = !0) : p === y && (f > g ? (e[0] = o, e[1] = s, n = !0) : (e[0] = d, e[1] = T, n = !0)), -E === y ? g > f ? (e[2] = K, e[3] = X, m = !0) : (e[2] = G, e[3] = C, m = !0) : E === y && (g > f ? (e[2] = S, e[3] = C, m = !0) : (e[2] = Q, e[3] = X, m = !0)), n && m)
652
+ var p = a.height / a.width, E = e.height / e.width, y = (t - i) / (g - l), R = void 0, M = void 0, S = void 0, W = void 0, D = void 0, q = void 0;
653
+ if (-p === y ? l > g ? (r[0] = f, r[1] = T, n = !0) : (r[0] = c, r[1] = s, n = !0) : p === y && (l > g ? (r[0] = o, r[1] = s, n = !0) : (r[0] = d, r[1] = T, n = !0)), -E === y ? g > l ? (r[2] = k, r[3] = Y, m = !0) : (r[2] = G, r[3] = C, m = !0) : E === y && (g > l ? (r[2] = b, r[3] = C, m = !0) : (r[2] = K, r[3] = Y, m = !0)), n && m)
654
654
  return !1;
655
- if (f > g ? i > t ? (R = this.getCardinalDirection(p, y, 4), M = this.getCardinalDirection(E, y, 2)) : (R = this.getCardinalDirection(-p, y, 3), M = this.getCardinalDirection(-E, y, 1)) : i > t ? (R = this.getCardinalDirection(-p, y, 1), M = this.getCardinalDirection(-E, y, 3)) : (R = this.getCardinalDirection(p, y, 2), M = this.getCardinalDirection(E, y, 4)), !n)
655
+ if (l > g ? i > t ? (R = this.getCardinalDirection(p, y, 4), M = this.getCardinalDirection(E, y, 2)) : (R = this.getCardinalDirection(-p, y, 3), M = this.getCardinalDirection(-E, y, 1)) : i > t ? (R = this.getCardinalDirection(-p, y, 1), M = this.getCardinalDirection(-E, y, 3)) : (R = this.getCardinalDirection(p, y, 2), M = this.getCardinalDirection(E, y, 4)), !n)
656
656
  switch (R) {
657
657
  case 1:
658
- W = s, F = f + -L / y, e[0] = F, e[1] = W;
658
+ W = s, S = l + -L / y, r[0] = S, r[1] = W;
659
659
  break;
660
660
  case 2:
661
- F = d, W = i + v * y, e[0] = F, e[1] = W;
661
+ S = d, W = i + v * y, r[0] = S, r[1] = W;
662
662
  break;
663
663
  case 3:
664
- W = T, F = f + L / y, e[0] = F, e[1] = W;
664
+ W = T, S = l + L / y, r[0] = S, r[1] = W;
665
665
  break;
666
666
  case 4:
667
- F = l, W = i + -v * y, e[0] = F, e[1] = W;
667
+ S = f, W = i + -v * y, r[0] = S, r[1] = W;
668
668
  break;
669
669
  }
670
670
  if (!m)
671
671
  switch (M) {
672
672
  case 1:
673
- k = C, x = g + -rt / y, e[2] = x, e[3] = k;
673
+ q = C, D = g + -it / y, r[2] = D, r[3] = q;
674
674
  break;
675
675
  case 2:
676
- x = Q, k = t + O * y, e[2] = x, e[3] = k;
676
+ D = K, q = t + O * y, r[2] = D, r[3] = q;
677
677
  break;
678
678
  case 3:
679
- k = X, x = g + rt / y, e[2] = x, e[3] = k;
679
+ q = Y, D = g + it / y, r[2] = D, r[3] = q;
680
680
  break;
681
681
  case 4:
682
- x = K, k = t + -O * y, e[2] = x, e[3] = k;
682
+ D = k, q = t + -O * y, r[2] = D, r[3] = q;
683
683
  break;
684
684
  }
685
685
  }
686
686
  return !1;
687
- }, h.getCardinalDirection = function(a, r, e) {
688
- return a > r ? e : 1 + e % 4;
689
- }, h.getIntersection = function(a, r, e, f) {
690
- if (f == null)
691
- return this.getIntersection2(a, r, e);
692
- var i = a.x, g = a.y, t = r.x, o = r.y, s = e.x, c = e.y, l = f.x, T = f.y, d = void 0, v = void 0, L = void 0, S = void 0, C = void 0, G = void 0, K = void 0, X = void 0, Q = void 0;
693
- return L = o - g, C = i - t, K = t * g - i * o, S = T - c, G = s - l, X = l * c - s * T, Q = L * G - S * C, Q === 0 ? null : (d = (C * X - G * K) / Q, v = (S * K - L * X) / Q, new u(d, v));
694
- }, h.angleOfVector = function(a, r, e, f) {
687
+ }, h.getCardinalDirection = function(a, e, r) {
688
+ return a > e ? r : 1 + r % 4;
689
+ }, h.getIntersection = function(a, e, r, l) {
690
+ if (l == null)
691
+ return this.getIntersection2(a, e, r);
692
+ var i = a.x, g = a.y, t = e.x, o = e.y, s = r.x, c = r.y, f = l.x, T = l.y, d = void 0, v = void 0, L = void 0, b = void 0, C = void 0, G = void 0, k = void 0, Y = void 0, K = void 0;
693
+ return L = o - g, C = i - t, k = t * g - i * o, b = T - c, G = s - f, Y = f * c - s * T, K = L * G - b * C, K === 0 ? null : (d = (C * Y - G * k) / K, v = (b * k - L * Y) / K, new u(d, v));
694
+ }, h.angleOfVector = function(a, e, r, l) {
695
695
  var i = void 0;
696
- return a !== e ? (i = Math.atan((f - r) / (e - a)), e < a ? i += Math.PI : f < r && (i += this.TWO_PI)) : f < r ? i = this.ONE_AND_HALF_PI : i = this.HALF_PI, i;
697
- }, h.doIntersect = function(a, r, e, f) {
698
- var i = a.x, g = a.y, t = r.x, o = r.y, s = e.x, c = e.y, l = f.x, T = f.y, d = (t - i) * (T - c) - (l - s) * (o - g);
696
+ return a !== r ? (i = Math.atan((l - e) / (r - a)), r < a ? i += Math.PI : l < e && (i += this.TWO_PI)) : l < e ? i = this.ONE_AND_HALF_PI : i = this.HALF_PI, i;
697
+ }, h.doIntersect = function(a, e, r, l) {
698
+ var i = a.x, g = a.y, t = e.x, o = e.y, s = r.x, c = r.y, f = l.x, T = l.y, d = (t - i) * (T - c) - (f - s) * (o - g);
699
699
  if (d === 0)
700
700
  return !1;
701
- var v = ((T - c) * (l - i) + (s - l) * (T - g)) / d, L = ((g - o) * (l - i) + (t - i) * (T - g)) / d;
701
+ var v = ((T - c) * (f - i) + (s - f) * (T - g)) / d, L = ((g - o) * (f - i) + (t - i) * (T - g)) / d;
702
702
  return 0 < v && v < 1 && 0 < L && L < 1;
703
- }, h.findCircleLineIntersections = function(a, r, e, f, i, g, t) {
704
- var o = (e - a) * (e - a) + (f - r) * (f - r), s = 2 * ((a - i) * (e - a) + (r - g) * (f - r)), c = (a - i) * (a - i) + (r - g) * (r - g) - t * t, l = s * s - 4 * o * c;
705
- if (l >= 0) {
703
+ }, h.findCircleLineIntersections = function(a, e, r, l, i, g, t) {
704
+ var o = (r - a) * (r - a) + (l - e) * (l - e), s = 2 * ((a - i) * (r - a) + (e - g) * (l - e)), c = (a - i) * (a - i) + (e - g) * (e - g) - t * t, f = s * s - 4 * o * c;
705
+ if (f >= 0) {
706
706
  var T = (-s + Math.sqrt(s * s - 4 * o * c)) / (2 * o), d = (-s - Math.sqrt(s * s - 4 * o * c)) / (2 * o), v = null;
707
707
  return T >= 0 && T <= 1 ? [T] : d >= 0 && d <= 1 ? [d] : v;
708
708
  } else return null;
@@ -748,15 +748,15 @@ function ur() {
748
748
  }
749
749
  var a = function(g) {
750
750
  return { value: g, next: null, prev: null };
751
- }, r = function(g, t, o, s) {
751
+ }, e = function(g, t, o, s) {
752
752
  return g !== null ? g.next = t : s.head = t, o !== null ? o.prev = t : s.tail = t, t.prev = g, t.next = o, s.length++, t;
753
- }, e = function(g, t) {
753
+ }, r = function(g, t) {
754
754
  var o = g.prev, s = g.next;
755
755
  return o !== null ? o.next = s : t.head = s, s !== null ? s.prev = o : t.tail = o, g.prev = g.next = null, t.length--, g;
756
- }, f = (function() {
756
+ }, l = (function() {
757
757
  function i(g) {
758
758
  var t = this;
759
- h(this, i), this.length = 0, this.head = null, this.tail = null, g != null && g.forEach(function(o) {
759
+ h(this, i), this.length = 0, this.head = null, this.tail = null, g?.forEach(function(o) {
760
760
  return t.push(o);
761
761
  });
762
762
  }
@@ -768,57 +768,57 @@ function ur() {
768
768
  }, {
769
769
  key: "insertBefore",
770
770
  value: function(t, o) {
771
- return r(o.prev, a(t), o, this);
771
+ return e(o.prev, a(t), o, this);
772
772
  }
773
773
  }, {
774
774
  key: "insertAfter",
775
775
  value: function(t, o) {
776
- return r(o, a(t), o.next, this);
776
+ return e(o, a(t), o.next, this);
777
777
  }
778
778
  }, {
779
779
  key: "insertNodeBefore",
780
780
  value: function(t, o) {
781
- return r(o.prev, t, o, this);
781
+ return e(o.prev, t, o, this);
782
782
  }
783
783
  }, {
784
784
  key: "insertNodeAfter",
785
785
  value: function(t, o) {
786
- return r(o, t, o.next, this);
786
+ return e(o, t, o.next, this);
787
787
  }
788
788
  }, {
789
789
  key: "push",
790
790
  value: function(t) {
791
- return r(this.tail, a(t), null, this);
791
+ return e(this.tail, a(t), null, this);
792
792
  }
793
793
  }, {
794
794
  key: "unshift",
795
795
  value: function(t) {
796
- return r(null, a(t), this.head, this);
796
+ return e(null, a(t), this.head, this);
797
797
  }
798
798
  }, {
799
799
  key: "remove",
800
800
  value: function(t) {
801
- return e(t, this);
801
+ return r(t, this);
802
802
  }
803
803
  }, {
804
804
  key: "pop",
805
805
  value: function() {
806
- return e(this.tail, this).value;
806
+ return r(this.tail, this).value;
807
807
  }
808
808
  }, {
809
809
  key: "popNode",
810
810
  value: function() {
811
- return e(this.tail, this);
811
+ return r(this.tail, this);
812
812
  }
813
813
  }, {
814
814
  key: "shift",
815
815
  value: function() {
816
- return e(this.head, this).value;
816
+ return r(this.head, this).value;
817
817
  }
818
818
  }, {
819
819
  key: "shiftNode",
820
820
  value: function() {
821
- return e(this.head, this);
821
+ return r(this.head, this);
822
822
  }
823
823
  }, {
824
824
  key: "get_object_at",
@@ -840,13 +840,13 @@ function ur() {
840
840
  }
841
841
  }]), i;
842
842
  })();
843
- A.exports = f;
843
+ A.exports = l;
844
844
  }),
845
845
  /* 12 */
846
846
  /***/
847
847
  (function(A, P, N) {
848
- function u(h, a, r) {
849
- this.x = null, this.y = null, h == null && a == null && r == null ? (this.x = 0, this.y = 0) : typeof h == "number" && typeof a == "number" && r == null ? (this.x = h, this.y = a) : h.constructor.name == "Point" && a == null && r == null && (r = h, this.x = r.x, this.y = r.y);
848
+ function u(h, a, e) {
849
+ this.x = null, this.y = null, h == null && a == null && e == null ? (this.x = 0, this.y = 0) : typeof h == "number" && typeof a == "number" && e == null ? (this.x = h, this.y = a) : h.constructor.name == "Point" && a == null && e == null && (e = h, this.x = e.x, this.y = e.y);
850
850
  }
851
851
  u.prototype.getX = function() {
852
852
  return this.x;
@@ -854,8 +854,8 @@ function ur() {
854
854
  return this.y;
855
855
  }, u.prototype.getLocation = function() {
856
856
  return new u(this.x, this.y);
857
- }, u.prototype.setLocation = function(h, a, r) {
858
- h.constructor.name == "Point" && a == null && r == null ? (r = h, this.setLocation(r.x, r.y)) : typeof h == "number" && typeof a == "number" && r == null && (parseInt(h) == h && parseInt(a) == a ? this.move(h, a) : (this.x = Math.floor(h + 0.5), this.y = Math.floor(a + 0.5)));
857
+ }, u.prototype.setLocation = function(h, a, e) {
858
+ h.constructor.name == "Point" && a == null && e == null ? (e = h, this.setLocation(e.x, e.y)) : typeof h == "number" && typeof a == "number" && e == null && (parseInt(h) == h && parseInt(a) == a ? this.move(h, a) : (this.x = Math.floor(h + 0.5), this.y = Math.floor(a + 0.5)));
859
859
  }, u.prototype.move = function(h, a) {
860
860
  this.x = h, this.y = a;
861
861
  }, u.prototype.translate = function(h, a) {
@@ -873,8 +873,8 @@ function ur() {
873
873
  /* 13 */
874
874
  /***/
875
875
  (function(A, P, N) {
876
- function u(h, a, r, e) {
877
- this.x = 0, this.y = 0, this.width = 0, this.height = 0, h != null && a != null && r != null && e != null && (this.x = h, this.y = a, this.width = r, this.height = e);
876
+ function u(h, a, e, r) {
877
+ this.x = 0, this.y = 0, this.width = 0, this.height = 0, h != null && a != null && e != null && r != null && (this.x = h, this.y = a, this.width = e, this.height = r);
878
878
  }
879
879
  u.prototype.getX = function() {
880
880
  return this.x;
@@ -931,8 +931,8 @@ function ur() {
931
931
  }, h.getString = function(a) {
932
932
  return a == null && (a = h.lastID), "Object#" + a;
933
933
  }, h.isPrimitive = function(a) {
934
- var r = typeof a > "u" ? "undefined" : u(a);
935
- return a == null || r != "object" && r != "function";
934
+ var e = typeof a > "u" ? "undefined" : u(a);
935
+ return a == null || e != "object" && e != "function";
936
936
  }, A.exports = h;
937
937
  }),
938
938
  /* 15 */
@@ -940,13 +940,13 @@ function ur() {
940
940
  (function(A, P, N) {
941
941
  function u(s) {
942
942
  if (Array.isArray(s)) {
943
- for (var c = 0, l = Array(s.length); c < s.length; c++)
944
- l[c] = s[c];
945
- return l;
943
+ for (var c = 0, f = Array(s.length); c < s.length; c++)
944
+ f[c] = s[c];
945
+ return f;
946
946
  } else
947
947
  return Array.from(s);
948
948
  }
949
- var h = N(0), a = N(7), r = N(3), e = N(1), f = N(6), i = N(5), g = N(17), t = N(29);
949
+ var h = N(0), a = N(7), e = N(3), r = N(1), l = N(6), i = N(5), g = N(17), t = N(29);
950
950
  function o(s) {
951
951
  t.call(this), this.layoutQuality = h.QUALITY, this.createBendsAsNeeded = h.DEFAULT_CREATE_BENDS_AS_NEEDED, this.incremental = h.DEFAULT_INCREMENTAL, this.animationOnLayout = h.DEFAULT_ANIMATION_ON_LAYOUT, this.animationDuringLayout = h.DEFAULT_ANIMATION_DURING_LAYOUT, this.animationPeriod = h.DEFAULT_ANIMATION_PERIOD, this.uniformLeafNodeSizes = h.DEFAULT_UNIFORM_LEAF_NODE_SIZES, this.edgeToDummyNodes = /* @__PURE__ */ new Map(), this.graphManager = new a(this), this.isLayoutFinished = !1, this.isSubLayout = !1, this.isRemoteUse = !1, s != null && (this.isRemoteUse = s);
952
952
  }
@@ -962,11 +962,11 @@ function ur() {
962
962
  var s = new a(this);
963
963
  return this.graphManager = s, s;
964
964
  }, o.prototype.newGraph = function(s) {
965
- return new f(null, this.graphManager, s);
965
+ return new l(null, this.graphManager, s);
966
966
  }, o.prototype.newNode = function(s) {
967
- return new r(this.graphManager, s);
967
+ return new e(this.graphManager, s);
968
968
  }, o.prototype.newEdge = function(s) {
969
- return new e(null, null, s);
969
+ return new r(null, null, s);
970
970
  }, o.prototype.checkLayoutSuccess = function() {
971
971
  return this.graphManager.getRoot() == null || this.graphManager.getRoot().getNodes().length == 0 || this.graphManager.includesInvalidEdge();
972
972
  }, o.prototype.runLayout = function() {
@@ -979,33 +979,33 @@ function ur() {
979
979
  if (this.createBendsAsNeeded && (this.createBendpointsFromDummyNodes(), this.graphManager.resetAllEdges()), !this.isRemoteUse) {
980
980
  for (var s = this.graphManager.getAllEdges(), c = 0; c < s.length; c++)
981
981
  s[c];
982
- for (var l = this.graphManager.getRoot().getNodes(), c = 0; c < l.length; c++)
983
- l[c];
982
+ for (var f = this.graphManager.getRoot().getNodes(), c = 0; c < f.length; c++)
983
+ f[c];
984
984
  this.update(this.graphManager.getRoot());
985
985
  }
986
986
  }, o.prototype.update = function(s) {
987
987
  if (s == null)
988
988
  this.update2();
989
- else if (s instanceof r) {
989
+ else if (s instanceof e) {
990
990
  var c = s;
991
991
  if (c.getChild() != null)
992
- for (var l = c.getChild().getNodes(), T = 0; T < l.length; T++)
993
- update(l[T]);
992
+ for (var f = c.getChild().getNodes(), T = 0; T < f.length; T++)
993
+ update(f[T]);
994
994
  if (c.vGraphObject != null) {
995
995
  var d = c.vGraphObject;
996
996
  d.update(c);
997
997
  }
998
- } else if (s instanceof e) {
998
+ } else if (s instanceof r) {
999
999
  var v = s;
1000
1000
  if (v.vGraphObject != null) {
1001
1001
  var L = v.vGraphObject;
1002
1002
  L.update(v);
1003
1003
  }
1004
- } else if (s instanceof f) {
1005
- var S = s;
1006
- if (S.vGraphObject != null) {
1007
- var C = S.vGraphObject;
1008
- C.update(S);
1004
+ } else if (s instanceof l) {
1005
+ var b = s;
1006
+ if (b.vGraphObject != null) {
1007
+ var C = b.vGraphObject;
1008
+ C.update(b);
1009
1009
  }
1010
1010
  }
1011
1011
  }, o.prototype.initParameters = function() {
@@ -1014,9 +1014,9 @@ function ur() {
1014
1014
  if (s == null)
1015
1015
  this.transform(new i(0, 0));
1016
1016
  else {
1017
- var c = new g(), l = this.graphManager.getRoot().updateLeftTop();
1018
- if (l != null) {
1019
- c.setWorldOrgX(s.x), c.setWorldOrgY(s.y), c.setDeviceOrgX(l.x), c.setDeviceOrgY(l.y);
1017
+ var c = new g(), f = this.graphManager.getRoot().updateLeftTop();
1018
+ if (f != null) {
1019
+ c.setWorldOrgX(s.x), c.setWorldOrgY(s.y), c.setDeviceOrgX(f.x), c.setDeviceOrgY(f.y);
1020
1020
  for (var T = this.getAllNodes(), d, v = 0; v < T.length; v++)
1021
1021
  d = T[v], d.transform(c);
1022
1022
  }
@@ -1025,23 +1025,23 @@ function ur() {
1025
1025
  if (s == null)
1026
1026
  this.positionNodesRandomly(this.getGraphManager().getRoot()), this.getGraphManager().getRoot().updateBounds(!0);
1027
1027
  else
1028
- for (var c, l, T = s.getNodes(), d = 0; d < T.length; d++)
1029
- c = T[d], l = c.getChild(), l == null || l.getNodes().length == 0 ? c.scatter() : (this.positionNodesRandomly(l), c.updateBounds());
1028
+ for (var c, f, T = s.getNodes(), d = 0; d < T.length; d++)
1029
+ c = T[d], f = c.getChild(), f == null || f.getNodes().length == 0 ? c.scatter() : (this.positionNodesRandomly(f), c.updateBounds());
1030
1030
  }, o.prototype.getFlatForest = function() {
1031
- for (var s = [], c = !0, l = this.graphManager.getRoot().getNodes(), T = !0, d = 0; d < l.length; d++)
1032
- l[d].getChild() != null && (T = !1);
1031
+ for (var s = [], c = !0, f = this.graphManager.getRoot().getNodes(), T = !0, d = 0; d < f.length; d++)
1032
+ f[d].getChild() != null && (T = !1);
1033
1033
  if (!T)
1034
1034
  return s;
1035
- var v = /* @__PURE__ */ new Set(), L = [], S = /* @__PURE__ */ new Map(), C = [];
1036
- for (C = C.concat(l); C.length > 0 && c; ) {
1035
+ var v = /* @__PURE__ */ new Set(), L = [], b = /* @__PURE__ */ new Map(), C = [];
1036
+ for (C = C.concat(f); C.length > 0 && c; ) {
1037
1037
  for (L.push(C[0]); L.length > 0 && c; ) {
1038
1038
  var G = L[0];
1039
1039
  L.splice(0, 1), v.add(G);
1040
- for (var K = G.getEdges(), d = 0; d < K.length; d++) {
1041
- var X = K[d].getOtherEnd(G);
1042
- if (S.get(G) != X)
1043
- if (!v.has(X))
1044
- L.push(X), S.set(X, G);
1040
+ for (var k = G.getEdges(), d = 0; d < k.length; d++) {
1041
+ var Y = k[d].getOtherEnd(G);
1042
+ if (b.get(G) != Y)
1043
+ if (!v.has(Y))
1044
+ L.push(Y), b.set(Y, G);
1045
1045
  else {
1046
1046
  c = !1;
1047
1047
  break;
@@ -1051,43 +1051,43 @@ function ur() {
1051
1051
  if (!c)
1052
1052
  s = [];
1053
1053
  else {
1054
- var Q = [].concat(u(v));
1055
- s.push(Q);
1056
- for (var d = 0; d < Q.length; d++) {
1057
- var O = Q[d], rt = C.indexOf(O);
1058
- rt > -1 && C.splice(rt, 1);
1054
+ var K = [].concat(u(v));
1055
+ s.push(K);
1056
+ for (var d = 0; d < K.length; d++) {
1057
+ var O = K[d], it = C.indexOf(O);
1058
+ it > -1 && C.splice(it, 1);
1059
1059
  }
1060
- v = /* @__PURE__ */ new Set(), S = /* @__PURE__ */ new Map();
1060
+ v = /* @__PURE__ */ new Set(), b = /* @__PURE__ */ new Map();
1061
1061
  }
1062
1062
  }
1063
1063
  return s;
1064
1064
  }, o.prototype.createDummyNodesForBendpoints = function(s) {
1065
- for (var c = [], l = s.source, T = this.graphManager.calcLowestCommonAncestor(s.source, s.target), d = 0; d < s.bendpoints.length; d++) {
1065
+ for (var c = [], f = s.source, T = this.graphManager.calcLowestCommonAncestor(s.source, s.target), d = 0; d < s.bendpoints.length; d++) {
1066
1066
  var v = this.newNode(null);
1067
1067
  v.setRect(new Point(0, 0), new Dimension(1, 1)), T.add(v);
1068
1068
  var L = this.newEdge(null);
1069
- this.graphManager.add(L, l, v), c.add(v), l = v;
1069
+ this.graphManager.add(L, f, v), c.add(v), f = v;
1070
1070
  }
1071
1071
  var L = this.newEdge(null);
1072
- return this.graphManager.add(L, l, s.target), this.edgeToDummyNodes.set(s, c), s.isInterGraph() ? this.graphManager.remove(s) : T.remove(s), c;
1072
+ return this.graphManager.add(L, f, s.target), this.edgeToDummyNodes.set(s, c), s.isInterGraph() ? this.graphManager.remove(s) : T.remove(s), c;
1073
1073
  }, o.prototype.createBendpointsFromDummyNodes = function() {
1074
1074
  var s = [];
1075
1075
  s = s.concat(this.graphManager.getAllEdges()), s = [].concat(u(this.edgeToDummyNodes.keys())).concat(s);
1076
1076
  for (var c = 0; c < s.length; c++) {
1077
- var l = s[c];
1078
- if (l.bendpoints.length > 0) {
1079
- for (var T = this.edgeToDummyNodes.get(l), d = 0; d < T.length; d++) {
1080
- var v = T[d], L = new i(v.getCenterX(), v.getCenterY()), S = l.bendpoints.get(d);
1081
- S.x = L.x, S.y = L.y, v.getOwner().remove(v);
1077
+ var f = s[c];
1078
+ if (f.bendpoints.length > 0) {
1079
+ for (var T = this.edgeToDummyNodes.get(f), d = 0; d < T.length; d++) {
1080
+ var v = T[d], L = new i(v.getCenterX(), v.getCenterY()), b = f.bendpoints.get(d);
1081
+ b.x = L.x, b.y = L.y, v.getOwner().remove(v);
1082
1082
  }
1083
- this.graphManager.add(l, l.source, l.target);
1083
+ this.graphManager.add(f, f.source, f.target);
1084
1084
  }
1085
1085
  }
1086
- }, o.transform = function(s, c, l, T) {
1087
- if (l != null && T != null) {
1086
+ }, o.transform = function(s, c, f, T) {
1087
+ if (f != null && T != null) {
1088
1088
  var d = c;
1089
1089
  if (s <= 50) {
1090
- var v = c / l;
1090
+ var v = c / f;
1091
1091
  d -= (c - v) / 50 * (50 - s);
1092
1092
  } else {
1093
1093
  var L = c * T;
@@ -1095,34 +1095,34 @@ function ur() {
1095
1095
  }
1096
1096
  return d;
1097
1097
  } else {
1098
- var S, C;
1099
- return s <= 50 ? (S = 9 * c / 500, C = c / 10) : (S = 9 * c / 50, C = -8 * c), S * s + C;
1098
+ var b, C;
1099
+ return s <= 50 ? (b = 9 * c / 500, C = c / 10) : (b = 9 * c / 50, C = -8 * c), b * s + C;
1100
1100
  }
1101
1101
  }, o.findCenterOfTree = function(s) {
1102
1102
  var c = [];
1103
1103
  c = c.concat(s);
1104
- var l = [], T = /* @__PURE__ */ new Map(), d = !1, v = null;
1104
+ var f = [], T = /* @__PURE__ */ new Map(), d = !1, v = null;
1105
1105
  (c.length == 1 || c.length == 2) && (d = !0, v = c[0]);
1106
1106
  for (var L = 0; L < c.length; L++) {
1107
- var S = c[L], C = S.getNeighborsList().size;
1108
- T.set(S, S.getNeighborsList().size), C == 1 && l.push(S);
1107
+ var b = c[L], C = b.getNeighborsList().size;
1108
+ T.set(b, b.getNeighborsList().size), C == 1 && f.push(b);
1109
1109
  }
1110
1110
  var G = [];
1111
- for (G = G.concat(l); !d; ) {
1112
- var K = [];
1113
- K = K.concat(G), G = [];
1111
+ for (G = G.concat(f); !d; ) {
1112
+ var k = [];
1113
+ k = k.concat(G), G = [];
1114
1114
  for (var L = 0; L < c.length; L++) {
1115
- var S = c[L], X = c.indexOf(S);
1116
- X >= 0 && c.splice(X, 1);
1117
- var Q = S.getNeighborsList();
1118
- Q.forEach(function(n) {
1119
- if (l.indexOf(n) < 0) {
1115
+ var b = c[L], Y = c.indexOf(b);
1116
+ Y >= 0 && c.splice(Y, 1);
1117
+ var K = b.getNeighborsList();
1118
+ K.forEach(function(n) {
1119
+ if (f.indexOf(n) < 0) {
1120
1120
  var m = T.get(n), p = m - 1;
1121
1121
  p == 1 && G.push(n), T.set(n, p);
1122
1122
  }
1123
1123
  });
1124
1124
  }
1125
- l = l.concat(G), (c.length == 1 || c.length == 2) && (d = !0, v = c[0]);
1125
+ f = f.concat(G), (c.length == 1 || c.length == 2) && (d = !0, v = c[0]);
1126
1126
  }
1127
1127
  return v;
1128
1128
  }, o.prototype.setGraphManager = function(s) {
@@ -1142,7 +1142,7 @@ function ur() {
1142
1142
  /***/
1143
1143
  (function(A, P, N) {
1144
1144
  var u = N(5);
1145
- function h(a, r) {
1145
+ function h(a, e) {
1146
1146
  this.lworldOrgX = 0, this.lworldOrgY = 0, this.ldeviceOrgX = 0, this.ldeviceOrgY = 0, this.lworldExtX = 1, this.lworldExtY = 1, this.ldeviceExtX = 1, this.ldeviceExtY = 1;
1147
1147
  }
1148
1148
  h.prototype.getWorldOrgX = function() {
@@ -1178,20 +1178,20 @@ function ur() {
1178
1178
  }, h.prototype.setDeviceExtY = function(a) {
1179
1179
  this.ldeviceExtY = a;
1180
1180
  }, h.prototype.transformX = function(a) {
1181
- var r = 0, e = this.lworldExtX;
1182
- return e != 0 && (r = this.ldeviceOrgX + (a - this.lworldOrgX) * this.ldeviceExtX / e), r;
1181
+ var e = 0, r = this.lworldExtX;
1182
+ return r != 0 && (e = this.ldeviceOrgX + (a - this.lworldOrgX) * this.ldeviceExtX / r), e;
1183
1183
  }, h.prototype.transformY = function(a) {
1184
- var r = 0, e = this.lworldExtY;
1185
- return e != 0 && (r = this.ldeviceOrgY + (a - this.lworldOrgY) * this.ldeviceExtY / e), r;
1184
+ var e = 0, r = this.lworldExtY;
1185
+ return r != 0 && (e = this.ldeviceOrgY + (a - this.lworldOrgY) * this.ldeviceExtY / r), e;
1186
1186
  }, h.prototype.inverseTransformX = function(a) {
1187
- var r = 0, e = this.ldeviceExtX;
1188
- return e != 0 && (r = this.lworldOrgX + (a - this.ldeviceOrgX) * this.lworldExtX / e), r;
1187
+ var e = 0, r = this.ldeviceExtX;
1188
+ return r != 0 && (e = this.lworldOrgX + (a - this.ldeviceOrgX) * this.lworldExtX / r), e;
1189
1189
  }, h.prototype.inverseTransformY = function(a) {
1190
- var r = 0, e = this.ldeviceExtY;
1191
- return e != 0 && (r = this.lworldOrgY + (a - this.ldeviceOrgY) * this.lworldExtY / e), r;
1190
+ var e = 0, r = this.ldeviceExtY;
1191
+ return r != 0 && (e = this.lworldOrgY + (a - this.ldeviceOrgY) * this.lworldExtY / r), e;
1192
1192
  }, h.prototype.inverseTransformPoint = function(a) {
1193
- var r = new u(this.inverseTransformX(a.x), this.inverseTransformY(a.y));
1194
- return r;
1193
+ var e = new u(this.inverseTransformX(a.x), this.inverseTransformY(a.y));
1194
+ return e;
1195
1195
  }, A.exports = h;
1196
1196
  }),
1197
1197
  /* 18 */
@@ -1205,7 +1205,7 @@ function ur() {
1205
1205
  } else
1206
1206
  return Array.from(t);
1207
1207
  }
1208
- var h = N(15), a = N(4), r = N(0), e = N(8), f = N(9);
1208
+ var h = N(15), a = N(4), e = N(0), r = N(8), l = N(9);
1209
1209
  function i() {
1210
1210
  h.call(this), this.useSmartIdealEdgeLengthCalculation = a.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION, this.gravityConstant = a.DEFAULT_GRAVITY_STRENGTH, this.compoundGravityConstant = a.DEFAULT_COMPOUND_GRAVITY_STRENGTH, this.gravityRangeFactor = a.DEFAULT_GRAVITY_RANGE_FACTOR, this.compoundGravityRangeFactor = a.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR, this.displacementThresholdPerNode = 3 * a.DEFAULT_EDGE_LENGTH / 100, this.coolingFactor = a.DEFAULT_COOLING_FACTOR_INCREMENTAL, this.initialCoolingFactor = a.DEFAULT_COOLING_FACTOR_INCREMENTAL, this.totalDisplacement = 0, this.oldTotalDisplacement = 0, this.maxIterations = a.MAX_ITERATIONS;
1211
1211
  }
@@ -1215,8 +1215,8 @@ function ur() {
1215
1215
  i.prototype.initParameters = function() {
1216
1216
  h.prototype.initParameters.call(this, arguments), this.totalIterations = 0, this.notAnimatedIterations = 0, this.useFRGridVariant = a.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION, this.grid = [];
1217
1217
  }, i.prototype.calcIdealEdgeLengths = function() {
1218
- for (var t, o, s, c, l, T, d, v = this.getGraphManager().getAllEdges(), L = 0; L < v.length; L++)
1219
- t = v[L], o = t.idealLength, t.isInterGraph && (c = t.getSource(), l = t.getTarget(), T = t.getSourceInLca().getEstimatedSize(), d = t.getTargetInLca().getEstimatedSize(), this.useSmartIdealEdgeLengthCalculation && (t.idealLength += T + d - 2 * r.SIMPLE_NODE_SIZE), s = t.getLca().getInclusionTreeDepth(), t.idealLength += o * a.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR * (c.getInclusionTreeDepth() + l.getInclusionTreeDepth() - 2 * s));
1218
+ for (var t, o, s, c, f, T, d, v = this.getGraphManager().getAllEdges(), L = 0; L < v.length; L++)
1219
+ t = v[L], o = t.idealLength, t.isInterGraph && (c = t.getSource(), f = t.getTarget(), T = t.getSourceInLca().getEstimatedSize(), d = t.getTargetInLca().getEstimatedSize(), this.useSmartIdealEdgeLengthCalculation && (t.idealLength += T + d - 2 * e.SIMPLE_NODE_SIZE), s = t.getLca().getInclusionTreeDepth(), t.idealLength += o * a.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR * (c.getInclusionTreeDepth() + f.getInclusionTreeDepth() - 2 * s));
1220
1220
  }, i.prototype.initSpringEmbedder = function() {
1221
1221
  var t = this.getAllNodes().length;
1222
1222
  this.incremental ? (t > a.ADAPTATION_LOWER_NODE_LIMIT && (this.coolingFactor = Math.max(this.coolingFactor * a.COOLING_ADAPTATION_FACTOR, this.coolingFactor - (t - 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) : (t > a.ADAPTATION_LOWER_NODE_LIMIT ? this.coolingFactor = Math.max(a.COOLING_ADAPTATION_FACTOR, 1 - (t - 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();
@@ -1224,14 +1224,14 @@ function ur() {
1224
1224
  for (var t = this.getAllEdges(), o, s = 0; s < t.length; s++)
1225
1225
  o = t[s], this.calcSpringForce(o, o.idealLength);
1226
1226
  }, i.prototype.calcRepulsionForces = function() {
1227
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, s, c, l, T, d = this.getAllNodes(), v;
1227
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, s, c, f, T, d = this.getAllNodes(), v;
1228
1228
  if (this.useFRGridVariant)
1229
1229
  for (this.totalIterations % a.GRID_CALCULATION_CHECK_PERIOD == 1 && t && this.updateGrid(), v = /* @__PURE__ */ new Set(), s = 0; s < d.length; s++)
1230
- l = d[s], this.calculateRepulsionForceOfANode(l, v, t, o), v.add(l);
1230
+ f = d[s], this.calculateRepulsionForceOfANode(f, v, t, o), v.add(f);
1231
1231
  else
1232
1232
  for (s = 0; s < d.length; s++)
1233
- for (l = d[s], c = s + 1; c < d.length; c++)
1234
- T = d[c], l.getOwner() == T.getOwner() && this.calcRepulsionForce(l, T);
1233
+ for (f = d[s], c = s + 1; c < d.length; c++)
1234
+ T = d[c], f.getOwner() == T.getOwner() && this.calcRepulsionForce(f, T);
1235
1235
  }, i.prototype.calcGravitationalForces = function() {
1236
1236
  for (var t, o = this.getAllNodesToApplyGravitation(), s = 0; s < o.length; s++)
1237
1237
  t = o[s], this.calcGravitationalForce(t);
@@ -1239,23 +1239,23 @@ function ur() {
1239
1239
  for (var t = this.getAllNodes(), o, s = 0; s < t.length; s++)
1240
1240
  o = t[s], o.move();
1241
1241
  }, i.prototype.calcSpringForce = function(t, o) {
1242
- var s = t.getSource(), c = t.getTarget(), l, T, d, v;
1242
+ var s = t.getSource(), c = t.getTarget(), f, T, d, v;
1243
1243
  if (this.uniformLeafNodeSizes && s.getChild() == null && c.getChild() == null)
1244
1244
  t.updateLengthSimple();
1245
1245
  else if (t.updateLength(), t.isOverlapingSourceAndTarget)
1246
1246
  return;
1247
- l = t.getLength(), l != 0 && (T = t.edgeElasticity * (l - o), d = T * (t.lengthX / l), v = T * (t.lengthY / l), s.springForceX += d, s.springForceY += v, c.springForceX -= d, c.springForceY -= v);
1247
+ f = t.getLength(), f != 0 && (T = t.edgeElasticity * (f - o), d = T * (t.lengthX / f), v = T * (t.lengthY / f), s.springForceX += d, s.springForceY += v, c.springForceX -= d, c.springForceY -= v);
1248
1248
  }, i.prototype.calcRepulsionForce = function(t, o) {
1249
- var s = t.getRect(), c = o.getRect(), l = new Array(2), T = new Array(4), d, v, L, S, C, G, K;
1249
+ var s = t.getRect(), c = o.getRect(), f = new Array(2), T = new Array(4), d, v, L, b, C, G, k;
1250
1250
  if (s.intersects(c)) {
1251
- e.calcSeparationAmount(s, c, l, a.DEFAULT_EDGE_LENGTH / 2), G = 2 * l[0], K = 2 * l[1];
1252
- var X = t.noOfChildren * o.noOfChildren / (t.noOfChildren + o.noOfChildren);
1253
- t.repulsionForceX -= X * G, t.repulsionForceY -= X * K, o.repulsionForceX += X * G, o.repulsionForceY += X * K;
1251
+ r.calcSeparationAmount(s, c, f, a.DEFAULT_EDGE_LENGTH / 2), G = 2 * f[0], k = 2 * f[1];
1252
+ var Y = t.noOfChildren * o.noOfChildren / (t.noOfChildren + o.noOfChildren);
1253
+ t.repulsionForceX -= Y * G, t.repulsionForceY -= Y * k, o.repulsionForceX += Y * G, o.repulsionForceY += Y * k;
1254
1254
  } else
1255
- this.uniformLeafNodeSizes && t.getChild() == null && o.getChild() == null ? (d = c.getCenterX() - s.getCenterX(), v = c.getCenterY() - s.getCenterY()) : (e.getIntersection(s, c, T), d = T[2] - T[0], v = T[3] - T[1]), Math.abs(d) < a.MIN_REPULSION_DIST && (d = f.sign(d) * a.MIN_REPULSION_DIST), Math.abs(v) < a.MIN_REPULSION_DIST && (v = f.sign(v) * a.MIN_REPULSION_DIST), L = d * d + v * v, S = Math.sqrt(L), C = (t.nodeRepulsion / 2 + o.nodeRepulsion / 2) * t.noOfChildren * o.noOfChildren / L, G = C * d / S, K = C * v / S, t.repulsionForceX -= G, t.repulsionForceY -= K, o.repulsionForceX += G, o.repulsionForceY += K;
1255
+ this.uniformLeafNodeSizes && t.getChild() == null && o.getChild() == null ? (d = c.getCenterX() - s.getCenterX(), v = c.getCenterY() - s.getCenterY()) : (r.getIntersection(s, c, T), d = T[2] - T[0], v = T[3] - T[1]), Math.abs(d) < a.MIN_REPULSION_DIST && (d = l.sign(d) * a.MIN_REPULSION_DIST), Math.abs(v) < a.MIN_REPULSION_DIST && (v = l.sign(v) * a.MIN_REPULSION_DIST), L = d * d + v * v, b = Math.sqrt(L), C = (t.nodeRepulsion / 2 + o.nodeRepulsion / 2) * t.noOfChildren * o.noOfChildren / L, G = C * d / b, k = C * v / b, t.repulsionForceX -= G, t.repulsionForceY -= k, o.repulsionForceX += G, o.repulsionForceY += k;
1256
1256
  }, i.prototype.calcGravitationalForce = function(t) {
1257
- var o, s, c, l, T, d, v, L;
1258
- o = t.getOwner(), s = (o.getRight() + o.getLeft()) / 2, c = (o.getTop() + o.getBottom()) / 2, l = t.getCenterX() - s, T = t.getCenterY() - c, d = Math.abs(l) + t.getWidth() / 2, v = Math.abs(T) + t.getHeight() / 2, t.getOwner() == this.graphManager.getRoot() ? (L = o.getEstimatedSize() * this.gravityRangeFactor, (d > L || v > L) && (t.gravitationForceX = -this.gravityConstant * l, t.gravitationForceY = -this.gravityConstant * T)) : (L = o.getEstimatedSize() * this.compoundGravityRangeFactor, (d > L || v > L) && (t.gravitationForceX = -this.gravityConstant * l * this.compoundGravityConstant, t.gravitationForceY = -this.gravityConstant * T * this.compoundGravityConstant));
1257
+ var o, s, c, f, T, d, v, L;
1258
+ o = t.getOwner(), s = (o.getRight() + o.getLeft()) / 2, c = (o.getTop() + o.getBottom()) / 2, f = t.getCenterX() - s, T = t.getCenterY() - c, d = Math.abs(f) + t.getWidth() / 2, v = Math.abs(T) + t.getHeight() / 2, t.getOwner() == this.graphManager.getRoot() ? (L = o.getEstimatedSize() * this.gravityRangeFactor, (d > L || v > L) && (t.gravitationForceX = -this.gravityConstant * f, t.gravitationForceY = -this.gravityConstant * T)) : (L = o.getEstimatedSize() * this.compoundGravityRangeFactor, (d > L || v > L) && (t.gravitationForceX = -this.gravityConstant * f * this.compoundGravityConstant, t.gravitationForceY = -this.gravityConstant * T * this.compoundGravityConstant));
1259
1259
  }, i.prototype.isConverged = function() {
1260
1260
  var t, o = !1;
1261
1261
  return this.totalIterations > this.maxIterations / 3 && (o = Math.abs(this.totalDisplacement - this.oldTotalDisplacement) < 2), t = this.totalDisplacement < this.totalDisplacementThreshold, this.oldTotalDisplacement = this.totalDisplacement, t || o;
@@ -1267,36 +1267,36 @@ function ur() {
1267
1267
  }, i.prototype.calcGrid = function(t) {
1268
1268
  var o = 0, s = 0;
1269
1269
  o = parseInt(Math.ceil((t.getRight() - t.getLeft()) / this.repulsionRange)), s = parseInt(Math.ceil((t.getBottom() - t.getTop()) / this.repulsionRange));
1270
- for (var c = new Array(o), l = 0; l < o; l++)
1271
- c[l] = new Array(s);
1272
- for (var l = 0; l < o; l++)
1270
+ for (var c = new Array(o), f = 0; f < o; f++)
1271
+ c[f] = new Array(s);
1272
+ for (var f = 0; f < o; f++)
1273
1273
  for (var T = 0; T < s; T++)
1274
- c[l][T] = new Array();
1274
+ c[f][T] = new Array();
1275
1275
  return c;
1276
1276
  }, i.prototype.addNodeToGrid = function(t, o, s) {
1277
- var c = 0, l = 0, T = 0, d = 0;
1278
- c = parseInt(Math.floor((t.getRect().x - o) / this.repulsionRange)), l = parseInt(Math.floor((t.getRect().width + t.getRect().x - o) / this.repulsionRange)), T = parseInt(Math.floor((t.getRect().y - s) / this.repulsionRange)), d = parseInt(Math.floor((t.getRect().height + t.getRect().y - s) / this.repulsionRange));
1279
- for (var v = c; v <= l; v++)
1277
+ var c = 0, f = 0, T = 0, d = 0;
1278
+ c = parseInt(Math.floor((t.getRect().x - o) / this.repulsionRange)), f = parseInt(Math.floor((t.getRect().width + t.getRect().x - o) / this.repulsionRange)), T = parseInt(Math.floor((t.getRect().y - s) / this.repulsionRange)), d = parseInt(Math.floor((t.getRect().height + t.getRect().y - s) / this.repulsionRange));
1279
+ for (var v = c; v <= f; v++)
1280
1280
  for (var L = T; L <= d; L++)
1281
- this.grid[v][L].push(t), t.setGridCoordinates(c, l, T, d);
1281
+ this.grid[v][L].push(t), t.setGridCoordinates(c, f, T, d);
1282
1282
  }, i.prototype.updateGrid = function() {
1283
1283
  var t, o, s = this.getAllNodes();
1284
1284
  for (this.grid = this.calcGrid(this.graphManager.getRoot()), t = 0; t < s.length; t++)
1285
1285
  o = s[t], this.addNodeToGrid(o, this.graphManager.getRoot().getLeft(), this.graphManager.getRoot().getTop());
1286
1286
  }, i.prototype.calculateRepulsionForceOfANode = function(t, o, s, c) {
1287
1287
  if (this.totalIterations % a.GRID_CALCULATION_CHECK_PERIOD == 1 && s || c) {
1288
- var l = /* @__PURE__ */ new Set();
1288
+ var f = /* @__PURE__ */ new Set();
1289
1289
  t.surrounding = new Array();
1290
1290
  for (var T, d = this.grid, v = t.startX - 1; v < t.finishX + 2; v++)
1291
1291
  for (var L = t.startY - 1; L < t.finishY + 2; L++)
1292
1292
  if (!(v < 0 || L < 0 || v >= d.length || L >= d[0].length)) {
1293
- for (var S = 0; S < d[v][L].length; S++)
1294
- if (T = d[v][L][S], !(t.getOwner() != T.getOwner() || t == T) && !o.has(T) && !l.has(T)) {
1293
+ for (var b = 0; b < d[v][L].length; b++)
1294
+ if (T = d[v][L][b], !(t.getOwner() != T.getOwner() || t == T) && !o.has(T) && !f.has(T)) {
1295
1295
  var C = Math.abs(t.getCenterX() - T.getCenterX()) - (t.getWidth() / 2 + T.getWidth() / 2), G = Math.abs(t.getCenterY() - T.getCenterY()) - (t.getHeight() / 2 + T.getHeight() / 2);
1296
- C <= this.repulsionRange && G <= this.repulsionRange && l.add(T);
1296
+ C <= this.repulsionRange && G <= this.repulsionRange && f.add(T);
1297
1297
  }
1298
1298
  }
1299
- t.surrounding = [].concat(u(l));
1299
+ t.surrounding = [].concat(u(f));
1300
1300
  }
1301
1301
  for (v = 0; v < t.surrounding.length; v++)
1302
1302
  this.calcRepulsionForce(t, t.surrounding[v]);
@@ -1308,26 +1308,26 @@ function ur() {
1308
1308
  /***/
1309
1309
  (function(A, P, N) {
1310
1310
  var u = N(1), h = N(4);
1311
- function a(e, f, i) {
1312
- u.call(this, e, f, i), this.idealLength = h.DEFAULT_EDGE_LENGTH, this.edgeElasticity = h.DEFAULT_SPRING_STRENGTH;
1311
+ function a(r, l, i) {
1312
+ u.call(this, r, l, i), this.idealLength = h.DEFAULT_EDGE_LENGTH, this.edgeElasticity = h.DEFAULT_SPRING_STRENGTH;
1313
1313
  }
1314
1314
  a.prototype = Object.create(u.prototype);
1315
- for (var r in u)
1316
- a[r] = u[r];
1315
+ for (var e in u)
1316
+ a[e] = u[e];
1317
1317
  A.exports = a;
1318
1318
  }),
1319
1319
  /* 20 */
1320
1320
  /***/
1321
1321
  (function(A, P, N) {
1322
1322
  var u = N(3), h = N(4);
1323
- function a(e, f, i, g) {
1324
- u.call(this, e, f, i, g), this.nodeRepulsion = h.DEFAULT_REPULSION_STRENGTH, this.springForceX = 0, this.springForceY = 0, this.repulsionForceX = 0, this.repulsionForceY = 0, this.gravitationForceX = 0, this.gravitationForceY = 0, this.displacementX = 0, this.displacementY = 0, this.startX = 0, this.finishX = 0, this.startY = 0, this.finishY = 0, this.surrounding = [];
1323
+ function a(r, l, i, g) {
1324
+ u.call(this, r, l, i, g), this.nodeRepulsion = h.DEFAULT_REPULSION_STRENGTH, this.springForceX = 0, this.springForceY = 0, this.repulsionForceX = 0, this.repulsionForceY = 0, this.gravitationForceX = 0, this.gravitationForceY = 0, this.displacementX = 0, this.displacementY = 0, this.startX = 0, this.finishX = 0, this.startY = 0, this.finishY = 0, this.surrounding = [];
1325
1325
  }
1326
1326
  a.prototype = Object.create(u.prototype);
1327
- for (var r in u)
1328
- a[r] = u[r];
1329
- a.prototype.setGridCoordinates = function(e, f, i, g) {
1330
- this.startX = e, this.finishX = f, this.startY = i, this.finishY = g;
1327
+ for (var e in u)
1328
+ a[e] = u[e];
1329
+ a.prototype.setGridCoordinates = function(r, l, i, g) {
1330
+ this.startX = r, this.finishX = l, this.startY = i, this.finishY = g;
1331
1331
  }, A.exports = a;
1332
1332
  }),
1333
1333
  /* 21 */
@@ -1353,14 +1353,14 @@ function ur() {
1353
1353
  function h() {
1354
1354
  this.map = {}, this.keys = [];
1355
1355
  }
1356
- h.prototype.put = function(a, r) {
1357
- var e = u.createID(a);
1358
- this.contains(e) || (this.map[e] = r, this.keys.push(a));
1356
+ h.prototype.put = function(a, e) {
1357
+ var r = u.createID(a);
1358
+ this.contains(r) || (this.map[r] = e, this.keys.push(a));
1359
1359
  }, h.prototype.contains = function(a) {
1360
1360
  return u.createID(a), this.map[a] != null;
1361
1361
  }, h.prototype.get = function(a) {
1362
- var r = u.createID(a);
1363
- return this.map[r];
1362
+ var e = u.createID(a);
1363
+ return this.map[e];
1364
1364
  }, h.prototype.keySet = function() {
1365
1365
  return this.keys;
1366
1366
  }, A.exports = h;
@@ -1373,8 +1373,8 @@ function ur() {
1373
1373
  this.set = {};
1374
1374
  }
1375
1375
  h.prototype.add = function(a) {
1376
- var r = u.createID(a);
1377
- this.contains(r) || (this.set[r] = a);
1376
+ var e = u.createID(a);
1377
+ this.contains(e) || (this.set[e] = a);
1378
1378
  }, h.prototype.remove = function(a) {
1379
1379
  delete this.set[u.createID(a)];
1380
1380
  }, h.prototype.clear = function() {
@@ -1386,14 +1386,14 @@ function ur() {
1386
1386
  }, h.prototype.size = function() {
1387
1387
  return Object.keys(this.set).length;
1388
1388
  }, h.prototype.addAllTo = function(a) {
1389
- for (var r = Object.keys(this.set), e = r.length, f = 0; f < e; f++)
1390
- a.push(this.set[r[f]]);
1389
+ for (var e = Object.keys(this.set), r = e.length, l = 0; l < r; l++)
1390
+ a.push(this.set[e[l]]);
1391
1391
  }, h.prototype.size = function() {
1392
1392
  return Object.keys(this.set).length;
1393
1393
  }, h.prototype.addAll = function(a) {
1394
- for (var r = a.length, e = 0; e < r; e++) {
1395
- var f = a[e];
1396
- this.add(f);
1394
+ for (var e = a.length, r = 0; r < e; r++) {
1395
+ var l = a[r];
1396
+ this.add(l);
1397
1397
  }
1398
1398
  }, A.exports = h;
1399
1399
  }),
@@ -1403,91 +1403,91 @@ function ur() {
1403
1403
  function u() {
1404
1404
  }
1405
1405
  u.multMat = function(h, a) {
1406
- for (var r = [], e = 0; e < h.length; e++) {
1407
- r[e] = [];
1408
- for (var f = 0; f < a[0].length; f++) {
1409
- r[e][f] = 0;
1406
+ for (var e = [], r = 0; r < h.length; r++) {
1407
+ e[r] = [];
1408
+ for (var l = 0; l < a[0].length; l++) {
1409
+ e[r][l] = 0;
1410
1410
  for (var i = 0; i < h[0].length; i++)
1411
- r[e][f] += h[e][i] * a[i][f];
1411
+ e[r][l] += h[r][i] * a[i][l];
1412
1412
  }
1413
1413
  }
1414
- return r;
1414
+ return e;
1415
1415
  }, u.transpose = function(h) {
1416
- for (var a = [], r = 0; r < h[0].length; r++) {
1417
- a[r] = [];
1418
- for (var e = 0; e < h.length; e++)
1419
- a[r][e] = h[e][r];
1416
+ for (var a = [], e = 0; e < h[0].length; e++) {
1417
+ a[e] = [];
1418
+ for (var r = 0; r < h.length; r++)
1419
+ a[e][r] = h[r][e];
1420
1420
  }
1421
1421
  return a;
1422
1422
  }, u.multCons = function(h, a) {
1423
- for (var r = [], e = 0; e < h.length; e++)
1424
- r[e] = h[e] * a;
1425
- return r;
1423
+ for (var e = [], r = 0; r < h.length; r++)
1424
+ e[r] = h[r] * a;
1425
+ return e;
1426
1426
  }, u.minusOp = function(h, a) {
1427
- for (var r = [], e = 0; e < h.length; e++)
1428
- r[e] = h[e] - a[e];
1429
- return r;
1427
+ for (var e = [], r = 0; r < h.length; r++)
1428
+ e[r] = h[r] - a[r];
1429
+ return e;
1430
1430
  }, u.dotProduct = function(h, a) {
1431
- for (var r = 0, e = 0; e < h.length; e++)
1432
- r += h[e] * a[e];
1433
- return r;
1431
+ for (var e = 0, r = 0; r < h.length; r++)
1432
+ e += h[r] * a[r];
1433
+ return e;
1434
1434
  }, u.mag = function(h) {
1435
1435
  return Math.sqrt(this.dotProduct(h, h));
1436
1436
  }, u.normalize = function(h) {
1437
- for (var a = [], r = this.mag(h), e = 0; e < h.length; e++)
1438
- a[e] = h[e] / r;
1437
+ for (var a = [], e = this.mag(h), r = 0; r < h.length; r++)
1438
+ a[r] = h[r] / e;
1439
1439
  return a;
1440
1440
  }, u.multGamma = function(h) {
1441
- for (var a = [], r = 0, e = 0; e < h.length; e++)
1442
- r += h[e];
1443
- r *= -1 / h.length;
1444
- for (var f = 0; f < h.length; f++)
1445
- a[f] = r + h[f];
1441
+ for (var a = [], e = 0, r = 0; r < h.length; r++)
1442
+ e += h[r];
1443
+ e *= -1 / h.length;
1444
+ for (var l = 0; l < h.length; l++)
1445
+ a[l] = e + h[l];
1446
1446
  return a;
1447
- }, u.multL = function(h, a, r) {
1448
- for (var e = [], f = [], i = [], g = 0; g < a[0].length; g++) {
1447
+ }, u.multL = function(h, a, e) {
1448
+ for (var r = [], l = [], i = [], g = 0; g < a[0].length; g++) {
1449
1449
  for (var t = 0, o = 0; o < a.length; o++)
1450
1450
  t += -0.5 * a[o][g] * h[o];
1451
- f[g] = t;
1451
+ l[g] = t;
1452
1452
  }
1453
- for (var s = 0; s < r.length; s++) {
1454
- for (var c = 0, l = 0; l < r.length; l++)
1455
- c += r[s][l] * f[l];
1453
+ for (var s = 0; s < e.length; s++) {
1454
+ for (var c = 0, f = 0; f < e.length; f++)
1455
+ c += e[s][f] * l[f];
1456
1456
  i[s] = c;
1457
1457
  }
1458
1458
  for (var T = 0; T < a.length; T++) {
1459
1459
  for (var d = 0, v = 0; v < a[0].length; v++)
1460
1460
  d += a[T][v] * i[v];
1461
- e[T] = d;
1461
+ r[T] = d;
1462
1462
  }
1463
- return e;
1463
+ return r;
1464
1464
  }, A.exports = u;
1465
1465
  }),
1466
1466
  /* 25 */
1467
1467
  /***/
1468
1468
  (function(A, P, N) {
1469
1469
  var u = /* @__PURE__ */ (function() {
1470
- function e(f, i) {
1470
+ function r(l, i) {
1471
1471
  for (var g = 0; g < i.length; g++) {
1472
1472
  var t = i[g];
1473
- t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(f, t.key, t);
1473
+ t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(l, t.key, t);
1474
1474
  }
1475
1475
  }
1476
- return function(f, i, g) {
1477
- return i && e(f.prototype, i), g && e(f, g), f;
1476
+ return function(l, i, g) {
1477
+ return i && r(l.prototype, i), g && r(l, g), l;
1478
1478
  };
1479
1479
  })();
1480
- function h(e, f) {
1481
- if (!(e instanceof f))
1480
+ function h(r, l) {
1481
+ if (!(r instanceof l))
1482
1482
  throw new TypeError("Cannot call a class as a function");
1483
1483
  }
1484
- var a = N(11), r = (function() {
1485
- function e(f, i) {
1486
- h(this, e), (i !== null || i !== void 0) && (this.compareFunction = this._defaultCompareFunction);
1484
+ var a = N(11), e = (function() {
1485
+ function r(l, i) {
1486
+ h(this, r), (i !== null || i !== void 0) && (this.compareFunction = this._defaultCompareFunction);
1487
1487
  var g = void 0;
1488
- f instanceof a ? g = f.size() : g = f.length, this._quicksort(f, 0, g - 1);
1488
+ l instanceof a ? g = l.size() : g = l.length, this._quicksort(l, 0, g - 1);
1489
1489
  }
1490
- return u(e, [{
1490
+ return u(r, [{
1491
1491
  key: "_quicksort",
1492
1492
  value: function(i, g, t) {
1493
1493
  if (g < t) {
@@ -1529,9 +1529,9 @@ function ur() {
1529
1529
  value: function(i, g) {
1530
1530
  return g > i;
1531
1531
  }
1532
- }]), e;
1532
+ }]), r;
1533
1533
  })();
1534
- A.exports = r;
1534
+ A.exports = e;
1535
1535
  }),
1536
1536
  /* 26 */
1537
1537
  /***/
@@ -1564,15 +1564,15 @@ function ur() {
1564
1564
  };
1565
1565
  return Ct(Tt);
1566
1566
  })([this.n, this.n]);
1567
- for (var r = (function(Tt) {
1567
+ for (var e = (function(Tt) {
1568
1568
  for (var Ct = []; Tt-- > 0; )
1569
1569
  Ct.push(0);
1570
1570
  return Ct;
1571
- })(this.n), e = (function(Tt) {
1571
+ })(this.n), r = (function(Tt) {
1572
1572
  for (var Ct = []; Tt-- > 0; )
1573
1573
  Ct.push(0);
1574
1574
  return Ct;
1575
- })(this.m), f = !0, i = Math.min(this.m - 1, this.n), g = Math.max(0, Math.min(this.n - 2, this.m)), t = 0; t < Math.max(i, g); t++) {
1575
+ })(this.m), l = !0, i = Math.min(this.m - 1, this.n), g = Math.max(0, Math.min(this.n - 2, this.m)), t = 0; t < Math.max(i, g); t++) {
1576
1576
  if (t < i) {
1577
1577
  this.s[t] = 0;
1578
1578
  for (var o = t; o < this.m; o++)
@@ -1589,47 +1589,47 @@ function ur() {
1589
1589
  if (/* @__PURE__ */ (function(Tt, Ct) {
1590
1590
  return Tt && Ct;
1591
1591
  })(t < i, this.s[t] !== 0)) {
1592
- for (var l = 0, T = t; T < this.m; T++)
1593
- l += h[T][t] * h[T][c];
1594
- l = -l / h[t][t];
1592
+ for (var f = 0, T = t; T < this.m; T++)
1593
+ f += h[T][t] * h[T][c];
1594
+ f = -f / h[t][t];
1595
1595
  for (var d = t; d < this.m; d++)
1596
- h[d][c] += l * h[d][t];
1596
+ h[d][c] += f * h[d][t];
1597
1597
  }
1598
- r[c] = h[t][c];
1598
+ e[c] = h[t][c];
1599
1599
  }
1600
1600
  if (/* @__PURE__ */ (function(Tt, Ct) {
1601
1601
  return Ct;
1602
- })(f, t < i))
1602
+ })(l, t < i))
1603
1603
  for (var v = t; v < this.m; v++)
1604
1604
  this.U[v][t] = h[v][t];
1605
1605
  if (t < g) {
1606
- r[t] = 0;
1606
+ e[t] = 0;
1607
1607
  for (var L = t + 1; L < this.n; L++)
1608
- r[t] = u.hypot(r[t], r[L]);
1609
- if (r[t] !== 0) {
1610
- r[t + 1] < 0 && (r[t] = -r[t]);
1611
- for (var S = t + 1; S < this.n; S++)
1612
- r[S] /= r[t];
1613
- r[t + 1] += 1;
1608
+ e[t] = u.hypot(e[t], e[L]);
1609
+ if (e[t] !== 0) {
1610
+ e[t + 1] < 0 && (e[t] = -e[t]);
1611
+ for (var b = t + 1; b < this.n; b++)
1612
+ e[b] /= e[t];
1613
+ e[t + 1] += 1;
1614
1614
  }
1615
- if (r[t] = -r[t], /* @__PURE__ */ (function(Tt, Ct) {
1615
+ if (e[t] = -e[t], /* @__PURE__ */ (function(Tt, Ct) {
1616
1616
  return Tt && Ct;
1617
- })(t + 1 < this.m, r[t] !== 0)) {
1617
+ })(t + 1 < this.m, e[t] !== 0)) {
1618
1618
  for (var C = t + 1; C < this.m; C++)
1619
- e[C] = 0;
1619
+ r[C] = 0;
1620
1620
  for (var G = t + 1; G < this.n; G++)
1621
- for (var K = t + 1; K < this.m; K++)
1622
- e[K] += r[G] * h[K][G];
1623
- for (var X = t + 1; X < this.n; X++)
1624
- for (var Q = -r[X] / r[t + 1], O = t + 1; O < this.m; O++)
1625
- h[O][X] += Q * e[O];
1621
+ for (var k = t + 1; k < this.m; k++)
1622
+ r[k] += e[G] * h[k][G];
1623
+ for (var Y = t + 1; Y < this.n; Y++)
1624
+ for (var K = -e[Y] / e[t + 1], O = t + 1; O < this.m; O++)
1625
+ h[O][Y] += K * r[O];
1626
1626
  }
1627
- for (var rt = t + 1; rt < this.n; rt++)
1628
- this.V[rt][t] = r[rt];
1627
+ for (var it = t + 1; it < this.n; it++)
1628
+ this.V[it][t] = e[it];
1629
1629
  }
1630
1630
  }
1631
1631
  var n = Math.min(this.n, this.m + 1);
1632
- i < this.n && (this.s[i] = h[i][i]), this.m < n && (this.s[n - 1] = 0), g + 1 < n && (r[g] = h[g][n - 1]), r[n - 1] = 0;
1632
+ i < this.n && (this.s[i] = h[i][i]), this.m < n && (this.s[n - 1] = 0), g + 1 < n && (e[g] = h[g][n - 1]), e[n - 1] = 0;
1633
1633
  {
1634
1634
  for (var m = i; m < a; m++) {
1635
1635
  for (var p = 0; p < this.m; p++)
@@ -1642,63 +1642,63 @@ function ur() {
1642
1642
  for (var R = 0, M = E; M < this.m; M++)
1643
1643
  R += this.U[M][E] * this.U[M][y];
1644
1644
  R = -R / this.U[E][E];
1645
- for (var F = E; F < this.m; F++)
1646
- this.U[F][y] += R * this.U[F][E];
1645
+ for (var S = E; S < this.m; S++)
1646
+ this.U[S][y] += R * this.U[S][E];
1647
1647
  }
1648
1648
  for (var W = E; W < this.m; W++)
1649
1649
  this.U[W][E] = -this.U[W][E];
1650
1650
  this.U[E][E] = 1 + this.U[E][E];
1651
- for (var x = 0; x < E - 1; x++)
1652
- this.U[x][E] = 0;
1651
+ for (var D = 0; D < E - 1; D++)
1652
+ this.U[D][E] = 0;
1653
1653
  } else {
1654
- for (var k = 0; k < this.m; k++)
1655
- this.U[k][E] = 0;
1654
+ for (var q = 0; q < this.m; q++)
1655
+ this.U[q][E] = 0;
1656
1656
  this.U[E][E] = 1;
1657
1657
  }
1658
1658
  }
1659
1659
  for (var V = this.n - 1; V >= 0; V--) {
1660
1660
  if (/* @__PURE__ */ (function(Tt, Ct) {
1661
1661
  return Tt && Ct;
1662
- })(V < g, r[V] !== 0))
1663
- for (var Y = V + 1; Y < a; Y++) {
1662
+ })(V < g, e[V] !== 0))
1663
+ for (var X = V + 1; X < a; X++) {
1664
1664
  for (var et = 0, z = V + 1; z < this.n; z++)
1665
- et += this.V[z][V] * this.V[z][Y];
1665
+ et += this.V[z][V] * this.V[z][X];
1666
1666
  et = -et / this.V[V + 1][V];
1667
1667
  for (var w = V + 1; w < this.n; w++)
1668
- this.V[w][Y] += et * this.V[w][V];
1668
+ this.V[w][X] += et * this.V[w][V];
1669
1669
  }
1670
1670
  for (var H = 0; H < this.n; H++)
1671
1671
  this.V[H][V] = 0;
1672
1672
  this.V[V][V] = 1;
1673
1673
  }
1674
1674
  for (var $ = n - 1, _ = Math.pow(2, -52), ht = Math.pow(2, -966); n > 0; ) {
1675
- var q = void 0, It = void 0;
1676
- for (q = n - 2; q >= -1 && q !== -1; q--)
1677
- if (Math.abs(r[q]) <= ht + _ * (Math.abs(this.s[q]) + Math.abs(this.s[q + 1]))) {
1678
- r[q] = 0;
1675
+ var Q = void 0, It = void 0;
1676
+ for (Q = n - 2; Q >= -1 && Q !== -1; Q--)
1677
+ if (Math.abs(e[Q]) <= ht + _ * (Math.abs(this.s[Q]) + Math.abs(this.s[Q + 1]))) {
1678
+ e[Q] = 0;
1679
1679
  break;
1680
1680
  }
1681
- if (q === n - 2)
1681
+ if (Q === n - 2)
1682
1682
  It = 4;
1683
1683
  else {
1684
1684
  var Nt = void 0;
1685
- for (Nt = n - 1; Nt >= q && Nt !== q; Nt--) {
1686
- var vt = (Nt !== n ? Math.abs(r[Nt]) : 0) + (Nt !== q + 1 ? Math.abs(r[Nt - 1]) : 0);
1685
+ for (Nt = n - 1; Nt >= Q && Nt !== Q; Nt--) {
1686
+ var vt = (Nt !== n ? Math.abs(e[Nt]) : 0) + (Nt !== Q + 1 ? Math.abs(e[Nt - 1]) : 0);
1687
1687
  if (Math.abs(this.s[Nt]) <= ht + _ * vt) {
1688
1688
  this.s[Nt] = 0;
1689
1689
  break;
1690
1690
  }
1691
1691
  }
1692
- Nt === q ? It = 3 : Nt === n - 1 ? It = 1 : (It = 2, q = Nt);
1692
+ Nt === Q ? It = 3 : Nt === n - 1 ? It = 1 : (It = 2, Q = Nt);
1693
1693
  }
1694
- switch (q++, It) {
1694
+ switch (Q++, It) {
1695
1695
  case 1:
1696
1696
  {
1697
- var it = r[n - 2];
1698
- r[n - 2] = 0;
1699
- for (var gt = n - 2; gt >= q; gt--) {
1700
- var mt = u.hypot(this.s[gt], it), At = this.s[gt] / mt, Ot = it / mt;
1701
- this.s[gt] = mt, gt !== q && (it = -Ot * r[gt - 1], r[gt - 1] = At * r[gt - 1]);
1697
+ var rt = e[n - 2];
1698
+ e[n - 2] = 0;
1699
+ for (var gt = n - 2; gt >= Q; gt--) {
1700
+ var mt = u.hypot(this.s[gt], rt), At = this.s[gt] / mt, Ot = rt / mt;
1701
+ this.s[gt] = mt, gt !== Q && (rt = -Ot * e[gt - 1], e[gt - 1] = At * e[gt - 1]);
1702
1702
  for (var Et = 0; Et < this.n; Et++)
1703
1703
  mt = At * this.V[Et][gt] + Ot * this.V[Et][n - 1], this.V[Et][n - 1] = -Ot * this.V[Et][gt] + At * this.V[Et][n - 1], this.V[Et][gt] = mt;
1704
1704
  }
@@ -1706,50 +1706,50 @@ function ur() {
1706
1706
  break;
1707
1707
  case 2:
1708
1708
  {
1709
- var Dt = r[q - 1];
1710
- r[q - 1] = 0;
1711
- for (var Rt = q; Rt < n; Rt++) {
1709
+ var Dt = e[Q - 1];
1710
+ e[Q - 1] = 0;
1711
+ for (var Rt = Q; Rt < n; Rt++) {
1712
1712
  var Ht = u.hypot(this.s[Rt], Dt), Ut = this.s[Rt] / Ht, Pt = Dt / Ht;
1713
- this.s[Rt] = Ht, Dt = -Pt * r[Rt], r[Rt] = Ut * r[Rt];
1713
+ this.s[Rt] = Ht, Dt = -Pt * e[Rt], e[Rt] = Ut * e[Rt];
1714
1714
  for (var Ft = 0; Ft < this.m; Ft++)
1715
- Ht = Ut * this.U[Ft][Rt] + Pt * this.U[Ft][q - 1], this.U[Ft][q - 1] = -Pt * this.U[Ft][Rt] + Ut * this.U[Ft][q - 1], this.U[Ft][Rt] = Ht;
1715
+ Ht = Ut * this.U[Ft][Rt] + Pt * this.U[Ft][Q - 1], this.U[Ft][Q - 1] = -Pt * this.U[Ft][Rt] + Ut * this.U[Ft][Q - 1], this.U[Ft][Rt] = Ht;
1716
1716
  }
1717
1717
  }
1718
1718
  break;
1719
1719
  case 3:
1720
1720
  {
1721
- var Yt = Math.max(Math.max(Math.max(Math.max(Math.abs(this.s[n - 1]), Math.abs(this.s[n - 2])), Math.abs(r[n - 2])), Math.abs(this.s[q])), Math.abs(r[q])), Vt = this.s[n - 1] / Yt, b = this.s[n - 2] / Yt, U = r[n - 2] / Yt, B = this.s[q] / Yt, J = r[q] / Yt, Z = ((b + Vt) * (b - Vt) + U * U) / 2, at = Vt * U * (Vt * U), ct = 0;
1721
+ var Yt = Math.max(Math.max(Math.max(Math.max(Math.abs(this.s[n - 1]), Math.abs(this.s[n - 2])), Math.abs(e[n - 2])), Math.abs(this.s[Q])), Math.abs(e[Q])), Vt = this.s[n - 1] / Yt, F = this.s[n - 2] / Yt, U = e[n - 2] / Yt, B = this.s[Q] / Yt, J = e[Q] / Yt, Z = ((F + Vt) * (F - Vt) + U * U) / 2, at = Vt * U * (Vt * U), ct = 0;
1722
1722
  /* @__PURE__ */ (function(Tt, Ct) {
1723
1723
  return Tt || Ct;
1724
1724
  })(Z !== 0, at !== 0) && (ct = Math.sqrt(Z * Z + at), Z < 0 && (ct = -ct), ct = at / (Z + ct));
1725
- for (var nt = (B + Vt) * (B - Vt) + ct, tt = B * J, j = q; j < n - 1; j++) {
1725
+ for (var nt = (B + Vt) * (B - Vt) + ct, tt = B * J, j = Q; j < n - 1; j++) {
1726
1726
  var ut = u.hypot(nt, tt), Mt = nt / ut, pt = tt / ut;
1727
- j !== q && (r[j - 1] = ut), nt = Mt * this.s[j] + pt * r[j], r[j] = Mt * r[j] - pt * this.s[j], tt = pt * this.s[j + 1], this.s[j + 1] = Mt * this.s[j + 1];
1727
+ j !== Q && (e[j - 1] = ut), nt = Mt * this.s[j] + pt * e[j], e[j] = Mt * e[j] - pt * this.s[j], tt = pt * this.s[j + 1], this.s[j + 1] = Mt * this.s[j + 1];
1728
1728
  for (var xt = 0; xt < this.n; xt++)
1729
1729
  ut = Mt * this.V[xt][j] + pt * this.V[xt][j + 1], this.V[xt][j + 1] = -pt * this.V[xt][j] + Mt * this.V[xt][j + 1], this.V[xt][j] = ut;
1730
- if (ut = u.hypot(nt, tt), Mt = nt / ut, pt = tt / ut, this.s[j] = ut, nt = Mt * r[j] + pt * this.s[j + 1], this.s[j + 1] = -pt * r[j] + Mt * this.s[j + 1], tt = pt * r[j + 1], r[j + 1] = Mt * r[j + 1], j < this.m - 1)
1730
+ if (ut = u.hypot(nt, tt), Mt = nt / ut, pt = tt / ut, this.s[j] = ut, nt = Mt * e[j] + pt * this.s[j + 1], this.s[j + 1] = -pt * e[j] + Mt * this.s[j + 1], tt = pt * e[j + 1], e[j + 1] = Mt * e[j + 1], j < this.m - 1)
1731
1731
  for (var lt = 0; lt < this.m; lt++)
1732
1732
  ut = Mt * this.U[lt][j] + pt * this.U[lt][j + 1], this.U[lt][j + 1] = -pt * this.U[lt][j] + Mt * this.U[lt][j + 1], this.U[lt][j] = ut;
1733
1733
  }
1734
- r[n - 2] = nt;
1734
+ e[n - 2] = nt;
1735
1735
  }
1736
1736
  break;
1737
1737
  case 4:
1738
1738
  {
1739
- if (this.s[q] <= 0) {
1740
- this.s[q] = this.s[q] < 0 ? -this.s[q] : 0;
1739
+ if (this.s[Q] <= 0) {
1740
+ this.s[Q] = this.s[Q] < 0 ? -this.s[Q] : 0;
1741
1741
  for (var ot = 0; ot <= $; ot++)
1742
- this.V[ot][q] = -this.V[ot][q];
1742
+ this.V[ot][Q] = -this.V[ot][Q];
1743
1743
  }
1744
- for (; q < $ && !(this.s[q] >= this.s[q + 1]); ) {
1745
- var Lt = this.s[q];
1746
- if (this.s[q] = this.s[q + 1], this.s[q + 1] = Lt, q < this.n - 1)
1744
+ for (; Q < $ && !(this.s[Q] >= this.s[Q + 1]); ) {
1745
+ var Lt = this.s[Q];
1746
+ if (this.s[Q] = this.s[Q + 1], this.s[Q + 1] = Lt, Q < this.n - 1)
1747
1747
  for (var ft = 0; ft < this.n; ft++)
1748
- Lt = this.V[ft][q + 1], this.V[ft][q + 1] = this.V[ft][q], this.V[ft][q] = Lt;
1749
- if (q < this.m - 1)
1748
+ Lt = this.V[ft][Q + 1], this.V[ft][Q + 1] = this.V[ft][Q], this.V[ft][Q] = Lt;
1749
+ if (Q < this.m - 1)
1750
1750
  for (var st = 0; st < this.m; st++)
1751
- Lt = this.U[st][q + 1], this.U[st][q + 1] = this.U[st][q], this.U[st][q] = Lt;
1752
- q++;
1751
+ Lt = this.U[st][Q + 1], this.U[st][Q + 1] = this.U[st][Q], this.U[st][Q] = Lt;
1752
+ Q++;
1753
1753
  }
1754
1754
  n--;
1755
1755
  }
@@ -1759,32 +1759,32 @@ function ur() {
1759
1759
  var Xt = { U: this.U, V: this.V, S: this.s };
1760
1760
  return Xt;
1761
1761
  }, u.hypot = function(h, a) {
1762
- var r = void 0;
1763
- return Math.abs(h) > Math.abs(a) ? (r = a / h, r = Math.abs(h) * Math.sqrt(1 + r * r)) : a != 0 ? (r = h / a, r = Math.abs(a) * Math.sqrt(1 + r * r)) : r = 0, r;
1762
+ var e = void 0;
1763
+ return Math.abs(h) > Math.abs(a) ? (e = a / h, e = Math.abs(h) * Math.sqrt(1 + e * e)) : a != 0 ? (e = h / a, e = Math.abs(a) * Math.sqrt(1 + e * e)) : e = 0, e;
1764
1764
  }, A.exports = u;
1765
1765
  }),
1766
1766
  /* 27 */
1767
1767
  /***/
1768
1768
  (function(A, P, N) {
1769
1769
  var u = /* @__PURE__ */ (function() {
1770
- function r(e, f) {
1771
- for (var i = 0; i < f.length; i++) {
1772
- var g = f[i];
1773
- g.enumerable = g.enumerable || !1, g.configurable = !0, "value" in g && (g.writable = !0), Object.defineProperty(e, g.key, g);
1770
+ function e(r, l) {
1771
+ for (var i = 0; i < l.length; i++) {
1772
+ var g = l[i];
1773
+ g.enumerable = g.enumerable || !1, g.configurable = !0, "value" in g && (g.writable = !0), Object.defineProperty(r, g.key, g);
1774
1774
  }
1775
1775
  }
1776
- return function(e, f, i) {
1777
- return f && r(e.prototype, f), i && r(e, i), e;
1776
+ return function(r, l, i) {
1777
+ return l && e(r.prototype, l), i && e(r, i), r;
1778
1778
  };
1779
1779
  })();
1780
- function h(r, e) {
1781
- if (!(r instanceof e))
1780
+ function h(e, r) {
1781
+ if (!(e instanceof r))
1782
1782
  throw new TypeError("Cannot call a class as a function");
1783
1783
  }
1784
1784
  var a = (function() {
1785
- function r(e, f) {
1785
+ function e(r, l) {
1786
1786
  var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1, g = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : -1, t = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : -1;
1787
- h(this, r), this.sequence1 = e, this.sequence2 = f, this.match_score = i, this.mismatch_penalty = g, this.gap_penalty = t, this.iMax = e.length + 1, this.jMax = f.length + 1, this.grid = new Array(this.iMax);
1787
+ h(this, e), this.sequence1 = r, this.sequence2 = l, this.match_score = i, this.mismatch_penalty = g, this.gap_penalty = t, this.iMax = r.length + 1, this.jMax = l.length + 1, this.grid = new Array(this.iMax);
1788
1788
  for (var o = 0; o < this.iMax; o++) {
1789
1789
  this.grid[o] = new Array(this.jMax);
1790
1790
  for (var s = 0; s < this.jMax; s++)
@@ -1793,12 +1793,12 @@ function ur() {
1793
1793
  this.tracebackGrid = new Array(this.iMax);
1794
1794
  for (var c = 0; c < this.iMax; c++) {
1795
1795
  this.tracebackGrid[c] = new Array(this.jMax);
1796
- for (var l = 0; l < this.jMax; l++)
1797
- this.tracebackGrid[c][l] = [null, null, null];
1796
+ for (var f = 0; f < this.jMax; f++)
1797
+ this.tracebackGrid[c][f] = [null, null, null];
1798
1798
  }
1799
1799
  this.alignments = [], this.score = -1, this.computeGrids();
1800
1800
  }
1801
- return u(r, [{
1801
+ return u(e, [{
1802
1802
  key: "getScore",
1803
1803
  value: function() {
1804
1804
  return this.score;
@@ -1812,16 +1812,16 @@ function ur() {
1812
1812
  }, {
1813
1813
  key: "computeGrids",
1814
1814
  value: function() {
1815
- for (var f = 1; f < this.jMax; f++)
1816
- this.grid[0][f] = this.grid[0][f - 1] + this.gap_penalty, this.tracebackGrid[0][f] = [!1, !1, !0];
1815
+ for (var l = 1; l < this.jMax; l++)
1816
+ this.grid[0][l] = this.grid[0][l - 1] + this.gap_penalty, this.tracebackGrid[0][l] = [!1, !1, !0];
1817
1817
  for (var i = 1; i < this.iMax; i++)
1818
1818
  this.grid[i][0] = this.grid[i - 1][0] + this.gap_penalty, this.tracebackGrid[i][0] = [!1, !0, !1];
1819
1819
  for (var g = 1; g < this.iMax; g++)
1820
1820
  for (var t = 1; t < this.jMax; t++) {
1821
1821
  var o = void 0;
1822
1822
  this.sequence1[g - 1] === this.sequence2[t - 1] ? o = this.grid[g - 1][t - 1] + this.match_score : o = this.grid[g - 1][t - 1] + this.mismatch_penalty;
1823
- var s = this.grid[g - 1][t] + this.gap_penalty, c = this.grid[g][t - 1] + this.gap_penalty, l = [o, s, c], T = this.arrayAllMaxIndexes(l);
1824
- this.grid[g][t] = l[T[0]], this.tracebackGrid[g][t] = [T.includes(0), T.includes(1), T.includes(2)];
1823
+ var s = this.grid[g - 1][t] + this.gap_penalty, c = this.grid[g][t - 1] + this.gap_penalty, f = [o, s, c], T = this.arrayAllMaxIndexes(f);
1824
+ this.grid[g][t] = f[T[0]], this.tracebackGrid[g][t] = [T.includes(0), T.includes(1), T.includes(2)];
1825
1825
  }
1826
1826
  this.score = this.grid[this.iMax - 1][this.jMax - 1];
1827
1827
  }
@@ -1829,46 +1829,46 @@ function ur() {
1829
1829
  }, {
1830
1830
  key: "alignmentTraceback",
1831
1831
  value: function() {
1832
- var f = [];
1833
- for (f.push({
1832
+ var l = [];
1833
+ for (l.push({
1834
1834
  pos: [this.sequence1.length, this.sequence2.length],
1835
1835
  seq1: "",
1836
1836
  seq2: ""
1837
- }); f[0]; ) {
1838
- var i = f[0], g = this.tracebackGrid[i.pos[0]][i.pos[1]];
1839
- g[0] && f.push({
1837
+ }); l[0]; ) {
1838
+ var i = l[0], g = this.tracebackGrid[i.pos[0]][i.pos[1]];
1839
+ g[0] && l.push({
1840
1840
  pos: [i.pos[0] - 1, i.pos[1] - 1],
1841
1841
  seq1: this.sequence1[i.pos[0] - 1] + i.seq1,
1842
1842
  seq2: this.sequence2[i.pos[1] - 1] + i.seq2
1843
- }), g[1] && f.push({
1843
+ }), g[1] && l.push({
1844
1844
  pos: [i.pos[0] - 1, i.pos[1]],
1845
1845
  seq1: this.sequence1[i.pos[0] - 1] + i.seq1,
1846
1846
  seq2: "-" + i.seq2
1847
- }), g[2] && f.push({
1847
+ }), g[2] && l.push({
1848
1848
  pos: [i.pos[0], i.pos[1] - 1],
1849
1849
  seq1: "-" + i.seq1,
1850
1850
  seq2: this.sequence2[i.pos[1] - 1] + i.seq2
1851
1851
  }), i.pos[0] === 0 && i.pos[1] === 0 && this.alignments.push({
1852
1852
  sequence1: i.seq1,
1853
1853
  sequence2: i.seq2
1854
- }), f.shift();
1854
+ }), l.shift();
1855
1855
  }
1856
1856
  return this.alignments;
1857
1857
  }
1858
1858
  // Helper Functions
1859
1859
  }, {
1860
1860
  key: "getAllIndexes",
1861
- value: function(f, i) {
1862
- for (var g = [], t = -1; (t = f.indexOf(i, t + 1)) !== -1; )
1861
+ value: function(l, i) {
1862
+ for (var g = [], t = -1; (t = l.indexOf(i, t + 1)) !== -1; )
1863
1863
  g.push(t);
1864
1864
  return g;
1865
1865
  }
1866
1866
  }, {
1867
1867
  key: "arrayAllMaxIndexes",
1868
- value: function(f) {
1869
- return this.getAllIndexes(f, Math.max.apply(null, f));
1868
+ value: function(l) {
1869
+ return this.getAllIndexes(l, Math.max.apply(null, l));
1870
1870
  }
1871
- }]), r;
1871
+ }]), e;
1872
1872
  })();
1873
1873
  A.exports = a;
1874
1874
  }),
@@ -1886,20 +1886,20 @@ function ur() {
1886
1886
  this.listeners = [];
1887
1887
  }
1888
1888
  var h = u.prototype;
1889
- h.addListener = function(a, r) {
1889
+ h.addListener = function(a, e) {
1890
1890
  this.listeners.push({
1891
1891
  event: a,
1892
- callback: r
1892
+ callback: e
1893
1893
  });
1894
- }, h.removeListener = function(a, r) {
1895
- for (var e = this.listeners.length; e >= 0; e--) {
1896
- var f = this.listeners[e];
1897
- f.event === a && f.callback === r && this.listeners.splice(e, 1);
1894
+ }, h.removeListener = function(a, e) {
1895
+ for (var r = this.listeners.length; r >= 0; r--) {
1896
+ var l = this.listeners[r];
1897
+ l.event === a && l.callback === e && this.listeners.splice(r, 1);
1898
1898
  }
1899
- }, h.emit = function(a, r) {
1900
- for (var e = 0; e < this.listeners.length; e++) {
1901
- var f = this.listeners[e];
1902
- a === f.event && f.callback(r);
1899
+ }, h.emit = function(a, e) {
1900
+ for (var r = 0; r < this.listeners.length; r++) {
1901
+ var l = this.listeners[r];
1902
+ a === l.event && l.callback(e);
1903
1903
  }
1904
1904
  }, A.exports = u;
1905
1905
  })
@@ -1911,7 +1911,7 @@ function ur() {
1911
1911
  }
1912
1912
  var dr = le.exports, Oe;
1913
1913
  function vr() {
1914
- return Oe || (Oe = 1, (function(I, D) {
1914
+ return Oe || (Oe = 1, (function(I, x) {
1915
1915
  (function(P, N) {
1916
1916
  I.exports = N(ur());
1917
1917
  })(dr, function(A) {
@@ -1922,76 +1922,76 @@ function vr() {
1922
1922
  /***/
1923
1923
  45: (
1924
1924
  /***/
1925
- ((a, r, e) => {
1926
- var f = {};
1927
- f.layoutBase = e(551), f.CoSEConstants = e(806), f.CoSEEdge = e(767), f.CoSEGraph = e(880), f.CoSEGraphManager = e(578), f.CoSELayout = e(765), f.CoSENode = e(991), f.ConstraintHandler = e(902), a.exports = f;
1925
+ ((a, e, r) => {
1926
+ var l = {};
1927
+ l.layoutBase = r(551), l.CoSEConstants = r(806), l.CoSEEdge = r(767), l.CoSEGraph = r(880), l.CoSEGraphManager = r(578), l.CoSELayout = r(765), l.CoSENode = r(991), l.ConstraintHandler = r(902), a.exports = l;
1928
1928
  })
1929
1929
  ),
1930
1930
  /***/
1931
1931
  806: (
1932
1932
  /***/
1933
- ((a, r, e) => {
1934
- var f = e(551).FDLayoutConstants;
1933
+ ((a, e, r) => {
1934
+ var l = r(551).FDLayoutConstants;
1935
1935
  function i() {
1936
1936
  }
1937
- for (var g in f)
1938
- i[g] = f[g];
1939
- i.DEFAULT_USE_MULTI_LEVEL_SCALING = !1, i.DEFAULT_RADIAL_SEPARATION = f.DEFAULT_EDGE_LENGTH, i.DEFAULT_COMPONENT_SEPERATION = 60, i.TILE = !0, i.TILING_PADDING_VERTICAL = 10, i.TILING_PADDING_HORIZONTAL = 10, i.TRANSFORM_ON_CONSTRAINT_HANDLING = !0, i.ENFORCE_CONSTRAINTS = !0, i.APPLY_LAYOUT = !0, i.RELAX_MOVEMENT_ON_CONSTRAINTS = !0, i.TREE_REDUCTION_ON_INCREMENTAL = !0, i.PURE_INCREMENTAL = i.DEFAULT_INCREMENTAL, a.exports = i;
1937
+ for (var g in l)
1938
+ i[g] = l[g];
1939
+ i.DEFAULT_USE_MULTI_LEVEL_SCALING = !1, i.DEFAULT_RADIAL_SEPARATION = l.DEFAULT_EDGE_LENGTH, i.DEFAULT_COMPONENT_SEPERATION = 60, i.TILE = !0, i.TILING_PADDING_VERTICAL = 10, i.TILING_PADDING_HORIZONTAL = 10, i.TRANSFORM_ON_CONSTRAINT_HANDLING = !0, i.ENFORCE_CONSTRAINTS = !0, i.APPLY_LAYOUT = !0, i.RELAX_MOVEMENT_ON_CONSTRAINTS = !0, i.TREE_REDUCTION_ON_INCREMENTAL = !0, i.PURE_INCREMENTAL = i.DEFAULT_INCREMENTAL, a.exports = i;
1940
1940
  })
1941
1941
  ),
1942
1942
  /***/
1943
1943
  767: (
1944
1944
  /***/
1945
- ((a, r, e) => {
1946
- var f = e(551).FDLayoutEdge;
1945
+ ((a, e, r) => {
1946
+ var l = r(551).FDLayoutEdge;
1947
1947
  function i(t, o, s) {
1948
- f.call(this, t, o, s);
1948
+ l.call(this, t, o, s);
1949
1949
  }
1950
- i.prototype = Object.create(f.prototype);
1951
- for (var g in f)
1952
- i[g] = f[g];
1950
+ i.prototype = Object.create(l.prototype);
1951
+ for (var g in l)
1952
+ i[g] = l[g];
1953
1953
  a.exports = i;
1954
1954
  })
1955
1955
  ),
1956
1956
  /***/
1957
1957
  880: (
1958
1958
  /***/
1959
- ((a, r, e) => {
1960
- var f = e(551).LGraph;
1959
+ ((a, e, r) => {
1960
+ var l = r(551).LGraph;
1961
1961
  function i(t, o, s) {
1962
- f.call(this, t, o, s);
1962
+ l.call(this, t, o, s);
1963
1963
  }
1964
- i.prototype = Object.create(f.prototype);
1965
- for (var g in f)
1966
- i[g] = f[g];
1964
+ i.prototype = Object.create(l.prototype);
1965
+ for (var g in l)
1966
+ i[g] = l[g];
1967
1967
  a.exports = i;
1968
1968
  })
1969
1969
  ),
1970
1970
  /***/
1971
1971
  578: (
1972
1972
  /***/
1973
- ((a, r, e) => {
1974
- var f = e(551).LGraphManager;
1973
+ ((a, e, r) => {
1974
+ var l = r(551).LGraphManager;
1975
1975
  function i(t) {
1976
- f.call(this, t);
1976
+ l.call(this, t);
1977
1977
  }
1978
- i.prototype = Object.create(f.prototype);
1979
- for (var g in f)
1980
- i[g] = f[g];
1978
+ i.prototype = Object.create(l.prototype);
1979
+ for (var g in l)
1980
+ i[g] = l[g];
1981
1981
  a.exports = i;
1982
1982
  })
1983
1983
  ),
1984
1984
  /***/
1985
1985
  765: (
1986
1986
  /***/
1987
- ((a, r, e) => {
1988
- var f = e(551).FDLayout, i = e(578), g = e(880), t = e(991), o = e(767), s = e(806), c = e(902), l = e(551).FDLayoutConstants, T = e(551).LayoutConstants, d = e(551).Point, v = e(551).PointD, L = e(551).DimensionD, S = e(551).Layout, C = e(551).Integer, G = e(551).IGeometry, K = e(551).LGraph, X = e(551).Transform, Q = e(551).LinkedList;
1987
+ ((a, e, r) => {
1988
+ var l = r(551).FDLayout, i = r(578), g = r(880), t = r(991), o = r(767), s = r(806), c = r(902), f = r(551).FDLayoutConstants, T = r(551).LayoutConstants, d = r(551).Point, v = r(551).PointD, L = r(551).DimensionD, b = r(551).Layout, C = r(551).Integer, G = r(551).IGeometry, k = r(551).LGraph, Y = r(551).Transform, K = r(551).LinkedList;
1989
1989
  function O() {
1990
- f.call(this), this.toBeTiled = {}, this.constraints = {};
1990
+ l.call(this), this.toBeTiled = {}, this.constraints = {};
1991
1991
  }
1992
- O.prototype = Object.create(f.prototype);
1993
- for (var rt in f)
1994
- O[rt] = f[rt];
1992
+ O.prototype = Object.create(l.prototype);
1993
+ for (var it in l)
1994
+ O[it] = l[it];
1995
1995
  O.prototype.newGraphManager = function() {
1996
1996
  var n = new i(this);
1997
1997
  return this.graphManager = n, n;
@@ -2002,9 +2002,9 @@ function vr() {
2002
2002
  }, O.prototype.newEdge = function(n) {
2003
2003
  return new o(null, null, n);
2004
2004
  }, O.prototype.initParameters = function() {
2005
- f.prototype.initParameters.call(this, arguments), this.isSubLayout || (s.DEFAULT_EDGE_LENGTH < 10 ? this.idealEdgeLength = 10 : this.idealEdgeLength = s.DEFAULT_EDGE_LENGTH, this.useSmartIdealEdgeLengthCalculation = s.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION, this.gravityConstant = l.DEFAULT_GRAVITY_STRENGTH, this.compoundGravityConstant = l.DEFAULT_COMPOUND_GRAVITY_STRENGTH, this.gravityRangeFactor = l.DEFAULT_GRAVITY_RANGE_FACTOR, this.compoundGravityRangeFactor = l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR, this.prunedNodesAll = [], this.growTreeIterations = 0, this.afterGrowthIterations = 0, this.isTreeGrowing = !1, this.isGrowthFinished = !1);
2005
+ l.prototype.initParameters.call(this, arguments), this.isSubLayout || (s.DEFAULT_EDGE_LENGTH < 10 ? this.idealEdgeLength = 10 : this.idealEdgeLength = s.DEFAULT_EDGE_LENGTH, this.useSmartIdealEdgeLengthCalculation = s.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION, this.gravityConstant = f.DEFAULT_GRAVITY_STRENGTH, this.compoundGravityConstant = f.DEFAULT_COMPOUND_GRAVITY_STRENGTH, this.gravityRangeFactor = f.DEFAULT_GRAVITY_RANGE_FACTOR, this.compoundGravityRangeFactor = f.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR, this.prunedNodesAll = [], this.growTreeIterations = 0, this.afterGrowthIterations = 0, this.isTreeGrowing = !1, this.isGrowthFinished = !1);
2006
2006
  }, O.prototype.initSpringEmbedder = function() {
2007
- f.prototype.initSpringEmbedder.call(this), this.coolingCycle = 0, this.maxCoolingCycle = this.maxIterations / l.CONVERGENCE_CHECK_PERIOD, this.finalTemperature = 0.04, this.coolingAdjuster = 1;
2007
+ l.prototype.initSpringEmbedder.call(this), this.coolingCycle = 0, this.maxCoolingCycle = this.maxIterations / f.CONVERGENCE_CHECK_PERIOD, this.finalTemperature = 0.04, this.coolingAdjuster = 1;
2008
2008
  }, O.prototype.layout = function() {
2009
2009
  var n = T.DEFAULT_CREATE_BENDS_AS_NEEDED;
2010
2010
  return n && (this.createBendpoints(), this.graphManager.resetAllEdges()), this.level = 0, this.classicLayout();
@@ -2036,7 +2036,7 @@ function vr() {
2036
2036
  this.isTreeGrowing = !0;
2037
2037
  else
2038
2038
  return !0;
2039
- if (this.totalIterations % l.CONVERGENCE_CHECK_PERIOD == 0 && !this.isTreeGrowing && !this.isGrowthFinished) {
2039
+ if (this.totalIterations % f.CONVERGENCE_CHECK_PERIOD == 0 && !this.isTreeGrowing && !this.isGrowthFinished) {
2040
2040
  if (this.isConverged())
2041
2041
  if (this.prunedNodesAll.length > 0)
2042
2042
  this.isTreeGrowing = !0;
@@ -2051,7 +2051,7 @@ function vr() {
2051
2051
  var n = new Set(this.getAllNodes()), m = this.nodesWithGravity.filter(function(y) {
2052
2052
  return n.has(y);
2053
2053
  });
2054
- this.graphManager.setAllNodesToApplyGravitation(m), this.graphManager.updateBounds(), this.updateGrid(), s.PURE_INCREMENTAL ? this.coolingFactor = l.DEFAULT_COOLING_FACTOR_INCREMENTAL / 2 : this.coolingFactor = l.DEFAULT_COOLING_FACTOR_INCREMENTAL;
2054
+ this.graphManager.setAllNodesToApplyGravitation(m), this.graphManager.updateBounds(), this.updateGrid(), s.PURE_INCREMENTAL ? this.coolingFactor = f.DEFAULT_COOLING_FACTOR_INCREMENTAL / 2 : this.coolingFactor = f.DEFAULT_COOLING_FACTOR_INCREMENTAL;
2055
2055
  } else
2056
2056
  this.isTreeGrowing = !1, this.isGrowthFinished = !0;
2057
2057
  this.growTreeIterations++;
@@ -2059,7 +2059,7 @@ function vr() {
2059
2059
  if (this.isGrowthFinished) {
2060
2060
  if (this.isConverged())
2061
2061
  return !0;
2062
- this.afterGrowthIterations % 10 == 0 && (this.graphManager.updateBounds(), this.updateGrid()), s.PURE_INCREMENTAL ? this.coolingFactor = l.DEFAULT_COOLING_FACTOR_INCREMENTAL / 2 * ((100 - this.afterGrowthIterations) / 100) : this.coolingFactor = l.DEFAULT_COOLING_FACTOR_INCREMENTAL * ((100 - this.afterGrowthIterations) / 100), this.afterGrowthIterations++;
2062
+ this.afterGrowthIterations % 10 == 0 && (this.graphManager.updateBounds(), this.updateGrid()), s.PURE_INCREMENTAL ? this.coolingFactor = f.DEFAULT_COOLING_FACTOR_INCREMENTAL / 2 * ((100 - this.afterGrowthIterations) / 100) : this.coolingFactor = f.DEFAULT_COOLING_FACTOR_INCREMENTAL * ((100 - this.afterGrowthIterations) / 100), this.afterGrowthIterations++;
2063
2063
  }
2064
2064
  var p = !this.isTreeGrowing && !this.isGrowthFinished, E = this.growTreeIterations % 10 == 1 && this.isTreeGrowing || this.afterGrowthIterations % 10 == 1 && this.isGrowthFinished;
2065
2065
  return this.totalDisplacement = 0, this.graphManager.updateBounds(), this.calcSpringForces(), this.calcRepulsionForces(p, E), this.calcGravitationalForces(), this.moveNodes(), this.animate(), !1;
@@ -2078,7 +2078,7 @@ function vr() {
2078
2078
  }, O.prototype.runSpringEmbedder = function() {
2079
2079
  this.initialAnimationPeriod = 25, this.animationPeriod = this.initialAnimationPeriod;
2080
2080
  var n = !1;
2081
- if (l.ANIMATE === "during")
2081
+ if (f.ANIMATE === "during")
2082
2082
  this.emit("layoutstarted");
2083
2083
  else {
2084
2084
  for (; !n; )
@@ -2099,8 +2099,8 @@ function vr() {
2099
2099
  this.idToNodeMap.set(E.id, E);
2100
2100
  }
2101
2101
  var y = function w(H) {
2102
- for (var $ = H.getChild().getNodes(), _, ht = 0, q = 0; q < $.length; q++)
2103
- _ = $[q], _.getChild() == null ? n.fixedNodeSet.has(_.id) && (ht += 100) : ht += w(_);
2102
+ for (var $ = H.getChild().getNodes(), _, ht = 0, Q = 0; Q < $.length; Q++)
2103
+ _ = $[Q], _.getChild() == null ? n.fixedNodeSet.has(_.id) && (ht += 100) : ht += w(_);
2104
2104
  return ht;
2105
2105
  };
2106
2106
  if (this.constraints.fixedNodeConstraint) {
@@ -2114,7 +2114,7 @@ function vr() {
2114
2114
  }
2115
2115
  }
2116
2116
  if (this.constraints.relativePlacementConstraint) {
2117
- var M = /* @__PURE__ */ new Map(), F = /* @__PURE__ */ new Map();
2117
+ var M = /* @__PURE__ */ new Map(), S = /* @__PURE__ */ new Map();
2118
2118
  if (this.dummyToNodeForVerticalAlignment = /* @__PURE__ */ new Map(), this.dummyToNodeForHorizontalAlignment = /* @__PURE__ */ new Map(), this.fixedNodesOnHorizontal = /* @__PURE__ */ new Set(), this.fixedNodesOnVertical = /* @__PURE__ */ new Set(), this.fixedNodeSet.forEach(function(w) {
2119
2119
  n.fixedNodesOnHorizontal.add(w), n.fixedNodesOnVertical.add(w);
2120
2120
  }), this.constraints.alignmentConstraint) {
@@ -2124,9 +2124,9 @@ function vr() {
2124
2124
  M.set(H, "dummy" + p), n.dummyToNodeForVerticalAlignment.get("dummy" + p).push(H), n.fixedNodeSet.has(H) && n.fixedNodesOnHorizontal.add("dummy" + p);
2125
2125
  });
2126
2126
  if (this.constraints.alignmentConstraint.horizontal)
2127
- for (var x = this.constraints.alignmentConstraint.horizontal, p = 0; p < x.length; p++)
2128
- this.dummyToNodeForHorizontalAlignment.set("dummy" + p, []), x[p].forEach(function(H) {
2129
- F.set(H, "dummy" + p), n.dummyToNodeForHorizontalAlignment.get("dummy" + p).push(H), n.fixedNodeSet.has(H) && n.fixedNodesOnVertical.add("dummy" + p);
2127
+ for (var D = this.constraints.alignmentConstraint.horizontal, p = 0; p < D.length; p++)
2128
+ this.dummyToNodeForHorizontalAlignment.set("dummy" + p, []), D[p].forEach(function(H) {
2129
+ S.set(H, "dummy" + p), n.dummyToNodeForHorizontalAlignment.get("dummy" + p).push(H), n.fixedNodeSet.has(H) && n.fixedNodesOnVertical.add("dummy" + p);
2130
2130
  });
2131
2131
  }
2132
2132
  if (s.RELAX_MOVEMENT_ON_CONSTRAINTS)
@@ -2140,40 +2140,40 @@ function vr() {
2140
2140
  var H = M.has(w.left) ? M.get(w.left) : w.left, $ = M.has(w.right) ? M.get(w.right) : w.right;
2141
2141
  n.nodesInRelativeHorizontal.includes(H) || (n.nodesInRelativeHorizontal.push(H), n.nodeToRelativeConstraintMapHorizontal.set(H, []), n.dummyToNodeForVerticalAlignment.has(H) ? n.nodeToTempPositionMapHorizontal.set(H, n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(H)[0]).getCenterX()) : n.nodeToTempPositionMapHorizontal.set(H, n.idToNodeMap.get(H).getCenterX())), n.nodesInRelativeHorizontal.includes($) || (n.nodesInRelativeHorizontal.push($), n.nodeToRelativeConstraintMapHorizontal.set($, []), n.dummyToNodeForVerticalAlignment.has($) ? n.nodeToTempPositionMapHorizontal.set($, n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get($)[0]).getCenterX()) : n.nodeToTempPositionMapHorizontal.set($, n.idToNodeMap.get($).getCenterX())), n.nodeToRelativeConstraintMapHorizontal.get(H).push({ right: $, gap: w.gap }), n.nodeToRelativeConstraintMapHorizontal.get($).push({ left: H, gap: w.gap });
2142
2142
  } else {
2143
- var _ = F.has(w.top) ? F.get(w.top) : w.top, ht = F.has(w.bottom) ? F.get(w.bottom) : w.bottom;
2143
+ var _ = S.has(w.top) ? S.get(w.top) : w.top, ht = S.has(w.bottom) ? S.get(w.bottom) : w.bottom;
2144
2144
  n.nodesInRelativeVertical.includes(_) || (n.nodesInRelativeVertical.push(_), n.nodeToRelativeConstraintMapVertical.set(_, []), n.dummyToNodeForHorizontalAlignment.has(_) ? n.nodeToTempPositionMapVertical.set(_, n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(_)[0]).getCenterY()) : n.nodeToTempPositionMapVertical.set(_, n.idToNodeMap.get(_).getCenterY())), n.nodesInRelativeVertical.includes(ht) || (n.nodesInRelativeVertical.push(ht), n.nodeToRelativeConstraintMapVertical.set(ht, []), n.dummyToNodeForHorizontalAlignment.has(ht) ? n.nodeToTempPositionMapVertical.set(ht, n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(ht)[0]).getCenterY()) : n.nodeToTempPositionMapVertical.set(ht, n.idToNodeMap.get(ht).getCenterY())), n.nodeToRelativeConstraintMapVertical.get(_).push({ bottom: ht, gap: w.gap }), n.nodeToRelativeConstraintMapVertical.get(ht).push({ top: _, gap: w.gap });
2145
2145
  }
2146
2146
  });
2147
2147
  else {
2148
- var k = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map();
2148
+ var q = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map();
2149
2149
  this.constraints.relativePlacementConstraint.forEach(function(w) {
2150
2150
  if (w.left) {
2151
2151
  var H = M.has(w.left) ? M.get(w.left) : w.left, $ = M.has(w.right) ? M.get(w.right) : w.right;
2152
- k.has(H) ? k.get(H).push($) : k.set(H, [$]), k.has($) ? k.get($).push(H) : k.set($, [H]);
2152
+ q.has(H) ? q.get(H).push($) : q.set(H, [$]), q.has($) ? q.get($).push(H) : q.set($, [H]);
2153
2153
  } else {
2154
- var _ = F.has(w.top) ? F.get(w.top) : w.top, ht = F.has(w.bottom) ? F.get(w.bottom) : w.bottom;
2154
+ var _ = S.has(w.top) ? S.get(w.top) : w.top, ht = S.has(w.bottom) ? S.get(w.bottom) : w.bottom;
2155
2155
  V.has(_) ? V.get(_).push(ht) : V.set(_, [ht]), V.has(ht) ? V.get(ht).push(_) : V.set(ht, [_]);
2156
2156
  }
2157
2157
  });
2158
- var Y = function(H, $) {
2159
- var _ = [], ht = [], q = new Q(), It = /* @__PURE__ */ new Set(), Nt = 0;
2160
- return H.forEach(function(vt, it) {
2161
- if (!It.has(it)) {
2158
+ var X = function(H, $) {
2159
+ var _ = [], ht = [], Q = new K(), It = /* @__PURE__ */ new Set(), Nt = 0;
2160
+ return H.forEach(function(vt, rt) {
2161
+ if (!It.has(rt)) {
2162
2162
  _[Nt] = [], ht[Nt] = !1;
2163
- var gt = it;
2164
- for (q.push(gt), It.add(gt), _[Nt].push(gt); q.length != 0; ) {
2165
- gt = q.shift(), $.has(gt) && (ht[Nt] = !0);
2163
+ var gt = rt;
2164
+ for (Q.push(gt), It.add(gt), _[Nt].push(gt); Q.length != 0; ) {
2165
+ gt = Q.shift(), $.has(gt) && (ht[Nt] = !0);
2166
2166
  var mt = H.get(gt);
2167
2167
  mt.forEach(function(At) {
2168
- It.has(At) || (q.push(At), It.add(At), _[Nt].push(At));
2168
+ It.has(At) || (Q.push(At), It.add(At), _[Nt].push(At));
2169
2169
  });
2170
2170
  }
2171
2171
  Nt++;
2172
2172
  }
2173
2173
  }), { components: _, isFixed: ht };
2174
- }, et = Y(k, n.fixedNodesOnHorizontal);
2174
+ }, et = X(q, n.fixedNodesOnHorizontal);
2175
2175
  this.componentsOnHorizontal = et.components, this.fixedComponentsOnHorizontal = et.isFixed;
2176
- var z = Y(V, n.fixedNodesOnVertical);
2176
+ var z = X(V, n.fixedNodesOnVertical);
2177
2177
  this.componentsOnVertical = z.components, this.fixedComponentsOnVertical = z.isFixed;
2178
2178
  }
2179
2179
  }
@@ -2197,14 +2197,14 @@ function vr() {
2197
2197
  }
2198
2198
  if (this.constraints.alignmentConstraint.horizontal)
2199
2199
  for (var M = this.constraints.alignmentConstraint.horizontal, p = 0; p < M.length; p++) {
2200
- for (var F = 0, y = 0; y < M[p].length; y++) {
2200
+ for (var S = 0, y = 0; y < M[p].length; y++) {
2201
2201
  if (this.fixedNodeSet.has(M[p][y])) {
2202
- F = 0;
2202
+ S = 0;
2203
2203
  break;
2204
2204
  }
2205
- F += this.idToNodeMap.get(M[p][y]).displacementY;
2205
+ S += this.idToNodeMap.get(M[p][y]).displacementY;
2206
2206
  }
2207
- for (var W = F / M[p].length, y = 0; y < M[p].length; y++)
2207
+ for (var W = S / M[p].length, y = 0; y < M[p].length; y++)
2208
2208
  this.idToNodeMap.get(M[p][y]).displacementY = W;
2209
2209
  }
2210
2210
  }
@@ -2243,43 +2243,43 @@ function vr() {
2243
2243
  });
2244
2244
  else {
2245
2245
  for (var p = 0; p < this.componentsOnHorizontal.length; p++) {
2246
- var x = this.componentsOnHorizontal[p];
2246
+ var D = this.componentsOnHorizontal[p];
2247
2247
  if (this.fixedComponentsOnHorizontal[p])
2248
- for (var y = 0; y < x.length; y++)
2249
- this.dummyToNodeForVerticalAlignment.has(x[y]) ? this.dummyToNodeForVerticalAlignment.get(x[y]).forEach(function(H) {
2248
+ for (var y = 0; y < D.length; y++)
2249
+ this.dummyToNodeForVerticalAlignment.has(D[y]) ? this.dummyToNodeForVerticalAlignment.get(D[y]).forEach(function(H) {
2250
2250
  n.idToNodeMap.get(H).displacementX = 0;
2251
- }) : this.idToNodeMap.get(x[y]).displacementX = 0;
2251
+ }) : this.idToNodeMap.get(D[y]).displacementX = 0;
2252
2252
  else {
2253
- for (var k = 0, V = 0, y = 0; y < x.length; y++)
2254
- if (this.dummyToNodeForVerticalAlignment.has(x[y])) {
2255
- var Y = this.dummyToNodeForVerticalAlignment.get(x[y]);
2256
- k += Y.length * this.idToNodeMap.get(Y[0]).displacementX, V += Y.length;
2253
+ for (var q = 0, V = 0, y = 0; y < D.length; y++)
2254
+ if (this.dummyToNodeForVerticalAlignment.has(D[y])) {
2255
+ var X = this.dummyToNodeForVerticalAlignment.get(D[y]);
2256
+ q += X.length * this.idToNodeMap.get(X[0]).displacementX, V += X.length;
2257
2257
  } else
2258
- k += this.idToNodeMap.get(x[y]).displacementX, V++;
2259
- for (var et = k / V, y = 0; y < x.length; y++)
2260
- this.dummyToNodeForVerticalAlignment.has(x[y]) ? this.dummyToNodeForVerticalAlignment.get(x[y]).forEach(function(H) {
2258
+ q += this.idToNodeMap.get(D[y]).displacementX, V++;
2259
+ for (var et = q / V, y = 0; y < D.length; y++)
2260
+ this.dummyToNodeForVerticalAlignment.has(D[y]) ? this.dummyToNodeForVerticalAlignment.get(D[y]).forEach(function(H) {
2261
2261
  n.idToNodeMap.get(H).displacementX = et;
2262
- }) : this.idToNodeMap.get(x[y]).displacementX = et;
2262
+ }) : this.idToNodeMap.get(D[y]).displacementX = et;
2263
2263
  }
2264
2264
  }
2265
2265
  for (var p = 0; p < this.componentsOnVertical.length; p++) {
2266
- var x = this.componentsOnVertical[p];
2266
+ var D = this.componentsOnVertical[p];
2267
2267
  if (this.fixedComponentsOnVertical[p])
2268
- for (var y = 0; y < x.length; y++)
2269
- this.dummyToNodeForHorizontalAlignment.has(x[y]) ? this.dummyToNodeForHorizontalAlignment.get(x[y]).forEach(function($) {
2268
+ for (var y = 0; y < D.length; y++)
2269
+ this.dummyToNodeForHorizontalAlignment.has(D[y]) ? this.dummyToNodeForHorizontalAlignment.get(D[y]).forEach(function($) {
2270
2270
  n.idToNodeMap.get($).displacementY = 0;
2271
- }) : this.idToNodeMap.get(x[y]).displacementY = 0;
2271
+ }) : this.idToNodeMap.get(D[y]).displacementY = 0;
2272
2272
  else {
2273
- for (var k = 0, V = 0, y = 0; y < x.length; y++)
2274
- if (this.dummyToNodeForHorizontalAlignment.has(x[y])) {
2275
- var Y = this.dummyToNodeForHorizontalAlignment.get(x[y]);
2276
- k += Y.length * this.idToNodeMap.get(Y[0]).displacementY, V += Y.length;
2273
+ for (var q = 0, V = 0, y = 0; y < D.length; y++)
2274
+ if (this.dummyToNodeForHorizontalAlignment.has(D[y])) {
2275
+ var X = this.dummyToNodeForHorizontalAlignment.get(D[y]);
2276
+ q += X.length * this.idToNodeMap.get(X[0]).displacementY, V += X.length;
2277
2277
  } else
2278
- k += this.idToNodeMap.get(x[y]).displacementY, V++;
2279
- for (var et = k / V, y = 0; y < x.length; y++)
2280
- this.dummyToNodeForHorizontalAlignment.has(x[y]) ? this.dummyToNodeForHorizontalAlignment.get(x[y]).forEach(function(q) {
2281
- n.idToNodeMap.get(q).displacementY = et;
2282
- }) : this.idToNodeMap.get(x[y]).displacementY = et;
2278
+ q += this.idToNodeMap.get(D[y]).displacementY, V++;
2279
+ for (var et = q / V, y = 0; y < D.length; y++)
2280
+ this.dummyToNodeForHorizontalAlignment.has(D[y]) ? this.dummyToNodeForHorizontalAlignment.get(D[y]).forEach(function(Q) {
2281
+ n.idToNodeMap.get(Q).displacementY = et;
2282
+ }) : this.idToNodeMap.get(D[y]).displacementY = et;
2283
2283
  }
2284
2284
  }
2285
2285
  }
@@ -2302,14 +2302,14 @@ function vr() {
2302
2302
  var M = [];
2303
2303
  if (M = M.concat(y.getEdgeListToNode(R)), M = M.concat(R.getEdgeListToNode(y)), !m.has(M[0])) {
2304
2304
  if (M.length > 1) {
2305
- var F;
2306
- for (F = 0; F < M.length; F++) {
2307
- var W = M[F];
2305
+ var S;
2306
+ for (S = 0; S < M.length; S++) {
2307
+ var W = M[S];
2308
2308
  W.getBendpoints().push(new v()), this.createDummyNodesForBendpoints(W);
2309
2309
  }
2310
2310
  }
2311
- M.forEach(function(x) {
2312
- m.add(x);
2311
+ M.forEach(function(D) {
2312
+ m.add(D);
2313
2313
  });
2314
2314
  }
2315
2315
  }
@@ -2318,41 +2318,41 @@ function vr() {
2318
2318
  break;
2319
2319
  }
2320
2320
  }, O.prototype.positionNodesRadially = function(n) {
2321
- for (var m = new d(0, 0), p = Math.ceil(Math.sqrt(n.length)), E = 0, y = 0, R = 0, M = new v(0, 0), F = 0; F < n.length; F++) {
2322
- F % p == 0 && (R = 0, y = E, F != 0 && (y += s.DEFAULT_COMPONENT_SEPERATION), E = 0);
2323
- var W = n[F], x = S.findCenterOfTree(W);
2324
- m.x = R, m.y = y, M = O.radialLayout(W, x, m), M.y > E && (E = Math.floor(M.y)), R = Math.floor(M.x + s.DEFAULT_COMPONENT_SEPERATION);
2321
+ for (var m = new d(0, 0), p = Math.ceil(Math.sqrt(n.length)), E = 0, y = 0, R = 0, M = new v(0, 0), S = 0; S < n.length; S++) {
2322
+ S % p == 0 && (R = 0, y = E, S != 0 && (y += s.DEFAULT_COMPONENT_SEPERATION), E = 0);
2323
+ var W = n[S], D = b.findCenterOfTree(W);
2324
+ m.x = R, m.y = y, M = O.radialLayout(W, D, m), M.y > E && (E = Math.floor(M.y)), R = Math.floor(M.x + s.DEFAULT_COMPONENT_SEPERATION);
2325
2325
  }
2326
2326
  this.transform(new v(T.WORLD_CENTER_X - M.x / 2, T.WORLD_CENTER_Y - M.y / 2));
2327
2327
  }, O.radialLayout = function(n, m, p) {
2328
2328
  var E = Math.max(this.maxDiagonalInTree(n), s.DEFAULT_RADIAL_SEPARATION);
2329
2329
  O.branchRadialLayout(m, null, 0, 359, 0, E);
2330
- var y = K.calculateBounds(n), R = new X();
2330
+ var y = k.calculateBounds(n), R = new Y();
2331
2331
  R.setDeviceOrgX(y.getMinX()), R.setDeviceOrgY(y.getMinY()), R.setWorldOrgX(p.x), R.setWorldOrgY(p.y);
2332
2332
  for (var M = 0; M < n.length; M++) {
2333
- var F = n[M];
2334
- F.transform(R);
2333
+ var S = n[M];
2334
+ S.transform(R);
2335
2335
  }
2336
2336
  var W = new v(y.getMaxX(), y.getMaxY());
2337
2337
  return R.inverseTransformPoint(W);
2338
2338
  }, O.branchRadialLayout = function(n, m, p, E, y, R) {
2339
2339
  var M = (E - p + 1) / 2;
2340
2340
  M < 0 && (M += 180);
2341
- var F = (M + p) % 360, W = F * G.TWO_PI / 360, x = y * Math.cos(W), k = y * Math.sin(W);
2342
- n.setCenter(x, k);
2341
+ var S = (M + p) % 360, W = S * G.TWO_PI / 360, D = y * Math.cos(W), q = y * Math.sin(W);
2342
+ n.setCenter(D, q);
2343
2343
  var V = [];
2344
2344
  V = V.concat(n.getEdges());
2345
- var Y = V.length;
2346
- m != null && Y--;
2345
+ var X = V.length;
2346
+ m != null && X--;
2347
2347
  for (var et = 0, z = V.length, w, H = n.getEdgesBetween(m); H.length > 1; ) {
2348
2348
  var $ = H[0];
2349
2349
  H.splice(0, 1);
2350
2350
  var _ = V.indexOf($);
2351
- _ >= 0 && V.splice(_, 1), z--, Y--;
2351
+ _ >= 0 && V.splice(_, 1), z--, X--;
2352
2352
  }
2353
2353
  m != null ? w = (V.indexOf(H[0]) + 1) % z : w = 0;
2354
- for (var ht = Math.abs(E - p) / Y, q = w; et != Y; q = ++q % z) {
2355
- var It = V[q].getOtherEnd(n);
2354
+ for (var ht = Math.abs(E - p) / X, Q = w; et != X; Q = ++Q % z) {
2355
+ var It = V[Q].getOtherEnd(n);
2356
2356
  if (It != m) {
2357
2357
  var Nt = (p + et * ht) % 360, vt = (Nt + ht) % 360;
2358
2358
  O.branchRadialLayout(It, n, Nt, vt, y + R, R), et++;
@@ -2374,20 +2374,20 @@ function vr() {
2374
2374
  this.getNodeDegreeWithChildren(R) === 0 && (M.id == null || !this.getToBeTiled(M)) && p.push(R);
2375
2375
  }
2376
2376
  for (var y = 0; y < p.length; y++) {
2377
- var R = p[y], F = R.getParent().id;
2378
- typeof m[F] > "u" && (m[F] = []), m[F] = m[F].concat(R);
2377
+ var R = p[y], S = R.getParent().id;
2378
+ typeof m[S] > "u" && (m[S] = []), m[S] = m[S].concat(R);
2379
2379
  }
2380
2380
  Object.keys(m).forEach(function(W) {
2381
2381
  if (m[W].length > 1) {
2382
- var x = "DummyCompound_" + W;
2383
- n.memberGroups[x] = m[W];
2384
- var k = m[W][0].getParent(), V = new t(n.graphManager);
2385
- V.id = x, V.paddingLeft = k.paddingLeft || 0, V.paddingRight = k.paddingRight || 0, V.paddingBottom = k.paddingBottom || 0, V.paddingTop = k.paddingTop || 0, n.idToDummyNode[x] = V;
2386
- var Y = n.getGraphManager().add(n.newGraph(), V), et = k.getChild();
2382
+ var D = "DummyCompound_" + W;
2383
+ n.memberGroups[D] = m[W];
2384
+ var q = m[W][0].getParent(), V = new t(n.graphManager);
2385
+ V.id = D, V.paddingLeft = q.paddingLeft || 0, V.paddingRight = q.paddingRight || 0, V.paddingBottom = q.paddingBottom || 0, V.paddingTop = q.paddingTop || 0, n.idToDummyNode[D] = V;
2386
+ var X = n.getGraphManager().add(n.newGraph(), V), et = q.getChild();
2387
2387
  et.add(V);
2388
2388
  for (var z = 0; z < m[W].length; z++) {
2389
2389
  var w = m[W][z];
2390
- et.remove(w), Y.add(w);
2390
+ et.remove(w), X.add(w);
2391
2391
  }
2392
2392
  }
2393
2393
  });
@@ -2414,8 +2414,8 @@ function vr() {
2414
2414
  }, O.prototype.repopulateZeroDegreeMembers = function() {
2415
2415
  var n = this, m = this.tiledZeroDegreePack;
2416
2416
  Object.keys(m).forEach(function(p) {
2417
- var E = n.idToDummyNode[p], y = E.paddingLeft, R = E.paddingTop, M = E.labelMarginLeft, F = E.labelMarginTop;
2418
- n.adjustLocations(m[p], E.rect.x, E.rect.y, y, R, M, F);
2417
+ var E = n.idToDummyNode[p], y = E.paddingLeft, R = E.paddingTop, M = E.labelMarginLeft, S = E.labelMarginTop;
2418
+ n.adjustLocations(m[p], E.rect.x, E.rect.y, y, R, M, S);
2419
2419
  });
2420
2420
  }, O.prototype.getToBeTiled = function(n) {
2421
2421
  var m = n.id;
@@ -2461,14 +2461,14 @@ function vr() {
2461
2461
  }
2462
2462
  }, O.prototype.adjustLocations = function(n, m, p, E, y, R, M) {
2463
2463
  m += E + R, p += y + M;
2464
- for (var F = m, W = 0; W < n.rows.length; W++) {
2465
- var x = n.rows[W];
2466
- m = F;
2467
- for (var k = 0, V = 0; V < x.length; V++) {
2468
- var Y = x[V];
2469
- Y.rect.x = m, Y.rect.y = p, m += Y.rect.width + n.horizontalPadding, Y.rect.height > k && (k = Y.rect.height);
2464
+ for (var S = m, W = 0; W < n.rows.length; W++) {
2465
+ var D = n.rows[W];
2466
+ m = S;
2467
+ for (var q = 0, V = 0; V < D.length; V++) {
2468
+ var X = D[V];
2469
+ X.rect.x = m, X.rect.y = p, m += X.rect.width + n.horizontalPadding, X.rect.height > q && (q = X.rect.height);
2470
2470
  }
2471
- p += k + n.verticalPadding;
2471
+ p += q + n.verticalPadding;
2472
2472
  }
2473
2473
  }, O.prototype.tileCompoundMembers = function(n, m) {
2474
2474
  var p = this;
@@ -2486,14 +2486,14 @@ function vr() {
2486
2486
  var m = n.width, p = n.height, E = m / p;
2487
2487
  return E < 1 && (E = 1 / E), E;
2488
2488
  }, O.prototype.calcIdealRowWidth = function(n, m) {
2489
- var p = s.TILING_PADDING_VERTICAL, E = s.TILING_PADDING_HORIZONTAL, y = n.length, R = 0, M = 0, F = 0;
2489
+ var p = s.TILING_PADDING_VERTICAL, E = s.TILING_PADDING_HORIZONTAL, y = n.length, R = 0, M = 0, S = 0;
2490
2490
  n.forEach(function(z) {
2491
- R += z.getWidth(), M += z.getHeight(), z.getWidth() > F && (F = z.getWidth());
2491
+ R += z.getWidth(), M += z.getHeight(), z.getWidth() > S && (S = z.getWidth());
2492
2492
  });
2493
- var W = R / y, x = M / y, k = Math.pow(p - E, 2) + 4 * (W + E) * (x + p) * y, V = (E - p + Math.sqrt(k)) / (2 * (W + E)), Y;
2494
- m ? (Y = Math.ceil(V), Y == V && Y++) : Y = Math.floor(V);
2495
- var et = Y * (W + E) - E;
2496
- return F > et && (et = F), et += E * 2, et;
2493
+ var W = R / y, D = M / y, q = Math.pow(p - E, 2) + 4 * (W + E) * (D + p) * y, V = (E - p + Math.sqrt(q)) / (2 * (W + E)), X;
2494
+ m ? (X = Math.ceil(V), X == V && X++) : X = Math.floor(V);
2495
+ var et = X * (W + E) - E;
2496
+ return S > et && (et = S), et += E * 2, et;
2497
2497
  }, O.prototype.tileNodesByFavoringDim = function(n, m, p) {
2498
2498
  var E = s.TILING_PADDING_VERTICAL, y = s.TILING_PADDING_HORIZONTAL, R = s.TILING_COMPARE_BY, M = {
2499
2499
  rows: [],
@@ -2508,29 +2508,29 @@ function vr() {
2508
2508
  centerY: 0
2509
2509
  };
2510
2510
  R && (M.idealRowWidth = this.calcIdealRowWidth(n, p));
2511
- var F = function(w) {
2511
+ var S = function(w) {
2512
2512
  return w.rect.width * w.rect.height;
2513
2513
  }, W = function(w, H) {
2514
- return F(H) - F(w);
2514
+ return S(H) - S(w);
2515
2515
  };
2516
2516
  n.sort(function(z, w) {
2517
2517
  var H = W;
2518
2518
  return M.idealRowWidth ? (H = R, H(z.id, w.id)) : H(z, w);
2519
2519
  });
2520
- for (var x = 0, k = 0, V = 0; V < n.length; V++) {
2521
- var Y = n[V];
2522
- x += Y.getCenterX(), k += Y.getCenterY();
2520
+ for (var D = 0, q = 0, V = 0; V < n.length; V++) {
2521
+ var X = n[V];
2522
+ D += X.getCenterX(), q += X.getCenterY();
2523
2523
  }
2524
- M.centerX = x / n.length, M.centerY = k / n.length;
2524
+ M.centerX = D / n.length, M.centerY = q / n.length;
2525
2525
  for (var V = 0; V < n.length; V++) {
2526
- var Y = n[V];
2526
+ var X = n[V];
2527
2527
  if (M.rows.length == 0)
2528
- this.insertNodeToRow(M, Y, 0, m);
2529
- else if (this.canAddHorizontal(M, Y.rect.width, Y.rect.height)) {
2528
+ this.insertNodeToRow(M, X, 0, m);
2529
+ else if (this.canAddHorizontal(M, X.rect.width, X.rect.height)) {
2530
2530
  var et = M.rows.length - 1;
2531
- M.idealRowWidth || (et = this.getShortestRowIndex(M)), this.insertNodeToRow(M, Y, et, m);
2531
+ M.idealRowWidth || (et = this.getShortestRowIndex(M)), this.insertNodeToRow(M, X, et, m);
2532
2532
  } else
2533
- this.insertNodeToRow(M, Y, M.rows.length, m);
2533
+ this.insertNodeToRow(M, X, M.rows.length, m);
2534
2534
  this.shiftToLastRow(M);
2535
2535
  }
2536
2536
  return M;
@@ -2542,10 +2542,10 @@ function vr() {
2542
2542
  }
2543
2543
  var M = n.rowWidth[p] + m.rect.width;
2544
2544
  n.rows[p].length > 0 && (M += n.horizontalPadding), n.rowWidth[p] = M, n.width < M && (n.width = M);
2545
- var F = m.rect.height;
2546
- p > 0 && (F += n.verticalPadding);
2545
+ var S = m.rect.height;
2546
+ p > 0 && (S += n.verticalPadding);
2547
2547
  var W = 0;
2548
- F > n.rowHeight[p] && (W = n.rowHeight[p], n.rowHeight[p] = F, W = n.rowHeight[p] - W), n.height += W, n.rows[p].push(m);
2548
+ S > n.rowHeight[p] && (W = n.rowHeight[p], n.rowHeight[p] = S, W = n.rowHeight[p] - W), n.height += W, n.rows[p].push(m);
2549
2549
  }, O.prototype.getShortestRowIndex = function(n) {
2550
2550
  for (var m = -1, p = Number.MAX_VALUE, E = 0; E < n.rows.length; E++)
2551
2551
  n.rowWidth[E] < p && (m = E, p = n.rowWidth[E]);
@@ -2564,23 +2564,23 @@ function vr() {
2564
2564
  return !0;
2565
2565
  var M = n.rowWidth[R];
2566
2566
  if (M + n.horizontalPadding + m <= n.width) return !0;
2567
- var F = 0;
2568
- n.rowHeight[R] < p && R > 0 && (F = p + n.verticalPadding - n.rowHeight[R]);
2567
+ var S = 0;
2568
+ n.rowHeight[R] < p && R > 0 && (S = p + n.verticalPadding - n.rowHeight[R]);
2569
2569
  var W;
2570
- n.width - M >= m + n.horizontalPadding ? W = (n.height + F) / (M + m + n.horizontalPadding) : W = (n.height + F) / n.width, F = p + n.verticalPadding;
2571
- var x;
2572
- return n.width < m ? x = (n.height + F) / m : x = (n.height + F) / n.width, x < 1 && (x = 1 / x), W < 1 && (W = 1 / W), W < x;
2570
+ n.width - M >= m + n.horizontalPadding ? W = (n.height + S) / (M + m + n.horizontalPadding) : W = (n.height + S) / n.width, S = p + n.verticalPadding;
2571
+ var D;
2572
+ return n.width < m ? D = (n.height + S) / m : D = (n.height + S) / n.width, D < 1 && (D = 1 / D), W < 1 && (W = 1 / W), W < D;
2573
2573
  }, O.prototype.shiftToLastRow = function(n) {
2574
2574
  var m = this.getLongestRowIndex(n), p = n.rowWidth.length - 1, E = n.rows[m], y = E[E.length - 1], R = y.width + n.horizontalPadding;
2575
2575
  if (n.width - n.rowWidth[p] > R && m != p) {
2576
2576
  E.splice(-1, 1), n.rows[p].push(y), n.rowWidth[m] = n.rowWidth[m] - R, n.rowWidth[p] = n.rowWidth[p] + R, n.width = n.rowWidth[instance.getLongestRowIndex(n)];
2577
- for (var M = Number.MIN_VALUE, F = 0; F < E.length; F++)
2578
- E[F].height > M && (M = E[F].height);
2577
+ for (var M = Number.MIN_VALUE, S = 0; S < E.length; S++)
2578
+ E[S].height > M && (M = E[S].height);
2579
2579
  m > 0 && (M += n.verticalPadding);
2580
2580
  var W = n.rowHeight[m] + n.rowHeight[p];
2581
2581
  n.rowHeight[m] = M, n.rowHeight[p] < y.height + n.verticalPadding && (n.rowHeight[p] = y.height + n.verticalPadding);
2582
- var x = n.rowHeight[m] + n.rowHeight[p];
2583
- n.height += x - W, this.shiftToLastRow(n);
2582
+ var D = n.rowHeight[m] + n.rowHeight[p];
2583
+ n.height += D - W, this.shiftToLastRow(n);
2584
2584
  }
2585
2585
  }, O.prototype.tilingPreLayout = function() {
2586
2586
  s.TILE && (this.groupZeroDegreeMembers(), this.clearCompounds(), this.clearZeroDegreeMembers());
@@ -2593,15 +2593,15 @@ function vr() {
2593
2593
  for (var R = 0; R < E.length; R++)
2594
2594
  if (p = E[R], p.getEdges().length == 1 && !p.getEdges()[0].isInterGraph && p.getChild() == null) {
2595
2595
  if (s.PURE_INCREMENTAL) {
2596
- var M = p.getEdges()[0].getOtherEnd(p), F = new L(p.getCenterX() - M.getCenterX(), p.getCenterY() - M.getCenterY());
2597
- y.push([p, p.getEdges()[0], p.getOwner(), F]);
2596
+ var M = p.getEdges()[0].getOtherEnd(p), S = new L(p.getCenterX() - M.getCenterX(), p.getCenterY() - M.getCenterY());
2597
+ y.push([p, p.getEdges()[0], p.getOwner(), S]);
2598
2598
  } else
2599
2599
  y.push([p, p.getEdges()[0], p.getOwner()]);
2600
2600
  m = !0;
2601
2601
  }
2602
2602
  if (m == !0) {
2603
- for (var W = [], x = 0; x < y.length; x++)
2604
- y[x][0].getEdges().length == 1 && (W.push(y[x]), y[x][0].getOwner().remove(y[x][0]));
2603
+ for (var W = [], D = 0; D < y.length; D++)
2604
+ y[D][0].getEdges().length == 1 && (W.push(y[D]), y[D][0].getOwner().remove(y[D][0]));
2605
2605
  n.push(W), this.graphManager.resetAllNodes(), this.graphManager.resetAllEdges();
2606
2606
  }
2607
2607
  }
@@ -2615,32 +2615,32 @@ function vr() {
2615
2615
  if (E == n[1].source ? p = n[1].target : p = n[1].source, s.PURE_INCREMENTAL)
2616
2616
  E.setCenter(p.getCenterX() + n[3].getWidth(), p.getCenterY() + n[3].getHeight());
2617
2617
  else {
2618
- var y = p.startX, R = p.finishX, M = p.startY, F = p.finishY, W = 0, x = 0, k = 0, V = 0, Y = [W, k, x, V];
2618
+ var y = p.startX, R = p.finishX, M = p.startY, S = p.finishY, W = 0, D = 0, q = 0, V = 0, X = [W, q, D, V];
2619
2619
  if (M > 0)
2620
2620
  for (var et = y; et <= R; et++)
2621
- Y[0] += this.grid[et][M - 1].length + this.grid[et][M].length - 1;
2621
+ X[0] += this.grid[et][M - 1].length + this.grid[et][M].length - 1;
2622
2622
  if (R < this.grid.length - 1)
2623
- for (var et = M; et <= F; et++)
2624
- Y[1] += this.grid[R + 1][et].length + this.grid[R][et].length - 1;
2625
- if (F < this.grid[0].length - 1)
2623
+ for (var et = M; et <= S; et++)
2624
+ X[1] += this.grid[R + 1][et].length + this.grid[R][et].length - 1;
2625
+ if (S < this.grid[0].length - 1)
2626
2626
  for (var et = y; et <= R; et++)
2627
- Y[2] += this.grid[et][F + 1].length + this.grid[et][F].length - 1;
2627
+ X[2] += this.grid[et][S + 1].length + this.grid[et][S].length - 1;
2628
2628
  if (y > 0)
2629
- for (var et = M; et <= F; et++)
2630
- Y[3] += this.grid[y - 1][et].length + this.grid[y][et].length - 1;
2631
- for (var z = C.MAX_VALUE, w, H, $ = 0; $ < Y.length; $++)
2632
- Y[$] < z ? (z = Y[$], w = 1, H = $) : Y[$] == z && w++;
2629
+ for (var et = M; et <= S; et++)
2630
+ X[3] += this.grid[y - 1][et].length + this.grid[y][et].length - 1;
2631
+ for (var z = C.MAX_VALUE, w, H, $ = 0; $ < X.length; $++)
2632
+ X[$] < z ? (z = X[$], w = 1, H = $) : X[$] == z && w++;
2633
2633
  if (w == 3 && z == 0)
2634
- Y[0] == 0 && Y[1] == 0 && Y[2] == 0 ? m = 1 : Y[0] == 0 && Y[1] == 0 && Y[3] == 0 ? m = 0 : Y[0] == 0 && Y[2] == 0 && Y[3] == 0 ? m = 3 : Y[1] == 0 && Y[2] == 0 && Y[3] == 0 && (m = 2);
2634
+ X[0] == 0 && X[1] == 0 && X[2] == 0 ? m = 1 : X[0] == 0 && X[1] == 0 && X[3] == 0 ? m = 0 : X[0] == 0 && X[2] == 0 && X[3] == 0 ? m = 3 : X[1] == 0 && X[2] == 0 && X[3] == 0 && (m = 2);
2635
2635
  else if (w == 2 && z == 0) {
2636
2636
  var _ = Math.floor(Math.random() * 2);
2637
- Y[0] == 0 && Y[1] == 0 ? _ == 0 ? m = 0 : m = 1 : Y[0] == 0 && Y[2] == 0 ? _ == 0 ? m = 0 : m = 2 : Y[0] == 0 && Y[3] == 0 ? _ == 0 ? m = 0 : m = 3 : Y[1] == 0 && Y[2] == 0 ? _ == 0 ? m = 1 : m = 2 : Y[1] == 0 && Y[3] == 0 ? _ == 0 ? m = 1 : m = 3 : _ == 0 ? m = 2 : m = 3;
2637
+ X[0] == 0 && X[1] == 0 ? _ == 0 ? m = 0 : m = 1 : X[0] == 0 && X[2] == 0 ? _ == 0 ? m = 0 : m = 2 : X[0] == 0 && X[3] == 0 ? _ == 0 ? m = 0 : m = 3 : X[1] == 0 && X[2] == 0 ? _ == 0 ? m = 1 : m = 2 : X[1] == 0 && X[3] == 0 ? _ == 0 ? m = 1 : m = 3 : _ == 0 ? m = 2 : m = 3;
2638
2638
  } else if (w == 4 && z == 0) {
2639
2639
  var _ = Math.floor(Math.random() * 4);
2640
2640
  m = _;
2641
2641
  } else
2642
2642
  m = H;
2643
- m == 0 ? E.setCenter(p.getCenterX(), p.getCenterY() - p.getHeight() / 2 - l.DEFAULT_EDGE_LENGTH - E.getHeight() / 2) : m == 1 ? E.setCenter(p.getCenterX() + p.getWidth() / 2 + l.DEFAULT_EDGE_LENGTH + E.getWidth() / 2, p.getCenterY()) : m == 2 ? E.setCenter(p.getCenterX(), p.getCenterY() + p.getHeight() / 2 + l.DEFAULT_EDGE_LENGTH + E.getHeight() / 2) : E.setCenter(p.getCenterX() - p.getWidth() / 2 - l.DEFAULT_EDGE_LENGTH - E.getWidth() / 2, p.getCenterY());
2643
+ m == 0 ? E.setCenter(p.getCenterX(), p.getCenterY() - p.getHeight() / 2 - f.DEFAULT_EDGE_LENGTH - E.getHeight() / 2) : m == 1 ? E.setCenter(p.getCenterX() + p.getWidth() / 2 + f.DEFAULT_EDGE_LENGTH + E.getWidth() / 2, p.getCenterY()) : m == 2 ? E.setCenter(p.getCenterX(), p.getCenterY() + p.getHeight() / 2 + f.DEFAULT_EDGE_LENGTH + E.getHeight() / 2) : E.setCenter(p.getCenterX() - p.getWidth() / 2 - f.DEFAULT_EDGE_LENGTH - E.getWidth() / 2, p.getCenterY());
2644
2644
  }
2645
2645
  }, a.exports = O;
2646
2646
  })
@@ -2648,20 +2648,20 @@ function vr() {
2648
2648
  /***/
2649
2649
  991: (
2650
2650
  /***/
2651
- ((a, r, e) => {
2652
- var f = e(551).FDLayoutNode, i = e(551).IMath;
2653
- function g(o, s, c, l) {
2654
- f.call(this, o, s, c, l);
2651
+ ((a, e, r) => {
2652
+ var l = r(551).FDLayoutNode, i = r(551).IMath;
2653
+ function g(o, s, c, f) {
2654
+ l.call(this, o, s, c, f);
2655
2655
  }
2656
- g.prototype = Object.create(f.prototype);
2657
- for (var t in f)
2658
- g[t] = f[t];
2656
+ g.prototype = Object.create(l.prototype);
2657
+ for (var t in l)
2658
+ g[t] = l[t];
2659
2659
  g.prototype.calculateDisplacement = function() {
2660
2660
  var o = this.graphManager.getLayout();
2661
2661
  this.getChild() != null && this.fixedNodeWeight ? (this.displacementX += o.coolingFactor * (this.springForceX + this.repulsionForceX + this.gravitationForceX) / this.fixedNodeWeight, this.displacementY += o.coolingFactor * (this.springForceY + this.repulsionForceY + this.gravitationForceY) / this.fixedNodeWeight) : (this.displacementX += o.coolingFactor * (this.springForceX + this.repulsionForceX + this.gravitationForceX) / this.noOfChildren, this.displacementY += o.coolingFactor * (this.springForceY + this.repulsionForceY + this.gravitationForceY) / this.noOfChildren), Math.abs(this.displacementX) > o.coolingFactor * o.maxNodeDisplacement && (this.displacementX = o.coolingFactor * o.maxNodeDisplacement * i.sign(this.displacementX)), Math.abs(this.displacementY) > o.coolingFactor * o.maxNodeDisplacement && (this.displacementY = o.coolingFactor * o.maxNodeDisplacement * i.sign(this.displacementY)), this.child && this.child.getNodes().length > 0 && this.propogateDisplacementToChildren(this.displacementX, this.displacementY);
2662
2662
  }, g.prototype.propogateDisplacementToChildren = function(o, s) {
2663
- for (var c = this.getChild().getNodes(), l, T = 0; T < c.length; T++)
2664
- l = c[T], l.getChild() == null ? (l.displacementX += o, l.displacementY += s) : l.propogateDisplacementToChildren(o, s);
2663
+ for (var c = this.getChild().getNodes(), f, T = 0; T < c.length; T++)
2664
+ f = c[T], f.getChild() == null ? (f.displacementX += o, f.displacementY += s) : f.propogateDisplacementToChildren(o, s);
2665
2665
  }, g.prototype.move = function() {
2666
2666
  var o = this.graphManager.getLayout();
2667
2667
  (this.child == null || this.child.getNodes().length == 0) && (this.moveBy(this.displacementX, this.displacementY), o.totalDisplacement += Math.abs(this.displacementX) + Math.abs(this.displacementY)), this.springForceX = 0, this.springForceY = 0, this.repulsionForceX = 0, this.repulsionForceY = 0, this.gravitationForceX = 0, this.gravitationForceY = 0, this.displacementX = 0, this.displacementY = 0;
@@ -2685,31 +2685,31 @@ function vr() {
2685
2685
  /***/
2686
2686
  902: (
2687
2687
  /***/
2688
- ((a, r, e) => {
2689
- function f(c) {
2688
+ ((a, e, r) => {
2689
+ function l(c) {
2690
2690
  if (Array.isArray(c)) {
2691
- for (var l = 0, T = Array(c.length); l < c.length; l++)
2692
- T[l] = c[l];
2691
+ for (var f = 0, T = Array(c.length); f < c.length; f++)
2692
+ T[f] = c[f];
2693
2693
  return T;
2694
2694
  } else
2695
2695
  return Array.from(c);
2696
2696
  }
2697
- var i = e(806), g = e(551).LinkedList, t = e(551).Matrix, o = e(551).SVD;
2697
+ var i = r(806), g = r(551).LinkedList, t = r(551).Matrix, o = r(551).SVD;
2698
2698
  function s() {
2699
2699
  }
2700
2700
  s.handleConstraints = function(c) {
2701
- var l = {};
2702
- l.fixedNodeConstraint = c.constraints.fixedNodeConstraint, l.alignmentConstraint = c.constraints.alignmentConstraint, l.relativePlacementConstraint = c.constraints.relativePlacementConstraint;
2703
- for (var T = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), v = [], L = [], S = c.getAllNodes(), C = 0, G = 0; G < S.length; G++) {
2704
- var K = S[G];
2705
- K.getChild() == null && (d.set(K.id, C++), v.push(K.getCenterX()), L.push(K.getCenterY()), T.set(K.id, K));
2701
+ var f = {};
2702
+ f.fixedNodeConstraint = c.constraints.fixedNodeConstraint, f.alignmentConstraint = c.constraints.alignmentConstraint, f.relativePlacementConstraint = c.constraints.relativePlacementConstraint;
2703
+ for (var T = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), v = [], L = [], b = c.getAllNodes(), C = 0, G = 0; G < b.length; G++) {
2704
+ var k = b[G];
2705
+ k.getChild() == null && (d.set(k.id, C++), v.push(k.getCenterX()), L.push(k.getCenterY()), T.set(k.id, k));
2706
2706
  }
2707
- l.relativePlacementConstraint && l.relativePlacementConstraint.forEach(function(b) {
2708
- !b.gap && b.gap != 0 && (b.left ? b.gap = i.DEFAULT_EDGE_LENGTH + T.get(b.left).getWidth() / 2 + T.get(b.right).getWidth() / 2 : b.gap = i.DEFAULT_EDGE_LENGTH + T.get(b.top).getHeight() / 2 + T.get(b.bottom).getHeight() / 2);
2707
+ f.relativePlacementConstraint && f.relativePlacementConstraint.forEach(function(F) {
2708
+ !F.gap && F.gap != 0 && (F.left ? F.gap = i.DEFAULT_EDGE_LENGTH + T.get(F.left).getWidth() / 2 + T.get(F.right).getWidth() / 2 : F.gap = i.DEFAULT_EDGE_LENGTH + T.get(F.top).getHeight() / 2 + T.get(F.bottom).getHeight() / 2);
2709
2709
  });
2710
- var X = function(U, B) {
2710
+ var Y = function(U, B) {
2711
2711
  return { x: U.x - B.x, y: U.y - B.y };
2712
- }, Q = function(U) {
2712
+ }, K = function(U) {
2713
2713
  var B = 0, J = 0;
2714
2714
  return U.forEach(function(Z) {
2715
2715
  B += v[d.get(Z)], J += L[d.get(Z)];
@@ -2810,7 +2810,7 @@ function vr() {
2810
2810
  if (!Lt) {
2811
2811
  var bt = !1, zt = void 0;
2812
2812
  xt.forEach(function(St, Zt) {
2813
- St.has([].concat(f(lt))[0]) && (bt = !0, zt = Zt);
2813
+ St.has([].concat(l(lt))[0]) && (bt = !0, zt = Zt);
2814
2814
  }), bt ? lt.forEach(function(St) {
2815
2815
  xt[zt].add(St);
2816
2816
  }) : xt.push(new Set(lt));
@@ -2854,7 +2854,7 @@ function vr() {
2854
2854
  });
2855
2855
  }
2856
2856
  return tt;
2857
- }, rt = function(U) {
2857
+ }, it = function(U) {
2858
2858
  var B = 0, J = 0, Z = 0, at = 0;
2859
2859
  if (U.forEach(function(j) {
2860
2860
  j.left ? v[d.get(j.left)] - v[d.get(j.right)] >= 0 ? B++ : J++ : L[d.get(j.top)] - L[d.get(j.bottom)] >= 0 ? Z++ : at++;
@@ -2901,143 +2901,143 @@ function vr() {
2901
2901
  B.get(at.id).push({ id: Z, gap: at.gap, direction: at.direction });
2902
2902
  });
2903
2903
  }), B;
2904
- }, E = [], y = [], R = !1, M = !1, F = /* @__PURE__ */ new Set(), W = /* @__PURE__ */ new Map(), x = /* @__PURE__ */ new Map(), k = [];
2905
- if (l.fixedNodeConstraint && l.fixedNodeConstraint.forEach(function(b) {
2906
- F.add(b.nodeId);
2907
- }), l.relativePlacementConstraint && (l.relativePlacementConstraint.forEach(function(b) {
2908
- b.left ? (W.has(b.left) ? W.get(b.left).push({ id: b.right, gap: b.gap, direction: "horizontal" }) : W.set(b.left, [{ id: b.right, gap: b.gap, direction: "horizontal" }]), W.has(b.right) || W.set(b.right, [])) : (W.has(b.top) ? W.get(b.top).push({ id: b.bottom, gap: b.gap, direction: "vertical" }) : W.set(b.top, [{ id: b.bottom, gap: b.gap, direction: "vertical" }]), W.has(b.bottom) || W.set(b.bottom, []));
2909
- }), x = m(W), k = n(x)), i.TRANSFORM_ON_CONSTRAINT_HANDLING) {
2910
- if (l.fixedNodeConstraint && l.fixedNodeConstraint.length > 1)
2911
- l.fixedNodeConstraint.forEach(function(b, U) {
2912
- E[U] = [b.position.x, b.position.y], y[U] = [v[d.get(b.nodeId)], L[d.get(b.nodeId)]];
2904
+ }, E = [], y = [], R = !1, M = !1, S = /* @__PURE__ */ new Set(), W = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map(), q = [];
2905
+ if (f.fixedNodeConstraint && f.fixedNodeConstraint.forEach(function(F) {
2906
+ S.add(F.nodeId);
2907
+ }), f.relativePlacementConstraint && (f.relativePlacementConstraint.forEach(function(F) {
2908
+ F.left ? (W.has(F.left) ? W.get(F.left).push({ id: F.right, gap: F.gap, direction: "horizontal" }) : W.set(F.left, [{ id: F.right, gap: F.gap, direction: "horizontal" }]), W.has(F.right) || W.set(F.right, [])) : (W.has(F.top) ? W.get(F.top).push({ id: F.bottom, gap: F.gap, direction: "vertical" }) : W.set(F.top, [{ id: F.bottom, gap: F.gap, direction: "vertical" }]), W.has(F.bottom) || W.set(F.bottom, []));
2909
+ }), D = m(W), q = n(D)), i.TRANSFORM_ON_CONSTRAINT_HANDLING) {
2910
+ if (f.fixedNodeConstraint && f.fixedNodeConstraint.length > 1)
2911
+ f.fixedNodeConstraint.forEach(function(F, U) {
2912
+ E[U] = [F.position.x, F.position.y], y[U] = [v[d.get(F.nodeId)], L[d.get(F.nodeId)]];
2913
2913
  }), R = !0;
2914
- else if (l.alignmentConstraint)
2914
+ else if (f.alignmentConstraint)
2915
2915
  (function() {
2916
- var b = 0;
2917
- if (l.alignmentConstraint.vertical) {
2918
- for (var U = l.alignmentConstraint.vertical, B = function(tt) {
2916
+ var F = 0;
2917
+ if (f.alignmentConstraint.vertical) {
2918
+ for (var U = f.alignmentConstraint.vertical, B = function(tt) {
2919
2919
  var j = /* @__PURE__ */ new Set();
2920
2920
  U[tt].forEach(function(pt) {
2921
2921
  j.add(pt);
2922
2922
  });
2923
- var ut = new Set([].concat(f(j)).filter(function(pt) {
2924
- return F.has(pt);
2923
+ var ut = new Set([].concat(l(j)).filter(function(pt) {
2924
+ return S.has(pt);
2925
2925
  })), Mt = void 0;
2926
- ut.size > 0 ? Mt = v[d.get(ut.values().next().value)] : Mt = Q(j).x, U[tt].forEach(function(pt) {
2927
- E[b] = [Mt, L[d.get(pt)]], y[b] = [v[d.get(pt)], L[d.get(pt)]], b++;
2926
+ ut.size > 0 ? Mt = v[d.get(ut.values().next().value)] : Mt = K(j).x, U[tt].forEach(function(pt) {
2927
+ E[F] = [Mt, L[d.get(pt)]], y[F] = [v[d.get(pt)], L[d.get(pt)]], F++;
2928
2928
  });
2929
2929
  }, J = 0; J < U.length; J++)
2930
2930
  B(J);
2931
2931
  R = !0;
2932
2932
  }
2933
- if (l.alignmentConstraint.horizontal) {
2934
- for (var Z = l.alignmentConstraint.horizontal, at = function(tt) {
2933
+ if (f.alignmentConstraint.horizontal) {
2934
+ for (var Z = f.alignmentConstraint.horizontal, at = function(tt) {
2935
2935
  var j = /* @__PURE__ */ new Set();
2936
2936
  Z[tt].forEach(function(pt) {
2937
2937
  j.add(pt);
2938
2938
  });
2939
- var ut = new Set([].concat(f(j)).filter(function(pt) {
2940
- return F.has(pt);
2939
+ var ut = new Set([].concat(l(j)).filter(function(pt) {
2940
+ return S.has(pt);
2941
2941
  })), Mt = void 0;
2942
- ut.size > 0 ? Mt = v[d.get(ut.values().next().value)] : Mt = Q(j).y, Z[tt].forEach(function(pt) {
2943
- E[b] = [v[d.get(pt)], Mt], y[b] = [v[d.get(pt)], L[d.get(pt)]], b++;
2942
+ ut.size > 0 ? Mt = v[d.get(ut.values().next().value)] : Mt = K(j).y, Z[tt].forEach(function(pt) {
2943
+ E[F] = [v[d.get(pt)], Mt], y[F] = [v[d.get(pt)], L[d.get(pt)]], F++;
2944
2944
  });
2945
2945
  }, ct = 0; ct < Z.length; ct++)
2946
2946
  at(ct);
2947
2947
  R = !0;
2948
2948
  }
2949
- l.relativePlacementConstraint && (M = !0);
2949
+ f.relativePlacementConstraint && (M = !0);
2950
2950
  })();
2951
- else if (l.relativePlacementConstraint) {
2952
- for (var V = 0, Y = 0, et = 0; et < k.length; et++)
2953
- k[et].length > V && (V = k[et].length, Y = et);
2954
- if (V < x.size / 2)
2955
- rt(l.relativePlacementConstraint), R = !1, M = !1;
2951
+ else if (f.relativePlacementConstraint) {
2952
+ for (var V = 0, X = 0, et = 0; et < q.length; et++)
2953
+ q[et].length > V && (V = q[et].length, X = et);
2954
+ if (V < D.size / 2)
2955
+ it(f.relativePlacementConstraint), R = !1, M = !1;
2956
2956
  else {
2957
2957
  var z = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map(), H = [];
2958
- k[Y].forEach(function(b) {
2959
- W.get(b).forEach(function(U) {
2960
- U.direction == "horizontal" ? (z.has(b) ? z.get(b).push(U) : z.set(b, [U]), z.has(U.id) || z.set(U.id, []), H.push({ left: b, right: U.id })) : (w.has(b) ? w.get(b).push(U) : w.set(b, [U]), w.has(U.id) || w.set(U.id, []), H.push({ top: b, bottom: U.id }));
2958
+ q[X].forEach(function(F) {
2959
+ W.get(F).forEach(function(U) {
2960
+ U.direction == "horizontal" ? (z.has(F) ? z.get(F).push(U) : z.set(F, [U]), z.has(U.id) || z.set(U.id, []), H.push({ left: F, right: U.id })) : (w.has(F) ? w.get(F).push(U) : w.set(F, [U]), w.has(U.id) || w.set(U.id, []), H.push({ top: F, bottom: U.id }));
2961
2961
  });
2962
- }), rt(H), M = !1;
2962
+ }), it(H), M = !1;
2963
2963
  var $ = O(z, "horizontal"), _ = O(w, "vertical");
2964
- k[Y].forEach(function(b, U) {
2965
- y[U] = [v[d.get(b)], L[d.get(b)]], E[U] = [], $.has(b) ? E[U][0] = $.get(b) : E[U][0] = v[d.get(b)], _.has(b) ? E[U][1] = _.get(b) : E[U][1] = L[d.get(b)];
2964
+ q[X].forEach(function(F, U) {
2965
+ y[U] = [v[d.get(F)], L[d.get(F)]], E[U] = [], $.has(F) ? E[U][0] = $.get(F) : E[U][0] = v[d.get(F)], _.has(F) ? E[U][1] = _.get(F) : E[U][1] = L[d.get(F)];
2966
2966
  }), R = !0;
2967
2967
  }
2968
2968
  }
2969
2969
  if (R) {
2970
- for (var ht = void 0, q = t.transpose(E), It = t.transpose(y), Nt = 0; Nt < q.length; Nt++)
2971
- q[Nt] = t.multGamma(q[Nt]), It[Nt] = t.multGamma(It[Nt]);
2972
- var vt = t.multMat(q, t.transpose(It)), it = o.svd(vt);
2973
- ht = t.multMat(it.V, t.transpose(it.U));
2970
+ for (var ht = void 0, Q = t.transpose(E), It = t.transpose(y), Nt = 0; Nt < Q.length; Nt++)
2971
+ Q[Nt] = t.multGamma(Q[Nt]), It[Nt] = t.multGamma(It[Nt]);
2972
+ var vt = t.multMat(Q, t.transpose(It)), rt = o.svd(vt);
2973
+ ht = t.multMat(rt.V, t.transpose(rt.U));
2974
2974
  for (var gt = 0; gt < d.size; gt++) {
2975
2975
  var mt = [v[gt], L[gt]], At = [ht[0][0], ht[1][0]], Ot = [ht[0][1], ht[1][1]];
2976
2976
  v[gt] = t.dotProduct(mt, At), L[gt] = t.dotProduct(mt, Ot);
2977
2977
  }
2978
- M && rt(l.relativePlacementConstraint);
2978
+ M && it(f.relativePlacementConstraint);
2979
2979
  }
2980
2980
  }
2981
2981
  if (i.ENFORCE_CONSTRAINTS) {
2982
- if (l.fixedNodeConstraint && l.fixedNodeConstraint.length > 0) {
2982
+ if (f.fixedNodeConstraint && f.fixedNodeConstraint.length > 0) {
2983
2983
  var Et = { x: 0, y: 0 };
2984
- l.fixedNodeConstraint.forEach(function(b, U) {
2985
- var B = { x: v[d.get(b.nodeId)], y: L[d.get(b.nodeId)] }, J = b.position, Z = X(J, B);
2984
+ f.fixedNodeConstraint.forEach(function(F, U) {
2985
+ var B = { x: v[d.get(F.nodeId)], y: L[d.get(F.nodeId)] }, J = F.position, Z = Y(J, B);
2986
2986
  Et.x += Z.x, Et.y += Z.y;
2987
- }), Et.x /= l.fixedNodeConstraint.length, Et.y /= l.fixedNodeConstraint.length, v.forEach(function(b, U) {
2987
+ }), Et.x /= f.fixedNodeConstraint.length, Et.y /= f.fixedNodeConstraint.length, v.forEach(function(F, U) {
2988
2988
  v[U] += Et.x;
2989
- }), L.forEach(function(b, U) {
2989
+ }), L.forEach(function(F, U) {
2990
2990
  L[U] += Et.y;
2991
- }), l.fixedNodeConstraint.forEach(function(b) {
2992
- v[d.get(b.nodeId)] = b.position.x, L[d.get(b.nodeId)] = b.position.y;
2991
+ }), f.fixedNodeConstraint.forEach(function(F) {
2992
+ v[d.get(F.nodeId)] = F.position.x, L[d.get(F.nodeId)] = F.position.y;
2993
2993
  });
2994
2994
  }
2995
- if (l.alignmentConstraint) {
2996
- if (l.alignmentConstraint.vertical)
2997
- for (var Dt = l.alignmentConstraint.vertical, Rt = function(U) {
2995
+ if (f.alignmentConstraint) {
2996
+ if (f.alignmentConstraint.vertical)
2997
+ for (var Dt = f.alignmentConstraint.vertical, Rt = function(U) {
2998
2998
  var B = /* @__PURE__ */ new Set();
2999
2999
  Dt[U].forEach(function(at) {
3000
3000
  B.add(at);
3001
3001
  });
3002
- var J = new Set([].concat(f(B)).filter(function(at) {
3003
- return F.has(at);
3002
+ var J = new Set([].concat(l(B)).filter(function(at) {
3003
+ return S.has(at);
3004
3004
  })), Z = void 0;
3005
- J.size > 0 ? Z = v[d.get(J.values().next().value)] : Z = Q(B).x, B.forEach(function(at) {
3006
- F.has(at) || (v[d.get(at)] = Z);
3005
+ J.size > 0 ? Z = v[d.get(J.values().next().value)] : Z = K(B).x, B.forEach(function(at) {
3006
+ S.has(at) || (v[d.get(at)] = Z);
3007
3007
  });
3008
3008
  }, Ht = 0; Ht < Dt.length; Ht++)
3009
3009
  Rt(Ht);
3010
- if (l.alignmentConstraint.horizontal)
3011
- for (var Ut = l.alignmentConstraint.horizontal, Pt = function(U) {
3010
+ if (f.alignmentConstraint.horizontal)
3011
+ for (var Ut = f.alignmentConstraint.horizontal, Pt = function(U) {
3012
3012
  var B = /* @__PURE__ */ new Set();
3013
3013
  Ut[U].forEach(function(at) {
3014
3014
  B.add(at);
3015
3015
  });
3016
- var J = new Set([].concat(f(B)).filter(function(at) {
3017
- return F.has(at);
3016
+ var J = new Set([].concat(l(B)).filter(function(at) {
3017
+ return S.has(at);
3018
3018
  })), Z = void 0;
3019
- J.size > 0 ? Z = L[d.get(J.values().next().value)] : Z = Q(B).y, B.forEach(function(at) {
3020
- F.has(at) || (L[d.get(at)] = Z);
3019
+ J.size > 0 ? Z = L[d.get(J.values().next().value)] : Z = K(B).y, B.forEach(function(at) {
3020
+ S.has(at) || (L[d.get(at)] = Z);
3021
3021
  });
3022
3022
  }, Ft = 0; Ft < Ut.length; Ft++)
3023
3023
  Pt(Ft);
3024
3024
  }
3025
- l.relativePlacementConstraint && (function() {
3026
- var b = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map(), J = /* @__PURE__ */ new Map(), Z = /* @__PURE__ */ new Map(), at = /* @__PURE__ */ new Map(), ct = /* @__PURE__ */ new Set(), nt = /* @__PURE__ */ new Set();
3027
- if (F.forEach(function(Gt) {
3025
+ f.relativePlacementConstraint && (function() {
3026
+ var F = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map(), J = /* @__PURE__ */ new Map(), Z = /* @__PURE__ */ new Map(), at = /* @__PURE__ */ new Map(), ct = /* @__PURE__ */ new Set(), nt = /* @__PURE__ */ new Set();
3027
+ if (S.forEach(function(Gt) {
3028
3028
  ct.add(Gt), nt.add(Gt);
3029
- }), l.alignmentConstraint) {
3030
- if (l.alignmentConstraint.vertical)
3031
- for (var tt = l.alignmentConstraint.vertical, j = function(yt) {
3029
+ }), f.alignmentConstraint) {
3030
+ if (f.alignmentConstraint.vertical)
3031
+ for (var tt = f.alignmentConstraint.vertical, j = function(yt) {
3032
3032
  B.set("dummy" + yt, []), tt[yt].forEach(function(wt) {
3033
- b.set(wt, "dummy" + yt), B.get("dummy" + yt).push(wt), F.has(wt) && ct.add("dummy" + yt);
3033
+ F.set(wt, "dummy" + yt), B.get("dummy" + yt).push(wt), S.has(wt) && ct.add("dummy" + yt);
3034
3034
  }), Z.set("dummy" + yt, v[d.get(tt[yt][0])]);
3035
3035
  }, ut = 0; ut < tt.length; ut++)
3036
3036
  j(ut);
3037
- if (l.alignmentConstraint.horizontal)
3038
- for (var Mt = l.alignmentConstraint.horizontal, pt = function(yt) {
3037
+ if (f.alignmentConstraint.horizontal)
3038
+ for (var Mt = f.alignmentConstraint.horizontal, pt = function(yt) {
3039
3039
  J.set("dummy" + yt, []), Mt[yt].forEach(function(wt) {
3040
- U.set(wt, "dummy" + yt), J.get("dummy" + yt).push(wt), F.has(wt) && nt.add("dummy" + yt);
3040
+ U.set(wt, "dummy" + yt), J.get("dummy" + yt).push(wt), S.has(wt) && nt.add("dummy" + yt);
3041
3041
  }), at.set("dummy" + yt, L[d.get(Mt[yt][0])]);
3042
3042
  }, xt = 0; xt < Mt.length; xt++)
3043
3043
  pt(xt);
@@ -3045,7 +3045,7 @@ function vr() {
3045
3045
  var lt = /* @__PURE__ */ new Map(), ot = /* @__PURE__ */ new Map(), Lt = function(yt) {
3046
3046
  W.get(yt).forEach(function(wt) {
3047
3047
  var kt = void 0, Bt = void 0;
3048
- wt.direction == "horizontal" ? (kt = b.get(yt) ? b.get(yt) : yt, b.get(wt.id) ? Bt = { id: b.get(wt.id), gap: wt.gap, direction: wt.direction } : Bt = wt, lt.has(kt) ? lt.get(kt).push(Bt) : lt.set(kt, [Bt]), lt.has(Bt.id) || lt.set(Bt.id, [])) : (kt = U.get(yt) ? U.get(yt) : yt, U.get(wt.id) ? Bt = { id: U.get(wt.id), gap: wt.gap, direction: wt.direction } : Bt = wt, ot.has(kt) ? ot.get(kt).push(Bt) : ot.set(kt, [Bt]), ot.has(Bt.id) || ot.set(Bt.id, []));
3048
+ wt.direction == "horizontal" ? (kt = F.get(yt) ? F.get(yt) : yt, F.get(wt.id) ? Bt = { id: F.get(wt.id), gap: wt.gap, direction: wt.direction } : Bt = wt, lt.has(kt) ? lt.get(kt).push(Bt) : lt.set(kt, [Bt]), lt.has(Bt.id) || lt.set(Bt.id, [])) : (kt = U.get(yt) ? U.get(yt) : yt, U.get(wt.id) ? Bt = { id: U.get(wt.id), gap: wt.gap, direction: wt.direction } : Bt = wt, ot.has(kt) ? ot.get(kt).push(Bt) : ot.set(kt, [Bt]), ot.has(Bt.id) || ot.set(Bt.id, []));
3049
3049
  });
3050
3050
  }, ft = !0, st = !1, Xt = void 0;
3051
3051
  try {
@@ -3115,8 +3115,8 @@ function vr() {
3115
3115
  }
3116
3116
  })();
3117
3117
  }
3118
- for (var Yt = 0; Yt < S.length; Yt++) {
3119
- var Vt = S[Yt];
3118
+ for (var Yt = 0; Yt < b.length; Yt++) {
3119
+ var Vt = b[Yt];
3120
3120
  Vt.getChild() == null && Vt.setCenter(v[d.get(Vt.id)], L[d.get(Vt.id)]);
3121
3121
  }
3122
3122
  }, a.exports = s;
@@ -3132,10 +3132,10 @@ function vr() {
3132
3132
  /******/
3133
3133
  }, N = {};
3134
3134
  function u(a) {
3135
- var r = N[a];
3136
- if (r !== void 0)
3137
- return r.exports;
3138
- var e = N[a] = {
3135
+ var e = N[a];
3136
+ if (e !== void 0)
3137
+ return e.exports;
3138
+ var r = N[a] = {
3139
3139
  /******/
3140
3140
  // no module.id needed
3141
3141
  /******/
@@ -3144,7 +3144,7 @@ function vr() {
3144
3144
  exports: {}
3145
3145
  /******/
3146
3146
  };
3147
- return P[a](e, e.exports, u), e.exports;
3147
+ return P[a](r, r.exports, u), r.exports;
3148
3148
  }
3149
3149
  var h = u(45);
3150
3150
  return h;
@@ -3155,7 +3155,7 @@ function vr() {
3155
3155
  }
3156
3156
  var pr = he.exports, De;
3157
3157
  function yr() {
3158
- return De || (De = 1, (function(I, D) {
3158
+ return De || (De = 1, (function(I, x) {
3159
3159
  (function(P, N) {
3160
3160
  I.exports = N(vr());
3161
3161
  })(pr, function(A) {
@@ -3167,32 +3167,32 @@ function yr() {
3167
3167
  658: (
3168
3168
  /***/
3169
3169
  ((a) => {
3170
- a.exports = Object.assign != null ? Object.assign.bind(Object) : function(r) {
3171
- for (var e = arguments.length, f = Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
3172
- f[i - 1] = arguments[i];
3173
- return f.forEach(function(g) {
3170
+ a.exports = Object.assign != null ? Object.assign.bind(Object) : function(e) {
3171
+ for (var r = arguments.length, l = Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
3172
+ l[i - 1] = arguments[i];
3173
+ return l.forEach(function(g) {
3174
3174
  Object.keys(g).forEach(function(t) {
3175
- return r[t] = g[t];
3175
+ return e[t] = g[t];
3176
3176
  });
3177
- }), r;
3177
+ }), e;
3178
3178
  };
3179
3179
  })
3180
3180
  ),
3181
3181
  /***/
3182
3182
  548: (
3183
3183
  /***/
3184
- ((a, r, e) => {
3185
- var f = /* @__PURE__ */ (function() {
3184
+ ((a, e, r) => {
3185
+ var l = /* @__PURE__ */ (function() {
3186
3186
  function t(o, s) {
3187
- var c = [], l = !0, T = !1, d = void 0;
3187
+ var c = [], f = !0, T = !1, d = void 0;
3188
3188
  try {
3189
- for (var v = o[Symbol.iterator](), L; !(l = (L = v.next()).done) && (c.push(L.value), !(s && c.length === s)); l = !0)
3189
+ for (var v = o[Symbol.iterator](), L; !(f = (L = v.next()).done) && (c.push(L.value), !(s && c.length === s)); f = !0)
3190
3190
  ;
3191
- } catch (S) {
3192
- T = !0, d = S;
3191
+ } catch (b) {
3192
+ T = !0, d = b;
3193
3193
  } finally {
3194
3194
  try {
3195
- !l && v.return && v.return();
3195
+ !f && v.return && v.return();
3196
3196
  } finally {
3197
3197
  if (T) throw d;
3198
3198
  }
@@ -3206,13 +3206,13 @@ function yr() {
3206
3206
  return t(o, s);
3207
3207
  throw new TypeError("Invalid attempt to destructure non-iterable instance");
3208
3208
  };
3209
- })(), i = e(140).layoutBase.LinkedList, g = {};
3209
+ })(), i = r(140).layoutBase.LinkedList, g = {};
3210
3210
  g.getTopMostNodes = function(t) {
3211
3211
  for (var o = {}, s = 0; s < t.length; s++)
3212
3212
  o[t[s].id()] = !0;
3213
- var c = t.filter(function(l, T) {
3214
- typeof l == "number" && (l = T);
3215
- for (var d = l.parent()[0]; d != null; ) {
3213
+ var c = t.filter(function(f, T) {
3214
+ typeof f == "number" && (f = T);
3215
+ for (var d = f.parent()[0]; d != null; ) {
3216
3216
  if (o[d.id()])
3217
3217
  return !1;
3218
3218
  d = d.parent()[0];
@@ -3221,38 +3221,38 @@ function yr() {
3221
3221
  });
3222
3222
  return c;
3223
3223
  }, g.connectComponents = function(t, o, s, c) {
3224
- var l = new i(), T = /* @__PURE__ */ new Set(), d = [], v = void 0, L = void 0, S = void 0, C = !1, G = 1, K = [], X = [], Q = function() {
3225
- var rt = t.collection();
3226
- X.push(rt);
3224
+ var f = new i(), T = /* @__PURE__ */ new Set(), d = [], v = void 0, L = void 0, b = void 0, C = !1, G = 1, k = [], Y = [], K = function() {
3225
+ var it = t.collection();
3226
+ Y.push(it);
3227
3227
  var n = s[0], m = t.collection();
3228
3228
  m.merge(n).merge(n.descendants().intersection(o)), d.push(n), m.forEach(function(y) {
3229
- l.push(y), T.add(y), rt.merge(y);
3229
+ f.push(y), T.add(y), it.merge(y);
3230
3230
  });
3231
3231
  for (var p = function() {
3232
- n = l.shift();
3232
+ n = f.shift();
3233
3233
  var R = t.collection();
3234
- n.neighborhood().nodes().forEach(function(x) {
3235
- o.intersection(n.edgesWith(x)).length > 0 && R.merge(x);
3234
+ n.neighborhood().nodes().forEach(function(D) {
3235
+ o.intersection(n.edgesWith(D)).length > 0 && R.merge(D);
3236
3236
  });
3237
3237
  for (var M = 0; M < R.length; M++) {
3238
- var F = R[M];
3239
- if (v = s.intersection(F.union(F.ancestors())), v != null && !T.has(v[0])) {
3238
+ var S = R[M];
3239
+ if (v = s.intersection(S.union(S.ancestors())), v != null && !T.has(v[0])) {
3240
3240
  var W = v.union(v.descendants());
3241
- W.forEach(function(x) {
3242
- l.push(x), T.add(x), rt.merge(x), s.has(x) && d.push(x);
3241
+ W.forEach(function(D) {
3242
+ f.push(D), T.add(D), it.merge(D), s.has(D) && d.push(D);
3243
3243
  });
3244
3244
  }
3245
3245
  }
3246
- }; l.length != 0; )
3246
+ }; f.length != 0; )
3247
3247
  p();
3248
- if (rt.forEach(function(y) {
3248
+ if (it.forEach(function(y) {
3249
3249
  o.intersection(y.connectedEdges()).forEach(function(R) {
3250
- rt.has(R.source()) && rt.has(R.target()) && rt.merge(R);
3250
+ it.has(R.source()) && it.has(R.target()) && it.merge(R);
3251
3251
  });
3252
3252
  }), d.length == s.length && (C = !0), !C || C && G > 1) {
3253
- L = d[0], S = L.connectedEdges().length, d.forEach(function(y) {
3254
- y.connectedEdges().length < S && (S = y.connectedEdges().length, L = y);
3255
- }), K.push(L.id());
3253
+ L = d[0], b = L.connectedEdges().length, d.forEach(function(y) {
3254
+ y.connectedEdges().length < b && (b = y.connectedEdges().length, L = y);
3255
+ }), k.push(L.id());
3256
3256
  var E = t.collection();
3257
3257
  E.merge(d[0]), d.forEach(function(y) {
3258
3258
  E.merge(y);
@@ -3260,64 +3260,64 @@ function yr() {
3260
3260
  }
3261
3261
  };
3262
3262
  do
3263
- Q();
3263
+ K();
3264
3264
  while (!C);
3265
- return c && K.length > 0 && c.set("dummy" + (c.size + 1), K), X;
3265
+ return c && k.length > 0 && c.set("dummy" + (c.size + 1), k), Y;
3266
3266
  }, g.relocateComponent = function(t, o, s) {
3267
3267
  if (!s.fixedNodeConstraint) {
3268
- var c = Number.POSITIVE_INFINITY, l = Number.NEGATIVE_INFINITY, T = Number.POSITIVE_INFINITY, d = Number.NEGATIVE_INFINITY;
3268
+ var c = Number.POSITIVE_INFINITY, f = Number.NEGATIVE_INFINITY, T = Number.POSITIVE_INFINITY, d = Number.NEGATIVE_INFINITY;
3269
3269
  if (s.quality == "draft") {
3270
- var v = !0, L = !1, S = void 0;
3270
+ var v = !0, L = !1, b = void 0;
3271
3271
  try {
3272
3272
  for (var C = o.nodeIndexes[Symbol.iterator](), G; !(v = (G = C.next()).done); v = !0) {
3273
- var K = G.value, X = f(K, 2), Q = X[0], O = X[1], rt = s.cy.getElementById(Q);
3274
- if (rt) {
3275
- var n = rt.boundingBox(), m = o.xCoords[O] - n.w / 2, p = o.xCoords[O] + n.w / 2, E = o.yCoords[O] - n.h / 2, y = o.yCoords[O] + n.h / 2;
3276
- m < c && (c = m), p > l && (l = p), E < T && (T = E), y > d && (d = y);
3273
+ var k = G.value, Y = l(k, 2), K = Y[0], O = Y[1], it = s.cy.getElementById(K);
3274
+ if (it) {
3275
+ var n = it.boundingBox(), m = o.xCoords[O] - n.w / 2, p = o.xCoords[O] + n.w / 2, E = o.yCoords[O] - n.h / 2, y = o.yCoords[O] + n.h / 2;
3276
+ m < c && (c = m), p > f && (f = p), E < T && (T = E), y > d && (d = y);
3277
3277
  }
3278
3278
  }
3279
- } catch (x) {
3280
- L = !0, S = x;
3279
+ } catch (D) {
3280
+ L = !0, b = D;
3281
3281
  } finally {
3282
3282
  try {
3283
3283
  !v && C.return && C.return();
3284
3284
  } finally {
3285
3285
  if (L)
3286
- throw S;
3286
+ throw b;
3287
3287
  }
3288
3288
  }
3289
- var R = t.x - (l + c) / 2, M = t.y - (d + T) / 2;
3290
- o.xCoords = o.xCoords.map(function(x) {
3291
- return x + R;
3292
- }), o.yCoords = o.yCoords.map(function(x) {
3293
- return x + M;
3289
+ var R = t.x - (f + c) / 2, M = t.y - (d + T) / 2;
3290
+ o.xCoords = o.xCoords.map(function(D) {
3291
+ return D + R;
3292
+ }), o.yCoords = o.yCoords.map(function(D) {
3293
+ return D + M;
3294
3294
  });
3295
3295
  } else {
3296
- Object.keys(o).forEach(function(x) {
3297
- var k = o[x], V = k.getRect().x, Y = k.getRect().x + k.getRect().width, et = k.getRect().y, z = k.getRect().y + k.getRect().height;
3298
- V < c && (c = V), Y > l && (l = Y), et < T && (T = et), z > d && (d = z);
3296
+ Object.keys(o).forEach(function(D) {
3297
+ var q = o[D], V = q.getRect().x, X = q.getRect().x + q.getRect().width, et = q.getRect().y, z = q.getRect().y + q.getRect().height;
3298
+ V < c && (c = V), X > f && (f = X), et < T && (T = et), z > d && (d = z);
3299
3299
  });
3300
- var F = t.x - (l + c) / 2, W = t.y - (d + T) / 2;
3301
- Object.keys(o).forEach(function(x) {
3302
- var k = o[x];
3303
- k.setCenter(k.getCenterX() + F, k.getCenterY() + W);
3300
+ var S = t.x - (f + c) / 2, W = t.y - (d + T) / 2;
3301
+ Object.keys(o).forEach(function(D) {
3302
+ var q = o[D];
3303
+ q.setCenter(q.getCenterX() + S, q.getCenterY() + W);
3304
3304
  });
3305
3305
  }
3306
3306
  }
3307
3307
  }, g.calcBoundingBox = function(t, o, s, c) {
3308
- for (var l = Number.MAX_SAFE_INTEGER, T = Number.MIN_SAFE_INTEGER, d = Number.MAX_SAFE_INTEGER, v = Number.MIN_SAFE_INTEGER, L = void 0, S = void 0, C = void 0, G = void 0, K = t.descendants().not(":parent"), X = K.length, Q = 0; Q < X; Q++) {
3309
- var O = K[Q];
3310
- L = o[c.get(O.id())] - O.width() / 2, S = o[c.get(O.id())] + O.width() / 2, C = s[c.get(O.id())] - O.height() / 2, G = s[c.get(O.id())] + O.height() / 2, l > L && (l = L), T < S && (T = S), d > C && (d = C), v < G && (v = G);
3308
+ for (var f = Number.MAX_SAFE_INTEGER, T = Number.MIN_SAFE_INTEGER, d = Number.MAX_SAFE_INTEGER, v = Number.MIN_SAFE_INTEGER, L = void 0, b = void 0, C = void 0, G = void 0, k = t.descendants().not(":parent"), Y = k.length, K = 0; K < Y; K++) {
3309
+ var O = k[K];
3310
+ L = o[c.get(O.id())] - O.width() / 2, b = o[c.get(O.id())] + O.width() / 2, C = s[c.get(O.id())] - O.height() / 2, G = s[c.get(O.id())] + O.height() / 2, f > L && (f = L), T < b && (T = b), d > C && (d = C), v < G && (v = G);
3311
3311
  }
3312
- var rt = {};
3313
- return rt.topLeftX = l, rt.topLeftY = d, rt.width = T - l, rt.height = v - d, rt;
3312
+ var it = {};
3313
+ return it.topLeftX = f, it.topLeftY = d, it.width = T - f, it.height = v - d, it;
3314
3314
  }, g.calcParentsWithoutChildren = function(t, o) {
3315
3315
  var s = t.collection();
3316
3316
  return o.nodes(":parent").forEach(function(c) {
3317
- var l = !1;
3317
+ var f = !1;
3318
3318
  c.children().forEach(function(T) {
3319
- T.css("display") != "none" && (l = !0);
3320
- }), l || s.merge(c);
3319
+ T.css("display") != "none" && (f = !0);
3320
+ }), f || s.merge(c);
3321
3321
  }), s;
3322
3322
  }, a.exports = g;
3323
3323
  })
@@ -3325,53 +3325,53 @@ function yr() {
3325
3325
  /***/
3326
3326
  816: (
3327
3327
  /***/
3328
- ((a, r, e) => {
3329
- var f = e(548), i = e(140).CoSELayout, g = e(140).CoSENode, t = e(140).layoutBase.PointD, o = e(140).layoutBase.DimensionD, s = e(140).layoutBase.LayoutConstants, c = e(140).layoutBase.FDLayoutConstants, l = e(140).CoSEConstants, T = function(v, L) {
3330
- var S = v.cy, C = v.eles, G = C.nodes(), K = C.edges(), X = void 0, Q = void 0, O = void 0, rt = {};
3331
- v.randomize && (X = L.nodeIndexes, Q = L.xCoords, O = L.yCoords);
3332
- var n = function(x) {
3333
- return typeof x == "function";
3334
- }, m = function(x, k) {
3335
- return n(x) ? x(k) : x;
3336
- }, p = f.calcParentsWithoutChildren(S, C), E = function W(x, k, V, Y) {
3337
- for (var et = k.length, z = 0; z < et; z++) {
3338
- var w = k[z], H = null;
3328
+ ((a, e, r) => {
3329
+ var l = r(548), i = r(140).CoSELayout, g = r(140).CoSENode, t = r(140).layoutBase.PointD, o = r(140).layoutBase.DimensionD, s = r(140).layoutBase.LayoutConstants, c = r(140).layoutBase.FDLayoutConstants, f = r(140).CoSEConstants, T = function(v, L) {
3330
+ var b = v.cy, C = v.eles, G = C.nodes(), k = C.edges(), Y = void 0, K = void 0, O = void 0, it = {};
3331
+ v.randomize && (Y = L.nodeIndexes, K = L.xCoords, O = L.yCoords);
3332
+ var n = function(D) {
3333
+ return typeof D == "function";
3334
+ }, m = function(D, q) {
3335
+ return n(D) ? D(q) : D;
3336
+ }, p = l.calcParentsWithoutChildren(b, C), E = function W(D, q, V, X) {
3337
+ for (var et = q.length, z = 0; z < et; z++) {
3338
+ var w = q[z], H = null;
3339
3339
  w.intersection(p).length == 0 && (H = w.children());
3340
3340
  var $ = void 0, _ = w.layoutDimensions({
3341
- nodeDimensionsIncludeLabels: Y.nodeDimensionsIncludeLabels
3341
+ nodeDimensionsIncludeLabels: X.nodeDimensionsIncludeLabels
3342
3342
  });
3343
3343
  if (w.outerWidth() != null && w.outerHeight() != null)
3344
- if (Y.randomize)
3344
+ if (X.randomize)
3345
3345
  if (!w.isParent())
3346
- $ = x.add(new g(V.graphManager, new t(Q[X.get(w.id())] - _.w / 2, O[X.get(w.id())] - _.h / 2), new o(parseFloat(_.w), parseFloat(_.h))));
3346
+ $ = D.add(new g(V.graphManager, new t(K[Y.get(w.id())] - _.w / 2, O[Y.get(w.id())] - _.h / 2), new o(parseFloat(_.w), parseFloat(_.h))));
3347
3347
  else {
3348
- var ht = f.calcBoundingBox(w, Q, O, X);
3349
- w.intersection(p).length == 0 ? $ = x.add(new g(V.graphManager, new t(ht.topLeftX, ht.topLeftY), new o(ht.width, ht.height))) : $ = x.add(new g(V.graphManager, new t(ht.topLeftX, ht.topLeftY), new o(parseFloat(_.w), parseFloat(_.h))));
3348
+ var ht = l.calcBoundingBox(w, K, O, Y);
3349
+ w.intersection(p).length == 0 ? $ = D.add(new g(V.graphManager, new t(ht.topLeftX, ht.topLeftY), new o(ht.width, ht.height))) : $ = D.add(new g(V.graphManager, new t(ht.topLeftX, ht.topLeftY), new o(parseFloat(_.w), parseFloat(_.h))));
3350
3350
  }
3351
3351
  else
3352
- $ = x.add(new g(V.graphManager, new t(w.position("x") - _.w / 2, w.position("y") - _.h / 2), new o(parseFloat(_.w), parseFloat(_.h))));
3352
+ $ = D.add(new g(V.graphManager, new t(w.position("x") - _.w / 2, w.position("y") - _.h / 2), new o(parseFloat(_.w), parseFloat(_.h))));
3353
3353
  else
3354
- $ = x.add(new g(this.graphManager));
3355
- if ($.id = w.data("id"), $.nodeRepulsion = m(Y.nodeRepulsion, w), $.paddingLeft = parseInt(w.css("padding")), $.paddingTop = parseInt(w.css("padding")), $.paddingRight = parseInt(w.css("padding")), $.paddingBottom = parseInt(w.css("padding")), Y.nodeDimensionsIncludeLabels && ($.labelWidth = w.boundingBox({ includeLabels: !0, includeNodes: !1, includeOverlays: !1 }).w, $.labelHeight = w.boundingBox({ includeLabels: !0, includeNodes: !1, includeOverlays: !1 }).h, $.labelPosVertical = w.css("text-valign"), $.labelPosHorizontal = w.css("text-halign")), rt[w.data("id")] = $, isNaN($.rect.x) && ($.rect.x = 0), isNaN($.rect.y) && ($.rect.y = 0), H != null && H.length > 0) {
3356
- var q = void 0;
3357
- q = V.getGraphManager().add(V.newGraph(), $), W(q, H, V, Y);
3354
+ $ = D.add(new g(this.graphManager));
3355
+ if ($.id = w.data("id"), $.nodeRepulsion = m(X.nodeRepulsion, w), $.paddingLeft = parseInt(w.css("padding")), $.paddingTop = parseInt(w.css("padding")), $.paddingRight = parseInt(w.css("padding")), $.paddingBottom = parseInt(w.css("padding")), X.nodeDimensionsIncludeLabels && ($.labelWidth = w.boundingBox({ includeLabels: !0, includeNodes: !1, includeOverlays: !1 }).w, $.labelHeight = w.boundingBox({ includeLabels: !0, includeNodes: !1, includeOverlays: !1 }).h, $.labelPosVertical = w.css("text-valign"), $.labelPosHorizontal = w.css("text-halign")), it[w.data("id")] = $, isNaN($.rect.x) && ($.rect.x = 0), isNaN($.rect.y) && ($.rect.y = 0), H != null && H.length > 0) {
3356
+ var Q = void 0;
3357
+ Q = V.getGraphManager().add(V.newGraph(), $), W(Q, H, V, X);
3358
3358
  }
3359
3359
  }
3360
- }, y = function(x, k, V) {
3361
- for (var Y = 0, et = 0, z = 0; z < V.length; z++) {
3362
- var w = V[z], H = rt[w.data("source")], $ = rt[w.data("target")];
3360
+ }, y = function(D, q, V) {
3361
+ for (var X = 0, et = 0, z = 0; z < V.length; z++) {
3362
+ var w = V[z], H = it[w.data("source")], $ = it[w.data("target")];
3363
3363
  if (H && $ && H !== $ && H.getEdgesBetween($).length == 0) {
3364
- var _ = k.add(x.newEdge(), H, $);
3365
- _.id = w.id(), _.idealLength = m(v.idealEdgeLength, w), _.edgeElasticity = m(v.edgeElasticity, w), Y += _.idealLength, et++;
3364
+ var _ = q.add(D.newEdge(), H, $);
3365
+ _.id = w.id(), _.idealLength = m(v.idealEdgeLength, w), _.edgeElasticity = m(v.edgeElasticity, w), X += _.idealLength, et++;
3366
3366
  }
3367
3367
  }
3368
- v.idealEdgeLength != null && (et > 0 ? l.DEFAULT_EDGE_LENGTH = c.DEFAULT_EDGE_LENGTH = Y / et : n(v.idealEdgeLength) ? l.DEFAULT_EDGE_LENGTH = c.DEFAULT_EDGE_LENGTH = 50 : l.DEFAULT_EDGE_LENGTH = c.DEFAULT_EDGE_LENGTH = v.idealEdgeLength, l.MIN_REPULSION_DIST = c.MIN_REPULSION_DIST = c.DEFAULT_EDGE_LENGTH / 10, l.DEFAULT_RADIAL_SEPARATION = c.DEFAULT_EDGE_LENGTH);
3369
- }, R = function(x, k) {
3370
- k.fixedNodeConstraint && (x.constraints.fixedNodeConstraint = k.fixedNodeConstraint), k.alignmentConstraint && (x.constraints.alignmentConstraint = k.alignmentConstraint), k.relativePlacementConstraint && (x.constraints.relativePlacementConstraint = k.relativePlacementConstraint);
3368
+ v.idealEdgeLength != null && (et > 0 ? f.DEFAULT_EDGE_LENGTH = c.DEFAULT_EDGE_LENGTH = X / et : n(v.idealEdgeLength) ? f.DEFAULT_EDGE_LENGTH = c.DEFAULT_EDGE_LENGTH = 50 : f.DEFAULT_EDGE_LENGTH = c.DEFAULT_EDGE_LENGTH = v.idealEdgeLength, f.MIN_REPULSION_DIST = c.MIN_REPULSION_DIST = c.DEFAULT_EDGE_LENGTH / 10, f.DEFAULT_RADIAL_SEPARATION = c.DEFAULT_EDGE_LENGTH);
3369
+ }, R = function(D, q) {
3370
+ q.fixedNodeConstraint && (D.constraints.fixedNodeConstraint = q.fixedNodeConstraint), q.alignmentConstraint && (D.constraints.alignmentConstraint = q.alignmentConstraint), q.relativePlacementConstraint && (D.constraints.relativePlacementConstraint = q.relativePlacementConstraint);
3371
3371
  };
3372
- v.nestingFactor != null && (l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = c.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = v.nestingFactor), v.gravity != null && (l.DEFAULT_GRAVITY_STRENGTH = c.DEFAULT_GRAVITY_STRENGTH = v.gravity), v.numIter != null && (l.MAX_ITERATIONS = c.MAX_ITERATIONS = v.numIter), v.gravityRange != null && (l.DEFAULT_GRAVITY_RANGE_FACTOR = c.DEFAULT_GRAVITY_RANGE_FACTOR = v.gravityRange), v.gravityCompound != null && (l.DEFAULT_COMPOUND_GRAVITY_STRENGTH = c.DEFAULT_COMPOUND_GRAVITY_STRENGTH = v.gravityCompound), v.gravityRangeCompound != null && (l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = v.gravityRangeCompound), v.initialEnergyOnIncremental != null && (l.DEFAULT_COOLING_FACTOR_INCREMENTAL = c.DEFAULT_COOLING_FACTOR_INCREMENTAL = v.initialEnergyOnIncremental), v.tilingCompareBy != null && (l.TILING_COMPARE_BY = v.tilingCompareBy), v.quality == "proof" ? s.QUALITY = 2 : s.QUALITY = 0, l.NODE_DIMENSIONS_INCLUDE_LABELS = c.NODE_DIMENSIONS_INCLUDE_LABELS = s.NODE_DIMENSIONS_INCLUDE_LABELS = v.nodeDimensionsIncludeLabels, l.DEFAULT_INCREMENTAL = c.DEFAULT_INCREMENTAL = s.DEFAULT_INCREMENTAL = !v.randomize, l.ANIMATE = c.ANIMATE = s.ANIMATE = v.animate, l.TILE = v.tile, l.TILING_PADDING_VERTICAL = typeof v.tilingPaddingVertical == "function" ? v.tilingPaddingVertical.call() : v.tilingPaddingVertical, l.TILING_PADDING_HORIZONTAL = typeof v.tilingPaddingHorizontal == "function" ? v.tilingPaddingHorizontal.call() : v.tilingPaddingHorizontal, l.DEFAULT_INCREMENTAL = c.DEFAULT_INCREMENTAL = s.DEFAULT_INCREMENTAL = !0, l.PURE_INCREMENTAL = !v.randomize, s.DEFAULT_UNIFORM_LEAF_NODE_SIZES = v.uniformNodeDimensions, v.step == "transformed" && (l.TRANSFORM_ON_CONSTRAINT_HANDLING = !0, l.ENFORCE_CONSTRAINTS = !1, l.APPLY_LAYOUT = !1), v.step == "enforced" && (l.TRANSFORM_ON_CONSTRAINT_HANDLING = !1, l.ENFORCE_CONSTRAINTS = !0, l.APPLY_LAYOUT = !1), v.step == "cose" && (l.TRANSFORM_ON_CONSTRAINT_HANDLING = !1, l.ENFORCE_CONSTRAINTS = !1, l.APPLY_LAYOUT = !0), v.step == "all" && (v.randomize ? l.TRANSFORM_ON_CONSTRAINT_HANDLING = !0 : l.TRANSFORM_ON_CONSTRAINT_HANDLING = !1, l.ENFORCE_CONSTRAINTS = !0, l.APPLY_LAYOUT = !0), v.fixedNodeConstraint || v.alignmentConstraint || v.relativePlacementConstraint ? l.TREE_REDUCTION_ON_INCREMENTAL = !1 : l.TREE_REDUCTION_ON_INCREMENTAL = !0;
3373
- var M = new i(), F = M.newGraphManager();
3374
- return E(F.addRoot(), f.getTopMostNodes(G), M, v), y(M, F, K), R(M, v), M.runLayout(), rt;
3372
+ v.nestingFactor != null && (f.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = c.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = v.nestingFactor), v.gravity != null && (f.DEFAULT_GRAVITY_STRENGTH = c.DEFAULT_GRAVITY_STRENGTH = v.gravity), v.numIter != null && (f.MAX_ITERATIONS = c.MAX_ITERATIONS = v.numIter), v.gravityRange != null && (f.DEFAULT_GRAVITY_RANGE_FACTOR = c.DEFAULT_GRAVITY_RANGE_FACTOR = v.gravityRange), v.gravityCompound != null && (f.DEFAULT_COMPOUND_GRAVITY_STRENGTH = c.DEFAULT_COMPOUND_GRAVITY_STRENGTH = v.gravityCompound), v.gravityRangeCompound != null && (f.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = v.gravityRangeCompound), v.initialEnergyOnIncremental != null && (f.DEFAULT_COOLING_FACTOR_INCREMENTAL = c.DEFAULT_COOLING_FACTOR_INCREMENTAL = v.initialEnergyOnIncremental), v.tilingCompareBy != null && (f.TILING_COMPARE_BY = v.tilingCompareBy), v.quality == "proof" ? s.QUALITY = 2 : s.QUALITY = 0, f.NODE_DIMENSIONS_INCLUDE_LABELS = c.NODE_DIMENSIONS_INCLUDE_LABELS = s.NODE_DIMENSIONS_INCLUDE_LABELS = v.nodeDimensionsIncludeLabels, f.DEFAULT_INCREMENTAL = c.DEFAULT_INCREMENTAL = s.DEFAULT_INCREMENTAL = !v.randomize, f.ANIMATE = c.ANIMATE = s.ANIMATE = v.animate, f.TILE = v.tile, f.TILING_PADDING_VERTICAL = typeof v.tilingPaddingVertical == "function" ? v.tilingPaddingVertical.call() : v.tilingPaddingVertical, f.TILING_PADDING_HORIZONTAL = typeof v.tilingPaddingHorizontal == "function" ? v.tilingPaddingHorizontal.call() : v.tilingPaddingHorizontal, f.DEFAULT_INCREMENTAL = c.DEFAULT_INCREMENTAL = s.DEFAULT_INCREMENTAL = !0, f.PURE_INCREMENTAL = !v.randomize, s.DEFAULT_UNIFORM_LEAF_NODE_SIZES = v.uniformNodeDimensions, v.step == "transformed" && (f.TRANSFORM_ON_CONSTRAINT_HANDLING = !0, f.ENFORCE_CONSTRAINTS = !1, f.APPLY_LAYOUT = !1), v.step == "enforced" && (f.TRANSFORM_ON_CONSTRAINT_HANDLING = !1, f.ENFORCE_CONSTRAINTS = !0, f.APPLY_LAYOUT = !1), v.step == "cose" && (f.TRANSFORM_ON_CONSTRAINT_HANDLING = !1, f.ENFORCE_CONSTRAINTS = !1, f.APPLY_LAYOUT = !0), v.step == "all" && (v.randomize ? f.TRANSFORM_ON_CONSTRAINT_HANDLING = !0 : f.TRANSFORM_ON_CONSTRAINT_HANDLING = !1, f.ENFORCE_CONSTRAINTS = !0, f.APPLY_LAYOUT = !0), v.fixedNodeConstraint || v.alignmentConstraint || v.relativePlacementConstraint ? f.TREE_REDUCTION_ON_INCREMENTAL = !1 : f.TREE_REDUCTION_ON_INCREMENTAL = !0;
3373
+ var M = new i(), S = M.newGraphManager();
3374
+ return E(S.addRoot(), l.getTopMostNodes(G), M, v), y(M, S, k), R(M, v), M.runLayout(), it;
3375
3375
  };
3376
3376
  a.exports = { coseLayout: T };
3377
3377
  })
@@ -3379,23 +3379,23 @@ function yr() {
3379
3379
  /***/
3380
3380
  212: (
3381
3381
  /***/
3382
- ((a, r, e) => {
3383
- var f = /* @__PURE__ */ (function() {
3384
- function v(L, S) {
3385
- for (var C = 0; C < S.length; C++) {
3386
- var G = S[C];
3382
+ ((a, e, r) => {
3383
+ var l = /* @__PURE__ */ (function() {
3384
+ function v(L, b) {
3385
+ for (var C = 0; C < b.length; C++) {
3386
+ var G = b[C];
3387
3387
  G.enumerable = G.enumerable || !1, G.configurable = !0, "value" in G && (G.writable = !0), Object.defineProperty(L, G.key, G);
3388
3388
  }
3389
3389
  }
3390
- return function(L, S, C) {
3391
- return S && v(L.prototype, S), C && v(L, C), L;
3390
+ return function(L, b, C) {
3391
+ return b && v(L.prototype, b), C && v(L, C), L;
3392
3392
  };
3393
3393
  })();
3394
3394
  function i(v, L) {
3395
3395
  if (!(v instanceof L))
3396
3396
  throw new TypeError("Cannot call a class as a function");
3397
3397
  }
3398
- var g = e(658), t = e(548), o = e(657), s = o.spectralLayout, c = e(816), l = c.coseLayout, T = Object.freeze({
3398
+ var g = r(658), t = r(548), o = r(657), s = o.spectralLayout, c = r(816), f = c.coseLayout, T = Object.freeze({
3399
3399
  // 'draft', 'default' or 'proof'
3400
3400
  // - 'draft' only applies spectral layout
3401
3401
  // - 'default' improves the quality with subsequent CoSE layout (fast cooling rate)
@@ -3488,101 +3488,101 @@ function yr() {
3488
3488
  function v(L) {
3489
3489
  i(this, v), this.options = g({}, T, L);
3490
3490
  }
3491
- return f(v, [{
3491
+ return l(v, [{
3492
3492
  key: "run",
3493
3493
  value: function() {
3494
- var S = this, C = this.options, G = C.cy, K = C.eles, X = [], Q = [], O = void 0, rt = [];
3494
+ var b = this, C = this.options, G = C.cy, k = C.eles, Y = [], K = [], O = void 0, it = [];
3495
3495
  C.fixedNodeConstraint && (!Array.isArray(C.fixedNodeConstraint) || C.fixedNodeConstraint.length == 0) && (C.fixedNodeConstraint = void 0), C.alignmentConstraint && (C.alignmentConstraint.vertical && (!Array.isArray(C.alignmentConstraint.vertical) || C.alignmentConstraint.vertical.length == 0) && (C.alignmentConstraint.vertical = void 0), C.alignmentConstraint.horizontal && (!Array.isArray(C.alignmentConstraint.horizontal) || C.alignmentConstraint.horizontal.length == 0) && (C.alignmentConstraint.horizontal = void 0)), C.relativePlacementConstraint && (!Array.isArray(C.relativePlacementConstraint) || C.relativePlacementConstraint.length == 0) && (C.relativePlacementConstraint = void 0);
3496
3496
  var n = C.fixedNodeConstraint || C.alignmentConstraint || C.relativePlacementConstraint;
3497
3497
  n && (C.tile = !1, C.packComponents = !1);
3498
3498
  var m = void 0, p = !1;
3499
- if (G.layoutUtilities && C.packComponents && (m = G.layoutUtilities("get"), m || (m = G.layoutUtilities()), p = !0), K.nodes().length > 0)
3499
+ if (G.layoutUtilities && C.packComponents && (m = G.layoutUtilities("get"), m || (m = G.layoutUtilities()), p = !0), k.nodes().length > 0)
3500
3500
  if (p) {
3501
3501
  var R = t.getTopMostNodes(C.eles.nodes());
3502
3502
  if (O = t.connectComponents(G, C.eles, R), O.forEach(function(vt) {
3503
- var it = vt.boundingBox();
3504
- rt.push({ x: it.x1 + it.w / 2, y: it.y1 + it.h / 2 });
3503
+ var rt = vt.boundingBox();
3504
+ it.push({ x: rt.x1 + rt.w / 2, y: rt.y1 + rt.h / 2 });
3505
3505
  }), C.randomize && O.forEach(function(vt) {
3506
- C.eles = vt, X.push(s(C));
3506
+ C.eles = vt, Y.push(s(C));
3507
3507
  }), C.quality == "default" || C.quality == "proof") {
3508
3508
  var M = G.collection();
3509
3509
  if (C.tile) {
3510
- var F = /* @__PURE__ */ new Map(), W = [], x = [], k = 0, V = { nodeIndexes: F, xCoords: W, yCoords: x }, Y = [];
3511
- if (O.forEach(function(vt, it) {
3510
+ var S = /* @__PURE__ */ new Map(), W = [], D = [], q = 0, V = { nodeIndexes: S, xCoords: W, yCoords: D }, X = [];
3511
+ if (O.forEach(function(vt, rt) {
3512
3512
  vt.edges().length == 0 && (vt.nodes().forEach(function(gt, mt) {
3513
- M.merge(vt.nodes()[mt]), gt.isParent() || (V.nodeIndexes.set(vt.nodes()[mt].id(), k++), V.xCoords.push(vt.nodes()[0].position().x), V.yCoords.push(vt.nodes()[0].position().y));
3514
- }), Y.push(it));
3513
+ M.merge(vt.nodes()[mt]), gt.isParent() || (V.nodeIndexes.set(vt.nodes()[mt].id(), q++), V.xCoords.push(vt.nodes()[0].position().x), V.yCoords.push(vt.nodes()[0].position().y));
3514
+ }), X.push(rt));
3515
3515
  }), M.length > 1) {
3516
3516
  var et = M.boundingBox();
3517
- rt.push({ x: et.x1 + et.w / 2, y: et.y1 + et.h / 2 }), O.push(M), X.push(V);
3518
- for (var z = Y.length - 1; z >= 0; z--)
3519
- O.splice(Y[z], 1), X.splice(Y[z], 1), rt.splice(Y[z], 1);
3517
+ it.push({ x: et.x1 + et.w / 2, y: et.y1 + et.h / 2 }), O.push(M), Y.push(V);
3518
+ for (var z = X.length - 1; z >= 0; z--)
3519
+ O.splice(X[z], 1), Y.splice(X[z], 1), it.splice(X[z], 1);
3520
3520
  }
3521
3521
  }
3522
- O.forEach(function(vt, it) {
3523
- C.eles = vt, Q.push(l(C, X[it])), t.relocateComponent(rt[it], Q[it], C);
3522
+ O.forEach(function(vt, rt) {
3523
+ C.eles = vt, K.push(f(C, Y[rt])), t.relocateComponent(it[rt], K[rt], C);
3524
3524
  });
3525
3525
  } else
3526
- O.forEach(function(vt, it) {
3527
- t.relocateComponent(rt[it], X[it], C);
3526
+ O.forEach(function(vt, rt) {
3527
+ t.relocateComponent(it[rt], Y[rt], C);
3528
3528
  });
3529
3529
  var w = /* @__PURE__ */ new Set();
3530
3530
  if (O.length > 1) {
3531
- var H = [], $ = K.filter(function(vt) {
3531
+ var H = [], $ = k.filter(function(vt) {
3532
3532
  return vt.css("display") == "none";
3533
3533
  });
3534
- O.forEach(function(vt, it) {
3534
+ O.forEach(function(vt, rt) {
3535
3535
  var gt = void 0;
3536
- if (C.quality == "draft" && (gt = X[it].nodeIndexes), vt.nodes().not($).length > 0) {
3536
+ if (C.quality == "draft" && (gt = Y[rt].nodeIndexes), vt.nodes().not($).length > 0) {
3537
3537
  var mt = {};
3538
3538
  mt.edges = [], mt.nodes = [];
3539
3539
  var At = void 0;
3540
3540
  vt.nodes().not($).forEach(function(Ot) {
3541
3541
  if (C.quality == "draft")
3542
3542
  if (!Ot.isParent())
3543
- At = gt.get(Ot.id()), mt.nodes.push({ x: X[it].xCoords[At] - Ot.boundingbox().w / 2, y: X[it].yCoords[At] - Ot.boundingbox().h / 2, width: Ot.boundingbox().w, height: Ot.boundingbox().h });
3543
+ At = gt.get(Ot.id()), mt.nodes.push({ x: Y[rt].xCoords[At] - Ot.boundingbox().w / 2, y: Y[rt].yCoords[At] - Ot.boundingbox().h / 2, width: Ot.boundingbox().w, height: Ot.boundingbox().h });
3544
3544
  else {
3545
- var Et = t.calcBoundingBox(Ot, X[it].xCoords, X[it].yCoords, gt);
3545
+ var Et = t.calcBoundingBox(Ot, Y[rt].xCoords, Y[rt].yCoords, gt);
3546
3546
  mt.nodes.push({ x: Et.topLeftX, y: Et.topLeftY, width: Et.width, height: Et.height });
3547
3547
  }
3548
3548
  else
3549
- Q[it][Ot.id()] && mt.nodes.push({ x: Q[it][Ot.id()].getLeft(), y: Q[it][Ot.id()].getTop(), width: Q[it][Ot.id()].getWidth(), height: Q[it][Ot.id()].getHeight() });
3549
+ K[rt][Ot.id()] && mt.nodes.push({ x: K[rt][Ot.id()].getLeft(), y: K[rt][Ot.id()].getTop(), width: K[rt][Ot.id()].getWidth(), height: K[rt][Ot.id()].getHeight() });
3550
3550
  }), vt.edges().forEach(function(Ot) {
3551
3551
  var Et = Ot.source(), Dt = Ot.target();
3552
3552
  if (Et.css("display") != "none" && Dt.css("display") != "none")
3553
3553
  if (C.quality == "draft") {
3554
3554
  var Rt = gt.get(Et.id()), Ht = gt.get(Dt.id()), Ut = [], Pt = [];
3555
3555
  if (Et.isParent()) {
3556
- var Ft = t.calcBoundingBox(Et, X[it].xCoords, X[it].yCoords, gt);
3556
+ var Ft = t.calcBoundingBox(Et, Y[rt].xCoords, Y[rt].yCoords, gt);
3557
3557
  Ut.push(Ft.topLeftX + Ft.width / 2), Ut.push(Ft.topLeftY + Ft.height / 2);
3558
3558
  } else
3559
- Ut.push(X[it].xCoords[Rt]), Ut.push(X[it].yCoords[Rt]);
3559
+ Ut.push(Y[rt].xCoords[Rt]), Ut.push(Y[rt].yCoords[Rt]);
3560
3560
  if (Dt.isParent()) {
3561
- var Yt = t.calcBoundingBox(Dt, X[it].xCoords, X[it].yCoords, gt);
3561
+ var Yt = t.calcBoundingBox(Dt, Y[rt].xCoords, Y[rt].yCoords, gt);
3562
3562
  Pt.push(Yt.topLeftX + Yt.width / 2), Pt.push(Yt.topLeftY + Yt.height / 2);
3563
3563
  } else
3564
- Pt.push(X[it].xCoords[Ht]), Pt.push(X[it].yCoords[Ht]);
3564
+ Pt.push(Y[rt].xCoords[Ht]), Pt.push(Y[rt].yCoords[Ht]);
3565
3565
  mt.edges.push({ startX: Ut[0], startY: Ut[1], endX: Pt[0], endY: Pt[1] });
3566
3566
  } else
3567
- Q[it][Et.id()] && Q[it][Dt.id()] && mt.edges.push({ startX: Q[it][Et.id()].getCenterX(), startY: Q[it][Et.id()].getCenterY(), endX: Q[it][Dt.id()].getCenterX(), endY: Q[it][Dt.id()].getCenterY() });
3568
- }), mt.nodes.length > 0 && (H.push(mt), w.add(it));
3567
+ K[rt][Et.id()] && K[rt][Dt.id()] && mt.edges.push({ startX: K[rt][Et.id()].getCenterX(), startY: K[rt][Et.id()].getCenterY(), endX: K[rt][Dt.id()].getCenterX(), endY: K[rt][Dt.id()].getCenterY() });
3568
+ }), mt.nodes.length > 0 && (H.push(mt), w.add(rt));
3569
3569
  }
3570
3570
  });
3571
3571
  var _ = m.packComponents(H, C.randomize).shifts;
3572
3572
  if (C.quality == "draft")
3573
- X.forEach(function(vt, it) {
3573
+ Y.forEach(function(vt, rt) {
3574
3574
  var gt = vt.xCoords.map(function(At) {
3575
- return At + _[it].dx;
3575
+ return At + _[rt].dx;
3576
3576
  }), mt = vt.yCoords.map(function(At) {
3577
- return At + _[it].dy;
3577
+ return At + _[rt].dy;
3578
3578
  });
3579
3579
  vt.xCoords = gt, vt.yCoords = mt;
3580
3580
  });
3581
3581
  else {
3582
3582
  var ht = 0;
3583
3583
  w.forEach(function(vt) {
3584
- Object.keys(Q[vt]).forEach(function(it) {
3585
- var gt = Q[vt][it];
3584
+ Object.keys(K[vt]).forEach(function(rt) {
3585
+ var gt = K[vt][rt];
3586
3586
  gt.setCenter(gt.getCenterX() + _[ht].dx, gt.getCenterY() + _[ht].dy);
3587
3587
  }), ht++;
3588
3588
  });
@@ -3590,39 +3590,39 @@ function yr() {
3590
3590
  }
3591
3591
  } else {
3592
3592
  var E = C.eles.boundingBox();
3593
- if (rt.push({ x: E.x1 + E.w / 2, y: E.y1 + E.h / 2 }), C.randomize) {
3593
+ if (it.push({ x: E.x1 + E.w / 2, y: E.y1 + E.h / 2 }), C.randomize) {
3594
3594
  var y = s(C);
3595
- X.push(y);
3595
+ Y.push(y);
3596
3596
  }
3597
- C.quality == "default" || C.quality == "proof" ? (Q.push(l(C, X[0])), t.relocateComponent(rt[0], Q[0], C)) : t.relocateComponent(rt[0], X[0], C);
3597
+ C.quality == "default" || C.quality == "proof" ? (K.push(f(C, Y[0])), t.relocateComponent(it[0], K[0], C)) : t.relocateComponent(it[0], Y[0], C);
3598
3598
  }
3599
- var q = function(it, gt) {
3599
+ var Q = function(rt, gt) {
3600
3600
  if (C.quality == "default" || C.quality == "proof") {
3601
- typeof it == "number" && (it = gt);
3602
- var mt = void 0, At = void 0, Ot = it.data("id");
3603
- return Q.forEach(function(Dt) {
3601
+ typeof rt == "number" && (rt = gt);
3602
+ var mt = void 0, At = void 0, Ot = rt.data("id");
3603
+ return K.forEach(function(Dt) {
3604
3604
  Ot in Dt && (mt = { x: Dt[Ot].getRect().getCenterX(), y: Dt[Ot].getRect().getCenterY() }, At = Dt[Ot]);
3605
- }), C.nodeDimensionsIncludeLabels && (At.labelWidth && (At.labelPosHorizontal == "left" ? mt.x += At.labelWidth / 2 : At.labelPosHorizontal == "right" && (mt.x -= At.labelWidth / 2)), At.labelHeight && (At.labelPosVertical == "top" ? mt.y += At.labelHeight / 2 : At.labelPosVertical == "bottom" && (mt.y -= At.labelHeight / 2))), mt == null && (mt = { x: it.position("x"), y: it.position("y") }), {
3605
+ }), C.nodeDimensionsIncludeLabels && (At.labelWidth && (At.labelPosHorizontal == "left" ? mt.x += At.labelWidth / 2 : At.labelPosHorizontal == "right" && (mt.x -= At.labelWidth / 2)), At.labelHeight && (At.labelPosVertical == "top" ? mt.y += At.labelHeight / 2 : At.labelPosVertical == "bottom" && (mt.y -= At.labelHeight / 2))), mt == null && (mt = { x: rt.position("x"), y: rt.position("y") }), {
3606
3606
  x: mt.x,
3607
3607
  y: mt.y
3608
3608
  };
3609
3609
  } else {
3610
3610
  var Et = void 0;
3611
- return X.forEach(function(Dt) {
3612
- var Rt = Dt.nodeIndexes.get(it.id());
3611
+ return Y.forEach(function(Dt) {
3612
+ var Rt = Dt.nodeIndexes.get(rt.id());
3613
3613
  Rt != null && (Et = { x: Dt.xCoords[Rt], y: Dt.yCoords[Rt] });
3614
- }), Et == null && (Et = { x: it.position("x"), y: it.position("y") }), {
3614
+ }), Et == null && (Et = { x: rt.position("x"), y: rt.position("y") }), {
3615
3615
  x: Et.x,
3616
3616
  y: Et.y
3617
3617
  };
3618
3618
  }
3619
3619
  };
3620
3620
  if (C.quality == "default" || C.quality == "proof" || C.randomize) {
3621
- var It = t.calcParentsWithoutChildren(G, K), Nt = K.filter(function(vt) {
3621
+ var It = t.calcParentsWithoutChildren(G, k), Nt = k.filter(function(vt) {
3622
3622
  return vt.css("display") == "none";
3623
3623
  });
3624
- C.eles = K.not(Nt), K.nodes().not(":parent").not(Nt).layoutPositions(S, C, q), It.length > 0 && It.forEach(function(vt) {
3625
- vt.position(q(vt));
3624
+ C.eles = k.not(Nt), k.nodes().not(":parent").not(Nt).layoutPositions(b, C, Q), It.length > 0 && It.forEach(function(vt) {
3625
+ vt.position(Q(vt));
3626
3626
  });
3627
3627
  } else
3628
3628
  console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.");
@@ -3635,22 +3635,22 @@ function yr() {
3635
3635
  /***/
3636
3636
  657: (
3637
3637
  /***/
3638
- ((a, r, e) => {
3639
- var f = e(548), i = e(140).layoutBase.Matrix, g = e(140).layoutBase.SVD, t = function(s) {
3640
- var c = s.cy, l = s.eles, T = l.nodes(), d = l.nodes(":parent"), v = /* @__PURE__ */ new Map(), L = /* @__PURE__ */ new Map(), S = /* @__PURE__ */ new Map(), C = [], G = [], K = [], X = [], Q = [], O = [], rt = [], n = [], m = void 0, p = 1e8, E = 1e-9, y = s.piTol, R = s.samplingType, M = s.nodeSeparation, F = void 0, W = function() {
3641
- for (var U = 0, B = 0, J = !1; B < F; ) {
3638
+ ((a, e, r) => {
3639
+ var l = r(548), i = r(140).layoutBase.Matrix, g = r(140).layoutBase.SVD, t = function(s) {
3640
+ var c = s.cy, f = s.eles, T = f.nodes(), d = f.nodes(":parent"), v = /* @__PURE__ */ new Map(), L = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), C = [], G = [], k = [], Y = [], K = [], O = [], it = [], n = [], m = void 0, p = 1e8, E = 1e-9, y = s.piTol, R = s.samplingType, M = s.nodeSeparation, S = void 0, W = function() {
3641
+ for (var U = 0, B = 0, J = !1; B < S; ) {
3642
3642
  U = Math.floor(Math.random() * m), J = !1;
3643
3643
  for (var Z = 0; Z < B; Z++)
3644
- if (X[Z] == U) {
3644
+ if (Y[Z] == U) {
3645
3645
  J = !0;
3646
3646
  break;
3647
3647
  }
3648
3648
  if (!J)
3649
- X[B] = U, B++;
3649
+ Y[B] = U, B++;
3650
3650
  else
3651
3651
  continue;
3652
3652
  }
3653
- }, x = function(U, B, J) {
3653
+ }, D = function(U, B, J) {
3654
3654
  for (var Z = [], at = 0, ct = 0, nt = 0, tt = void 0, j = [], ut = 0, Mt = 1, pt = 0; pt < m; pt++)
3655
3655
  j[pt] = p;
3656
3656
  for (Z[ct] = U, j[U] = 0; ct >= at; ) {
@@ -3661,40 +3661,40 @@ function yr() {
3661
3661
  }
3662
3662
  if (J) {
3663
3663
  for (var ot = 0; ot < m; ot++)
3664
- O[ot][B] < Q[ot] && (Q[ot] = O[ot][B]);
3664
+ O[ot][B] < K[ot] && (K[ot] = O[ot][B]);
3665
3665
  for (var Lt = 0; Lt < m; Lt++)
3666
- Q[Lt] > ut && (ut = Q[Lt], Mt = Lt);
3666
+ K[Lt] > ut && (ut = K[Lt], Mt = Lt);
3667
3667
  }
3668
3668
  return Mt;
3669
- }, k = function(U) {
3669
+ }, q = function(U) {
3670
3670
  var B = void 0;
3671
3671
  if (U) {
3672
3672
  B = Math.floor(Math.random() * m);
3673
3673
  for (var Z = 0; Z < m; Z++)
3674
- Q[Z] = p;
3675
- for (var at = 0; at < F; at++)
3676
- X[at] = B, B = x(B, at, U);
3674
+ K[Z] = p;
3675
+ for (var at = 0; at < S; at++)
3676
+ Y[at] = B, B = D(B, at, U);
3677
3677
  } else {
3678
3678
  W();
3679
- for (var J = 0; J < F; J++)
3680
- x(X[J], J, U);
3679
+ for (var J = 0; J < S; J++)
3680
+ D(Y[J], J, U);
3681
3681
  }
3682
3682
  for (var ct = 0; ct < m; ct++)
3683
- for (var nt = 0; nt < F; nt++)
3683
+ for (var nt = 0; nt < S; nt++)
3684
3684
  O[ct][nt] *= O[ct][nt];
3685
- for (var tt = 0; tt < F; tt++)
3686
- rt[tt] = [];
3687
- for (var j = 0; j < F; j++)
3688
- for (var ut = 0; ut < F; ut++)
3689
- rt[j][ut] = O[X[ut]][j];
3685
+ for (var tt = 0; tt < S; tt++)
3686
+ it[tt] = [];
3687
+ for (var j = 0; j < S; j++)
3688
+ for (var ut = 0; ut < S; ut++)
3689
+ it[j][ut] = O[Y[ut]][j];
3690
3690
  }, V = function() {
3691
- for (var U = g.svd(rt), B = U.S, J = U.U, Z = U.V, at = B[0] * B[0] * B[0], ct = [], nt = 0; nt < F; nt++) {
3691
+ for (var U = g.svd(it), B = U.S, J = U.U, Z = U.V, at = B[0] * B[0] * B[0], ct = [], nt = 0; nt < S; nt++) {
3692
3692
  ct[nt] = [];
3693
- for (var tt = 0; tt < F; tt++)
3693
+ for (var tt = 0; tt < S; tt++)
3694
3694
  ct[nt][tt] = 0, nt == tt && (ct[nt][tt] = B[nt] / (B[nt] * B[nt] + at / (B[nt] * B[nt])));
3695
3695
  }
3696
3696
  n = i.multMat(i.multMat(Z, ct), i.transpose(J));
3697
- }, Y = function() {
3697
+ }, X = function() {
3698
3698
  for (var U = void 0, B = void 0, J = [], Z = [], at = [], ct = [], nt = 0; nt < m; nt++)
3699
3699
  J[nt] = Math.random(), Z[nt] = Math.random();
3700
3700
  J = i.normalize(J), Z = i.normalize(Z);
@@ -3716,21 +3716,21 @@ function yr() {
3716
3716
  }
3717
3717
  for (var lt = 0; lt < m; lt++)
3718
3718
  ct[lt] = Z[lt];
3719
- G = i.multCons(at, Math.sqrt(Math.abs(U))), K = i.multCons(ct, Math.sqrt(Math.abs(B)));
3719
+ G = i.multCons(at, Math.sqrt(Math.abs(U))), k = i.multCons(ct, Math.sqrt(Math.abs(B)));
3720
3720
  };
3721
- f.connectComponents(c, l, f.getTopMostNodes(T), v), d.forEach(function(b) {
3722
- f.connectComponents(c, l, f.getTopMostNodes(b.descendants().intersection(l)), v);
3721
+ l.connectComponents(c, f, l.getTopMostNodes(T), v), d.forEach(function(F) {
3722
+ l.connectComponents(c, f, l.getTopMostNodes(F.descendants().intersection(f)), v);
3723
3723
  });
3724
3724
  for (var et = 0, z = 0; z < T.length; z++)
3725
3725
  T[z].isParent() || L.set(T[z].id(), et++);
3726
3726
  var w = !0, H = !1, $ = void 0;
3727
3727
  try {
3728
3728
  for (var _ = v.keys()[Symbol.iterator](), ht; !(w = (ht = _.next()).done); w = !0) {
3729
- var q = ht.value;
3730
- L.set(q, et++);
3729
+ var Q = ht.value;
3730
+ L.set(Q, et++);
3731
3731
  }
3732
- } catch (b) {
3733
- H = !0, $ = b;
3732
+ } catch (F) {
3733
+ H = !0, $ = F;
3734
3734
  } finally {
3735
3735
  try {
3736
3736
  !w && _.return && _.return();
@@ -3741,58 +3741,58 @@ function yr() {
3741
3741
  }
3742
3742
  for (var It = 0; It < L.size; It++)
3743
3743
  C[It] = [];
3744
- d.forEach(function(b) {
3745
- for (var U = b.children().intersection(l); U.nodes(":childless").length == 0; )
3746
- U = U.nodes()[0].children().intersection(l);
3744
+ d.forEach(function(F) {
3745
+ for (var U = F.children().intersection(f); U.nodes(":childless").length == 0; )
3746
+ U = U.nodes()[0].children().intersection(f);
3747
3747
  var B = 0, J = U.nodes(":childless")[0].connectedEdges().length;
3748
3748
  U.nodes(":childless").forEach(function(Z, at) {
3749
3749
  Z.connectedEdges().length < J && (J = Z.connectedEdges().length, B = at);
3750
- }), S.set(b.id(), U.nodes(":childless")[B].id());
3751
- }), T.forEach(function(b) {
3750
+ }), b.set(F.id(), U.nodes(":childless")[B].id());
3751
+ }), T.forEach(function(F) {
3752
3752
  var U = void 0;
3753
- b.isParent() ? U = L.get(S.get(b.id())) : U = L.get(b.id()), b.neighborhood().nodes().forEach(function(B) {
3754
- l.intersection(b.edgesWith(B)).length > 0 && (B.isParent() ? C[U].push(S.get(B.id())) : C[U].push(B.id()));
3753
+ F.isParent() ? U = L.get(b.get(F.id())) : U = L.get(F.id()), F.neighborhood().nodes().forEach(function(B) {
3754
+ f.intersection(F.edgesWith(B)).length > 0 && (B.isParent() ? C[U].push(b.get(B.id())) : C[U].push(B.id()));
3755
3755
  });
3756
3756
  });
3757
3757
  var Nt = function(U) {
3758
3758
  var B = L.get(U), J = void 0;
3759
3759
  v.get(U).forEach(function(Z) {
3760
- c.getElementById(Z).isParent() ? J = S.get(Z) : J = Z, C[B].push(J), C[L.get(J)].push(U);
3760
+ c.getElementById(Z).isParent() ? J = b.get(Z) : J = Z, C[B].push(J), C[L.get(J)].push(U);
3761
3761
  });
3762
- }, vt = !0, it = !1, gt = void 0;
3762
+ }, vt = !0, rt = !1, gt = void 0;
3763
3763
  try {
3764
3764
  for (var mt = v.keys()[Symbol.iterator](), At; !(vt = (At = mt.next()).done); vt = !0) {
3765
3765
  var Ot = At.value;
3766
3766
  Nt(Ot);
3767
3767
  }
3768
- } catch (b) {
3769
- it = !0, gt = b;
3768
+ } catch (F) {
3769
+ rt = !0, gt = F;
3770
3770
  } finally {
3771
3771
  try {
3772
3772
  !vt && mt.return && mt.return();
3773
3773
  } finally {
3774
- if (it)
3774
+ if (rt)
3775
3775
  throw gt;
3776
3776
  }
3777
3777
  }
3778
3778
  m = L.size;
3779
3779
  var Et = void 0;
3780
3780
  if (m > 2) {
3781
- F = m < s.sampleSize ? m : s.sampleSize;
3781
+ S = m < s.sampleSize ? m : s.sampleSize;
3782
3782
  for (var Dt = 0; Dt < m; Dt++)
3783
3783
  O[Dt] = [];
3784
- for (var Rt = 0; Rt < F; Rt++)
3784
+ for (var Rt = 0; Rt < S; Rt++)
3785
3785
  n[Rt] = [];
3786
- return s.quality == "draft" || s.step == "all" ? (k(R), V(), Y(), Et = { nodeIndexes: L, xCoords: G, yCoords: K }) : (L.forEach(function(b, U) {
3787
- G.push(c.getElementById(U).position("x")), K.push(c.getElementById(U).position("y"));
3788
- }), Et = { nodeIndexes: L, xCoords: G, yCoords: K }), Et;
3786
+ return s.quality == "draft" || s.step == "all" ? (q(R), V(), X(), Et = { nodeIndexes: L, xCoords: G, yCoords: k }) : (L.forEach(function(F, U) {
3787
+ G.push(c.getElementById(U).position("x")), k.push(c.getElementById(U).position("y"));
3788
+ }), Et = { nodeIndexes: L, xCoords: G, yCoords: k }), Et;
3789
3789
  } else {
3790
3790
  var Ht = L.keys(), Ut = c.getElementById(Ht.next().value), Pt = Ut.position(), Ft = Ut.outerWidth();
3791
- if (G.push(Pt.x), K.push(Pt.y), m == 2) {
3791
+ if (G.push(Pt.x), k.push(Pt.y), m == 2) {
3792
3792
  var Yt = c.getElementById(Ht.next().value), Vt = Yt.outerWidth();
3793
- G.push(Pt.x + Ft / 2 + Vt / 2 + s.idealEdgeLength), K.push(Pt.y);
3793
+ G.push(Pt.x + Ft / 2 + Vt / 2 + s.idealEdgeLength), k.push(Pt.y);
3794
3794
  }
3795
- return Et = { nodeIndexes: L, xCoords: G, yCoords: K }, Et;
3795
+ return Et = { nodeIndexes: L, xCoords: G, yCoords: k }, Et;
3796
3796
  }
3797
3797
  };
3798
3798
  a.exports = { spectralLayout: t };
@@ -3801,9 +3801,9 @@ function yr() {
3801
3801
  /***/
3802
3802
  579: (
3803
3803
  /***/
3804
- ((a, r, e) => {
3805
- var f = e(212), i = function(t) {
3806
- t && t("layout", "fcose", f);
3804
+ ((a, e, r) => {
3805
+ var l = r(212), i = function(t) {
3806
+ t && t("layout", "fcose", l);
3807
3807
  };
3808
3808
  typeof cytoscape < "u" && i(cytoscape), a.exports = i;
3809
3809
  })
@@ -3818,10 +3818,10 @@ function yr() {
3818
3818
  /******/
3819
3819
  }, N = {};
3820
3820
  function u(a) {
3821
- var r = N[a];
3822
- if (r !== void 0)
3823
- return r.exports;
3824
- var e = N[a] = {
3821
+ var e = N[a];
3822
+ if (e !== void 0)
3823
+ return e.exports;
3824
+ var r = N[a] = {
3825
3825
  /******/
3826
3826
  // no module.id needed
3827
3827
  /******/
@@ -3830,7 +3830,7 @@ function yr() {
3830
3830
  exports: {}
3831
3831
  /******/
3832
3832
  };
3833
- return P[a](e, e.exports, u), e.exports;
3833
+ return P[a](r, r.exports, u), r.exports;
3834
3834
  }
3835
3835
  var h = u(579);
3836
3836
  return h;
@@ -3852,39 +3852,39 @@ var xe = {
3852
3852
  T: /* @__PURE__ */ dt((I) => `0,0 ${I},0 ${I / 2},${I}`, "T"),
3853
3853
  B: /* @__PURE__ */ dt((I) => `${I / 2},0 ${I},${I} 0,${I}`, "B")
3854
3854
  }, se = {
3855
- L: /* @__PURE__ */ dt((I, D) => I - D + 2, "L"),
3856
- R: /* @__PURE__ */ dt((I, D) => I - 2, "R"),
3857
- T: /* @__PURE__ */ dt((I, D) => I - D + 2, "T"),
3858
- B: /* @__PURE__ */ dt((I, D) => I - 2, "B")
3855
+ L: /* @__PURE__ */ dt((I, x) => I - x + 2, "L"),
3856
+ R: /* @__PURE__ */ dt((I, x) => I - 2, "R"),
3857
+ T: /* @__PURE__ */ dt((I, x) => I - x + 2, "T"),
3858
+ B: /* @__PURE__ */ dt((I, x) => I - 2, "B")
3859
3859
  }, Tr = /* @__PURE__ */ dt(function(I) {
3860
3860
  return Wt(I) ? I === "L" ? "R" : "L" : I === "T" ? "B" : "T";
3861
3861
  }, "getOppositeArchitectureDirection"), Re = /* @__PURE__ */ dt(function(I) {
3862
- const D = I;
3863
- return D === "L" || D === "R" || D === "T" || D === "B";
3862
+ const x = I;
3863
+ return x === "L" || x === "R" || x === "T" || x === "B";
3864
3864
  }, "isArchitectureDirection"), Wt = /* @__PURE__ */ dt(function(I) {
3865
- const D = I;
3866
- return D === "L" || D === "R";
3865
+ const x = I;
3866
+ return x === "L" || x === "R";
3867
3867
  }, "isArchitectureDirectionX"), qt = /* @__PURE__ */ dt(function(I) {
3868
- const D = I;
3869
- return D === "T" || D === "B";
3870
- }, "isArchitectureDirectionY"), Te = /* @__PURE__ */ dt(function(I, D) {
3871
- const A = Wt(I) && qt(D), P = qt(I) && Wt(D);
3868
+ const x = I;
3869
+ return x === "T" || x === "B";
3870
+ }, "isArchitectureDirectionY"), Te = /* @__PURE__ */ dt(function(I, x) {
3871
+ const A = Wt(I) && qt(x), P = qt(I) && Wt(x);
3872
3872
  return A || P;
3873
3873
  }, "isArchitectureDirectionXY"), Nr = /* @__PURE__ */ dt(function(I) {
3874
- const D = I[0], A = I[1], P = Wt(D) && qt(A), N = qt(D) && Wt(A);
3874
+ const x = I[0], A = I[1], P = Wt(x) && qt(A), N = qt(x) && Wt(A);
3875
3875
  return P || N;
3876
3876
  }, "isArchitecturePairXY"), Lr = /* @__PURE__ */ dt(function(I) {
3877
3877
  return I !== "LL" && I !== "RR" && I !== "TT" && I !== "BB";
3878
- }, "isValidArchitectureDirectionPair"), ye = /* @__PURE__ */ dt(function(I, D) {
3879
- const A = `${I}${D}`;
3878
+ }, "isValidArchitectureDirectionPair"), ye = /* @__PURE__ */ dt(function(I, x) {
3879
+ const A = `${I}${x}`;
3880
3880
  return Lr(A) ? A : void 0;
3881
- }, "getArchitectureDirectionPair"), Cr = /* @__PURE__ */ dt(function([I, D], A) {
3881
+ }, "getArchitectureDirectionPair"), Cr = /* @__PURE__ */ dt(function([I, x], A) {
3882
3882
  const P = A[0], N = A[1];
3883
- return Wt(P) ? qt(N) ? [I + (P === "L" ? -1 : 1), D + (N === "T" ? 1 : -1)] : [I + (P === "L" ? -1 : 1), D] : Wt(N) ? [I + (N === "L" ? 1 : -1), D + (P === "T" ? 1 : -1)] : [I, D + (P === "T" ? 1 : -1)];
3883
+ return Wt(P) ? qt(N) ? [I + (P === "L" ? -1 : 1), x + (N === "T" ? 1 : -1)] : [I + (P === "L" ? -1 : 1), x] : Wt(N) ? [I + (N === "L" ? 1 : -1), x + (P === "T" ? 1 : -1)] : [I, x + (P === "T" ? 1 : -1)];
3884
3884
  }, "shiftPositionByArchitectureDirectionPair"), Ar = /* @__PURE__ */ dt(function(I) {
3885
3885
  return I === "LT" || I === "TL" ? [1, 1] : I === "BL" || I === "LB" ? [1, -1] : I === "BR" || I === "RB" ? [-1, -1] : [-1, 1];
3886
- }, "getArchitectureDirectionXYFactors"), Mr = /* @__PURE__ */ dt(function(I, D) {
3887
- return Te(I, D) ? "bend" : Wt(I) ? "horizontal" : "vertical";
3886
+ }, "getArchitectureDirectionXYFactors"), Mr = /* @__PURE__ */ dt(function(I, x) {
3887
+ return Te(I, x) ? "bend" : Wt(I) ? "horizontal" : "vertical";
3888
3888
  }, "getArchitectureDirectionAlignment"), wr = /* @__PURE__ */ dt(function(I) {
3889
3889
  return I.type === "service";
3890
3890
  }, "isArchitectureService"), Or = /* @__PURE__ */ dt(function(I) {
@@ -3897,28 +3897,28 @@ var xe = {
3897
3897
  this.nodes = {}, this.groups = {}, this.edges = [], this.registeredIds = {}, this.dataStructures = void 0, this.elements = {}, er();
3898
3898
  }
3899
3899
  addService({
3900
- id: D,
3900
+ id: x,
3901
3901
  icon: A,
3902
3902
  in: P,
3903
3903
  title: N,
3904
3904
  iconText: u
3905
3905
  }) {
3906
- if (this.registeredIds[D] !== void 0)
3906
+ if (this.registeredIds[x] !== void 0)
3907
3907
  throw new Error(
3908
- `The service id [${D}] is already in use by another ${this.registeredIds[D]}`
3908
+ `The service id [${x}] is already in use by another ${this.registeredIds[x]}`
3909
3909
  );
3910
3910
  if (P !== void 0) {
3911
- if (D === P)
3912
- throw new Error(`The service [${D}] cannot be placed within itself`);
3911
+ if (x === P)
3912
+ throw new Error(`The service [${x}] cannot be placed within itself`);
3913
3913
  if (this.registeredIds[P] === void 0)
3914
3914
  throw new Error(
3915
- `The service [${D}]'s parent does not exist. Please make sure the parent is created before this service`
3915
+ `The service [${x}]'s parent does not exist. Please make sure the parent is created before this service`
3916
3916
  );
3917
3917
  if (this.registeredIds[P] === "node")
3918
- throw new Error(`The service [${D}]'s parent is not a group`);
3918
+ throw new Error(`The service [${x}]'s parent is not a group`);
3919
3919
  }
3920
- this.registeredIds[D] = "node", this.nodes[D] = {
3921
- id: D,
3920
+ this.registeredIds[x] = "node", this.nodes[x] = {
3921
+ id: x,
3922
3922
  type: "service",
3923
3923
  icon: A,
3924
3924
  iconText: u,
@@ -3930,9 +3930,9 @@ var xe = {
3930
3930
  getServices() {
3931
3931
  return Object.values(this.nodes).filter(wr);
3932
3932
  }
3933
- addJunction({ id: D, in: A }) {
3934
- this.registeredIds[D] = "node", this.nodes[D] = {
3935
- id: D,
3933
+ addJunction({ id: x, in: A }) {
3934
+ this.registeredIds[x] = "node", this.nodes[x] = {
3935
+ id: x,
3936
3936
  type: "junction",
3937
3937
  edges: [],
3938
3938
  in: A
@@ -3944,27 +3944,26 @@ var xe = {
3944
3944
  getNodes() {
3945
3945
  return Object.values(this.nodes);
3946
3946
  }
3947
- getNode(D) {
3948
- return this.nodes[D] ?? null;
3947
+ getNode(x) {
3948
+ return this.nodes[x] ?? null;
3949
3949
  }
3950
- addGroup({ id: D, icon: A, in: P, title: N }) {
3951
- var u, h, a;
3952
- if (((u = this.registeredIds) == null ? void 0 : u[D]) !== void 0)
3950
+ addGroup({ id: x, icon: A, in: P, title: N }) {
3951
+ if (this.registeredIds?.[x] !== void 0)
3953
3952
  throw new Error(
3954
- `The group id [${D}] is already in use by another ${this.registeredIds[D]}`
3953
+ `The group id [${x}] is already in use by another ${this.registeredIds[x]}`
3955
3954
  );
3956
3955
  if (P !== void 0) {
3957
- if (D === P)
3958
- throw new Error(`The group [${D}] cannot be placed within itself`);
3959
- if (((h = this.registeredIds) == null ? void 0 : h[P]) === void 0)
3956
+ if (x === P)
3957
+ throw new Error(`The group [${x}] cannot be placed within itself`);
3958
+ if (this.registeredIds?.[P] === void 0)
3960
3959
  throw new Error(
3961
- `The group [${D}]'s parent does not exist. Please make sure the parent is created before this group`
3960
+ `The group [${x}]'s parent does not exist. Please make sure the parent is created before this group`
3962
3961
  );
3963
- if (((a = this.registeredIds) == null ? void 0 : a[P]) === "node")
3964
- throw new Error(`The group [${D}]'s parent is not a group`);
3962
+ if (this.registeredIds?.[P] === "node")
3963
+ throw new Error(`The group [${x}]'s parent is not a group`);
3965
3964
  }
3966
- this.registeredIds[D] = "group", this.groups[D] = {
3967
- id: D,
3965
+ this.registeredIds[x] = "group", this.groups[x] = {
3966
+ id: x,
3968
3967
  icon: A,
3969
3968
  title: N,
3970
3969
  in: P
@@ -3974,53 +3973,53 @@ var xe = {
3974
3973
  return Object.values(this.groups);
3975
3974
  }
3976
3975
  addEdge({
3977
- lhsId: D,
3976
+ lhsId: x,
3978
3977
  rhsId: A,
3979
3978
  lhsDir: P,
3980
3979
  rhsDir: N,
3981
3980
  lhsInto: u,
3982
3981
  rhsInto: h,
3983
3982
  lhsGroup: a,
3984
- rhsGroup: r,
3985
- title: e
3983
+ rhsGroup: e,
3984
+ title: r
3986
3985
  }) {
3987
3986
  if (!Re(P))
3988
3987
  throw new Error(
3989
- `Invalid direction given for left hand side of edge ${D}--${A}. Expected (L,R,T,B) got ${String(P)}`
3988
+ `Invalid direction given for left hand side of edge ${x}--${A}. Expected (L,R,T,B) got ${String(P)}`
3990
3989
  );
3991
3990
  if (!Re(N))
3992
3991
  throw new Error(
3993
- `Invalid direction given for right hand side of edge ${D}--${A}. Expected (L,R,T,B) got ${String(N)}`
3992
+ `Invalid direction given for right hand side of edge ${x}--${A}. Expected (L,R,T,B) got ${String(N)}`
3994
3993
  );
3995
- if (this.nodes[D] === void 0 && this.groups[D] === void 0)
3994
+ if (this.nodes[x] === void 0 && this.groups[x] === void 0)
3996
3995
  throw new Error(
3997
- `The left-hand id [${D}] does not yet exist. Please create the service/group before declaring an edge to it.`
3996
+ `The left-hand id [${x}] does not yet exist. Please create the service/group before declaring an edge to it.`
3998
3997
  );
3999
3998
  if (this.nodes[A] === void 0 && this.groups[A] === void 0)
4000
3999
  throw new Error(
4001
4000
  `The right-hand id [${A}] does not yet exist. Please create the service/group before declaring an edge to it.`
4002
4001
  );
4003
- const f = this.nodes[D].in, i = this.nodes[A].in;
4004
- if (a && f && i && f == i)
4002
+ const l = this.nodes[x].in, i = this.nodes[A].in;
4003
+ if (a && l && i && l == i)
4005
4004
  throw new Error(
4006
- `The left-hand id [${D}] is modified to traverse the group boundary, but the edge does not pass through two groups.`
4005
+ `The left-hand id [${x}] is modified to traverse the group boundary, but the edge does not pass through two groups.`
4007
4006
  );
4008
- if (r && f && i && f == i)
4007
+ if (e && l && i && l == i)
4009
4008
  throw new Error(
4010
4009
  `The right-hand id [${A}] is modified to traverse the group boundary, but the edge does not pass through two groups.`
4011
4010
  );
4012
4011
  const g = {
4013
- lhsId: D,
4012
+ lhsId: x,
4014
4013
  lhsDir: P,
4015
4014
  lhsInto: u,
4016
4015
  lhsGroup: a,
4017
4016
  rhsId: A,
4018
4017
  rhsDir: N,
4019
4018
  rhsInto: h,
4020
- rhsGroup: r,
4021
- title: e
4019
+ rhsGroup: e,
4020
+ title: r
4022
4021
  };
4023
- this.edges.push(g), this.nodes[D] && this.nodes[A] && (this.nodes[D].edges.push(this.edges[this.edges.length - 1]), this.nodes[A].edges.push(this.edges[this.edges.length - 1]));
4022
+ this.edges.push(g), this.nodes[x] && this.nodes[A] && (this.nodes[x].edges.push(this.edges[this.edges.length - 1]), this.nodes[A].edges.push(this.edges[this.edges.length - 1]));
4024
4023
  }
4025
4024
  getEdges() {
4026
4025
  return this.edges;
@@ -4032,56 +4031,55 @@ var xe = {
4032
4031
  */
4033
4032
  getDataStructures() {
4034
4033
  if (this.dataStructures === void 0) {
4035
- const D = {}, A = Object.entries(this.nodes).reduce((r, [e, f]) => (r[e] = f.edges.reduce((i, g) => {
4036
- var s, c;
4037
- const t = (s = this.getNode(g.lhsId)) == null ? void 0 : s.in, o = (c = this.getNode(g.rhsId)) == null ? void 0 : c.in;
4034
+ const x = {}, A = Object.entries(this.nodes).reduce((e, [r, l]) => (e[r] = l.edges.reduce((i, g) => {
4035
+ const t = this.getNode(g.lhsId)?.in, o = this.getNode(g.rhsId)?.in;
4038
4036
  if (t && o && t !== o) {
4039
- const l = Mr(g.lhsDir, g.rhsDir);
4040
- l !== "bend" && (D[t] ?? (D[t] = {}), D[t][o] = l, D[o] ?? (D[o] = {}), D[o][t] = l);
4037
+ const s = Mr(g.lhsDir, g.rhsDir);
4038
+ s !== "bend" && (x[t] ??= {}, x[t][o] = s, x[o] ??= {}, x[o][t] = s);
4041
4039
  }
4042
- if (g.lhsId === e) {
4043
- const l = ye(g.lhsDir, g.rhsDir);
4044
- l && (i[l] = g.rhsId);
4040
+ if (g.lhsId === r) {
4041
+ const s = ye(g.lhsDir, g.rhsDir);
4042
+ s && (i[s] = g.rhsId);
4045
4043
  } else {
4046
- const l = ye(g.rhsDir, g.lhsDir);
4047
- l && (i[l] = g.lhsId);
4044
+ const s = ye(g.rhsDir, g.lhsDir);
4045
+ s && (i[s] = g.lhsId);
4048
4046
  }
4049
4047
  return i;
4050
- }, {}), r), {}), P = Object.keys(A)[0], N = { [P]: 1 }, u = Object.keys(A).reduce(
4051
- (r, e) => e === P ? r : { ...r, [e]: 1 },
4048
+ }, {}), e), {}), P = Object.keys(A)[0], N = { [P]: 1 }, u = Object.keys(A).reduce(
4049
+ (e, r) => r === P ? e : { ...e, [r]: 1 },
4052
4050
  {}
4053
- ), h = /* @__PURE__ */ dt((r) => {
4054
- const e = { [r]: [0, 0] }, f = [r];
4055
- for (; f.length > 0; ) {
4056
- const i = f.shift();
4051
+ ), h = /* @__PURE__ */ dt((e) => {
4052
+ const r = { [e]: [0, 0] }, l = [e];
4053
+ for (; l.length > 0; ) {
4054
+ const i = l.shift();
4057
4055
  if (i) {
4058
4056
  N[i] = 1, delete u[i];
4059
- const g = A[i], [t, o] = e[i];
4057
+ const g = A[i], [t, o] = r[i];
4060
4058
  Object.entries(g).forEach(([s, c]) => {
4061
- N[c] || (e[c] = Cr(
4059
+ N[c] || (r[c] = Cr(
4062
4060
  [t, o],
4063
4061
  s
4064
- ), f.push(c));
4062
+ ), l.push(c));
4065
4063
  });
4066
4064
  }
4067
4065
  }
4068
- return e;
4066
+ return r;
4069
4067
  }, "BFS"), a = [h(P)];
4070
4068
  for (; Object.keys(u).length > 0; )
4071
4069
  a.push(h(Object.keys(u)[0]));
4072
4070
  this.dataStructures = {
4073
4071
  adjList: A,
4074
4072
  spatialMaps: a,
4075
- groupAlignments: D
4073
+ groupAlignments: x
4076
4074
  };
4077
4075
  }
4078
4076
  return this.dataStructures;
4079
4077
  }
4080
- setElementForId(D, A) {
4081
- this.elements[D] = A;
4078
+ setElementForId(x, A) {
4079
+ this.elements[x] = A;
4082
4080
  }
4083
- getElementById(D) {
4084
- return this.elements[D];
4081
+ getElementById(x) {
4082
+ return this.elements[x];
4085
4083
  }
4086
4084
  getConfig() {
4087
4085
  return rr({
@@ -4089,26 +4087,25 @@ var xe = {
4089
4087
  ...ir().architecture
4090
4088
  });
4091
4089
  }
4092
- getConfigField(D) {
4093
- return this.getConfig()[D];
4090
+ getConfigField(x) {
4091
+ return this.getConfig()[x];
4094
4092
  }
4095
- }, dt(ae, "ArchitectureDB"), ae), xr = /* @__PURE__ */ dt((I, D) => {
4096
- fr(I, D), I.groups.map((A) => D.addGroup(A)), I.services.map((A) => D.addService({ ...A, type: "service" })), I.junctions.map((A) => D.addJunction({ ...A, type: "junction" })), I.edges.map((A) => D.addEdge(A));
4093
+ }, dt(ae, "ArchitectureDB"), ae), xr = /* @__PURE__ */ dt((I, x) => {
4094
+ fr(I, x), I.groups.map((A) => x.addGroup(A)), I.services.map((A) => x.addService({ ...A, type: "service" })), I.junctions.map((A) => x.addJunction({ ...A, type: "junction" })), I.edges.map((A) => x.addEdge(A));
4097
4095
  }, "populateDb"), Ge = {
4098
4096
  parser: {
4099
4097
  // @ts-expect-error - ArchitectureDB is not assignable to DiagramDB
4100
4098
  yy: void 0
4101
4099
  },
4102
4100
  parse: /* @__PURE__ */ dt(async (I) => {
4103
- var P;
4104
- const D = await cr("architecture", I);
4105
- Se.debug(D);
4106
- const A = (P = Ge.parser) == null ? void 0 : P.yy;
4101
+ const x = await cr("architecture", I);
4102
+ Se.debug(x);
4103
+ const A = Ge.parser?.yy;
4107
4104
  if (!(A instanceof Pe))
4108
4105
  throw new Error(
4109
4106
  "parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues."
4110
4107
  );
4111
- xr(D, A);
4108
+ xr(x, A);
4112
4109
  }, "parse")
4113
4110
  }, Ir = /* @__PURE__ */ dt((I) => `
4114
4111
  .edge {
@@ -4176,66 +4173,65 @@ var xe = {
4176
4173
  body: re("")
4177
4174
  }
4178
4175
  }
4179
- }, Sr = /* @__PURE__ */ dt(async function(I, D, A) {
4176
+ }, Sr = /* @__PURE__ */ dt(async function(I, x, A) {
4180
4177
  const P = A.getConfigField("padding"), N = A.getConfigField("iconSize"), u = N / 2, h = N / 6, a = h / 2;
4181
4178
  await Promise.all(
4182
- D.edges().map(async (r) => {
4183
- var K, X;
4179
+ x.edges().map(async (e) => {
4184
4180
  const {
4185
- source: e,
4186
- sourceDir: f,
4181
+ source: r,
4182
+ sourceDir: l,
4187
4183
  sourceArrow: i,
4188
4184
  sourceGroup: g,
4189
4185
  target: t,
4190
4186
  targetDir: o,
4191
4187
  targetArrow: s,
4192
4188
  targetGroup: c,
4193
- label: l
4194
- } = be(r);
4195
- let { x: T, y: d } = r[0].sourceEndpoint();
4196
- const { x: v, y: L } = r[0].midpoint();
4197
- let { x: S, y: C } = r[0].targetEndpoint();
4189
+ label: f
4190
+ } = be(e);
4191
+ let { x: T, y: d } = e[0].sourceEndpoint();
4192
+ const { x: v, y: L } = e[0].midpoint();
4193
+ let { x: b, y: C } = e[0].targetEndpoint();
4198
4194
  const G = P + 4;
4199
- if (g && (Wt(f) ? T += f === "L" ? -G : G : d += f === "T" ? -G : G + 18), c && (Wt(o) ? S += o === "L" ? -G : G : C += o === "T" ? -G : G + 18), !g && ((K = A.getNode(e)) == null ? void 0 : K.type) === "junction" && (Wt(f) ? T += f === "L" ? u : -u : d += f === "T" ? u : -u), !c && ((X = A.getNode(t)) == null ? void 0 : X.type) === "junction" && (Wt(o) ? S += o === "L" ? u : -u : C += o === "T" ? u : -u), r[0]._private.rscratch) {
4200
- const Q = I.insert("g");
4201
- if (Q.insert("path").attr("d", `M ${T},${d} L ${v},${L} L${S},${C} `).attr("class", "edge").attr("id", sr(e, t, { prefix: "L" })), i) {
4202
- const O = Wt(f) ? se[f](T, h) : T - a, rt = qt(f) ? se[f](d, h) : d - a;
4203
- Q.insert("polygon").attr("points", Ie[f](h)).attr("transform", `translate(${O},${rt})`).attr("class", "arrow");
4195
+ if (g && (Wt(l) ? T += l === "L" ? -G : G : d += l === "T" ? -G : G + 18), c && (Wt(o) ? b += o === "L" ? -G : G : C += o === "T" ? -G : G + 18), !g && A.getNode(r)?.type === "junction" && (Wt(l) ? T += l === "L" ? u : -u : d += l === "T" ? u : -u), !c && A.getNode(t)?.type === "junction" && (Wt(o) ? b += o === "L" ? u : -u : C += o === "T" ? u : -u), e[0]._private.rscratch) {
4196
+ const k = I.insert("g");
4197
+ if (k.insert("path").attr("d", `M ${T},${d} L ${v},${L} L${b},${C} `).attr("class", "edge").attr("id", sr(r, t, { prefix: "L" })), i) {
4198
+ const Y = Wt(l) ? se[l](T, h) : T - a, K = qt(l) ? se[l](d, h) : d - a;
4199
+ k.insert("polygon").attr("points", Ie[l](h)).attr("transform", `translate(${Y},${K})`).attr("class", "arrow");
4204
4200
  }
4205
4201
  if (s) {
4206
- const O = Wt(o) ? se[o](S, h) : S - a, rt = qt(o) ? se[o](C, h) : C - a;
4207
- Q.insert("polygon").attr("points", Ie[o](h)).attr("transform", `translate(${O},${rt})`).attr("class", "arrow");
4202
+ const Y = Wt(o) ? se[o](b, h) : b - a, K = qt(o) ? se[o](C, h) : C - a;
4203
+ k.insert("polygon").attr("points", Ie[o](h)).attr("transform", `translate(${Y},${K})`).attr("class", "arrow");
4208
4204
  }
4209
- if (l) {
4210
- const O = Te(f, o) ? "XY" : Wt(f) ? "X" : "Y";
4211
- let rt = 0;
4212
- O === "X" ? rt = Math.abs(T - S) : O === "Y" ? rt = Math.abs(d - C) / 1.5 : rt = Math.abs(T - S) / 2;
4213
- const n = Q.append("g");
4205
+ if (f) {
4206
+ const Y = Te(l, o) ? "XY" : Wt(l) ? "X" : "Y";
4207
+ let K = 0;
4208
+ Y === "X" ? K = Math.abs(T - b) : Y === "Y" ? K = Math.abs(d - C) / 1.5 : K = Math.abs(T - b) / 2;
4209
+ const O = k.append("g");
4214
4210
  if (await me(
4215
- n,
4216
- l,
4211
+ O,
4212
+ f,
4217
4213
  {
4218
4214
  useHtmlLabels: !1,
4219
- width: rt,
4215
+ width: K,
4220
4216
  classes: "architecture-service-label"
4221
4217
  },
4222
4218
  Ee()
4223
- ), n.attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle"), O === "X")
4224
- n.attr("transform", "translate(" + v + ", " + L + ")");
4225
- else if (O === "Y")
4226
- n.attr("transform", "translate(" + v + ", " + L + ") rotate(-90)");
4227
- else if (O === "XY") {
4228
- const m = ye(f, o);
4229
- if (m && Nr(m)) {
4230
- const p = n.node().getBoundingClientRect(), [E, y] = Ar(m);
4231
- n.attr("dominant-baseline", "auto").attr("transform", `rotate(${-1 * E * y * 45})`);
4232
- const R = n.node().getBoundingClientRect();
4233
- n.attr(
4219
+ ), O.attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle"), Y === "X")
4220
+ O.attr("transform", "translate(" + v + ", " + L + ")");
4221
+ else if (Y === "Y")
4222
+ O.attr("transform", "translate(" + v + ", " + L + ") rotate(-90)");
4223
+ else if (Y === "XY") {
4224
+ const it = ye(l, o);
4225
+ if (it && Nr(it)) {
4226
+ const n = O.node().getBoundingClientRect(), [m, p] = Ar(it);
4227
+ O.attr("dominant-baseline", "auto").attr("transform", `rotate(${-1 * m * p * 45})`);
4228
+ const E = O.node().getBoundingClientRect();
4229
+ O.attr(
4234
4230
  "transform",
4235
4231
  `
4236
- translate(${v}, ${L - p.height / 2})
4237
- translate(${E * R.width / 2}, ${y * R.height / 2})
4238
- rotate(${-1 * E * y * 45}, 0, ${p.height / 2})
4232
+ translate(${v}, ${L - n.height / 2})
4233
+ translate(${m * E.width / 2}, ${p * E.height / 2})
4234
+ rotate(${-1 * m * p * 45}, 0, ${n.height / 2})
4239
4235
  `
4240
4236
  );
4241
4237
  }
@@ -4244,30 +4240,30 @@ var xe = {
4244
4240
  }
4245
4241
  })
4246
4242
  );
4247
- }, "drawEdges"), Fr = /* @__PURE__ */ dt(async function(I, D, A) {
4243
+ }, "drawEdges"), Fr = /* @__PURE__ */ dt(async function(I, x, A) {
4248
4244
  const N = A.getConfigField("padding") * 0.75, u = A.getConfigField("fontSize"), a = A.getConfigField("iconSize") / 2;
4249
4245
  await Promise.all(
4250
- D.nodes().map(async (r) => {
4251
- const e = ie(r);
4252
- if (e.type === "group") {
4253
- const { h: f, w: i, x1: g, y1: t } = r.boundingBox(), o = I.append("rect");
4254
- o.attr("id", `group-${e.id}`).attr("x", g + a).attr("y", t + a).attr("width", i).attr("height", f).attr("class", "node-bkg");
4246
+ x.nodes().map(async (e) => {
4247
+ const r = ie(e);
4248
+ if (r.type === "group") {
4249
+ const { h: l, w: i, x1: g, y1: t } = e.boundingBox(), o = I.append("rect");
4250
+ o.attr("id", `group-${r.id}`).attr("x", g + a).attr("y", t + a).attr("width", i).attr("height", l).attr("class", "node-bkg");
4255
4251
  const s = I.append("g");
4256
- let c = g, l = t;
4257
- if (e.icon) {
4252
+ let c = g, f = t;
4253
+ if (r.icon) {
4258
4254
  const T = s.append("g");
4259
4255
  T.html(
4260
- `<g>${await pe(e.icon, { height: N, width: N, fallbackPrefix: ne.prefix })}</g>`
4256
+ `<g>${await pe(r.icon, { height: N, width: N, fallbackPrefix: ne.prefix })}</g>`
4261
4257
  ), T.attr(
4262
4258
  "transform",
4263
- "translate(" + (c + a + 1) + ", " + (l + a + 1) + ")"
4264
- ), c += N, l += u / 2 - 1 - 2;
4259
+ "translate(" + (c + a + 1) + ", " + (f + a + 1) + ")"
4260
+ ), c += N, f += u / 2 - 1 - 2;
4265
4261
  }
4266
- if (e.label) {
4262
+ if (r.label) {
4267
4263
  const T = s.append("g");
4268
4264
  await me(
4269
4265
  T,
4270
- e.label,
4266
+ r.label,
4271
4267
  {
4272
4268
  useHtmlLabels: !1,
4273
4269
  width: i,
@@ -4276,21 +4272,21 @@ var xe = {
4276
4272
  Ee()
4277
4273
  ), T.attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "start").attr("text-anchor", "start"), T.attr(
4278
4274
  "transform",
4279
- "translate(" + (c + a + 4) + ", " + (l + a + 2) + ")"
4275
+ "translate(" + (c + a + 4) + ", " + (f + a + 2) + ")"
4280
4276
  );
4281
4277
  }
4282
- A.setElementForId(e.id, o);
4278
+ A.setElementForId(r.id, o);
4283
4279
  }
4284
4280
  })
4285
4281
  );
4286
- }, "drawGroups"), br = /* @__PURE__ */ dt(async function(I, D, A) {
4282
+ }, "drawGroups"), br = /* @__PURE__ */ dt(async function(I, x, A) {
4287
4283
  const P = Ee();
4288
4284
  for (const N of A) {
4289
- const u = D.append("g"), h = I.getConfigField("iconSize");
4285
+ const u = x.append("g"), h = I.getConfigField("iconSize");
4290
4286
  if (N.title) {
4291
- const f = u.append("g");
4287
+ const l = u.append("g");
4292
4288
  await me(
4293
- f,
4289
+ l,
4294
4290
  N.title,
4295
4291
  {
4296
4292
  useHtmlLabels: !1,
@@ -4298,7 +4294,7 @@ var xe = {
4298
4294
  classes: "architecture-service-label"
4299
4295
  },
4300
4296
  P
4301
- ), f.attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle"), f.attr("transform", "translate(" + h / 2 + ", " + h + ")");
4297
+ ), l.attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle"), l.attr("transform", "translate(" + h / 2 + ", " + h + ")");
4302
4298
  }
4303
4299
  const a = u.append("g");
4304
4300
  if (N.icon)
@@ -4319,16 +4315,16 @@ var xe = {
4319
4315
  `M0 ${h} v${-h} q0,-5 5,-5 h${h} q5,0 5,5 v${h} H0 Z`
4320
4316
  );
4321
4317
  u.attr("id", `service-${N.id}`).attr("class", "architecture-service");
4322
- const { width: r, height: e } = u.node().getBBox();
4323
- N.width = r, N.height = e, I.setElementForId(N.id, u);
4318
+ const { width: e, height: r } = u.node().getBBox();
4319
+ N.width = e, N.height = r, I.setElementForId(N.id, u);
4324
4320
  }
4325
4321
  return 0;
4326
- }, "drawServices"), Pr = /* @__PURE__ */ dt(function(I, D, A) {
4322
+ }, "drawServices"), Pr = /* @__PURE__ */ dt(function(I, x, A) {
4327
4323
  A.forEach((P) => {
4328
- const N = D.append("g"), u = I.getConfigField("iconSize");
4324
+ const N = x.append("g"), u = I.getConfigField("iconSize");
4329
4325
  N.append("g").append("rect").attr("id", "node-" + P.id).attr("fill-opacity", "0").attr("width", u).attr("height", u), N.attr("class", "architecture-junction");
4330
- const { width: a, height: r } = N._groups[0][0].getBBox();
4331
- N.width = a, N.height = r, I.setElementForId(P.id, N);
4326
+ const { width: a, height: e } = N._groups[0][0].getBBox();
4327
+ N.width = a, N.height = e, I.setElementForId(P.id, N);
4332
4328
  });
4333
4329
  }, "drawJunctions");
4334
4330
  hr([
@@ -4338,9 +4334,9 @@ hr([
4338
4334
  }
4339
4335
  ]);
4340
4336
  Fe.use(mr);
4341
- function Ue(I, D, A) {
4337
+ function Ue(I, x, A) {
4342
4338
  I.forEach((P) => {
4343
- D.add({
4339
+ x.add({
4344
4340
  group: "nodes",
4345
4341
  data: {
4346
4342
  type: "service",
@@ -4356,9 +4352,9 @@ function Ue(I, D, A) {
4356
4352
  });
4357
4353
  }
4358
4354
  dt(Ue, "addServices");
4359
- function Ye(I, D, A) {
4355
+ function Ye(I, x, A) {
4360
4356
  I.forEach((P) => {
4361
- D.add({
4357
+ x.add({
4362
4358
  group: "nodes",
4363
4359
  data: {
4364
4360
  type: "junction",
@@ -4372,8 +4368,8 @@ function Ye(I, D, A) {
4372
4368
  });
4373
4369
  }
4374
4370
  dt(Ye, "addJunctions");
4375
- function Xe(I, D) {
4376
- D.nodes().map((A) => {
4371
+ function Xe(I, x) {
4372
+ x.nodes().map((A) => {
4377
4373
  const P = ie(A);
4378
4374
  if (P.type === "group")
4379
4375
  return;
@@ -4381,9 +4377,9 @@ function Xe(I, D) {
4381
4377
  });
4382
4378
  }
4383
4379
  dt(Xe, "positionNodes");
4384
- function He(I, D) {
4380
+ function He(I, x) {
4385
4381
  I.forEach((A) => {
4386
- D.add({
4382
+ x.add({
4387
4383
  group: "nodes",
4388
4384
  data: {
4389
4385
  type: "group",
@@ -4397,23 +4393,23 @@ function He(I, D) {
4397
4393
  });
4398
4394
  }
4399
4395
  dt(He, "addGroups");
4400
- function We(I, D) {
4396
+ function We(I, x) {
4401
4397
  I.forEach((A) => {
4402
- const { lhsId: P, rhsId: N, lhsInto: u, lhsGroup: h, rhsInto: a, lhsDir: r, rhsDir: e, rhsGroup: f, title: i } = A, g = Te(A.lhsDir, A.rhsDir) ? "segments" : "straight", t = {
4398
+ const { lhsId: P, rhsId: N, lhsInto: u, lhsGroup: h, rhsInto: a, lhsDir: e, rhsDir: r, rhsGroup: l, title: i } = A, g = Te(A.lhsDir, A.rhsDir) ? "segments" : "straight", t = {
4403
4399
  id: `${P}-${N}`,
4404
4400
  label: i,
4405
4401
  source: P,
4406
- sourceDir: r,
4402
+ sourceDir: e,
4407
4403
  sourceArrow: u,
4408
4404
  sourceGroup: h,
4409
- sourceEndpoint: r === "L" ? "0 50%" : r === "R" ? "100% 50%" : r === "T" ? "50% 0" : "50% 100%",
4405
+ sourceEndpoint: e === "L" ? "0 50%" : e === "R" ? "100% 50%" : e === "T" ? "50% 0" : "50% 100%",
4410
4406
  target: N,
4411
- targetDir: e,
4407
+ targetDir: r,
4412
4408
  targetArrow: a,
4413
- targetGroup: f,
4414
- targetEndpoint: e === "L" ? "0 50%" : e === "R" ? "100% 50%" : e === "T" ? "50% 0" : "50% 100%"
4409
+ targetGroup: l,
4410
+ targetEndpoint: r === "L" ? "0 50%" : r === "R" ? "100% 50%" : r === "T" ? "50% 0" : "50% 100%"
4415
4411
  };
4416
- D.add({
4412
+ x.add({
4417
4413
  group: "edges",
4418
4414
  data: t,
4419
4415
  classes: g
@@ -4421,49 +4417,47 @@ function We(I, D) {
4421
4417
  });
4422
4418
  }
4423
4419
  dt(We, "addEdges");
4424
- function Ve(I, D, A) {
4425
- const P = /* @__PURE__ */ dt((a, r) => Object.entries(a).reduce(
4426
- (e, [f, i]) => {
4427
- var o;
4420
+ function Ve(I, x, A) {
4421
+ const P = /* @__PURE__ */ dt((a, e) => Object.entries(a).reduce(
4422
+ (r, [l, i]) => {
4428
4423
  let g = 0;
4429
4424
  const t = Object.entries(i);
4430
4425
  if (t.length === 1)
4431
- return e[f] = t[0][1], e;
4432
- for (let s = 0; s < t.length - 1; s++)
4433
- for (let c = s + 1; c < t.length; c++) {
4434
- const [l, T] = t[s], [d, v] = t[c];
4435
- if (((o = A[l]) == null ? void 0 : o[d]) === r)
4436
- e[f] ?? (e[f] = []), e[f] = [...e[f], ...T, ...v];
4437
- else if (l === "default" || d === "default")
4438
- e[f] ?? (e[f] = []), e[f] = [...e[f], ...T, ...v];
4426
+ return r[l] = t[0][1], r;
4427
+ for (let o = 0; o < t.length - 1; o++)
4428
+ for (let s = o + 1; s < t.length; s++) {
4429
+ const [c, f] = t[o], [T, d] = t[s];
4430
+ if (A[c]?.[T] === e)
4431
+ r[l] ??= [], r[l] = [...r[l], ...f, ...d];
4432
+ else if (c === "default" || T === "default")
4433
+ r[l] ??= [], r[l] = [...r[l], ...f, ...d];
4439
4434
  else {
4440
- const S = `${f}-${g++}`;
4441
- e[S] = T;
4442
- const C = `${f}-${g++}`;
4443
- e[C] = v;
4435
+ const L = `${l}-${g++}`;
4436
+ r[L] = f;
4437
+ const b = `${l}-${g++}`;
4438
+ r[b] = d;
4444
4439
  }
4445
4440
  }
4446
- return e;
4441
+ return r;
4447
4442
  },
4448
4443
  {}
4449
- ), "flattenAlignments"), N = D.map((a) => {
4450
- const r = {}, e = {};
4451
- return Object.entries(a).forEach(([f, [i, g]]) => {
4452
- var o, s, c;
4453
- const t = ((o = I.getNode(f)) == null ? void 0 : o.in) ?? "default";
4454
- r[g] ?? (r[g] = {}), (s = r[g])[t] ?? (s[t] = []), r[g][t].push(f), e[i] ?? (e[i] = {}), (c = e[i])[t] ?? (c[t] = []), e[i][t].push(f);
4444
+ ), "flattenAlignments"), N = x.map((a) => {
4445
+ const e = {}, r = {};
4446
+ return Object.entries(a).forEach(([l, [i, g]]) => {
4447
+ const t = I.getNode(l)?.in ?? "default";
4448
+ e[g] ??= {}, e[g][t] ??= [], e[g][t].push(l), r[i] ??= {}, r[i][t] ??= [], r[i][t].push(l);
4455
4449
  }), {
4456
- horiz: Object.values(P(r, "horizontal")).filter(
4457
- (f) => f.length > 1
4450
+ horiz: Object.values(P(e, "horizontal")).filter(
4451
+ (l) => l.length > 1
4458
4452
  ),
4459
- vert: Object.values(P(e, "vertical")).filter(
4460
- (f) => f.length > 1
4453
+ vert: Object.values(P(r, "vertical")).filter(
4454
+ (l) => l.length > 1
4461
4455
  )
4462
4456
  };
4463
4457
  }), [u, h] = N.reduce(
4464
- ([a, r], { horiz: e, vert: f }) => [
4465
- [...a, ...e],
4466
- [...r, ...f]
4458
+ ([a, e], { horiz: r, vert: l }) => [
4459
+ [...a, ...r],
4460
+ [...e, ...l]
4467
4461
  ],
4468
4462
  [[], []]
4469
4463
  );
@@ -4473,30 +4467,30 @@ function Ve(I, D, A) {
4473
4467
  };
4474
4468
  }
4475
4469
  dt(Ve, "getAlignments");
4476
- function ze(I, D) {
4470
+ function ze(I, x) {
4477
4471
  const A = [], P = /* @__PURE__ */ dt((u) => `${u[0]},${u[1]}`, "posToStr"), N = /* @__PURE__ */ dt((u) => u.split(",").map((h) => parseInt(h)), "strToPos");
4478
4472
  return I.forEach((u) => {
4479
4473
  const h = Object.fromEntries(
4480
- Object.entries(u).map(([f, i]) => [P(i), f])
4481
- ), a = [P([0, 0])], r = {}, e = {
4474
+ Object.entries(u).map(([l, i]) => [P(i), l])
4475
+ ), a = [P([0, 0])], e = {}, r = {
4482
4476
  L: [-1, 0],
4483
4477
  R: [1, 0],
4484
4478
  T: [0, 1],
4485
4479
  B: [0, -1]
4486
4480
  };
4487
4481
  for (; a.length > 0; ) {
4488
- const f = a.shift();
4489
- if (f) {
4490
- r[f] = 1;
4491
- const i = h[f];
4482
+ const l = a.shift();
4483
+ if (l) {
4484
+ e[l] = 1;
4485
+ const i = h[l];
4492
4486
  if (i) {
4493
- const g = N(f);
4494
- Object.entries(e).forEach(([t, o]) => {
4487
+ const g = N(l);
4488
+ Object.entries(r).forEach(([t, o]) => {
4495
4489
  const s = P([g[0] + o[0], g[1] + o[1]]), c = h[s];
4496
- c && !r[s] && (a.push(s), A.push({
4490
+ c && !e[s] && (a.push(s), A.push({
4497
4491
  [xe[t]]: c,
4498
4492
  [xe[Tr(t)]]: i,
4499
- gap: 1.5 * D.getConfigField("iconSize")
4493
+ gap: 1.5 * x.getConfigField("iconSize")
4500
4494
  }));
4501
4495
  });
4502
4496
  }
@@ -4505,9 +4499,9 @@ function ze(I, D) {
4505
4499
  }), A;
4506
4500
  }
4507
4501
  dt(ze, "getRelativeConstraints");
4508
- function $e(I, D, A, P, N, { spatialMaps: u, groupAlignments: h }) {
4502
+ function $e(I, x, A, P, N, { spatialMaps: u, groupAlignments: h }) {
4509
4503
  return new Promise((a) => {
4510
- const r = or("body").append("div").attr("id", "cy").attr("style", "display:none"), e = Fe({
4504
+ const e = or("body").append("div").attr("id", "cy").attr("style", "display:none"), r = Fe({
4511
4505
  container: document.getElementById("cy"),
4512
4506
  style: [
4513
4507
  {
@@ -4579,8 +4573,8 @@ function $e(I, D, A, P, N, { spatialMaps: u, groupAlignments: h }) {
4579
4573
  }
4580
4574
  }
4581
4575
  });
4582
- r.remove(), He(A, e), Ue(I, e, N), Ye(D, e, N), We(P, e);
4583
- const f = Ve(N, u, h), i = ze(u, N), g = e.layout({
4576
+ e.remove(), He(A, r), Ue(I, r, N), Ye(x, r, N), We(P, r);
4577
+ const l = Ve(N, u, h), i = ze(u, N), g = r.layout({
4584
4578
  name: "fcose",
4585
4579
  quality: "proof",
4586
4580
  styleEnabled: !1,
@@ -4589,72 +4583,71 @@ function $e(I, D, A, P, N, { spatialMaps: u, groupAlignments: h }) {
4589
4583
  // Adjust the edge parameters if it passes through the border of a group
4590
4584
  // Hacky fix for: https://github.com/iVis-at-Bilkent/cytoscape.js-fcose/issues/67
4591
4585
  idealEdgeLength(t) {
4592
- const [o, s] = t.connectedNodes(), { parent: c } = ie(o), { parent: l } = ie(s);
4593
- return c === l ? 1.5 * N.getConfigField("iconSize") : 0.5 * N.getConfigField("iconSize");
4586
+ const [o, s] = t.connectedNodes(), { parent: c } = ie(o), { parent: f } = ie(s);
4587
+ return c === f ? 1.5 * N.getConfigField("iconSize") : 0.5 * N.getConfigField("iconSize");
4594
4588
  },
4595
4589
  edgeElasticity(t) {
4596
- const [o, s] = t.connectedNodes(), { parent: c } = ie(o), { parent: l } = ie(s);
4597
- return c === l ? 0.45 : 1e-3;
4590
+ const [o, s] = t.connectedNodes(), { parent: c } = ie(o), { parent: f } = ie(s);
4591
+ return c === f ? 0.45 : 1e-3;
4598
4592
  },
4599
- alignmentConstraint: f,
4593
+ alignmentConstraint: l,
4600
4594
  relativePlacementConstraint: i
4601
4595
  });
4602
4596
  g.one("layoutstop", () => {
4603
- var o;
4604
- function t(s, c, l, T) {
4605
- let d, v;
4606
- const { x: L, y: S } = s, { x: C, y: G } = c;
4607
- v = (T - S + (L - l) * (S - G) / (L - C)) / Math.sqrt(1 + Math.pow((S - G) / (L - C), 2)), d = Math.sqrt(Math.pow(T - S, 2) + Math.pow(l - L, 2) - Math.pow(v, 2));
4608
- const K = Math.sqrt(Math.pow(C - L, 2) + Math.pow(G - S, 2));
4609
- d = d / K;
4610
- let X = (C - L) * (T - S) - (G - S) * (l - L);
4597
+ function t(o, s, c, f) {
4598
+ let T, d;
4599
+ const { x: v, y: L } = o, { x: b, y: C } = s;
4600
+ d = (f - L + (v - c) * (L - C) / (v - b)) / Math.sqrt(1 + Math.pow((L - C) / (v - b), 2)), T = Math.sqrt(Math.pow(f - L, 2) + Math.pow(c - v, 2) - Math.pow(d, 2));
4601
+ const G = Math.sqrt(Math.pow(b - v, 2) + Math.pow(C - L, 2));
4602
+ T = T / G;
4603
+ let k = (b - v) * (f - L) - (C - L) * (c - v);
4611
4604
  switch (!0) {
4612
- case X >= 0:
4613
- X = 1;
4605
+ case k >= 0:
4606
+ k = 1;
4614
4607
  break;
4615
- case X < 0:
4616
- X = -1;
4608
+ case k < 0:
4609
+ k = -1;
4617
4610
  break;
4618
4611
  }
4619
- let Q = (C - L) * (l - L) + (G - S) * (T - S);
4612
+ let Y = (b - v) * (c - v) + (C - L) * (f - L);
4620
4613
  switch (!0) {
4621
- case Q >= 0:
4622
- Q = 1;
4614
+ case Y >= 0:
4615
+ Y = 1;
4623
4616
  break;
4624
- case Q < 0:
4625
- Q = -1;
4617
+ case Y < 0:
4618
+ Y = -1;
4626
4619
  break;
4627
4620
  }
4628
- return v = Math.abs(v) * X, d = d * Q, {
4629
- distances: v,
4630
- weights: d
4621
+ return d = Math.abs(d) * k, T = T * Y, {
4622
+ distances: d,
4623
+ weights: T
4631
4624
  };
4632
4625
  }
4633
- dt(t, "getSegmentWeights"), e.startBatch();
4634
- for (const s of Object.values(e.edges()))
4635
- if ((o = s.data) != null && o.call(s)) {
4636
- const { x: c, y: l } = s.source().position(), { x: T, y: d } = s.target().position();
4637
- if (c !== T && l !== d) {
4638
- const v = s.sourceEndpoint(), L = s.targetEndpoint(), { sourceDir: S } = be(s), [C, G] = qt(S) ? [v.x, L.y] : [L.x, v.y], { weights: K, distances: X } = t(v, L, C, G);
4639
- s.style("segment-distances", X), s.style("segment-weights", K);
4626
+ dt(t, "getSegmentWeights"), r.startBatch();
4627
+ for (const o of Object.values(r.edges()))
4628
+ if (o.data?.()) {
4629
+ const { x: s, y: c } = o.source().position(), { x: f, y: T } = o.target().position();
4630
+ if (s !== f && c !== T) {
4631
+ const d = o.sourceEndpoint(), v = o.targetEndpoint(), { sourceDir: L } = be(o), [b, C] = qt(L) ? [d.x, v.y] : [v.x, d.y], { weights: G, distances: k } = t(d, v, b, C);
4632
+ o.style("segment-distances", k), o.style("segment-weights", G);
4640
4633
  }
4641
4634
  }
4642
- e.endBatch(), g.run();
4643
- }), g.run(), e.ready((t) => {
4644
- Se.info("Ready", t), a(e);
4635
+ r.endBatch(), g.run();
4636
+ }), g.run(), r.ready((t) => {
4637
+ Se.info("Ready", t), a(r);
4645
4638
  });
4646
4639
  });
4647
4640
  }
4648
4641
  dt($e, "layoutArchitecture");
4649
- var Gr = /* @__PURE__ */ dt(async (I, D, A, P) => {
4650
- const N = P.db, u = N.getServices(), h = N.getJunctions(), a = N.getGroups(), r = N.getEdges(), e = N.getDataStructures(), f = ke(D), i = f.append("g");
4642
+ var Gr = /* @__PURE__ */ dt(async (I, x, A, P) => {
4643
+ const N = P.db, u = N.getServices(), h = N.getJunctions(), a = N.getGroups(), e = N.getEdges(), r = N.getDataStructures(), l = ke(x), i = l.append("g");
4651
4644
  i.attr("class", "architecture-edges");
4652
- const g = f.append("g");
4645
+ const g = l.append("g");
4653
4646
  g.attr("class", "architecture-services");
4654
- const t = f.append("g");
4647
+ const t = l.append("g");
4655
4648
  t.attr("class", "architecture-groups"), await br(N, g, u), Pr(N, g, h);
4656
- const o = await $e(u, h, a, r, N, e);
4657
- await Sr(i, o, N), await Fr(t, o, N), Xe(N, o), qe(void 0, f, N.getConfigField("padding"), N.getConfigField("useMaxWidth"));
4649
+ const o = await $e(u, h, a, e, N, r);
4650
+ await Sr(i, o, N), await Fr(t, o, N), Xe(N, o), qe(void 0, l, N.getConfigField("padding"), N.getConfigField("useMaxWidth"));
4658
4651
  }, "draw"), Ur = { draw: Gr }, Vr = {
4659
4652
  parser: Ge,
4660
4653
  get db() {