@epic-web/workshop-app 6.14.2 → 6.14.3

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 (331) hide show
  1. package/build/client/assets/{_-DV4Ha66L.js → _-BuqsX9jL.js} +2 -2
  2. package/build/client/assets/{_-DV4Ha66L.js.map → _-BuqsX9jL.js.map} +1 -1
  3. package/build/client/assets/{_-BEfdnu_S.js → _-DinosGr4.js} +2 -2
  4. package/build/client/assets/_-DinosGr4.js.map +1 -0
  5. package/build/client/assets/{_basePickBy-BXbL7qon.js → _basePickBy-BWxiEF6L.js} +2 -2
  6. package/build/client/assets/{_basePickBy-BXbL7qon.js.map → _basePickBy-BWxiEF6L.js.map} +1 -1
  7. package/build/client/assets/{_baseUniq-CtZFfRif.js → _baseUniq-D0omyKdo.js} +2 -2
  8. package/build/client/assets/{_baseUniq-CtZFfRif.js.map → _baseUniq-D0omyKdo.js.map} +1 -1
  9. package/build/client/assets/{_exerciseNumber-BcHM923A.js → _exerciseNumber-CRbv3t2H.js} +2 -2
  10. package/build/client/assets/{_exerciseNumber-BcHM923A.js.map → _exerciseNumber-CRbv3t2H.js.map} +1 -1
  11. package/build/client/assets/{_exerciseNumber_._stepNumber-DkoV9tCf.js → _exerciseNumber_._stepNumber-Q9yj8rZH.js} +2 -2
  12. package/build/client/assets/{_exerciseNumber_._stepNumber-DkoV9tCf.js.map → _exerciseNumber_._stepNumber-Q9yj8rZH.js.map} +1 -1
  13. package/build/client/assets/_exerciseNumber_._stepNumber.index-CpmpbABn.js +2 -0
  14. package/build/client/assets/_exerciseNumber_._stepNumber.index-CpmpbABn.js.map +1 -0
  15. package/build/client/assets/{_exerciseNumber_.finished-BzyI4yot.js → _exerciseNumber_.finished-CF34bJFr.js} +2 -2
  16. package/build/client/assets/{_exerciseNumber_.finished-BzyI4yot.js.map → _exerciseNumber_.finished-CF34bJFr.js.map} +1 -1
  17. package/build/client/assets/{_layout-DHLUa4_9.js → _layout-CnPbZRab.js} +2 -2
  18. package/build/client/assets/{_layout-DHLUa4_9.js.map → _layout-CnPbZRab.js.map} +1 -1
  19. package/build/client/assets/_layout-DiAMIdWk.js +2 -0
  20. package/build/client/assets/{_layout-DQs7hBSg.js.map → _layout-DiAMIdWk.js.map} +1 -1
  21. package/build/client/assets/{_layout-EWv-HN0t.js → _layout-gt3F6WY7.js} +2 -2
  22. package/build/client/assets/{_layout-EWv-HN0t.js.map → _layout-gt3F6WY7.js.map} +1 -1
  23. package/build/client/assets/{_layout-C2qBYSs9.js → _layout-rnQcLakR.js} +2 -2
  24. package/build/client/assets/{_layout-C2qBYSs9.js.map → _layout-rnQcLakR.js.map} +1 -1
  25. package/build/client/assets/{accordion-BNwue7tP.js → accordion-AYJh-rtE.js} +2 -2
  26. package/build/client/assets/{accordion-BNwue7tP.js.map → accordion-AYJh-rtE.js.map} +1 -1
  27. package/build/client/assets/{account-DpWyl5D8.js → account-DG43IEEo.js} +2 -2
  28. package/build/client/assets/{account-DpWyl5D8.js.map → account-DG43IEEo.js.map} +1 -1
  29. package/build/client/assets/api._-CpmpbABn.js +2 -0
  30. package/build/client/assets/api._-CpmpbABn.js.map +1 -0
  31. package/build/client/assets/app-BejX_HAI.js +2 -0
  32. package/build/client/assets/{app-B6Asqz0_.js.map → app-BejX_HAI.js.map} +1 -1
  33. package/build/client/assets/app.epic_ws_.js_-CpmpbABn.js +2 -0
  34. package/build/client/assets/app.epic_ws_.js_-CpmpbABn.js.map +1 -0
  35. package/build/client/assets/apps-Btba-K9Q.js +2 -0
  36. package/build/client/assets/apps-Btba-K9Q.js.map +1 -0
  37. package/build/client/assets/apps-CpmpbABn.js +2 -0
  38. package/build/client/assets/apps-CpmpbABn.js.map +1 -0
  39. package/build/client/assets/{arc-BMVfhJT3.js → arc-DnPvHhUK.js} +2 -2
  40. package/build/client/assets/{arc-BMVfhJT3.js.map → arc-DnPvHhUK.js.map} +1 -1
  41. package/build/client/assets/{architectureDiagram-NQ2NVSRB-BIdrgV0s.js → architectureDiagram-NQ2NVSRB-DkGn5Zso.js} +2 -2
  42. package/build/client/assets/{architectureDiagram-NQ2NVSRB-BIdrgV0s.js.map → architectureDiagram-NQ2NVSRB-DkGn5Zso.js.map} +1 -1
  43. package/build/client/assets/{blockDiagram-PHRCVELO-BbpPuqMV.js → blockDiagram-PHRCVELO-CWEnQ3zq.js} +2 -2
  44. package/build/client/assets/{blockDiagram-PHRCVELO-BbpPuqMV.js.map → blockDiagram-PHRCVELO-CWEnQ3zq.js.map} +1 -1
  45. package/build/client/assets/{button-D02M3k_A.js → button-Bj2M84MD.js} +2 -2
  46. package/build/client/assets/{button-D02M3k_A.js.map → button-Bj2M84MD.js.map} +1 -1
  47. package/build/client/assets/{c4Diagram-6F6E4RAY-fp3r0ui0.js → c4Diagram-6F6E4RAY-CT_sEMCs.js} +2 -2
  48. package/build/client/assets/{c4Diagram-6F6E4RAY-fp3r0ui0.js.map → c4Diagram-6F6E4RAY-CT_sEMCs.js.map} +1 -1
  49. package/build/client/assets/cache-CpmpbABn.js +2 -0
  50. package/build/client/assets/cache-CpmpbABn.js.map +1 -0
  51. package/build/client/assets/channel-BeLxxkZE.js +2 -0
  52. package/build/client/assets/{channel-BWGVHDK-.js.map → channel-BeLxxkZE.js.map} +1 -1
  53. package/build/client/assets/{chunk-353BL4L5-C8aHupyU.js → chunk-353BL4L5-DdT6pwPP.js} +2 -2
  54. package/build/client/assets/{chunk-353BL4L5-C8aHupyU.js.map → chunk-353BL4L5-DdT6pwPP.js.map} +1 -1
  55. package/build/client/assets/{chunk-67H74DCK-BOeVunjk.js → chunk-67H74DCK-B92r5qri.js} +2 -2
  56. package/build/client/assets/{chunk-67H74DCK-BOeVunjk.js.map → chunk-67H74DCK-B92r5qri.js.map} +1 -1
  57. package/build/client/assets/{chunk-6OLS64BW-CFvuQ04p.js → chunk-6OLS64BW-BEy9KJ5f.js} +2 -2
  58. package/build/client/assets/{chunk-6OLS64BW-CFvuQ04p.js.map → chunk-6OLS64BW-BEy9KJ5f.js.map} +1 -1
  59. package/build/client/assets/{chunk-AACKK3MU-BetTIqd0.js → chunk-AACKK3MU-Cw-HKrX6.js} +2 -2
  60. package/build/client/assets/{chunk-AACKK3MU-BetTIqd0.js.map → chunk-AACKK3MU-Cw-HKrX6.js.map} +1 -1
  61. package/build/client/assets/{chunk-BFAMUDN2-C2PbRhzm.js → chunk-BFAMUDN2-9lgHCThd.js} +2 -2
  62. package/build/client/assets/{chunk-BFAMUDN2-C2PbRhzm.js.map → chunk-BFAMUDN2-9lgHCThd.js.map} +1 -1
  63. package/build/client/assets/{chunk-E2GYISFI-Bl4n1xdN.js → chunk-E2GYISFI-CEJToJ2v.js} +2 -2
  64. package/build/client/assets/{chunk-E2GYISFI-Bl4n1xdN.js.map → chunk-E2GYISFI-CEJToJ2v.js.map} +1 -1
  65. package/build/client/assets/{chunk-QEP2MXWD-mvodIAlz.js → chunk-QEP2MXWD-BofXD0BC.js} +2 -2
  66. package/build/client/assets/{chunk-QEP2MXWD-mvodIAlz.js.map → chunk-QEP2MXWD-BofXD0BC.js.map} +1 -1
  67. package/build/client/assets/{chunk-QMGIS6GS-Du-_uMOD.js → chunk-QMGIS6GS-s1sqUxzz.js} +2 -2
  68. package/build/client/assets/{chunk-QMGIS6GS-Du-_uMOD.js.map → chunk-QMGIS6GS-s1sqUxzz.js.map} +1 -1
  69. package/build/client/assets/{chunk-SKB7J2MH-Bbw5Ks_7.js → chunk-SKB7J2MH-DXa3NVrE.js} +2 -2
  70. package/build/client/assets/{chunk-SKB7J2MH-Bbw5Ks_7.js.map → chunk-SKB7J2MH-DXa3NVrE.js.map} +1 -1
  71. package/build/client/assets/classDiagram-BGRH5UQR-aV0KX_qv.js +2 -0
  72. package/build/client/assets/{classDiagram-BGRH5UQR-B43E4NNs.js.map → classDiagram-BGRH5UQR-aV0KX_qv.js.map} +1 -1
  73. package/build/client/assets/classDiagram-v2-O24JOBDK-aV0KX_qv.js +2 -0
  74. package/build/client/assets/{classDiagram-v2-O24JOBDK-B43E4NNs.js.map → classDiagram-v2-O24JOBDK-aV0KX_qv.js.map} +1 -1
  75. package/build/client/assets/clone-DqaJG4aH.js +2 -0
  76. package/build/client/assets/{clone-BniOf7Yb.js.map → clone-DqaJG4aH.js.map} +1 -1
  77. package/build/client/assets/{dagre-FFZHY6LT-vKH6qeW_.js → dagre-FFZHY6LT-B68Pp1mI.js} +2 -2
  78. package/build/client/assets/{dagre-FFZHY6LT-vKH6qeW_.js.map → dagre-FFZHY6LT-B68Pp1mI.js.map} +1 -1
  79. package/build/client/assets/{diagram-3EMPZRKU-D3BTQE0v.js → diagram-3EMPZRKU-DRVvTI2i.js} +2 -2
  80. package/build/client/assets/{diagram-3EMPZRKU-D3BTQE0v.js.map → diagram-3EMPZRKU-DRVvTI2i.js.map} +1 -1
  81. package/build/client/assets/{diagram-5UYTHUR4-BadShsGf.js → diagram-5UYTHUR4-D_dp2UMv.js} +2 -2
  82. package/build/client/assets/{diagram-5UYTHUR4-BadShsGf.js.map → diagram-5UYTHUR4-D_dp2UMv.js.map} +1 -1
  83. package/build/client/assets/{diagram-ZTM2IBQH-D9jJN3bl.js → diagram-ZTM2IBQH-RObBkpH0.js} +2 -2
  84. package/build/client/assets/{diagram-ZTM2IBQH-D9jJN3bl.js.map → diagram-ZTM2IBQH-RObBkpH0.js.map} +1 -1
  85. package/build/client/assets/diff-B7gB6c2G.js +2 -0
  86. package/build/client/assets/{diff-CQVU7E-h.js.map → diff-B7gB6c2G.js.map} +1 -1
  87. package/build/client/assets/{diff-B376IevU.js → diff-DhipGoJ9.js} +2 -2
  88. package/build/client/assets/{diff-B376IevU.js.map → diff-DhipGoJ9.js.map} +1 -1
  89. package/build/client/assets/{discord-Cx03Cky4.js → discord-CcDU3lmV.js} +2 -2
  90. package/build/client/assets/{discord-Cx03Cky4.js.map → discord-CcDU3lmV.js.map} +1 -1
  91. package/build/client/assets/discord-WVHyDde2.js +2 -0
  92. package/build/client/assets/discord-WVHyDde2.js.map +1 -0
  93. package/build/client/assets/{entry.client-C-f7Acxq.js → entry.client-Bep3EH-f.js} +2 -2
  94. package/build/client/assets/{entry.client-C-f7Acxq.js.map → entry.client-Bep3EH-f.js.map} +1 -1
  95. package/build/client/assets/{epic-video-CYB9v08Z.js → epic-video-BXvzDHIB.js} +2 -2
  96. package/build/client/assets/{epic-video-CYB9v08Z.js.map → epic-video-BXvzDHIB.js.map} +1 -1
  97. package/build/client/assets/epic_ws_.js_-CpmpbABn.js +2 -0
  98. package/build/client/assets/epic_ws_.js_-CpmpbABn.js.map +1 -0
  99. package/build/client/assets/{erDiagram-R3QVA2FD-DA8ObfcQ.js → erDiagram-R3QVA2FD-BM1lu2-V.js} +2 -2
  100. package/build/client/assets/{erDiagram-R3QVA2FD-DA8ObfcQ.js.map → erDiagram-R3QVA2FD-BM1lu2-V.js.map} +1 -1
  101. package/build/client/assets/{error-boundary-BVQLpMgs.js → error-boundary-BhpCzxkD.js} +2 -2
  102. package/build/client/assets/{error-boundary-BVQLpMgs.js.map → error-boundary-BhpCzxkD.js.map} +1 -1
  103. package/build/client/assets/exercises-CpmpbABn.js +2 -0
  104. package/build/client/assets/exercises-CpmpbABn.js.map +1 -0
  105. package/build/client/assets/{finished-CdbbjXVl.js → finished-DFXv9XzM.js} +2 -2
  106. package/build/client/assets/{finished-CdbbjXVl.js.map → finished-DFXv9XzM.js.map} +1 -1
  107. package/build/client/assets/{flowDiagram-PKI6S5ZS-Cl53QYkW.js → flowDiagram-PKI6S5ZS-CWmSD1H_.js} +2 -2
  108. package/build/client/assets/{flowDiagram-PKI6S5ZS-Cl53QYkW.js.map → flowDiagram-PKI6S5ZS-CWmSD1H_.js.map} +1 -1
  109. package/build/client/assets/{ganttDiagram-EK5VF46D-BvSMSlCf.js → ganttDiagram-EK5VF46D-BbzicWDr.js} +2 -2
  110. package/build/client/assets/{ganttDiagram-EK5VF46D-BvSMSlCf.js.map → ganttDiagram-EK5VF46D-BbzicWDr.js.map} +1 -1
  111. package/build/client/assets/{gitGraphDiagram-GW3U2K7C-BC4jDCQG.js → gitGraphDiagram-GW3U2K7C-DGTS4k9w.js} +2 -2
  112. package/build/client/assets/{gitGraphDiagram-GW3U2K7C-BC4jDCQG.js.map → gitGraphDiagram-GW3U2K7C-DGTS4k9w.js.map} +1 -1
  113. package/build/client/assets/{graph-DmoNxkW1.js → graph-CaVVBXRF.js} +2 -2
  114. package/build/client/assets/{graph-DmoNxkW1.js.map → graph-CaVVBXRF.js.map} +1 -1
  115. package/build/client/assets/healthcheck-CpmpbABn.js +2 -0
  116. package/build/client/assets/healthcheck-CpmpbABn.js.map +1 -0
  117. package/build/client/assets/{index-2LBjIZsR.js → index-2vn7TKln.js} +2 -2
  118. package/build/client/assets/{index-2LBjIZsR.js.map → index-2vn7TKln.js.map} +1 -1
  119. package/build/client/assets/{index-CQpafIsR.js → index-5WrUDw0m.js} +2 -2
  120. package/build/client/assets/{index-CQpafIsR.js.map → index-5WrUDw0m.js.map} +1 -1
  121. package/build/client/assets/{index-wYr49Min.js → index-7ddSzI6h.js} +2 -2
  122. package/build/client/assets/{index-wYr49Min.js.map → index-7ddSzI6h.js.map} +1 -1
  123. package/build/client/assets/{index-DhyRhm-a.js → index-B-ImQw77.js} +2 -2
  124. package/build/client/assets/{index-DhyRhm-a.js.map → index-B-ImQw77.js.map} +1 -1
  125. package/build/client/assets/{index-CBUrmkWa.js → index-BAZ-dfnH.js} +2 -2
  126. package/build/client/assets/{index-CBUrmkWa.js.map → index-BAZ-dfnH.js.map} +1 -1
  127. package/build/client/assets/{index-DxebmNVe.js → index-BCIyCTKq.js} +2 -2
  128. package/build/client/assets/{index-DxebmNVe.js.map → index-BCIyCTKq.js.map} +1 -1
  129. package/build/client/assets/{index-B8smZwSG.js → index-BmZYK7HN.js} +2 -2
  130. package/build/client/assets/{index-B8smZwSG.js.map → index-BmZYK7HN.js.map} +1 -1
  131. package/build/client/assets/index-Btba-K9Q.js +2 -0
  132. package/build/client/assets/index-Btba-K9Q.js.map +1 -0
  133. package/build/client/assets/{index-C245u_6M.js → index-CVx7Nbhh.js} +2 -2
  134. package/build/client/assets/{index-C245u_6M.js.map → index-CVx7Nbhh.js.map} +1 -1
  135. package/build/client/assets/index-CZxXGZFL.js +2 -0
  136. package/build/client/assets/index-CZxXGZFL.js.map +1 -0
  137. package/build/client/assets/index-CpmpbABn.js +2 -0
  138. package/build/client/assets/index-CpmpbABn.js.map +1 -0
  139. package/build/client/assets/{index-CsJM7KSY.js → index-YkiF92kh.js} +2 -2
  140. package/build/client/assets/{index-CsJM7KSY.js.map → index-YkiF92kh.js.map} +1 -1
  141. package/build/client/assets/infoDiagram-XT3IWWJI-DxGcRrxo.js +3 -0
  142. package/build/client/assets/{infoDiagram-XT3IWWJI-_8npXlsz.js.map → infoDiagram-XT3IWWJI-DxGcRrxo.js.map} +1 -1
  143. package/build/client/assets/{journeyDiagram-EWQZEKCU-CLMB5SLF.js → journeyDiagram-EWQZEKCU-wZB6fB2A.js} +2 -2
  144. package/build/client/assets/{journeyDiagram-EWQZEKCU-CLMB5SLF.js.map → journeyDiagram-EWQZEKCU-wZB6fB2A.js.map} +1 -1
  145. package/build/client/assets/{jsx-runtime-DKBD_fLS.js → jsx-runtime-DXAEI3Eb.js} +2 -2
  146. package/build/client/assets/{jsx-runtime-DKBD_fLS.js.map → jsx-runtime-DXAEI3Eb.js.map} +1 -1
  147. package/build/client/assets/{kanban-definition-ILFWEQ3N-5PudnDcU.js → kanban-definition-ILFWEQ3N-CK6yB-ML.js} +2 -2
  148. package/build/client/assets/{kanban-definition-ILFWEQ3N-5PudnDcU.js.map → kanban-definition-ILFWEQ3N-CK6yB-ML.js.map} +1 -1
  149. package/build/client/assets/l-B7D7yXbG.js +2 -0
  150. package/build/client/assets/{l-CjuVWd7j.js.map → l-B7D7yXbG.js.map} +1 -1
  151. package/build/client/assets/launch-editor-CpmpbABn.js +2 -0
  152. package/build/client/assets/launch-editor-CpmpbABn.js.map +1 -0
  153. package/build/client/assets/{layout-BXfvL1vj.js → layout-D4Warzdd.js} +2 -2
  154. package/build/client/assets/{layout-BXfvL1vj.js.map → layout-D4Warzdd.js.map} +1 -1
  155. package/build/client/assets/{linear-DhCwCW7Y.js → linear-CM1Phdip.js} +2 -2
  156. package/build/client/assets/{linear-DhCwCW7Y.js.map → linear-CM1Phdip.js.map} +1 -1
  157. package/build/client/assets/{loading-BuvISkeY.js → loading-CwyhGvvd.js} +2 -2
  158. package/build/client/assets/{loading-BuvISkeY.js.map → loading-CwyhGvvd.js.map} +1 -1
  159. package/build/client/assets/{login-BH4ljGt7.js → login-DfqSkVaO.js} +2 -2
  160. package/build/client/assets/{login-BH4ljGt7.js.map → login-DfqSkVaO.js.map} +1 -1
  161. package/build/client/assets/login-sse-CpmpbABn.js +2 -0
  162. package/build/client/assets/login-sse-CpmpbABn.js.map +1 -0
  163. package/build/client/assets/lookout-CpmpbABn.js +2 -0
  164. package/build/client/assets/lookout-CpmpbABn.js.map +1 -0
  165. package/build/client/assets/manifest-57b5a7c4.js +1 -0
  166. package/build/client/assets/{mdx-DdK1AGxI.js → mdx-D3zuEMw_.js} +3 -3
  167. package/build/client/assets/{mdx-DdK1AGxI.js.map → mdx-D3zuEMw_.js.map} +1 -1
  168. package/build/client/assets/{mermaid.core-tdjgKLol.js → mermaid.core-DN2yK8JU.js} +5 -5
  169. package/build/client/assets/{mermaid.core-tdjgKLol.js.map → mermaid.core-DN2yK8JU.js.map} +1 -1
  170. package/build/client/assets/{mindmap-definition-CZNETY7S-DocEjJYU.js → mindmap-definition-CZNETY7S-CbD8GVId.js} +2 -2
  171. package/build/client/assets/{mindmap-definition-CZNETY7S-DocEjJYU.js.map → mindmap-definition-CZNETY7S-CbD8GVId.js.map} +1 -1
  172. package/build/client/assets/{misc-D7yrZhQB.js → misc-CFnU1MK_.js} +2 -2
  173. package/build/client/assets/{misc-D7yrZhQB.js.map → misc-CFnU1MK_.js.map} +1 -1
  174. package/build/client/assets/{nav-chevrons-DWkM88G0.js → nav-chevrons-j93TK8de.js} +2 -2
  175. package/build/client/assets/{nav-chevrons-DWkM88G0.js.map → nav-chevrons-j93TK8de.js.map} +1 -1
  176. package/build/client/assets/notifications-CpmpbABn.js +2 -0
  177. package/build/client/assets/notifications-CpmpbABn.js.map +1 -0
  178. package/build/client/assets/og-CpmpbABn.js +2 -0
  179. package/build/client/assets/og-CpmpbABn.js.map +1 -0
  180. package/build/client/assets/{onboarding-C59GmR50.js → onboarding-DopOuziu.js} +2 -2
  181. package/build/client/assets/{onboarding-C59GmR50.js.map → onboarding-DopOuziu.js.map} +1 -1
  182. package/build/client/assets/{online-D4vODkth.js → online-CVRagwjj.js} +2 -2
  183. package/build/client/assets/{online-D4vODkth.js.map → online-CVRagwjj.js.map} +1 -1
  184. package/build/client/assets/{pe-CdmQkMqU.js → pe-B4x-9zwV.js} +2 -2
  185. package/build/client/assets/{pe-CdmQkMqU.js.map → pe-B4x-9zwV.js.map} +1 -1
  186. package/build/client/assets/{pieDiagram-NIOCPIFQ-DVmMnK74.js → pieDiagram-NIOCPIFQ-CnVqKmIe.js} +2 -2
  187. package/build/client/assets/{pieDiagram-NIOCPIFQ-DVmMnK74.js.map → pieDiagram-NIOCPIFQ-CnVqKmIe.js.map} +1 -1
  188. package/build/client/assets/{preferences-DfB9rP8a.js → preferences-D-17xd45.js} +2 -2
  189. package/build/client/assets/{preferences-DfB9rP8a.js.map → preferences-D-17xd45.js.map} +1 -1
  190. package/build/client/assets/{presence-DWQewy5j.js → presence-4HURsnNL.js} +2 -2
  191. package/build/client/assets/{presence-DWQewy5j.js.map → presence-4HURsnNL.js.map} +1 -1
  192. package/build/client/assets/{preview-CwjqbpcS.js → preview-4wZFBAy9.js} +2 -2
  193. package/build/client/assets/{preview-CwjqbpcS.js.map → preview-4wZFBAy9.js.map} +1 -1
  194. package/build/client/assets/processes-CpmpbABn.js +2 -0
  195. package/build/client/assets/processes-CpmpbABn.js.map +1 -0
  196. package/build/client/assets/{product-KkdaVQou.js → product-DX8-l4ph.js} +2 -2
  197. package/build/client/assets/{product-KkdaVQou.js.map → product-DX8-l4ph.js.map} +1 -1
  198. package/build/client/assets/{progress-CdZ-Vcyn.js → progress-BDknFYzk.js} +2 -2
  199. package/build/client/assets/{progress-CdZ-Vcyn.js.map → progress-BDknFYzk.js.map} +1 -1
  200. package/build/client/assets/progress-CpmpbABn.js +2 -0
  201. package/build/client/assets/progress-CpmpbABn.js.map +1 -0
  202. package/build/client/assets/{progress-bar-B3_pKtoN.js → progress-bar-FGfYP6Rz.js} +2 -2
  203. package/build/client/assets/{progress-bar-B3_pKtoN.js.map → progress-bar-FGfYP6Rz.js.map} +1 -1
  204. package/build/client/assets/{quadrantDiagram-2OG54O6I-BpG5BmQ3.js → quadrantDiagram-2OG54O6I-D_2NEbEQ.js} +2 -2
  205. package/build/client/assets/{quadrantDiagram-2OG54O6I-BpG5BmQ3.js.map → quadrantDiagram-2OG54O6I-D_2NEbEQ.js.map} +1 -1
  206. package/build/client/assets/{requirementDiagram-SO3GGRV7-CeVkImIX.js → requirementDiagram-SO3GGRV7-DNgmIySA.js} +2 -2
  207. package/build/client/assets/{requirementDiagram-SO3GGRV7-CeVkImIX.js.map → requirementDiagram-SO3GGRV7-DNgmIySA.js.map} +1 -1
  208. package/build/client/assets/{revalidation-ws-Do4fE9JQ.js → revalidation-ws-1umHIswK.js} +2 -2
  209. package/build/client/assets/{revalidation-ws-Do4fE9JQ.js.map → revalidation-ws-1umHIswK.js.map} +1 -1
  210. package/build/client/assets/robots_._txt-CpmpbABn.js +2 -0
  211. package/build/client/assets/robots_._txt-CpmpbABn.js.map +1 -0
  212. package/build/client/assets/{root-C0Bm0Ely.js → root-CXMubBMj.js} +2 -2
  213. package/build/client/assets/{root-C0Bm0Ely.js.map → root-CXMubBMj.js.map} +1 -1
  214. package/build/client/assets/{sankeyDiagram-4UZDY2LN-CMy-UAmy.js → sankeyDiagram-4UZDY2LN-CZX30OZU.js} +2 -2
  215. package/build/client/assets/{sankeyDiagram-4UZDY2LN-CMy-UAmy.js.map → sankeyDiagram-4UZDY2LN-CZX30OZU.js.map} +1 -1
  216. package/build/client/assets/{seo-P_yhbn7-.js → seo-B067fiyK.js} +2 -2
  217. package/build/client/assets/{seo-P_yhbn7-.js.map → seo-B067fiyK.js.map} +1 -1
  218. package/build/client/assets/{sequenceDiagram-ZIKVLSP4-BvE7ME5W.js → sequenceDiagram-ZIKVLSP4-BZ3UBzRg.js} +2 -2
  219. package/build/client/assets/{sequenceDiagram-ZIKVLSP4-BvE7ME5W.js.map → sequenceDiagram-ZIKVLSP4-BZ3UBzRg.js.map} +1 -1
  220. package/build/client/assets/{set-playground-1BzordBz.js → set-playground-BCWzPlz8.js} +2 -2
  221. package/build/client/assets/{set-playground-1BzordBz.js.map → set-playground-BCWzPlz8.js.map} +1 -1
  222. package/build/client/assets/set-playground-CpmpbABn.js +2 -0
  223. package/build/client/assets/set-playground-CpmpbABn.js.map +1 -0
  224. package/build/client/assets/sitemap_._xml-CpmpbABn.js +2 -0
  225. package/build/client/assets/sitemap_._xml-CpmpbABn.js.map +1 -0
  226. package/build/client/assets/start-CpmpbABn.js +2 -0
  227. package/build/client/assets/start-CpmpbABn.js.map +1 -0
  228. package/build/client/assets/{stateDiagram-XX37X6EN-DZlrR-hS.js → stateDiagram-XX37X6EN-Bhcagz06.js} +2 -2
  229. package/build/client/assets/{stateDiagram-XX37X6EN-DZlrR-hS.js.map → stateDiagram-XX37X6EN-Bhcagz06.js.map} +1 -1
  230. package/build/client/assets/stateDiagram-v2-GD6S3NHB-CoWM3q8d.js +2 -0
  231. package/build/client/assets/{stateDiagram-v2-GD6S3NHB-D6K_ePXI.js.map → stateDiagram-v2-GD6S3NHB-CoWM3q8d.js.map} +1 -1
  232. package/build/client/assets/{support-D2ZulF0D.js → support-Bf_2rgd_.js} +2 -2
  233. package/build/client/assets/{support-D2ZulF0D.js.map → support-Bf_2rgd_.js.map} +1 -1
  234. package/build/client/assets/test-CpmpbABn.js +2 -0
  235. package/build/client/assets/test-CpmpbABn.js.map +1 -0
  236. package/build/client/assets/test-CrM0XvT4.js +2 -0
  237. package/build/client/assets/{test-D7r_HsN4.js.map → test-CrM0XvT4.js.map} +1 -1
  238. package/build/client/assets/test._testName-CpmpbABn.js +2 -0
  239. package/build/client/assets/test._testName-CpmpbABn.js.map +1 -0
  240. package/build/client/assets/test.epic_ws_.js_-CpmpbABn.js +2 -0
  241. package/build/client/assets/test.epic_ws_.js_-CpmpbABn.js.map +1 -0
  242. package/build/client/assets/{tests-DaEG5aZr.js → tests-B9wdQykM.js} +2 -2
  243. package/build/client/assets/{tests-DaEG5aZr.js.map → tests-B9wdQykM.js.map} +1 -1
  244. package/build/client/assets/{timeline-definition-RI47OAVP-1EQPBN04.js → timeline-definition-RI47OAVP-Dy7dfzOy.js} +2 -2
  245. package/build/client/assets/{timeline-definition-RI47OAVP-1EQPBN04.js.map → timeline-definition-RI47OAVP-Dy7dfzOy.js.map} +1 -1
  246. package/build/client/assets/{tooltip-CUdKgIRf.js → tooltip-BVlcAOVw.js} +2 -2
  247. package/build/client/assets/{tooltip-CUdKgIRf.js.map → tooltip-BVlcAOVw.js.map} +1 -1
  248. package/build/client/assets/{treemap-6Y5VK53G-CCaJF09R.js → treemap-6Y5VK53G-FTlofOA6.js} +2 -2
  249. package/build/client/assets/{treemap-6Y5VK53G-CCaJF09R.js.map → treemap-6Y5VK53G-FTlofOA6.js.map} +1 -1
  250. package/build/client/assets/{use-event-source-BOTYusqH.js → use-event-source-Dy62QvPu.js} +2 -2
  251. package/build/client/assets/{use-event-source-BOTYusqH.js.map → use-event-source-Dy62QvPu.js.map} +1 -1
  252. package/build/client/assets/{user-BUyyWGpK.js → user-DwkYL1w0.js} +2 -2
  253. package/build/client/assets/{user-BUyyWGpK.js.map → user-DwkYL1w0.js.map} +1 -1
  254. package/build/client/assets/{version-VDBggzrB.js → version-BeSyxmUj.js} +2 -2
  255. package/build/client/assets/{version-VDBggzrB.js.map → version-BeSyxmUj.js.map} +1 -1
  256. package/build/client/assets/workshop-config-C-eyJXJM.js +2 -0
  257. package/build/client/assets/{workshop-config-eejws2-k.js.map → workshop-config-C-eyJXJM.js.map} +1 -1
  258. package/build/client/assets/{workspace-structure-DwQUtU0r.js → workspace-structure-D69bt3vr.js} +2 -2
  259. package/build/client/assets/{workspace-structure-DwQUtU0r.js.map → workspace-structure-D69bt3vr.js.map} +1 -1
  260. package/build/client/assets/{xychartDiagram-H2YORKM3-ZB2741wi.js → xychartDiagram-H2YORKM3-Bmq6avq2.js} +2 -2
  261. package/build/client/assets/{xychartDiagram-H2YORKM3-ZB2741wi.js.map → xychartDiagram-H2YORKM3-Bmq6avq2.js.map} +1 -1
  262. package/build/server/index.js +2 -2
  263. package/package.json +1 -1
  264. package/build/client/assets/_-BEfdnu_S.js.map +0 -1
  265. package/build/client/assets/_exerciseNumber_._stepNumber.index-D9zwSM-a.js +0 -2
  266. package/build/client/assets/_exerciseNumber_._stepNumber.index-D9zwSM-a.js.map +0 -1
  267. package/build/client/assets/_layout-DQs7hBSg.js +0 -2
  268. package/build/client/assets/api._-D9zwSM-a.js +0 -2
  269. package/build/client/assets/api._-D9zwSM-a.js.map +0 -1
  270. package/build/client/assets/app-B6Asqz0_.js +0 -2
  271. package/build/client/assets/app.epic_ws_.js_-D9zwSM-a.js +0 -2
  272. package/build/client/assets/app.epic_ws_.js_-D9zwSM-a.js.map +0 -1
  273. package/build/client/assets/apps-D9zwSM-a.js +0 -2
  274. package/build/client/assets/apps-D9zwSM-a.js.map +0 -1
  275. package/build/client/assets/apps-DxgBeJoD.js +0 -2
  276. package/build/client/assets/apps-DxgBeJoD.js.map +0 -1
  277. package/build/client/assets/cache-D9zwSM-a.js +0 -2
  278. package/build/client/assets/cache-D9zwSM-a.js.map +0 -1
  279. package/build/client/assets/channel-BWGVHDK-.js +0 -2
  280. package/build/client/assets/classDiagram-BGRH5UQR-B43E4NNs.js +0 -2
  281. package/build/client/assets/classDiagram-v2-O24JOBDK-B43E4NNs.js +0 -2
  282. package/build/client/assets/clone-BniOf7Yb.js +0 -2
  283. package/build/client/assets/diff-CQVU7E-h.js +0 -2
  284. package/build/client/assets/discord-B39XeN10.js +0 -2
  285. package/build/client/assets/discord-B39XeN10.js.map +0 -1
  286. package/build/client/assets/epic_ws_.js_-D9zwSM-a.js +0 -2
  287. package/build/client/assets/epic_ws_.js_-D9zwSM-a.js.map +0 -1
  288. package/build/client/assets/exercises-D9zwSM-a.js +0 -2
  289. package/build/client/assets/exercises-D9zwSM-a.js.map +0 -1
  290. package/build/client/assets/healthcheck-D9zwSM-a.js +0 -2
  291. package/build/client/assets/healthcheck-D9zwSM-a.js.map +0 -1
  292. package/build/client/assets/index-BcumkKvQ.js +0 -2
  293. package/build/client/assets/index-BcumkKvQ.js.map +0 -1
  294. package/build/client/assets/index-D9zwSM-a.js +0 -2
  295. package/build/client/assets/index-D9zwSM-a.js.map +0 -1
  296. package/build/client/assets/index-DxgBeJoD.js +0 -2
  297. package/build/client/assets/index-DxgBeJoD.js.map +0 -1
  298. package/build/client/assets/infoDiagram-XT3IWWJI-_8npXlsz.js +0 -3
  299. package/build/client/assets/l-CjuVWd7j.js +0 -2
  300. package/build/client/assets/launch-editor-D9zwSM-a.js +0 -2
  301. package/build/client/assets/launch-editor-D9zwSM-a.js.map +0 -1
  302. package/build/client/assets/login-sse-D9zwSM-a.js +0 -2
  303. package/build/client/assets/login-sse-D9zwSM-a.js.map +0 -1
  304. package/build/client/assets/lookout-D9zwSM-a.js +0 -2
  305. package/build/client/assets/lookout-D9zwSM-a.js.map +0 -1
  306. package/build/client/assets/manifest-f4a6d68a.js +0 -1
  307. package/build/client/assets/notifications-D9zwSM-a.js +0 -2
  308. package/build/client/assets/notifications-D9zwSM-a.js.map +0 -1
  309. package/build/client/assets/og-D9zwSM-a.js +0 -2
  310. package/build/client/assets/og-D9zwSM-a.js.map +0 -1
  311. package/build/client/assets/processes-D9zwSM-a.js +0 -2
  312. package/build/client/assets/processes-D9zwSM-a.js.map +0 -1
  313. package/build/client/assets/progress-D9zwSM-a.js +0 -2
  314. package/build/client/assets/progress-D9zwSM-a.js.map +0 -1
  315. package/build/client/assets/robots_._txt-D9zwSM-a.js +0 -2
  316. package/build/client/assets/robots_._txt-D9zwSM-a.js.map +0 -1
  317. package/build/client/assets/set-playground-D9zwSM-a.js +0 -2
  318. package/build/client/assets/set-playground-D9zwSM-a.js.map +0 -1
  319. package/build/client/assets/sitemap_._xml-D9zwSM-a.js +0 -2
  320. package/build/client/assets/sitemap_._xml-D9zwSM-a.js.map +0 -1
  321. package/build/client/assets/start-D9zwSM-a.js +0 -2
  322. package/build/client/assets/start-D9zwSM-a.js.map +0 -1
  323. package/build/client/assets/stateDiagram-v2-GD6S3NHB-D6K_ePXI.js +0 -2
  324. package/build/client/assets/test-D7r_HsN4.js +0 -2
  325. package/build/client/assets/test-D9zwSM-a.js +0 -2
  326. package/build/client/assets/test-D9zwSM-a.js.map +0 -1
  327. package/build/client/assets/test._testName-D9zwSM-a.js +0 -2
  328. package/build/client/assets/test._testName-D9zwSM-a.js.map +0 -1
  329. package/build/client/assets/test.epic_ws_.js_-D9zwSM-a.js +0 -2
  330. package/build/client/assets/test.epic_ws_.js_-D9zwSM-a.js.map +0 -1
  331. package/build/client/assets/workshop-config-eejws2-k.js +0 -2
@@ -1,4 +1,4 @@
1
- import{_ as nt,g as Je,s as Qe,a as Ke,b as je,t as _e,q as tr,K as er,ac as rr,F as ir,G as ar,H as nr,z as or,l as Pe,am as Ne,c as Le,aH as Ee,d as sr,aI as lr,aJ as hr}from"./mermaid.core-tdjgKLol.js";import{p as fr}from"./chunk-353BL4L5-C8aHupyU.js";import{I as cr}from"./chunk-AACKK3MU-BetTIqd0.js";import{p as gr}from"./treemap-6Y5VK53G-CCaJF09R.js";import{c as Ge}from"./cytoscape.esm-BH-eccyW.js";import{o as ur}from"./chunk-QMGIS6GS-Du-_uMOD.js";import"./_-BEfdnu_S.js";import"./mdx-DdK1AGxI.js";import"./jsx-runtime-DKBD_fLS.js";import"./clsx-B-dksMZM.js";import"./index-B8smZwSG.js";import"./index-C245u_6M.js";import"./epic-video-CYB9v08Z.js";import"./index-wYr49Min.js";import"./misc-D7yrZhQB.js";import"./tooltip-CUdKgIRf.js";import"./pe-CdmQkMqU.js";import"./online-D4vODkth.js";import"./loading-BuvISkeY.js";import"./user-BUyyWGpK.js";import"./workshop-config-eejws2-k.js";import"./progress-bar-B3_pKtoN.js";import"./_baseUniq-CtZFfRif.js";import"./_basePickBy-BXbL7qon.js";import"./clone-BniOf7Yb.js";var he={exports:{}},fe={exports:{}},ce={exports:{}},dr=ce.exports,xe;function vr(){return xe||(xe=1,function(C,X){(function(P,L){C.exports=L()})(dr,function(){return function(M){var P={};function L(g){if(P[g])return P[g].exports;var h=P[g]={i:g,l:!1,exports:{}};return M[g].call(h.exports,h,h.exports,L),h.l=!0,h.exports}return L.m=M,L.c=P,L.i=function(g){return g},L.d=function(g,h,a){L.o(g,h)||Object.defineProperty(g,h,{configurable:!1,enumerable:!0,get:a})},L.n=function(g){var h=g&&g.__esModule?function(){return g.default}:function(){return g};return L.d(h,"a",h),h},L.o=function(g,h){return Object.prototype.hasOwnProperty.call(g,h)},L.p="",L(L.s=28)}([function(M,P,L){function g(){}g.QUALITY=1,g.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,g.DEFAULT_INCREMENTAL=!1,g.DEFAULT_ANIMATION_ON_LAYOUT=!0,g.DEFAULT_ANIMATION_DURING_LAYOUT=!1,g.DEFAULT_ANIMATION_PERIOD=50,g.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,g.DEFAULT_GRAPH_MARGIN=15,g.NODE_DIMENSIONS_INCLUDE_LABELS=!1,g.SIMPLE_NODE_SIZE=40,g.SIMPLE_NODE_HALF_SIZE=g.SIMPLE_NODE_SIZE/2,g.EMPTY_COMPOUND_NODE_SIZE=40,g.MIN_EDGE_LENGTH=1,g.WORLD_BOUNDARY=1e6,g.INITIAL_WORLD_BOUNDARY=g.WORLD_BOUNDARY/1e3,g.WORLD_CENTER_X=1200,g.WORLD_CENTER_Y=900,M.exports=g},function(M,P,L){var g=L(2),h=L(8),a=L(9);function r(f,i,v){g.call(this,v),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=v,this.bendpoints=[],this.source=f,this.target=i}r.prototype=Object.create(g.prototype);for(var e in g)r[e]=g[e];r.prototype.getSource=function(){return this.source},r.prototype.getTarget=function(){return this.target},r.prototype.isInterGraph=function(){return this.isInterGraph},r.prototype.getLength=function(){return this.length},r.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},r.prototype.getBendpoints=function(){return this.bendpoints},r.prototype.getLca=function(){return this.lca},r.prototype.getSourceInLca=function(){return this.sourceInLca},r.prototype.getTargetInLca=function(){return this.targetInLca},r.prototype.getOtherEnd=function(f){if(this.source===f)return this.target;if(this.target===f)return this.source;throw"Node is not incident with this edge"},r.prototype.getOtherEndInGraph=function(f,i){for(var v=this.getOtherEnd(f),t=i.getGraphManager().getRoot();;){if(v.getOwner()==i)return v;if(v.getOwner()==t)break;v=v.getOwner().getParent()}return null},r.prototype.updateLength=function(){var f=new Array(4);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))},r.prototype.updateLengthSimple=function(){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)},M.exports=r},function(M,P,L){function g(h){this.vGraphObject=h}M.exports=g},function(M,P,L){var g=L(2),h=L(10),a=L(13),r=L(0),e=L(16),f=L(5);function i(t,o,s,c){s==null&&c==null&&(c=o),g.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}i.prototype=Object.create(g.prototype);for(var v in g)i[v]=g[v];i.prototype.getEdges=function(){return this.edges},i.prototype.getChild=function(){return this.child},i.prototype.getOwner=function(){return this.owner},i.prototype.getWidth=function(){return this.rect.width},i.prototype.setWidth=function(t){this.rect.width=t},i.prototype.getHeight=function(){return this.rect.height},i.prototype.setHeight=function(t){this.rect.height=t},i.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},i.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},i.prototype.getCenter=function(){return new f(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},i.prototype.getLocation=function(){return new f(this.rect.x,this.rect.y)},i.prototype.getRect=function(){return this.rect},i.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},i.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},i.prototype.setRect=function(t,o){this.rect.x=t.x,this.rect.y=t.y,this.rect.width=o.width,this.rect.height=o.height},i.prototype.setCenter=function(t,o){this.rect.x=t-this.rect.width/2,this.rect.y=o-this.rect.height/2},i.prototype.setLocation=function(t,o){this.rect.x=t,this.rect.y=o},i.prototype.moveBy=function(t,o){this.rect.x+=t,this.rect.y+=o},i.prototype.getEdgeListToNode=function(t){var o=[],s=this;return s.edges.forEach(function(c){if(c.target==t){if(c.source!=s)throw"Incorrect edge source!";o.push(c)}}),o},i.prototype.getEdgesBetween=function(t){var o=[],s=this;return s.edges.forEach(function(c){if(!(c.source==s||c.target==s))throw"Incorrect edge source and/or target";(c.target==t||c.source==t)&&o.push(c)}),o},i.prototype.getNeighborsList=function(){var t=new Set,o=this;return o.edges.forEach(function(s){if(s.source==o)t.add(s.target);else{if(s.target!=o)throw"Incorrect incidency!";t.add(s.source)}}),t},i.prototype.withChildren=function(){var t=new Set,o,s;if(t.add(this),this.child!=null)for(var c=this.child.getNodes(),l=0;l<c.length;l++)o=c[l],s=o.withChildren(),s.forEach(function(T){t.add(T)});return t},i.prototype.getNoOfChildren=function(){var t=0,o;if(this.child==null)t=1;else for(var s=this.child.getNodes(),c=0;c<s.length;c++)o=s[c],t+=o.getNoOfChildren();return t==0&&(t=1),t},i.prototype.getEstimatedSize=function(){if(this.estimatedSize==h.MIN_VALUE)throw"assert failed";return this.estimatedSize},i.prototype.calcEstimatedSize=function(){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)},i.prototype.scatter=function(){var t,o,s=-r.INITIAL_WORLD_BOUNDARY,c=r.INITIAL_WORLD_BOUNDARY;t=r.WORLD_CENTER_X+e.nextDouble()*(c-s)+s;var l=-r.INITIAL_WORLD_BOUNDARY,T=r.INITIAL_WORLD_BOUNDARY;o=r.WORLD_CENTER_Y+e.nextDouble()*(T-l)+l,this.rect.x=t,this.rect.y=o},i.prototype.updateBounds=function(){if(this.getChild()==null)throw"assert failed";if(this.getChild().getNodes().length!=0){var t=this.getChild();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){var o=t.getRight()-t.getLeft(),s=t.getBottom()-t.getTop();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))}}},i.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==h.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},i.prototype.transform=function(t){var o=this.rect.x;o>r.WORLD_BOUNDARY?o=r.WORLD_BOUNDARY:o<-r.WORLD_BOUNDARY&&(o=-r.WORLD_BOUNDARY);var s=this.rect.y;s>r.WORLD_BOUNDARY?s=r.WORLD_BOUNDARY:s<-r.WORLD_BOUNDARY&&(s=-r.WORLD_BOUNDARY);var c=new f(o,s),l=t.inverseTransformPoint(c);this.setLocation(l.x,l.y)},i.prototype.getLeft=function(){return this.rect.x},i.prototype.getRight=function(){return this.rect.x+this.rect.width},i.prototype.getTop=function(){return this.rect.y},i.prototype.getBottom=function(){return this.rect.y+this.rect.height},i.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},M.exports=i},function(M,P,L){var g=L(0);function h(){}for(var a in g)h[a]=g[a];h.MAX_ITERATIONS=2500,h.DEFAULT_EDGE_LENGTH=50,h.DEFAULT_SPRING_STRENGTH=.45,h.DEFAULT_REPULSION_STRENGTH=4500,h.DEFAULT_GRAVITY_STRENGTH=.4,h.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,h.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,h.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,h.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,h.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,h.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,h.COOLING_ADAPTATION_FACTOR=.33,h.ADAPTATION_LOWER_NODE_LIMIT=1e3,h.ADAPTATION_UPPER_NODE_LIMIT=5e3,h.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,h.MAX_NODE_DISPLACEMENT=h.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,h.MIN_REPULSION_DIST=h.DEFAULT_EDGE_LENGTH/10,h.CONVERGENCE_CHECK_PERIOD=100,h.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,h.MIN_EDGE_LENGTH=1,h.GRID_CALCULATION_CHECK_PERIOD=10,M.exports=h},function(M,P,L){function g(h,a){h==null&&a==null?(this.x=0,this.y=0):(this.x=h,this.y=a)}g.prototype.getX=function(){return this.x},g.prototype.getY=function(){return this.y},g.prototype.setX=function(h){this.x=h},g.prototype.setY=function(h){this.y=h},g.prototype.getDifference=function(h){return new DimensionD(this.x-h.x,this.y-h.y)},g.prototype.getCopy=function(){return new g(this.x,this.y)},g.prototype.translate=function(h){return this.x+=h.width,this.y+=h.height,this},M.exports=g},function(M,P,L){var g=L(2),h=L(10),a=L(0),r=L(7),e=L(3),f=L(1),i=L(13),v=L(12),t=L(11);function o(c,l,T){g.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)}o.prototype=Object.create(g.prototype);for(var s in g)o[s]=g[s];o.prototype.getNodes=function(){return this.nodes},o.prototype.getEdges=function(){return this.edges},o.prototype.getGraphManager=function(){return this.graphManager},o.prototype.getParent=function(){return this.parent},o.prototype.getLeft=function(){return this.left},o.prototype.getRight=function(){return this.right},o.prototype.getTop=function(){return this.top},o.prototype.getBottom=function(){return this.bottom},o.prototype.isConnected=function(){return this.isConnected},o.prototype.add=function(c,l,T){if(l==null&&T==null){var u=c;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(u)>-1)throw"Node already in graph!";return u.owner=this,this.getNodes().push(u),u}else{var d=c;if(!(this.getNodes().indexOf(l)>-1&&this.getNodes().indexOf(T)>-1))throw"Source or target not in graph!";if(!(l.owner==T.owner&&l.owner==this))throw"Both owners must be this graph!";return l.owner!=T.owner?null:(d.source=l,d.target=T,d.isInterGraph=!1,this.getEdges().push(d),l.edges.push(d),T!=l&&T.edges.push(d),d)}},o.prototype.remove=function(c){var l=c;if(c instanceof e){if(l==null)throw"Node is null!";if(!(l.owner!=null&&l.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var T=l.edges.slice(),u,d=T.length,N=0;N<d;N++)u=T[N],u.isInterGraph?this.graphManager.remove(u):u.source.owner.remove(u);var F=this.nodes.indexOf(l);if(F==-1)throw"Node not in owner node list!";this.nodes.splice(F,1)}else if(c instanceof f){var u=c;if(u==null)throw"Edge is null!";if(!(u.source!=null&&u.target!=null))throw"Source and/or target is null!";if(!(u.source.owner!=null&&u.target.owner!=null&&u.source.owner==this&&u.target.owner==this))throw"Source and/or target owner is invalid!";var A=u.source.edges.indexOf(u),G=u.target.edges.indexOf(u);if(!(A>-1&&G>-1))throw"Source and/or target doesn't know this edge!";u.source.edges.splice(A,1),u.target!=u.source&&u.target.edges.splice(G,1);var F=u.source.owner.getEdges().indexOf(u);if(F==-1)throw"Not in owner's edge list!";u.source.owner.getEdges().splice(F,1)}},o.prototype.updateLeftTop=function(){for(var c=h.MAX_VALUE,l=h.MAX_VALUE,T,u,d,N=this.getNodes(),F=N.length,A=0;A<F;A++){var G=N[A];T=G.getTop(),u=G.getLeft(),c>T&&(c=T),l>u&&(l=u)}return c==h.MAX_VALUE?null:(N[0].getParent().paddingLeft!=null?d=N[0].getParent().paddingLeft:d=this.margin,this.left=l-d,this.top=c-d,new v(this.left,this.top))},o.prototype.updateBounds=function(c){for(var l=h.MAX_VALUE,T=-h.MAX_VALUE,u=h.MAX_VALUE,d=-h.MAX_VALUE,N,F,A,G,B,U=this.nodes,K=U.length,D=0;D<K;D++){var at=U[D];c&&at.child!=null&&at.updateBounds(),N=at.getLeft(),F=at.getRight(),A=at.getTop(),G=at.getBottom(),l>N&&(l=N),T<F&&(T=F),u>A&&(u=A),d<G&&(d=G)}var n=new i(l,u,T-l,d-u);l==h.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),U[0].getParent().paddingLeft!=null?B=U[0].getParent().paddingLeft:B=this.margin,this.left=n.x-B,this.right=n.x+n.width+B,this.top=n.y-B,this.bottom=n.y+n.height+B},o.calculateBounds=function(c){for(var l=h.MAX_VALUE,T=-h.MAX_VALUE,u=h.MAX_VALUE,d=-h.MAX_VALUE,N,F,A,G,B=c.length,U=0;U<B;U++){var K=c[U];N=K.getLeft(),F=K.getRight(),A=K.getTop(),G=K.getBottom(),l>N&&(l=N),T<F&&(T=F),u>A&&(u=A),d<G&&(d=G)}var D=new i(l,u,T-l,d-u);return D},o.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},o.prototype.getEstimatedSize=function(){if(this.estimatedSize==h.MIN_VALUE)throw"assert failed";return this.estimatedSize},o.prototype.calcEstimatedSize=function(){for(var c=0,l=this.nodes,T=l.length,u=0;u<T;u++){var d=l[u];c+=d.calcEstimatedSize()}return c==0?this.estimatedSize=a.EMPTY_COMPOUND_NODE_SIZE:this.estimatedSize=c/Math.sqrt(this.nodes.length),this.estimatedSize},o.prototype.updateConnected=function(){var c=this;if(this.nodes.length==0){this.isConnected=!0;return}var l=new t,T=new Set,u=this.nodes[0],d,N,F=u.withChildren();for(F.forEach(function(D){l.push(D),T.add(D)});l.length!==0;){u=l.shift(),d=u.getEdges();for(var A=d.length,G=0;G<A;G++){var B=d[G];if(N=B.getOtherEndInGraph(u,this),N!=null&&!T.has(N)){var U=N.withChildren();U.forEach(function(D){l.push(D),T.add(D)})}}}if(this.isConnected=!1,T.size>=this.nodes.length){var K=0;T.forEach(function(D){D.owner==c&&K++}),K==this.nodes.length&&(this.isConnected=!0)}},M.exports=o},function(M,P,L){var g,h=L(1);function a(r){g=L(6),this.layout=r,this.graphs=[],this.edges=[]}a.prototype.addRoot=function(){var r=this.layout.newGraph(),e=this.layout.newNode(null),f=this.add(r,e);return this.setRootGraph(f),this.rootGraph},a.prototype.add=function(r,e,f,i,v){if(f==null&&i==null&&v==null){if(r==null)throw"Graph is null!";if(e==null)throw"Parent node is null!";if(this.graphs.indexOf(r)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(r),r.parent!=null)throw"Already has a parent!";if(e.child!=null)throw"Already has a child!";return r.parent=e,e.child=r,r}else{v=f,i=e,f=r;var t=i.getOwner(),o=v.getOwner();if(!(t!=null&&t.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(o!=null&&o.getGraphManager()==this))throw"Target not in this graph mgr!";if(t==o)return f.isInterGraph=!1,t.add(f,i,v);if(f.isInterGraph=!0,f.source=i,f.target=v,this.edges.indexOf(f)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(f),!(f.source!=null&&f.target!=null))throw"Edge source and/or target is null!";if(!(f.source.edges.indexOf(f)==-1&&f.target.edges.indexOf(f)==-1))throw"Edge already in source and/or target incidency list!";return f.source.edges.push(f),f.target.edges.push(f),f}},a.prototype.remove=function(r){if(r instanceof g){var e=r;if(e.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(e==this.rootGraph||e.parent!=null&&e.parent.graphManager==this))throw"Invalid parent node!";var f=[];f=f.concat(e.getEdges());for(var i,v=f.length,t=0;t<v;t++)i=f[t],e.remove(i);var o=[];o=o.concat(e.getNodes());var s;v=o.length;for(var t=0;t<v;t++)s=o[t],e.remove(s);e==this.rootGraph&&this.setRootGraph(null);var c=this.graphs.indexOf(e);this.graphs.splice(c,1),e.parent=null}else if(r instanceof h){if(i=r,i==null)throw"Edge is null!";if(!i.isInterGraph)throw"Not an inter-graph edge!";if(!(i.source!=null&&i.target!=null))throw"Source and/or target is null!";if(!(i.source.edges.indexOf(i)!=-1&&i.target.edges.indexOf(i)!=-1))throw"Source and/or target doesn't know this edge!";var c=i.source.edges.indexOf(i);if(i.source.edges.splice(c,1),c=i.target.edges.indexOf(i),i.target.edges.splice(c,1),!(i.source.owner!=null&&i.source.owner.getGraphManager()!=null))throw"Edge owner graph or owner graph manager is null!";if(i.source.owner.getGraphManager().edges.indexOf(i)==-1)throw"Not in owner graph manager's edge list!";var c=i.source.owner.getGraphManager().edges.indexOf(i);i.source.owner.getGraphManager().edges.splice(c,1)}},a.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},a.prototype.getGraphs=function(){return this.graphs},a.prototype.getAllNodes=function(){if(this.allNodes==null){for(var r=[],e=this.getGraphs(),f=e.length,i=0;i<f;i++)r=r.concat(e[i].getNodes());this.allNodes=r}return this.allNodes},a.prototype.resetAllNodes=function(){this.allNodes=null},a.prototype.resetAllEdges=function(){this.allEdges=null},a.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},a.prototype.getAllEdges=function(){if(this.allEdges==null){var r=[],e=this.getGraphs();e.length;for(var f=0;f<e.length;f++)r=r.concat(e[f].getEdges());r=r.concat(this.edges),this.allEdges=r}return this.allEdges},a.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},a.prototype.setAllNodesToApplyGravitation=function(r){if(this.allNodesToApplyGravitation!=null)throw"assert failed";this.allNodesToApplyGravitation=r},a.prototype.getRoot=function(){return this.rootGraph},a.prototype.setRootGraph=function(r){if(r.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=r,r.parent==null&&(r.parent=this.layout.newNode("Root node"))},a.prototype.getLayout=function(){return this.layout},a.prototype.isOneAncestorOfOther=function(r,e){if(!(r!=null&&e!=null))throw"assert failed";if(r==e)return!0;var f=r.getOwner(),i;do{if(i=f.getParent(),i==null)break;if(i==e)return!0;if(f=i.getOwner(),f==null)break}while(!0);f=e.getOwner();do{if(i=f.getParent(),i==null)break;if(i==r)return!0;if(f=i.getOwner(),f==null)break}while(!0);return!1},a.prototype.calcLowestCommonAncestors=function(){for(var r,e,f,i,v,t=this.getAllEdges(),o=t.length,s=0;s<o;s++){if(r=t[s],e=r.source,f=r.target,r.lca=null,r.sourceInLca=e,r.targetInLca=f,e==f){r.lca=e.getOwner();continue}for(i=e.getOwner();r.lca==null;){for(r.targetInLca=f,v=f.getOwner();r.lca==null;){if(v==i){r.lca=v;break}if(v==this.rootGraph)break;if(r.lca!=null)throw"assert failed";r.targetInLca=v.getParent(),v=r.targetInLca.getOwner()}if(i==this.rootGraph)break;r.lca==null&&(r.sourceInLca=i.getParent(),i=r.sourceInLca.getOwner())}if(r.lca==null)throw"assert failed"}},a.prototype.calcLowestCommonAncestor=function(r,e){if(r==e)return r.getOwner();var f=r.getOwner();do{if(f==null)break;var i=e.getOwner();do{if(i==null)break;if(i==f)return i;i=i.getParent().getOwner()}while(!0);f=f.getParent().getOwner()}while(!0);return f},a.prototype.calcInclusionTreeDepths=function(r,e){r==null&&e==null&&(r=this.rootGraph,e=1);for(var f,i=r.getNodes(),v=i.length,t=0;t<v;t++)f=i[t],f.inclusionTreeDepth=e,f.child!=null&&this.calcInclusionTreeDepths(f.child,e+1)},a.prototype.includesInvalidEdge=function(){for(var r,e=[],f=this.edges.length,i=0;i<f;i++)r=this.edges[i],this.isOneAncestorOfOther(r.source,r.target)&&e.push(r);for(var i=0;i<e.length;i++)this.remove(e[i]);return!1},M.exports=a},function(M,P,L){var g=L(12);function h(){}h.calcSeparationAmount=function(a,r,e,f){if(!a.intersects(r))throw"assert failed";var i=new Array(2);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()));var v=Math.abs((r.getCenterY()-a.getCenterY())/(r.getCenterX()-a.getCenterX()));r.getCenterY()===a.getCenterY()&&r.getCenterX()===a.getCenterX()&&(v=1);var t=v*e[0],o=e[1]/v;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)},h.decideDirectionsForOverlappingNodes=function(a,r,e){a.getCenterX()<r.getCenterX()?e[0]=-1:e[0]=1,a.getCenterY()<r.getCenterY()?e[1]=-1:e[1]=1},h.getIntersection2=function(a,r,e){var f=a.getCenterX(),i=a.getCenterY(),v=r.getCenterX(),t=r.getCenterY();if(a.intersects(r))return e[0]=f,e[1]=i,e[2]=v,e[3]=t,!0;var o=a.getX(),s=a.getY(),c=a.getRight(),l=a.getX(),T=a.getBottom(),u=a.getRight(),d=a.getWidthHalf(),N=a.getHeightHalf(),F=r.getX(),A=r.getY(),G=r.getRight(),B=r.getX(),U=r.getBottom(),K=r.getRight(),D=r.getWidthHalf(),at=r.getHeightHalf(),n=!1,m=!1;if(f===v){if(i>t)return e[0]=f,e[1]=s,e[2]=v,e[3]=U,!1;if(i<t)return e[0]=f,e[1]=T,e[2]=v,e[3]=A,!1}else if(i===t){if(f>v)return e[0]=o,e[1]=i,e[2]=G,e[3]=t,!1;if(f<v)return e[0]=c,e[1]=i,e[2]=F,e[3]=t,!1}else{var p=a.height/a.width,E=r.height/r.width,y=(t-i)/(v-f),I=void 0,w=void 0,R=void 0,W=void 0,x=void 0,q=void 0;if(-p===y?f>v?(e[0]=l,e[1]=T,n=!0):(e[0]=c,e[1]=s,n=!0):p===y&&(f>v?(e[0]=o,e[1]=s,n=!0):(e[0]=u,e[1]=T,n=!0)),-E===y?v>f?(e[2]=B,e[3]=U,m=!0):(e[2]=G,e[3]=A,m=!0):E===y&&(v>f?(e[2]=F,e[3]=A,m=!0):(e[2]=K,e[3]=U,m=!0)),n&&m)return!1;if(f>v?i>t?(I=this.getCardinalDirection(p,y,4),w=this.getCardinalDirection(E,y,2)):(I=this.getCardinalDirection(-p,y,3),w=this.getCardinalDirection(-E,y,1)):i>t?(I=this.getCardinalDirection(-p,y,1),w=this.getCardinalDirection(-E,y,3)):(I=this.getCardinalDirection(p,y,2),w=this.getCardinalDirection(E,y,4)),!n)switch(I){case 1:W=s,R=f+-N/y,e[0]=R,e[1]=W;break;case 2:R=u,W=i+d*y,e[0]=R,e[1]=W;break;case 3:W=T,R=f+N/y,e[0]=R,e[1]=W;break;case 4:R=l,W=i+-d*y,e[0]=R,e[1]=W;break}if(!m)switch(w){case 1:q=A,x=v+-at/y,e[2]=x,e[3]=q;break;case 2:x=K,q=t+D*y,e[2]=x,e[3]=q;break;case 3:q=U,x=v+at/y,e[2]=x,e[3]=q;break;case 4:x=B,q=t+-D*y,e[2]=x,e[3]=q;break}}return!1},h.getCardinalDirection=function(a,r,e){return a>r?e:1+e%4},h.getIntersection=function(a,r,e,f){if(f==null)return this.getIntersection2(a,r,e);var i=a.x,v=a.y,t=r.x,o=r.y,s=e.x,c=e.y,l=f.x,T=f.y,u=void 0,d=void 0,N=void 0,F=void 0,A=void 0,G=void 0,B=void 0,U=void 0,K=void 0;return N=o-v,A=i-t,B=t*v-i*o,F=T-c,G=s-l,U=l*c-s*T,K=N*G-F*A,K===0?null:(u=(A*U-G*B)/K,d=(F*B-N*U)/K,new g(u,d))},h.angleOfVector=function(a,r,e,f){var i=void 0;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},h.doIntersect=function(a,r,e,f){var i=a.x,v=a.y,t=r.x,o=r.y,s=e.x,c=e.y,l=f.x,T=f.y,u=(t-i)*(T-c)-(l-s)*(o-v);if(u===0)return!1;var d=((T-c)*(l-i)+(s-l)*(T-v))/u,N=((v-o)*(l-i)+(t-i)*(T-v))/u;return 0<d&&d<1&&0<N&&N<1},h.findCircleLineIntersections=function(a,r,e,f,i,v,t){var o=(e-a)*(e-a)+(f-r)*(f-r),s=2*((a-i)*(e-a)+(r-v)*(f-r)),c=(a-i)*(a-i)+(r-v)*(r-v)-t*t,l=s*s-4*o*c;if(l>=0){var T=(-s+Math.sqrt(s*s-4*o*c))/(2*o),u=(-s-Math.sqrt(s*s-4*o*c))/(2*o),d=null;return T>=0&&T<=1?[T]:u>=0&&u<=1?[u]:d}else return null},h.HALF_PI=.5*Math.PI,h.ONE_AND_HALF_PI=1.5*Math.PI,h.TWO_PI=2*Math.PI,h.THREE_PI=3*Math.PI,M.exports=h},function(M,P,L){function g(){}g.sign=function(h){return h>0?1:h<0?-1:0},g.floor=function(h){return h<0?Math.ceil(h):Math.floor(h)},g.ceil=function(h){return h<0?Math.floor(h):Math.ceil(h)},M.exports=g},function(M,P,L){function g(){}g.MAX_VALUE=2147483647,g.MIN_VALUE=-2147483648,M.exports=g},function(M,P,L){var g=function(){function i(v,t){for(var o=0;o<t.length;o++){var s=t[o];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(v,s.key,s)}}return function(v,t,o){return t&&i(v.prototype,t),o&&i(v,o),v}}();function h(i,v){if(!(i instanceof v))throw new TypeError("Cannot call a class as a function")}var a=function(v){return{value:v,next:null,prev:null}},r=function(v,t,o,s){return v!==null?v.next=t:s.head=t,o!==null?o.prev=t:s.tail=t,t.prev=v,t.next=o,s.length++,t},e=function(v,t){var o=v.prev,s=v.next;return o!==null?o.next=s:t.head=s,s!==null?s.prev=o:t.tail=o,v.prev=v.next=null,t.length--,v},f=function(){function i(v){var t=this;h(this,i),this.length=0,this.head=null,this.tail=null,v?.forEach(function(o){return t.push(o)})}return g(i,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(t,o){return r(o.prev,a(t),o,this)}},{key:"insertAfter",value:function(t,o){return r(o,a(t),o.next,this)}},{key:"insertNodeBefore",value:function(t,o){return r(o.prev,t,o,this)}},{key:"insertNodeAfter",value:function(t,o){return r(o,t,o.next,this)}},{key:"push",value:function(t){return r(this.tail,a(t),null,this)}},{key:"unshift",value:function(t){return r(null,a(t),this.head,this)}},{key:"remove",value:function(t){return e(t,this)}},{key:"pop",value:function(){return e(this.tail,this).value}},{key:"popNode",value:function(){return e(this.tail,this)}},{key:"shift",value:function(){return e(this.head,this).value}},{key:"shiftNode",value:function(){return e(this.head,this)}},{key:"get_object_at",value:function(t){if(t<=this.length()){for(var o=1,s=this.head;o<t;)s=s.next,o++;return s.value}}},{key:"set_object_at",value:function(t,o){if(t<=this.length()){for(var s=1,c=this.head;s<t;)c=c.next,s++;c.value=o}}}]),i}();M.exports=f},function(M,P,L){function g(h,a,r){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)}g.prototype.getX=function(){return this.x},g.prototype.getY=function(){return this.y},g.prototype.getLocation=function(){return new g(this.x,this.y)},g.prototype.setLocation=function(h,a,r){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+.5),this.y=Math.floor(a+.5)))},g.prototype.move=function(h,a){this.x=h,this.y=a},g.prototype.translate=function(h,a){this.x+=h,this.y+=a},g.prototype.equals=function(h){if(h.constructor.name=="Point"){var a=h;return this.x==a.x&&this.y==a.y}return this==h},g.prototype.toString=function(){return new g().constructor.name+"[x="+this.x+",y="+this.y+"]"},M.exports=g},function(M,P,L){function g(h,a,r,e){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)}g.prototype.getX=function(){return this.x},g.prototype.setX=function(h){this.x=h},g.prototype.getY=function(){return this.y},g.prototype.setY=function(h){this.y=h},g.prototype.getWidth=function(){return this.width},g.prototype.setWidth=function(h){this.width=h},g.prototype.getHeight=function(){return this.height},g.prototype.setHeight=function(h){this.height=h},g.prototype.getRight=function(){return this.x+this.width},g.prototype.getBottom=function(){return this.y+this.height},g.prototype.intersects=function(h){return!(this.getRight()<h.x||this.getBottom()<h.y||h.getRight()<this.x||h.getBottom()<this.y)},g.prototype.getCenterX=function(){return this.x+this.width/2},g.prototype.getMinX=function(){return this.getX()},g.prototype.getMaxX=function(){return this.getX()+this.width},g.prototype.getCenterY=function(){return this.y+this.height/2},g.prototype.getMinY=function(){return this.getY()},g.prototype.getMaxY=function(){return this.getY()+this.height},g.prototype.getWidthHalf=function(){return this.width/2},g.prototype.getHeightHalf=function(){return this.height/2},M.exports=g},function(M,P,L){var g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};function h(){}h.lastID=0,h.createID=function(a){return h.isPrimitive(a)?a:(a.uniqueID!=null||(a.uniqueID=h.getString(),h.lastID++),a.uniqueID)},h.getString=function(a){return a==null&&(a=h.lastID),"Object#"+a},h.isPrimitive=function(a){var r=typeof a>"u"?"undefined":g(a);return a==null||r!="object"&&r!="function"},M.exports=h},function(M,P,L){function g(s){if(Array.isArray(s)){for(var c=0,l=Array(s.length);c<s.length;c++)l[c]=s[c];return l}else return Array.from(s)}var h=L(0),a=L(7),r=L(3),e=L(1),f=L(6),i=L(5),v=L(17),t=L(29);function o(s){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=new Map,this.graphManager=new a(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,s!=null&&(this.isRemoteUse=s)}o.RANDOM_SEED=1,o.prototype=Object.create(t.prototype),o.prototype.getGraphManager=function(){return this.graphManager},o.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},o.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},o.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},o.prototype.newGraphManager=function(){var s=new a(this);return this.graphManager=s,s},o.prototype.newGraph=function(s){return new f(null,this.graphManager,s)},o.prototype.newNode=function(s){return new r(this.graphManager,s)},o.prototype.newEdge=function(s){return new e(null,null,s)},o.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},o.prototype.runLayout=function(){this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters();var s;return this.checkLayoutSuccess()?s=!1:s=this.layout(),h.ANIMATE==="during"?!1:(s&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,s)},o.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},o.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var s=this.graphManager.getAllEdges(),c=0;c<s.length;c++)s[c];for(var l=this.graphManager.getRoot().getNodes(),c=0;c<l.length;c++)l[c];this.update(this.graphManager.getRoot())}},o.prototype.update=function(s){if(s==null)this.update2();else if(s instanceof r){var c=s;if(c.getChild()!=null)for(var l=c.getChild().getNodes(),T=0;T<l.length;T++)update(l[T]);if(c.vGraphObject!=null){var u=c.vGraphObject;u.update(c)}}else if(s instanceof e){var d=s;if(d.vGraphObject!=null){var N=d.vGraphObject;N.update(d)}}else if(s instanceof f){var F=s;if(F.vGraphObject!=null){var A=F.vGraphObject;A.update(F)}}},o.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=h.QUALITY,this.animationDuringLayout=h.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=h.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=h.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=h.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=h.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=h.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},o.prototype.transform=function(s){if(s==null)this.transform(new i(0,0));else{var c=new v,l=this.graphManager.getRoot().updateLeftTop();if(l!=null){c.setWorldOrgX(s.x),c.setWorldOrgY(s.y),c.setDeviceOrgX(l.x),c.setDeviceOrgY(l.y);for(var T=this.getAllNodes(),u,d=0;d<T.length;d++)u=T[d],u.transform(c)}}},o.prototype.positionNodesRandomly=function(s){if(s==null)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var c,l,T=s.getNodes(),u=0;u<T.length;u++)c=T[u],l=c.getChild(),l==null||l.getNodes().length==0?c.scatter():(this.positionNodesRandomly(l),c.updateBounds())},o.prototype.getFlatForest=function(){for(var s=[],c=!0,l=this.graphManager.getRoot().getNodes(),T=!0,u=0;u<l.length;u++)l[u].getChild()!=null&&(T=!1);if(!T)return s;var d=new Set,N=[],F=new Map,A=[];for(A=A.concat(l);A.length>0&&c;){for(N.push(A[0]);N.length>0&&c;){var G=N[0];N.splice(0,1),d.add(G);for(var B=G.getEdges(),u=0;u<B.length;u++){var U=B[u].getOtherEnd(G);if(F.get(G)!=U)if(!d.has(U))N.push(U),F.set(U,G);else{c=!1;break}}}if(!c)s=[];else{var K=[].concat(g(d));s.push(K);for(var u=0;u<K.length;u++){var D=K[u],at=A.indexOf(D);at>-1&&A.splice(at,1)}d=new Set,F=new Map}}return s},o.prototype.createDummyNodesForBendpoints=function(s){for(var c=[],l=s.source,T=this.graphManager.calcLowestCommonAncestor(s.source,s.target),u=0;u<s.bendpoints.length;u++){var d=this.newNode(null);d.setRect(new Point(0,0),new Dimension(1,1)),T.add(d);var N=this.newEdge(null);this.graphManager.add(N,l,d),c.add(d),l=d}var N=this.newEdge(null);return this.graphManager.add(N,l,s.target),this.edgeToDummyNodes.set(s,c),s.isInterGraph()?this.graphManager.remove(s):T.remove(s),c},o.prototype.createBendpointsFromDummyNodes=function(){var s=[];s=s.concat(this.graphManager.getAllEdges()),s=[].concat(g(this.edgeToDummyNodes.keys())).concat(s);for(var c=0;c<s.length;c++){var l=s[c];if(l.bendpoints.length>0){for(var T=this.edgeToDummyNodes.get(l),u=0;u<T.length;u++){var d=T[u],N=new i(d.getCenterX(),d.getCenterY()),F=l.bendpoints.get(u);F.x=N.x,F.y=N.y,d.getOwner().remove(d)}this.graphManager.add(l,l.source,l.target)}}},o.transform=function(s,c,l,T){if(l!=null&&T!=null){var u=c;if(s<=50){var d=c/l;u-=(c-d)/50*(50-s)}else{var N=c*T;u+=(N-c)/50*(s-50)}return u}else{var F,A;return s<=50?(F=9*c/500,A=c/10):(F=9*c/50,A=-8*c),F*s+A}},o.findCenterOfTree=function(s){var c=[];c=c.concat(s);var l=[],T=new Map,u=!1,d=null;(c.length==1||c.length==2)&&(u=!0,d=c[0]);for(var N=0;N<c.length;N++){var F=c[N],A=F.getNeighborsList().size;T.set(F,F.getNeighborsList().size),A==1&&l.push(F)}var G=[];for(G=G.concat(l);!u;){var B=[];B=B.concat(G),G=[];for(var N=0;N<c.length;N++){var F=c[N],U=c.indexOf(F);U>=0&&c.splice(U,1);var K=F.getNeighborsList();K.forEach(function(n){if(l.indexOf(n)<0){var m=T.get(n),p=m-1;p==1&&G.push(n),T.set(n,p)}})}l=l.concat(G),(c.length==1||c.length==2)&&(u=!0,d=c[0])}return d},o.prototype.setGraphManager=function(s){this.graphManager=s},M.exports=o},function(M,P,L){function g(){}g.seed=1,g.x=0,g.nextDouble=function(){return g.x=Math.sin(g.seed++)*1e4,g.x-Math.floor(g.x)},M.exports=g},function(M,P,L){var g=L(5);function h(a,r){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}h.prototype.getWorldOrgX=function(){return this.lworldOrgX},h.prototype.setWorldOrgX=function(a){this.lworldOrgX=a},h.prototype.getWorldOrgY=function(){return this.lworldOrgY},h.prototype.setWorldOrgY=function(a){this.lworldOrgY=a},h.prototype.getWorldExtX=function(){return this.lworldExtX},h.prototype.setWorldExtX=function(a){this.lworldExtX=a},h.prototype.getWorldExtY=function(){return this.lworldExtY},h.prototype.setWorldExtY=function(a){this.lworldExtY=a},h.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},h.prototype.setDeviceOrgX=function(a){this.ldeviceOrgX=a},h.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},h.prototype.setDeviceOrgY=function(a){this.ldeviceOrgY=a},h.prototype.getDeviceExtX=function(){return this.ldeviceExtX},h.prototype.setDeviceExtX=function(a){this.ldeviceExtX=a},h.prototype.getDeviceExtY=function(){return this.ldeviceExtY},h.prototype.setDeviceExtY=function(a){this.ldeviceExtY=a},h.prototype.transformX=function(a){var r=0,e=this.lworldExtX;return e!=0&&(r=this.ldeviceOrgX+(a-this.lworldOrgX)*this.ldeviceExtX/e),r},h.prototype.transformY=function(a){var r=0,e=this.lworldExtY;return e!=0&&(r=this.ldeviceOrgY+(a-this.lworldOrgY)*this.ldeviceExtY/e),r},h.prototype.inverseTransformX=function(a){var r=0,e=this.ldeviceExtX;return e!=0&&(r=this.lworldOrgX+(a-this.ldeviceOrgX)*this.lworldExtX/e),r},h.prototype.inverseTransformY=function(a){var r=0,e=this.ldeviceExtY;return e!=0&&(r=this.lworldOrgY+(a-this.ldeviceOrgY)*this.lworldExtY/e),r},h.prototype.inverseTransformPoint=function(a){var r=new g(this.inverseTransformX(a.x),this.inverseTransformY(a.y));return r},M.exports=h},function(M,P,L){function g(t){if(Array.isArray(t)){for(var o=0,s=Array(t.length);o<t.length;o++)s[o]=t[o];return s}else return Array.from(t)}var h=L(15),a=L(4),r=L(0),e=L(8),f=L(9);function i(){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}i.prototype=Object.create(h.prototype);for(var v in h)i[v]=h[v];i.prototype.initParameters=function(){h.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=a.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},i.prototype.calcIdealEdgeLengths=function(){for(var t,o,s,c,l,T,u,d=this.getGraphManager().getAllEdges(),N=0;N<d.length;N++)t=d[N],o=t.idealLength,t.isInterGraph&&(c=t.getSource(),l=t.getTarget(),T=t.getSourceInLca().getEstimatedSize(),u=t.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(t.idealLength+=T+u-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))},i.prototype.initSpringEmbedder=function(){var t=this.getAllNodes().length;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()},i.prototype.calcSpringForces=function(){for(var t=this.getAllEdges(),o,s=0;s<t.length;s++)o=t[s],this.calcSpringForce(o,o.idealLength)},i.prototype.calcRepulsionForces=function(){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,u=this.getAllNodes(),d;if(this.useFRGridVariant)for(this.totalIterations%a.GRID_CALCULATION_CHECK_PERIOD==1&&t&&this.updateGrid(),d=new Set,s=0;s<u.length;s++)l=u[s],this.calculateRepulsionForceOfANode(l,d,t,o),d.add(l);else for(s=0;s<u.length;s++)for(l=u[s],c=s+1;c<u.length;c++)T=u[c],l.getOwner()==T.getOwner()&&this.calcRepulsionForce(l,T)},i.prototype.calcGravitationalForces=function(){for(var t,o=this.getAllNodesToApplyGravitation(),s=0;s<o.length;s++)t=o[s],this.calcGravitationalForce(t)},i.prototype.moveNodes=function(){for(var t=this.getAllNodes(),o,s=0;s<t.length;s++)o=t[s],o.move()},i.prototype.calcSpringForce=function(t,o){var s=t.getSource(),c=t.getTarget(),l,T,u,d;if(this.uniformLeafNodeSizes&&s.getChild()==null&&c.getChild()==null)t.updateLengthSimple();else if(t.updateLength(),t.isOverlapingSourceAndTarget)return;l=t.getLength(),l!=0&&(T=t.edgeElasticity*(l-o),u=T*(t.lengthX/l),d=T*(t.lengthY/l),s.springForceX+=u,s.springForceY+=d,c.springForceX-=u,c.springForceY-=d)},i.prototype.calcRepulsionForce=function(t,o){var s=t.getRect(),c=o.getRect(),l=new Array(2),T=new Array(4),u,d,N,F,A,G,B;if(s.intersects(c)){e.calcSeparationAmount(s,c,l,a.DEFAULT_EDGE_LENGTH/2),G=2*l[0],B=2*l[1];var U=t.noOfChildren*o.noOfChildren/(t.noOfChildren+o.noOfChildren);t.repulsionForceX-=U*G,t.repulsionForceY-=U*B,o.repulsionForceX+=U*G,o.repulsionForceY+=U*B}else this.uniformLeafNodeSizes&&t.getChild()==null&&o.getChild()==null?(u=c.getCenterX()-s.getCenterX(),d=c.getCenterY()-s.getCenterY()):(e.getIntersection(s,c,T),u=T[2]-T[0],d=T[3]-T[1]),Math.abs(u)<a.MIN_REPULSION_DIST&&(u=f.sign(u)*a.MIN_REPULSION_DIST),Math.abs(d)<a.MIN_REPULSION_DIST&&(d=f.sign(d)*a.MIN_REPULSION_DIST),N=u*u+d*d,F=Math.sqrt(N),A=(t.nodeRepulsion/2+o.nodeRepulsion/2)*t.noOfChildren*o.noOfChildren/N,G=A*u/F,B=A*d/F,t.repulsionForceX-=G,t.repulsionForceY-=B,o.repulsionForceX+=G,o.repulsionForceY+=B},i.prototype.calcGravitationalForce=function(t){var o,s,c,l,T,u,d,N;o=t.getOwner(),s=(o.getRight()+o.getLeft())/2,c=(o.getTop()+o.getBottom())/2,l=t.getCenterX()-s,T=t.getCenterY()-c,u=Math.abs(l)+t.getWidth()/2,d=Math.abs(T)+t.getHeight()/2,t.getOwner()==this.graphManager.getRoot()?(N=o.getEstimatedSize()*this.gravityRangeFactor,(u>N||d>N)&&(t.gravitationForceX=-this.gravityConstant*l,t.gravitationForceY=-this.gravityConstant*T)):(N=o.getEstimatedSize()*this.compoundGravityRangeFactor,(u>N||d>N)&&(t.gravitationForceX=-this.gravityConstant*l*this.compoundGravityConstant,t.gravitationForceY=-this.gravityConstant*T*this.compoundGravityConstant))},i.prototype.isConverged=function(){var t,o=!1;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},i.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},i.prototype.calcNoOfChildrenForAllNodes=function(){for(var t,o=this.graphManager.getAllNodes(),s=0;s<o.length;s++)t=o[s],t.noOfChildren=t.getNoOfChildren()},i.prototype.calcGrid=function(t){var o=0,s=0;o=parseInt(Math.ceil((t.getRight()-t.getLeft())/this.repulsionRange)),s=parseInt(Math.ceil((t.getBottom()-t.getTop())/this.repulsionRange));for(var c=new Array(o),l=0;l<o;l++)c[l]=new Array(s);for(var l=0;l<o;l++)for(var T=0;T<s;T++)c[l][T]=new Array;return c},i.prototype.addNodeToGrid=function(t,o,s){var c=0,l=0,T=0,u=0;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)),u=parseInt(Math.floor((t.getRect().height+t.getRect().y-s)/this.repulsionRange));for(var d=c;d<=l;d++)for(var N=T;N<=u;N++)this.grid[d][N].push(t),t.setGridCoordinates(c,l,T,u)},i.prototype.updateGrid=function(){var t,o,s=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),t=0;t<s.length;t++)o=s[t],this.addNodeToGrid(o,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},i.prototype.calculateRepulsionForceOfANode=function(t,o,s,c){if(this.totalIterations%a.GRID_CALCULATION_CHECK_PERIOD==1&&s||c){var l=new Set;t.surrounding=new Array;for(var T,u=this.grid,d=t.startX-1;d<t.finishX+2;d++)for(var N=t.startY-1;N<t.finishY+2;N++)if(!(d<0||N<0||d>=u.length||N>=u[0].length)){for(var F=0;F<u[d][N].length;F++)if(T=u[d][N][F],!(t.getOwner()!=T.getOwner()||t==T)&&!o.has(T)&&!l.has(T)){var A=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);A<=this.repulsionRange&&G<=this.repulsionRange&&l.add(T)}}t.surrounding=[].concat(g(l))}for(d=0;d<t.surrounding.length;d++)this.calcRepulsionForce(t,t.surrounding[d])},i.prototype.calcRepulsionRange=function(){return 0},M.exports=i},function(M,P,L){var g=L(1),h=L(4);function a(e,f,i){g.call(this,e,f,i),this.idealLength=h.DEFAULT_EDGE_LENGTH,this.edgeElasticity=h.DEFAULT_SPRING_STRENGTH}a.prototype=Object.create(g.prototype);for(var r in g)a[r]=g[r];M.exports=a},function(M,P,L){var g=L(3),h=L(4);function a(e,f,i,v){g.call(this,e,f,i,v),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=[]}a.prototype=Object.create(g.prototype);for(var r in g)a[r]=g[r];a.prototype.setGridCoordinates=function(e,f,i,v){this.startX=e,this.finishX=f,this.startY=i,this.finishY=v},M.exports=a},function(M,P,L){function g(h,a){this.width=0,this.height=0,h!==null&&a!==null&&(this.height=a,this.width=h)}g.prototype.getWidth=function(){return this.width},g.prototype.setWidth=function(h){this.width=h},g.prototype.getHeight=function(){return this.height},g.prototype.setHeight=function(h){this.height=h},M.exports=g},function(M,P,L){var g=L(14);function h(){this.map={},this.keys=[]}h.prototype.put=function(a,r){var e=g.createID(a);this.contains(e)||(this.map[e]=r,this.keys.push(a))},h.prototype.contains=function(a){return g.createID(a),this.map[a]!=null},h.prototype.get=function(a){var r=g.createID(a);return this.map[r]},h.prototype.keySet=function(){return this.keys},M.exports=h},function(M,P,L){var g=L(14);function h(){this.set={}}h.prototype.add=function(a){var r=g.createID(a);this.contains(r)||(this.set[r]=a)},h.prototype.remove=function(a){delete this.set[g.createID(a)]},h.prototype.clear=function(){this.set={}},h.prototype.contains=function(a){return this.set[g.createID(a)]==a},h.prototype.isEmpty=function(){return this.size()===0},h.prototype.size=function(){return Object.keys(this.set).length},h.prototype.addAllTo=function(a){for(var r=Object.keys(this.set),e=r.length,f=0;f<e;f++)a.push(this.set[r[f]])},h.prototype.size=function(){return Object.keys(this.set).length},h.prototype.addAll=function(a){for(var r=a.length,e=0;e<r;e++){var f=a[e];this.add(f)}},M.exports=h},function(M,P,L){function g(){}g.multMat=function(h,a){for(var r=[],e=0;e<h.length;e++){r[e]=[];for(var f=0;f<a[0].length;f++){r[e][f]=0;for(var i=0;i<h[0].length;i++)r[e][f]+=h[e][i]*a[i][f]}}return r},g.transpose=function(h){for(var a=[],r=0;r<h[0].length;r++){a[r]=[];for(var e=0;e<h.length;e++)a[r][e]=h[e][r]}return a},g.multCons=function(h,a){for(var r=[],e=0;e<h.length;e++)r[e]=h[e]*a;return r},g.minusOp=function(h,a){for(var r=[],e=0;e<h.length;e++)r[e]=h[e]-a[e];return r},g.dotProduct=function(h,a){for(var r=0,e=0;e<h.length;e++)r+=h[e]*a[e];return r},g.mag=function(h){return Math.sqrt(this.dotProduct(h,h))},g.normalize=function(h){for(var a=[],r=this.mag(h),e=0;e<h.length;e++)a[e]=h[e]/r;return a},g.multGamma=function(h){for(var a=[],r=0,e=0;e<h.length;e++)r+=h[e];r*=-1/h.length;for(var f=0;f<h.length;f++)a[f]=r+h[f];return a},g.multL=function(h,a,r){for(var e=[],f=[],i=[],v=0;v<a[0].length;v++){for(var t=0,o=0;o<a.length;o++)t+=-.5*a[o][v]*h[o];f[v]=t}for(var s=0;s<r.length;s++){for(var c=0,l=0;l<r.length;l++)c+=r[s][l]*f[l];i[s]=c}for(var T=0;T<a.length;T++){for(var u=0,d=0;d<a[0].length;d++)u+=a[T][d]*i[d];e[T]=u}return e},M.exports=g},function(M,P,L){var g=function(){function e(f,i){for(var v=0;v<i.length;v++){var t=i[v];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(f,t.key,t)}}return function(f,i,v){return i&&e(f.prototype,i),v&&e(f,v),f}}();function h(e,f){if(!(e instanceof f))throw new TypeError("Cannot call a class as a function")}var a=L(11),r=function(){function e(f,i){h(this,e),(i!==null||i!==void 0)&&(this.compareFunction=this._defaultCompareFunction);var v=void 0;f instanceof a?v=f.size():v=f.length,this._quicksort(f,0,v-1)}return g(e,[{key:"_quicksort",value:function(i,v,t){if(v<t){var o=this._partition(i,v,t);this._quicksort(i,v,o),this._quicksort(i,o+1,t)}}},{key:"_partition",value:function(i,v,t){for(var o=this._get(i,v),s=v,c=t;;){for(;this.compareFunction(o,this._get(i,c));)c--;for(;this.compareFunction(this._get(i,s),o);)s++;if(s<c)this._swap(i,s,c),s++,c--;else return c}}},{key:"_get",value:function(i,v){return i instanceof a?i.get_object_at(v):i[v]}},{key:"_set",value:function(i,v,t){i instanceof a?i.set_object_at(v,t):i[v]=t}},{key:"_swap",value:function(i,v,t){var o=this._get(i,v);this._set(i,v,this._get(i,t)),this._set(i,t,o)}},{key:"_defaultCompareFunction",value:function(i,v){return v>i}}]),e}();M.exports=r},function(M,P,L){function g(){}g.svd=function(h){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=h.length,this.n=h[0].length;var a=Math.min(this.m,this.n);this.s=function(Nt){for(var At=[];Nt-- >0;)At.push(0);return At}(Math.min(this.m+1,this.n)),this.U=function(Nt){var At=function Zt(Gt){if(Gt.length==0)return 0;for(var $t=[],Ft=0;Ft<Gt[0];Ft++)$t.push(Zt(Gt.slice(1)));return $t};return At(Nt)}([this.m,a]),this.V=function(Nt){var At=function Zt(Gt){if(Gt.length==0)return 0;for(var $t=[],Ft=0;Ft<Gt[0];Ft++)$t.push(Zt(Gt.slice(1)));return $t};return At(Nt)}([this.n,this.n]);for(var r=function(Nt){for(var At=[];Nt-- >0;)At.push(0);return At}(this.n),e=function(Nt){for(var At=[];Nt-- >0;)At.push(0);return At}(this.m),f=!0,i=Math.min(this.m-1,this.n),v=Math.max(0,Math.min(this.n-2,this.m)),t=0;t<Math.max(i,v);t++){if(t<i){this.s[t]=0;for(var o=t;o<this.m;o++)this.s[t]=g.hypot(this.s[t],h[o][t]);if(this.s[t]!==0){h[t][t]<0&&(this.s[t]=-this.s[t]);for(var s=t;s<this.m;s++)h[s][t]/=this.s[t];h[t][t]+=1}this.s[t]=-this.s[t]}for(var c=t+1;c<this.n;c++){if(function(Nt,At){return Nt&&At}(t<i,this.s[t]!==0)){for(var l=0,T=t;T<this.m;T++)l+=h[T][t]*h[T][c];l=-l/h[t][t];for(var u=t;u<this.m;u++)h[u][c]+=l*h[u][t]}r[c]=h[t][c]}if(function(Nt,At){return At}(f,t<i))for(var d=t;d<this.m;d++)this.U[d][t]=h[d][t];if(t<v){r[t]=0;for(var N=t+1;N<this.n;N++)r[t]=g.hypot(r[t],r[N]);if(r[t]!==0){r[t+1]<0&&(r[t]=-r[t]);for(var F=t+1;F<this.n;F++)r[F]/=r[t];r[t+1]+=1}if(r[t]=-r[t],function(Nt,At){return Nt&&At}(t+1<this.m,r[t]!==0)){for(var A=t+1;A<this.m;A++)e[A]=0;for(var G=t+1;G<this.n;G++)for(var B=t+1;B<this.m;B++)e[B]+=r[G]*h[B][G];for(var U=t+1;U<this.n;U++)for(var K=-r[U]/r[t+1],D=t+1;D<this.m;D++)h[D][U]+=K*e[D]}for(var at=t+1;at<this.n;at++)this.V[at][t]=r[at]}}var n=Math.min(this.n,this.m+1);i<this.n&&(this.s[i]=h[i][i]),this.m<n&&(this.s[n-1]=0),v+1<n&&(r[v]=h[v][n-1]),r[n-1]=0;{for(var m=i;m<a;m++){for(var p=0;p<this.m;p++)this.U[p][m]=0;this.U[m][m]=1}for(var E=i-1;E>=0;E--)if(this.s[E]!==0){for(var y=E+1;y<a;y++){for(var I=0,w=E;w<this.m;w++)I+=this.U[w][E]*this.U[w][y];I=-I/this.U[E][E];for(var R=E;R<this.m;R++)this.U[R][y]+=I*this.U[R][E]}for(var W=E;W<this.m;W++)this.U[W][E]=-this.U[W][E];this.U[E][E]=1+this.U[E][E];for(var x=0;x<E-1;x++)this.U[x][E]=0}else{for(var q=0;q<this.m;q++)this.U[q][E]=0;this.U[E][E]=1}}for(var V=this.n-1;V>=0;V--){if(function(Nt,At){return Nt&&At}(V<v,r[V]!==0))for(var Y=V+1;Y<a;Y++){for(var et=0,z=V+1;z<this.n;z++)et+=this.V[z][V]*this.V[z][Y];et=-et/this.V[V+1][V];for(var O=V+1;O<this.n;O++)this.V[O][Y]+=et*this.V[O][V]}for(var H=0;H<this.n;H++)this.V[H][V]=0;this.V[V][V]=1}for(var $=n-1,_=Math.pow(2,-52),ht=Math.pow(2,-966);n>0;){var J=void 0,Rt=void 0;for(J=n-2;J>=-1&&J!==-1;J--)if(Math.abs(r[J])<=ht+_*(Math.abs(this.s[J])+Math.abs(this.s[J+1]))){r[J]=0;break}if(J===n-2)Rt=4;else{var Lt=void 0;for(Lt=n-1;Lt>=J&&Lt!==J;Lt--){var vt=(Lt!==n?Math.abs(r[Lt]):0)+(Lt!==J+1?Math.abs(r[Lt-1]):0);if(Math.abs(this.s[Lt])<=ht+_*vt){this.s[Lt]=0;break}}Lt===J?Rt=3:Lt===n-1?Rt=1:(Rt=2,J=Lt)}switch(J++,Rt){case 1:{var rt=r[n-2];r[n-2]=0;for(var ut=n-2;ut>=J;ut--){var Tt=g.hypot(this.s[ut],rt),Mt=this.s[ut]/Tt,Dt=rt/Tt;this.s[ut]=Tt,ut!==J&&(rt=-Dt*r[ut-1],r[ut-1]=Mt*r[ut-1]);for(var mt=0;mt<this.n;mt++)Tt=Mt*this.V[mt][ut]+Dt*this.V[mt][n-1],this.V[mt][n-1]=-Dt*this.V[mt][ut]+Mt*this.V[mt][n-1],this.V[mt][ut]=Tt}}break;case 2:{var xt=r[J-1];r[J-1]=0;for(var St=J;St<n;St++){var Vt=g.hypot(this.s[St],xt),Xt=this.s[St]/Vt,Ut=xt/Vt;this.s[St]=Vt,xt=-Ut*r[St],r[St]=Xt*r[St];for(var bt=0;bt<this.m;bt++)Vt=Xt*this.U[bt][St]+Ut*this.U[bt][J-1],this.U[bt][J-1]=-Ut*this.U[bt][St]+Xt*this.U[bt][J-1],this.U[bt][St]=Vt}}break;case 3:{var Ht=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[J])),Math.abs(r[J])),Bt=this.s[n-1]/Ht,S=this.s[n-2]/Ht,b=r[n-2]/Ht,Z=this.s[J]/Ht,Q=r[J]/Ht,k=((S+Bt)*(S-Bt)+b*b)/2,it=Bt*b*(Bt*b),gt=0;(function(Nt,At){return Nt||At})(k!==0,it!==0)&&(gt=Math.sqrt(k*k+it),k<0&&(gt=-gt),gt=it/(k+gt));for(var ot=(Z+Bt)*(Z-Bt)+gt,tt=Z*Q,j=J;j<n-1;j++){var dt=g.hypot(ot,tt),wt=ot/dt,yt=tt/dt;j!==J&&(r[j-1]=dt),ot=wt*this.s[j]+yt*r[j],r[j]=wt*r[j]-yt*this.s[j],tt=yt*this.s[j+1],this.s[j+1]=wt*this.s[j+1];for(var It=0;It<this.n;It++)dt=wt*this.V[It][j]+yt*this.V[It][j+1],this.V[It][j+1]=-yt*this.V[It][j]+wt*this.V[It][j+1],this.V[It][j]=dt;if(dt=g.hypot(ot,tt),wt=ot/dt,yt=tt/dt,this.s[j]=dt,ot=wt*r[j]+yt*this.s[j+1],this.s[j+1]=-yt*r[j]+wt*this.s[j+1],tt=yt*r[j+1],r[j+1]=wt*r[j+1],j<this.m-1)for(var ft=0;ft<this.m;ft++)dt=wt*this.U[ft][j]+yt*this.U[ft][j+1],this.U[ft][j+1]=-yt*this.U[ft][j]+wt*this.U[ft][j+1],this.U[ft][j]=dt}r[n-2]=ot}break;case 4:{if(this.s[J]<=0){this.s[J]=this.s[J]<0?-this.s[J]:0;for(var st=0;st<=$;st++)this.V[st][J]=-this.V[st][J]}for(;J<$&&!(this.s[J]>=this.s[J+1]);){var Ct=this.s[J];if(this.s[J]=this.s[J+1],this.s[J+1]=Ct,J<this.n-1)for(var ct=0;ct<this.n;ct++)Ct=this.V[ct][J+1],this.V[ct][J+1]=this.V[ct][J],this.V[ct][J]=Ct;if(J<this.m-1)for(var lt=0;lt<this.m;lt++)Ct=this.U[lt][J+1],this.U[lt][J+1]=this.U[lt][J],this.U[lt][J]=Ct;J++}n--}break}}var Wt={U:this.U,V:this.V,S:this.s};return Wt},g.hypot=function(h,a){var r=void 0;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},M.exports=g},function(M,P,L){var g=function(){function r(e,f){for(var i=0;i<f.length;i++){var v=f[i];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(e,v.key,v)}}return function(e,f,i){return f&&r(e.prototype,f),i&&r(e,i),e}}();function h(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}var a=function(){function r(e,f){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,t=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;h(this,r),this.sequence1=e,this.sequence2=f,this.match_score=i,this.mismatch_penalty=v,this.gap_penalty=t,this.iMax=e.length+1,this.jMax=f.length+1,this.grid=new Array(this.iMax);for(var o=0;o<this.iMax;o++){this.grid[o]=new Array(this.jMax);for(var s=0;s<this.jMax;s++)this.grid[o][s]=0}this.tracebackGrid=new Array(this.iMax);for(var c=0;c<this.iMax;c++){this.tracebackGrid[c]=new Array(this.jMax);for(var l=0;l<this.jMax;l++)this.tracebackGrid[c][l]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return g(r,[{key:"getScore",value:function(){return this.score}},{key:"getAlignments",value:function(){return this.alignments}},{key:"computeGrids",value:function(){for(var f=1;f<this.jMax;f++)this.grid[0][f]=this.grid[0][f-1]+this.gap_penalty,this.tracebackGrid[0][f]=[!1,!1,!0];for(var i=1;i<this.iMax;i++)this.grid[i][0]=this.grid[i-1][0]+this.gap_penalty,this.tracebackGrid[i][0]=[!1,!0,!1];for(var v=1;v<this.iMax;v++)for(var t=1;t<this.jMax;t++){var o=void 0;this.sequence1[v-1]===this.sequence2[t-1]?o=this.grid[v-1][t-1]+this.match_score:o=this.grid[v-1][t-1]+this.mismatch_penalty;var s=this.grid[v-1][t]+this.gap_penalty,c=this.grid[v][t-1]+this.gap_penalty,l=[o,s,c],T=this.arrayAllMaxIndexes(l);this.grid[v][t]=l[T[0]],this.tracebackGrid[v][t]=[T.includes(0),T.includes(1),T.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:"alignmentTraceback",value:function(){var f=[];for(f.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});f[0];){var i=f[0],v=this.tracebackGrid[i.pos[0]][i.pos[1]];v[0]&&f.push({pos:[i.pos[0]-1,i.pos[1]-1],seq1:this.sequence1[i.pos[0]-1]+i.seq1,seq2:this.sequence2[i.pos[1]-1]+i.seq2}),v[1]&&f.push({pos:[i.pos[0]-1,i.pos[1]],seq1:this.sequence1[i.pos[0]-1]+i.seq1,seq2:"-"+i.seq2}),v[2]&&f.push({pos:[i.pos[0],i.pos[1]-1],seq1:"-"+i.seq1,seq2:this.sequence2[i.pos[1]-1]+i.seq2}),i.pos[0]===0&&i.pos[1]===0&&this.alignments.push({sequence1:i.seq1,sequence2:i.seq2}),f.shift()}return this.alignments}},{key:"getAllIndexes",value:function(f,i){for(var v=[],t=-1;(t=f.indexOf(i,t+1))!==-1;)v.push(t);return v}},{key:"arrayAllMaxIndexes",value:function(f){return this.getAllIndexes(f,Math.max.apply(null,f))}}]),r}();M.exports=a},function(M,P,L){var g=function(){};g.FDLayout=L(18),g.FDLayoutConstants=L(4),g.FDLayoutEdge=L(19),g.FDLayoutNode=L(20),g.DimensionD=L(21),g.HashMap=L(22),g.HashSet=L(23),g.IGeometry=L(8),g.IMath=L(9),g.Integer=L(10),g.Point=L(12),g.PointD=L(5),g.RandomSeed=L(16),g.RectangleD=L(13),g.Transform=L(17),g.UniqueIDGeneretor=L(14),g.Quicksort=L(25),g.LinkedList=L(11),g.LGraphObject=L(2),g.LGraph=L(6),g.LEdge=L(1),g.LGraphManager=L(7),g.LNode=L(3),g.Layout=L(15),g.LayoutConstants=L(0),g.NeedlemanWunsch=L(27),g.Matrix=L(24),g.SVD=L(26),M.exports=g},function(M,P,L){function g(){this.listeners=[]}var h=g.prototype;h.addListener=function(a,r){this.listeners.push({event:a,callback:r})},h.removeListener=function(a,r){for(var e=this.listeners.length;e>=0;e--){var f=this.listeners[e];f.event===a&&f.callback===r&&this.listeners.splice(e,1)}},h.emit=function(a,r){for(var e=0;e<this.listeners.length;e++){var f=this.listeners[e];a===f.event&&f.callback(r)}},M.exports=g}])})}(ce)),ce.exports}var pr=fe.exports,Ie;function yr(){return Ie||(Ie=1,function(C,X){(function(P,L){C.exports=L(vr())})(pr,function(M){return(()=>{var P={45:(a,r,e)=>{var f={};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},806:(a,r,e)=>{var f=e(551).FDLayoutConstants;function i(){}for(var v in f)i[v]=f[v];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},767:(a,r,e)=>{var f=e(551).FDLayoutEdge;function i(t,o,s){f.call(this,t,o,s)}i.prototype=Object.create(f.prototype);for(var v in f)i[v]=f[v];a.exports=i},880:(a,r,e)=>{var f=e(551).LGraph;function i(t,o,s){f.call(this,t,o,s)}i.prototype=Object.create(f.prototype);for(var v in f)i[v]=f[v];a.exports=i},578:(a,r,e)=>{var f=e(551).LGraphManager;function i(t){f.call(this,t)}i.prototype=Object.create(f.prototype);for(var v in f)i[v]=f[v];a.exports=i},765:(a,r,e)=>{var f=e(551).FDLayout,i=e(578),v=e(880),t=e(991),o=e(767),s=e(806),c=e(902),l=e(551).FDLayoutConstants,T=e(551).LayoutConstants,u=e(551).Point,d=e(551).PointD,N=e(551).DimensionD,F=e(551).Layout,A=e(551).Integer,G=e(551).IGeometry,B=e(551).LGraph,U=e(551).Transform,K=e(551).LinkedList;function D(){f.call(this),this.toBeTiled={},this.constraints={}}D.prototype=Object.create(f.prototype);for(var at in f)D[at]=f[at];D.prototype.newGraphManager=function(){var n=new i(this);return this.graphManager=n,n},D.prototype.newGraph=function(n){return new v(null,this.graphManager,n)},D.prototype.newNode=function(n){return new t(this.graphManager,n)},D.prototype.newEdge=function(n){return new o(null,null,n)},D.prototype.initParameters=function(){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)},D.prototype.initSpringEmbedder=function(){f.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/l.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},D.prototype.layout=function(){var n=T.DEFAULT_CREATE_BENDS_AS_NEEDED;return n&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},D.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(s.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),p=this.nodesWithGravity.filter(function(I){return m.has(I)});this.graphManager.setAllNodesToApplyGravitation(p)}}else{var n=this.getFlatForest();if(n.length>0)this.positionNodesRadially(n);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),p=this.nodesWithGravity.filter(function(E){return m.has(E)});this.graphManager.setAllNodesToApplyGravitation(p),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(c.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),s.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},D.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%l.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var n=new Set(this.getAllNodes()),m=this.nodesWithGravity.filter(function(y){return n.has(y)});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}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;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++}var p=!this.isTreeGrowing&&!this.isGrowthFinished,E=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(p,E),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},D.prototype.getPositionsData=function(){for(var n=this.graphManager.getAllNodes(),m={},p=0;p<n.length;p++){var E=n[p].rect,y=n[p].id;m[y]={id:y,x:E.getCenterX(),y:E.getCenterY(),w:E.width,h:E.height}}return m},D.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var n=!1;if(l.ANIMATE==="during")this.emit("layoutstarted");else{for(;!n;)n=this.tick();this.graphManager.updateBounds()}},D.prototype.moveNodes=function(){for(var n=this.getAllNodes(),m,p=0;p<n.length;p++)m=n[p],m.calculateDisplacement();Object.keys(this.constraints).length>0&&this.updateDisplacements();for(var p=0;p<n.length;p++)m=n[p],m.move()},D.prototype.initConstraintVariables=function(){var n=this;this.idToNodeMap=new Map,this.fixedNodeSet=new Set;for(var m=this.graphManager.getAllNodes(),p=0;p<m.length;p++){var E=m[p];this.idToNodeMap.set(E.id,E)}var y=function O(H){for(var $=H.getChild().getNodes(),_,ht=0,J=0;J<$.length;J++)_=$[J],_.getChild()==null?n.fixedNodeSet.has(_.id)&&(ht+=100):ht+=O(_);return ht};if(this.constraints.fixedNodeConstraint){this.constraints.fixedNodeConstraint.forEach(function($){n.fixedNodeSet.add($.nodeId)});for(var m=this.graphManager.getAllNodes(),E,p=0;p<m.length;p++)if(E=m[p],E.getChild()!=null){var I=y(E);I>0&&(E.fixedNodeWeight=I)}}if(this.constraints.relativePlacementConstraint){var w=new Map,R=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(O){n.fixedNodesOnHorizontal.add(O),n.fixedNodesOnVertical.add(O)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var W=this.constraints.alignmentConstraint.vertical,p=0;p<W.length;p++)this.dummyToNodeForVerticalAlignment.set("dummy"+p,[]),W[p].forEach(function(H){w.set(H,"dummy"+p),n.dummyToNodeForVerticalAlignment.get("dummy"+p).push(H),n.fixedNodeSet.has(H)&&n.fixedNodesOnHorizontal.add("dummy"+p)});if(this.constraints.alignmentConstraint.horizontal)for(var x=this.constraints.alignmentConstraint.horizontal,p=0;p<x.length;p++)this.dummyToNodeForHorizontalAlignment.set("dummy"+p,[]),x[p].forEach(function(H){R.set(H,"dummy"+p),n.dummyToNodeForHorizontalAlignment.get("dummy"+p).push(H),n.fixedNodeSet.has(H)&&n.fixedNodesOnVertical.add("dummy"+p)})}if(s.RELAX_MOVEMENT_ON_CONSTRAINTS)this.shuffle=function(O){var H,$,_;for(_=O.length-1;_>=2*O.length/3;_--)H=Math.floor(Math.random()*(_+1)),$=O[_],O[_]=O[H],O[H]=$;return O},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(O){if(O.left){var H=w.has(O.left)?w.get(O.left):O.left,$=w.has(O.right)?w.get(O.right):O.right;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:O.gap}),n.nodeToRelativeConstraintMapHorizontal.get($).push({left:H,gap:O.gap})}else{var _=R.has(O.top)?R.get(O.top):O.top,ht=R.has(O.bottom)?R.get(O.bottom):O.bottom;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:O.gap}),n.nodeToRelativeConstraintMapVertical.get(ht).push({top:_,gap:O.gap})}});else{var q=new Map,V=new Map;this.constraints.relativePlacementConstraint.forEach(function(O){if(O.left){var H=w.has(O.left)?w.get(O.left):O.left,$=w.has(O.right)?w.get(O.right):O.right;q.has(H)?q.get(H).push($):q.set(H,[$]),q.has($)?q.get($).push(H):q.set($,[H])}else{var _=R.has(O.top)?R.get(O.top):O.top,ht=R.has(O.bottom)?R.get(O.bottom):O.bottom;V.has(_)?V.get(_).push(ht):V.set(_,[ht]),V.has(ht)?V.get(ht).push(_):V.set(ht,[_])}});var Y=function(H,$){var _=[],ht=[],J=new K,Rt=new Set,Lt=0;return H.forEach(function(vt,rt){if(!Rt.has(rt)){_[Lt]=[],ht[Lt]=!1;var ut=rt;for(J.push(ut),Rt.add(ut),_[Lt].push(ut);J.length!=0;){ut=J.shift(),$.has(ut)&&(ht[Lt]=!0);var Tt=H.get(ut);Tt.forEach(function(Mt){Rt.has(Mt)||(J.push(Mt),Rt.add(Mt),_[Lt].push(Mt))})}Lt++}}),{components:_,isFixed:ht}},et=Y(q,n.fixedNodesOnHorizontal);this.componentsOnHorizontal=et.components,this.fixedComponentsOnHorizontal=et.isFixed;var z=Y(V,n.fixedNodesOnVertical);this.componentsOnVertical=z.components,this.fixedComponentsOnVertical=z.isFixed}}},D.prototype.updateDisplacements=function(){var n=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(z){var O=n.idToNodeMap.get(z.nodeId);O.displacementX=0,O.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var m=this.constraints.alignmentConstraint.vertical,p=0;p<m.length;p++){for(var E=0,y=0;y<m[p].length;y++){if(this.fixedNodeSet.has(m[p][y])){E=0;break}E+=this.idToNodeMap.get(m[p][y]).displacementX}for(var I=E/m[p].length,y=0;y<m[p].length;y++)this.idToNodeMap.get(m[p][y]).displacementX=I}if(this.constraints.alignmentConstraint.horizontal)for(var w=this.constraints.alignmentConstraint.horizontal,p=0;p<w.length;p++){for(var R=0,y=0;y<w[p].length;y++){if(this.fixedNodeSet.has(w[p][y])){R=0;break}R+=this.idToNodeMap.get(w[p][y]).displacementY}for(var W=R/w[p].length,y=0;y<w[p].length;y++)this.idToNodeMap.get(w[p][y]).displacementY=W}}if(this.constraints.relativePlacementConstraint)if(s.RELAX_MOVEMENT_ON_CONSTRAINTS)this.totalIterations%10==0&&(this.shuffle(this.nodesInRelativeHorizontal),this.shuffle(this.nodesInRelativeVertical)),this.nodesInRelativeHorizontal.forEach(function(z){if(!n.fixedNodesOnHorizontal.has(z)){var O=0;n.dummyToNodeForVerticalAlignment.has(z)?O=n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(z)[0]).displacementX:O=n.idToNodeMap.get(z).displacementX,n.nodeToRelativeConstraintMapHorizontal.get(z).forEach(function(H){if(H.right){var $=n.nodeToTempPositionMapHorizontal.get(H.right)-n.nodeToTempPositionMapHorizontal.get(z)-O;$<H.gap&&(O-=H.gap-$)}else{var $=n.nodeToTempPositionMapHorizontal.get(z)-n.nodeToTempPositionMapHorizontal.get(H.left)+O;$<H.gap&&(O+=H.gap-$)}}),n.nodeToTempPositionMapHorizontal.set(z,n.nodeToTempPositionMapHorizontal.get(z)+O),n.dummyToNodeForVerticalAlignment.has(z)?n.dummyToNodeForVerticalAlignment.get(z).forEach(function(H){n.idToNodeMap.get(H).displacementX=O}):n.idToNodeMap.get(z).displacementX=O}}),this.nodesInRelativeVertical.forEach(function(z){if(!n.fixedNodesOnHorizontal.has(z)){var O=0;n.dummyToNodeForHorizontalAlignment.has(z)?O=n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(z)[0]).displacementY:O=n.idToNodeMap.get(z).displacementY,n.nodeToRelativeConstraintMapVertical.get(z).forEach(function(H){if(H.bottom){var $=n.nodeToTempPositionMapVertical.get(H.bottom)-n.nodeToTempPositionMapVertical.get(z)-O;$<H.gap&&(O-=H.gap-$)}else{var $=n.nodeToTempPositionMapVertical.get(z)-n.nodeToTempPositionMapVertical.get(H.top)+O;$<H.gap&&(O+=H.gap-$)}}),n.nodeToTempPositionMapVertical.set(z,n.nodeToTempPositionMapVertical.get(z)+O),n.dummyToNodeForHorizontalAlignment.has(z)?n.dummyToNodeForHorizontalAlignment.get(z).forEach(function(H){n.idToNodeMap.get(H).displacementY=O}):n.idToNodeMap.get(z).displacementY=O}});else{for(var p=0;p<this.componentsOnHorizontal.length;p++){var x=this.componentsOnHorizontal[p];if(this.fixedComponentsOnHorizontal[p])for(var y=0;y<x.length;y++)this.dummyToNodeForVerticalAlignment.has(x[y])?this.dummyToNodeForVerticalAlignment.get(x[y]).forEach(function(H){n.idToNodeMap.get(H).displacementX=0}):this.idToNodeMap.get(x[y]).displacementX=0;else{for(var q=0,V=0,y=0;y<x.length;y++)if(this.dummyToNodeForVerticalAlignment.has(x[y])){var Y=this.dummyToNodeForVerticalAlignment.get(x[y]);q+=Y.length*this.idToNodeMap.get(Y[0]).displacementX,V+=Y.length}else q+=this.idToNodeMap.get(x[y]).displacementX,V++;for(var et=q/V,y=0;y<x.length;y++)this.dummyToNodeForVerticalAlignment.has(x[y])?this.dummyToNodeForVerticalAlignment.get(x[y]).forEach(function(H){n.idToNodeMap.get(H).displacementX=et}):this.idToNodeMap.get(x[y]).displacementX=et}}for(var p=0;p<this.componentsOnVertical.length;p++){var x=this.componentsOnVertical[p];if(this.fixedComponentsOnVertical[p])for(var y=0;y<x.length;y++)this.dummyToNodeForHorizontalAlignment.has(x[y])?this.dummyToNodeForHorizontalAlignment.get(x[y]).forEach(function($){n.idToNodeMap.get($).displacementY=0}):this.idToNodeMap.get(x[y]).displacementY=0;else{for(var q=0,V=0,y=0;y<x.length;y++)if(this.dummyToNodeForHorizontalAlignment.has(x[y])){var Y=this.dummyToNodeForHorizontalAlignment.get(x[y]);q+=Y.length*this.idToNodeMap.get(Y[0]).displacementY,V+=Y.length}else q+=this.idToNodeMap.get(x[y]).displacementY,V++;for(var et=q/V,y=0;y<x.length;y++)this.dummyToNodeForHorizontalAlignment.has(x[y])?this.dummyToNodeForHorizontalAlignment.get(x[y]).forEach(function(J){n.idToNodeMap.get(J).displacementY=et}):this.idToNodeMap.get(x[y]).displacementY=et}}}},D.prototype.calculateNodesToApplyGravitationTo=function(){var n=[],m,p=this.graphManager.getGraphs(),E=p.length,y;for(y=0;y<E;y++)m=p[y],m.updateConnected(),m.isConnected||(n=n.concat(m.getNodes()));return n},D.prototype.createBendpoints=function(){var n=[];n=n.concat(this.graphManager.getAllEdges());var m=new Set,p;for(p=0;p<n.length;p++){var E=n[p];if(!m.has(E)){var y=E.getSource(),I=E.getTarget();if(y==I)E.getBendpoints().push(new d),E.getBendpoints().push(new d),this.createDummyNodesForBendpoints(E),m.add(E);else{var w=[];if(w=w.concat(y.getEdgeListToNode(I)),w=w.concat(I.getEdgeListToNode(y)),!m.has(w[0])){if(w.length>1){var R;for(R=0;R<w.length;R++){var W=w[R];W.getBendpoints().push(new d),this.createDummyNodesForBendpoints(W)}}w.forEach(function(x){m.add(x)})}}}if(m.size==n.length)break}},D.prototype.positionNodesRadially=function(n){for(var m=new u(0,0),p=Math.ceil(Math.sqrt(n.length)),E=0,y=0,I=0,w=new d(0,0),R=0;R<n.length;R++){R%p==0&&(I=0,y=E,R!=0&&(y+=s.DEFAULT_COMPONENT_SEPERATION),E=0);var W=n[R],x=F.findCenterOfTree(W);m.x=I,m.y=y,w=D.radialLayout(W,x,m),w.y>E&&(E=Math.floor(w.y)),I=Math.floor(w.x+s.DEFAULT_COMPONENT_SEPERATION)}this.transform(new d(T.WORLD_CENTER_X-w.x/2,T.WORLD_CENTER_Y-w.y/2))},D.radialLayout=function(n,m,p){var E=Math.max(this.maxDiagonalInTree(n),s.DEFAULT_RADIAL_SEPARATION);D.branchRadialLayout(m,null,0,359,0,E);var y=B.calculateBounds(n),I=new U;I.setDeviceOrgX(y.getMinX()),I.setDeviceOrgY(y.getMinY()),I.setWorldOrgX(p.x),I.setWorldOrgY(p.y);for(var w=0;w<n.length;w++){var R=n[w];R.transform(I)}var W=new d(y.getMaxX(),y.getMaxY());return I.inverseTransformPoint(W)},D.branchRadialLayout=function(n,m,p,E,y,I){var w=(E-p+1)/2;w<0&&(w+=180);var R=(w+p)%360,W=R*G.TWO_PI/360,x=y*Math.cos(W),q=y*Math.sin(W);n.setCenter(x,q);var V=[];V=V.concat(n.getEdges());var Y=V.length;m!=null&&Y--;for(var et=0,z=V.length,O,H=n.getEdgesBetween(m);H.length>1;){var $=H[0];H.splice(0,1);var _=V.indexOf($);_>=0&&V.splice(_,1),z--,Y--}m!=null?O=(V.indexOf(H[0])+1)%z:O=0;for(var ht=Math.abs(E-p)/Y,J=O;et!=Y;J=++J%z){var Rt=V[J].getOtherEnd(n);if(Rt!=m){var Lt=(p+et*ht)%360,vt=(Lt+ht)%360;D.branchRadialLayout(Rt,n,Lt,vt,y+I,I),et++}}},D.maxDiagonalInTree=function(n){for(var m=A.MIN_VALUE,p=0;p<n.length;p++){var E=n[p],y=E.getDiagonal();y>m&&(m=y)}return m},D.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},D.prototype.groupZeroDegreeMembers=function(){var n=this,m={};this.memberGroups={},this.idToDummyNode={};for(var p=[],E=this.graphManager.getAllNodes(),y=0;y<E.length;y++){var I=E[y],w=I.getParent();this.getNodeDegreeWithChildren(I)===0&&(w.id==null||!this.getToBeTiled(w))&&p.push(I)}for(var y=0;y<p.length;y++){var I=p[y],R=I.getParent().id;typeof m[R]>"u"&&(m[R]=[]),m[R]=m[R].concat(I)}Object.keys(m).forEach(function(W){if(m[W].length>1){var x="DummyCompound_"+W;n.memberGroups[x]=m[W];var q=m[W][0].getParent(),V=new t(n.graphManager);V.id=x,V.paddingLeft=q.paddingLeft||0,V.paddingRight=q.paddingRight||0,V.paddingBottom=q.paddingBottom||0,V.paddingTop=q.paddingTop||0,n.idToDummyNode[x]=V;var Y=n.getGraphManager().add(n.newGraph(),V),et=q.getChild();et.add(V);for(var z=0;z<m[W].length;z++){var O=m[W][z];et.remove(O),Y.add(O)}}})},D.prototype.clearCompounds=function(){var n={},m={};this.performDFSOnCompounds();for(var p=0;p<this.compoundOrder.length;p++)m[this.compoundOrder[p].id]=this.compoundOrder[p],n[this.compoundOrder[p].id]=[].concat(this.compoundOrder[p].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[p].getChild()),this.compoundOrder[p].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(n,m)},D.prototype.clearZeroDegreeMembers=function(){var n=this,m=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(p){var E=n.idToDummyNode[p];if(m[p]=n.tileNodes(n.memberGroups[p],E.paddingLeft+E.paddingRight),E.rect.width=m[p].width,E.rect.height=m[p].height,E.setCenter(m[p].centerX,m[p].centerY),E.labelMarginLeft=0,E.labelMarginTop=0,s.NODE_DIMENSIONS_INCLUDE_LABELS){var y=E.rect.width,I=E.rect.height;E.labelWidth&&(E.labelPosHorizontal=="left"?(E.rect.x-=E.labelWidth,E.setWidth(y+E.labelWidth),E.labelMarginLeft=E.labelWidth):E.labelPosHorizontal=="center"&&E.labelWidth>y?(E.rect.x-=(E.labelWidth-y)/2,E.setWidth(E.labelWidth),E.labelMarginLeft=(E.labelWidth-y)/2):E.labelPosHorizontal=="right"&&E.setWidth(y+E.labelWidth)),E.labelHeight&&(E.labelPosVertical=="top"?(E.rect.y-=E.labelHeight,E.setHeight(I+E.labelHeight),E.labelMarginTop=E.labelHeight):E.labelPosVertical=="center"&&E.labelHeight>I?(E.rect.y-=(E.labelHeight-I)/2,E.setHeight(E.labelHeight),E.labelMarginTop=(E.labelHeight-I)/2):E.labelPosVertical=="bottom"&&E.setHeight(I+E.labelHeight))}})},D.prototype.repopulateCompounds=function(){for(var n=this.compoundOrder.length-1;n>=0;n--){var m=this.compoundOrder[n],p=m.id,E=m.paddingLeft,y=m.paddingTop,I=m.labelMarginLeft,w=m.labelMarginTop;this.adjustLocations(this.tiledMemberPack[p],m.rect.x,m.rect.y,E,y,I,w)}},D.prototype.repopulateZeroDegreeMembers=function(){var n=this,m=this.tiledZeroDegreePack;Object.keys(m).forEach(function(p){var E=n.idToDummyNode[p],y=E.paddingLeft,I=E.paddingTop,w=E.labelMarginLeft,R=E.labelMarginTop;n.adjustLocations(m[p],E.rect.x,E.rect.y,y,I,w,R)})},D.prototype.getToBeTiled=function(n){var m=n.id;if(this.toBeTiled[m]!=null)return this.toBeTiled[m];var p=n.getChild();if(p==null)return this.toBeTiled[m]=!1,!1;for(var E=p.getNodes(),y=0;y<E.length;y++){var I=E[y];if(this.getNodeDegree(I)>0)return this.toBeTiled[m]=!1,!1;if(I.getChild()==null){this.toBeTiled[I.id]=!1;continue}if(!this.getToBeTiled(I))return this.toBeTiled[m]=!1,!1}return this.toBeTiled[m]=!0,!0},D.prototype.getNodeDegree=function(n){n.id;for(var m=n.getEdges(),p=0,E=0;E<m.length;E++){var y=m[E];y.getSource().id!==y.getTarget().id&&(p=p+1)}return p},D.prototype.getNodeDegreeWithChildren=function(n){var m=this.getNodeDegree(n);if(n.getChild()==null)return m;for(var p=n.getChild().getNodes(),E=0;E<p.length;E++){var y=p[E];m+=this.getNodeDegreeWithChildren(y)}return m},D.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},D.prototype.fillCompexOrderByDFS=function(n){for(var m=0;m<n.length;m++){var p=n[m];p.getChild()!=null&&this.fillCompexOrderByDFS(p.getChild().getNodes()),this.getToBeTiled(p)&&this.compoundOrder.push(p)}},D.prototype.adjustLocations=function(n,m,p,E,y,I,w){m+=E+I,p+=y+w;for(var R=m,W=0;W<n.rows.length;W++){var x=n.rows[W];m=R;for(var q=0,V=0;V<x.length;V++){var Y=x[V];Y.rect.x=m,Y.rect.y=p,m+=Y.rect.width+n.horizontalPadding,Y.rect.height>q&&(q=Y.rect.height)}p+=q+n.verticalPadding}},D.prototype.tileCompoundMembers=function(n,m){var p=this;this.tiledMemberPack=[],Object.keys(n).forEach(function(E){var y=m[E];if(p.tiledMemberPack[E]=p.tileNodes(n[E],y.paddingLeft+y.paddingRight),y.rect.width=p.tiledMemberPack[E].width,y.rect.height=p.tiledMemberPack[E].height,y.setCenter(p.tiledMemberPack[E].centerX,p.tiledMemberPack[E].centerY),y.labelMarginLeft=0,y.labelMarginTop=0,s.NODE_DIMENSIONS_INCLUDE_LABELS){var I=y.rect.width,w=y.rect.height;y.labelWidth&&(y.labelPosHorizontal=="left"?(y.rect.x-=y.labelWidth,y.setWidth(I+y.labelWidth),y.labelMarginLeft=y.labelWidth):y.labelPosHorizontal=="center"&&y.labelWidth>I?(y.rect.x-=(y.labelWidth-I)/2,y.setWidth(y.labelWidth),y.labelMarginLeft=(y.labelWidth-I)/2):y.labelPosHorizontal=="right"&&y.setWidth(I+y.labelWidth)),y.labelHeight&&(y.labelPosVertical=="top"?(y.rect.y-=y.labelHeight,y.setHeight(w+y.labelHeight),y.labelMarginTop=y.labelHeight):y.labelPosVertical=="center"&&y.labelHeight>w?(y.rect.y-=(y.labelHeight-w)/2,y.setHeight(y.labelHeight),y.labelMarginTop=(y.labelHeight-w)/2):y.labelPosVertical=="bottom"&&y.setHeight(w+y.labelHeight))}})},D.prototype.tileNodes=function(n,m){var p=this.tileNodesByFavoringDim(n,m,!0),E=this.tileNodesByFavoringDim(n,m,!1),y=this.getOrgRatio(p),I=this.getOrgRatio(E),w;return I<y?w=E:w=p,w},D.prototype.getOrgRatio=function(n){var m=n.width,p=n.height,E=m/p;return E<1&&(E=1/E),E},D.prototype.calcIdealRowWidth=function(n,m){var p=s.TILING_PADDING_VERTICAL,E=s.TILING_PADDING_HORIZONTAL,y=n.length,I=0,w=0,R=0;n.forEach(function(z){I+=z.getWidth(),w+=z.getHeight(),z.getWidth()>R&&(R=z.getWidth())});var W=I/y,x=w/y,q=Math.pow(p-E,2)+4*(W+E)*(x+p)*y,V=(E-p+Math.sqrt(q))/(2*(W+E)),Y;m?(Y=Math.ceil(V),Y==V&&Y++):Y=Math.floor(V);var et=Y*(W+E)-E;return R>et&&(et=R),et+=E*2,et},D.prototype.tileNodesByFavoringDim=function(n,m,p){var E=s.TILING_PADDING_VERTICAL,y=s.TILING_PADDING_HORIZONTAL,I=s.TILING_COMPARE_BY,w={rows:[],rowWidth:[],rowHeight:[],width:0,height:m,verticalPadding:E,horizontalPadding:y,centerX:0,centerY:0};I&&(w.idealRowWidth=this.calcIdealRowWidth(n,p));var R=function(O){return O.rect.width*O.rect.height},W=function(O,H){return R(H)-R(O)};n.sort(function(z,O){var H=W;return w.idealRowWidth?(H=I,H(z.id,O.id)):H(z,O)});for(var x=0,q=0,V=0;V<n.length;V++){var Y=n[V];x+=Y.getCenterX(),q+=Y.getCenterY()}w.centerX=x/n.length,w.centerY=q/n.length;for(var V=0;V<n.length;V++){var Y=n[V];if(w.rows.length==0)this.insertNodeToRow(w,Y,0,m);else if(this.canAddHorizontal(w,Y.rect.width,Y.rect.height)){var et=w.rows.length-1;w.idealRowWidth||(et=this.getShortestRowIndex(w)),this.insertNodeToRow(w,Y,et,m)}else this.insertNodeToRow(w,Y,w.rows.length,m);this.shiftToLastRow(w)}return w},D.prototype.insertNodeToRow=function(n,m,p,E){var y=E;if(p==n.rows.length){var I=[];n.rows.push(I),n.rowWidth.push(y),n.rowHeight.push(0)}var w=n.rowWidth[p]+m.rect.width;n.rows[p].length>0&&(w+=n.horizontalPadding),n.rowWidth[p]=w,n.width<w&&(n.width=w);var R=m.rect.height;p>0&&(R+=n.verticalPadding);var W=0;R>n.rowHeight[p]&&(W=n.rowHeight[p],n.rowHeight[p]=R,W=n.rowHeight[p]-W),n.height+=W,n.rows[p].push(m)},D.prototype.getShortestRowIndex=function(n){for(var m=-1,p=Number.MAX_VALUE,E=0;E<n.rows.length;E++)n.rowWidth[E]<p&&(m=E,p=n.rowWidth[E]);return m},D.prototype.getLongestRowIndex=function(n){for(var m=-1,p=Number.MIN_VALUE,E=0;E<n.rows.length;E++)n.rowWidth[E]>p&&(m=E,p=n.rowWidth[E]);return m},D.prototype.canAddHorizontal=function(n,m,p){if(n.idealRowWidth){var E=n.rows.length-1,y=n.rowWidth[E];return y+m+n.horizontalPadding<=n.idealRowWidth}var I=this.getShortestRowIndex(n);if(I<0)return!0;var w=n.rowWidth[I];if(w+n.horizontalPadding+m<=n.width)return!0;var R=0;n.rowHeight[I]<p&&I>0&&(R=p+n.verticalPadding-n.rowHeight[I]);var W;n.width-w>=m+n.horizontalPadding?W=(n.height+R)/(w+m+n.horizontalPadding):W=(n.height+R)/n.width,R=p+n.verticalPadding;var x;return n.width<m?x=(n.height+R)/m:x=(n.height+R)/n.width,x<1&&(x=1/x),W<1&&(W=1/W),W<x},D.prototype.shiftToLastRow=function(n){var m=this.getLongestRowIndex(n),p=n.rowWidth.length-1,E=n.rows[m],y=E[E.length-1],I=y.width+n.horizontalPadding;if(n.width-n.rowWidth[p]>I&&m!=p){E.splice(-1,1),n.rows[p].push(y),n.rowWidth[m]=n.rowWidth[m]-I,n.rowWidth[p]=n.rowWidth[p]+I,n.width=n.rowWidth[instance.getLongestRowIndex(n)];for(var w=Number.MIN_VALUE,R=0;R<E.length;R++)E[R].height>w&&(w=E[R].height);m>0&&(w+=n.verticalPadding);var W=n.rowHeight[m]+n.rowHeight[p];n.rowHeight[m]=w,n.rowHeight[p]<y.height+n.verticalPadding&&(n.rowHeight[p]=y.height+n.verticalPadding);var x=n.rowHeight[m]+n.rowHeight[p];n.height+=x-W,this.shiftToLastRow(n)}},D.prototype.tilingPreLayout=function(){s.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},D.prototype.tilingPostLayout=function(){s.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},D.prototype.reduceTrees=function(){for(var n=[],m=!0,p;m;){var E=this.graphManager.getAllNodes(),y=[];m=!1;for(var I=0;I<E.length;I++)if(p=E[I],p.getEdges().length==1&&!p.getEdges()[0].isInterGraph&&p.getChild()==null){if(s.PURE_INCREMENTAL){var w=p.getEdges()[0].getOtherEnd(p),R=new N(p.getCenterX()-w.getCenterX(),p.getCenterY()-w.getCenterY());y.push([p,p.getEdges()[0],p.getOwner(),R])}else y.push([p,p.getEdges()[0],p.getOwner()]);m=!0}if(m==!0){for(var W=[],x=0;x<y.length;x++)y[x][0].getEdges().length==1&&(W.push(y[x]),y[x][0].getOwner().remove(y[x][0]));n.push(W),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=n},D.prototype.growTree=function(n){for(var m=n.length,p=n[m-1],E,y=0;y<p.length;y++)E=p[y],this.findPlaceforPrunedNode(E),E[2].add(E[0]),E[2].add(E[1],E[1].source,E[1].target);n.splice(n.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},D.prototype.findPlaceforPrunedNode=function(n){var m,p,E=n[0];if(E==n[1].source?p=n[1].target:p=n[1].source,s.PURE_INCREMENTAL)E.setCenter(p.getCenterX()+n[3].getWidth(),p.getCenterY()+n[3].getHeight());else{var y=p.startX,I=p.finishX,w=p.startY,R=p.finishY,W=0,x=0,q=0,V=0,Y=[W,q,x,V];if(w>0)for(var et=y;et<=I;et++)Y[0]+=this.grid[et][w-1].length+this.grid[et][w].length-1;if(I<this.grid.length-1)for(var et=w;et<=R;et++)Y[1]+=this.grid[I+1][et].length+this.grid[I][et].length-1;if(R<this.grid[0].length-1)for(var et=y;et<=I;et++)Y[2]+=this.grid[et][R+1].length+this.grid[et][R].length-1;if(y>0)for(var et=w;et<=R;et++)Y[3]+=this.grid[y-1][et].length+this.grid[y][et].length-1;for(var z=A.MAX_VALUE,O,H,$=0;$<Y.length;$++)Y[$]<z?(z=Y[$],O=1,H=$):Y[$]==z&&O++;if(O==3&&z==0)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);else if(O==2&&z==0){var _=Math.floor(Math.random()*2);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}else if(O==4&&z==0){var _=Math.floor(Math.random()*4);m=_}else m=H;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())}},a.exports=D},991:(a,r,e)=>{var f=e(551).FDLayoutNode,i=e(551).IMath;function v(o,s,c,l){f.call(this,o,s,c,l)}v.prototype=Object.create(f.prototype);for(var t in f)v[t]=f[t];v.prototype.calculateDisplacement=function(){var o=this.graphManager.getLayout();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)},v.prototype.propogateDisplacementToChildren=function(o,s){for(var c=this.getChild().getNodes(),l,T=0;T<c.length;T++)l=c[T],l.getChild()==null?(l.displacementX+=o,l.displacementY+=s):l.propogateDisplacementToChildren(o,s)},v.prototype.move=function(){var o=this.graphManager.getLayout();(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},v.prototype.setPred1=function(o){this.pred1=o},v.prototype.getPred1=function(){return pred1},v.prototype.getPred2=function(){return pred2},v.prototype.setNext=function(o){this.next=o},v.prototype.getNext=function(){return next},v.prototype.setProcessed=function(o){this.processed=o},v.prototype.isProcessed=function(){return processed},a.exports=v},902:(a,r,e)=>{function f(c){if(Array.isArray(c)){for(var l=0,T=Array(c.length);l<c.length;l++)T[l]=c[l];return T}else return Array.from(c)}var i=e(806),v=e(551).LinkedList,t=e(551).Matrix,o=e(551).SVD;function s(){}s.handleConstraints=function(c){var l={};l.fixedNodeConstraint=c.constraints.fixedNodeConstraint,l.alignmentConstraint=c.constraints.alignmentConstraint,l.relativePlacementConstraint=c.constraints.relativePlacementConstraint;for(var T=new Map,u=new Map,d=[],N=[],F=c.getAllNodes(),A=0,G=0;G<F.length;G++){var B=F[G];B.getChild()==null&&(u.set(B.id,A++),d.push(B.getCenterX()),N.push(B.getCenterY()),T.set(B.id,B))}l.relativePlacementConstraint&&l.relativePlacementConstraint.forEach(function(S){!S.gap&&S.gap!=0&&(S.left?S.gap=i.DEFAULT_EDGE_LENGTH+T.get(S.left).getWidth()/2+T.get(S.right).getWidth()/2:S.gap=i.DEFAULT_EDGE_LENGTH+T.get(S.top).getHeight()/2+T.get(S.bottom).getHeight()/2)});var U=function(b,Z){return{x:b.x-Z.x,y:b.y-Z.y}},K=function(b){var Z=0,Q=0;return b.forEach(function(k){Z+=d[u.get(k)],Q+=N[u.get(k)]}),{x:Z/b.size,y:Q/b.size}},D=function(b,Z,Q,k,it){function gt(ft,st){var Ct=new Set(ft),ct=!0,lt=!1,Wt=void 0;try{for(var Nt=st[Symbol.iterator](),At;!(ct=(At=Nt.next()).done);ct=!0){var Zt=At.value;Ct.add(Zt)}}catch(Gt){lt=!0,Wt=Gt}finally{try{!ct&&Nt.return&&Nt.return()}finally{if(lt)throw Wt}}return Ct}var ot=new Map;b.forEach(function(ft,st){ot.set(st,0)}),b.forEach(function(ft,st){ft.forEach(function(Ct){ot.set(Ct.id,ot.get(Ct.id)+1)})});var tt=new Map,j=new Map,dt=new v;ot.forEach(function(ft,st){ft==0?(dt.push(st),Q||(Z=="horizontal"?tt.set(st,u.has(st)?d[u.get(st)]:k.get(st)):tt.set(st,u.has(st)?N[u.get(st)]:k.get(st)))):tt.set(st,Number.NEGATIVE_INFINITY),Q&&j.set(st,new Set([st]))}),Q&&it.forEach(function(ft){var st=[];if(ft.forEach(function(lt){Q.has(lt)&&st.push(lt)}),st.length>0){var Ct=0;st.forEach(function(lt){Z=="horizontal"?(tt.set(lt,u.has(lt)?d[u.get(lt)]:k.get(lt)),Ct+=tt.get(lt)):(tt.set(lt,u.has(lt)?N[u.get(lt)]:k.get(lt)),Ct+=tt.get(lt))}),Ct=Ct/st.length,ft.forEach(function(lt){Q.has(lt)||tt.set(lt,Ct)})}else{var ct=0;ft.forEach(function(lt){Z=="horizontal"?ct+=u.has(lt)?d[u.get(lt)]:k.get(lt):ct+=u.has(lt)?N[u.get(lt)]:k.get(lt)}),ct=ct/ft.length,ft.forEach(function(lt){tt.set(lt,ct)})}});for(var wt=function(){var st=dt.shift(),Ct=b.get(st);Ct.forEach(function(ct){if(tt.get(ct.id)<tt.get(st)+ct.gap)if(Q&&Q.has(ct.id)){var lt=void 0;if(Z=="horizontal"?lt=u.has(ct.id)?d[u.get(ct.id)]:k.get(ct.id):lt=u.has(ct.id)?N[u.get(ct.id)]:k.get(ct.id),tt.set(ct.id,lt),lt<tt.get(st)+ct.gap){var Wt=tt.get(st)+ct.gap-lt;j.get(st).forEach(function(Nt){tt.set(Nt,tt.get(Nt)-Wt)})}}else tt.set(ct.id,tt.get(st)+ct.gap);ot.set(ct.id,ot.get(ct.id)-1),ot.get(ct.id)==0&&dt.push(ct.id),Q&&j.set(ct.id,gt(j.get(st),j.get(ct.id)))})};dt.length!=0;)wt();if(Q){var yt=new Set;b.forEach(function(ft,st){ft.length==0&&yt.add(st)});var It=[];j.forEach(function(ft,st){if(yt.has(st)){var Ct=!1,ct=!0,lt=!1,Wt=void 0;try{for(var Nt=ft[Symbol.iterator](),At;!(ct=(At=Nt.next()).done);ct=!0){var Zt=At.value;Q.has(Zt)&&(Ct=!0)}}catch(Ft){lt=!0,Wt=Ft}finally{try{!ct&&Nt.return&&Nt.return()}finally{if(lt)throw Wt}}if(!Ct){var Gt=!1,$t=void 0;It.forEach(function(Ft,qt){Ft.has([].concat(f(ft))[0])&&(Gt=!0,$t=qt)}),Gt?ft.forEach(function(Ft){It[$t].add(Ft)}):It.push(new Set(ft))}}}),It.forEach(function(ft,st){var Ct=Number.POSITIVE_INFINITY,ct=Number.POSITIVE_INFINITY,lt=Number.NEGATIVE_INFINITY,Wt=Number.NEGATIVE_INFINITY,Nt=!0,At=!1,Zt=void 0;try{for(var Gt=ft[Symbol.iterator](),$t;!(Nt=($t=Gt.next()).done);Nt=!0){var Ft=$t.value,qt=void 0;Z=="horizontal"?qt=u.has(Ft)?d[u.get(Ft)]:k.get(Ft):qt=u.has(Ft)?N[u.get(Ft)]:k.get(Ft);var _t=tt.get(Ft);qt<Ct&&(Ct=qt),qt>lt&&(lt=qt),_t<ct&&(ct=_t),_t>Wt&&(Wt=_t)}}catch(ie){At=!0,Zt=ie}finally{try{!Nt&&Gt.return&&Gt.return()}finally{if(At)throw Zt}}var ue=(Ct+lt)/2-(ct+Wt)/2,Kt=!0,te=!1,ee=void 0;try{for(var jt=ft[Symbol.iterator](),se;!(Kt=(se=jt.next()).done);Kt=!0){var re=se.value;tt.set(re,tt.get(re)+ue)}}catch(ie){te=!0,ee=ie}finally{try{!Kt&&jt.return&&jt.return()}finally{if(te)throw ee}}})}return tt},at=function(b){var Z=0,Q=0,k=0,it=0;if(b.forEach(function(j){j.left?d[u.get(j.left)]-d[u.get(j.right)]>=0?Z++:Q++:N[u.get(j.top)]-N[u.get(j.bottom)]>=0?k++:it++}),Z>Q&&k>it)for(var gt=0;gt<u.size;gt++)d[gt]=-1*d[gt],N[gt]=-1*N[gt];else if(Z>Q)for(var ot=0;ot<u.size;ot++)d[ot]=-1*d[ot];else if(k>it)for(var tt=0;tt<u.size;tt++)N[tt]=-1*N[tt]},n=function(b){var Z=[],Q=new v,k=new Set,it=0;return b.forEach(function(gt,ot){if(!k.has(ot)){Z[it]=[];var tt=ot;for(Q.push(tt),k.add(tt),Z[it].push(tt);Q.length!=0;){tt=Q.shift();var j=b.get(tt);j.forEach(function(dt){k.has(dt.id)||(Q.push(dt.id),k.add(dt.id),Z[it].push(dt.id))})}it++}}),Z},m=function(b){var Z=new Map;return b.forEach(function(Q,k){Z.set(k,[])}),b.forEach(function(Q,k){Q.forEach(function(it){Z.get(k).push(it),Z.get(it.id).push({id:k,gap:it.gap,direction:it.direction})})}),Z},p=function(b){var Z=new Map;return b.forEach(function(Q,k){Z.set(k,[])}),b.forEach(function(Q,k){Q.forEach(function(it){Z.get(it.id).push({id:k,gap:it.gap,direction:it.direction})})}),Z},E=[],y=[],I=!1,w=!1,R=new Set,W=new Map,x=new Map,q=[];if(l.fixedNodeConstraint&&l.fixedNodeConstraint.forEach(function(S){R.add(S.nodeId)}),l.relativePlacementConstraint&&(l.relativePlacementConstraint.forEach(function(S){S.left?(W.has(S.left)?W.get(S.left).push({id:S.right,gap:S.gap,direction:"horizontal"}):W.set(S.left,[{id:S.right,gap:S.gap,direction:"horizontal"}]),W.has(S.right)||W.set(S.right,[])):(W.has(S.top)?W.get(S.top).push({id:S.bottom,gap:S.gap,direction:"vertical"}):W.set(S.top,[{id:S.bottom,gap:S.gap,direction:"vertical"}]),W.has(S.bottom)||W.set(S.bottom,[]))}),x=m(W),q=n(x)),i.TRANSFORM_ON_CONSTRAINT_HANDLING){if(l.fixedNodeConstraint&&l.fixedNodeConstraint.length>1)l.fixedNodeConstraint.forEach(function(S,b){E[b]=[S.position.x,S.position.y],y[b]=[d[u.get(S.nodeId)],N[u.get(S.nodeId)]]}),I=!0;else if(l.alignmentConstraint)(function(){var S=0;if(l.alignmentConstraint.vertical){for(var b=l.alignmentConstraint.vertical,Z=function(tt){var j=new Set;b[tt].forEach(function(yt){j.add(yt)});var dt=new Set([].concat(f(j)).filter(function(yt){return R.has(yt)})),wt=void 0;dt.size>0?wt=d[u.get(dt.values().next().value)]:wt=K(j).x,b[tt].forEach(function(yt){E[S]=[wt,N[u.get(yt)]],y[S]=[d[u.get(yt)],N[u.get(yt)]],S++})},Q=0;Q<b.length;Q++)Z(Q);I=!0}if(l.alignmentConstraint.horizontal){for(var k=l.alignmentConstraint.horizontal,it=function(tt){var j=new Set;k[tt].forEach(function(yt){j.add(yt)});var dt=new Set([].concat(f(j)).filter(function(yt){return R.has(yt)})),wt=void 0;dt.size>0?wt=d[u.get(dt.values().next().value)]:wt=K(j).y,k[tt].forEach(function(yt){E[S]=[d[u.get(yt)],wt],y[S]=[d[u.get(yt)],N[u.get(yt)]],S++})},gt=0;gt<k.length;gt++)it(gt);I=!0}l.relativePlacementConstraint&&(w=!0)})();else if(l.relativePlacementConstraint){for(var V=0,Y=0,et=0;et<q.length;et++)q[et].length>V&&(V=q[et].length,Y=et);if(V<x.size/2)at(l.relativePlacementConstraint),I=!1,w=!1;else{var z=new Map,O=new Map,H=[];q[Y].forEach(function(S){W.get(S).forEach(function(b){b.direction=="horizontal"?(z.has(S)?z.get(S).push(b):z.set(S,[b]),z.has(b.id)||z.set(b.id,[]),H.push({left:S,right:b.id})):(O.has(S)?O.get(S).push(b):O.set(S,[b]),O.has(b.id)||O.set(b.id,[]),H.push({top:S,bottom:b.id}))})}),at(H),w=!1;var $=D(z,"horizontal"),_=D(O,"vertical");q[Y].forEach(function(S,b){y[b]=[d[u.get(S)],N[u.get(S)]],E[b]=[],$.has(S)?E[b][0]=$.get(S):E[b][0]=d[u.get(S)],_.has(S)?E[b][1]=_.get(S):E[b][1]=N[u.get(S)]}),I=!0}}if(I){for(var ht=void 0,J=t.transpose(E),Rt=t.transpose(y),Lt=0;Lt<J.length;Lt++)J[Lt]=t.multGamma(J[Lt]),Rt[Lt]=t.multGamma(Rt[Lt]);var vt=t.multMat(J,t.transpose(Rt)),rt=o.svd(vt);ht=t.multMat(rt.V,t.transpose(rt.U));for(var ut=0;ut<u.size;ut++){var Tt=[d[ut],N[ut]],Mt=[ht[0][0],ht[1][0]],Dt=[ht[0][1],ht[1][1]];d[ut]=t.dotProduct(Tt,Mt),N[ut]=t.dotProduct(Tt,Dt)}w&&at(l.relativePlacementConstraint)}}if(i.ENFORCE_CONSTRAINTS){if(l.fixedNodeConstraint&&l.fixedNodeConstraint.length>0){var mt={x:0,y:0};l.fixedNodeConstraint.forEach(function(S,b){var Z={x:d[u.get(S.nodeId)],y:N[u.get(S.nodeId)]},Q=S.position,k=U(Q,Z);mt.x+=k.x,mt.y+=k.y}),mt.x/=l.fixedNodeConstraint.length,mt.y/=l.fixedNodeConstraint.length,d.forEach(function(S,b){d[b]+=mt.x}),N.forEach(function(S,b){N[b]+=mt.y}),l.fixedNodeConstraint.forEach(function(S){d[u.get(S.nodeId)]=S.position.x,N[u.get(S.nodeId)]=S.position.y})}if(l.alignmentConstraint){if(l.alignmentConstraint.vertical)for(var xt=l.alignmentConstraint.vertical,St=function(b){var Z=new Set;xt[b].forEach(function(it){Z.add(it)});var Q=new Set([].concat(f(Z)).filter(function(it){return R.has(it)})),k=void 0;Q.size>0?k=d[u.get(Q.values().next().value)]:k=K(Z).x,Z.forEach(function(it){R.has(it)||(d[u.get(it)]=k)})},Vt=0;Vt<xt.length;Vt++)St(Vt);if(l.alignmentConstraint.horizontal)for(var Xt=l.alignmentConstraint.horizontal,Ut=function(b){var Z=new Set;Xt[b].forEach(function(it){Z.add(it)});var Q=new Set([].concat(f(Z)).filter(function(it){return R.has(it)})),k=void 0;Q.size>0?k=N[u.get(Q.values().next().value)]:k=K(Z).y,Z.forEach(function(it){R.has(it)||(N[u.get(it)]=k)})},bt=0;bt<Xt.length;bt++)Ut(bt)}l.relativePlacementConstraint&&function(){var S=new Map,b=new Map,Z=new Map,Q=new Map,k=new Map,it=new Map,gt=new Set,ot=new Set;if(R.forEach(function(Yt){gt.add(Yt),ot.add(Yt)}),l.alignmentConstraint){if(l.alignmentConstraint.vertical)for(var tt=l.alignmentConstraint.vertical,j=function(Et){Z.set("dummy"+Et,[]),tt[Et].forEach(function(Ot){S.set(Ot,"dummy"+Et),Z.get("dummy"+Et).push(Ot),R.has(Ot)&&gt.add("dummy"+Et)}),k.set("dummy"+Et,d[u.get(tt[Et][0])])},dt=0;dt<tt.length;dt++)j(dt);if(l.alignmentConstraint.horizontal)for(var wt=l.alignmentConstraint.horizontal,yt=function(Et){Q.set("dummy"+Et,[]),wt[Et].forEach(function(Ot){b.set(Ot,"dummy"+Et),Q.get("dummy"+Et).push(Ot),R.has(Ot)&&ot.add("dummy"+Et)}),it.set("dummy"+Et,N[u.get(wt[Et][0])])},It=0;It<wt.length;It++)yt(It)}var ft=new Map,st=new Map,Ct=function(Et){W.get(Et).forEach(function(Ot){var Jt=void 0,kt=void 0;Ot.direction=="horizontal"?(Jt=S.get(Et)?S.get(Et):Et,S.get(Ot.id)?kt={id:S.get(Ot.id),gap:Ot.gap,direction:Ot.direction}:kt=Ot,ft.has(Jt)?ft.get(Jt).push(kt):ft.set(Jt,[kt]),ft.has(kt.id)||ft.set(kt.id,[])):(Jt=b.get(Et)?b.get(Et):Et,b.get(Ot.id)?kt={id:b.get(Ot.id),gap:Ot.gap,direction:Ot.direction}:kt=Ot,st.has(Jt)?st.get(Jt).push(kt):st.set(Jt,[kt]),st.has(kt.id)||st.set(kt.id,[]))})},ct=!0,lt=!1,Wt=void 0;try{for(var Nt=W.keys()[Symbol.iterator](),At;!(ct=(At=Nt.next()).done);ct=!0){var Zt=At.value;Ct(Zt)}}catch(Yt){lt=!0,Wt=Yt}finally{try{!ct&&Nt.return&&Nt.return()}finally{if(lt)throw Wt}}var Gt=m(ft),$t=m(st),Ft=n(Gt),qt=n($t),_t=p(ft),ue=p(st),Kt=[],te=[];Ft.forEach(function(Yt,Et){Kt[Et]=[],Yt.forEach(function(Ot){_t.get(Ot).length==0&&Kt[Et].push(Ot)})}),qt.forEach(function(Yt,Et){te[Et]=[],Yt.forEach(function(Ot){ue.get(Ot).length==0&&te[Et].push(Ot)})});var ee=D(ft,"horizontal",gt,k,Kt),jt=D(st,"vertical",ot,it,te),se=function(Et){Z.get(Et)?Z.get(Et).forEach(function(Ot){d[u.get(Ot)]=ee.get(Et)}):d[u.get(Et)]=ee.get(Et)},re=!0,ie=!1,Ae=void 0;try{for(var de=ee.keys()[Symbol.iterator](),Me;!(re=(Me=de.next()).done);re=!0){var ve=Me.value;se(ve)}}catch(Yt){ie=!0,Ae=Yt}finally{try{!re&&de.return&&de.return()}finally{if(ie)throw Ae}}var qe=function(Et){Q.get(Et)?Q.get(Et).forEach(function(Ot){N[u.get(Ot)]=jt.get(Et)}):N[u.get(Et)]=jt.get(Et)},pe=!0,we=!1,Oe=void 0;try{for(var ye=jt.keys()[Symbol.iterator](),De;!(pe=(De=ye.next()).done);pe=!0){var ve=De.value;qe(ve)}}catch(Yt){we=!0,Oe=Yt}finally{try{!pe&&ye.return&&ye.return()}finally{if(we)throw Oe}}}()}for(var Ht=0;Ht<F.length;Ht++){var Bt=F[Ht];Bt.getChild()==null&&Bt.setCenter(d[u.get(Bt.id)],N[u.get(Bt.id)])}},a.exports=s},551:a=>{a.exports=M}},L={};function g(a){var r=L[a];if(r!==void 0)return r.exports;var e=L[a]={exports:{}};return P[a](e,e.exports,g),e.exports}var h=g(45);return h})()})}(fe)),fe.exports}var Er=he.exports,Re;function mr(){return Re||(Re=1,function(C,X){(function(P,L){C.exports=L(yr())})(Er,function(M){return(()=>{var P={658:a=>{a.exports=Object.assign!=null?Object.assign.bind(Object):function(r){for(var e=arguments.length,f=Array(e>1?e-1:0),i=1;i<e;i++)f[i-1]=arguments[i];return f.forEach(function(v){Object.keys(v).forEach(function(t){return r[t]=v[t]})}),r}},548:(a,r,e)=>{var f=function(){function t(o,s){var c=[],l=!0,T=!1,u=void 0;try{for(var d=o[Symbol.iterator](),N;!(l=(N=d.next()).done)&&(c.push(N.value),!(s&&c.length===s));l=!0);}catch(F){T=!0,u=F}finally{try{!l&&d.return&&d.return()}finally{if(T)throw u}}return c}return function(o,s){if(Array.isArray(o))return o;if(Symbol.iterator in Object(o))return t(o,s);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=e(140).layoutBase.LinkedList,v={};v.getTopMostNodes=function(t){for(var o={},s=0;s<t.length;s++)o[t[s].id()]=!0;var c=t.filter(function(l,T){typeof l=="number"&&(l=T);for(var u=l.parent()[0];u!=null;){if(o[u.id()])return!1;u=u.parent()[0]}return!0});return c},v.connectComponents=function(t,o,s,c){var l=new i,T=new Set,u=[],d=void 0,N=void 0,F=void 0,A=!1,G=1,B=[],U=[],K=function(){var at=t.collection();U.push(at);var n=s[0],m=t.collection();m.merge(n).merge(n.descendants().intersection(o)),u.push(n),m.forEach(function(y){l.push(y),T.add(y),at.merge(y)});for(var p=function(){n=l.shift();var I=t.collection();n.neighborhood().nodes().forEach(function(x){o.intersection(n.edgesWith(x)).length>0&&I.merge(x)});for(var w=0;w<I.length;w++){var R=I[w];if(d=s.intersection(R.union(R.ancestors())),d!=null&&!T.has(d[0])){var W=d.union(d.descendants());W.forEach(function(x){l.push(x),T.add(x),at.merge(x),s.has(x)&&u.push(x)})}}};l.length!=0;)p();if(at.forEach(function(y){o.intersection(y.connectedEdges()).forEach(function(I){at.has(I.source())&&at.has(I.target())&&at.merge(I)})}),u.length==s.length&&(A=!0),!A||A&&G>1){N=u[0],F=N.connectedEdges().length,u.forEach(function(y){y.connectedEdges().length<F&&(F=y.connectedEdges().length,N=y)}),B.push(N.id());var E=t.collection();E.merge(u[0]),u.forEach(function(y){E.merge(y)}),u=[],s=s.difference(E),G++}};do K();while(!A);return c&&B.length>0&&c.set("dummy"+(c.size+1),B),U},v.relocateComponent=function(t,o,s){if(!s.fixedNodeConstraint){var c=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,T=Number.POSITIVE_INFINITY,u=Number.NEGATIVE_INFINITY;if(s.quality=="draft"){var d=!0,N=!1,F=void 0;try{for(var A=o.nodeIndexes[Symbol.iterator](),G;!(d=(G=A.next()).done);d=!0){var B=G.value,U=f(B,2),K=U[0],D=U[1],at=s.cy.getElementById(K);if(at){var n=at.boundingBox(),m=o.xCoords[D]-n.w/2,p=o.xCoords[D]+n.w/2,E=o.yCoords[D]-n.h/2,y=o.yCoords[D]+n.h/2;m<c&&(c=m),p>l&&(l=p),E<T&&(T=E),y>u&&(u=y)}}}catch(x){N=!0,F=x}finally{try{!d&&A.return&&A.return()}finally{if(N)throw F}}var I=t.x-(l+c)/2,w=t.y-(u+T)/2;o.xCoords=o.xCoords.map(function(x){return x+I}),o.yCoords=o.yCoords.map(function(x){return x+w})}else{Object.keys(o).forEach(function(x){var q=o[x],V=q.getRect().x,Y=q.getRect().x+q.getRect().width,et=q.getRect().y,z=q.getRect().y+q.getRect().height;V<c&&(c=V),Y>l&&(l=Y),et<T&&(T=et),z>u&&(u=z)});var R=t.x-(l+c)/2,W=t.y-(u+T)/2;Object.keys(o).forEach(function(x){var q=o[x];q.setCenter(q.getCenterX()+R,q.getCenterY()+W)})}}},v.calcBoundingBox=function(t,o,s,c){for(var l=Number.MAX_SAFE_INTEGER,T=Number.MIN_SAFE_INTEGER,u=Number.MAX_SAFE_INTEGER,d=Number.MIN_SAFE_INTEGER,N=void 0,F=void 0,A=void 0,G=void 0,B=t.descendants().not(":parent"),U=B.length,K=0;K<U;K++){var D=B[K];N=o[c.get(D.id())]-D.width()/2,F=o[c.get(D.id())]+D.width()/2,A=s[c.get(D.id())]-D.height()/2,G=s[c.get(D.id())]+D.height()/2,l>N&&(l=N),T<F&&(T=F),u>A&&(u=A),d<G&&(d=G)}var at={};return at.topLeftX=l,at.topLeftY=u,at.width=T-l,at.height=d-u,at},v.calcParentsWithoutChildren=function(t,o){var s=t.collection();return o.nodes(":parent").forEach(function(c){var l=!1;c.children().forEach(function(T){T.css("display")!="none"&&(l=!0)}),l||s.merge(c)}),s},a.exports=v},816:(a,r,e)=>{var f=e(548),i=e(140).CoSELayout,v=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(d,N){var F=d.cy,A=d.eles,G=A.nodes(),B=A.edges(),U=void 0,K=void 0,D=void 0,at={};d.randomize&&(U=N.nodeIndexes,K=N.xCoords,D=N.yCoords);var n=function(x){return typeof x=="function"},m=function(x,q){return n(x)?x(q):x},p=f.calcParentsWithoutChildren(F,A),E=function W(x,q,V,Y){for(var et=q.length,z=0;z<et;z++){var O=q[z],H=null;O.intersection(p).length==0&&(H=O.children());var $=void 0,_=O.layoutDimensions({nodeDimensionsIncludeLabels:Y.nodeDimensionsIncludeLabels});if(O.outerWidth()!=null&&O.outerHeight()!=null)if(Y.randomize)if(!O.isParent())$=x.add(new v(V.graphManager,new t(K[U.get(O.id())]-_.w/2,D[U.get(O.id())]-_.h/2),new o(parseFloat(_.w),parseFloat(_.h))));else{var ht=f.calcBoundingBox(O,K,D,U);O.intersection(p).length==0?$=x.add(new v(V.graphManager,new t(ht.topLeftX,ht.topLeftY),new o(ht.width,ht.height))):$=x.add(new v(V.graphManager,new t(ht.topLeftX,ht.topLeftY),new o(parseFloat(_.w),parseFloat(_.h))))}else $=x.add(new v(V.graphManager,new t(O.position("x")-_.w/2,O.position("y")-_.h/2),new o(parseFloat(_.w),parseFloat(_.h))));else $=x.add(new v(this.graphManager));if($.id=O.data("id"),$.nodeRepulsion=m(Y.nodeRepulsion,O),$.paddingLeft=parseInt(O.css("padding")),$.paddingTop=parseInt(O.css("padding")),$.paddingRight=parseInt(O.css("padding")),$.paddingBottom=parseInt(O.css("padding")),Y.nodeDimensionsIncludeLabels&&($.labelWidth=O.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).w,$.labelHeight=O.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).h,$.labelPosVertical=O.css("text-valign"),$.labelPosHorizontal=O.css("text-halign")),at[O.data("id")]=$,isNaN($.rect.x)&&($.rect.x=0),isNaN($.rect.y)&&($.rect.y=0),H!=null&&H.length>0){var J=void 0;J=V.getGraphManager().add(V.newGraph(),$),W(J,H,V,Y)}}},y=function(x,q,V){for(var Y=0,et=0,z=0;z<V.length;z++){var O=V[z],H=at[O.data("source")],$=at[O.data("target")];if(H&&$&&H!==$&&H.getEdgesBetween($).length==0){var _=q.add(x.newEdge(),H,$);_.id=O.id(),_.idealLength=m(d.idealEdgeLength,O),_.edgeElasticity=m(d.edgeElasticity,O),Y+=_.idealLength,et++}}d.idealEdgeLength!=null&&(et>0?l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=Y/et:n(d.idealEdgeLength)?l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=50:l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=d.idealEdgeLength,l.MIN_REPULSION_DIST=c.MIN_REPULSION_DIST=c.DEFAULT_EDGE_LENGTH/10,l.DEFAULT_RADIAL_SEPARATION=c.DEFAULT_EDGE_LENGTH)},I=function(x,q){q.fixedNodeConstraint&&(x.constraints.fixedNodeConstraint=q.fixedNodeConstraint),q.alignmentConstraint&&(x.constraints.alignmentConstraint=q.alignmentConstraint),q.relativePlacementConstraint&&(x.constraints.relativePlacementConstraint=q.relativePlacementConstraint)};d.nestingFactor!=null&&(l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=c.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=d.nestingFactor),d.gravity!=null&&(l.DEFAULT_GRAVITY_STRENGTH=c.DEFAULT_GRAVITY_STRENGTH=d.gravity),d.numIter!=null&&(l.MAX_ITERATIONS=c.MAX_ITERATIONS=d.numIter),d.gravityRange!=null&&(l.DEFAULT_GRAVITY_RANGE_FACTOR=c.DEFAULT_GRAVITY_RANGE_FACTOR=d.gravityRange),d.gravityCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=c.DEFAULT_COMPOUND_GRAVITY_STRENGTH=d.gravityCompound),d.gravityRangeCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=d.gravityRangeCompound),d.initialEnergyOnIncremental!=null&&(l.DEFAULT_COOLING_FACTOR_INCREMENTAL=c.DEFAULT_COOLING_FACTOR_INCREMENTAL=d.initialEnergyOnIncremental),d.tilingCompareBy!=null&&(l.TILING_COMPARE_BY=d.tilingCompareBy),d.quality=="proof"?s.QUALITY=2:s.QUALITY=0,l.NODE_DIMENSIONS_INCLUDE_LABELS=c.NODE_DIMENSIONS_INCLUDE_LABELS=s.NODE_DIMENSIONS_INCLUDE_LABELS=d.nodeDimensionsIncludeLabels,l.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=s.DEFAULT_INCREMENTAL=!d.randomize,l.ANIMATE=c.ANIMATE=s.ANIMATE=d.animate,l.TILE=d.tile,l.TILING_PADDING_VERTICAL=typeof d.tilingPaddingVertical=="function"?d.tilingPaddingVertical.call():d.tilingPaddingVertical,l.TILING_PADDING_HORIZONTAL=typeof d.tilingPaddingHorizontal=="function"?d.tilingPaddingHorizontal.call():d.tilingPaddingHorizontal,l.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=s.DEFAULT_INCREMENTAL=!0,l.PURE_INCREMENTAL=!d.randomize,s.DEFAULT_UNIFORM_LEAF_NODE_SIZES=d.uniformNodeDimensions,d.step=="transformed"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!1),d.step=="enforced"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!1),d.step=="cose"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!0),d.step=="all"&&(d.randomize?l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!0),d.fixedNodeConstraint||d.alignmentConstraint||d.relativePlacementConstraint?l.TREE_REDUCTION_ON_INCREMENTAL=!1:l.TREE_REDUCTION_ON_INCREMENTAL=!0;var w=new i,R=w.newGraphManager();return E(R.addRoot(),f.getTopMostNodes(G),w,d),y(w,R,B),I(w,d),w.runLayout(),at};a.exports={coseLayout:T}},212:(a,r,e)=>{var f=function(){function d(N,F){for(var A=0;A<F.length;A++){var G=F[A];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(N,G.key,G)}}return function(N,F,A){return F&&d(N.prototype,F),A&&d(N,A),N}}();function i(d,N){if(!(d instanceof N))throw new TypeError("Cannot call a class as a function")}var v=e(658),t=e(548),o=e(657),s=o.spectralLayout,c=e(816),l=c.coseLayout,T=Object.freeze({quality:"default",randomize:!0,animate:!0,animationDuration:1e3,animationEasing:void 0,fit:!0,padding:30,nodeDimensionsIncludeLabels:!1,uniformNodeDimensions:!1,packComponents:!0,step:"all",samplingType:!0,sampleSize:25,nodeSeparation:75,piTol:1e-7,nodeRepulsion:function(N){return 4500},idealEdgeLength:function(N){return 50},edgeElasticity:function(N){return .45},nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,tilingCompareBy:void 0,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.3,fixedNodeConstraint:void 0,alignmentConstraint:void 0,relativePlacementConstraint:void 0,ready:function(){},stop:function(){}}),u=function(){function d(N){i(this,d),this.options=v({},T,N)}return f(d,[{key:"run",value:function(){var F=this,A=this.options,G=A.cy,B=A.eles,U=[],K=[],D=void 0,at=[];A.fixedNodeConstraint&&(!Array.isArray(A.fixedNodeConstraint)||A.fixedNodeConstraint.length==0)&&(A.fixedNodeConstraint=void 0),A.alignmentConstraint&&(A.alignmentConstraint.vertical&&(!Array.isArray(A.alignmentConstraint.vertical)||A.alignmentConstraint.vertical.length==0)&&(A.alignmentConstraint.vertical=void 0),A.alignmentConstraint.horizontal&&(!Array.isArray(A.alignmentConstraint.horizontal)||A.alignmentConstraint.horizontal.length==0)&&(A.alignmentConstraint.horizontal=void 0)),A.relativePlacementConstraint&&(!Array.isArray(A.relativePlacementConstraint)||A.relativePlacementConstraint.length==0)&&(A.relativePlacementConstraint=void 0);var n=A.fixedNodeConstraint||A.alignmentConstraint||A.relativePlacementConstraint;n&&(A.tile=!1,A.packComponents=!1);var m=void 0,p=!1;if(G.layoutUtilities&&A.packComponents&&(m=G.layoutUtilities("get"),m||(m=G.layoutUtilities()),p=!0),B.nodes().length>0)if(p){var I=t.getTopMostNodes(A.eles.nodes());if(D=t.connectComponents(G,A.eles,I),D.forEach(function(vt){var rt=vt.boundingBox();at.push({x:rt.x1+rt.w/2,y:rt.y1+rt.h/2})}),A.randomize&&D.forEach(function(vt){A.eles=vt,U.push(s(A))}),A.quality=="default"||A.quality=="proof"){var w=G.collection();if(A.tile){var R=new Map,W=[],x=[],q=0,V={nodeIndexes:R,xCoords:W,yCoords:x},Y=[];if(D.forEach(function(vt,rt){vt.edges().length==0&&(vt.nodes().forEach(function(ut,Tt){w.merge(vt.nodes()[Tt]),ut.isParent()||(V.nodeIndexes.set(vt.nodes()[Tt].id(),q++),V.xCoords.push(vt.nodes()[0].position().x),V.yCoords.push(vt.nodes()[0].position().y))}),Y.push(rt))}),w.length>1){var et=w.boundingBox();at.push({x:et.x1+et.w/2,y:et.y1+et.h/2}),D.push(w),U.push(V);for(var z=Y.length-1;z>=0;z--)D.splice(Y[z],1),U.splice(Y[z],1),at.splice(Y[z],1)}}D.forEach(function(vt,rt){A.eles=vt,K.push(l(A,U[rt])),t.relocateComponent(at[rt],K[rt],A)})}else D.forEach(function(vt,rt){t.relocateComponent(at[rt],U[rt],A)});var O=new Set;if(D.length>1){var H=[],$=B.filter(function(vt){return vt.css("display")=="none"});D.forEach(function(vt,rt){var ut=void 0;if(A.quality=="draft"&&(ut=U[rt].nodeIndexes),vt.nodes().not($).length>0){var Tt={};Tt.edges=[],Tt.nodes=[];var Mt=void 0;vt.nodes().not($).forEach(function(Dt){if(A.quality=="draft")if(!Dt.isParent())Mt=ut.get(Dt.id()),Tt.nodes.push({x:U[rt].xCoords[Mt]-Dt.boundingbox().w/2,y:U[rt].yCoords[Mt]-Dt.boundingbox().h/2,width:Dt.boundingbox().w,height:Dt.boundingbox().h});else{var mt=t.calcBoundingBox(Dt,U[rt].xCoords,U[rt].yCoords,ut);Tt.nodes.push({x:mt.topLeftX,y:mt.topLeftY,width:mt.width,height:mt.height})}else K[rt][Dt.id()]&&Tt.nodes.push({x:K[rt][Dt.id()].getLeft(),y:K[rt][Dt.id()].getTop(),width:K[rt][Dt.id()].getWidth(),height:K[rt][Dt.id()].getHeight()})}),vt.edges().forEach(function(Dt){var mt=Dt.source(),xt=Dt.target();if(mt.css("display")!="none"&&xt.css("display")!="none")if(A.quality=="draft"){var St=ut.get(mt.id()),Vt=ut.get(xt.id()),Xt=[],Ut=[];if(mt.isParent()){var bt=t.calcBoundingBox(mt,U[rt].xCoords,U[rt].yCoords,ut);Xt.push(bt.topLeftX+bt.width/2),Xt.push(bt.topLeftY+bt.height/2)}else Xt.push(U[rt].xCoords[St]),Xt.push(U[rt].yCoords[St]);if(xt.isParent()){var Ht=t.calcBoundingBox(xt,U[rt].xCoords,U[rt].yCoords,ut);Ut.push(Ht.topLeftX+Ht.width/2),Ut.push(Ht.topLeftY+Ht.height/2)}else Ut.push(U[rt].xCoords[Vt]),Ut.push(U[rt].yCoords[Vt]);Tt.edges.push({startX:Xt[0],startY:Xt[1],endX:Ut[0],endY:Ut[1]})}else K[rt][mt.id()]&&K[rt][xt.id()]&&Tt.edges.push({startX:K[rt][mt.id()].getCenterX(),startY:K[rt][mt.id()].getCenterY(),endX:K[rt][xt.id()].getCenterX(),endY:K[rt][xt.id()].getCenterY()})}),Tt.nodes.length>0&&(H.push(Tt),O.add(rt))}});var _=m.packComponents(H,A.randomize).shifts;if(A.quality=="draft")U.forEach(function(vt,rt){var ut=vt.xCoords.map(function(Mt){return Mt+_[rt].dx}),Tt=vt.yCoords.map(function(Mt){return Mt+_[rt].dy});vt.xCoords=ut,vt.yCoords=Tt});else{var ht=0;O.forEach(function(vt){Object.keys(K[vt]).forEach(function(rt){var ut=K[vt][rt];ut.setCenter(ut.getCenterX()+_[ht].dx,ut.getCenterY()+_[ht].dy)}),ht++})}}}else{var E=A.eles.boundingBox();if(at.push({x:E.x1+E.w/2,y:E.y1+E.h/2}),A.randomize){var y=s(A);U.push(y)}A.quality=="default"||A.quality=="proof"?(K.push(l(A,U[0])),t.relocateComponent(at[0],K[0],A)):t.relocateComponent(at[0],U[0],A)}var J=function(rt,ut){if(A.quality=="default"||A.quality=="proof"){typeof rt=="number"&&(rt=ut);var Tt=void 0,Mt=void 0,Dt=rt.data("id");return K.forEach(function(xt){Dt in xt&&(Tt={x:xt[Dt].getRect().getCenterX(),y:xt[Dt].getRect().getCenterY()},Mt=xt[Dt])}),A.nodeDimensionsIncludeLabels&&(Mt.labelWidth&&(Mt.labelPosHorizontal=="left"?Tt.x+=Mt.labelWidth/2:Mt.labelPosHorizontal=="right"&&(Tt.x-=Mt.labelWidth/2)),Mt.labelHeight&&(Mt.labelPosVertical=="top"?Tt.y+=Mt.labelHeight/2:Mt.labelPosVertical=="bottom"&&(Tt.y-=Mt.labelHeight/2))),Tt==null&&(Tt={x:rt.position("x"),y:rt.position("y")}),{x:Tt.x,y:Tt.y}}else{var mt=void 0;return U.forEach(function(xt){var St=xt.nodeIndexes.get(rt.id());St!=null&&(mt={x:xt.xCoords[St],y:xt.yCoords[St]})}),mt==null&&(mt={x:rt.position("x"),y:rt.position("y")}),{x:mt.x,y:mt.y}}};if(A.quality=="default"||A.quality=="proof"||A.randomize){var Rt=t.calcParentsWithoutChildren(G,B),Lt=B.filter(function(vt){return vt.css("display")=="none"});A.eles=B.not(Lt),B.nodes().not(":parent").not(Lt).layoutPositions(F,A,J),Rt.length>0&&Rt.forEach(function(vt){vt.position(J(vt))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),d}();a.exports=u},657:(a,r,e)=>{var f=e(548),i=e(140).layoutBase.Matrix,v=e(140).layoutBase.SVD,t=function(s){var c=s.cy,l=s.eles,T=l.nodes(),u=l.nodes(":parent"),d=new Map,N=new Map,F=new Map,A=[],G=[],B=[],U=[],K=[],D=[],at=[],n=[],m=void 0,p=1e8,E=1e-9,y=s.piTol,I=s.samplingType,w=s.nodeSeparation,R=void 0,W=function(){for(var b=0,Z=0,Q=!1;Z<R;){b=Math.floor(Math.random()*m),Q=!1;for(var k=0;k<Z;k++)if(U[k]==b){Q=!0;break}if(!Q)U[Z]=b,Z++;else continue}},x=function(b,Z,Q){for(var k=[],it=0,gt=0,ot=0,tt=void 0,j=[],dt=0,wt=1,yt=0;yt<m;yt++)j[yt]=p;for(k[gt]=b,j[b]=0;gt>=it;){ot=k[it++];for(var It=A[ot],ft=0;ft<It.length;ft++)tt=N.get(It[ft]),j[tt]==p&&(j[tt]=j[ot]+1,k[++gt]=tt);D[ot][Z]=j[ot]*w}if(Q){for(var st=0;st<m;st++)D[st][Z]<K[st]&&(K[st]=D[st][Z]);for(var Ct=0;Ct<m;Ct++)K[Ct]>dt&&(dt=K[Ct],wt=Ct)}return wt},q=function(b){var Z=void 0;if(b){Z=Math.floor(Math.random()*m);for(var k=0;k<m;k++)K[k]=p;for(var it=0;it<R;it++)U[it]=Z,Z=x(Z,it,b)}else{W();for(var Q=0;Q<R;Q++)x(U[Q],Q,b)}for(var gt=0;gt<m;gt++)for(var ot=0;ot<R;ot++)D[gt][ot]*=D[gt][ot];for(var tt=0;tt<R;tt++)at[tt]=[];for(var j=0;j<R;j++)for(var dt=0;dt<R;dt++)at[j][dt]=D[U[dt]][j]},V=function(){for(var b=v.svd(at),Z=b.S,Q=b.U,k=b.V,it=Z[0]*Z[0]*Z[0],gt=[],ot=0;ot<R;ot++){gt[ot]=[];for(var tt=0;tt<R;tt++)gt[ot][tt]=0,ot==tt&&(gt[ot][tt]=Z[ot]/(Z[ot]*Z[ot]+it/(Z[ot]*Z[ot])))}n=i.multMat(i.multMat(k,gt),i.transpose(Q))},Y=function(){for(var b=void 0,Z=void 0,Q=[],k=[],it=[],gt=[],ot=0;ot<m;ot++)Q[ot]=Math.random(),k[ot]=Math.random();Q=i.normalize(Q),k=i.normalize(k);for(var tt=E,j=E,dt=void 0;;){for(var wt=0;wt<m;wt++)it[wt]=Q[wt];if(Q=i.multGamma(i.multL(i.multGamma(it),D,n)),b=i.dotProduct(it,Q),Q=i.normalize(Q),tt=i.dotProduct(it,Q),dt=Math.abs(tt/j),dt<=1+y&&dt>=1)break;j=tt}for(var yt=0;yt<m;yt++)it[yt]=Q[yt];for(j=E;;){for(var It=0;It<m;It++)gt[It]=k[It];if(gt=i.minusOp(gt,i.multCons(it,i.dotProduct(it,gt))),k=i.multGamma(i.multL(i.multGamma(gt),D,n)),Z=i.dotProduct(gt,k),k=i.normalize(k),tt=i.dotProduct(gt,k),dt=Math.abs(tt/j),dt<=1+y&&dt>=1)break;j=tt}for(var ft=0;ft<m;ft++)gt[ft]=k[ft];G=i.multCons(it,Math.sqrt(Math.abs(b))),B=i.multCons(gt,Math.sqrt(Math.abs(Z)))};f.connectComponents(c,l,f.getTopMostNodes(T),d),u.forEach(function(S){f.connectComponents(c,l,f.getTopMostNodes(S.descendants().intersection(l)),d)});for(var et=0,z=0;z<T.length;z++)T[z].isParent()||N.set(T[z].id(),et++);var O=!0,H=!1,$=void 0;try{for(var _=d.keys()[Symbol.iterator](),ht;!(O=(ht=_.next()).done);O=!0){var J=ht.value;N.set(J,et++)}}catch(S){H=!0,$=S}finally{try{!O&&_.return&&_.return()}finally{if(H)throw $}}for(var Rt=0;Rt<N.size;Rt++)A[Rt]=[];u.forEach(function(S){for(var b=S.children().intersection(l);b.nodes(":childless").length==0;)b=b.nodes()[0].children().intersection(l);var Z=0,Q=b.nodes(":childless")[0].connectedEdges().length;b.nodes(":childless").forEach(function(k,it){k.connectedEdges().length<Q&&(Q=k.connectedEdges().length,Z=it)}),F.set(S.id(),b.nodes(":childless")[Z].id())}),T.forEach(function(S){var b=void 0;S.isParent()?b=N.get(F.get(S.id())):b=N.get(S.id()),S.neighborhood().nodes().forEach(function(Z){l.intersection(S.edgesWith(Z)).length>0&&(Z.isParent()?A[b].push(F.get(Z.id())):A[b].push(Z.id()))})});var Lt=function(b){var Z=N.get(b),Q=void 0;d.get(b).forEach(function(k){c.getElementById(k).isParent()?Q=F.get(k):Q=k,A[Z].push(Q),A[N.get(Q)].push(b)})},vt=!0,rt=!1,ut=void 0;try{for(var Tt=d.keys()[Symbol.iterator](),Mt;!(vt=(Mt=Tt.next()).done);vt=!0){var Dt=Mt.value;Lt(Dt)}}catch(S){rt=!0,ut=S}finally{try{!vt&&Tt.return&&Tt.return()}finally{if(rt)throw ut}}m=N.size;var mt=void 0;if(m>2){R=m<s.sampleSize?m:s.sampleSize;for(var xt=0;xt<m;xt++)D[xt]=[];for(var St=0;St<R;St++)n[St]=[];return s.quality=="draft"||s.step=="all"?(q(I),V(),Y(),mt={nodeIndexes:N,xCoords:G,yCoords:B}):(N.forEach(function(S,b){G.push(c.getElementById(b).position("x")),B.push(c.getElementById(b).position("y"))}),mt={nodeIndexes:N,xCoords:G,yCoords:B}),mt}else{var Vt=N.keys(),Xt=c.getElementById(Vt.next().value),Ut=Xt.position(),bt=Xt.outerWidth();if(G.push(Ut.x),B.push(Ut.y),m==2){var Ht=c.getElementById(Vt.next().value),Bt=Ht.outerWidth();G.push(Ut.x+bt/2+Bt/2+s.idealEdgeLength),B.push(Ut.y)}return mt={nodeIndexes:N,xCoords:G,yCoords:B},mt}};a.exports={spectralLayout:t}},579:(a,r,e)=>{var f=e(212),i=function(t){t&&t("layout","fcose",f)};typeof cytoscape<"u"&&i(cytoscape),a.exports=i},140:a=>{a.exports=M}},L={};function g(a){var r=L[a];if(r!==void 0)return r.exports;var e=L[a]={exports:{}};return P[a](e,e.exports,g),e.exports}var h=g(579);return h})()})}(he)),he.exports}var Tr=mr();const Nr=ur(Tr);var Se={L:"left",R:"right",T:"top",B:"bottom"},Fe={L:nt(C=>`${C},${C/2} 0,${C} 0,0`,"L"),R:nt(C=>`0,${C/2} ${C},0 ${C},${C}`,"R"),T:nt(C=>`0,0 ${C},0 ${C/2},${C}`,"T"),B:nt(C=>`${C/2},0 ${C},${C} 0,${C}`,"B")},le={L:nt((C,X)=>C-X+2,"L"),R:nt((C,X)=>C-2,"R"),T:nt((C,X)=>C-X+2,"T"),B:nt((C,X)=>C-2,"B")},Lr=nt(function(C){return zt(C)?C==="L"?"R":"L":C==="T"?"B":"T"},"getOppositeArchitectureDirection"),be=nt(function(C){const X=C;return X==="L"||X==="R"||X==="T"||X==="B"},"isArchitectureDirection"),zt=nt(function(C){const X=C;return X==="L"||X==="R"},"isArchitectureDirectionX"),Qt=nt(function(C){const X=C;return X==="T"||X==="B"},"isArchitectureDirectionY"),Ce=nt(function(C,X){const M=zt(C)&&Qt(X),P=Qt(C)&&zt(X);return M||P},"isArchitectureDirectionXY"),Cr=nt(function(C){const X=C[0],M=C[1],P=zt(X)&&Qt(M),L=Qt(X)&&zt(M);return P||L},"isArchitecturePairXY"),Ar=nt(function(C){return C!=="LL"&&C!=="RR"&&C!=="TT"&&C!=="BB"},"isValidArchitectureDirectionPair"),me=nt(function(C,X){const M=`${C}${X}`;return Ar(M)?M:void 0},"getArchitectureDirectionPair"),Mr=nt(function([C,X],M){const P=M[0],L=M[1];return zt(P)?Qt(L)?[C+(P==="L"?-1:1),X+(L==="T"?1:-1)]:[C+(P==="L"?-1:1),X]:zt(L)?[C+(L==="L"?1:-1),X+(P==="T"?1:-1)]:[C,X+(P==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),wr=nt(function(C){return C==="LT"||C==="TL"?[1,1]:C==="BL"||C==="LB"?[1,-1]:C==="BR"||C==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),Or=nt(function(C,X){return Ce(C,X)?"bend":zt(C)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),Dr=nt(function(C){return C.type==="service"},"isArchitectureService"),xr=nt(function(C){return C.type==="junction"},"isArchitectureJunction"),Ue=nt(C=>C.data(),"edgeData"),ne=nt(C=>C.data(),"nodeData"),Ye=nr.architecture,pt=new cr(()=>({nodes:{},groups:{},edges:[],registeredIds:{},config:Ye,dataStructures:void 0,elements:{}})),Ir=nt(()=>{pt.reset(),or()},"clear"),Rr=nt(function({id:C,icon:X,in:M,title:P,iconText:L}){if(pt.records.registeredIds[C]!==void 0)throw new Error(`The service id [${C}] is already in use by another ${pt.records.registeredIds[C]}`);if(M!==void 0){if(C===M)throw new Error(`The service [${C}] cannot be placed within itself`);if(pt.records.registeredIds[M]===void 0)throw new Error(`The service [${C}]'s parent does not exist. Please make sure the parent is created before this service`);if(pt.records.registeredIds[M]==="node")throw new Error(`The service [${C}]'s parent is not a group`)}pt.records.registeredIds[C]="node",pt.records.nodes[C]={id:C,type:"service",icon:X,iconText:L,title:P,edges:[],in:M}},"addService"),Sr=nt(()=>Object.values(pt.records.nodes).filter(Dr),"getServices"),Fr=nt(function({id:C,in:X}){pt.records.registeredIds[C]="node",pt.records.nodes[C]={id:C,type:"junction",edges:[],in:X}},"addJunction"),br=nt(()=>Object.values(pt.records.nodes).filter(xr),"getJunctions"),Pr=nt(()=>Object.values(pt.records.nodes),"getNodes"),Te=nt(C=>pt.records.nodes[C],"getNode"),Gr=nt(function({id:C,icon:X,in:M,title:P}){if(pt.records.registeredIds[C]!==void 0)throw new Error(`The group id [${C}] is already in use by another ${pt.records.registeredIds[C]}`);if(M!==void 0){if(C===M)throw new Error(`The group [${C}] cannot be placed within itself`);if(pt.records.registeredIds[M]===void 0)throw new Error(`The group [${C}]'s parent does not exist. Please make sure the parent is created before this group`);if(pt.records.registeredIds[M]==="node")throw new Error(`The group [${C}]'s parent is not a group`)}pt.records.registeredIds[C]="group",pt.records.groups[C]={id:C,icon:X,title:P,in:M}},"addGroup"),Ur=nt(()=>Object.values(pt.records.groups),"getGroups"),Yr=nt(function({lhsId:C,rhsId:X,lhsDir:M,rhsDir:P,lhsInto:L,rhsInto:g,lhsGroup:h,rhsGroup:a,title:r}){if(!be(M))throw new Error(`Invalid direction given for left hand side of edge ${C}--${X}. Expected (L,R,T,B) got ${M}`);if(!be(P))throw new Error(`Invalid direction given for right hand side of edge ${C}--${X}. Expected (L,R,T,B) got ${P}`);if(pt.records.nodes[C]===void 0&&pt.records.groups[C]===void 0)throw new Error(`The left-hand id [${C}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(pt.records.nodes[X]===void 0&&pt.records.groups[C]===void 0)throw new Error(`The right-hand id [${X}] does not yet exist. Please create the service/group before declaring an edge to it.`);const e=pt.records.nodes[C].in,f=pt.records.nodes[X].in;if(h&&e&&f&&e==f)throw new Error(`The left-hand id [${C}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(a&&e&&f&&e==f)throw new Error(`The right-hand id [${X}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const i={lhsId:C,lhsDir:M,lhsInto:L,lhsGroup:h,rhsId:X,rhsDir:P,rhsInto:g,rhsGroup:a,title:r};pt.records.edges.push(i),pt.records.nodes[C]&&pt.records.nodes[X]&&(pt.records.nodes[C].edges.push(pt.records.edges[pt.records.edges.length-1]),pt.records.nodes[X].edges.push(pt.records.edges[pt.records.edges.length-1]))},"addEdge"),Xr=nt(()=>pt.records.edges,"getEdges"),Hr=nt(()=>{if(pt.records.dataStructures===void 0){const C={},X=Object.entries(pt.records.nodes).reduce((a,[r,e])=>(a[r]=e.edges.reduce((f,i)=>{const v=Te(i.lhsId)?.in,t=Te(i.rhsId)?.in;if(v&&t&&v!==t){const o=Or(i.lhsDir,i.rhsDir);o!=="bend"&&(C[v]??={},C[v][t]=o,C[t]??={},C[t][v]=o)}if(i.lhsId===r){const o=me(i.lhsDir,i.rhsDir);o&&(f[o]=i.rhsId)}else{const o=me(i.rhsDir,i.lhsDir);o&&(f[o]=i.lhsId)}return f},{}),a),{}),M=Object.keys(X)[0],P={[M]:1},L=Object.keys(X).reduce((a,r)=>r===M?a:{...a,[r]:1},{}),g=nt(a=>{const r={[a]:[0,0]},e=[a];for(;e.length>0;){const f=e.shift();if(f){P[f]=1,delete L[f];const i=X[f],[v,t]=r[f];Object.entries(i).forEach(([o,s])=>{P[s]||(r[s]=Mr([v,t],o),e.push(s))})}}return r},"BFS"),h=[g(M)];for(;Object.keys(L).length>0;)h.push(g(Object.keys(L)[0]));pt.records.dataStructures={adjList:X,spatialMaps:h,groupAlignments:C}}return pt.records.dataStructures},"getDataStructures"),Wr=nt((C,X)=>{pt.records.elements[C]=X},"setElementForId"),Vr=nt(C=>pt.records.elements[C],"getElementById"),Xe=nt(()=>ir({...Ye,...ar().architecture}),"getConfig"),ge={clear:Ir,setDiagramTitle:tr,getDiagramTitle:_e,setAccTitle:je,getAccTitle:Ke,setAccDescription:Qe,getAccDescription:Je,getConfig:Xe,addService:Rr,getServices:Sr,addJunction:Fr,getJunctions:br,getNodes:Pr,getNode:Te,addGroup:Gr,getGroups:Ur,addEdge:Yr,getEdges:Xr,setElementForId:Wr,getElementById:Vr,getDataStructures:Hr};function Pt(C){return Xe()[C]}nt(Pt,"getConfigField");var zr=nt((C,X)=>{fr(C,X),C.groups.map(X.addGroup),C.services.map(M=>X.addService({...M,type:"service"})),C.junctions.map(M=>X.addJunction({...M,type:"junction"})),C.edges.map(X.addEdge)},"populateDb"),Br={parse:nt(async C=>{const X=await gr("architecture",C);Pe.debug(X),zr(X,ge)},"parse")},$r=nt(C=>`
1
+ import{_ as nt,g as Je,s as Qe,a as Ke,b as je,t as _e,q as tr,K as er,ac as rr,F as ir,G as ar,H as nr,z as or,l as Pe,am as Ne,c as Le,aH as Ee,d as sr,aI as lr,aJ as hr}from"./mermaid.core-DN2yK8JU.js";import{p as fr}from"./chunk-353BL4L5-DdT6pwPP.js";import{I as cr}from"./chunk-AACKK3MU-Cw-HKrX6.js";import{p as gr}from"./treemap-6Y5VK53G-FTlofOA6.js";import{c as Ge}from"./cytoscape.esm-BH-eccyW.js";import{o as ur}from"./chunk-QMGIS6GS-s1sqUxzz.js";import"./_-DinosGr4.js";import"./mdx-D3zuEMw_.js";import"./jsx-runtime-DXAEI3Eb.js";import"./clsx-B-dksMZM.js";import"./index-BmZYK7HN.js";import"./index-CVx7Nbhh.js";import"./epic-video-BXvzDHIB.js";import"./index-7ddSzI6h.js";import"./misc-CFnU1MK_.js";import"./tooltip-BVlcAOVw.js";import"./pe-B4x-9zwV.js";import"./online-CVRagwjj.js";import"./loading-CwyhGvvd.js";import"./user-DwkYL1w0.js";import"./workshop-config-C-eyJXJM.js";import"./progress-bar-FGfYP6Rz.js";import"./_baseUniq-D0omyKdo.js";import"./_basePickBy-BWxiEF6L.js";import"./clone-DqaJG4aH.js";var he={exports:{}},fe={exports:{}},ce={exports:{}},dr=ce.exports,xe;function vr(){return xe||(xe=1,function(C,X){(function(P,L){C.exports=L()})(dr,function(){return function(M){var P={};function L(g){if(P[g])return P[g].exports;var h=P[g]={i:g,l:!1,exports:{}};return M[g].call(h.exports,h,h.exports,L),h.l=!0,h.exports}return L.m=M,L.c=P,L.i=function(g){return g},L.d=function(g,h,a){L.o(g,h)||Object.defineProperty(g,h,{configurable:!1,enumerable:!0,get:a})},L.n=function(g){var h=g&&g.__esModule?function(){return g.default}:function(){return g};return L.d(h,"a",h),h},L.o=function(g,h){return Object.prototype.hasOwnProperty.call(g,h)},L.p="",L(L.s=28)}([function(M,P,L){function g(){}g.QUALITY=1,g.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,g.DEFAULT_INCREMENTAL=!1,g.DEFAULT_ANIMATION_ON_LAYOUT=!0,g.DEFAULT_ANIMATION_DURING_LAYOUT=!1,g.DEFAULT_ANIMATION_PERIOD=50,g.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,g.DEFAULT_GRAPH_MARGIN=15,g.NODE_DIMENSIONS_INCLUDE_LABELS=!1,g.SIMPLE_NODE_SIZE=40,g.SIMPLE_NODE_HALF_SIZE=g.SIMPLE_NODE_SIZE/2,g.EMPTY_COMPOUND_NODE_SIZE=40,g.MIN_EDGE_LENGTH=1,g.WORLD_BOUNDARY=1e6,g.INITIAL_WORLD_BOUNDARY=g.WORLD_BOUNDARY/1e3,g.WORLD_CENTER_X=1200,g.WORLD_CENTER_Y=900,M.exports=g},function(M,P,L){var g=L(2),h=L(8),a=L(9);function r(f,i,v){g.call(this,v),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=v,this.bendpoints=[],this.source=f,this.target=i}r.prototype=Object.create(g.prototype);for(var e in g)r[e]=g[e];r.prototype.getSource=function(){return this.source},r.prototype.getTarget=function(){return this.target},r.prototype.isInterGraph=function(){return this.isInterGraph},r.prototype.getLength=function(){return this.length},r.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},r.prototype.getBendpoints=function(){return this.bendpoints},r.prototype.getLca=function(){return this.lca},r.prototype.getSourceInLca=function(){return this.sourceInLca},r.prototype.getTargetInLca=function(){return this.targetInLca},r.prototype.getOtherEnd=function(f){if(this.source===f)return this.target;if(this.target===f)return this.source;throw"Node is not incident with this edge"},r.prototype.getOtherEndInGraph=function(f,i){for(var v=this.getOtherEnd(f),t=i.getGraphManager().getRoot();;){if(v.getOwner()==i)return v;if(v.getOwner()==t)break;v=v.getOwner().getParent()}return null},r.prototype.updateLength=function(){var f=new Array(4);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))},r.prototype.updateLengthSimple=function(){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)},M.exports=r},function(M,P,L){function g(h){this.vGraphObject=h}M.exports=g},function(M,P,L){var g=L(2),h=L(10),a=L(13),r=L(0),e=L(16),f=L(5);function i(t,o,s,c){s==null&&c==null&&(c=o),g.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}i.prototype=Object.create(g.prototype);for(var v in g)i[v]=g[v];i.prototype.getEdges=function(){return this.edges},i.prototype.getChild=function(){return this.child},i.prototype.getOwner=function(){return this.owner},i.prototype.getWidth=function(){return this.rect.width},i.prototype.setWidth=function(t){this.rect.width=t},i.prototype.getHeight=function(){return this.rect.height},i.prototype.setHeight=function(t){this.rect.height=t},i.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},i.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},i.prototype.getCenter=function(){return new f(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},i.prototype.getLocation=function(){return new f(this.rect.x,this.rect.y)},i.prototype.getRect=function(){return this.rect},i.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},i.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},i.prototype.setRect=function(t,o){this.rect.x=t.x,this.rect.y=t.y,this.rect.width=o.width,this.rect.height=o.height},i.prototype.setCenter=function(t,o){this.rect.x=t-this.rect.width/2,this.rect.y=o-this.rect.height/2},i.prototype.setLocation=function(t,o){this.rect.x=t,this.rect.y=o},i.prototype.moveBy=function(t,o){this.rect.x+=t,this.rect.y+=o},i.prototype.getEdgeListToNode=function(t){var o=[],s=this;return s.edges.forEach(function(c){if(c.target==t){if(c.source!=s)throw"Incorrect edge source!";o.push(c)}}),o},i.prototype.getEdgesBetween=function(t){var o=[],s=this;return s.edges.forEach(function(c){if(!(c.source==s||c.target==s))throw"Incorrect edge source and/or target";(c.target==t||c.source==t)&&o.push(c)}),o},i.prototype.getNeighborsList=function(){var t=new Set,o=this;return o.edges.forEach(function(s){if(s.source==o)t.add(s.target);else{if(s.target!=o)throw"Incorrect incidency!";t.add(s.source)}}),t},i.prototype.withChildren=function(){var t=new Set,o,s;if(t.add(this),this.child!=null)for(var c=this.child.getNodes(),l=0;l<c.length;l++)o=c[l],s=o.withChildren(),s.forEach(function(T){t.add(T)});return t},i.prototype.getNoOfChildren=function(){var t=0,o;if(this.child==null)t=1;else for(var s=this.child.getNodes(),c=0;c<s.length;c++)o=s[c],t+=o.getNoOfChildren();return t==0&&(t=1),t},i.prototype.getEstimatedSize=function(){if(this.estimatedSize==h.MIN_VALUE)throw"assert failed";return this.estimatedSize},i.prototype.calcEstimatedSize=function(){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)},i.prototype.scatter=function(){var t,o,s=-r.INITIAL_WORLD_BOUNDARY,c=r.INITIAL_WORLD_BOUNDARY;t=r.WORLD_CENTER_X+e.nextDouble()*(c-s)+s;var l=-r.INITIAL_WORLD_BOUNDARY,T=r.INITIAL_WORLD_BOUNDARY;o=r.WORLD_CENTER_Y+e.nextDouble()*(T-l)+l,this.rect.x=t,this.rect.y=o},i.prototype.updateBounds=function(){if(this.getChild()==null)throw"assert failed";if(this.getChild().getNodes().length!=0){var t=this.getChild();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){var o=t.getRight()-t.getLeft(),s=t.getBottom()-t.getTop();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))}}},i.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==h.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},i.prototype.transform=function(t){var o=this.rect.x;o>r.WORLD_BOUNDARY?o=r.WORLD_BOUNDARY:o<-r.WORLD_BOUNDARY&&(o=-r.WORLD_BOUNDARY);var s=this.rect.y;s>r.WORLD_BOUNDARY?s=r.WORLD_BOUNDARY:s<-r.WORLD_BOUNDARY&&(s=-r.WORLD_BOUNDARY);var c=new f(o,s),l=t.inverseTransformPoint(c);this.setLocation(l.x,l.y)},i.prototype.getLeft=function(){return this.rect.x},i.prototype.getRight=function(){return this.rect.x+this.rect.width},i.prototype.getTop=function(){return this.rect.y},i.prototype.getBottom=function(){return this.rect.y+this.rect.height},i.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},M.exports=i},function(M,P,L){var g=L(0);function h(){}for(var a in g)h[a]=g[a];h.MAX_ITERATIONS=2500,h.DEFAULT_EDGE_LENGTH=50,h.DEFAULT_SPRING_STRENGTH=.45,h.DEFAULT_REPULSION_STRENGTH=4500,h.DEFAULT_GRAVITY_STRENGTH=.4,h.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,h.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,h.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,h.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,h.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,h.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,h.COOLING_ADAPTATION_FACTOR=.33,h.ADAPTATION_LOWER_NODE_LIMIT=1e3,h.ADAPTATION_UPPER_NODE_LIMIT=5e3,h.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,h.MAX_NODE_DISPLACEMENT=h.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,h.MIN_REPULSION_DIST=h.DEFAULT_EDGE_LENGTH/10,h.CONVERGENCE_CHECK_PERIOD=100,h.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,h.MIN_EDGE_LENGTH=1,h.GRID_CALCULATION_CHECK_PERIOD=10,M.exports=h},function(M,P,L){function g(h,a){h==null&&a==null?(this.x=0,this.y=0):(this.x=h,this.y=a)}g.prototype.getX=function(){return this.x},g.prototype.getY=function(){return this.y},g.prototype.setX=function(h){this.x=h},g.prototype.setY=function(h){this.y=h},g.prototype.getDifference=function(h){return new DimensionD(this.x-h.x,this.y-h.y)},g.prototype.getCopy=function(){return new g(this.x,this.y)},g.prototype.translate=function(h){return this.x+=h.width,this.y+=h.height,this},M.exports=g},function(M,P,L){var g=L(2),h=L(10),a=L(0),r=L(7),e=L(3),f=L(1),i=L(13),v=L(12),t=L(11);function o(c,l,T){g.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)}o.prototype=Object.create(g.prototype);for(var s in g)o[s]=g[s];o.prototype.getNodes=function(){return this.nodes},o.prototype.getEdges=function(){return this.edges},o.prototype.getGraphManager=function(){return this.graphManager},o.prototype.getParent=function(){return this.parent},o.prototype.getLeft=function(){return this.left},o.prototype.getRight=function(){return this.right},o.prototype.getTop=function(){return this.top},o.prototype.getBottom=function(){return this.bottom},o.prototype.isConnected=function(){return this.isConnected},o.prototype.add=function(c,l,T){if(l==null&&T==null){var u=c;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(u)>-1)throw"Node already in graph!";return u.owner=this,this.getNodes().push(u),u}else{var d=c;if(!(this.getNodes().indexOf(l)>-1&&this.getNodes().indexOf(T)>-1))throw"Source or target not in graph!";if(!(l.owner==T.owner&&l.owner==this))throw"Both owners must be this graph!";return l.owner!=T.owner?null:(d.source=l,d.target=T,d.isInterGraph=!1,this.getEdges().push(d),l.edges.push(d),T!=l&&T.edges.push(d),d)}},o.prototype.remove=function(c){var l=c;if(c instanceof e){if(l==null)throw"Node is null!";if(!(l.owner!=null&&l.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var T=l.edges.slice(),u,d=T.length,N=0;N<d;N++)u=T[N],u.isInterGraph?this.graphManager.remove(u):u.source.owner.remove(u);var F=this.nodes.indexOf(l);if(F==-1)throw"Node not in owner node list!";this.nodes.splice(F,1)}else if(c instanceof f){var u=c;if(u==null)throw"Edge is null!";if(!(u.source!=null&&u.target!=null))throw"Source and/or target is null!";if(!(u.source.owner!=null&&u.target.owner!=null&&u.source.owner==this&&u.target.owner==this))throw"Source and/or target owner is invalid!";var A=u.source.edges.indexOf(u),G=u.target.edges.indexOf(u);if(!(A>-1&&G>-1))throw"Source and/or target doesn't know this edge!";u.source.edges.splice(A,1),u.target!=u.source&&u.target.edges.splice(G,1);var F=u.source.owner.getEdges().indexOf(u);if(F==-1)throw"Not in owner's edge list!";u.source.owner.getEdges().splice(F,1)}},o.prototype.updateLeftTop=function(){for(var c=h.MAX_VALUE,l=h.MAX_VALUE,T,u,d,N=this.getNodes(),F=N.length,A=0;A<F;A++){var G=N[A];T=G.getTop(),u=G.getLeft(),c>T&&(c=T),l>u&&(l=u)}return c==h.MAX_VALUE?null:(N[0].getParent().paddingLeft!=null?d=N[0].getParent().paddingLeft:d=this.margin,this.left=l-d,this.top=c-d,new v(this.left,this.top))},o.prototype.updateBounds=function(c){for(var l=h.MAX_VALUE,T=-h.MAX_VALUE,u=h.MAX_VALUE,d=-h.MAX_VALUE,N,F,A,G,B,U=this.nodes,K=U.length,D=0;D<K;D++){var at=U[D];c&&at.child!=null&&at.updateBounds(),N=at.getLeft(),F=at.getRight(),A=at.getTop(),G=at.getBottom(),l>N&&(l=N),T<F&&(T=F),u>A&&(u=A),d<G&&(d=G)}var n=new i(l,u,T-l,d-u);l==h.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),U[0].getParent().paddingLeft!=null?B=U[0].getParent().paddingLeft:B=this.margin,this.left=n.x-B,this.right=n.x+n.width+B,this.top=n.y-B,this.bottom=n.y+n.height+B},o.calculateBounds=function(c){for(var l=h.MAX_VALUE,T=-h.MAX_VALUE,u=h.MAX_VALUE,d=-h.MAX_VALUE,N,F,A,G,B=c.length,U=0;U<B;U++){var K=c[U];N=K.getLeft(),F=K.getRight(),A=K.getTop(),G=K.getBottom(),l>N&&(l=N),T<F&&(T=F),u>A&&(u=A),d<G&&(d=G)}var D=new i(l,u,T-l,d-u);return D},o.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},o.prototype.getEstimatedSize=function(){if(this.estimatedSize==h.MIN_VALUE)throw"assert failed";return this.estimatedSize},o.prototype.calcEstimatedSize=function(){for(var c=0,l=this.nodes,T=l.length,u=0;u<T;u++){var d=l[u];c+=d.calcEstimatedSize()}return c==0?this.estimatedSize=a.EMPTY_COMPOUND_NODE_SIZE:this.estimatedSize=c/Math.sqrt(this.nodes.length),this.estimatedSize},o.prototype.updateConnected=function(){var c=this;if(this.nodes.length==0){this.isConnected=!0;return}var l=new t,T=new Set,u=this.nodes[0],d,N,F=u.withChildren();for(F.forEach(function(D){l.push(D),T.add(D)});l.length!==0;){u=l.shift(),d=u.getEdges();for(var A=d.length,G=0;G<A;G++){var B=d[G];if(N=B.getOtherEndInGraph(u,this),N!=null&&!T.has(N)){var U=N.withChildren();U.forEach(function(D){l.push(D),T.add(D)})}}}if(this.isConnected=!1,T.size>=this.nodes.length){var K=0;T.forEach(function(D){D.owner==c&&K++}),K==this.nodes.length&&(this.isConnected=!0)}},M.exports=o},function(M,P,L){var g,h=L(1);function a(r){g=L(6),this.layout=r,this.graphs=[],this.edges=[]}a.prototype.addRoot=function(){var r=this.layout.newGraph(),e=this.layout.newNode(null),f=this.add(r,e);return this.setRootGraph(f),this.rootGraph},a.prototype.add=function(r,e,f,i,v){if(f==null&&i==null&&v==null){if(r==null)throw"Graph is null!";if(e==null)throw"Parent node is null!";if(this.graphs.indexOf(r)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(r),r.parent!=null)throw"Already has a parent!";if(e.child!=null)throw"Already has a child!";return r.parent=e,e.child=r,r}else{v=f,i=e,f=r;var t=i.getOwner(),o=v.getOwner();if(!(t!=null&&t.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(o!=null&&o.getGraphManager()==this))throw"Target not in this graph mgr!";if(t==o)return f.isInterGraph=!1,t.add(f,i,v);if(f.isInterGraph=!0,f.source=i,f.target=v,this.edges.indexOf(f)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(f),!(f.source!=null&&f.target!=null))throw"Edge source and/or target is null!";if(!(f.source.edges.indexOf(f)==-1&&f.target.edges.indexOf(f)==-1))throw"Edge already in source and/or target incidency list!";return f.source.edges.push(f),f.target.edges.push(f),f}},a.prototype.remove=function(r){if(r instanceof g){var e=r;if(e.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(e==this.rootGraph||e.parent!=null&&e.parent.graphManager==this))throw"Invalid parent node!";var f=[];f=f.concat(e.getEdges());for(var i,v=f.length,t=0;t<v;t++)i=f[t],e.remove(i);var o=[];o=o.concat(e.getNodes());var s;v=o.length;for(var t=0;t<v;t++)s=o[t],e.remove(s);e==this.rootGraph&&this.setRootGraph(null);var c=this.graphs.indexOf(e);this.graphs.splice(c,1),e.parent=null}else if(r instanceof h){if(i=r,i==null)throw"Edge is null!";if(!i.isInterGraph)throw"Not an inter-graph edge!";if(!(i.source!=null&&i.target!=null))throw"Source and/or target is null!";if(!(i.source.edges.indexOf(i)!=-1&&i.target.edges.indexOf(i)!=-1))throw"Source and/or target doesn't know this edge!";var c=i.source.edges.indexOf(i);if(i.source.edges.splice(c,1),c=i.target.edges.indexOf(i),i.target.edges.splice(c,1),!(i.source.owner!=null&&i.source.owner.getGraphManager()!=null))throw"Edge owner graph or owner graph manager is null!";if(i.source.owner.getGraphManager().edges.indexOf(i)==-1)throw"Not in owner graph manager's edge list!";var c=i.source.owner.getGraphManager().edges.indexOf(i);i.source.owner.getGraphManager().edges.splice(c,1)}},a.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},a.prototype.getGraphs=function(){return this.graphs},a.prototype.getAllNodes=function(){if(this.allNodes==null){for(var r=[],e=this.getGraphs(),f=e.length,i=0;i<f;i++)r=r.concat(e[i].getNodes());this.allNodes=r}return this.allNodes},a.prototype.resetAllNodes=function(){this.allNodes=null},a.prototype.resetAllEdges=function(){this.allEdges=null},a.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},a.prototype.getAllEdges=function(){if(this.allEdges==null){var r=[],e=this.getGraphs();e.length;for(var f=0;f<e.length;f++)r=r.concat(e[f].getEdges());r=r.concat(this.edges),this.allEdges=r}return this.allEdges},a.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},a.prototype.setAllNodesToApplyGravitation=function(r){if(this.allNodesToApplyGravitation!=null)throw"assert failed";this.allNodesToApplyGravitation=r},a.prototype.getRoot=function(){return this.rootGraph},a.prototype.setRootGraph=function(r){if(r.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=r,r.parent==null&&(r.parent=this.layout.newNode("Root node"))},a.prototype.getLayout=function(){return this.layout},a.prototype.isOneAncestorOfOther=function(r,e){if(!(r!=null&&e!=null))throw"assert failed";if(r==e)return!0;var f=r.getOwner(),i;do{if(i=f.getParent(),i==null)break;if(i==e)return!0;if(f=i.getOwner(),f==null)break}while(!0);f=e.getOwner();do{if(i=f.getParent(),i==null)break;if(i==r)return!0;if(f=i.getOwner(),f==null)break}while(!0);return!1},a.prototype.calcLowestCommonAncestors=function(){for(var r,e,f,i,v,t=this.getAllEdges(),o=t.length,s=0;s<o;s++){if(r=t[s],e=r.source,f=r.target,r.lca=null,r.sourceInLca=e,r.targetInLca=f,e==f){r.lca=e.getOwner();continue}for(i=e.getOwner();r.lca==null;){for(r.targetInLca=f,v=f.getOwner();r.lca==null;){if(v==i){r.lca=v;break}if(v==this.rootGraph)break;if(r.lca!=null)throw"assert failed";r.targetInLca=v.getParent(),v=r.targetInLca.getOwner()}if(i==this.rootGraph)break;r.lca==null&&(r.sourceInLca=i.getParent(),i=r.sourceInLca.getOwner())}if(r.lca==null)throw"assert failed"}},a.prototype.calcLowestCommonAncestor=function(r,e){if(r==e)return r.getOwner();var f=r.getOwner();do{if(f==null)break;var i=e.getOwner();do{if(i==null)break;if(i==f)return i;i=i.getParent().getOwner()}while(!0);f=f.getParent().getOwner()}while(!0);return f},a.prototype.calcInclusionTreeDepths=function(r,e){r==null&&e==null&&(r=this.rootGraph,e=1);for(var f,i=r.getNodes(),v=i.length,t=0;t<v;t++)f=i[t],f.inclusionTreeDepth=e,f.child!=null&&this.calcInclusionTreeDepths(f.child,e+1)},a.prototype.includesInvalidEdge=function(){for(var r,e=[],f=this.edges.length,i=0;i<f;i++)r=this.edges[i],this.isOneAncestorOfOther(r.source,r.target)&&e.push(r);for(var i=0;i<e.length;i++)this.remove(e[i]);return!1},M.exports=a},function(M,P,L){var g=L(12);function h(){}h.calcSeparationAmount=function(a,r,e,f){if(!a.intersects(r))throw"assert failed";var i=new Array(2);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()));var v=Math.abs((r.getCenterY()-a.getCenterY())/(r.getCenterX()-a.getCenterX()));r.getCenterY()===a.getCenterY()&&r.getCenterX()===a.getCenterX()&&(v=1);var t=v*e[0],o=e[1]/v;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)},h.decideDirectionsForOverlappingNodes=function(a,r,e){a.getCenterX()<r.getCenterX()?e[0]=-1:e[0]=1,a.getCenterY()<r.getCenterY()?e[1]=-1:e[1]=1},h.getIntersection2=function(a,r,e){var f=a.getCenterX(),i=a.getCenterY(),v=r.getCenterX(),t=r.getCenterY();if(a.intersects(r))return e[0]=f,e[1]=i,e[2]=v,e[3]=t,!0;var o=a.getX(),s=a.getY(),c=a.getRight(),l=a.getX(),T=a.getBottom(),u=a.getRight(),d=a.getWidthHalf(),N=a.getHeightHalf(),F=r.getX(),A=r.getY(),G=r.getRight(),B=r.getX(),U=r.getBottom(),K=r.getRight(),D=r.getWidthHalf(),at=r.getHeightHalf(),n=!1,m=!1;if(f===v){if(i>t)return e[0]=f,e[1]=s,e[2]=v,e[3]=U,!1;if(i<t)return e[0]=f,e[1]=T,e[2]=v,e[3]=A,!1}else if(i===t){if(f>v)return e[0]=o,e[1]=i,e[2]=G,e[3]=t,!1;if(f<v)return e[0]=c,e[1]=i,e[2]=F,e[3]=t,!1}else{var p=a.height/a.width,E=r.height/r.width,y=(t-i)/(v-f),I=void 0,w=void 0,R=void 0,W=void 0,x=void 0,q=void 0;if(-p===y?f>v?(e[0]=l,e[1]=T,n=!0):(e[0]=c,e[1]=s,n=!0):p===y&&(f>v?(e[0]=o,e[1]=s,n=!0):(e[0]=u,e[1]=T,n=!0)),-E===y?v>f?(e[2]=B,e[3]=U,m=!0):(e[2]=G,e[3]=A,m=!0):E===y&&(v>f?(e[2]=F,e[3]=A,m=!0):(e[2]=K,e[3]=U,m=!0)),n&&m)return!1;if(f>v?i>t?(I=this.getCardinalDirection(p,y,4),w=this.getCardinalDirection(E,y,2)):(I=this.getCardinalDirection(-p,y,3),w=this.getCardinalDirection(-E,y,1)):i>t?(I=this.getCardinalDirection(-p,y,1),w=this.getCardinalDirection(-E,y,3)):(I=this.getCardinalDirection(p,y,2),w=this.getCardinalDirection(E,y,4)),!n)switch(I){case 1:W=s,R=f+-N/y,e[0]=R,e[1]=W;break;case 2:R=u,W=i+d*y,e[0]=R,e[1]=W;break;case 3:W=T,R=f+N/y,e[0]=R,e[1]=W;break;case 4:R=l,W=i+-d*y,e[0]=R,e[1]=W;break}if(!m)switch(w){case 1:q=A,x=v+-at/y,e[2]=x,e[3]=q;break;case 2:x=K,q=t+D*y,e[2]=x,e[3]=q;break;case 3:q=U,x=v+at/y,e[2]=x,e[3]=q;break;case 4:x=B,q=t+-D*y,e[2]=x,e[3]=q;break}}return!1},h.getCardinalDirection=function(a,r,e){return a>r?e:1+e%4},h.getIntersection=function(a,r,e,f){if(f==null)return this.getIntersection2(a,r,e);var i=a.x,v=a.y,t=r.x,o=r.y,s=e.x,c=e.y,l=f.x,T=f.y,u=void 0,d=void 0,N=void 0,F=void 0,A=void 0,G=void 0,B=void 0,U=void 0,K=void 0;return N=o-v,A=i-t,B=t*v-i*o,F=T-c,G=s-l,U=l*c-s*T,K=N*G-F*A,K===0?null:(u=(A*U-G*B)/K,d=(F*B-N*U)/K,new g(u,d))},h.angleOfVector=function(a,r,e,f){var i=void 0;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},h.doIntersect=function(a,r,e,f){var i=a.x,v=a.y,t=r.x,o=r.y,s=e.x,c=e.y,l=f.x,T=f.y,u=(t-i)*(T-c)-(l-s)*(o-v);if(u===0)return!1;var d=((T-c)*(l-i)+(s-l)*(T-v))/u,N=((v-o)*(l-i)+(t-i)*(T-v))/u;return 0<d&&d<1&&0<N&&N<1},h.findCircleLineIntersections=function(a,r,e,f,i,v,t){var o=(e-a)*(e-a)+(f-r)*(f-r),s=2*((a-i)*(e-a)+(r-v)*(f-r)),c=(a-i)*(a-i)+(r-v)*(r-v)-t*t,l=s*s-4*o*c;if(l>=0){var T=(-s+Math.sqrt(s*s-4*o*c))/(2*o),u=(-s-Math.sqrt(s*s-4*o*c))/(2*o),d=null;return T>=0&&T<=1?[T]:u>=0&&u<=1?[u]:d}else return null},h.HALF_PI=.5*Math.PI,h.ONE_AND_HALF_PI=1.5*Math.PI,h.TWO_PI=2*Math.PI,h.THREE_PI=3*Math.PI,M.exports=h},function(M,P,L){function g(){}g.sign=function(h){return h>0?1:h<0?-1:0},g.floor=function(h){return h<0?Math.ceil(h):Math.floor(h)},g.ceil=function(h){return h<0?Math.floor(h):Math.ceil(h)},M.exports=g},function(M,P,L){function g(){}g.MAX_VALUE=2147483647,g.MIN_VALUE=-2147483648,M.exports=g},function(M,P,L){var g=function(){function i(v,t){for(var o=0;o<t.length;o++){var s=t[o];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(v,s.key,s)}}return function(v,t,o){return t&&i(v.prototype,t),o&&i(v,o),v}}();function h(i,v){if(!(i instanceof v))throw new TypeError("Cannot call a class as a function")}var a=function(v){return{value:v,next:null,prev:null}},r=function(v,t,o,s){return v!==null?v.next=t:s.head=t,o!==null?o.prev=t:s.tail=t,t.prev=v,t.next=o,s.length++,t},e=function(v,t){var o=v.prev,s=v.next;return o!==null?o.next=s:t.head=s,s!==null?s.prev=o:t.tail=o,v.prev=v.next=null,t.length--,v},f=function(){function i(v){var t=this;h(this,i),this.length=0,this.head=null,this.tail=null,v?.forEach(function(o){return t.push(o)})}return g(i,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(t,o){return r(o.prev,a(t),o,this)}},{key:"insertAfter",value:function(t,o){return r(o,a(t),o.next,this)}},{key:"insertNodeBefore",value:function(t,o){return r(o.prev,t,o,this)}},{key:"insertNodeAfter",value:function(t,o){return r(o,t,o.next,this)}},{key:"push",value:function(t){return r(this.tail,a(t),null,this)}},{key:"unshift",value:function(t){return r(null,a(t),this.head,this)}},{key:"remove",value:function(t){return e(t,this)}},{key:"pop",value:function(){return e(this.tail,this).value}},{key:"popNode",value:function(){return e(this.tail,this)}},{key:"shift",value:function(){return e(this.head,this).value}},{key:"shiftNode",value:function(){return e(this.head,this)}},{key:"get_object_at",value:function(t){if(t<=this.length()){for(var o=1,s=this.head;o<t;)s=s.next,o++;return s.value}}},{key:"set_object_at",value:function(t,o){if(t<=this.length()){for(var s=1,c=this.head;s<t;)c=c.next,s++;c.value=o}}}]),i}();M.exports=f},function(M,P,L){function g(h,a,r){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)}g.prototype.getX=function(){return this.x},g.prototype.getY=function(){return this.y},g.prototype.getLocation=function(){return new g(this.x,this.y)},g.prototype.setLocation=function(h,a,r){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+.5),this.y=Math.floor(a+.5)))},g.prototype.move=function(h,a){this.x=h,this.y=a},g.prototype.translate=function(h,a){this.x+=h,this.y+=a},g.prototype.equals=function(h){if(h.constructor.name=="Point"){var a=h;return this.x==a.x&&this.y==a.y}return this==h},g.prototype.toString=function(){return new g().constructor.name+"[x="+this.x+",y="+this.y+"]"},M.exports=g},function(M,P,L){function g(h,a,r,e){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)}g.prototype.getX=function(){return this.x},g.prototype.setX=function(h){this.x=h},g.prototype.getY=function(){return this.y},g.prototype.setY=function(h){this.y=h},g.prototype.getWidth=function(){return this.width},g.prototype.setWidth=function(h){this.width=h},g.prototype.getHeight=function(){return this.height},g.prototype.setHeight=function(h){this.height=h},g.prototype.getRight=function(){return this.x+this.width},g.prototype.getBottom=function(){return this.y+this.height},g.prototype.intersects=function(h){return!(this.getRight()<h.x||this.getBottom()<h.y||h.getRight()<this.x||h.getBottom()<this.y)},g.prototype.getCenterX=function(){return this.x+this.width/2},g.prototype.getMinX=function(){return this.getX()},g.prototype.getMaxX=function(){return this.getX()+this.width},g.prototype.getCenterY=function(){return this.y+this.height/2},g.prototype.getMinY=function(){return this.getY()},g.prototype.getMaxY=function(){return this.getY()+this.height},g.prototype.getWidthHalf=function(){return this.width/2},g.prototype.getHeightHalf=function(){return this.height/2},M.exports=g},function(M,P,L){var g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};function h(){}h.lastID=0,h.createID=function(a){return h.isPrimitive(a)?a:(a.uniqueID!=null||(a.uniqueID=h.getString(),h.lastID++),a.uniqueID)},h.getString=function(a){return a==null&&(a=h.lastID),"Object#"+a},h.isPrimitive=function(a){var r=typeof a>"u"?"undefined":g(a);return a==null||r!="object"&&r!="function"},M.exports=h},function(M,P,L){function g(s){if(Array.isArray(s)){for(var c=0,l=Array(s.length);c<s.length;c++)l[c]=s[c];return l}else return Array.from(s)}var h=L(0),a=L(7),r=L(3),e=L(1),f=L(6),i=L(5),v=L(17),t=L(29);function o(s){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=new Map,this.graphManager=new a(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,s!=null&&(this.isRemoteUse=s)}o.RANDOM_SEED=1,o.prototype=Object.create(t.prototype),o.prototype.getGraphManager=function(){return this.graphManager},o.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},o.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},o.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},o.prototype.newGraphManager=function(){var s=new a(this);return this.graphManager=s,s},o.prototype.newGraph=function(s){return new f(null,this.graphManager,s)},o.prototype.newNode=function(s){return new r(this.graphManager,s)},o.prototype.newEdge=function(s){return new e(null,null,s)},o.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},o.prototype.runLayout=function(){this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters();var s;return this.checkLayoutSuccess()?s=!1:s=this.layout(),h.ANIMATE==="during"?!1:(s&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,s)},o.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},o.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var s=this.graphManager.getAllEdges(),c=0;c<s.length;c++)s[c];for(var l=this.graphManager.getRoot().getNodes(),c=0;c<l.length;c++)l[c];this.update(this.graphManager.getRoot())}},o.prototype.update=function(s){if(s==null)this.update2();else if(s instanceof r){var c=s;if(c.getChild()!=null)for(var l=c.getChild().getNodes(),T=0;T<l.length;T++)update(l[T]);if(c.vGraphObject!=null){var u=c.vGraphObject;u.update(c)}}else if(s instanceof e){var d=s;if(d.vGraphObject!=null){var N=d.vGraphObject;N.update(d)}}else if(s instanceof f){var F=s;if(F.vGraphObject!=null){var A=F.vGraphObject;A.update(F)}}},o.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=h.QUALITY,this.animationDuringLayout=h.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=h.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=h.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=h.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=h.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=h.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},o.prototype.transform=function(s){if(s==null)this.transform(new i(0,0));else{var c=new v,l=this.graphManager.getRoot().updateLeftTop();if(l!=null){c.setWorldOrgX(s.x),c.setWorldOrgY(s.y),c.setDeviceOrgX(l.x),c.setDeviceOrgY(l.y);for(var T=this.getAllNodes(),u,d=0;d<T.length;d++)u=T[d],u.transform(c)}}},o.prototype.positionNodesRandomly=function(s){if(s==null)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var c,l,T=s.getNodes(),u=0;u<T.length;u++)c=T[u],l=c.getChild(),l==null||l.getNodes().length==0?c.scatter():(this.positionNodesRandomly(l),c.updateBounds())},o.prototype.getFlatForest=function(){for(var s=[],c=!0,l=this.graphManager.getRoot().getNodes(),T=!0,u=0;u<l.length;u++)l[u].getChild()!=null&&(T=!1);if(!T)return s;var d=new Set,N=[],F=new Map,A=[];for(A=A.concat(l);A.length>0&&c;){for(N.push(A[0]);N.length>0&&c;){var G=N[0];N.splice(0,1),d.add(G);for(var B=G.getEdges(),u=0;u<B.length;u++){var U=B[u].getOtherEnd(G);if(F.get(G)!=U)if(!d.has(U))N.push(U),F.set(U,G);else{c=!1;break}}}if(!c)s=[];else{var K=[].concat(g(d));s.push(K);for(var u=0;u<K.length;u++){var D=K[u],at=A.indexOf(D);at>-1&&A.splice(at,1)}d=new Set,F=new Map}}return s},o.prototype.createDummyNodesForBendpoints=function(s){for(var c=[],l=s.source,T=this.graphManager.calcLowestCommonAncestor(s.source,s.target),u=0;u<s.bendpoints.length;u++){var d=this.newNode(null);d.setRect(new Point(0,0),new Dimension(1,1)),T.add(d);var N=this.newEdge(null);this.graphManager.add(N,l,d),c.add(d),l=d}var N=this.newEdge(null);return this.graphManager.add(N,l,s.target),this.edgeToDummyNodes.set(s,c),s.isInterGraph()?this.graphManager.remove(s):T.remove(s),c},o.prototype.createBendpointsFromDummyNodes=function(){var s=[];s=s.concat(this.graphManager.getAllEdges()),s=[].concat(g(this.edgeToDummyNodes.keys())).concat(s);for(var c=0;c<s.length;c++){var l=s[c];if(l.bendpoints.length>0){for(var T=this.edgeToDummyNodes.get(l),u=0;u<T.length;u++){var d=T[u],N=new i(d.getCenterX(),d.getCenterY()),F=l.bendpoints.get(u);F.x=N.x,F.y=N.y,d.getOwner().remove(d)}this.graphManager.add(l,l.source,l.target)}}},o.transform=function(s,c,l,T){if(l!=null&&T!=null){var u=c;if(s<=50){var d=c/l;u-=(c-d)/50*(50-s)}else{var N=c*T;u+=(N-c)/50*(s-50)}return u}else{var F,A;return s<=50?(F=9*c/500,A=c/10):(F=9*c/50,A=-8*c),F*s+A}},o.findCenterOfTree=function(s){var c=[];c=c.concat(s);var l=[],T=new Map,u=!1,d=null;(c.length==1||c.length==2)&&(u=!0,d=c[0]);for(var N=0;N<c.length;N++){var F=c[N],A=F.getNeighborsList().size;T.set(F,F.getNeighborsList().size),A==1&&l.push(F)}var G=[];for(G=G.concat(l);!u;){var B=[];B=B.concat(G),G=[];for(var N=0;N<c.length;N++){var F=c[N],U=c.indexOf(F);U>=0&&c.splice(U,1);var K=F.getNeighborsList();K.forEach(function(n){if(l.indexOf(n)<0){var m=T.get(n),p=m-1;p==1&&G.push(n),T.set(n,p)}})}l=l.concat(G),(c.length==1||c.length==2)&&(u=!0,d=c[0])}return d},o.prototype.setGraphManager=function(s){this.graphManager=s},M.exports=o},function(M,P,L){function g(){}g.seed=1,g.x=0,g.nextDouble=function(){return g.x=Math.sin(g.seed++)*1e4,g.x-Math.floor(g.x)},M.exports=g},function(M,P,L){var g=L(5);function h(a,r){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}h.prototype.getWorldOrgX=function(){return this.lworldOrgX},h.prototype.setWorldOrgX=function(a){this.lworldOrgX=a},h.prototype.getWorldOrgY=function(){return this.lworldOrgY},h.prototype.setWorldOrgY=function(a){this.lworldOrgY=a},h.prototype.getWorldExtX=function(){return this.lworldExtX},h.prototype.setWorldExtX=function(a){this.lworldExtX=a},h.prototype.getWorldExtY=function(){return this.lworldExtY},h.prototype.setWorldExtY=function(a){this.lworldExtY=a},h.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},h.prototype.setDeviceOrgX=function(a){this.ldeviceOrgX=a},h.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},h.prototype.setDeviceOrgY=function(a){this.ldeviceOrgY=a},h.prototype.getDeviceExtX=function(){return this.ldeviceExtX},h.prototype.setDeviceExtX=function(a){this.ldeviceExtX=a},h.prototype.getDeviceExtY=function(){return this.ldeviceExtY},h.prototype.setDeviceExtY=function(a){this.ldeviceExtY=a},h.prototype.transformX=function(a){var r=0,e=this.lworldExtX;return e!=0&&(r=this.ldeviceOrgX+(a-this.lworldOrgX)*this.ldeviceExtX/e),r},h.prototype.transformY=function(a){var r=0,e=this.lworldExtY;return e!=0&&(r=this.ldeviceOrgY+(a-this.lworldOrgY)*this.ldeviceExtY/e),r},h.prototype.inverseTransformX=function(a){var r=0,e=this.ldeviceExtX;return e!=0&&(r=this.lworldOrgX+(a-this.ldeviceOrgX)*this.lworldExtX/e),r},h.prototype.inverseTransformY=function(a){var r=0,e=this.ldeviceExtY;return e!=0&&(r=this.lworldOrgY+(a-this.ldeviceOrgY)*this.lworldExtY/e),r},h.prototype.inverseTransformPoint=function(a){var r=new g(this.inverseTransformX(a.x),this.inverseTransformY(a.y));return r},M.exports=h},function(M,P,L){function g(t){if(Array.isArray(t)){for(var o=0,s=Array(t.length);o<t.length;o++)s[o]=t[o];return s}else return Array.from(t)}var h=L(15),a=L(4),r=L(0),e=L(8),f=L(9);function i(){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}i.prototype=Object.create(h.prototype);for(var v in h)i[v]=h[v];i.prototype.initParameters=function(){h.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=a.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},i.prototype.calcIdealEdgeLengths=function(){for(var t,o,s,c,l,T,u,d=this.getGraphManager().getAllEdges(),N=0;N<d.length;N++)t=d[N],o=t.idealLength,t.isInterGraph&&(c=t.getSource(),l=t.getTarget(),T=t.getSourceInLca().getEstimatedSize(),u=t.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(t.idealLength+=T+u-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))},i.prototype.initSpringEmbedder=function(){var t=this.getAllNodes().length;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()},i.prototype.calcSpringForces=function(){for(var t=this.getAllEdges(),o,s=0;s<t.length;s++)o=t[s],this.calcSpringForce(o,o.idealLength)},i.prototype.calcRepulsionForces=function(){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,u=this.getAllNodes(),d;if(this.useFRGridVariant)for(this.totalIterations%a.GRID_CALCULATION_CHECK_PERIOD==1&&t&&this.updateGrid(),d=new Set,s=0;s<u.length;s++)l=u[s],this.calculateRepulsionForceOfANode(l,d,t,o),d.add(l);else for(s=0;s<u.length;s++)for(l=u[s],c=s+1;c<u.length;c++)T=u[c],l.getOwner()==T.getOwner()&&this.calcRepulsionForce(l,T)},i.prototype.calcGravitationalForces=function(){for(var t,o=this.getAllNodesToApplyGravitation(),s=0;s<o.length;s++)t=o[s],this.calcGravitationalForce(t)},i.prototype.moveNodes=function(){for(var t=this.getAllNodes(),o,s=0;s<t.length;s++)o=t[s],o.move()},i.prototype.calcSpringForce=function(t,o){var s=t.getSource(),c=t.getTarget(),l,T,u,d;if(this.uniformLeafNodeSizes&&s.getChild()==null&&c.getChild()==null)t.updateLengthSimple();else if(t.updateLength(),t.isOverlapingSourceAndTarget)return;l=t.getLength(),l!=0&&(T=t.edgeElasticity*(l-o),u=T*(t.lengthX/l),d=T*(t.lengthY/l),s.springForceX+=u,s.springForceY+=d,c.springForceX-=u,c.springForceY-=d)},i.prototype.calcRepulsionForce=function(t,o){var s=t.getRect(),c=o.getRect(),l=new Array(2),T=new Array(4),u,d,N,F,A,G,B;if(s.intersects(c)){e.calcSeparationAmount(s,c,l,a.DEFAULT_EDGE_LENGTH/2),G=2*l[0],B=2*l[1];var U=t.noOfChildren*o.noOfChildren/(t.noOfChildren+o.noOfChildren);t.repulsionForceX-=U*G,t.repulsionForceY-=U*B,o.repulsionForceX+=U*G,o.repulsionForceY+=U*B}else this.uniformLeafNodeSizes&&t.getChild()==null&&o.getChild()==null?(u=c.getCenterX()-s.getCenterX(),d=c.getCenterY()-s.getCenterY()):(e.getIntersection(s,c,T),u=T[2]-T[0],d=T[3]-T[1]),Math.abs(u)<a.MIN_REPULSION_DIST&&(u=f.sign(u)*a.MIN_REPULSION_DIST),Math.abs(d)<a.MIN_REPULSION_DIST&&(d=f.sign(d)*a.MIN_REPULSION_DIST),N=u*u+d*d,F=Math.sqrt(N),A=(t.nodeRepulsion/2+o.nodeRepulsion/2)*t.noOfChildren*o.noOfChildren/N,G=A*u/F,B=A*d/F,t.repulsionForceX-=G,t.repulsionForceY-=B,o.repulsionForceX+=G,o.repulsionForceY+=B},i.prototype.calcGravitationalForce=function(t){var o,s,c,l,T,u,d,N;o=t.getOwner(),s=(o.getRight()+o.getLeft())/2,c=(o.getTop()+o.getBottom())/2,l=t.getCenterX()-s,T=t.getCenterY()-c,u=Math.abs(l)+t.getWidth()/2,d=Math.abs(T)+t.getHeight()/2,t.getOwner()==this.graphManager.getRoot()?(N=o.getEstimatedSize()*this.gravityRangeFactor,(u>N||d>N)&&(t.gravitationForceX=-this.gravityConstant*l,t.gravitationForceY=-this.gravityConstant*T)):(N=o.getEstimatedSize()*this.compoundGravityRangeFactor,(u>N||d>N)&&(t.gravitationForceX=-this.gravityConstant*l*this.compoundGravityConstant,t.gravitationForceY=-this.gravityConstant*T*this.compoundGravityConstant))},i.prototype.isConverged=function(){var t,o=!1;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},i.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},i.prototype.calcNoOfChildrenForAllNodes=function(){for(var t,o=this.graphManager.getAllNodes(),s=0;s<o.length;s++)t=o[s],t.noOfChildren=t.getNoOfChildren()},i.prototype.calcGrid=function(t){var o=0,s=0;o=parseInt(Math.ceil((t.getRight()-t.getLeft())/this.repulsionRange)),s=parseInt(Math.ceil((t.getBottom()-t.getTop())/this.repulsionRange));for(var c=new Array(o),l=0;l<o;l++)c[l]=new Array(s);for(var l=0;l<o;l++)for(var T=0;T<s;T++)c[l][T]=new Array;return c},i.prototype.addNodeToGrid=function(t,o,s){var c=0,l=0,T=0,u=0;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)),u=parseInt(Math.floor((t.getRect().height+t.getRect().y-s)/this.repulsionRange));for(var d=c;d<=l;d++)for(var N=T;N<=u;N++)this.grid[d][N].push(t),t.setGridCoordinates(c,l,T,u)},i.prototype.updateGrid=function(){var t,o,s=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),t=0;t<s.length;t++)o=s[t],this.addNodeToGrid(o,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},i.prototype.calculateRepulsionForceOfANode=function(t,o,s,c){if(this.totalIterations%a.GRID_CALCULATION_CHECK_PERIOD==1&&s||c){var l=new Set;t.surrounding=new Array;for(var T,u=this.grid,d=t.startX-1;d<t.finishX+2;d++)for(var N=t.startY-1;N<t.finishY+2;N++)if(!(d<0||N<0||d>=u.length||N>=u[0].length)){for(var F=0;F<u[d][N].length;F++)if(T=u[d][N][F],!(t.getOwner()!=T.getOwner()||t==T)&&!o.has(T)&&!l.has(T)){var A=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);A<=this.repulsionRange&&G<=this.repulsionRange&&l.add(T)}}t.surrounding=[].concat(g(l))}for(d=0;d<t.surrounding.length;d++)this.calcRepulsionForce(t,t.surrounding[d])},i.prototype.calcRepulsionRange=function(){return 0},M.exports=i},function(M,P,L){var g=L(1),h=L(4);function a(e,f,i){g.call(this,e,f,i),this.idealLength=h.DEFAULT_EDGE_LENGTH,this.edgeElasticity=h.DEFAULT_SPRING_STRENGTH}a.prototype=Object.create(g.prototype);for(var r in g)a[r]=g[r];M.exports=a},function(M,P,L){var g=L(3),h=L(4);function a(e,f,i,v){g.call(this,e,f,i,v),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=[]}a.prototype=Object.create(g.prototype);for(var r in g)a[r]=g[r];a.prototype.setGridCoordinates=function(e,f,i,v){this.startX=e,this.finishX=f,this.startY=i,this.finishY=v},M.exports=a},function(M,P,L){function g(h,a){this.width=0,this.height=0,h!==null&&a!==null&&(this.height=a,this.width=h)}g.prototype.getWidth=function(){return this.width},g.prototype.setWidth=function(h){this.width=h},g.prototype.getHeight=function(){return this.height},g.prototype.setHeight=function(h){this.height=h},M.exports=g},function(M,P,L){var g=L(14);function h(){this.map={},this.keys=[]}h.prototype.put=function(a,r){var e=g.createID(a);this.contains(e)||(this.map[e]=r,this.keys.push(a))},h.prototype.contains=function(a){return g.createID(a),this.map[a]!=null},h.prototype.get=function(a){var r=g.createID(a);return this.map[r]},h.prototype.keySet=function(){return this.keys},M.exports=h},function(M,P,L){var g=L(14);function h(){this.set={}}h.prototype.add=function(a){var r=g.createID(a);this.contains(r)||(this.set[r]=a)},h.prototype.remove=function(a){delete this.set[g.createID(a)]},h.prototype.clear=function(){this.set={}},h.prototype.contains=function(a){return this.set[g.createID(a)]==a},h.prototype.isEmpty=function(){return this.size()===0},h.prototype.size=function(){return Object.keys(this.set).length},h.prototype.addAllTo=function(a){for(var r=Object.keys(this.set),e=r.length,f=0;f<e;f++)a.push(this.set[r[f]])},h.prototype.size=function(){return Object.keys(this.set).length},h.prototype.addAll=function(a){for(var r=a.length,e=0;e<r;e++){var f=a[e];this.add(f)}},M.exports=h},function(M,P,L){function g(){}g.multMat=function(h,a){for(var r=[],e=0;e<h.length;e++){r[e]=[];for(var f=0;f<a[0].length;f++){r[e][f]=0;for(var i=0;i<h[0].length;i++)r[e][f]+=h[e][i]*a[i][f]}}return r},g.transpose=function(h){for(var a=[],r=0;r<h[0].length;r++){a[r]=[];for(var e=0;e<h.length;e++)a[r][e]=h[e][r]}return a},g.multCons=function(h,a){for(var r=[],e=0;e<h.length;e++)r[e]=h[e]*a;return r},g.minusOp=function(h,a){for(var r=[],e=0;e<h.length;e++)r[e]=h[e]-a[e];return r},g.dotProduct=function(h,a){for(var r=0,e=0;e<h.length;e++)r+=h[e]*a[e];return r},g.mag=function(h){return Math.sqrt(this.dotProduct(h,h))},g.normalize=function(h){for(var a=[],r=this.mag(h),e=0;e<h.length;e++)a[e]=h[e]/r;return a},g.multGamma=function(h){for(var a=[],r=0,e=0;e<h.length;e++)r+=h[e];r*=-1/h.length;for(var f=0;f<h.length;f++)a[f]=r+h[f];return a},g.multL=function(h,a,r){for(var e=[],f=[],i=[],v=0;v<a[0].length;v++){for(var t=0,o=0;o<a.length;o++)t+=-.5*a[o][v]*h[o];f[v]=t}for(var s=0;s<r.length;s++){for(var c=0,l=0;l<r.length;l++)c+=r[s][l]*f[l];i[s]=c}for(var T=0;T<a.length;T++){for(var u=0,d=0;d<a[0].length;d++)u+=a[T][d]*i[d];e[T]=u}return e},M.exports=g},function(M,P,L){var g=function(){function e(f,i){for(var v=0;v<i.length;v++){var t=i[v];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(f,t.key,t)}}return function(f,i,v){return i&&e(f.prototype,i),v&&e(f,v),f}}();function h(e,f){if(!(e instanceof f))throw new TypeError("Cannot call a class as a function")}var a=L(11),r=function(){function e(f,i){h(this,e),(i!==null||i!==void 0)&&(this.compareFunction=this._defaultCompareFunction);var v=void 0;f instanceof a?v=f.size():v=f.length,this._quicksort(f,0,v-1)}return g(e,[{key:"_quicksort",value:function(i,v,t){if(v<t){var o=this._partition(i,v,t);this._quicksort(i,v,o),this._quicksort(i,o+1,t)}}},{key:"_partition",value:function(i,v,t){for(var o=this._get(i,v),s=v,c=t;;){for(;this.compareFunction(o,this._get(i,c));)c--;for(;this.compareFunction(this._get(i,s),o);)s++;if(s<c)this._swap(i,s,c),s++,c--;else return c}}},{key:"_get",value:function(i,v){return i instanceof a?i.get_object_at(v):i[v]}},{key:"_set",value:function(i,v,t){i instanceof a?i.set_object_at(v,t):i[v]=t}},{key:"_swap",value:function(i,v,t){var o=this._get(i,v);this._set(i,v,this._get(i,t)),this._set(i,t,o)}},{key:"_defaultCompareFunction",value:function(i,v){return v>i}}]),e}();M.exports=r},function(M,P,L){function g(){}g.svd=function(h){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=h.length,this.n=h[0].length;var a=Math.min(this.m,this.n);this.s=function(Nt){for(var At=[];Nt-- >0;)At.push(0);return At}(Math.min(this.m+1,this.n)),this.U=function(Nt){var At=function Zt(Gt){if(Gt.length==0)return 0;for(var $t=[],Ft=0;Ft<Gt[0];Ft++)$t.push(Zt(Gt.slice(1)));return $t};return At(Nt)}([this.m,a]),this.V=function(Nt){var At=function Zt(Gt){if(Gt.length==0)return 0;for(var $t=[],Ft=0;Ft<Gt[0];Ft++)$t.push(Zt(Gt.slice(1)));return $t};return At(Nt)}([this.n,this.n]);for(var r=function(Nt){for(var At=[];Nt-- >0;)At.push(0);return At}(this.n),e=function(Nt){for(var At=[];Nt-- >0;)At.push(0);return At}(this.m),f=!0,i=Math.min(this.m-1,this.n),v=Math.max(0,Math.min(this.n-2,this.m)),t=0;t<Math.max(i,v);t++){if(t<i){this.s[t]=0;for(var o=t;o<this.m;o++)this.s[t]=g.hypot(this.s[t],h[o][t]);if(this.s[t]!==0){h[t][t]<0&&(this.s[t]=-this.s[t]);for(var s=t;s<this.m;s++)h[s][t]/=this.s[t];h[t][t]+=1}this.s[t]=-this.s[t]}for(var c=t+1;c<this.n;c++){if(function(Nt,At){return Nt&&At}(t<i,this.s[t]!==0)){for(var l=0,T=t;T<this.m;T++)l+=h[T][t]*h[T][c];l=-l/h[t][t];for(var u=t;u<this.m;u++)h[u][c]+=l*h[u][t]}r[c]=h[t][c]}if(function(Nt,At){return At}(f,t<i))for(var d=t;d<this.m;d++)this.U[d][t]=h[d][t];if(t<v){r[t]=0;for(var N=t+1;N<this.n;N++)r[t]=g.hypot(r[t],r[N]);if(r[t]!==0){r[t+1]<0&&(r[t]=-r[t]);for(var F=t+1;F<this.n;F++)r[F]/=r[t];r[t+1]+=1}if(r[t]=-r[t],function(Nt,At){return Nt&&At}(t+1<this.m,r[t]!==0)){for(var A=t+1;A<this.m;A++)e[A]=0;for(var G=t+1;G<this.n;G++)for(var B=t+1;B<this.m;B++)e[B]+=r[G]*h[B][G];for(var U=t+1;U<this.n;U++)for(var K=-r[U]/r[t+1],D=t+1;D<this.m;D++)h[D][U]+=K*e[D]}for(var at=t+1;at<this.n;at++)this.V[at][t]=r[at]}}var n=Math.min(this.n,this.m+1);i<this.n&&(this.s[i]=h[i][i]),this.m<n&&(this.s[n-1]=0),v+1<n&&(r[v]=h[v][n-1]),r[n-1]=0;{for(var m=i;m<a;m++){for(var p=0;p<this.m;p++)this.U[p][m]=0;this.U[m][m]=1}for(var E=i-1;E>=0;E--)if(this.s[E]!==0){for(var y=E+1;y<a;y++){for(var I=0,w=E;w<this.m;w++)I+=this.U[w][E]*this.U[w][y];I=-I/this.U[E][E];for(var R=E;R<this.m;R++)this.U[R][y]+=I*this.U[R][E]}for(var W=E;W<this.m;W++)this.U[W][E]=-this.U[W][E];this.U[E][E]=1+this.U[E][E];for(var x=0;x<E-1;x++)this.U[x][E]=0}else{for(var q=0;q<this.m;q++)this.U[q][E]=0;this.U[E][E]=1}}for(var V=this.n-1;V>=0;V--){if(function(Nt,At){return Nt&&At}(V<v,r[V]!==0))for(var Y=V+1;Y<a;Y++){for(var et=0,z=V+1;z<this.n;z++)et+=this.V[z][V]*this.V[z][Y];et=-et/this.V[V+1][V];for(var O=V+1;O<this.n;O++)this.V[O][Y]+=et*this.V[O][V]}for(var H=0;H<this.n;H++)this.V[H][V]=0;this.V[V][V]=1}for(var $=n-1,_=Math.pow(2,-52),ht=Math.pow(2,-966);n>0;){var J=void 0,Rt=void 0;for(J=n-2;J>=-1&&J!==-1;J--)if(Math.abs(r[J])<=ht+_*(Math.abs(this.s[J])+Math.abs(this.s[J+1]))){r[J]=0;break}if(J===n-2)Rt=4;else{var Lt=void 0;for(Lt=n-1;Lt>=J&&Lt!==J;Lt--){var vt=(Lt!==n?Math.abs(r[Lt]):0)+(Lt!==J+1?Math.abs(r[Lt-1]):0);if(Math.abs(this.s[Lt])<=ht+_*vt){this.s[Lt]=0;break}}Lt===J?Rt=3:Lt===n-1?Rt=1:(Rt=2,J=Lt)}switch(J++,Rt){case 1:{var rt=r[n-2];r[n-2]=0;for(var ut=n-2;ut>=J;ut--){var Tt=g.hypot(this.s[ut],rt),Mt=this.s[ut]/Tt,Dt=rt/Tt;this.s[ut]=Tt,ut!==J&&(rt=-Dt*r[ut-1],r[ut-1]=Mt*r[ut-1]);for(var mt=0;mt<this.n;mt++)Tt=Mt*this.V[mt][ut]+Dt*this.V[mt][n-1],this.V[mt][n-1]=-Dt*this.V[mt][ut]+Mt*this.V[mt][n-1],this.V[mt][ut]=Tt}}break;case 2:{var xt=r[J-1];r[J-1]=0;for(var St=J;St<n;St++){var Vt=g.hypot(this.s[St],xt),Xt=this.s[St]/Vt,Ut=xt/Vt;this.s[St]=Vt,xt=-Ut*r[St],r[St]=Xt*r[St];for(var bt=0;bt<this.m;bt++)Vt=Xt*this.U[bt][St]+Ut*this.U[bt][J-1],this.U[bt][J-1]=-Ut*this.U[bt][St]+Xt*this.U[bt][J-1],this.U[bt][St]=Vt}}break;case 3:{var Ht=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[J])),Math.abs(r[J])),Bt=this.s[n-1]/Ht,S=this.s[n-2]/Ht,b=r[n-2]/Ht,Z=this.s[J]/Ht,Q=r[J]/Ht,k=((S+Bt)*(S-Bt)+b*b)/2,it=Bt*b*(Bt*b),gt=0;(function(Nt,At){return Nt||At})(k!==0,it!==0)&&(gt=Math.sqrt(k*k+it),k<0&&(gt=-gt),gt=it/(k+gt));for(var ot=(Z+Bt)*(Z-Bt)+gt,tt=Z*Q,j=J;j<n-1;j++){var dt=g.hypot(ot,tt),wt=ot/dt,yt=tt/dt;j!==J&&(r[j-1]=dt),ot=wt*this.s[j]+yt*r[j],r[j]=wt*r[j]-yt*this.s[j],tt=yt*this.s[j+1],this.s[j+1]=wt*this.s[j+1];for(var It=0;It<this.n;It++)dt=wt*this.V[It][j]+yt*this.V[It][j+1],this.V[It][j+1]=-yt*this.V[It][j]+wt*this.V[It][j+1],this.V[It][j]=dt;if(dt=g.hypot(ot,tt),wt=ot/dt,yt=tt/dt,this.s[j]=dt,ot=wt*r[j]+yt*this.s[j+1],this.s[j+1]=-yt*r[j]+wt*this.s[j+1],tt=yt*r[j+1],r[j+1]=wt*r[j+1],j<this.m-1)for(var ft=0;ft<this.m;ft++)dt=wt*this.U[ft][j]+yt*this.U[ft][j+1],this.U[ft][j+1]=-yt*this.U[ft][j]+wt*this.U[ft][j+1],this.U[ft][j]=dt}r[n-2]=ot}break;case 4:{if(this.s[J]<=0){this.s[J]=this.s[J]<0?-this.s[J]:0;for(var st=0;st<=$;st++)this.V[st][J]=-this.V[st][J]}for(;J<$&&!(this.s[J]>=this.s[J+1]);){var Ct=this.s[J];if(this.s[J]=this.s[J+1],this.s[J+1]=Ct,J<this.n-1)for(var ct=0;ct<this.n;ct++)Ct=this.V[ct][J+1],this.V[ct][J+1]=this.V[ct][J],this.V[ct][J]=Ct;if(J<this.m-1)for(var lt=0;lt<this.m;lt++)Ct=this.U[lt][J+1],this.U[lt][J+1]=this.U[lt][J],this.U[lt][J]=Ct;J++}n--}break}}var Wt={U:this.U,V:this.V,S:this.s};return Wt},g.hypot=function(h,a){var r=void 0;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},M.exports=g},function(M,P,L){var g=function(){function r(e,f){for(var i=0;i<f.length;i++){var v=f[i];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(e,v.key,v)}}return function(e,f,i){return f&&r(e.prototype,f),i&&r(e,i),e}}();function h(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}var a=function(){function r(e,f){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,t=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;h(this,r),this.sequence1=e,this.sequence2=f,this.match_score=i,this.mismatch_penalty=v,this.gap_penalty=t,this.iMax=e.length+1,this.jMax=f.length+1,this.grid=new Array(this.iMax);for(var o=0;o<this.iMax;o++){this.grid[o]=new Array(this.jMax);for(var s=0;s<this.jMax;s++)this.grid[o][s]=0}this.tracebackGrid=new Array(this.iMax);for(var c=0;c<this.iMax;c++){this.tracebackGrid[c]=new Array(this.jMax);for(var l=0;l<this.jMax;l++)this.tracebackGrid[c][l]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return g(r,[{key:"getScore",value:function(){return this.score}},{key:"getAlignments",value:function(){return this.alignments}},{key:"computeGrids",value:function(){for(var f=1;f<this.jMax;f++)this.grid[0][f]=this.grid[0][f-1]+this.gap_penalty,this.tracebackGrid[0][f]=[!1,!1,!0];for(var i=1;i<this.iMax;i++)this.grid[i][0]=this.grid[i-1][0]+this.gap_penalty,this.tracebackGrid[i][0]=[!1,!0,!1];for(var v=1;v<this.iMax;v++)for(var t=1;t<this.jMax;t++){var o=void 0;this.sequence1[v-1]===this.sequence2[t-1]?o=this.grid[v-1][t-1]+this.match_score:o=this.grid[v-1][t-1]+this.mismatch_penalty;var s=this.grid[v-1][t]+this.gap_penalty,c=this.grid[v][t-1]+this.gap_penalty,l=[o,s,c],T=this.arrayAllMaxIndexes(l);this.grid[v][t]=l[T[0]],this.tracebackGrid[v][t]=[T.includes(0),T.includes(1),T.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:"alignmentTraceback",value:function(){var f=[];for(f.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});f[0];){var i=f[0],v=this.tracebackGrid[i.pos[0]][i.pos[1]];v[0]&&f.push({pos:[i.pos[0]-1,i.pos[1]-1],seq1:this.sequence1[i.pos[0]-1]+i.seq1,seq2:this.sequence2[i.pos[1]-1]+i.seq2}),v[1]&&f.push({pos:[i.pos[0]-1,i.pos[1]],seq1:this.sequence1[i.pos[0]-1]+i.seq1,seq2:"-"+i.seq2}),v[2]&&f.push({pos:[i.pos[0],i.pos[1]-1],seq1:"-"+i.seq1,seq2:this.sequence2[i.pos[1]-1]+i.seq2}),i.pos[0]===0&&i.pos[1]===0&&this.alignments.push({sequence1:i.seq1,sequence2:i.seq2}),f.shift()}return this.alignments}},{key:"getAllIndexes",value:function(f,i){for(var v=[],t=-1;(t=f.indexOf(i,t+1))!==-1;)v.push(t);return v}},{key:"arrayAllMaxIndexes",value:function(f){return this.getAllIndexes(f,Math.max.apply(null,f))}}]),r}();M.exports=a},function(M,P,L){var g=function(){};g.FDLayout=L(18),g.FDLayoutConstants=L(4),g.FDLayoutEdge=L(19),g.FDLayoutNode=L(20),g.DimensionD=L(21),g.HashMap=L(22),g.HashSet=L(23),g.IGeometry=L(8),g.IMath=L(9),g.Integer=L(10),g.Point=L(12),g.PointD=L(5),g.RandomSeed=L(16),g.RectangleD=L(13),g.Transform=L(17),g.UniqueIDGeneretor=L(14),g.Quicksort=L(25),g.LinkedList=L(11),g.LGraphObject=L(2),g.LGraph=L(6),g.LEdge=L(1),g.LGraphManager=L(7),g.LNode=L(3),g.Layout=L(15),g.LayoutConstants=L(0),g.NeedlemanWunsch=L(27),g.Matrix=L(24),g.SVD=L(26),M.exports=g},function(M,P,L){function g(){this.listeners=[]}var h=g.prototype;h.addListener=function(a,r){this.listeners.push({event:a,callback:r})},h.removeListener=function(a,r){for(var e=this.listeners.length;e>=0;e--){var f=this.listeners[e];f.event===a&&f.callback===r&&this.listeners.splice(e,1)}},h.emit=function(a,r){for(var e=0;e<this.listeners.length;e++){var f=this.listeners[e];a===f.event&&f.callback(r)}},M.exports=g}])})}(ce)),ce.exports}var pr=fe.exports,Ie;function yr(){return Ie||(Ie=1,function(C,X){(function(P,L){C.exports=L(vr())})(pr,function(M){return(()=>{var P={45:(a,r,e)=>{var f={};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},806:(a,r,e)=>{var f=e(551).FDLayoutConstants;function i(){}for(var v in f)i[v]=f[v];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},767:(a,r,e)=>{var f=e(551).FDLayoutEdge;function i(t,o,s){f.call(this,t,o,s)}i.prototype=Object.create(f.prototype);for(var v in f)i[v]=f[v];a.exports=i},880:(a,r,e)=>{var f=e(551).LGraph;function i(t,o,s){f.call(this,t,o,s)}i.prototype=Object.create(f.prototype);for(var v in f)i[v]=f[v];a.exports=i},578:(a,r,e)=>{var f=e(551).LGraphManager;function i(t){f.call(this,t)}i.prototype=Object.create(f.prototype);for(var v in f)i[v]=f[v];a.exports=i},765:(a,r,e)=>{var f=e(551).FDLayout,i=e(578),v=e(880),t=e(991),o=e(767),s=e(806),c=e(902),l=e(551).FDLayoutConstants,T=e(551).LayoutConstants,u=e(551).Point,d=e(551).PointD,N=e(551).DimensionD,F=e(551).Layout,A=e(551).Integer,G=e(551).IGeometry,B=e(551).LGraph,U=e(551).Transform,K=e(551).LinkedList;function D(){f.call(this),this.toBeTiled={},this.constraints={}}D.prototype=Object.create(f.prototype);for(var at in f)D[at]=f[at];D.prototype.newGraphManager=function(){var n=new i(this);return this.graphManager=n,n},D.prototype.newGraph=function(n){return new v(null,this.graphManager,n)},D.prototype.newNode=function(n){return new t(this.graphManager,n)},D.prototype.newEdge=function(n){return new o(null,null,n)},D.prototype.initParameters=function(){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)},D.prototype.initSpringEmbedder=function(){f.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/l.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},D.prototype.layout=function(){var n=T.DEFAULT_CREATE_BENDS_AS_NEEDED;return n&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},D.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(s.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),p=this.nodesWithGravity.filter(function(I){return m.has(I)});this.graphManager.setAllNodesToApplyGravitation(p)}}else{var n=this.getFlatForest();if(n.length>0)this.positionNodesRadially(n);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),p=this.nodesWithGravity.filter(function(E){return m.has(E)});this.graphManager.setAllNodesToApplyGravitation(p),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(c.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),s.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},D.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%l.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var n=new Set(this.getAllNodes()),m=this.nodesWithGravity.filter(function(y){return n.has(y)});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}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;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++}var p=!this.isTreeGrowing&&!this.isGrowthFinished,E=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(p,E),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},D.prototype.getPositionsData=function(){for(var n=this.graphManager.getAllNodes(),m={},p=0;p<n.length;p++){var E=n[p].rect,y=n[p].id;m[y]={id:y,x:E.getCenterX(),y:E.getCenterY(),w:E.width,h:E.height}}return m},D.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var n=!1;if(l.ANIMATE==="during")this.emit("layoutstarted");else{for(;!n;)n=this.tick();this.graphManager.updateBounds()}},D.prototype.moveNodes=function(){for(var n=this.getAllNodes(),m,p=0;p<n.length;p++)m=n[p],m.calculateDisplacement();Object.keys(this.constraints).length>0&&this.updateDisplacements();for(var p=0;p<n.length;p++)m=n[p],m.move()},D.prototype.initConstraintVariables=function(){var n=this;this.idToNodeMap=new Map,this.fixedNodeSet=new Set;for(var m=this.graphManager.getAllNodes(),p=0;p<m.length;p++){var E=m[p];this.idToNodeMap.set(E.id,E)}var y=function O(H){for(var $=H.getChild().getNodes(),_,ht=0,J=0;J<$.length;J++)_=$[J],_.getChild()==null?n.fixedNodeSet.has(_.id)&&(ht+=100):ht+=O(_);return ht};if(this.constraints.fixedNodeConstraint){this.constraints.fixedNodeConstraint.forEach(function($){n.fixedNodeSet.add($.nodeId)});for(var m=this.graphManager.getAllNodes(),E,p=0;p<m.length;p++)if(E=m[p],E.getChild()!=null){var I=y(E);I>0&&(E.fixedNodeWeight=I)}}if(this.constraints.relativePlacementConstraint){var w=new Map,R=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(O){n.fixedNodesOnHorizontal.add(O),n.fixedNodesOnVertical.add(O)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var W=this.constraints.alignmentConstraint.vertical,p=0;p<W.length;p++)this.dummyToNodeForVerticalAlignment.set("dummy"+p,[]),W[p].forEach(function(H){w.set(H,"dummy"+p),n.dummyToNodeForVerticalAlignment.get("dummy"+p).push(H),n.fixedNodeSet.has(H)&&n.fixedNodesOnHorizontal.add("dummy"+p)});if(this.constraints.alignmentConstraint.horizontal)for(var x=this.constraints.alignmentConstraint.horizontal,p=0;p<x.length;p++)this.dummyToNodeForHorizontalAlignment.set("dummy"+p,[]),x[p].forEach(function(H){R.set(H,"dummy"+p),n.dummyToNodeForHorizontalAlignment.get("dummy"+p).push(H),n.fixedNodeSet.has(H)&&n.fixedNodesOnVertical.add("dummy"+p)})}if(s.RELAX_MOVEMENT_ON_CONSTRAINTS)this.shuffle=function(O){var H,$,_;for(_=O.length-1;_>=2*O.length/3;_--)H=Math.floor(Math.random()*(_+1)),$=O[_],O[_]=O[H],O[H]=$;return O},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(O){if(O.left){var H=w.has(O.left)?w.get(O.left):O.left,$=w.has(O.right)?w.get(O.right):O.right;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:O.gap}),n.nodeToRelativeConstraintMapHorizontal.get($).push({left:H,gap:O.gap})}else{var _=R.has(O.top)?R.get(O.top):O.top,ht=R.has(O.bottom)?R.get(O.bottom):O.bottom;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:O.gap}),n.nodeToRelativeConstraintMapVertical.get(ht).push({top:_,gap:O.gap})}});else{var q=new Map,V=new Map;this.constraints.relativePlacementConstraint.forEach(function(O){if(O.left){var H=w.has(O.left)?w.get(O.left):O.left,$=w.has(O.right)?w.get(O.right):O.right;q.has(H)?q.get(H).push($):q.set(H,[$]),q.has($)?q.get($).push(H):q.set($,[H])}else{var _=R.has(O.top)?R.get(O.top):O.top,ht=R.has(O.bottom)?R.get(O.bottom):O.bottom;V.has(_)?V.get(_).push(ht):V.set(_,[ht]),V.has(ht)?V.get(ht).push(_):V.set(ht,[_])}});var Y=function(H,$){var _=[],ht=[],J=new K,Rt=new Set,Lt=0;return H.forEach(function(vt,rt){if(!Rt.has(rt)){_[Lt]=[],ht[Lt]=!1;var ut=rt;for(J.push(ut),Rt.add(ut),_[Lt].push(ut);J.length!=0;){ut=J.shift(),$.has(ut)&&(ht[Lt]=!0);var Tt=H.get(ut);Tt.forEach(function(Mt){Rt.has(Mt)||(J.push(Mt),Rt.add(Mt),_[Lt].push(Mt))})}Lt++}}),{components:_,isFixed:ht}},et=Y(q,n.fixedNodesOnHorizontal);this.componentsOnHorizontal=et.components,this.fixedComponentsOnHorizontal=et.isFixed;var z=Y(V,n.fixedNodesOnVertical);this.componentsOnVertical=z.components,this.fixedComponentsOnVertical=z.isFixed}}},D.prototype.updateDisplacements=function(){var n=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(z){var O=n.idToNodeMap.get(z.nodeId);O.displacementX=0,O.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var m=this.constraints.alignmentConstraint.vertical,p=0;p<m.length;p++){for(var E=0,y=0;y<m[p].length;y++){if(this.fixedNodeSet.has(m[p][y])){E=0;break}E+=this.idToNodeMap.get(m[p][y]).displacementX}for(var I=E/m[p].length,y=0;y<m[p].length;y++)this.idToNodeMap.get(m[p][y]).displacementX=I}if(this.constraints.alignmentConstraint.horizontal)for(var w=this.constraints.alignmentConstraint.horizontal,p=0;p<w.length;p++){for(var R=0,y=0;y<w[p].length;y++){if(this.fixedNodeSet.has(w[p][y])){R=0;break}R+=this.idToNodeMap.get(w[p][y]).displacementY}for(var W=R/w[p].length,y=0;y<w[p].length;y++)this.idToNodeMap.get(w[p][y]).displacementY=W}}if(this.constraints.relativePlacementConstraint)if(s.RELAX_MOVEMENT_ON_CONSTRAINTS)this.totalIterations%10==0&&(this.shuffle(this.nodesInRelativeHorizontal),this.shuffle(this.nodesInRelativeVertical)),this.nodesInRelativeHorizontal.forEach(function(z){if(!n.fixedNodesOnHorizontal.has(z)){var O=0;n.dummyToNodeForVerticalAlignment.has(z)?O=n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(z)[0]).displacementX:O=n.idToNodeMap.get(z).displacementX,n.nodeToRelativeConstraintMapHorizontal.get(z).forEach(function(H){if(H.right){var $=n.nodeToTempPositionMapHorizontal.get(H.right)-n.nodeToTempPositionMapHorizontal.get(z)-O;$<H.gap&&(O-=H.gap-$)}else{var $=n.nodeToTempPositionMapHorizontal.get(z)-n.nodeToTempPositionMapHorizontal.get(H.left)+O;$<H.gap&&(O+=H.gap-$)}}),n.nodeToTempPositionMapHorizontal.set(z,n.nodeToTempPositionMapHorizontal.get(z)+O),n.dummyToNodeForVerticalAlignment.has(z)?n.dummyToNodeForVerticalAlignment.get(z).forEach(function(H){n.idToNodeMap.get(H).displacementX=O}):n.idToNodeMap.get(z).displacementX=O}}),this.nodesInRelativeVertical.forEach(function(z){if(!n.fixedNodesOnHorizontal.has(z)){var O=0;n.dummyToNodeForHorizontalAlignment.has(z)?O=n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(z)[0]).displacementY:O=n.idToNodeMap.get(z).displacementY,n.nodeToRelativeConstraintMapVertical.get(z).forEach(function(H){if(H.bottom){var $=n.nodeToTempPositionMapVertical.get(H.bottom)-n.nodeToTempPositionMapVertical.get(z)-O;$<H.gap&&(O-=H.gap-$)}else{var $=n.nodeToTempPositionMapVertical.get(z)-n.nodeToTempPositionMapVertical.get(H.top)+O;$<H.gap&&(O+=H.gap-$)}}),n.nodeToTempPositionMapVertical.set(z,n.nodeToTempPositionMapVertical.get(z)+O),n.dummyToNodeForHorizontalAlignment.has(z)?n.dummyToNodeForHorizontalAlignment.get(z).forEach(function(H){n.idToNodeMap.get(H).displacementY=O}):n.idToNodeMap.get(z).displacementY=O}});else{for(var p=0;p<this.componentsOnHorizontal.length;p++){var x=this.componentsOnHorizontal[p];if(this.fixedComponentsOnHorizontal[p])for(var y=0;y<x.length;y++)this.dummyToNodeForVerticalAlignment.has(x[y])?this.dummyToNodeForVerticalAlignment.get(x[y]).forEach(function(H){n.idToNodeMap.get(H).displacementX=0}):this.idToNodeMap.get(x[y]).displacementX=0;else{for(var q=0,V=0,y=0;y<x.length;y++)if(this.dummyToNodeForVerticalAlignment.has(x[y])){var Y=this.dummyToNodeForVerticalAlignment.get(x[y]);q+=Y.length*this.idToNodeMap.get(Y[0]).displacementX,V+=Y.length}else q+=this.idToNodeMap.get(x[y]).displacementX,V++;for(var et=q/V,y=0;y<x.length;y++)this.dummyToNodeForVerticalAlignment.has(x[y])?this.dummyToNodeForVerticalAlignment.get(x[y]).forEach(function(H){n.idToNodeMap.get(H).displacementX=et}):this.idToNodeMap.get(x[y]).displacementX=et}}for(var p=0;p<this.componentsOnVertical.length;p++){var x=this.componentsOnVertical[p];if(this.fixedComponentsOnVertical[p])for(var y=0;y<x.length;y++)this.dummyToNodeForHorizontalAlignment.has(x[y])?this.dummyToNodeForHorizontalAlignment.get(x[y]).forEach(function($){n.idToNodeMap.get($).displacementY=0}):this.idToNodeMap.get(x[y]).displacementY=0;else{for(var q=0,V=0,y=0;y<x.length;y++)if(this.dummyToNodeForHorizontalAlignment.has(x[y])){var Y=this.dummyToNodeForHorizontalAlignment.get(x[y]);q+=Y.length*this.idToNodeMap.get(Y[0]).displacementY,V+=Y.length}else q+=this.idToNodeMap.get(x[y]).displacementY,V++;for(var et=q/V,y=0;y<x.length;y++)this.dummyToNodeForHorizontalAlignment.has(x[y])?this.dummyToNodeForHorizontalAlignment.get(x[y]).forEach(function(J){n.idToNodeMap.get(J).displacementY=et}):this.idToNodeMap.get(x[y]).displacementY=et}}}},D.prototype.calculateNodesToApplyGravitationTo=function(){var n=[],m,p=this.graphManager.getGraphs(),E=p.length,y;for(y=0;y<E;y++)m=p[y],m.updateConnected(),m.isConnected||(n=n.concat(m.getNodes()));return n},D.prototype.createBendpoints=function(){var n=[];n=n.concat(this.graphManager.getAllEdges());var m=new Set,p;for(p=0;p<n.length;p++){var E=n[p];if(!m.has(E)){var y=E.getSource(),I=E.getTarget();if(y==I)E.getBendpoints().push(new d),E.getBendpoints().push(new d),this.createDummyNodesForBendpoints(E),m.add(E);else{var w=[];if(w=w.concat(y.getEdgeListToNode(I)),w=w.concat(I.getEdgeListToNode(y)),!m.has(w[0])){if(w.length>1){var R;for(R=0;R<w.length;R++){var W=w[R];W.getBendpoints().push(new d),this.createDummyNodesForBendpoints(W)}}w.forEach(function(x){m.add(x)})}}}if(m.size==n.length)break}},D.prototype.positionNodesRadially=function(n){for(var m=new u(0,0),p=Math.ceil(Math.sqrt(n.length)),E=0,y=0,I=0,w=new d(0,0),R=0;R<n.length;R++){R%p==0&&(I=0,y=E,R!=0&&(y+=s.DEFAULT_COMPONENT_SEPERATION),E=0);var W=n[R],x=F.findCenterOfTree(W);m.x=I,m.y=y,w=D.radialLayout(W,x,m),w.y>E&&(E=Math.floor(w.y)),I=Math.floor(w.x+s.DEFAULT_COMPONENT_SEPERATION)}this.transform(new d(T.WORLD_CENTER_X-w.x/2,T.WORLD_CENTER_Y-w.y/2))},D.radialLayout=function(n,m,p){var E=Math.max(this.maxDiagonalInTree(n),s.DEFAULT_RADIAL_SEPARATION);D.branchRadialLayout(m,null,0,359,0,E);var y=B.calculateBounds(n),I=new U;I.setDeviceOrgX(y.getMinX()),I.setDeviceOrgY(y.getMinY()),I.setWorldOrgX(p.x),I.setWorldOrgY(p.y);for(var w=0;w<n.length;w++){var R=n[w];R.transform(I)}var W=new d(y.getMaxX(),y.getMaxY());return I.inverseTransformPoint(W)},D.branchRadialLayout=function(n,m,p,E,y,I){var w=(E-p+1)/2;w<0&&(w+=180);var R=(w+p)%360,W=R*G.TWO_PI/360,x=y*Math.cos(W),q=y*Math.sin(W);n.setCenter(x,q);var V=[];V=V.concat(n.getEdges());var Y=V.length;m!=null&&Y--;for(var et=0,z=V.length,O,H=n.getEdgesBetween(m);H.length>1;){var $=H[0];H.splice(0,1);var _=V.indexOf($);_>=0&&V.splice(_,1),z--,Y--}m!=null?O=(V.indexOf(H[0])+1)%z:O=0;for(var ht=Math.abs(E-p)/Y,J=O;et!=Y;J=++J%z){var Rt=V[J].getOtherEnd(n);if(Rt!=m){var Lt=(p+et*ht)%360,vt=(Lt+ht)%360;D.branchRadialLayout(Rt,n,Lt,vt,y+I,I),et++}}},D.maxDiagonalInTree=function(n){for(var m=A.MIN_VALUE,p=0;p<n.length;p++){var E=n[p],y=E.getDiagonal();y>m&&(m=y)}return m},D.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},D.prototype.groupZeroDegreeMembers=function(){var n=this,m={};this.memberGroups={},this.idToDummyNode={};for(var p=[],E=this.graphManager.getAllNodes(),y=0;y<E.length;y++){var I=E[y],w=I.getParent();this.getNodeDegreeWithChildren(I)===0&&(w.id==null||!this.getToBeTiled(w))&&p.push(I)}for(var y=0;y<p.length;y++){var I=p[y],R=I.getParent().id;typeof m[R]>"u"&&(m[R]=[]),m[R]=m[R].concat(I)}Object.keys(m).forEach(function(W){if(m[W].length>1){var x="DummyCompound_"+W;n.memberGroups[x]=m[W];var q=m[W][0].getParent(),V=new t(n.graphManager);V.id=x,V.paddingLeft=q.paddingLeft||0,V.paddingRight=q.paddingRight||0,V.paddingBottom=q.paddingBottom||0,V.paddingTop=q.paddingTop||0,n.idToDummyNode[x]=V;var Y=n.getGraphManager().add(n.newGraph(),V),et=q.getChild();et.add(V);for(var z=0;z<m[W].length;z++){var O=m[W][z];et.remove(O),Y.add(O)}}})},D.prototype.clearCompounds=function(){var n={},m={};this.performDFSOnCompounds();for(var p=0;p<this.compoundOrder.length;p++)m[this.compoundOrder[p].id]=this.compoundOrder[p],n[this.compoundOrder[p].id]=[].concat(this.compoundOrder[p].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[p].getChild()),this.compoundOrder[p].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(n,m)},D.prototype.clearZeroDegreeMembers=function(){var n=this,m=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(p){var E=n.idToDummyNode[p];if(m[p]=n.tileNodes(n.memberGroups[p],E.paddingLeft+E.paddingRight),E.rect.width=m[p].width,E.rect.height=m[p].height,E.setCenter(m[p].centerX,m[p].centerY),E.labelMarginLeft=0,E.labelMarginTop=0,s.NODE_DIMENSIONS_INCLUDE_LABELS){var y=E.rect.width,I=E.rect.height;E.labelWidth&&(E.labelPosHorizontal=="left"?(E.rect.x-=E.labelWidth,E.setWidth(y+E.labelWidth),E.labelMarginLeft=E.labelWidth):E.labelPosHorizontal=="center"&&E.labelWidth>y?(E.rect.x-=(E.labelWidth-y)/2,E.setWidth(E.labelWidth),E.labelMarginLeft=(E.labelWidth-y)/2):E.labelPosHorizontal=="right"&&E.setWidth(y+E.labelWidth)),E.labelHeight&&(E.labelPosVertical=="top"?(E.rect.y-=E.labelHeight,E.setHeight(I+E.labelHeight),E.labelMarginTop=E.labelHeight):E.labelPosVertical=="center"&&E.labelHeight>I?(E.rect.y-=(E.labelHeight-I)/2,E.setHeight(E.labelHeight),E.labelMarginTop=(E.labelHeight-I)/2):E.labelPosVertical=="bottom"&&E.setHeight(I+E.labelHeight))}})},D.prototype.repopulateCompounds=function(){for(var n=this.compoundOrder.length-1;n>=0;n--){var m=this.compoundOrder[n],p=m.id,E=m.paddingLeft,y=m.paddingTop,I=m.labelMarginLeft,w=m.labelMarginTop;this.adjustLocations(this.tiledMemberPack[p],m.rect.x,m.rect.y,E,y,I,w)}},D.prototype.repopulateZeroDegreeMembers=function(){var n=this,m=this.tiledZeroDegreePack;Object.keys(m).forEach(function(p){var E=n.idToDummyNode[p],y=E.paddingLeft,I=E.paddingTop,w=E.labelMarginLeft,R=E.labelMarginTop;n.adjustLocations(m[p],E.rect.x,E.rect.y,y,I,w,R)})},D.prototype.getToBeTiled=function(n){var m=n.id;if(this.toBeTiled[m]!=null)return this.toBeTiled[m];var p=n.getChild();if(p==null)return this.toBeTiled[m]=!1,!1;for(var E=p.getNodes(),y=0;y<E.length;y++){var I=E[y];if(this.getNodeDegree(I)>0)return this.toBeTiled[m]=!1,!1;if(I.getChild()==null){this.toBeTiled[I.id]=!1;continue}if(!this.getToBeTiled(I))return this.toBeTiled[m]=!1,!1}return this.toBeTiled[m]=!0,!0},D.prototype.getNodeDegree=function(n){n.id;for(var m=n.getEdges(),p=0,E=0;E<m.length;E++){var y=m[E];y.getSource().id!==y.getTarget().id&&(p=p+1)}return p},D.prototype.getNodeDegreeWithChildren=function(n){var m=this.getNodeDegree(n);if(n.getChild()==null)return m;for(var p=n.getChild().getNodes(),E=0;E<p.length;E++){var y=p[E];m+=this.getNodeDegreeWithChildren(y)}return m},D.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},D.prototype.fillCompexOrderByDFS=function(n){for(var m=0;m<n.length;m++){var p=n[m];p.getChild()!=null&&this.fillCompexOrderByDFS(p.getChild().getNodes()),this.getToBeTiled(p)&&this.compoundOrder.push(p)}},D.prototype.adjustLocations=function(n,m,p,E,y,I,w){m+=E+I,p+=y+w;for(var R=m,W=0;W<n.rows.length;W++){var x=n.rows[W];m=R;for(var q=0,V=0;V<x.length;V++){var Y=x[V];Y.rect.x=m,Y.rect.y=p,m+=Y.rect.width+n.horizontalPadding,Y.rect.height>q&&(q=Y.rect.height)}p+=q+n.verticalPadding}},D.prototype.tileCompoundMembers=function(n,m){var p=this;this.tiledMemberPack=[],Object.keys(n).forEach(function(E){var y=m[E];if(p.tiledMemberPack[E]=p.tileNodes(n[E],y.paddingLeft+y.paddingRight),y.rect.width=p.tiledMemberPack[E].width,y.rect.height=p.tiledMemberPack[E].height,y.setCenter(p.tiledMemberPack[E].centerX,p.tiledMemberPack[E].centerY),y.labelMarginLeft=0,y.labelMarginTop=0,s.NODE_DIMENSIONS_INCLUDE_LABELS){var I=y.rect.width,w=y.rect.height;y.labelWidth&&(y.labelPosHorizontal=="left"?(y.rect.x-=y.labelWidth,y.setWidth(I+y.labelWidth),y.labelMarginLeft=y.labelWidth):y.labelPosHorizontal=="center"&&y.labelWidth>I?(y.rect.x-=(y.labelWidth-I)/2,y.setWidth(y.labelWidth),y.labelMarginLeft=(y.labelWidth-I)/2):y.labelPosHorizontal=="right"&&y.setWidth(I+y.labelWidth)),y.labelHeight&&(y.labelPosVertical=="top"?(y.rect.y-=y.labelHeight,y.setHeight(w+y.labelHeight),y.labelMarginTop=y.labelHeight):y.labelPosVertical=="center"&&y.labelHeight>w?(y.rect.y-=(y.labelHeight-w)/2,y.setHeight(y.labelHeight),y.labelMarginTop=(y.labelHeight-w)/2):y.labelPosVertical=="bottom"&&y.setHeight(w+y.labelHeight))}})},D.prototype.tileNodes=function(n,m){var p=this.tileNodesByFavoringDim(n,m,!0),E=this.tileNodesByFavoringDim(n,m,!1),y=this.getOrgRatio(p),I=this.getOrgRatio(E),w;return I<y?w=E:w=p,w},D.prototype.getOrgRatio=function(n){var m=n.width,p=n.height,E=m/p;return E<1&&(E=1/E),E},D.prototype.calcIdealRowWidth=function(n,m){var p=s.TILING_PADDING_VERTICAL,E=s.TILING_PADDING_HORIZONTAL,y=n.length,I=0,w=0,R=0;n.forEach(function(z){I+=z.getWidth(),w+=z.getHeight(),z.getWidth()>R&&(R=z.getWidth())});var W=I/y,x=w/y,q=Math.pow(p-E,2)+4*(W+E)*(x+p)*y,V=(E-p+Math.sqrt(q))/(2*(W+E)),Y;m?(Y=Math.ceil(V),Y==V&&Y++):Y=Math.floor(V);var et=Y*(W+E)-E;return R>et&&(et=R),et+=E*2,et},D.prototype.tileNodesByFavoringDim=function(n,m,p){var E=s.TILING_PADDING_VERTICAL,y=s.TILING_PADDING_HORIZONTAL,I=s.TILING_COMPARE_BY,w={rows:[],rowWidth:[],rowHeight:[],width:0,height:m,verticalPadding:E,horizontalPadding:y,centerX:0,centerY:0};I&&(w.idealRowWidth=this.calcIdealRowWidth(n,p));var R=function(O){return O.rect.width*O.rect.height},W=function(O,H){return R(H)-R(O)};n.sort(function(z,O){var H=W;return w.idealRowWidth?(H=I,H(z.id,O.id)):H(z,O)});for(var x=0,q=0,V=0;V<n.length;V++){var Y=n[V];x+=Y.getCenterX(),q+=Y.getCenterY()}w.centerX=x/n.length,w.centerY=q/n.length;for(var V=0;V<n.length;V++){var Y=n[V];if(w.rows.length==0)this.insertNodeToRow(w,Y,0,m);else if(this.canAddHorizontal(w,Y.rect.width,Y.rect.height)){var et=w.rows.length-1;w.idealRowWidth||(et=this.getShortestRowIndex(w)),this.insertNodeToRow(w,Y,et,m)}else this.insertNodeToRow(w,Y,w.rows.length,m);this.shiftToLastRow(w)}return w},D.prototype.insertNodeToRow=function(n,m,p,E){var y=E;if(p==n.rows.length){var I=[];n.rows.push(I),n.rowWidth.push(y),n.rowHeight.push(0)}var w=n.rowWidth[p]+m.rect.width;n.rows[p].length>0&&(w+=n.horizontalPadding),n.rowWidth[p]=w,n.width<w&&(n.width=w);var R=m.rect.height;p>0&&(R+=n.verticalPadding);var W=0;R>n.rowHeight[p]&&(W=n.rowHeight[p],n.rowHeight[p]=R,W=n.rowHeight[p]-W),n.height+=W,n.rows[p].push(m)},D.prototype.getShortestRowIndex=function(n){for(var m=-1,p=Number.MAX_VALUE,E=0;E<n.rows.length;E++)n.rowWidth[E]<p&&(m=E,p=n.rowWidth[E]);return m},D.prototype.getLongestRowIndex=function(n){for(var m=-1,p=Number.MIN_VALUE,E=0;E<n.rows.length;E++)n.rowWidth[E]>p&&(m=E,p=n.rowWidth[E]);return m},D.prototype.canAddHorizontal=function(n,m,p){if(n.idealRowWidth){var E=n.rows.length-1,y=n.rowWidth[E];return y+m+n.horizontalPadding<=n.idealRowWidth}var I=this.getShortestRowIndex(n);if(I<0)return!0;var w=n.rowWidth[I];if(w+n.horizontalPadding+m<=n.width)return!0;var R=0;n.rowHeight[I]<p&&I>0&&(R=p+n.verticalPadding-n.rowHeight[I]);var W;n.width-w>=m+n.horizontalPadding?W=(n.height+R)/(w+m+n.horizontalPadding):W=(n.height+R)/n.width,R=p+n.verticalPadding;var x;return n.width<m?x=(n.height+R)/m:x=(n.height+R)/n.width,x<1&&(x=1/x),W<1&&(W=1/W),W<x},D.prototype.shiftToLastRow=function(n){var m=this.getLongestRowIndex(n),p=n.rowWidth.length-1,E=n.rows[m],y=E[E.length-1],I=y.width+n.horizontalPadding;if(n.width-n.rowWidth[p]>I&&m!=p){E.splice(-1,1),n.rows[p].push(y),n.rowWidth[m]=n.rowWidth[m]-I,n.rowWidth[p]=n.rowWidth[p]+I,n.width=n.rowWidth[instance.getLongestRowIndex(n)];for(var w=Number.MIN_VALUE,R=0;R<E.length;R++)E[R].height>w&&(w=E[R].height);m>0&&(w+=n.verticalPadding);var W=n.rowHeight[m]+n.rowHeight[p];n.rowHeight[m]=w,n.rowHeight[p]<y.height+n.verticalPadding&&(n.rowHeight[p]=y.height+n.verticalPadding);var x=n.rowHeight[m]+n.rowHeight[p];n.height+=x-W,this.shiftToLastRow(n)}},D.prototype.tilingPreLayout=function(){s.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},D.prototype.tilingPostLayout=function(){s.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},D.prototype.reduceTrees=function(){for(var n=[],m=!0,p;m;){var E=this.graphManager.getAllNodes(),y=[];m=!1;for(var I=0;I<E.length;I++)if(p=E[I],p.getEdges().length==1&&!p.getEdges()[0].isInterGraph&&p.getChild()==null){if(s.PURE_INCREMENTAL){var w=p.getEdges()[0].getOtherEnd(p),R=new N(p.getCenterX()-w.getCenterX(),p.getCenterY()-w.getCenterY());y.push([p,p.getEdges()[0],p.getOwner(),R])}else y.push([p,p.getEdges()[0],p.getOwner()]);m=!0}if(m==!0){for(var W=[],x=0;x<y.length;x++)y[x][0].getEdges().length==1&&(W.push(y[x]),y[x][0].getOwner().remove(y[x][0]));n.push(W),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=n},D.prototype.growTree=function(n){for(var m=n.length,p=n[m-1],E,y=0;y<p.length;y++)E=p[y],this.findPlaceforPrunedNode(E),E[2].add(E[0]),E[2].add(E[1],E[1].source,E[1].target);n.splice(n.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},D.prototype.findPlaceforPrunedNode=function(n){var m,p,E=n[0];if(E==n[1].source?p=n[1].target:p=n[1].source,s.PURE_INCREMENTAL)E.setCenter(p.getCenterX()+n[3].getWidth(),p.getCenterY()+n[3].getHeight());else{var y=p.startX,I=p.finishX,w=p.startY,R=p.finishY,W=0,x=0,q=0,V=0,Y=[W,q,x,V];if(w>0)for(var et=y;et<=I;et++)Y[0]+=this.grid[et][w-1].length+this.grid[et][w].length-1;if(I<this.grid.length-1)for(var et=w;et<=R;et++)Y[1]+=this.grid[I+1][et].length+this.grid[I][et].length-1;if(R<this.grid[0].length-1)for(var et=y;et<=I;et++)Y[2]+=this.grid[et][R+1].length+this.grid[et][R].length-1;if(y>0)for(var et=w;et<=R;et++)Y[3]+=this.grid[y-1][et].length+this.grid[y][et].length-1;for(var z=A.MAX_VALUE,O,H,$=0;$<Y.length;$++)Y[$]<z?(z=Y[$],O=1,H=$):Y[$]==z&&O++;if(O==3&&z==0)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);else if(O==2&&z==0){var _=Math.floor(Math.random()*2);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}else if(O==4&&z==0){var _=Math.floor(Math.random()*4);m=_}else m=H;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())}},a.exports=D},991:(a,r,e)=>{var f=e(551).FDLayoutNode,i=e(551).IMath;function v(o,s,c,l){f.call(this,o,s,c,l)}v.prototype=Object.create(f.prototype);for(var t in f)v[t]=f[t];v.prototype.calculateDisplacement=function(){var o=this.graphManager.getLayout();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)},v.prototype.propogateDisplacementToChildren=function(o,s){for(var c=this.getChild().getNodes(),l,T=0;T<c.length;T++)l=c[T],l.getChild()==null?(l.displacementX+=o,l.displacementY+=s):l.propogateDisplacementToChildren(o,s)},v.prototype.move=function(){var o=this.graphManager.getLayout();(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},v.prototype.setPred1=function(o){this.pred1=o},v.prototype.getPred1=function(){return pred1},v.prototype.getPred2=function(){return pred2},v.prototype.setNext=function(o){this.next=o},v.prototype.getNext=function(){return next},v.prototype.setProcessed=function(o){this.processed=o},v.prototype.isProcessed=function(){return processed},a.exports=v},902:(a,r,e)=>{function f(c){if(Array.isArray(c)){for(var l=0,T=Array(c.length);l<c.length;l++)T[l]=c[l];return T}else return Array.from(c)}var i=e(806),v=e(551).LinkedList,t=e(551).Matrix,o=e(551).SVD;function s(){}s.handleConstraints=function(c){var l={};l.fixedNodeConstraint=c.constraints.fixedNodeConstraint,l.alignmentConstraint=c.constraints.alignmentConstraint,l.relativePlacementConstraint=c.constraints.relativePlacementConstraint;for(var T=new Map,u=new Map,d=[],N=[],F=c.getAllNodes(),A=0,G=0;G<F.length;G++){var B=F[G];B.getChild()==null&&(u.set(B.id,A++),d.push(B.getCenterX()),N.push(B.getCenterY()),T.set(B.id,B))}l.relativePlacementConstraint&&l.relativePlacementConstraint.forEach(function(S){!S.gap&&S.gap!=0&&(S.left?S.gap=i.DEFAULT_EDGE_LENGTH+T.get(S.left).getWidth()/2+T.get(S.right).getWidth()/2:S.gap=i.DEFAULT_EDGE_LENGTH+T.get(S.top).getHeight()/2+T.get(S.bottom).getHeight()/2)});var U=function(b,Z){return{x:b.x-Z.x,y:b.y-Z.y}},K=function(b){var Z=0,Q=0;return b.forEach(function(k){Z+=d[u.get(k)],Q+=N[u.get(k)]}),{x:Z/b.size,y:Q/b.size}},D=function(b,Z,Q,k,it){function gt(ft,st){var Ct=new Set(ft),ct=!0,lt=!1,Wt=void 0;try{for(var Nt=st[Symbol.iterator](),At;!(ct=(At=Nt.next()).done);ct=!0){var Zt=At.value;Ct.add(Zt)}}catch(Gt){lt=!0,Wt=Gt}finally{try{!ct&&Nt.return&&Nt.return()}finally{if(lt)throw Wt}}return Ct}var ot=new Map;b.forEach(function(ft,st){ot.set(st,0)}),b.forEach(function(ft,st){ft.forEach(function(Ct){ot.set(Ct.id,ot.get(Ct.id)+1)})});var tt=new Map,j=new Map,dt=new v;ot.forEach(function(ft,st){ft==0?(dt.push(st),Q||(Z=="horizontal"?tt.set(st,u.has(st)?d[u.get(st)]:k.get(st)):tt.set(st,u.has(st)?N[u.get(st)]:k.get(st)))):tt.set(st,Number.NEGATIVE_INFINITY),Q&&j.set(st,new Set([st]))}),Q&&it.forEach(function(ft){var st=[];if(ft.forEach(function(lt){Q.has(lt)&&st.push(lt)}),st.length>0){var Ct=0;st.forEach(function(lt){Z=="horizontal"?(tt.set(lt,u.has(lt)?d[u.get(lt)]:k.get(lt)),Ct+=tt.get(lt)):(tt.set(lt,u.has(lt)?N[u.get(lt)]:k.get(lt)),Ct+=tt.get(lt))}),Ct=Ct/st.length,ft.forEach(function(lt){Q.has(lt)||tt.set(lt,Ct)})}else{var ct=0;ft.forEach(function(lt){Z=="horizontal"?ct+=u.has(lt)?d[u.get(lt)]:k.get(lt):ct+=u.has(lt)?N[u.get(lt)]:k.get(lt)}),ct=ct/ft.length,ft.forEach(function(lt){tt.set(lt,ct)})}});for(var wt=function(){var st=dt.shift(),Ct=b.get(st);Ct.forEach(function(ct){if(tt.get(ct.id)<tt.get(st)+ct.gap)if(Q&&Q.has(ct.id)){var lt=void 0;if(Z=="horizontal"?lt=u.has(ct.id)?d[u.get(ct.id)]:k.get(ct.id):lt=u.has(ct.id)?N[u.get(ct.id)]:k.get(ct.id),tt.set(ct.id,lt),lt<tt.get(st)+ct.gap){var Wt=tt.get(st)+ct.gap-lt;j.get(st).forEach(function(Nt){tt.set(Nt,tt.get(Nt)-Wt)})}}else tt.set(ct.id,tt.get(st)+ct.gap);ot.set(ct.id,ot.get(ct.id)-1),ot.get(ct.id)==0&&dt.push(ct.id),Q&&j.set(ct.id,gt(j.get(st),j.get(ct.id)))})};dt.length!=0;)wt();if(Q){var yt=new Set;b.forEach(function(ft,st){ft.length==0&&yt.add(st)});var It=[];j.forEach(function(ft,st){if(yt.has(st)){var Ct=!1,ct=!0,lt=!1,Wt=void 0;try{for(var Nt=ft[Symbol.iterator](),At;!(ct=(At=Nt.next()).done);ct=!0){var Zt=At.value;Q.has(Zt)&&(Ct=!0)}}catch(Ft){lt=!0,Wt=Ft}finally{try{!ct&&Nt.return&&Nt.return()}finally{if(lt)throw Wt}}if(!Ct){var Gt=!1,$t=void 0;It.forEach(function(Ft,qt){Ft.has([].concat(f(ft))[0])&&(Gt=!0,$t=qt)}),Gt?ft.forEach(function(Ft){It[$t].add(Ft)}):It.push(new Set(ft))}}}),It.forEach(function(ft,st){var Ct=Number.POSITIVE_INFINITY,ct=Number.POSITIVE_INFINITY,lt=Number.NEGATIVE_INFINITY,Wt=Number.NEGATIVE_INFINITY,Nt=!0,At=!1,Zt=void 0;try{for(var Gt=ft[Symbol.iterator](),$t;!(Nt=($t=Gt.next()).done);Nt=!0){var Ft=$t.value,qt=void 0;Z=="horizontal"?qt=u.has(Ft)?d[u.get(Ft)]:k.get(Ft):qt=u.has(Ft)?N[u.get(Ft)]:k.get(Ft);var _t=tt.get(Ft);qt<Ct&&(Ct=qt),qt>lt&&(lt=qt),_t<ct&&(ct=_t),_t>Wt&&(Wt=_t)}}catch(ie){At=!0,Zt=ie}finally{try{!Nt&&Gt.return&&Gt.return()}finally{if(At)throw Zt}}var ue=(Ct+lt)/2-(ct+Wt)/2,Kt=!0,te=!1,ee=void 0;try{for(var jt=ft[Symbol.iterator](),se;!(Kt=(se=jt.next()).done);Kt=!0){var re=se.value;tt.set(re,tt.get(re)+ue)}}catch(ie){te=!0,ee=ie}finally{try{!Kt&&jt.return&&jt.return()}finally{if(te)throw ee}}})}return tt},at=function(b){var Z=0,Q=0,k=0,it=0;if(b.forEach(function(j){j.left?d[u.get(j.left)]-d[u.get(j.right)]>=0?Z++:Q++:N[u.get(j.top)]-N[u.get(j.bottom)]>=0?k++:it++}),Z>Q&&k>it)for(var gt=0;gt<u.size;gt++)d[gt]=-1*d[gt],N[gt]=-1*N[gt];else if(Z>Q)for(var ot=0;ot<u.size;ot++)d[ot]=-1*d[ot];else if(k>it)for(var tt=0;tt<u.size;tt++)N[tt]=-1*N[tt]},n=function(b){var Z=[],Q=new v,k=new Set,it=0;return b.forEach(function(gt,ot){if(!k.has(ot)){Z[it]=[];var tt=ot;for(Q.push(tt),k.add(tt),Z[it].push(tt);Q.length!=0;){tt=Q.shift();var j=b.get(tt);j.forEach(function(dt){k.has(dt.id)||(Q.push(dt.id),k.add(dt.id),Z[it].push(dt.id))})}it++}}),Z},m=function(b){var Z=new Map;return b.forEach(function(Q,k){Z.set(k,[])}),b.forEach(function(Q,k){Q.forEach(function(it){Z.get(k).push(it),Z.get(it.id).push({id:k,gap:it.gap,direction:it.direction})})}),Z},p=function(b){var Z=new Map;return b.forEach(function(Q,k){Z.set(k,[])}),b.forEach(function(Q,k){Q.forEach(function(it){Z.get(it.id).push({id:k,gap:it.gap,direction:it.direction})})}),Z},E=[],y=[],I=!1,w=!1,R=new Set,W=new Map,x=new Map,q=[];if(l.fixedNodeConstraint&&l.fixedNodeConstraint.forEach(function(S){R.add(S.nodeId)}),l.relativePlacementConstraint&&(l.relativePlacementConstraint.forEach(function(S){S.left?(W.has(S.left)?W.get(S.left).push({id:S.right,gap:S.gap,direction:"horizontal"}):W.set(S.left,[{id:S.right,gap:S.gap,direction:"horizontal"}]),W.has(S.right)||W.set(S.right,[])):(W.has(S.top)?W.get(S.top).push({id:S.bottom,gap:S.gap,direction:"vertical"}):W.set(S.top,[{id:S.bottom,gap:S.gap,direction:"vertical"}]),W.has(S.bottom)||W.set(S.bottom,[]))}),x=m(W),q=n(x)),i.TRANSFORM_ON_CONSTRAINT_HANDLING){if(l.fixedNodeConstraint&&l.fixedNodeConstraint.length>1)l.fixedNodeConstraint.forEach(function(S,b){E[b]=[S.position.x,S.position.y],y[b]=[d[u.get(S.nodeId)],N[u.get(S.nodeId)]]}),I=!0;else if(l.alignmentConstraint)(function(){var S=0;if(l.alignmentConstraint.vertical){for(var b=l.alignmentConstraint.vertical,Z=function(tt){var j=new Set;b[tt].forEach(function(yt){j.add(yt)});var dt=new Set([].concat(f(j)).filter(function(yt){return R.has(yt)})),wt=void 0;dt.size>0?wt=d[u.get(dt.values().next().value)]:wt=K(j).x,b[tt].forEach(function(yt){E[S]=[wt,N[u.get(yt)]],y[S]=[d[u.get(yt)],N[u.get(yt)]],S++})},Q=0;Q<b.length;Q++)Z(Q);I=!0}if(l.alignmentConstraint.horizontal){for(var k=l.alignmentConstraint.horizontal,it=function(tt){var j=new Set;k[tt].forEach(function(yt){j.add(yt)});var dt=new Set([].concat(f(j)).filter(function(yt){return R.has(yt)})),wt=void 0;dt.size>0?wt=d[u.get(dt.values().next().value)]:wt=K(j).y,k[tt].forEach(function(yt){E[S]=[d[u.get(yt)],wt],y[S]=[d[u.get(yt)],N[u.get(yt)]],S++})},gt=0;gt<k.length;gt++)it(gt);I=!0}l.relativePlacementConstraint&&(w=!0)})();else if(l.relativePlacementConstraint){for(var V=0,Y=0,et=0;et<q.length;et++)q[et].length>V&&(V=q[et].length,Y=et);if(V<x.size/2)at(l.relativePlacementConstraint),I=!1,w=!1;else{var z=new Map,O=new Map,H=[];q[Y].forEach(function(S){W.get(S).forEach(function(b){b.direction=="horizontal"?(z.has(S)?z.get(S).push(b):z.set(S,[b]),z.has(b.id)||z.set(b.id,[]),H.push({left:S,right:b.id})):(O.has(S)?O.get(S).push(b):O.set(S,[b]),O.has(b.id)||O.set(b.id,[]),H.push({top:S,bottom:b.id}))})}),at(H),w=!1;var $=D(z,"horizontal"),_=D(O,"vertical");q[Y].forEach(function(S,b){y[b]=[d[u.get(S)],N[u.get(S)]],E[b]=[],$.has(S)?E[b][0]=$.get(S):E[b][0]=d[u.get(S)],_.has(S)?E[b][1]=_.get(S):E[b][1]=N[u.get(S)]}),I=!0}}if(I){for(var ht=void 0,J=t.transpose(E),Rt=t.transpose(y),Lt=0;Lt<J.length;Lt++)J[Lt]=t.multGamma(J[Lt]),Rt[Lt]=t.multGamma(Rt[Lt]);var vt=t.multMat(J,t.transpose(Rt)),rt=o.svd(vt);ht=t.multMat(rt.V,t.transpose(rt.U));for(var ut=0;ut<u.size;ut++){var Tt=[d[ut],N[ut]],Mt=[ht[0][0],ht[1][0]],Dt=[ht[0][1],ht[1][1]];d[ut]=t.dotProduct(Tt,Mt),N[ut]=t.dotProduct(Tt,Dt)}w&&at(l.relativePlacementConstraint)}}if(i.ENFORCE_CONSTRAINTS){if(l.fixedNodeConstraint&&l.fixedNodeConstraint.length>0){var mt={x:0,y:0};l.fixedNodeConstraint.forEach(function(S,b){var Z={x:d[u.get(S.nodeId)],y:N[u.get(S.nodeId)]},Q=S.position,k=U(Q,Z);mt.x+=k.x,mt.y+=k.y}),mt.x/=l.fixedNodeConstraint.length,mt.y/=l.fixedNodeConstraint.length,d.forEach(function(S,b){d[b]+=mt.x}),N.forEach(function(S,b){N[b]+=mt.y}),l.fixedNodeConstraint.forEach(function(S){d[u.get(S.nodeId)]=S.position.x,N[u.get(S.nodeId)]=S.position.y})}if(l.alignmentConstraint){if(l.alignmentConstraint.vertical)for(var xt=l.alignmentConstraint.vertical,St=function(b){var Z=new Set;xt[b].forEach(function(it){Z.add(it)});var Q=new Set([].concat(f(Z)).filter(function(it){return R.has(it)})),k=void 0;Q.size>0?k=d[u.get(Q.values().next().value)]:k=K(Z).x,Z.forEach(function(it){R.has(it)||(d[u.get(it)]=k)})},Vt=0;Vt<xt.length;Vt++)St(Vt);if(l.alignmentConstraint.horizontal)for(var Xt=l.alignmentConstraint.horizontal,Ut=function(b){var Z=new Set;Xt[b].forEach(function(it){Z.add(it)});var Q=new Set([].concat(f(Z)).filter(function(it){return R.has(it)})),k=void 0;Q.size>0?k=N[u.get(Q.values().next().value)]:k=K(Z).y,Z.forEach(function(it){R.has(it)||(N[u.get(it)]=k)})},bt=0;bt<Xt.length;bt++)Ut(bt)}l.relativePlacementConstraint&&function(){var S=new Map,b=new Map,Z=new Map,Q=new Map,k=new Map,it=new Map,gt=new Set,ot=new Set;if(R.forEach(function(Yt){gt.add(Yt),ot.add(Yt)}),l.alignmentConstraint){if(l.alignmentConstraint.vertical)for(var tt=l.alignmentConstraint.vertical,j=function(Et){Z.set("dummy"+Et,[]),tt[Et].forEach(function(Ot){S.set(Ot,"dummy"+Et),Z.get("dummy"+Et).push(Ot),R.has(Ot)&&gt.add("dummy"+Et)}),k.set("dummy"+Et,d[u.get(tt[Et][0])])},dt=0;dt<tt.length;dt++)j(dt);if(l.alignmentConstraint.horizontal)for(var wt=l.alignmentConstraint.horizontal,yt=function(Et){Q.set("dummy"+Et,[]),wt[Et].forEach(function(Ot){b.set(Ot,"dummy"+Et),Q.get("dummy"+Et).push(Ot),R.has(Ot)&&ot.add("dummy"+Et)}),it.set("dummy"+Et,N[u.get(wt[Et][0])])},It=0;It<wt.length;It++)yt(It)}var ft=new Map,st=new Map,Ct=function(Et){W.get(Et).forEach(function(Ot){var Jt=void 0,kt=void 0;Ot.direction=="horizontal"?(Jt=S.get(Et)?S.get(Et):Et,S.get(Ot.id)?kt={id:S.get(Ot.id),gap:Ot.gap,direction:Ot.direction}:kt=Ot,ft.has(Jt)?ft.get(Jt).push(kt):ft.set(Jt,[kt]),ft.has(kt.id)||ft.set(kt.id,[])):(Jt=b.get(Et)?b.get(Et):Et,b.get(Ot.id)?kt={id:b.get(Ot.id),gap:Ot.gap,direction:Ot.direction}:kt=Ot,st.has(Jt)?st.get(Jt).push(kt):st.set(Jt,[kt]),st.has(kt.id)||st.set(kt.id,[]))})},ct=!0,lt=!1,Wt=void 0;try{for(var Nt=W.keys()[Symbol.iterator](),At;!(ct=(At=Nt.next()).done);ct=!0){var Zt=At.value;Ct(Zt)}}catch(Yt){lt=!0,Wt=Yt}finally{try{!ct&&Nt.return&&Nt.return()}finally{if(lt)throw Wt}}var Gt=m(ft),$t=m(st),Ft=n(Gt),qt=n($t),_t=p(ft),ue=p(st),Kt=[],te=[];Ft.forEach(function(Yt,Et){Kt[Et]=[],Yt.forEach(function(Ot){_t.get(Ot).length==0&&Kt[Et].push(Ot)})}),qt.forEach(function(Yt,Et){te[Et]=[],Yt.forEach(function(Ot){ue.get(Ot).length==0&&te[Et].push(Ot)})});var ee=D(ft,"horizontal",gt,k,Kt),jt=D(st,"vertical",ot,it,te),se=function(Et){Z.get(Et)?Z.get(Et).forEach(function(Ot){d[u.get(Ot)]=ee.get(Et)}):d[u.get(Et)]=ee.get(Et)},re=!0,ie=!1,Ae=void 0;try{for(var de=ee.keys()[Symbol.iterator](),Me;!(re=(Me=de.next()).done);re=!0){var ve=Me.value;se(ve)}}catch(Yt){ie=!0,Ae=Yt}finally{try{!re&&de.return&&de.return()}finally{if(ie)throw Ae}}var qe=function(Et){Q.get(Et)?Q.get(Et).forEach(function(Ot){N[u.get(Ot)]=jt.get(Et)}):N[u.get(Et)]=jt.get(Et)},pe=!0,we=!1,Oe=void 0;try{for(var ye=jt.keys()[Symbol.iterator](),De;!(pe=(De=ye.next()).done);pe=!0){var ve=De.value;qe(ve)}}catch(Yt){we=!0,Oe=Yt}finally{try{!pe&&ye.return&&ye.return()}finally{if(we)throw Oe}}}()}for(var Ht=0;Ht<F.length;Ht++){var Bt=F[Ht];Bt.getChild()==null&&Bt.setCenter(d[u.get(Bt.id)],N[u.get(Bt.id)])}},a.exports=s},551:a=>{a.exports=M}},L={};function g(a){var r=L[a];if(r!==void 0)return r.exports;var e=L[a]={exports:{}};return P[a](e,e.exports,g),e.exports}var h=g(45);return h})()})}(fe)),fe.exports}var Er=he.exports,Re;function mr(){return Re||(Re=1,function(C,X){(function(P,L){C.exports=L(yr())})(Er,function(M){return(()=>{var P={658:a=>{a.exports=Object.assign!=null?Object.assign.bind(Object):function(r){for(var e=arguments.length,f=Array(e>1?e-1:0),i=1;i<e;i++)f[i-1]=arguments[i];return f.forEach(function(v){Object.keys(v).forEach(function(t){return r[t]=v[t]})}),r}},548:(a,r,e)=>{var f=function(){function t(o,s){var c=[],l=!0,T=!1,u=void 0;try{for(var d=o[Symbol.iterator](),N;!(l=(N=d.next()).done)&&(c.push(N.value),!(s&&c.length===s));l=!0);}catch(F){T=!0,u=F}finally{try{!l&&d.return&&d.return()}finally{if(T)throw u}}return c}return function(o,s){if(Array.isArray(o))return o;if(Symbol.iterator in Object(o))return t(o,s);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=e(140).layoutBase.LinkedList,v={};v.getTopMostNodes=function(t){for(var o={},s=0;s<t.length;s++)o[t[s].id()]=!0;var c=t.filter(function(l,T){typeof l=="number"&&(l=T);for(var u=l.parent()[0];u!=null;){if(o[u.id()])return!1;u=u.parent()[0]}return!0});return c},v.connectComponents=function(t,o,s,c){var l=new i,T=new Set,u=[],d=void 0,N=void 0,F=void 0,A=!1,G=1,B=[],U=[],K=function(){var at=t.collection();U.push(at);var n=s[0],m=t.collection();m.merge(n).merge(n.descendants().intersection(o)),u.push(n),m.forEach(function(y){l.push(y),T.add(y),at.merge(y)});for(var p=function(){n=l.shift();var I=t.collection();n.neighborhood().nodes().forEach(function(x){o.intersection(n.edgesWith(x)).length>0&&I.merge(x)});for(var w=0;w<I.length;w++){var R=I[w];if(d=s.intersection(R.union(R.ancestors())),d!=null&&!T.has(d[0])){var W=d.union(d.descendants());W.forEach(function(x){l.push(x),T.add(x),at.merge(x),s.has(x)&&u.push(x)})}}};l.length!=0;)p();if(at.forEach(function(y){o.intersection(y.connectedEdges()).forEach(function(I){at.has(I.source())&&at.has(I.target())&&at.merge(I)})}),u.length==s.length&&(A=!0),!A||A&&G>1){N=u[0],F=N.connectedEdges().length,u.forEach(function(y){y.connectedEdges().length<F&&(F=y.connectedEdges().length,N=y)}),B.push(N.id());var E=t.collection();E.merge(u[0]),u.forEach(function(y){E.merge(y)}),u=[],s=s.difference(E),G++}};do K();while(!A);return c&&B.length>0&&c.set("dummy"+(c.size+1),B),U},v.relocateComponent=function(t,o,s){if(!s.fixedNodeConstraint){var c=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,T=Number.POSITIVE_INFINITY,u=Number.NEGATIVE_INFINITY;if(s.quality=="draft"){var d=!0,N=!1,F=void 0;try{for(var A=o.nodeIndexes[Symbol.iterator](),G;!(d=(G=A.next()).done);d=!0){var B=G.value,U=f(B,2),K=U[0],D=U[1],at=s.cy.getElementById(K);if(at){var n=at.boundingBox(),m=o.xCoords[D]-n.w/2,p=o.xCoords[D]+n.w/2,E=o.yCoords[D]-n.h/2,y=o.yCoords[D]+n.h/2;m<c&&(c=m),p>l&&(l=p),E<T&&(T=E),y>u&&(u=y)}}}catch(x){N=!0,F=x}finally{try{!d&&A.return&&A.return()}finally{if(N)throw F}}var I=t.x-(l+c)/2,w=t.y-(u+T)/2;o.xCoords=o.xCoords.map(function(x){return x+I}),o.yCoords=o.yCoords.map(function(x){return x+w})}else{Object.keys(o).forEach(function(x){var q=o[x],V=q.getRect().x,Y=q.getRect().x+q.getRect().width,et=q.getRect().y,z=q.getRect().y+q.getRect().height;V<c&&(c=V),Y>l&&(l=Y),et<T&&(T=et),z>u&&(u=z)});var R=t.x-(l+c)/2,W=t.y-(u+T)/2;Object.keys(o).forEach(function(x){var q=o[x];q.setCenter(q.getCenterX()+R,q.getCenterY()+W)})}}},v.calcBoundingBox=function(t,o,s,c){for(var l=Number.MAX_SAFE_INTEGER,T=Number.MIN_SAFE_INTEGER,u=Number.MAX_SAFE_INTEGER,d=Number.MIN_SAFE_INTEGER,N=void 0,F=void 0,A=void 0,G=void 0,B=t.descendants().not(":parent"),U=B.length,K=0;K<U;K++){var D=B[K];N=o[c.get(D.id())]-D.width()/2,F=o[c.get(D.id())]+D.width()/2,A=s[c.get(D.id())]-D.height()/2,G=s[c.get(D.id())]+D.height()/2,l>N&&(l=N),T<F&&(T=F),u>A&&(u=A),d<G&&(d=G)}var at={};return at.topLeftX=l,at.topLeftY=u,at.width=T-l,at.height=d-u,at},v.calcParentsWithoutChildren=function(t,o){var s=t.collection();return o.nodes(":parent").forEach(function(c){var l=!1;c.children().forEach(function(T){T.css("display")!="none"&&(l=!0)}),l||s.merge(c)}),s},a.exports=v},816:(a,r,e)=>{var f=e(548),i=e(140).CoSELayout,v=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(d,N){var F=d.cy,A=d.eles,G=A.nodes(),B=A.edges(),U=void 0,K=void 0,D=void 0,at={};d.randomize&&(U=N.nodeIndexes,K=N.xCoords,D=N.yCoords);var n=function(x){return typeof x=="function"},m=function(x,q){return n(x)?x(q):x},p=f.calcParentsWithoutChildren(F,A),E=function W(x,q,V,Y){for(var et=q.length,z=0;z<et;z++){var O=q[z],H=null;O.intersection(p).length==0&&(H=O.children());var $=void 0,_=O.layoutDimensions({nodeDimensionsIncludeLabels:Y.nodeDimensionsIncludeLabels});if(O.outerWidth()!=null&&O.outerHeight()!=null)if(Y.randomize)if(!O.isParent())$=x.add(new v(V.graphManager,new t(K[U.get(O.id())]-_.w/2,D[U.get(O.id())]-_.h/2),new o(parseFloat(_.w),parseFloat(_.h))));else{var ht=f.calcBoundingBox(O,K,D,U);O.intersection(p).length==0?$=x.add(new v(V.graphManager,new t(ht.topLeftX,ht.topLeftY),new o(ht.width,ht.height))):$=x.add(new v(V.graphManager,new t(ht.topLeftX,ht.topLeftY),new o(parseFloat(_.w),parseFloat(_.h))))}else $=x.add(new v(V.graphManager,new t(O.position("x")-_.w/2,O.position("y")-_.h/2),new o(parseFloat(_.w),parseFloat(_.h))));else $=x.add(new v(this.graphManager));if($.id=O.data("id"),$.nodeRepulsion=m(Y.nodeRepulsion,O),$.paddingLeft=parseInt(O.css("padding")),$.paddingTop=parseInt(O.css("padding")),$.paddingRight=parseInt(O.css("padding")),$.paddingBottom=parseInt(O.css("padding")),Y.nodeDimensionsIncludeLabels&&($.labelWidth=O.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).w,$.labelHeight=O.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).h,$.labelPosVertical=O.css("text-valign"),$.labelPosHorizontal=O.css("text-halign")),at[O.data("id")]=$,isNaN($.rect.x)&&($.rect.x=0),isNaN($.rect.y)&&($.rect.y=0),H!=null&&H.length>0){var J=void 0;J=V.getGraphManager().add(V.newGraph(),$),W(J,H,V,Y)}}},y=function(x,q,V){for(var Y=0,et=0,z=0;z<V.length;z++){var O=V[z],H=at[O.data("source")],$=at[O.data("target")];if(H&&$&&H!==$&&H.getEdgesBetween($).length==0){var _=q.add(x.newEdge(),H,$);_.id=O.id(),_.idealLength=m(d.idealEdgeLength,O),_.edgeElasticity=m(d.edgeElasticity,O),Y+=_.idealLength,et++}}d.idealEdgeLength!=null&&(et>0?l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=Y/et:n(d.idealEdgeLength)?l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=50:l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=d.idealEdgeLength,l.MIN_REPULSION_DIST=c.MIN_REPULSION_DIST=c.DEFAULT_EDGE_LENGTH/10,l.DEFAULT_RADIAL_SEPARATION=c.DEFAULT_EDGE_LENGTH)},I=function(x,q){q.fixedNodeConstraint&&(x.constraints.fixedNodeConstraint=q.fixedNodeConstraint),q.alignmentConstraint&&(x.constraints.alignmentConstraint=q.alignmentConstraint),q.relativePlacementConstraint&&(x.constraints.relativePlacementConstraint=q.relativePlacementConstraint)};d.nestingFactor!=null&&(l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=c.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=d.nestingFactor),d.gravity!=null&&(l.DEFAULT_GRAVITY_STRENGTH=c.DEFAULT_GRAVITY_STRENGTH=d.gravity),d.numIter!=null&&(l.MAX_ITERATIONS=c.MAX_ITERATIONS=d.numIter),d.gravityRange!=null&&(l.DEFAULT_GRAVITY_RANGE_FACTOR=c.DEFAULT_GRAVITY_RANGE_FACTOR=d.gravityRange),d.gravityCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=c.DEFAULT_COMPOUND_GRAVITY_STRENGTH=d.gravityCompound),d.gravityRangeCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=d.gravityRangeCompound),d.initialEnergyOnIncremental!=null&&(l.DEFAULT_COOLING_FACTOR_INCREMENTAL=c.DEFAULT_COOLING_FACTOR_INCREMENTAL=d.initialEnergyOnIncremental),d.tilingCompareBy!=null&&(l.TILING_COMPARE_BY=d.tilingCompareBy),d.quality=="proof"?s.QUALITY=2:s.QUALITY=0,l.NODE_DIMENSIONS_INCLUDE_LABELS=c.NODE_DIMENSIONS_INCLUDE_LABELS=s.NODE_DIMENSIONS_INCLUDE_LABELS=d.nodeDimensionsIncludeLabels,l.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=s.DEFAULT_INCREMENTAL=!d.randomize,l.ANIMATE=c.ANIMATE=s.ANIMATE=d.animate,l.TILE=d.tile,l.TILING_PADDING_VERTICAL=typeof d.tilingPaddingVertical=="function"?d.tilingPaddingVertical.call():d.tilingPaddingVertical,l.TILING_PADDING_HORIZONTAL=typeof d.tilingPaddingHorizontal=="function"?d.tilingPaddingHorizontal.call():d.tilingPaddingHorizontal,l.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=s.DEFAULT_INCREMENTAL=!0,l.PURE_INCREMENTAL=!d.randomize,s.DEFAULT_UNIFORM_LEAF_NODE_SIZES=d.uniformNodeDimensions,d.step=="transformed"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!1),d.step=="enforced"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!1),d.step=="cose"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!0),d.step=="all"&&(d.randomize?l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!0),d.fixedNodeConstraint||d.alignmentConstraint||d.relativePlacementConstraint?l.TREE_REDUCTION_ON_INCREMENTAL=!1:l.TREE_REDUCTION_ON_INCREMENTAL=!0;var w=new i,R=w.newGraphManager();return E(R.addRoot(),f.getTopMostNodes(G),w,d),y(w,R,B),I(w,d),w.runLayout(),at};a.exports={coseLayout:T}},212:(a,r,e)=>{var f=function(){function d(N,F){for(var A=0;A<F.length;A++){var G=F[A];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(N,G.key,G)}}return function(N,F,A){return F&&d(N.prototype,F),A&&d(N,A),N}}();function i(d,N){if(!(d instanceof N))throw new TypeError("Cannot call a class as a function")}var v=e(658),t=e(548),o=e(657),s=o.spectralLayout,c=e(816),l=c.coseLayout,T=Object.freeze({quality:"default",randomize:!0,animate:!0,animationDuration:1e3,animationEasing:void 0,fit:!0,padding:30,nodeDimensionsIncludeLabels:!1,uniformNodeDimensions:!1,packComponents:!0,step:"all",samplingType:!0,sampleSize:25,nodeSeparation:75,piTol:1e-7,nodeRepulsion:function(N){return 4500},idealEdgeLength:function(N){return 50},edgeElasticity:function(N){return .45},nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,tilingCompareBy:void 0,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.3,fixedNodeConstraint:void 0,alignmentConstraint:void 0,relativePlacementConstraint:void 0,ready:function(){},stop:function(){}}),u=function(){function d(N){i(this,d),this.options=v({},T,N)}return f(d,[{key:"run",value:function(){var F=this,A=this.options,G=A.cy,B=A.eles,U=[],K=[],D=void 0,at=[];A.fixedNodeConstraint&&(!Array.isArray(A.fixedNodeConstraint)||A.fixedNodeConstraint.length==0)&&(A.fixedNodeConstraint=void 0),A.alignmentConstraint&&(A.alignmentConstraint.vertical&&(!Array.isArray(A.alignmentConstraint.vertical)||A.alignmentConstraint.vertical.length==0)&&(A.alignmentConstraint.vertical=void 0),A.alignmentConstraint.horizontal&&(!Array.isArray(A.alignmentConstraint.horizontal)||A.alignmentConstraint.horizontal.length==0)&&(A.alignmentConstraint.horizontal=void 0)),A.relativePlacementConstraint&&(!Array.isArray(A.relativePlacementConstraint)||A.relativePlacementConstraint.length==0)&&(A.relativePlacementConstraint=void 0);var n=A.fixedNodeConstraint||A.alignmentConstraint||A.relativePlacementConstraint;n&&(A.tile=!1,A.packComponents=!1);var m=void 0,p=!1;if(G.layoutUtilities&&A.packComponents&&(m=G.layoutUtilities("get"),m||(m=G.layoutUtilities()),p=!0),B.nodes().length>0)if(p){var I=t.getTopMostNodes(A.eles.nodes());if(D=t.connectComponents(G,A.eles,I),D.forEach(function(vt){var rt=vt.boundingBox();at.push({x:rt.x1+rt.w/2,y:rt.y1+rt.h/2})}),A.randomize&&D.forEach(function(vt){A.eles=vt,U.push(s(A))}),A.quality=="default"||A.quality=="proof"){var w=G.collection();if(A.tile){var R=new Map,W=[],x=[],q=0,V={nodeIndexes:R,xCoords:W,yCoords:x},Y=[];if(D.forEach(function(vt,rt){vt.edges().length==0&&(vt.nodes().forEach(function(ut,Tt){w.merge(vt.nodes()[Tt]),ut.isParent()||(V.nodeIndexes.set(vt.nodes()[Tt].id(),q++),V.xCoords.push(vt.nodes()[0].position().x),V.yCoords.push(vt.nodes()[0].position().y))}),Y.push(rt))}),w.length>1){var et=w.boundingBox();at.push({x:et.x1+et.w/2,y:et.y1+et.h/2}),D.push(w),U.push(V);for(var z=Y.length-1;z>=0;z--)D.splice(Y[z],1),U.splice(Y[z],1),at.splice(Y[z],1)}}D.forEach(function(vt,rt){A.eles=vt,K.push(l(A,U[rt])),t.relocateComponent(at[rt],K[rt],A)})}else D.forEach(function(vt,rt){t.relocateComponent(at[rt],U[rt],A)});var O=new Set;if(D.length>1){var H=[],$=B.filter(function(vt){return vt.css("display")=="none"});D.forEach(function(vt,rt){var ut=void 0;if(A.quality=="draft"&&(ut=U[rt].nodeIndexes),vt.nodes().not($).length>0){var Tt={};Tt.edges=[],Tt.nodes=[];var Mt=void 0;vt.nodes().not($).forEach(function(Dt){if(A.quality=="draft")if(!Dt.isParent())Mt=ut.get(Dt.id()),Tt.nodes.push({x:U[rt].xCoords[Mt]-Dt.boundingbox().w/2,y:U[rt].yCoords[Mt]-Dt.boundingbox().h/2,width:Dt.boundingbox().w,height:Dt.boundingbox().h});else{var mt=t.calcBoundingBox(Dt,U[rt].xCoords,U[rt].yCoords,ut);Tt.nodes.push({x:mt.topLeftX,y:mt.topLeftY,width:mt.width,height:mt.height})}else K[rt][Dt.id()]&&Tt.nodes.push({x:K[rt][Dt.id()].getLeft(),y:K[rt][Dt.id()].getTop(),width:K[rt][Dt.id()].getWidth(),height:K[rt][Dt.id()].getHeight()})}),vt.edges().forEach(function(Dt){var mt=Dt.source(),xt=Dt.target();if(mt.css("display")!="none"&&xt.css("display")!="none")if(A.quality=="draft"){var St=ut.get(mt.id()),Vt=ut.get(xt.id()),Xt=[],Ut=[];if(mt.isParent()){var bt=t.calcBoundingBox(mt,U[rt].xCoords,U[rt].yCoords,ut);Xt.push(bt.topLeftX+bt.width/2),Xt.push(bt.topLeftY+bt.height/2)}else Xt.push(U[rt].xCoords[St]),Xt.push(U[rt].yCoords[St]);if(xt.isParent()){var Ht=t.calcBoundingBox(xt,U[rt].xCoords,U[rt].yCoords,ut);Ut.push(Ht.topLeftX+Ht.width/2),Ut.push(Ht.topLeftY+Ht.height/2)}else Ut.push(U[rt].xCoords[Vt]),Ut.push(U[rt].yCoords[Vt]);Tt.edges.push({startX:Xt[0],startY:Xt[1],endX:Ut[0],endY:Ut[1]})}else K[rt][mt.id()]&&K[rt][xt.id()]&&Tt.edges.push({startX:K[rt][mt.id()].getCenterX(),startY:K[rt][mt.id()].getCenterY(),endX:K[rt][xt.id()].getCenterX(),endY:K[rt][xt.id()].getCenterY()})}),Tt.nodes.length>0&&(H.push(Tt),O.add(rt))}});var _=m.packComponents(H,A.randomize).shifts;if(A.quality=="draft")U.forEach(function(vt,rt){var ut=vt.xCoords.map(function(Mt){return Mt+_[rt].dx}),Tt=vt.yCoords.map(function(Mt){return Mt+_[rt].dy});vt.xCoords=ut,vt.yCoords=Tt});else{var ht=0;O.forEach(function(vt){Object.keys(K[vt]).forEach(function(rt){var ut=K[vt][rt];ut.setCenter(ut.getCenterX()+_[ht].dx,ut.getCenterY()+_[ht].dy)}),ht++})}}}else{var E=A.eles.boundingBox();if(at.push({x:E.x1+E.w/2,y:E.y1+E.h/2}),A.randomize){var y=s(A);U.push(y)}A.quality=="default"||A.quality=="proof"?(K.push(l(A,U[0])),t.relocateComponent(at[0],K[0],A)):t.relocateComponent(at[0],U[0],A)}var J=function(rt,ut){if(A.quality=="default"||A.quality=="proof"){typeof rt=="number"&&(rt=ut);var Tt=void 0,Mt=void 0,Dt=rt.data("id");return K.forEach(function(xt){Dt in xt&&(Tt={x:xt[Dt].getRect().getCenterX(),y:xt[Dt].getRect().getCenterY()},Mt=xt[Dt])}),A.nodeDimensionsIncludeLabels&&(Mt.labelWidth&&(Mt.labelPosHorizontal=="left"?Tt.x+=Mt.labelWidth/2:Mt.labelPosHorizontal=="right"&&(Tt.x-=Mt.labelWidth/2)),Mt.labelHeight&&(Mt.labelPosVertical=="top"?Tt.y+=Mt.labelHeight/2:Mt.labelPosVertical=="bottom"&&(Tt.y-=Mt.labelHeight/2))),Tt==null&&(Tt={x:rt.position("x"),y:rt.position("y")}),{x:Tt.x,y:Tt.y}}else{var mt=void 0;return U.forEach(function(xt){var St=xt.nodeIndexes.get(rt.id());St!=null&&(mt={x:xt.xCoords[St],y:xt.yCoords[St]})}),mt==null&&(mt={x:rt.position("x"),y:rt.position("y")}),{x:mt.x,y:mt.y}}};if(A.quality=="default"||A.quality=="proof"||A.randomize){var Rt=t.calcParentsWithoutChildren(G,B),Lt=B.filter(function(vt){return vt.css("display")=="none"});A.eles=B.not(Lt),B.nodes().not(":parent").not(Lt).layoutPositions(F,A,J),Rt.length>0&&Rt.forEach(function(vt){vt.position(J(vt))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),d}();a.exports=u},657:(a,r,e)=>{var f=e(548),i=e(140).layoutBase.Matrix,v=e(140).layoutBase.SVD,t=function(s){var c=s.cy,l=s.eles,T=l.nodes(),u=l.nodes(":parent"),d=new Map,N=new Map,F=new Map,A=[],G=[],B=[],U=[],K=[],D=[],at=[],n=[],m=void 0,p=1e8,E=1e-9,y=s.piTol,I=s.samplingType,w=s.nodeSeparation,R=void 0,W=function(){for(var b=0,Z=0,Q=!1;Z<R;){b=Math.floor(Math.random()*m),Q=!1;for(var k=0;k<Z;k++)if(U[k]==b){Q=!0;break}if(!Q)U[Z]=b,Z++;else continue}},x=function(b,Z,Q){for(var k=[],it=0,gt=0,ot=0,tt=void 0,j=[],dt=0,wt=1,yt=0;yt<m;yt++)j[yt]=p;for(k[gt]=b,j[b]=0;gt>=it;){ot=k[it++];for(var It=A[ot],ft=0;ft<It.length;ft++)tt=N.get(It[ft]),j[tt]==p&&(j[tt]=j[ot]+1,k[++gt]=tt);D[ot][Z]=j[ot]*w}if(Q){for(var st=0;st<m;st++)D[st][Z]<K[st]&&(K[st]=D[st][Z]);for(var Ct=0;Ct<m;Ct++)K[Ct]>dt&&(dt=K[Ct],wt=Ct)}return wt},q=function(b){var Z=void 0;if(b){Z=Math.floor(Math.random()*m);for(var k=0;k<m;k++)K[k]=p;for(var it=0;it<R;it++)U[it]=Z,Z=x(Z,it,b)}else{W();for(var Q=0;Q<R;Q++)x(U[Q],Q,b)}for(var gt=0;gt<m;gt++)for(var ot=0;ot<R;ot++)D[gt][ot]*=D[gt][ot];for(var tt=0;tt<R;tt++)at[tt]=[];for(var j=0;j<R;j++)for(var dt=0;dt<R;dt++)at[j][dt]=D[U[dt]][j]},V=function(){for(var b=v.svd(at),Z=b.S,Q=b.U,k=b.V,it=Z[0]*Z[0]*Z[0],gt=[],ot=0;ot<R;ot++){gt[ot]=[];for(var tt=0;tt<R;tt++)gt[ot][tt]=0,ot==tt&&(gt[ot][tt]=Z[ot]/(Z[ot]*Z[ot]+it/(Z[ot]*Z[ot])))}n=i.multMat(i.multMat(k,gt),i.transpose(Q))},Y=function(){for(var b=void 0,Z=void 0,Q=[],k=[],it=[],gt=[],ot=0;ot<m;ot++)Q[ot]=Math.random(),k[ot]=Math.random();Q=i.normalize(Q),k=i.normalize(k);for(var tt=E,j=E,dt=void 0;;){for(var wt=0;wt<m;wt++)it[wt]=Q[wt];if(Q=i.multGamma(i.multL(i.multGamma(it),D,n)),b=i.dotProduct(it,Q),Q=i.normalize(Q),tt=i.dotProduct(it,Q),dt=Math.abs(tt/j),dt<=1+y&&dt>=1)break;j=tt}for(var yt=0;yt<m;yt++)it[yt]=Q[yt];for(j=E;;){for(var It=0;It<m;It++)gt[It]=k[It];if(gt=i.minusOp(gt,i.multCons(it,i.dotProduct(it,gt))),k=i.multGamma(i.multL(i.multGamma(gt),D,n)),Z=i.dotProduct(gt,k),k=i.normalize(k),tt=i.dotProduct(gt,k),dt=Math.abs(tt/j),dt<=1+y&&dt>=1)break;j=tt}for(var ft=0;ft<m;ft++)gt[ft]=k[ft];G=i.multCons(it,Math.sqrt(Math.abs(b))),B=i.multCons(gt,Math.sqrt(Math.abs(Z)))};f.connectComponents(c,l,f.getTopMostNodes(T),d),u.forEach(function(S){f.connectComponents(c,l,f.getTopMostNodes(S.descendants().intersection(l)),d)});for(var et=0,z=0;z<T.length;z++)T[z].isParent()||N.set(T[z].id(),et++);var O=!0,H=!1,$=void 0;try{for(var _=d.keys()[Symbol.iterator](),ht;!(O=(ht=_.next()).done);O=!0){var J=ht.value;N.set(J,et++)}}catch(S){H=!0,$=S}finally{try{!O&&_.return&&_.return()}finally{if(H)throw $}}for(var Rt=0;Rt<N.size;Rt++)A[Rt]=[];u.forEach(function(S){for(var b=S.children().intersection(l);b.nodes(":childless").length==0;)b=b.nodes()[0].children().intersection(l);var Z=0,Q=b.nodes(":childless")[0].connectedEdges().length;b.nodes(":childless").forEach(function(k,it){k.connectedEdges().length<Q&&(Q=k.connectedEdges().length,Z=it)}),F.set(S.id(),b.nodes(":childless")[Z].id())}),T.forEach(function(S){var b=void 0;S.isParent()?b=N.get(F.get(S.id())):b=N.get(S.id()),S.neighborhood().nodes().forEach(function(Z){l.intersection(S.edgesWith(Z)).length>0&&(Z.isParent()?A[b].push(F.get(Z.id())):A[b].push(Z.id()))})});var Lt=function(b){var Z=N.get(b),Q=void 0;d.get(b).forEach(function(k){c.getElementById(k).isParent()?Q=F.get(k):Q=k,A[Z].push(Q),A[N.get(Q)].push(b)})},vt=!0,rt=!1,ut=void 0;try{for(var Tt=d.keys()[Symbol.iterator](),Mt;!(vt=(Mt=Tt.next()).done);vt=!0){var Dt=Mt.value;Lt(Dt)}}catch(S){rt=!0,ut=S}finally{try{!vt&&Tt.return&&Tt.return()}finally{if(rt)throw ut}}m=N.size;var mt=void 0;if(m>2){R=m<s.sampleSize?m:s.sampleSize;for(var xt=0;xt<m;xt++)D[xt]=[];for(var St=0;St<R;St++)n[St]=[];return s.quality=="draft"||s.step=="all"?(q(I),V(),Y(),mt={nodeIndexes:N,xCoords:G,yCoords:B}):(N.forEach(function(S,b){G.push(c.getElementById(b).position("x")),B.push(c.getElementById(b).position("y"))}),mt={nodeIndexes:N,xCoords:G,yCoords:B}),mt}else{var Vt=N.keys(),Xt=c.getElementById(Vt.next().value),Ut=Xt.position(),bt=Xt.outerWidth();if(G.push(Ut.x),B.push(Ut.y),m==2){var Ht=c.getElementById(Vt.next().value),Bt=Ht.outerWidth();G.push(Ut.x+bt/2+Bt/2+s.idealEdgeLength),B.push(Ut.y)}return mt={nodeIndexes:N,xCoords:G,yCoords:B},mt}};a.exports={spectralLayout:t}},579:(a,r,e)=>{var f=e(212),i=function(t){t&&t("layout","fcose",f)};typeof cytoscape<"u"&&i(cytoscape),a.exports=i},140:a=>{a.exports=M}},L={};function g(a){var r=L[a];if(r!==void 0)return r.exports;var e=L[a]={exports:{}};return P[a](e,e.exports,g),e.exports}var h=g(579);return h})()})}(he)),he.exports}var Tr=mr();const Nr=ur(Tr);var Se={L:"left",R:"right",T:"top",B:"bottom"},Fe={L:nt(C=>`${C},${C/2} 0,${C} 0,0`,"L"),R:nt(C=>`0,${C/2} ${C},0 ${C},${C}`,"R"),T:nt(C=>`0,0 ${C},0 ${C/2},${C}`,"T"),B:nt(C=>`${C/2},0 ${C},${C} 0,${C}`,"B")},le={L:nt((C,X)=>C-X+2,"L"),R:nt((C,X)=>C-2,"R"),T:nt((C,X)=>C-X+2,"T"),B:nt((C,X)=>C-2,"B")},Lr=nt(function(C){return zt(C)?C==="L"?"R":"L":C==="T"?"B":"T"},"getOppositeArchitectureDirection"),be=nt(function(C){const X=C;return X==="L"||X==="R"||X==="T"||X==="B"},"isArchitectureDirection"),zt=nt(function(C){const X=C;return X==="L"||X==="R"},"isArchitectureDirectionX"),Qt=nt(function(C){const X=C;return X==="T"||X==="B"},"isArchitectureDirectionY"),Ce=nt(function(C,X){const M=zt(C)&&Qt(X),P=Qt(C)&&zt(X);return M||P},"isArchitectureDirectionXY"),Cr=nt(function(C){const X=C[0],M=C[1],P=zt(X)&&Qt(M),L=Qt(X)&&zt(M);return P||L},"isArchitecturePairXY"),Ar=nt(function(C){return C!=="LL"&&C!=="RR"&&C!=="TT"&&C!=="BB"},"isValidArchitectureDirectionPair"),me=nt(function(C,X){const M=`${C}${X}`;return Ar(M)?M:void 0},"getArchitectureDirectionPair"),Mr=nt(function([C,X],M){const P=M[0],L=M[1];return zt(P)?Qt(L)?[C+(P==="L"?-1:1),X+(L==="T"?1:-1)]:[C+(P==="L"?-1:1),X]:zt(L)?[C+(L==="L"?1:-1),X+(P==="T"?1:-1)]:[C,X+(P==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),wr=nt(function(C){return C==="LT"||C==="TL"?[1,1]:C==="BL"||C==="LB"?[1,-1]:C==="BR"||C==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),Or=nt(function(C,X){return Ce(C,X)?"bend":zt(C)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),Dr=nt(function(C){return C.type==="service"},"isArchitectureService"),xr=nt(function(C){return C.type==="junction"},"isArchitectureJunction"),Ue=nt(C=>C.data(),"edgeData"),ne=nt(C=>C.data(),"nodeData"),Ye=nr.architecture,pt=new cr(()=>({nodes:{},groups:{},edges:[],registeredIds:{},config:Ye,dataStructures:void 0,elements:{}})),Ir=nt(()=>{pt.reset(),or()},"clear"),Rr=nt(function({id:C,icon:X,in:M,title:P,iconText:L}){if(pt.records.registeredIds[C]!==void 0)throw new Error(`The service id [${C}] is already in use by another ${pt.records.registeredIds[C]}`);if(M!==void 0){if(C===M)throw new Error(`The service [${C}] cannot be placed within itself`);if(pt.records.registeredIds[M]===void 0)throw new Error(`The service [${C}]'s parent does not exist. Please make sure the parent is created before this service`);if(pt.records.registeredIds[M]==="node")throw new Error(`The service [${C}]'s parent is not a group`)}pt.records.registeredIds[C]="node",pt.records.nodes[C]={id:C,type:"service",icon:X,iconText:L,title:P,edges:[],in:M}},"addService"),Sr=nt(()=>Object.values(pt.records.nodes).filter(Dr),"getServices"),Fr=nt(function({id:C,in:X}){pt.records.registeredIds[C]="node",pt.records.nodes[C]={id:C,type:"junction",edges:[],in:X}},"addJunction"),br=nt(()=>Object.values(pt.records.nodes).filter(xr),"getJunctions"),Pr=nt(()=>Object.values(pt.records.nodes),"getNodes"),Te=nt(C=>pt.records.nodes[C],"getNode"),Gr=nt(function({id:C,icon:X,in:M,title:P}){if(pt.records.registeredIds[C]!==void 0)throw new Error(`The group id [${C}] is already in use by another ${pt.records.registeredIds[C]}`);if(M!==void 0){if(C===M)throw new Error(`The group [${C}] cannot be placed within itself`);if(pt.records.registeredIds[M]===void 0)throw new Error(`The group [${C}]'s parent does not exist. Please make sure the parent is created before this group`);if(pt.records.registeredIds[M]==="node")throw new Error(`The group [${C}]'s parent is not a group`)}pt.records.registeredIds[C]="group",pt.records.groups[C]={id:C,icon:X,title:P,in:M}},"addGroup"),Ur=nt(()=>Object.values(pt.records.groups),"getGroups"),Yr=nt(function({lhsId:C,rhsId:X,lhsDir:M,rhsDir:P,lhsInto:L,rhsInto:g,lhsGroup:h,rhsGroup:a,title:r}){if(!be(M))throw new Error(`Invalid direction given for left hand side of edge ${C}--${X}. Expected (L,R,T,B) got ${M}`);if(!be(P))throw new Error(`Invalid direction given for right hand side of edge ${C}--${X}. Expected (L,R,T,B) got ${P}`);if(pt.records.nodes[C]===void 0&&pt.records.groups[C]===void 0)throw new Error(`The left-hand id [${C}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(pt.records.nodes[X]===void 0&&pt.records.groups[C]===void 0)throw new Error(`The right-hand id [${X}] does not yet exist. Please create the service/group before declaring an edge to it.`);const e=pt.records.nodes[C].in,f=pt.records.nodes[X].in;if(h&&e&&f&&e==f)throw new Error(`The left-hand id [${C}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(a&&e&&f&&e==f)throw new Error(`The right-hand id [${X}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const i={lhsId:C,lhsDir:M,lhsInto:L,lhsGroup:h,rhsId:X,rhsDir:P,rhsInto:g,rhsGroup:a,title:r};pt.records.edges.push(i),pt.records.nodes[C]&&pt.records.nodes[X]&&(pt.records.nodes[C].edges.push(pt.records.edges[pt.records.edges.length-1]),pt.records.nodes[X].edges.push(pt.records.edges[pt.records.edges.length-1]))},"addEdge"),Xr=nt(()=>pt.records.edges,"getEdges"),Hr=nt(()=>{if(pt.records.dataStructures===void 0){const C={},X=Object.entries(pt.records.nodes).reduce((a,[r,e])=>(a[r]=e.edges.reduce((f,i)=>{const v=Te(i.lhsId)?.in,t=Te(i.rhsId)?.in;if(v&&t&&v!==t){const o=Or(i.lhsDir,i.rhsDir);o!=="bend"&&(C[v]??={},C[v][t]=o,C[t]??={},C[t][v]=o)}if(i.lhsId===r){const o=me(i.lhsDir,i.rhsDir);o&&(f[o]=i.rhsId)}else{const o=me(i.rhsDir,i.lhsDir);o&&(f[o]=i.lhsId)}return f},{}),a),{}),M=Object.keys(X)[0],P={[M]:1},L=Object.keys(X).reduce((a,r)=>r===M?a:{...a,[r]:1},{}),g=nt(a=>{const r={[a]:[0,0]},e=[a];for(;e.length>0;){const f=e.shift();if(f){P[f]=1,delete L[f];const i=X[f],[v,t]=r[f];Object.entries(i).forEach(([o,s])=>{P[s]||(r[s]=Mr([v,t],o),e.push(s))})}}return r},"BFS"),h=[g(M)];for(;Object.keys(L).length>0;)h.push(g(Object.keys(L)[0]));pt.records.dataStructures={adjList:X,spatialMaps:h,groupAlignments:C}}return pt.records.dataStructures},"getDataStructures"),Wr=nt((C,X)=>{pt.records.elements[C]=X},"setElementForId"),Vr=nt(C=>pt.records.elements[C],"getElementById"),Xe=nt(()=>ir({...Ye,...ar().architecture}),"getConfig"),ge={clear:Ir,setDiagramTitle:tr,getDiagramTitle:_e,setAccTitle:je,getAccTitle:Ke,setAccDescription:Qe,getAccDescription:Je,getConfig:Xe,addService:Rr,getServices:Sr,addJunction:Fr,getJunctions:br,getNodes:Pr,getNode:Te,addGroup:Gr,getGroups:Ur,addEdge:Yr,getEdges:Xr,setElementForId:Wr,getElementById:Vr,getDataStructures:Hr};function Pt(C){return Xe()[C]}nt(Pt,"getConfigField");var zr=nt((C,X)=>{fr(C,X),C.groups.map(X.addGroup),C.services.map(M=>X.addService({...M,type:"service"})),C.junctions.map(M=>X.addJunction({...M,type:"junction"})),C.edges.map(X.addEdge)},"populateDb"),Br={parse:nt(async C=>{const X=await gr("architecture",C);Pe.debug(X),zr(X,ge)},"parse")},$r=nt(C=>`
2
2
  .edge {
3
3
  stroke-width: ${C.archEdgeWidth};
4
4
  stroke: ${C.archEdgeColor};
@@ -34,4 +34,4 @@ import{_ as nt,g as Je,s as Qe,a as Ke,b as je,t as _e,q as tr,K as er,ac as rr,
34
34
  translate(${n*p.width/2}, ${m*p.height/2})
35
35
  rotate(${-1*n*m*45}, 0, ${at.height/2})
36
36
  `)}}}}}))},"drawEdges"),qr=nt(async function(C,X){const P=Pt("padding")*.75,L=Pt("fontSize"),h=Pt("iconSize")/2;await Promise.all(X.nodes().map(async a=>{const r=ne(a);if(r.type==="group"){const{h:e,w:f,x1:i,y1:v}=a.boundingBox();C.append("rect").attr("x",i+h).attr("y",v+h).attr("width",f).attr("height",e).attr("class","node-bkg");const t=C.append("g");let o=i,s=v;if(r.icon){const c=t.append("g");c.html(`<g>${await Ee(r.icon,{height:P,width:P,fallbackPrefix:oe.prefix})}</g>`),c.attr("transform","translate("+(o+h+1)+", "+(s+h+1)+")"),o+=P,s+=L/2-1-2}if(r.label){const c=t.append("g");await Ne(c,r.label,{useHtmlLabels:!1,width:f,classes:"architecture-service-label"},Le()),c.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start"),c.attr("transform","translate("+(o+h+4)+", "+(s+h+2)+")")}}}))},"drawGroups"),Jr=nt(async function(C,X,M){for(const P of M){const L=X.append("g"),g=Pt("iconSize");if(P.title){const e=L.append("g");await Ne(e,P.title,{useHtmlLabels:!1,width:g*1.5,classes:"architecture-service-label"},Le()),e.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),e.attr("transform","translate("+g/2+", "+g+")")}const h=L.append("g");if(P.icon)h.html(`<g>${await Ee(P.icon,{height:g,width:g,fallbackPrefix:oe.prefix})}</g>`);else if(P.iconText){h.html(`<g>${await Ee("blank",{height:g,width:g,fallbackPrefix:oe.prefix})}</g>`);const i=h.append("g").append("foreignObject").attr("width",g).attr("height",g).append("div").attr("class","node-icon-text").attr("style",`height: ${g}px;`).append("div").html(P.iconText),v=parseInt(window.getComputedStyle(i.node(),null).getPropertyValue("font-size").replace(/\D/g,""))??16;i.attr("style",`-webkit-line-clamp: ${Math.floor((g-2)/v)};`)}else h.append("path").attr("class","node-bkg").attr("id","node-"+P.id).attr("d",`M0 ${g} v${-g} q0,-5 5,-5 h${g} q5,0 5,5 v${g} H0 Z`);L.attr("class","architecture-service");const{width:a,height:r}=L._groups[0][0].getBBox();P.width=a,P.height=r,C.setElementForId(P.id,L)}return 0},"drawServices"),Qr=nt(function(C,X,M){M.forEach(P=>{const L=X.append("g"),g=Pt("iconSize");L.append("g").append("rect").attr("id","node-"+P.id).attr("fill-opacity","0").attr("width",g).attr("height",g),L.attr("class","architecture-junction");const{width:a,height:r}=L._groups[0][0].getBBox();L.width=a,L.height=r,C.setElementForId(P.id,L)})},"drawJunctions");lr([{name:oe.prefix,icons:oe}]);Ge.use(Nr);function He(C,X){C.forEach(M=>{X.add({group:"nodes",data:{type:"service",id:M.id,icon:M.icon,label:M.title,parent:M.in,width:Pt("iconSize"),height:Pt("iconSize")},classes:"node-service"})})}nt(He,"addServices");function We(C,X){C.forEach(M=>{X.add({group:"nodes",data:{type:"junction",id:M.id,parent:M.in,width:Pt("iconSize"),height:Pt("iconSize")},classes:"node-junction"})})}nt(We,"addJunctions");function Ve(C,X){X.nodes().map(M=>{const P=ne(M);if(P.type==="group")return;P.x=M.position().x,P.y=M.position().y,C.getElementById(P.id).attr("transform","translate("+(P.x||0)+","+(P.y||0)+")")})}nt(Ve,"positionNodes");function ze(C,X){C.forEach(M=>{X.add({group:"nodes",data:{type:"group",id:M.id,icon:M.icon,label:M.title,parent:M.in},classes:"node-group"})})}nt(ze,"addGroups");function Be(C,X){C.forEach(M=>{const{lhsId:P,rhsId:L,lhsInto:g,lhsGroup:h,rhsInto:a,lhsDir:r,rhsDir:e,rhsGroup:f,title:i}=M,v=Ce(M.lhsDir,M.rhsDir)?"segments":"straight",t={id:`${P}-${L}`,label:i,source:P,sourceDir:r,sourceArrow:g,sourceGroup:h,sourceEndpoint:r==="L"?"0 50%":r==="R"?"100% 50%":r==="T"?"50% 0":"50% 100%",target:L,targetDir:e,targetArrow:a,targetGroup:f,targetEndpoint:e==="L"?"0 50%":e==="R"?"100% 50%":e==="T"?"50% 0":"50% 100%"};X.add({group:"edges",data:t,classes:v})})}nt(Be,"addEdges");function $e(C,X,M){const P=nt((a,r)=>Object.entries(a).reduce((e,[f,i])=>{let v=0;const t=Object.entries(i);if(t.length===1)return e[f]=t[0][1],e;for(let o=0;o<t.length-1;o++)for(let s=o+1;s<t.length;s++){const[c,l]=t[o],[T,u]=t[s];if(M[c]?.[T]===r)e[f]??=[],e[f]=[...e[f],...l,...u];else if(c==="default"||T==="default")e[f]??=[],e[f]=[...e[f],...l,...u];else{const N=`${f}-${v++}`;e[N]=l;const F=`${f}-${v++}`;e[F]=u}}return e},{}),"flattenAlignments"),L=X.map(a=>{const r={},e={};return Object.entries(a).forEach(([f,[i,v]])=>{const t=C.getNode(f)?.in??"default";r[v]??={},r[v][t]??=[],r[v][t].push(f),e[i]??={},e[i][t]??=[],e[i][t].push(f)}),{horiz:Object.values(P(r,"horizontal")).filter(f=>f.length>1),vert:Object.values(P(e,"vertical")).filter(f=>f.length>1)}}),[g,h]=L.reduce(([a,r],{horiz:e,vert:f})=>[[...a,...e],[...r,...f]],[[],[]]);return{horizontal:g,vertical:h}}nt($e,"getAlignments");function Ze(C){const X=[],M=nt(L=>`${L[0]},${L[1]}`,"posToStr"),P=nt(L=>L.split(",").map(g=>parseInt(g)),"strToPos");return C.forEach(L=>{const g=Object.fromEntries(Object.entries(L).map(([e,f])=>[M(f),e])),h=[M([0,0])],a={},r={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};for(;h.length>0;){const e=h.shift();if(e){a[e]=1;const f=g[e];if(f){const i=P(e);Object.entries(r).forEach(([v,t])=>{const o=M([i[0]+t[0],i[1]+t[1]]),s=g[o];s&&!a[o]&&(h.push(o),X.push({[Se[v]]:s,[Se[Lr(v)]]:f,gap:1.5*Pt("iconSize")}))})}}}}),X}nt(Ze,"getRelativeConstraints");function ke(C,X,M,P,L,{spatialMaps:g,groupAlignments:h}){return new Promise(a=>{const r=sr("body").append("div").attr("id","cy").attr("style","display:none"),e=Ge({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"straight",label:"data(label)","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"edge.segments",style:{"curve-style":"segments","segment-weights":"0","segment-distances":[.5],"edge-distances":"endpoints","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"node",style:{"compound-sizing-wrt-labels":"include"}},{selector:"node[label]",style:{"text-valign":"bottom","text-halign":"center","font-size":`${Pt("fontSize")}px`}},{selector:".node-service",style:{label:"data(label)",width:"data(width)",height:"data(height)"}},{selector:".node-junction",style:{width:"data(width)",height:"data(height)"}},{selector:".node-group",style:{padding:`${Pt("padding")}px`}}]});r.remove(),ze(M,e),He(C,e),We(X,e),Be(P,e);const f=$e(L,g,h),i=Ze(g),v=e.layout({name:"fcose",quality:"proof",styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength(t){const[o,s]=t.connectedNodes(),{parent:c}=ne(o),{parent:l}=ne(s);return c===l?1.5*Pt("iconSize"):.5*Pt("iconSize")},edgeElasticity(t){const[o,s]=t.connectedNodes(),{parent:c}=ne(o),{parent:l}=ne(s);return c===l?.45:.001},alignmentConstraint:f,relativePlacementConstraint:i});v.one("layoutstop",()=>{function t(o,s,c,l){let T,u;const{x:d,y:N}=o,{x:F,y:A}=s;u=(l-N+(d-c)*(N-A)/(d-F))/Math.sqrt(1+Math.pow((N-A)/(d-F),2)),T=Math.sqrt(Math.pow(l-N,2)+Math.pow(c-d,2)-Math.pow(u,2));const G=Math.sqrt(Math.pow(F-d,2)+Math.pow(A-N,2));T=T/G;let B=(F-d)*(l-N)-(A-N)*(c-d);switch(!0){case B>=0:B=1;break;case B<0:B=-1;break}let U=(F-d)*(c-d)+(A-N)*(l-N);switch(!0){case U>=0:U=1;break;case U<0:U=-1;break}return u=Math.abs(u)*B,T=T*U,{distances:u,weights:T}}nt(t,"getSegmentWeights"),e.startBatch();for(const o of Object.values(e.edges()))if(o.data?.()){const{x:s,y:c}=o.source().position(),{x:l,y:T}=o.target().position();if(s!==l&&c!==T){const u=o.sourceEndpoint(),d=o.targetEndpoint(),{sourceDir:N}=Ue(o),[F,A]=Qt(N)?[u.x,d.y]:[d.x,u.y],{weights:G,distances:B}=t(u,d,F,A);o.style("segment-distances",B),o.style("segment-weights",G)}}e.endBatch(),v.run()}),v.run(),e.ready(t=>{Pe.info("Ready",t),a(e)})})}nt(ke,"layoutArchitecture");var Kr=nt(async(C,X,M,P)=>{const L=P.db,g=L.getServices(),h=L.getJunctions(),a=L.getGroups(),r=L.getEdges(),e=L.getDataStructures(),f=er(X),i=f.append("g");i.attr("class","architecture-edges");const v=f.append("g");v.attr("class","architecture-services");const t=f.append("g");t.attr("class","architecture-groups"),await Jr(L,v,g),Qr(L,v,h);const o=await ke(g,h,a,r,L,e);await kr(i,o),await qr(t,o),Ve(L,o),rr(void 0,f,Pt("padding"),Pt("useMaxWidth"))},"draw"),jr={draw:Kr},Ai={parser:Br,db:ge,renderer:jr,styles:Zr};export{Ai as diagram};
37
- //# sourceMappingURL=architectureDiagram-NQ2NVSRB-BIdrgV0s.js.map
37
+ //# sourceMappingURL=architectureDiagram-NQ2NVSRB-DkGn5Zso.js.map