@marimo-team/frontend 0.18.2 → 0.18.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 (615) hide show
  1. package/dist/assets/{CellStatus-BF6SIoRw.js → CellStatus-D2D-5BFb.js} +1 -1
  2. package/dist/assets/{ConnectedDataExplorerComponent-cWWwPzM6.js → ConnectedDataExplorerComponent-CsGDiHld.js} +1 -1
  3. package/dist/assets/{ConsoleOutput-D7wjWCxv.js → ConsoleOutput-1UUGbXpT.js} +1 -1
  4. package/dist/assets/{ErrorBoundary-CtDyEdnn.js → ErrorBoundary-Xx3vyups.js} +1 -1
  5. package/dist/assets/{LazyAnyLanguageCodeMirror-49uxEXHt.js → LazyAnyLanguageCodeMirror-LOVWlBJF.js} +2 -2
  6. package/dist/assets/{MarimoErrorOutput-B1Mc3WdL.js → MarimoErrorOutput-CBrjDxLd.js} +1 -1
  7. package/dist/assets/{Output-C7Tw17j5.js → Output-DaxqEvBr.js} +1 -1
  8. package/dist/assets/{RenderHTML-JtHAHXUk.js → RenderHTML-CDZ5aEc_.js} +1 -1
  9. package/dist/assets/{add-cell-with-ai-XMW6KxRB.js → add-cell-with-ai-CSoCSUxd.js} +1 -1
  10. package/dist/assets/{add-database-form-CEZCyiTa.js → add-database-form-SGMMGp2c.js} +2 -2
  11. package/dist/assets/{add-missing-import-BkauGlV2.js → add-missing-import-CtAvQzRq.js} +1 -1
  12. package/dist/assets/{agent-panel-Ce7SvzIG.js → agent-panel-C5Z0hBOF.js} +1 -1
  13. package/dist/assets/angular-html-6ZIByP3N.js +1 -0
  14. package/dist/assets/{angular-html-zPXXaV-8.js → angular-html-D2pQ7jQ_.js} +1 -1
  15. package/dist/assets/{angular-ts-enzRg3a_.js → angular-ts-D1ZL1jvS.js} +1 -1
  16. package/dist/assets/{api-DYFFXYuB.js → api-2JaIsahG.js} +1 -1
  17. package/dist/assets/{apl-BcJ9sfq_.js → apl-BCeEtywR.js} +1 -1
  18. package/dist/assets/app-config-button-B_M_eQY9.js +1 -0
  19. package/dist/assets/{arc-Ds_Zv0QO.js → arc-Crbn1TVB.js} +1 -1
  20. package/dist/assets/{architecture-U656AL7Q-DiJqir5O.js → architecture-U656AL7Q-cpYzhQMB.js} +1 -1
  21. package/dist/assets/{architectureDiagram-VXUJARFQ-DJQ935Jg.js → architectureDiagram-VXUJARFQ-BL5pjKVE.js} +1 -1
  22. package/dist/assets/{astro-DRWIggQ-.js → astro-Cj_DeCWe.js} +1 -1
  23. package/dist/assets/{blade-D2nYyrEj.js → blade-Fd7RZ-zP.js} +1 -1
  24. package/dist/assets/{blockDiagram-VD42YOAC-DdrDCK_z.js → blockDiagram-VD42YOAC-CmuhZsm9.js} +1 -1
  25. package/dist/assets/{bsl-CGmwQbBb.js → bsl-CzdIu7Xi.js} +1 -1
  26. package/dist/assets/c-NwLKp6np.js +1 -0
  27. package/dist/assets/{c4Diagram-YG6GDRKO-BjPLaLg6.js → c4Diagram-YG6GDRKO-BP2PIYlO.js} +1 -1
  28. package/dist/assets/{cache-panel-DzhCTE71.js → cache-panel-DkUaYb_-.js} +1 -1
  29. package/dist/assets/{cairo-pvAoeMSC.js → cairo-BhzRYPt4.js} +1 -1
  30. package/dist/assets/{cell-actions-Juc9p4m9.js → cell-actions-DQwP57Jw.js} +1 -1
  31. package/dist/assets/{cell-editor-CRlOJNCd.js → cell-editor-BgpgVJ_O.js} +3 -3
  32. package/dist/assets/{cell-link-ByqSnfe2.js → cell-link-D4ddCDwe.js} +1 -1
  33. package/dist/assets/{cells-B1ds6ZjK.js → cells-XWXpgwpH.js} +4 -4
  34. package/dist/assets/channel-B0biCWFN.js +1 -0
  35. package/dist/assets/chat-panel-BeaiJuzZ.js +3 -0
  36. package/dist/assets/{chunk-4BX2VUAB-OZ3RMBOG.js → chunk-4BX2VUAB-Dnmsi95O.js} +1 -1
  37. package/dist/assets/chunk-55IACEB6-D2aLmewM.js +1 -0
  38. package/dist/assets/{chunk-ABZYJK2D-hrtqo5Ih.js → chunk-ABZYJK2D-CtXIjLiW.js} +1 -1
  39. package/dist/assets/{chunk-ATLVNIR6-BgfpG5In.js → chunk-ATLVNIR6-B9PNf8Hz.js} +1 -1
  40. package/dist/assets/{chunk-B4BG7PRW-_PvkdrWC.js → chunk-B4BG7PRW-BNJbYnUH.js} +1 -1
  41. package/dist/assets/{chunk-CVBHYZKI-5HVb4Wim.js → chunk-CVBHYZKI-DDPYtx7T.js} +1 -1
  42. package/dist/assets/{chunk-DI55MBZ5-Cw58sQJJ.js → chunk-DI55MBZ5-DND_B2Za.js} +1 -1
  43. package/dist/assets/{chunk-EXTU4WIE-CEP0vCSp.js → chunk-EXTU4WIE-D12Fazph.js} +1 -1
  44. package/dist/assets/{chunk-FMBD7UC4-BkUavpb3.js → chunk-FMBD7UC4-C8i9rOfC.js} +1 -1
  45. package/dist/assets/{chunk-HN2XXSSU-DjhZVPDs.js → chunk-HN2XXSSU-Bm9ByQAV.js} +1 -1
  46. package/dist/assets/{chunk-JA3XYJ7Z-CgzUmbGk.js → chunk-JA3XYJ7Z-CtNBL0qt.js} +1 -1
  47. package/dist/assets/{chunk-JZLCHNYA-7mxrIoDk.js → chunk-JZLCHNYA-BZEPGvln.js} +1 -1
  48. package/dist/assets/{chunk-MI3HLSF2-pZk5-wBb.js → chunk-MI3HLSF2-BjSxv-Tb.js} +1 -1
  49. package/dist/assets/{chunk-N4CR4FBY-RwpuZVCY.js → chunk-N4CR4FBY-D4Pv9MjY.js} +2 -2
  50. package/dist/assets/{chunk-QN33PNHL-4snOivde.js → chunk-QN33PNHL-DY4Bb8bg.js} +1 -1
  51. package/dist/assets/{chunk-QXUST7PY-DhCicUET.js → chunk-QXUST7PY-BaL39LJ3.js} +1 -1
  52. package/dist/assets/{chunk-QZHKN3VN-GvLbztMp.js → chunk-QZHKN3VN-C6tsMej_.js} +1 -1
  53. package/dist/assets/{chunk-S3R3BYOJ-OSp35xNm.js → chunk-S3R3BYOJ-CHQG4Tkr.js} +1 -1
  54. package/dist/assets/{chunk-T7OEMACY-DbVUP18p.js → chunk-T7OEMACY-DmsJ7oRM.js} +3 -3
  55. package/dist/assets/{chunk-TZMSLE5B-CW2-539B.js → chunk-TZMSLE5B-Cv6_oHcL.js} +1 -1
  56. package/dist/assets/classDiagram-2ON5EDUG-BF--0IrT.js +1 -0
  57. package/dist/assets/classDiagram-v2-WZHVMYZB-CfJWUvdz.js +1 -0
  58. package/dist/assets/{client-D_omQOdF.js → client-0P4Oa4i0.js} +1 -1
  59. package/dist/assets/cmake-DIDeMhdf.js +1 -0
  60. package/dist/assets/{cobol-DFzCMwfG.js → cobol-NpM76oCU.js} +1 -1
  61. package/dist/assets/{code-block-JS6V4U2P-C_q8Dvc3.js → code-block-JS6V4U2P-iJhUpiql.js} +3 -3
  62. package/dist/assets/{coffee-9tBT_d38.js → coffee-BqxJYR0h.js} +1 -1
  63. package/dist/assets/{column-preview-BcoDJfhJ.js → column-preview-DN61SPFU.js} +1 -1
  64. package/dist/assets/command-palette-CJCaop_T.js +1 -0
  65. package/dist/assets/{common-BYQt3-He.js → common-D-7wYxmm.js} +1 -1
  66. package/dist/assets/{config-BwUC_LRl.js → config-ljv4_QXT.js} +1 -1
  67. package/dist/assets/{constants-Bt6NlroV.js → constants-O0mPFSN0.js} +1 -1
  68. package/dist/assets/{cose-bilkent-S5V4N54A-V1NG2lYv.js → cose-bilkent-S5V4N54A-GcYlE8uw.js} +1 -1
  69. package/dist/assets/cpp-BGtyUeB4.js +1 -0
  70. package/dist/assets/{cpp-D07lGOGh.js → cpp-BLoWjAXF.js} +1 -1
  71. package/dist/assets/{crystal-BkcFcpMl.js → crystal-BRLo8TK3.js} +1 -1
  72. package/dist/assets/csharp-8rTxz5Cn.js +1 -0
  73. package/dist/assets/css-FLaAaSlG.js +1 -0
  74. package/dist/assets/{dagre-6UL2VRFP-B2J9heb_.js → dagre-6UL2VRFP-Db0To5ui.js} +1 -1
  75. package/dist/assets/{data-grid-overlay-editor-CtKSQFwf.js → data-grid-overlay-editor-DWDX47Vs.js} +1 -1
  76. package/dist/assets/datasources-panel-B3B_6oaN.js +1 -0
  77. package/dist/assets/{dependency-graph-panel-CAq_VFUz.js → dependency-graph-panel-Cfk_uFwf.js} +1 -1
  78. package/dist/assets/{diagram-PSM6KHXK-DjVIUZBI.js → diagram-PSM6KHXK-C58qsAys.js} +1 -1
  79. package/dist/assets/{diagram-QEK2KX5R-ChWH1qmW.js → diagram-QEK2KX5R-DcaWIBK-.js} +1 -1
  80. package/dist/assets/{diagram-S2PKOQOG-jw1__MCe.js → diagram-S2PKOQOG-CezQu__Y.js} +1 -1
  81. package/dist/assets/diff-BVGhhozo.js +1 -0
  82. package/dist/assets/{dist-D6pW-8Gd.js → dist-CKUOeEGM.js} +1 -1
  83. package/dist/assets/{documentation-panel-BDteAlXf.js → documentation-panel-C_ASDI7f.js} +1 -1
  84. package/dist/assets/{edge-6E5i8E-5.js → edge-WMVFowHg.js} +1 -1
  85. package/dist/assets/{edit-page-CIErn7rp.js → edit-page-BEta7M3s.js} +6 -6
  86. package/dist/assets/{elixir-C_vJFtO6.js → elixir-CW0bCBTm.js} +1 -1
  87. package/dist/assets/{elm-Cshl2UY4.js → elm-Ce2fnIaC.js} +1 -1
  88. package/dist/assets/{erDiagram-Q2GNP2WA-xYpFjQnF.js → erDiagram-Q2GNP2WA-DB0WyJRj.js} +1 -1
  89. package/dist/assets/{erb-DbuYwwsU.js → erb-DjIl_KIf.js} +1 -1
  90. package/dist/assets/{erlang-6BmX0xfT.js → erlang-BPYBaUs1.js} +1 -1
  91. package/dist/assets/{error-panel-DvLmVUk9.js → error-panel-5x_F-NS3.js} +1 -1
  92. package/dist/assets/{file-explorer-panel-DDxuXk_g.js → file-explorer-panel-LFnqffxy.js} +1 -1
  93. package/dist/assets/{floating-outline-BQGPKYVi.js → floating-outline-Bk6kjZw5.js} +1 -1
  94. package/dist/assets/{flowDiagram-NV44I4VS-BYwwl5yU.js → flowDiagram-NV44I4VS-Do98S-D5.js} +1 -1
  95. package/dist/assets/{focus-BwsN5YFR.js → focus-BLLpcsff.js} +1 -1
  96. package/dist/assets/form-DhU-C-zB.js +2 -0
  97. package/dist/assets/{fortran-fixed-form-CU_lVn3W.js → fortran-fixed-form-CPD1Ld3F.js} +1 -1
  98. package/dist/assets/fortran-free-form-Qi8mZgN7.js +1 -0
  99. package/dist/assets/{fsharp-BWZe5KpF.js → fsharp-BXetOFqI.js} +1 -1
  100. package/dist/assets/{ganttDiagram-LVOFAZNH-DmFdObyd.js → ganttDiagram-LVOFAZNH-Cl2cbCz_.js} +1 -1
  101. package/dist/assets/{gdresource-DxweAAB0.js → gdresource-C48GwkIn.js} +1 -1
  102. package/dist/assets/gdscript-Dl7WwCNF.js +1 -0
  103. package/dist/assets/gdshader-RlrrzEyF.js +1 -0
  104. package/dist/assets/{git-commit-B-c9qmkK.js → git-commit-B3rEFd7D.js} +1 -1
  105. package/dist/assets/{git-rebase-C1uZdm2G.js → git-rebase-Dw0jcW6j.js} +1 -1
  106. package/dist/assets/{gitGraph-F6HP7TQM-Bp1qHyUF.js → gitGraph-F6HP7TQM-CEUy28T-.js} +1 -1
  107. package/dist/assets/{gitGraphDiagram-NY62KEGX-Ca6pRCe9.js → gitGraphDiagram-NY62KEGX-j_m8UxCE.js} +1 -1
  108. package/dist/assets/{glide-data-editor-Dk61gLIM.js → glide-data-editor-BCJd_9uX.js} +4 -4
  109. package/dist/assets/{glimmer-js-CRluyXqC.js → glimmer-js-DuwG4btA.js} +1 -1
  110. package/dist/assets/{glimmer-ts-Be4SRNfU.js → glimmer-ts-Bv5_LxhC.js} +1 -1
  111. package/dist/assets/{globals-BflAlIPe.js → globals-eSrTJiES.js} +1 -1
  112. package/dist/assets/glsl-CNhD1pjh.js +1 -0
  113. package/dist/assets/{glsl-B3aHnexF.js → glsl-CSojfCAK.js} +1 -1
  114. package/dist/assets/go-4uno1cNo.js +1 -0
  115. package/dist/assets/{graphql-TzGXXMoH.js → graphql-DWK8GxAH.js} +1 -1
  116. package/dist/assets/graphql-DlC4hv7h.js +1 -0
  117. package/dist/assets/{hack-Be9IDiZJ.js → hack-BwSRqsiT.js} +1 -1
  118. package/dist/assets/haml-BKy7-U6a.js +1 -0
  119. package/dist/assets/{haml-D0sma3Fr.js → haml-CUHHTr9D.js} +1 -1
  120. package/dist/assets/{handlebars-DCGKGZcy.js → handlebars-DBMYtD2n.js} +1 -1
  121. package/dist/assets/haxe-Bjuu3Qez.js +1 -0
  122. package/dist/assets/hlsl-DDoNsQHl.js +1 -0
  123. package/dist/assets/home-page-j5Kl0XcZ.js +4 -0
  124. package/dist/assets/html-C1WXfB-v.js +1 -0
  125. package/dist/assets/{html-QilReBRG.js → html-XjnqXjF_.js} +1 -1
  126. package/dist/assets/html-derivative-Bb70NcrA.js +1 -0
  127. package/dist/assets/{html-derivative-BOW362dn.js → html-derivative-CKW13wqU.js} +1 -1
  128. package/dist/assets/{http-CC85REw6.js → http-DYJIS8jR.js} +1 -1
  129. package/dist/assets/{hxml-CZKabaSC.js → hxml-C9BiOcOn.js} +1 -1
  130. package/dist/assets/{index-DvIxiN0j.js → index-CXWNxYPw.js} +14 -14
  131. package/dist/assets/{info-NVLQJR56-CRO066Ir.js → info-NVLQJR56-Z7xlJUKX.js} +1 -1
  132. package/dist/assets/{infoDiagram-ER5ION4S-J_j0uIyL.js → infoDiagram-ER5ION4S-6FR8ZdmP.js} +1 -1
  133. package/dist/assets/java-DDv0H7yL.js +1 -0
  134. package/dist/assets/{r-OhKPuvaw.js → javascript-CNjghNZs.js} +1 -1
  135. package/dist/assets/{jinja-CZFTWy7D.js → jinja-DqdQtCQl.js} +1 -1
  136. package/dist/assets/{jison-DjiEyDKn.js → jison-DYy80zr1.js} +1 -1
  137. package/dist/assets/{journeyDiagram-XKPGCS4Q-DlF_FBwA.js → journeyDiagram-XKPGCS4Q-DQyZO9j2.js} +1 -1
  138. package/dist/assets/json-D6QbUdRZ.js +1 -0
  139. package/dist/assets/jsx-05bO5G09.js +1 -0
  140. package/dist/assets/{julia-sBXvBe-F.js → julia-C75tWECT.js} +1 -1
  141. package/dist/assets/{kanban-definition-3W4ZIXB7-C_1jJ-oj.js → kanban-definition-3W4ZIXB7-CqawISU9.js} +1 -1
  142. package/dist/assets/{kiosk-mode-BJ_ZGDx5.js → kiosk-mode-i02oHc6v.js} +1 -1
  143. package/dist/assets/{latex-CS3Ztrvu.js → latex-BYbB2J-j.js} +1 -1
  144. package/dist/assets/{layout-N-k846yN.js → layout-BwT0IKwx.js} +3 -3
  145. package/dist/assets/lazy-ShQ0UXOI.js +2 -0
  146. package/dist/assets/less-CvcIL3JI.js +1 -0
  147. package/dist/assets/{line-BXY1-slS.js → line-6NN8CLqn.js} +1 -1
  148. package/dist/assets/{linear-BQs_BJbB.js → linear-C65za0NQ.js} +1 -1
  149. package/dist/assets/links-Dby89aO_.js +1 -0
  150. package/dist/assets/{liquid-DqBVA45f.js → liquid-C-lVMv3a.js} +1 -1
  151. package/dist/assets/{logs-panel-Ce3j2J9t.js → logs-panel-qlhJ40ua.js} +1 -1
  152. package/dist/assets/{loro_wasm_bg-CpvTcjq2.js → loro_wasm_bg-DDSX2v3H.js} +1 -1
  153. package/dist/assets/{lua-DL1HmgdC.js → lua-CVCk_xyq.js} +1 -1
  154. package/dist/assets/lua-DRkRNcth.js +1 -0
  155. package/dist/assets/markdown-CTc4euAS.js +1 -0
  156. package/dist/assets/{marko-BaR7Pilf.js → marko-tJVp8Hwi.js} +1 -1
  157. package/dist/assets/{mdc-Bth8SuR1.js → mdc-DVrcLgsN.js} +1 -1
  158. package/dist/assets/{mermaid-DaBnAxOO.js → mermaid-B6qMr8L1.js} +1 -1
  159. package/dist/assets/{mermaid-ZSTFYFNX-CfTeVf8N.js → mermaid-ZSTFYFNX-C-YUgcrj.js} +1 -1
  160. package/dist/assets/{mermaid-parser.core-DFQ2AotN.js → mermaid-parser.core-bcTOi7_A.js} +2 -2
  161. package/dist/assets/{mermaid.core-B3zF-yjd.js → mermaid.core-Cd9fy8CM.js} +3 -3
  162. package/dist/assets/mermaid.core-FjFmaBy2.js +1 -0
  163. package/dist/assets/{mindmap-definition-VGOIOE7T-CKETnCM8.js → mindmap-definition-VGOIOE7T-B3H781GF.js} +1 -1
  164. package/dist/assets/{mode-DQrmKtLw.js → mode-OgOLIWqz.js} +1 -1
  165. package/dist/assets/{name-cell-input-Do6XiA3C.js → name-cell-input-Czy9kSf0.js} +1 -1
  166. package/dist/assets/{nginx-CFsvje3Q.js → nginx-B9lIXTIk.js} +1 -1
  167. package/dist/assets/{nim-DyRQVOp8.js → nim-DMbY95qc.js} +1 -1
  168. package/dist/assets/{number-overlay-editor-CBErLveY.js → number-overlay-editor-DGg2F2Zq.js} +1 -1
  169. package/dist/assets/{ordinal-6cy7Wi6n.js → ordinal-DWAMmZun.js} +1 -1
  170. package/dist/assets/{outline-panel-Badv1nDU.js → outline-panel-BFOEX_7J.js} +1 -1
  171. package/dist/assets/packages-panel-BOQ3cGnK.js +1 -0
  172. package/dist/assets/{packet-BFZMPI3H-bOa1RmAa.js → packet-BFZMPI3H-BMO-hBPp.js} +1 -1
  173. package/dist/assets/{panels-pbTyO4Yq.js → panels-CEi9-a5L.js} +1 -1
  174. package/dist/assets/{perl-POkTMWN_.js → perl-DIZyk-OD.js} +1 -1
  175. package/dist/assets/{php-I1bL2ks3.js → php-CORYW3W_.js} +1 -1
  176. package/dist/assets/php-DJRiktZv.js +1 -0
  177. package/dist/assets/{pie-7BOR55EZ-Dp5gdvt7.js → pie-7BOR55EZ-rHQ0gno-.js} +1 -1
  178. package/dist/assets/{pieDiagram-ADFJNKIX-C-IhILl8.js → pieDiagram-ADFJNKIX-sVmyfEDE.js} +1 -1
  179. package/dist/assets/postcss-UlVqXkr3.js +1 -0
  180. package/dist/assets/{pug-srb5GKBG.js → pug-UOb7Pne9.js} +1 -1
  181. package/dist/assets/python-BrYQwEQj.js +1 -0
  182. package/dist/assets/{qml-yDHVcOWe.js → qml-Dj3U559P.js} +1 -1
  183. package/dist/assets/{quadrantDiagram-AYHSOK5B-DPvV-jC1.js → quadrantDiagram-AYHSOK5B-BuHfUyfh.js} +1 -1
  184. package/dist/assets/r-BUz5cY9H.js +1 -0
  185. package/dist/assets/{radar-NHE76QYJ-BAC5t54Z.js → radar-NHE76QYJ-76Yb3phk.js} +1 -1
  186. package/dist/assets/{razor-Deru5o-A.js → razor-B-gpU4vR.js} +1 -1
  187. package/dist/assets/{react-vega-BAaWsGgr.js → react-vega-CAmAfweF.js} +1 -1
  188. package/dist/assets/react-vega-DnTzz140.js +1 -0
  189. package/dist/assets/{readonly-python-code-B5NwduhZ.js → readonly-python-code-mq6FZbVx.js} +1 -1
  190. package/dist/assets/regexp-BxunqEf_.js +1 -0
  191. package/dist/assets/{requirementDiagram-UZGBJVZJ-D3ptzvUf.js → requirementDiagram-UZGBJVZJ-DYMMivrm.js} +1 -1
  192. package/dist/assets/{rst-kEAtnakZ.js → rst-B85hxnlc.js} +1 -1
  193. package/dist/assets/{ruby-DQJPe_a3.js → ruby-CHdGuXFc.js} +1 -1
  194. package/dist/assets/ruby-Cqw2Hu6d.js +1 -0
  195. package/dist/assets/{run-page-C5kJvOM4.js → run-page-BztCKtqc.js} +1 -1
  196. package/dist/assets/{sankeyDiagram-TZEHDZUN-BkdZ5Blc.js → sankeyDiagram-TZEHDZUN-CZ16wpaY.js} +1 -1
  197. package/dist/assets/{sas-BC29kgD3.js → sas-CuEH6iIJ.js} +1 -1
  198. package/dist/assets/scratchpad-panel--oc6tyQX.js +1 -0
  199. package/dist/assets/{scss-DIvyDHtT.js → scss-BlV4UnBb.js} +1 -1
  200. package/dist/assets/scss-NmNzk_Zf.js +1 -0
  201. package/dist/assets/sdbl-xDrIgPir.js +1 -0
  202. package/dist/assets/{secrets-panel-BlIKbCgm.js → secrets-panel-BEvDYtNi.js} +1 -1
  203. package/dist/assets/{sequenceDiagram-WL72ISMW-BHHYyLkd.js → sequenceDiagram-WL72ISMW-CGUwnU1T.js} +1 -1
  204. package/dist/assets/{shaderlab-D5vwGw2B.js → shaderlab-HGefy3lX.js} +1 -1
  205. package/dist/assets/shellscript-CWnpfIVd.js +1 -0
  206. package/dist/assets/{shellsession-DPqodGjj.js → shellsession-DN9F7p6q.js} +1 -1
  207. package/dist/assets/snippets-panel-BIDF0xto.js +1 -0
  208. package/dist/assets/{soy-B2_gXGVS.js → soy-xZVRMNo7.js} +1 -1
  209. package/dist/assets/{sparql-Dkh6t6h9.js → sparql-B9ed17pr.js} +1 -1
  210. package/dist/assets/sql-BCMUEiW4.js +1 -0
  211. package/dist/assets/{src-R7nIPgRU.js → src-C0izl9Fx.js} +1 -1
  212. package/dist/assets/{stata-C5URTFfT.js → stata-BpL_33SQ.js} +1 -1
  213. package/dist/assets/state-BToBIIvZ.js +1 -0
  214. package/dist/assets/{state-GOQmrHWh.js → state-BUWnJ0Ly.js} +1 -1
  215. package/dist/assets/{stateDiagram-FKZM4ZOC-IWRHaCgb.js → stateDiagram-FKZM4ZOC-FbkYBg2y.js} +1 -1
  216. package/dist/assets/stateDiagram-v2-4FDKWEC3-DkhmZNet.js +1 -0
  217. package/dist/assets/{step-Cy9SLim8.js → step-DPEIwvoe.js} +1 -1
  218. package/dist/assets/stylus-nltikuP7.js +1 -0
  219. package/dist/assets/{svelte-BlKptMet.js → svelte-DI_4WP4b.js} +1 -1
  220. package/dist/assets/{templ-BsPHdbRC.js → templ-DI8Afhor.js} +1 -1
  221. package/dist/assets/{terminal-D2sy-Waz.js → terminal-C_4Ns3Fs.js} +1 -1
  222. package/dist/assets/tex-CDJH0sDw.js +1 -0
  223. package/dist/assets/{tex-1rcoMxJg.js → tex-DStQkt6N.js} +1 -1
  224. package/dist/assets/textarea-d-UPtQ6q.js +1 -0
  225. package/dist/assets/{time-BI36HTF4.js → time-CdS3VZ8n.js} +1 -1
  226. package/dist/assets/{timeline-definition-IT6M3QCI-BlMXBA1F.js → timeline-definition-IT6M3QCI-D1fKq86a.js} +1 -1
  227. package/dist/assets/{tracing-CkRwWZsW.js → tracing-Csn-104k.js} +1 -1
  228. package/dist/assets/{tracing-panel-D-FQ2AQs.js → tracing-panel-DXlQNpKZ.js} +2 -2
  229. package/dist/assets/{treemap-KMMF4GRG-OjAxT76G.js → treemap-KMMF4GRG-DrMPlNqO.js} +1 -1
  230. package/dist/assets/{ts-tags-DgEj73wl.js → ts-tags-Bnh7Dmjn.js} +1 -1
  231. package/dist/assets/tsx-DKB6JoC0.js +1 -0
  232. package/dist/assets/turtle-BLgGJnnz.js +1 -0
  233. package/dist/assets/{twig-aFZulmnv.js → twig-BAH4DqEc.js} +1 -1
  234. package/dist/assets/{types-mgJcVmSJ.js → types-CKActxHf.js} +1 -1
  235. package/dist/assets/typescript-85LvAE5j.js +1 -0
  236. package/dist/assets/{useAddCell-Dq_OGA6d.js → useAddCell-BrByzpGu.js} +1 -1
  237. package/dist/assets/{useBoolean-BE5lrBVg.js → useBoolean-BKHo47jI.js} +1 -1
  238. package/dist/assets/{useCellActionButton-BDj2KBhe.js → useCellActionButton-BOQPSz5O.js} +1 -1
  239. package/dist/assets/{useDeleteCell-BCwFj4vN.js → useDeleteCell-D5AVSLUE.js} +1 -1
  240. package/dist/assets/useNotebookActions-DgqsaZin.js +1 -0
  241. package/dist/assets/{useRunCells-D8WfVv85.js → useRunCells-Ds9oEET1.js} +1 -1
  242. package/dist/assets/{useSplitCell-BwGnS2JP.js → useSplitCell-aFVCWa6U.js} +1 -1
  243. package/dist/assets/{utilities.esm-DjX7r00f.js → utilities.esm-CFYsyNzv.js} +1 -1
  244. package/dist/assets/{variable-panel-BZlKieX_.js → variable-panel-C8vEDXm4.js} +1 -1
  245. package/dist/assets/{vega-component-CjT5sun6.js → vega-component-BRGu_yST.js} +1 -1
  246. package/dist/assets/{vue-CKT9nSbH.js → vue--gIeQjr8.js} +1 -1
  247. package/dist/assets/vue-B_HxT6r_.js +1 -0
  248. package/dist/assets/{vue-html-D18noJ-r.js → vue-html-C27ztYTf.js} +1 -1
  249. package/dist/assets/{vue-vine-Bnvz9iJZ.js → vue-vine-DI-ZXTmB.js} +1 -1
  250. package/dist/assets/xml-CeNgF7kS.js +1 -0
  251. package/dist/assets/{xml-BcMKyt_P.js → xml-DIxJIKCS.js} +1 -1
  252. package/dist/assets/{xsl-VK0PRWSO.js → xsl-4Sp2Mdn6.js} +1 -1
  253. package/dist/assets/{xychartDiagram-PRI3JC2R-CuBIRers.js → xychartDiagram-PRI3JC2R-CUU7ukP_.js} +1 -1
  254. package/dist/assets/yaml-Bqhzr1cU.js +1 -0
  255. package/dist/index.html +33 -34
  256. package/package.json +1 -1
  257. package/src/components/app-config/user-config-form.tsx +14 -1
  258. package/src/components/editor/chrome/components/contribute-snippet-button.tsx +22 -103
  259. package/src/components/editor/controls/duplicate-shortcut-banner.tsx +50 -0
  260. package/src/components/editor/controls/keyboard-shortcuts.tsx +25 -2
  261. package/src/components/editor/notebook-cell.tsx +4 -3
  262. package/src/components/editor/output/__tests__/ansi-reduce.test.ts +6 -6
  263. package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +3 -3
  264. package/src/components/pages/home-page.tsx +6 -0
  265. package/src/components/scratchpad/scratchpad.tsx +2 -1
  266. package/src/core/constants.ts +10 -0
  267. package/src/core/layout/useTogglePresenting.ts +69 -25
  268. package/src/core/state/__mocks__/mocks.ts +1 -0
  269. package/src/hooks/__tests__/useDuplicateShortcuts.test.ts +449 -0
  270. package/src/hooks/useDuplicateShortcuts.ts +145 -0
  271. package/src/plugins/impl/NumberPlugin.tsx +1 -1
  272. package/src/plugins/impl/__tests__/NumberPlugin.test.tsx +1 -1
  273. package/src/plugins/layout/NavigationMenuPlugin.tsx +24 -22
  274. package/src/utils/__tests__/json-parser.test.ts +1 -1
  275. package/dist/assets/angular-html-qOWu-bq5.js +0 -1
  276. package/dist/assets/app-config-button-CrQE8pCi.js +0 -1
  277. package/dist/assets/c-DK7yxhEk.js +0 -1
  278. package/dist/assets/channel-OTfZ1-1I.js +0 -1
  279. package/dist/assets/chat-panel-CGsuZ5Go.js +0 -3
  280. package/dist/assets/chunk-55IACEB6-s81xpI0r.js +0 -1
  281. package/dist/assets/classDiagram-2ON5EDUG-XevY1wkt.js +0 -1
  282. package/dist/assets/classDiagram-v2-WZHVMYZB-DaUQ3aCS.js +0 -1
  283. package/dist/assets/cmake-DnKi9GbG.js +0 -1
  284. package/dist/assets/command-palette-DvhRIrgJ.js +0 -1
  285. package/dist/assets/cpp-DGKGBFed.js +0 -1
  286. package/dist/assets/csharp-DE0jZV2l.js +0 -1
  287. package/dist/assets/css-CsweFm2_.js +0 -1
  288. package/dist/assets/datasources-panel-BO36gzyB.js +0 -1
  289. package/dist/assets/diff-q90s40US.js +0 -1
  290. package/dist/assets/form-BjObeC0h.js +0 -1
  291. package/dist/assets/form-DTev0psg.js +0 -2
  292. package/dist/assets/fortran-free-form-HryIQ4W-.js +0 -1
  293. package/dist/assets/gdscript-Cfb7DTSE.js +0 -1
  294. package/dist/assets/gdshader-BNcJtWpI.js +0 -1
  295. package/dist/assets/glsl-k2CEL1ZR.js +0 -1
  296. package/dist/assets/go-DDeMiLXS.js +0 -1
  297. package/dist/assets/graphql-BOuQbvtY.js +0 -1
  298. package/dist/assets/haml-x4wHzfmM.js +0 -1
  299. package/dist/assets/haxe-Y8l9Vw7S.js +0 -1
  300. package/dist/assets/hlsl-BC9vLe5i.js +0 -1
  301. package/dist/assets/home-page-DPyNY7-N.js +0 -4
  302. package/dist/assets/html-6zcPP9vQ.js +0 -1
  303. package/dist/assets/html-derivative-CZ_iVBpw.js +0 -1
  304. package/dist/assets/java-D0JYojV3.js +0 -1
  305. package/dist/assets/javascript-fnYBTrQU.js +0 -1
  306. package/dist/assets/json-DdkjtEAy.js +0 -1
  307. package/dist/assets/jsx-BRHOEKay.js +0 -1
  308. package/dist/assets/lazy-KZ8U4iLp.js +0 -2
  309. package/dist/assets/less-D8ABr8rk.js +0 -1
  310. package/dist/assets/links-BlVLDD3s.js +0 -1
  311. package/dist/assets/lua-DVEqmH0Q.js +0 -1
  312. package/dist/assets/markdown-YxR0PAO-.js +0 -1
  313. package/dist/assets/mermaid.core-DXVTV2Hj.js +0 -1
  314. package/dist/assets/packages-panel-DmcUg1VD.js +0 -1
  315. package/dist/assets/php-CF0VHhQN.js +0 -1
  316. package/dist/assets/postcss-DBPrVyi7.js +0 -1
  317. package/dist/assets/python-q_66F1lX.js +0 -1
  318. package/dist/assets/react-vega-BwyCQsXO.js +0 -1
  319. package/dist/assets/regexp-BO0NINwb.js +0 -1
  320. package/dist/assets/ruby-BS61p2-p.js +0 -1
  321. package/dist/assets/scratchpad-panel-BSZ3o7dX.js +0 -1
  322. package/dist/assets/scss-DtVaFBIG.js +0 -1
  323. package/dist/assets/sdbl-n1NYlSsH.js +0 -1
  324. package/dist/assets/shellscript-B9GqbbDf.js +0 -1
  325. package/dist/assets/snippets-panel-U33d2abo.js +0 -1
  326. package/dist/assets/sql-DYHm1Gmq.js +0 -1
  327. package/dist/assets/state-C0NcdwFM.js +0 -1
  328. package/dist/assets/stateDiagram-v2-4FDKWEC3-BcvK7_p4.js +0 -1
  329. package/dist/assets/stylus-BotWR-Ny.js +0 -1
  330. package/dist/assets/tex-DjXSwZnW.js +0 -1
  331. package/dist/assets/textarea-BOYy-qvB.js +0 -1
  332. package/dist/assets/tsx-DtNi9Nb6.js +0 -1
  333. package/dist/assets/turtle-DYkY6F5e.js +0 -1
  334. package/dist/assets/typescript-BV-JiWcR.js +0 -1
  335. package/dist/assets/useNotebookActions-Cm45caIw.js +0 -1
  336. package/dist/assets/vue-tjC6Sbnx.js +0 -1
  337. package/dist/assets/xml-C2l9gxhy.js +0 -1
  338. package/dist/assets/yaml-4s6R0_yj.js +0 -1
  339. /package/dist/assets/{ImageComparisonComponent-D3YD6U99.js → ImageComparisonComponent-K5BS8sdE.js} +0 -0
  340. /package/dist/assets/{Inputs-DoHz4Ac3.js → Inputs-DvhARDSy.js} +0 -0
  341. /package/dist/assets/{TinyCode-Cao0NuXg.js → TinyCode-x_5B700C.js} +0 -0
  342. /package/dist/assets/{abap-DxePiFXy.js → abap-D1Z-L_5q.js} +0 -0
  343. /package/dist/assets/{actionscript-3-loviFdIr.js → actionscript-3-D54xMgAT.js} +0 -0
  344. /package/dist/assets/{ada-BHYSdrTr.js → ada-JV3xjdTK.js} +0 -0
  345. /package/dist/assets/{andromeeda-D4KLNorU.js → andromeeda-CDvHizgn.js} +0 -0
  346. /package/dist/assets/{any-language-editor-D81IZ5GK.js → any-language-editor-DuK-ILO6.js} +0 -0
  347. /package/dist/assets/{apache-Dub_2Yvr.js → apache-BZv9EbRt.js} +0 -0
  348. /package/dist/assets/{apex-CdLLfTKz.js → apex-Bd5xyvHz.js} +0 -0
  349. /package/dist/assets/{applescript-uRrY4stD.js → applescript-DIi4_Xi7.js} +0 -0
  350. /package/dist/assets/{ara-CuqrI37H.js → ara-BupzijwJ.js} +0 -0
  351. /package/dist/assets/{array-BLCDwreq.js → array-bj4GuPbJ.js} +0 -0
  352. /package/dist/assets/{asciidoc-LIbwK8dJ.js → asciidoc-1ZHD9O7I.js} +0 -0
  353. /package/dist/assets/{asm-BoI_VDIP.js → asm-BpvIZ69Y.js} +0 -0
  354. /package/dist/assets/{asterisk-B-OBxvds.js → asterisk-DiARfDaC.js} +0 -0
  355. /package/dist/assets/{aurora-x-BxnuLyJ0.js → aurora-x-Br-m95KW.js} +0 -0
  356. /package/dist/assets/{awk-BX7Qs7iG.js → awk-Cyd7xl0x.js} +0 -0
  357. /package/dist/assets/{ayu-dark-DQpZZSnB.js → ayu-dark-CN25i7B4.js} +0 -0
  358. /package/dist/assets/{ballerina-CoqJei6s.js → ballerina-DMqwvGaL.js} +0 -0
  359. /package/dist/assets/{bat-BDhPfOcC.js → bat-BXAhszio.js} +0 -0
  360. /package/dist/assets/{beancount-CPXtIDDe.js → beancount-DwTwPpP0.js} +0 -0
  361. /package/dist/assets/{berry-tZMHhl5s.js → berry-BpYXyvjy.js} +0 -0
  362. /package/dist/assets/{bibtex-MJ4zGLoW.js → bibtex-ISeJbbs3.js} +0 -0
  363. /package/dist/assets/{bicep-Cbjc1EE1.js → bicep-CUWX3w6F.js} +0 -0
  364. /package/dist/assets/{c-CXCYKfDi.js → c-B3hbGfdD.js} +0 -0
  365. /package/dist/assets/{cadence-DXVwaoxC.js → cadence-CwMWcknp.js} +0 -0
  366. /package/dist/assets/{catppuccin-frappe-Dq3-TlMz.js → catppuccin-frappe-DlIq2PyH.js} +0 -0
  367. /package/dist/assets/{catppuccin-latte-BHbMv0gf.js → catppuccin-latte-DfbG9iiU.js} +0 -0
  368. /package/dist/assets/{catppuccin-macchiato-BR3V9GdK.js → catppuccin-macchiato-BCT9pBsM.js} +0 -0
  369. /package/dist/assets/{catppuccin-mocha-_q9HZHtP.js → catppuccin-mocha-C-3tcdmj.js} +0 -0
  370. /package/dist/assets/{chat-components-CGtn3dSB.js → chat-components-DzWMl02B.js} +0 -0
  371. /package/dist/assets/{chunk-6MN3ZHY7-BaGu-E-4.js → chunk-6MN3ZHY7-Db4OXWfQ.js} +0 -0
  372. /package/dist/assets/{chunk-76Q3JFCE-CqxV2TaJ.js → chunk-76Q3JFCE-MoKVUmPd.js} +0 -0
  373. /package/dist/assets/{chunk-FWNWRKHM-Dy8-EtNA.js → chunk-FWNWRKHM-CAStKZ1H.js} +0 -0
  374. /package/dist/assets/{chunk-LBM3YZW2-CskV0o9K.js → chunk-LBM3YZW2-DECJ0RIr.js} +0 -0
  375. /package/dist/assets/{chunk-LHMN2FUI-ehm0Evo6.js → chunk-LHMN2FUI-CZFxxXco.js} +0 -0
  376. /package/dist/assets/{chunk-O7ZBX7Z2-C-g5bK2c.js → chunk-O7ZBX7Z2-B5IhsoVf.js} +0 -0
  377. /package/dist/assets/{chunk-S6J4BHB3-DPUJrVeh.js → chunk-S6J4BHB3-1pPGBAFs.js} +0 -0
  378. /package/dist/assets/{chunk-T53DSG4Q-Dv0rCIuT.js → chunk-T53DSG4Q-BBZDImTa.js} +0 -0
  379. /package/dist/assets/{clarity-CJjyLoBB.js → clarity-C_Q3Q1C_.js} +0 -0
  380. /package/dist/assets/{clear-button-BKX-NUB4.js → clear-button-DJ8_0gR3.js} +0 -0
  381. /package/dist/assets/{click-outside-container-DetGE8-X.js → click-outside-container-MMVNWqLS.js} +0 -0
  382. /package/dist/assets/{clojure-DXtjxNRs.js → clojure-CH1e77ix.js} +0 -0
  383. /package/dist/assets/{cmake-D91H72Gs.js → cmake-Dgb5Lyq9.js} +0 -0
  384. /package/dist/assets/{codeowners-orA2uJoI.js → codeowners-DOFJDUHD.js} +0 -0
  385. /package/dist/assets/{codeql-DFjnPoB5.js → codeql-CtuYP9qg.js} +0 -0
  386. /package/dist/assets/{colors-DdaNPisK.js → colors-B9JZ1tur.js} +0 -0
  387. /package/dist/assets/{common-keywords-jeunqxtr.js → common-keywords-SbjdiiT2.js} +0 -0
  388. /package/dist/assets/{common-lisp-BGI4U1eD.js → common-lisp-DzktjHXv.js} +0 -0
  389. /package/dist/assets/{constants-BMMfj8a0.js → constants-jbSFyU5S.js} +0 -0
  390. /package/dist/assets/{coq-pUDHcqnM.js → coq-tzTPg-q2.js} +0 -0
  391. /package/dist/assets/{csharp-DO2e9dSM.js → csharp-CAyFH1uq.js} +0 -0
  392. /package/dist/assets/{css-DtKkbFBH.js → css-ZSA9R7AF.js} +0 -0
  393. /package/dist/assets/{csv-DyNeMINd.js → csv-De4jsG8p.js} +0 -0
  394. /package/dist/assets/{cue-BqeXqyDz.js → cue-DMLkv97W.js} +0 -0
  395. /package/dist/assets/{cypher-BsFgydv-.js → cypher-Ceemj-Is.js} +0 -0
  396. /package/dist/assets/{cytoscape.esm--kAy4Luj.js → cytoscape.esm-asoeCsL1.js} +0 -0
  397. /package/dist/assets/{d-C1srouON.js → d-CdX2Porx.js} +0 -0
  398. /package/dist/assets/{dark-plus-BaRJAIpI.js → dark-plus-qMpINP2g.js} +0 -0
  399. /package/dist/assets/{dart-CtVHE7nw.js → dart-COmex10B.js} +0 -0
  400. /package/dist/assets/{dax-iZqzS7ix.js → dax-DJ47sIed.js} +0 -0
  401. /package/dist/assets/{desktop-BAj6OCw6.js → desktop-DY7N7KdY.js} +0 -0
  402. /package/dist/assets/{diff-Bq0z3j0u.js → diff-DkDLU4Wy.js} +0 -0
  403. /package/dist/assets/{dist-C3NfsvPr.js → dist-D0SBdfFe.js} +0 -0
  404. /package/dist/assets/{dist-PMig389l.js → dist-Dr2c9ly3.js} +0 -0
  405. /package/dist/assets/{dist-_Q2jiHxJ.js → dist-H3OKX6lq.js} +0 -0
  406. /package/dist/assets/{dist-BmUQz5fw.js → dist-Sjq7q5Ez.js} +0 -0
  407. /package/dist/assets/{dist-Defk0C2q.js → dist-W1ShJE5f.js} +0 -0
  408. /package/dist/assets/{docker-Cr2CnLQ2.js → docker-B2CjJVhm.js} +0 -0
  409. /package/dist/assets/{dockerfile-C762TJXL.js → dockerfile-B_QLo1At.js} +0 -0
  410. /package/dist/assets/{dotenv-KU02onGh.js → dotenv-Cyagbxs1.js} +0 -0
  411. /package/dist/assets/{dracula-CvSC8Czt.js → dracula-CvV5-mag.js} +0 -0
  412. /package/dist/assets/{dracula-soft-B4J0PAvT.js → dracula-soft-PvQYCfkb.js} +0 -0
  413. /package/dist/assets/{dream-maker-B3Dm3pQl.js → dream-maker-B0_XeRpu.js} +0 -0
  414. /package/dist/assets/{duckdb-keywords-C79Zr-4E.js → duckdb-keywords-1LrL1yMB.js} +0 -0
  415. /package/dist/assets/{ebnf-Du2bRoLG.js → ebnf-dF3cEqvZ.js} +0 -0
  416. /package/dist/assets/{emacs-lisp-BdobIt1g.js → emacs-lisp-ChCDqZ1h.js} +0 -0
  417. /package/dist/assets/{empty-state-Q1kmIC8W.js → empty-state-C0F9aXq7.js} +0 -0
  418. /package/dist/assets/{esm-E62eMmKt.js → esm-i8Q6E3KX.js} +0 -0
  419. /package/dist/assets/{everforest-dark-rX5J0dkQ.js → everforest-dark-HrmalDfI.js} +0 -0
  420. /package/dist/assets/{everforest-light-Ds8wUCP6.js → everforest-light-CTgZ_gPY.js} +0 -0
  421. /package/dist/assets/{fcl-AN_7s6hb.js → fcl-B-rgLKAF.js} +0 -0
  422. /package/dist/assets/{fennel-DE_pVddn.js → fennel-MZxGNSrM.js} +0 -0
  423. /package/dist/assets/{fish-cjNcekQO.js → fish-DRCDgPk5.js} +0 -0
  424. /package/dist/assets/{fluent-DJr0gNkP.js → fluent-NvaHTkBM.js} +0 -0
  425. /package/dist/assets/{fortran-free-form-eUr81bMp.js → fortran-free-form-CdgvemYo.js} +0 -0
  426. /package/dist/assets/{gdscript-66Cf2nnq.js → gdscript-D-KniuQ4.js} +0 -0
  427. /package/dist/assets/{gdshader-BpCIw3Sv.js → gdshader-5lUCkj-c.js} +0 -0
  428. /package/dist/assets/{genie-DeyJF9Ze.js → genie-Dbfmdf17.js} +0 -0
  429. /package/dist/assets/{gherkin-fnQTohuB.js → gherkin-9NiplwFZ.js} +0 -0
  430. /package/dist/assets/{github-dark-uDumM3l4.js → github-dark-CxvE91gQ.js} +0 -0
  431. /package/dist/assets/{github-dark-default-DDVM0vOe.js → github-dark-default-1SCW2CGt.js} +0 -0
  432. /package/dist/assets/{github-dark-dimmed-iRg1V-7L.js → github-dark-dimmed-CJAUeRrR.js} +0 -0
  433. /package/dist/assets/{github-dark-high-contrast-C5-unF21.js → github-dark-high-contrast-CykF8Y7T.js} +0 -0
  434. /package/dist/assets/{github-light-DuiFVio6.js → github-light-ChCxt24M.js} +0 -0
  435. /package/dist/assets/{github-light-default-CmrjzqeI.js → github-light-default-RoBmoNdk.js} +0 -0
  436. /package/dist/assets/{github-light-high-contrast-CqfwEQNX.js → github-light-high-contrast-D_tUORxl.js} +0 -0
  437. /package/dist/assets/{gleam-DWpcZsx2.js → gleam-CP_METjM.js} +0 -0
  438. /package/dist/assets/{gnuplot-DPuXsSVA.js → gnuplot-Doud-VAQ.js} +0 -0
  439. /package/dist/assets/{go-RRaiDSpA.js → go-CNGyJWjZ.js} +0 -0
  440. /package/dist/assets/{groovy-DWAM6JNR.js → groovy-DVSHCuuj.js} +0 -0
  441. /package/dist/assets/{gruvbox-dark-hard-ZcheWvOc.js → gruvbox-dark-hard-qkid6bYx.js} +0 -0
  442. /package/dist/assets/{gruvbox-dark-medium-BADfnTRm.js → gruvbox-dark-medium-AtXDSk3i.js} +0 -0
  443. /package/dist/assets/{gruvbox-dark-soft-CoSCAPGu.js → gruvbox-dark-soft-AyAMMmM7.js} +0 -0
  444. /package/dist/assets/{gruvbox-light-hard-_daP3e07.js → gruvbox-light-hard-CTUpa453.js} +0 -0
  445. /package/dist/assets/{gruvbox-light-medium-B6EX0gu8.js → gruvbox-light-medium-DRd-CCVA.js} +0 -0
  446. /package/dist/assets/{gruvbox-light-soft-D71M2TiB.js → gruvbox-light-soft-B5_s24l8.js} +0 -0
  447. /package/dist/assets/{haskell-CbnANGVy.js → haskell-uYgJ4Z8d.js} +0 -0
  448. /package/dist/assets/{haxe-BCyu6f-Y.js → haxe-nhPqZkCg.js} +0 -0
  449. /package/dist/assets/{hcl-BrzU5nOA.js → hcl-DRH2AP2G.js} +0 -0
  450. /package/dist/assets/{hjson-nOuwQKVZ.js → hjson-770-uRQt.js} +0 -0
  451. /package/dist/assets/{hlsl-CSw5uEjR.js → hlsl-v-fW8xE0.js} +0 -0
  452. /package/dist/assets/{houston-BWAmWqDi.js → houston-BG3WemGs.js} +0 -0
  453. /package/dist/assets/{http-DgnuoVuu.js → http-yVvkAwUM.js} +0 -0
  454. /package/dist/assets/{hy-BX6LbTxm.js → hy-BQjdOFLb.js} +0 -0
  455. /package/dist/assets/{icon-32x32-CTeqBIMC.js → icon-32x32-BtZ5PsD0.js} +0 -0
  456. /package/dist/assets/{imba-YSUcRLzb.js → imba-BSA0-GwH.js} +0 -0
  457. /package/dist/assets/{ini-Cz_LajY8.js → ini-BSbqRFHk.js} +0 -0
  458. /package/dist/assets/{init-MQWkw9UL.js → init-CH1jaKcr.js} +0 -0
  459. /package/dist/assets/{java-BfNYa0tJ.js → java-De5awGet.js} +0 -0
  460. /package/dist/assets/{javascript-BJ0-m6fu.js → javascript-hAQlDAdU.js} +0 -0
  461. /package/dist/assets/{json-C1OKNpxm.js → json-Cqy3CSs1.js} +0 -0
  462. /package/dist/assets/{json5-B5zHZpXv.js → json5-DdnG7oJF.js} +0 -0
  463. /package/dist/assets/{jsonc-C8o88KUg.js → jsonc-WrScgXXk.js} +0 -0
  464. /package/dist/assets/{jsonl-DhMbCT_e.js → jsonl-BcQA_K38.js} +0 -0
  465. /package/dist/assets/{jsonnet-DHb50-fk.js → jsonnet-BfDPKcCs.js} +0 -0
  466. /package/dist/assets/{jssm-Cj9PYafd.js → jssm-S7SP4HO6.js} +0 -0
  467. /package/dist/assets/{jsx-CUti7cdn.js → jsx-BqUP8u50.js} +0 -0
  468. /package/dist/assets/{kanagawa-dragon-CcpjQ1rU.js → kanagawa-dragon-BAIXtD5S.js} +0 -0
  469. /package/dist/assets/{kanagawa-lotus-DgjqMG_f.js → kanagawa-lotus-zEsYpsSm.js} +0 -0
  470. /package/dist/assets/{kanagawa-wave-F7l1o1xb.js → kanagawa-wave-UNA8R8g6.js} +0 -0
  471. /package/dist/assets/{kotlin-D-g5849J.js → kotlin-Chs5n2bu.js} +0 -0
  472. /package/dist/assets/{kusto-9WeuGAhE.js → kusto-COKe-O_e.js} +0 -0
  473. /package/dist/assets/{laserwave-DLwMaxtK.js → laserwave-kT1H6lw-.js} +0 -0
  474. /package/dist/assets/{lean-Bba3V5Y9.js → lean-DUug0SwA.js} +0 -0
  475. /package/dist/assets/{less-DwYCcztn.js → less--oQJH9Q1.js} +0 -0
  476. /package/dist/assets/{light-plus-hdlJW_86.js → light-plus-DgdTskSs.js} +0 -0
  477. /package/dist/assets/{llvm-D98fD3Nh.js → llvm-BPj-c3p9.js} +0 -0
  478. /package/dist/assets/{log-BOd_fBKp.js → log-BH13g8Nw.js} +0 -0
  479. /package/dist/assets/{logo-Cm0FUGOF.js → logo-DNn5dvJc.js} +0 -0
  480. /package/dist/assets/{loro_wasm_bg-Cq3oLczA.js → loro_wasm_bg-Bzb1jHum.js} +0 -0
  481. /package/dist/assets/{luau-6zHmGhkW.js → luau-DL3sEuii.js} +0 -0
  482. /package/dist/assets/{make-U8HwnuHe.js → make-BdeTVDRa.js} +0 -0
  483. /package/dist/assets/{markdown-d7Cz4if8.js → markdown-vGgQFzW0.js} +0 -0
  484. /package/dist/assets/{material-theme-I6Y7OkaK.js → material-theme-CkoNJvCe.js} +0 -0
  485. /package/dist/assets/{material-theme-darker-CNcEf8sm.js → material-theme-darker-CB2doNe8.js} +0 -0
  486. /package/dist/assets/{material-theme-lighter-D3evP2su.js → material-theme-lighter-DuCJ6WZ5.js} +0 -0
  487. /package/dist/assets/{material-theme-ocean-CPEtfO_B.js → material-theme-ocean-DCuGJ6FB.js} +0 -0
  488. /package/dist/assets/{material-theme-palenight-D_u9ejG5.js → material-theme-palenight-CfuFbWVx.js} +0 -0
  489. /package/dist/assets/{math-CJEhL5Or.js → math-CqRXdPQw.js} +0 -0
  490. /package/dist/assets/{matlab-CEwZHCMo.js → matlab-akoGkA0O.js} +0 -0
  491. /package/dist/assets/{mdx-CO8y8wiY.js → mdx-DLxMURj7.js} +0 -0
  492. /package/dist/assets/{mermaid-DMV7PGFu.js → mermaid-CEVlDHkO.js} +0 -0
  493. /package/dist/assets/{mhchem-jH__Szog.js → mhchem-CLsIUv8b.js} +0 -0
  494. /package/dist/assets/{min-dark-Dag83Pcc.js → min-dark-IIJ-x9kz.js} +0 -0
  495. /package/dist/assets/{min-light-B50ygFVa.js → min-light-D2T-CjOQ.js} +0 -0
  496. /package/dist/assets/{mipsasm-DX3GgTT2.js → mipsasm-Ctoz7zuP.js} +0 -0
  497. /package/dist/assets/{mojo-BjZAp1JB.js → mojo-D8g11cZ6.js} +0 -0
  498. /package/dist/assets/{monokai-BCLA0yyf.js → monokai-ijJEF77N.js} +0 -0
  499. /package/dist/assets/{move-lI3LwkmI.js → move-CB8XiRFg.js} +0 -0
  500. /package/dist/assets/{multi-icon-Du4jZia9.js → multi-icon-BghmJYOx.js} +0 -0
  501. /package/dist/assets/{narrat-fKgCSVgL.js → narrat-CIBCqQK9.js} +0 -0
  502. /package/dist/assets/{nextflow-oneXHs3b.js → nextflow-BS0FFmxq.js} +0 -0
  503. /package/dist/assets/{nginx-BsgJS-4H.js → nginx-BJ0Q8Eme.js} +0 -0
  504. /package/dist/assets/{night-owl-gYOT99lk.js → night-owl-CIsIp5O3.js} +0 -0
  505. /package/dist/assets/{nix-CC0kcI7F.js → nix-C1QvDerr.js} +0 -0
  506. /package/dist/assets/{nord-C_aPIcqR.js → nord-D1sb3CmD.js} +0 -0
  507. /package/dist/assets/{nushell-CP-Gie43.js → nushell-CXLz08Lx.js} +0 -0
  508. /package/dist/assets/{objective-c-b6Zsv9Ym.js → objective-c-B_HUYiGQ.js} +0 -0
  509. /package/dist/assets/{objective-cpp-BD265VSU.js → objective-cpp-DW9bw8lt.js} +0 -0
  510. /package/dist/assets/{ocaml-BCGy2li-.js → ocaml-KWnRg_uN.js} +0 -0
  511. /package/dist/assets/{one-dark-pro-DkCruvRZ.js → one-dark-pro-BaVvieuD.js} +0 -0
  512. /package/dist/assets/{one-light-G7zLNBR4.js → one-light-lH2J1XQJ.js} +0 -0
  513. /package/dist/assets/{pascal-Ho8hIYey.js → pascal-ClnlVJPk.js} +0 -0
  514. /package/dist/assets/{path-Whqm9ggf.js → path-B7okaUWq.js} +0 -0
  515. /package/dist/assets/{plastic-Du1swyNU.js → plastic-DuR5v6Wc.js} +0 -0
  516. /package/dist/assets/{plsql-CT7rXBpG.js → plsql-DgP3xvUq.js} +0 -0
  517. /package/dist/assets/{po-czm9byVG.js → po-DU1OdSeR.js} +0 -0
  518. /package/dist/assets/{poimandres-D78SF0Pk.js → poimandres-CyWDVjZC.js} +0 -0
  519. /package/dist/assets/{polar-DxmE_2om.js → polar-Dd9fJQjn.js} +0 -0
  520. /package/dist/assets/{postcss-Dle6gmTk.js → postcss-D4Q_M6OS.js} +0 -0
  521. /package/dist/assets/{powerquery-DkWimkCS.js → powerquery-CLLesowi.js} +0 -0
  522. /package/dist/assets/{powershell-C-NBx5WM.js → powershell-DHd7gEZS.js} +0 -0
  523. /package/dist/assets/{prisma-DVVbwJf5.js → prisma-CMDJZhIH.js} +0 -0
  524. /package/dist/assets/{prolog-CuCKoun9.js → prolog-BBkWPVLS.js} +0 -0
  525. /package/dist/assets/{proto-sz0WkDoC.js → proto-DMZFD88l.js} +0 -0
  526. /package/dist/assets/{puppet-Dkhn3sn4.js → puppet-BRhdqd5E.js} +0 -0
  527. /package/dist/assets/{purescript-B1I6EIa6.js → purescript-CEd64Rnc.js} +0 -0
  528. /package/dist/assets/{python-o2F1Etvb.js → python-BaVivF5K.js} +0 -0
  529. /package/dist/assets/{qmldir-CuqHMvOy.js → qmldir-C1aL24FM.js} +0 -0
  530. /package/dist/assets/{qss-C3E5pKGW.js → qss-Cdx18Xax.js} +0 -0
  531. /package/dist/assets/{r-CTyfvtqP.js → r-CtoJYLo-.js} +0 -0
  532. /package/dist/assets/{racket-gWP07v-p.js → racket-CwO0Lr2J.js} +0 -0
  533. /package/dist/assets/{raku-Uricbtek.js → raku-DDSWLJPm.js} +0 -0
  534. /package/dist/assets/{react-plotly-DDLpxvn5.js → react-plotly-DKr4J-io.js} +0 -0
  535. /package/dist/assets/{red-C5FdDgHI.js → red-BfwQnrVf.js} +0 -0
  536. /package/dist/assets/{reg-C7J3B58q.js → reg-Cf6RGOkx.js} +0 -0
  537. /package/dist/assets/{regexp-C1TUIf6h.js → regexp-BYhcVMQ-.js} +0 -0
  538. /package/dist/assets/{rel-CLkNsjPn.js → rel-j0w3UkgS.js} +0 -0
  539. /package/dist/assets/{request-registry-DMm1Lqvw.js → request-registry-B_gRKz92.js} +0 -0
  540. /package/dist/assets/{requests-DwcRL3oc.js → requests-DahrJP1H.js} +0 -0
  541. /package/dist/assets/{riscv-BDDxN-GM.js → riscv-ByXk41Qm.js} +0 -0
  542. /package/dist/assets/{rose-pine-B0GKpd9B.js → rose-pine-DqgHatX7.js} +0 -0
  543. /package/dist/assets/{rose-pine-dawn-DreZFsmm.js → rose-pine-dawn-CM4MUJgI.js} +0 -0
  544. /package/dist/assets/{rose-pine-moon-1ofUK8uz.js → rose-pine-moon-CHBhcNNY.js} +0 -0
  545. /package/dist/assets/{runs-ktQuNucz.js → runs-CaPopRXH.js} +0 -0
  546. /package/dist/assets/{rust-HFHVPrUY.js → rust-OKxW0BES.js} +0 -0
  547. /package/dist/assets/{sass-TWWLiu7U.js → sass-C6vf7Dvi.js} +0 -0
  548. /package/dist/assets/{scala-MKsUm-uW.js → scala-CUwoZYlq.js} +0 -0
  549. /package/dist/assets/{scheme-BoPdLMBn.js → scheme-DNpnyiZP.js} +0 -0
  550. /package/dist/assets/{sdbl-Dczl6J-p.js → sdbl-B3CmJ4_s.js} +0 -0
  551. /package/dist/assets/{shellscript-CsoyuLD9.js → shellscript-DOy2nPFr.js} +0 -0
  552. /package/dist/assets/{slack-dark-BGKxO96g.js → slack-dark-Dt_0Md1_.js} +0 -0
  553. /package/dist/assets/{slack-ochin-rH4j_MGJ.js → slack-ochin-C1pvDiLv.js} +0 -0
  554. /package/dist/assets/{slides-component-Cah21n3w.js → slides-component-BpP55T4f.js} +0 -0
  555. /package/dist/assets/{smalltalk-CTR0g6Eo.js → smalltalk-DeT6QCSw.js} +0 -0
  556. /package/dist/assets/{snazzy-light-CvG-GkvX.js → snazzy-light-CjXOb3HE.js} +0 -0
  557. /package/dist/assets/{solarized-dark-DGJyER8s.js → solarized-dark-DIymRRun.js} +0 -0
  558. /package/dist/assets/{solarized-light-CXpzAEuU.js → solarized-light-C9bfe0pM.js} +0 -0
  559. /package/dist/assets/{solidity-F1C0jU35.js → solidity-Df1--CzQ.js} +0 -0
  560. /package/dist/assets/{solr-D_MwF19e.js → solr-22vMYYBB.js} +0 -0
  561. /package/dist/assets/{splunk-CcWfAxQh.js → splunk-GMtHe9Ud.js} +0 -0
  562. /package/dist/assets/{spreadsheet-DK4de3zi.js → spreadsheet-6pcF7kl3.js} +0 -0
  563. /package/dist/assets/{sql-BZL3rKzd.js → sql-B_5kbdRZ.js} +0 -0
  564. /package/dist/assets/{sql-DGjfNEBw.js → sql-CtdBWFvz.js} +0 -0
  565. /package/dist/assets/{src-cSe6DUft.js → src-BgRVyE5A.js} +0 -0
  566. /package/dist/assets/{ssh-config-BFXbz4pv.js → ssh-config-BAZgW9d2.js} +0 -0
  567. /package/dist/assets/{state-CcQ97JO_.js → state-LF49AOw7.js} +0 -0
  568. /package/dist/assets/{stylus-C5w_LTi4.js → stylus-BgsHecy0.js} +0 -0
  569. /package/dist/assets/{swift-B1AYZCjL.js → swift-BFTceoDT.js} +0 -0
  570. /package/dist/assets/{switch-DXZyYXuk.js → switch-BskylHTJ.js} +0 -0
  571. /package/dist/assets/{synthwave-84-ZAlpH9Ym.js → synthwave-84-BtbL421X.js} +0 -0
  572. /package/dist/assets/{system-verilog-DDQxypqF.js → system-verilog-eEv6Jl-G.js} +0 -0
  573. /package/dist/assets/{systemd-Bz3p_k3b.js → systemd-BAGTy3BE.js} +0 -0
  574. /package/dist/assets/{talonscript-DIxhFJMM.js → talonscript-CdbOsON7.js} +0 -0
  575. /package/dist/assets/{tasl-BqPjs6kw.js → tasl-Q2f-wQrD.js} +0 -0
  576. /package/dist/assets/{tcl-DdIfswmD.js → tcl-p_gBMeoR.js} +0 -0
  577. /package/dist/assets/{terraform-Bs_EshJ8.js → terraform-B54vlzKW.js} +0 -0
  578. /package/dist/assets/{tiddlywiki-BazK34jE.js → tiddlywiki-Cpw-vTdJ.js} +0 -0
  579. /package/dist/assets/{tiki-FVbW2x_-.js → tiki-RFHR5l3d.js} +0 -0
  580. /package/dist/assets/{timer-CjInJf90.js → timer-yuocpjOJ.js} +0 -0
  581. /package/dist/assets/{tokyo-night-BhO4uZ92.js → tokyo-night-Cx0X8b_T.js} +0 -0
  582. /package/dist/assets/{toml-C6QaSv9d.js → toml-Dv0Gb0wx.js} +0 -0
  583. /package/dist/assets/{treemap-C4MB7fhl.js → treemap-vyAuwhdg.js} +0 -0
  584. /package/dist/assets/{tsv-BAKfX8wv.js → tsv-Ut6uyypY.js} +0 -0
  585. /package/dist/assets/{tsx-aFodw_xS.js → tsx-D756ZH1Y.js} +0 -0
  586. /package/dist/assets/{turtle-D5Y7qw_i.js → turtle-DvlqL4De.js} +0 -0
  587. /package/dist/assets/{types-9ZxV92yA.js → types-BKy85QqA.js} +0 -0
  588. /package/dist/assets/{typescript-CbzbRIOY.js → typescript-Bjkeag3f.js} +0 -0
  589. /package/dist/assets/{typespec-DMsY6JbU.js → typespec-l75HlZAh.js} +0 -0
  590. /package/dist/assets/{typst-CvWWmKf3.js → typst-D5DOy-Nw.js} +0 -0
  591. /package/dist/assets/{useInterval-BlrlAz25.js → useInterval-DIIyxDFF.js} +0 -0
  592. /package/dist/assets/{v-BETRwRCQ.js → v-BRTHAjS3.js} +0 -0
  593. /package/dist/assets/{vala-PKPtNQTj.js → vala-B4SSIQsl.js} +0 -0
  594. /package/dist/assets/{vb-CxRBS5lI.js → vb-BKRIf9S9.js} +0 -0
  595. /package/dist/assets/{verilog-BvRlaZ0s.js → verilog-YDWw5rF_.js} +0 -0
  596. /package/dist/assets/{vesper-CAgzRfn0.js → vesper-B-uz6_AN.js} +0 -0
  597. /package/dist/assets/{vhdl-WKARZqAU.js → vhdl-e7mgPsnL.js} +0 -0
  598. /package/dist/assets/{viml-OELtdek0.js → viml-X__Ssn6B.js} +0 -0
  599. /package/dist/assets/{vitesse-black-DxUt4R-X.js → vitesse-black-DubupWa_.js} +0 -0
  600. /package/dist/assets/{vitesse-dark-B89R9-Iv.js → vitesse-dark-BYulCnOh.js} +0 -0
  601. /package/dist/assets/{vitesse-light-Df6Ywkh7.js → vitesse-light-CXTtOKie.js} +0 -0
  602. /package/dist/assets/{vyper-r2Y73Yfh.js → vyper-DoyBGlNX.js} +0 -0
  603. /package/dist/assets/{wasm-HYAa6Rjp.js → wasm-C0nJmPb9.js} +0 -0
  604. /package/dist/assets/{wasm-Ceot4DBK.js → wasm-CZnstKSJ.js} +0 -0
  605. /package/dist/assets/{web-vitals-DDafkY2T.js → web-vitals-BDw5NjtZ.js} +0 -0
  606. /package/dist/assets/{wenyan-QngFPc2J.js → wenyan-BysEK3Da.js} +0 -0
  607. /package/dist/assets/{wgsl-D0ixO4MK.js → wgsl-CpajkF4Y.js} +0 -0
  608. /package/dist/assets/{wikitext-BRpFMAXk.js → wikitext-DBTabVkT.js} +0 -0
  609. /package/dist/assets/{wit-CkCowzVv.js → wit-BH3jcuTQ.js} +0 -0
  610. /package/dist/assets/{wolfram-7TSQgFp_.js → wolfram-vVLgt4lx.js} +0 -0
  611. /package/dist/assets/{write-secret-modal-CkdOk4az.js → write-secret-modal-aHYEAoIY.js} +0 -0
  612. /package/dist/assets/{ws-DG2NUHhQ.js → ws-BUeGIU5G.js} +0 -0
  613. /package/dist/assets/{yaml-Dt1mYd6v.js → yaml-xeznevN1.js} +0 -0
  614. /package/dist/assets/{zenscript-DtbxcJSn.js → zenscript-DIrhsqy-.js} +0 -0
  615. /package/dist/assets/{zig-fIW36tqn.js → zig-Di5wxjmq.js} +0 -0
@@ -1,4 +1,4 @@
1
- var te;import{s as Ue,t as de}from"./chunk-LvLJmgfZ.js";import"./_Uint8Array-BGESiCQL.js";import"./isSymbol-BGkTcW3U.js";import"./toString-DlRqgfqz.js";import"./toNumber-GB_lFVaq.js";import"./toInteger-Cl1doThW.js";import"./isArrayLikeObject-BkJc8lDE.js";import"./_getTag-BWqNuuwU.js";import"./_baseUniq-DmLB0Hft.js";import"./reduce-qhYCumrN.js";import"./_baseIsEqual-C8v2yRqO.js";import"./chunk-FPAJGGOC-B0-l76aI.js";import"./_toKey-C5ccFCJm.js";import"./memoize-DN0TMY36.js";import"./get-DaaGyK0L.js";import"./_baseFlatten-CnCoQev7.js";import"./_basePickBy-CPlg9rol.js";import"./merge-DVX6Ez37.js";import"./_baseSlice-CskhCEVH.js";import"./_arrayReduce-BPS6ICyD.js";import"./clone-CWE1jGg6.js";import"./_baseEach-DNbt63Tv.js";import"./hasIn-Ddg4IE2d.js";import"./_baseProperty-Bl8lQyHQ.js";import"./_createAggregator-CmsZvFm6.js";import"./min-icbQ0dc4.js";import"./_baseMap-SuiZFU3A.js";import"./isString-Ciurw6G5.js";import"./isEmpty-G5zoL4pK.js";import"./_baseSet-BwKym8Ma.js";import"./uniq-CwfSRyIn.js";import"./preload-helper-WDmkW-6F.js";import"./main-B1nOh376.js";import"./purify.es-B1k9qoU6.js";import"./marked.esm-D2gFq9fv.js";import"./timer-CjInJf90.js";import{u as Xe}from"./src-R7nIPgRU.js";import"./math-CJEhL5Or.js";import"./step-Cy9SLim8.js";import{c as ze,i as Be}from"./chunk-S3R3BYOJ-OSp35xNm.js";import{n as gt,r as Ae}from"./src-cSe6DUft.js";import{B as Ve,C as We,G as je,I as $e,U as qe,_ as Ze,a as Je,b as ge,d as Ke,v as Qe,y as ti,z as ei}from"./chunk-ABZYJK2D-hrtqo5Ih.js";import{t as ii}from"./chunk-EXTU4WIE-CEP0vCSp.js";import"./dist-BmUQz5fw.js";import{i as ri,n as ce,o as oi,r as ue}from"./chunk-JA3XYJ7Z-CgzUmbGk.js";import"./chunk-O7ZBX7Z2-C-g5bK2c.js";import"./chunk-S6J4BHB3-DPUJrVeh.js";import"./chunk-LBM3YZW2-CskV0o9K.js";import"./chunk-76Q3JFCE-CqxV2TaJ.js";import"./chunk-T53DSG4Q-Dv0rCIuT.js";import"./chunk-LHMN2FUI-ehm0Evo6.js";import"./chunk-FWNWRKHM-Dy8-EtNA.js";import{t as ni}from"./chunk-4BX2VUAB-OZ3RMBOG.js";import{t as ai}from"./mermaid-parser.core-DFQ2AotN.js";import{t as Ce}from"./cytoscape.esm--kAy4Luj.js";var Le=de(((_,x)=>{(function(C,M){typeof _=="object"&&typeof x=="object"?x.exports=M():typeof define=="function"&&define.amd?define([],M):typeof _=="object"?_.layoutBase=M():C.layoutBase=M()})(_,function(){return(function(C){var M={};function N(f){if(M[f])return M[f].exports;var r=M[f]={i:f,l:!1,exports:{}};return C[f].call(r.exports,r,r.exports,N),r.l=!0,r.exports}return N.m=C,N.c=M,N.i=function(f){return f},N.d=function(f,r,n){N.o(f,r)||Object.defineProperty(f,r,{configurable:!1,enumerable:!0,get:n})},N.n=function(f){var r=f&&f.__esModule?function(){return f.default}:function(){return f};return N.d(r,"a",r),r},N.o=function(f,r){return Object.prototype.hasOwnProperty.call(f,r)},N.p="",N(N.s=28)})([(function(C,M,N){function f(){}f.QUALITY=1,f.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,f.DEFAULT_INCREMENTAL=!1,f.DEFAULT_ANIMATION_ON_LAYOUT=!0,f.DEFAULT_ANIMATION_DURING_LAYOUT=!1,f.DEFAULT_ANIMATION_PERIOD=50,f.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,f.DEFAULT_GRAPH_MARGIN=15,f.NODE_DIMENSIONS_INCLUDE_LABELS=!1,f.SIMPLE_NODE_SIZE=40,f.SIMPLE_NODE_HALF_SIZE=f.SIMPLE_NODE_SIZE/2,f.EMPTY_COMPOUND_NODE_SIZE=40,f.MIN_EDGE_LENGTH=1,f.WORLD_BOUNDARY=1e6,f.INITIAL_WORLD_BOUNDARY=f.WORLD_BOUNDARY/1e3,f.WORLD_CENTER_X=1200,f.WORLD_CENTER_Y=900,C.exports=f}),(function(C,M,N){var f=N(2),r=N(8),n=N(9);function t(h,a,p){f.call(this,p),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=p,this.bendpoints=[],this.source=h,this.target=a}for(var e in t.prototype=Object.create(f.prototype),f)t[e]=f[e];t.prototype.getSource=function(){return this.source},t.prototype.getTarget=function(){return this.target},t.prototype.isInterGraph=function(){return this.isInterGraph},t.prototype.getLength=function(){return this.length},t.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},t.prototype.getBendpoints=function(){return this.bendpoints},t.prototype.getLca=function(){return this.lca},t.prototype.getSourceInLca=function(){return this.sourceInLca},t.prototype.getTargetInLca=function(){return this.targetInLca},t.prototype.getOtherEnd=function(h){if(this.source===h)return this.target;if(this.target===h)return this.source;throw"Node is not incident with this edge"},t.prototype.getOtherEndInGraph=function(h,a){for(var p=this.getOtherEnd(h),o=a.getGraphManager().getRoot();;){if(p.getOwner()==a)return p;if(p.getOwner()==o)break;p=p.getOwner().getParent()}return null},t.prototype.updateLength=function(){var h=[,,,,];this.isOverlapingSourceAndTarget=r.getIntersection(this.target.getRect(),this.source.getRect(),h),this.isOverlapingSourceAndTarget||(this.lengthX=h[0]-h[2],this.lengthY=h[1]-h[3],Math.abs(this.lengthX)<1&&(this.lengthX=n.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=n.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},t.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=n.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=n.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},C.exports=t}),(function(C,M,N){function f(r){this.vGraphObject=r}C.exports=f}),(function(C,M,N){var f=N(2),r=N(10),n=N(13),t=N(0),e=N(16),h=N(5);function a(o,i,d,s){d==null&&s==null&&(s=i),f.call(this,s),o.graphManager!=null&&(o=o.graphManager),this.estimatedSize=r.MIN_VALUE,this.inclusionTreeDepth=r.MAX_VALUE,this.vGraphObject=s,this.edges=[],this.graphManager=o,d!=null&&i!=null?this.rect=new n(i.x,i.y,d.width,d.height):this.rect=new n}for(var p in a.prototype=Object.create(f.prototype),f)a[p]=f[p];a.prototype.getEdges=function(){return this.edges},a.prototype.getChild=function(){return this.child},a.prototype.getOwner=function(){return this.owner},a.prototype.getWidth=function(){return this.rect.width},a.prototype.setWidth=function(o){this.rect.width=o},a.prototype.getHeight=function(){return this.rect.height},a.prototype.setHeight=function(o){this.rect.height=o},a.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},a.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},a.prototype.getCenter=function(){return new h(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},a.prototype.getLocation=function(){return new h(this.rect.x,this.rect.y)},a.prototype.getRect=function(){return this.rect},a.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},a.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},a.prototype.setRect=function(o,i){this.rect.x=o.x,this.rect.y=o.y,this.rect.width=i.width,this.rect.height=i.height},a.prototype.setCenter=function(o,i){this.rect.x=o-this.rect.width/2,this.rect.y=i-this.rect.height/2},a.prototype.setLocation=function(o,i){this.rect.x=o,this.rect.y=i},a.prototype.moveBy=function(o,i){this.rect.x+=o,this.rect.y+=i},a.prototype.getEdgeListToNode=function(o){var i=[],d=this;return d.edges.forEach(function(s){if(s.target==o){if(s.source!=d)throw"Incorrect edge source!";i.push(s)}}),i},a.prototype.getEdgesBetween=function(o){var i=[],d=this;return d.edges.forEach(function(s){if(!(s.source==d||s.target==d))throw"Incorrect edge source and/or target";(s.target==o||s.source==o)&&i.push(s)}),i},a.prototype.getNeighborsList=function(){var o=new Set,i=this;return i.edges.forEach(function(d){if(d.source==i)o.add(d.target);else{if(d.target!=i)throw"Incorrect incidency!";o.add(d.source)}}),o},a.prototype.withChildren=function(){var o=new Set,i,d;if(o.add(this),this.child!=null)for(var s=this.child.getNodes(),c=0;c<s.length;c++)i=s[c],d=i.withChildren(),d.forEach(function(g){o.add(g)});return o},a.prototype.getNoOfChildren=function(){var o=0,i;if(this.child==null)o=1;else for(var d=this.child.getNodes(),s=0;s<d.length;s++)i=d[s],o+=i.getNoOfChildren();return o==0&&(o=1),o},a.prototype.getEstimatedSize=function(){if(this.estimatedSize==r.MIN_VALUE)throw"assert failed";return this.estimatedSize},a.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)},a.prototype.scatter=function(){var o,i,d=-t.INITIAL_WORLD_BOUNDARY,s=t.INITIAL_WORLD_BOUNDARY;o=t.WORLD_CENTER_X+e.nextDouble()*(s-d)+d;var c=-t.INITIAL_WORLD_BOUNDARY,g=t.INITIAL_WORLD_BOUNDARY;i=t.WORLD_CENTER_Y+e.nextDouble()*(g-c)+c,this.rect.x=o,this.rect.y=i},a.prototype.updateBounds=function(){if(this.getChild()==null)throw"assert failed";if(this.getChild().getNodes().length!=0){var o=this.getChild();if(o.updateBounds(!0),this.rect.x=o.getLeft(),this.rect.y=o.getTop(),this.setWidth(o.getRight()-o.getLeft()),this.setHeight(o.getBottom()-o.getTop()),t.NODE_DIMENSIONS_INCLUDE_LABELS){var i=o.getRight()-o.getLeft(),d=o.getBottom()-o.getTop();this.labelWidth&&(this.labelPosHorizontal=="left"?(this.rect.x-=this.labelWidth,this.setWidth(i+this.labelWidth)):this.labelPosHorizontal=="center"&&this.labelWidth>i?(this.rect.x-=(this.labelWidth-i)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal=="right"&&this.setWidth(i+this.labelWidth)),this.labelHeight&&(this.labelPosVertical=="top"?(this.rect.y-=this.labelHeight,this.setHeight(d+this.labelHeight)):this.labelPosVertical=="center"&&this.labelHeight>d?(this.rect.y-=(this.labelHeight-d)/2,this.setHeight(this.labelHeight)):this.labelPosVertical=="bottom"&&this.setHeight(d+this.labelHeight))}}},a.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==r.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},a.prototype.transform=function(o){var i=this.rect.x;i>t.WORLD_BOUNDARY?i=t.WORLD_BOUNDARY:i<-t.WORLD_BOUNDARY&&(i=-t.WORLD_BOUNDARY);var d=this.rect.y;d>t.WORLD_BOUNDARY?d=t.WORLD_BOUNDARY:d<-t.WORLD_BOUNDARY&&(d=-t.WORLD_BOUNDARY);var s=new h(i,d),c=o.inverseTransformPoint(s);this.setLocation(c.x,c.y)},a.prototype.getLeft=function(){return this.rect.x},a.prototype.getRight=function(){return this.rect.x+this.rect.width},a.prototype.getTop=function(){return this.rect.y},a.prototype.getBottom=function(){return this.rect.y+this.rect.height},a.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},C.exports=a}),(function(C,M,N){var f=N(0);function r(){}for(var n in f)r[n]=f[n];r.MAX_ITERATIONS=2500,r.DEFAULT_EDGE_LENGTH=50,r.DEFAULT_SPRING_STRENGTH=.45,r.DEFAULT_REPULSION_STRENGTH=4500,r.DEFAULT_GRAVITY_STRENGTH=.4,r.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,r.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,r.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,r.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,r.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,r.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,r.COOLING_ADAPTATION_FACTOR=.33,r.ADAPTATION_LOWER_NODE_LIMIT=1e3,r.ADAPTATION_UPPER_NODE_LIMIT=5e3,r.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,r.MAX_NODE_DISPLACEMENT=r.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,r.MIN_REPULSION_DIST=r.DEFAULT_EDGE_LENGTH/10,r.CONVERGENCE_CHECK_PERIOD=100,r.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,r.MIN_EDGE_LENGTH=1,r.GRID_CALCULATION_CHECK_PERIOD=10,C.exports=r}),(function(C,M,N){function f(r,n){r==null&&n==null?(this.x=0,this.y=0):(this.x=r,this.y=n)}f.prototype.getX=function(){return this.x},f.prototype.getY=function(){return this.y},f.prototype.setX=function(r){this.x=r},f.prototype.setY=function(r){this.y=r},f.prototype.getDifference=function(r){return new DimensionD(this.x-r.x,this.y-r.y)},f.prototype.getCopy=function(){return new f(this.x,this.y)},f.prototype.translate=function(r){return this.x+=r.width,this.y+=r.height,this},C.exports=f}),(function(C,M,N){var f=N(2),r=N(10),n=N(0),t=N(7),e=N(3),h=N(1),a=N(13),p=N(12),o=N(11);function i(s,c,g){f.call(this,g),this.estimatedSize=r.MIN_VALUE,this.margin=n.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=s,c!=null&&c instanceof t?this.graphManager=c:c!=null&&c instanceof Layout&&(this.graphManager=c.graphManager)}for(var d in i.prototype=Object.create(f.prototype),f)i[d]=f[d];i.prototype.getNodes=function(){return this.nodes},i.prototype.getEdges=function(){return this.edges},i.prototype.getGraphManager=function(){return this.graphManager},i.prototype.getParent=function(){return this.parent},i.prototype.getLeft=function(){return this.left},i.prototype.getRight=function(){return this.right},i.prototype.getTop=function(){return this.top},i.prototype.getBottom=function(){return this.bottom},i.prototype.isConnected=function(){return this.isConnected},i.prototype.add=function(s,c,g){if(c==null&&g==null){var m=s;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(m)>-1)throw"Node already in graph!";return m.owner=this,this.getNodes().push(m),m}else{var T=s;if(!(this.getNodes().indexOf(c)>-1&&this.getNodes().indexOf(g)>-1))throw"Source or target not in graph!";if(!(c.owner==g.owner&&c.owner==this))throw"Both owners must be this graph!";return c.owner==g.owner?(T.source=c,T.target=g,T.isInterGraph=!1,this.getEdges().push(T),c.edges.push(T),g!=c&&g.edges.push(T),T):null}},i.prototype.remove=function(s){var c=s;if(s instanceof e){if(c==null)throw"Node is null!";if(!(c.owner!=null&&c.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var g=c.edges.slice(),m,T=g.length,L=0;L<T;L++)m=g[L],m.isInterGraph?this.graphManager.remove(m):m.source.owner.remove(m);var R=this.nodes.indexOf(c);if(R==-1)throw"Node not in owner node list!";this.nodes.splice(R,1)}else if(s instanceof h){var m=s;if(m==null)throw"Edge is null!";if(!(m.source!=null&&m.target!=null))throw"Source and/or target is null!";if(!(m.source.owner!=null&&m.target.owner!=null&&m.source.owner==this&&m.target.owner==this))throw"Source and/or target owner is invalid!";var S=m.source.edges.indexOf(m),Y=m.target.edges.indexOf(m);if(!(S>-1&&Y>-1))throw"Source and/or target doesn't know this edge!";m.source.edges.splice(S,1),m.target!=m.source&&m.target.edges.splice(Y,1);var R=m.source.owner.getEdges().indexOf(m);if(R==-1)throw"Not in owner's edge list!";m.source.owner.getEdges().splice(R,1)}},i.prototype.updateLeftTop=function(){for(var s=r.MAX_VALUE,c=r.MAX_VALUE,g,m,T,L=this.getNodes(),R=L.length,S=0;S<R;S++){var Y=L[S];g=Y.getTop(),m=Y.getLeft(),s>g&&(s=g),c>m&&(c=m)}return s==r.MAX_VALUE?null:(T=L[0].getParent().paddingLeft==null?this.margin:L[0].getParent().paddingLeft,this.left=c-T,this.top=s-T,new p(this.left,this.top))},i.prototype.updateBounds=function(s){for(var c=r.MAX_VALUE,g=-r.MAX_VALUE,m=r.MAX_VALUE,T=-r.MAX_VALUE,L,R,S,Y,$,Z=this.nodes,D=Z.length,J=0;J<D;J++){var l=Z[J];s&&l.child!=null&&l.updateBounds(),L=l.getLeft(),R=l.getRight(),S=l.getTop(),Y=l.getBottom(),c>L&&(c=L),g<R&&(g=R),m>S&&(m=S),T<Y&&(T=Y)}var E=new a(c,m,g-c,T-m);c==r.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),$=Z[0].getParent().paddingLeft==null?this.margin:Z[0].getParent().paddingLeft,this.left=E.x-$,this.right=E.x+E.width+$,this.top=E.y-$,this.bottom=E.y+E.height+$},i.calculateBounds=function(s){for(var c=r.MAX_VALUE,g=-r.MAX_VALUE,m=r.MAX_VALUE,T=-r.MAX_VALUE,L,R,S,Y,$=s.length,Z=0;Z<$;Z++){var D=s[Z];L=D.getLeft(),R=D.getRight(),S=D.getTop(),Y=D.getBottom(),c>L&&(c=L),g<R&&(g=R),m>S&&(m=S),T<Y&&(T=Y)}return new a(c,m,g-c,T-m)},i.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},i.prototype.getEstimatedSize=function(){if(this.estimatedSize==r.MIN_VALUE)throw"assert failed";return this.estimatedSize},i.prototype.calcEstimatedSize=function(){for(var s=0,c=this.nodes,g=c.length,m=0;m<g;m++){var T=c[m];s+=T.calcEstimatedSize()}return s==0?this.estimatedSize=n.EMPTY_COMPOUND_NODE_SIZE:this.estimatedSize=s/Math.sqrt(this.nodes.length),this.estimatedSize},i.prototype.updateConnected=function(){var s=this;if(this.nodes.length==0){this.isConnected=!0;return}var c=new o,g=new Set,m=this.nodes[0],T,L;for(m.withChildren().forEach(function($){c.push($),g.add($)});c.length!==0;){m=c.shift(),T=m.getEdges();for(var R=T.length,S=0;S<R;S++)L=T[S].getOtherEndInGraph(m,this),L!=null&&!g.has(L)&&L.withChildren().forEach(function($){c.push($),g.add($)})}if(this.isConnected=!1,g.size>=this.nodes.length){var Y=0;g.forEach(function($){$.owner==s&&Y++}),Y==this.nodes.length&&(this.isConnected=!0)}},C.exports=i}),(function(C,M,N){var f,r=N(1);function n(t){f=N(6),this.layout=t,this.graphs=[],this.edges=[]}n.prototype.addRoot=function(){var t=this.layout.newGraph(),e=this.layout.newNode(null),h=this.add(t,e);return this.setRootGraph(h),this.rootGraph},n.prototype.add=function(t,e,h,a,p){if(h==null&&a==null&&p==null){if(t==null)throw"Graph is null!";if(e==null)throw"Parent node is null!";if(this.graphs.indexOf(t)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(t),t.parent!=null)throw"Already has a parent!";if(e.child!=null)throw"Already has a child!";return t.parent=e,e.child=t,t}else{p=h,a=e,h=t;var o=a.getOwner(),i=p.getOwner();if(!(o!=null&&o.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(i!=null&&i.getGraphManager()==this))throw"Target not in this graph mgr!";if(o==i)return h.isInterGraph=!1,o.add(h,a,p);if(h.isInterGraph=!0,h.source=a,h.target=p,this.edges.indexOf(h)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(h),!(h.source!=null&&h.target!=null))throw"Edge source and/or target is null!";if(!(h.source.edges.indexOf(h)==-1&&h.target.edges.indexOf(h)==-1))throw"Edge already in source and/or target incidency list!";return h.source.edges.push(h),h.target.edges.push(h),h}},n.prototype.remove=function(t){if(t instanceof f){var e=t;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 h=[];h=h.concat(e.getEdges());for(var a,p=h.length,o=0;o<p;o++)a=h[o],e.remove(a);var i=[];i=i.concat(e.getNodes());var d;p=i.length;for(var o=0;o<p;o++)d=i[o],e.remove(d);e==this.rootGraph&&this.setRootGraph(null);var s=this.graphs.indexOf(e);this.graphs.splice(s,1),e.parent=null}else if(t instanceof r){if(a=t,a==null)throw"Edge is null!";if(!a.isInterGraph)throw"Not an inter-graph edge!";if(!(a.source!=null&&a.target!=null))throw"Source and/or target is null!";if(!(a.source.edges.indexOf(a)!=-1&&a.target.edges.indexOf(a)!=-1))throw"Source and/or target doesn't know this edge!";var s=a.source.edges.indexOf(a);if(a.source.edges.splice(s,1),s=a.target.edges.indexOf(a),a.target.edges.splice(s,1),!(a.source.owner!=null&&a.source.owner.getGraphManager()!=null))throw"Edge owner graph or owner graph manager is null!";if(a.source.owner.getGraphManager().edges.indexOf(a)==-1)throw"Not in owner graph manager's edge list!";var s=a.source.owner.getGraphManager().edges.indexOf(a);a.source.owner.getGraphManager().edges.splice(s,1)}},n.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},n.prototype.getGraphs=function(){return this.graphs},n.prototype.getAllNodes=function(){if(this.allNodes==null){for(var t=[],e=this.getGraphs(),h=e.length,a=0;a<h;a++)t=t.concat(e[a].getNodes());this.allNodes=t}return this.allNodes},n.prototype.resetAllNodes=function(){this.allNodes=null},n.prototype.resetAllEdges=function(){this.allEdges=null},n.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},n.prototype.getAllEdges=function(){if(this.allEdges==null){var t=[],e=this.getGraphs();e.length;for(var h=0;h<e.length;h++)t=t.concat(e[h].getEdges());t=t.concat(this.edges),this.allEdges=t}return this.allEdges},n.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},n.prototype.setAllNodesToApplyGravitation=function(t){if(this.allNodesToApplyGravitation!=null)throw"assert failed";this.allNodesToApplyGravitation=t},n.prototype.getRoot=function(){return this.rootGraph},n.prototype.setRootGraph=function(t){if(t.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=t,t.parent??(t.parent=this.layout.newNode("Root node"))},n.prototype.getLayout=function(){return this.layout},n.prototype.isOneAncestorOfOther=function(t,e){if(!(t!=null&&e!=null))throw"assert failed";if(t==e)return!0;var h=t.getOwner(),a;do{if(a=h.getParent(),a==null)break;if(a==e)return!0;if(h=a.getOwner(),h==null)break}while(!0);h=e.getOwner();do{if(a=h.getParent(),a==null)break;if(a==t)return!0;if(h=a.getOwner(),h==null)break}while(!0);return!1},n.prototype.calcLowestCommonAncestors=function(){for(var t,e,h,a,p,o=this.getAllEdges(),i=o.length,d=0;d<i;d++){if(t=o[d],e=t.source,h=t.target,t.lca=null,t.sourceInLca=e,t.targetInLca=h,e==h){t.lca=e.getOwner();continue}for(a=e.getOwner();t.lca==null;){for(t.targetInLca=h,p=h.getOwner();t.lca==null;){if(p==a){t.lca=p;break}if(p==this.rootGraph)break;if(t.lca!=null)throw"assert failed";t.targetInLca=p.getParent(),p=t.targetInLca.getOwner()}if(a==this.rootGraph)break;t.lca??(t.sourceInLca=a.getParent(),a=t.sourceInLca.getOwner())}if(t.lca==null)throw"assert failed"}},n.prototype.calcLowestCommonAncestor=function(t,e){if(t==e)return t.getOwner();var h=t.getOwner();do{if(h==null)break;var a=e.getOwner();do{if(a==null)break;if(a==h)return a;a=a.getParent().getOwner()}while(!0);h=h.getParent().getOwner()}while(!0);return h},n.prototype.calcInclusionTreeDepths=function(t,e){t==null&&e==null&&(t=this.rootGraph,e=1);for(var h,a=t.getNodes(),p=a.length,o=0;o<p;o++)h=a[o],h.inclusionTreeDepth=e,h.child!=null&&this.calcInclusionTreeDepths(h.child,e+1)},n.prototype.includesInvalidEdge=function(){for(var t,e=[],h=this.edges.length,a=0;a<h;a++)t=this.edges[a],this.isOneAncestorOfOther(t.source,t.target)&&e.push(t);for(var a=0;a<e.length;a++)this.remove(e[a]);return!1},C.exports=n}),(function(C,M,N){var f=N(12);function r(){}r.calcSeparationAmount=function(n,t,e,h){if(!n.intersects(t))throw"assert failed";var a=[,,];this.decideDirectionsForOverlappingNodes(n,t,a),e[0]=Math.min(n.getRight(),t.getRight())-Math.max(n.x,t.x),e[1]=Math.min(n.getBottom(),t.getBottom())-Math.max(n.y,t.y),n.getX()<=t.getX()&&n.getRight()>=t.getRight()?e[0]+=Math.min(t.getX()-n.getX(),n.getRight()-t.getRight()):t.getX()<=n.getX()&&t.getRight()>=n.getRight()&&(e[0]+=Math.min(n.getX()-t.getX(),t.getRight()-n.getRight())),n.getY()<=t.getY()&&n.getBottom()>=t.getBottom()?e[1]+=Math.min(t.getY()-n.getY(),n.getBottom()-t.getBottom()):t.getY()<=n.getY()&&t.getBottom()>=n.getBottom()&&(e[1]+=Math.min(n.getY()-t.getY(),t.getBottom()-n.getBottom()));var p=Math.abs((t.getCenterY()-n.getCenterY())/(t.getCenterX()-n.getCenterX()));t.getCenterY()===n.getCenterY()&&t.getCenterX()===n.getCenterX()&&(p=1);var o=p*e[0],i=e[1]/p;e[0]<i?i=e[0]:o=e[1],e[0]=-1*a[0]*(i/2+h),e[1]=-1*a[1]*(o/2+h)},r.decideDirectionsForOverlappingNodes=function(n,t,e){n.getCenterX()<t.getCenterX()?e[0]=-1:e[0]=1,n.getCenterY()<t.getCenterY()?e[1]=-1:e[1]=1},r.getIntersection2=function(n,t,e){var h=n.getCenterX(),a=n.getCenterY(),p=t.getCenterX(),o=t.getCenterY();if(n.intersects(t))return e[0]=h,e[1]=a,e[2]=p,e[3]=o,!0;var i=n.getX(),d=n.getY(),s=n.getRight(),c=n.getX(),g=n.getBottom(),m=n.getRight(),T=n.getWidthHalf(),L=n.getHeightHalf(),R=t.getX(),S=t.getY(),Y=t.getRight(),$=t.getX(),Z=t.getBottom(),D=t.getRight(),J=t.getWidthHalf(),l=t.getHeightHalf(),E=!1,u=!1;if(h===p){if(a>o)return e[0]=h,e[1]=d,e[2]=p,e[3]=Z,!1;if(a<o)return e[0]=h,e[1]=g,e[2]=p,e[3]=S,!1}else if(a===o){if(h>p)return e[0]=i,e[1]=a,e[2]=Y,e[3]=o,!1;if(h<p)return e[0]=s,e[1]=a,e[2]=R,e[3]=o,!1}else{var y=n.height/n.width,v=t.height/t.width,A=(o-a)/(p-h),w=void 0,b=void 0,G=void 0,F=void 0,k=void 0,V=void 0;if(-y===A?h>p?(e[0]=c,e[1]=g,E=!0):(e[0]=s,e[1]=d,E=!0):y===A&&(h>p?(e[0]=i,e[1]=d,E=!0):(e[0]=m,e[1]=g,E=!0)),-v===A?p>h?(e[2]=$,e[3]=Z,u=!0):(e[2]=Y,e[3]=S,u=!0):v===A&&(p>h?(e[2]=R,e[3]=S,u=!0):(e[2]=D,e[3]=Z,u=!0)),E&&u)return!1;if(h>p?a>o?(w=this.getCardinalDirection(y,A,4),b=this.getCardinalDirection(v,A,2)):(w=this.getCardinalDirection(-y,A,3),b=this.getCardinalDirection(-v,A,1)):a>o?(w=this.getCardinalDirection(-y,A,1),b=this.getCardinalDirection(-v,A,3)):(w=this.getCardinalDirection(y,A,2),b=this.getCardinalDirection(v,A,4)),!E)switch(w){case 1:F=d,G=h+-L/A,e[0]=G,e[1]=F;break;case 2:G=m,F=a+T*A,e[0]=G,e[1]=F;break;case 3:F=g,G=h+L/A,e[0]=G,e[1]=F;break;case 4:G=c,F=a+-T*A,e[0]=G,e[1]=F;break}if(!u)switch(b){case 1:V=S,k=p+-l/A,e[2]=k,e[3]=V;break;case 2:k=D,V=o+J*A,e[2]=k,e[3]=V;break;case 3:V=Z,k=p+l/A,e[2]=k,e[3]=V;break;case 4:k=$,V=o+-J*A,e[2]=k,e[3]=V;break}}return!1},r.getCardinalDirection=function(n,t,e){return n>t?e:1+e%4},r.getIntersection=function(n,t,e,h){if(h==null)return this.getIntersection2(n,t,e);var a=n.x,p=n.y,o=t.x,i=t.y,d=e.x,s=e.y,c=h.x,g=h.y,m=void 0,T=void 0,L=void 0,R=void 0,S=void 0,Y=void 0,$=void 0,Z=void 0,D=void 0;return L=i-p,S=a-o,$=o*p-a*i,R=g-s,Y=d-c,Z=c*s-d*g,D=L*Y-R*S,D===0?null:(m=(S*Z-Y*$)/D,T=(R*$-L*Z)/D,new f(m,T))},r.angleOfVector=function(n,t,e,h){var a=void 0;return n===e?a=h<t?this.ONE_AND_HALF_PI:this.HALF_PI:(a=Math.atan((h-t)/(e-n)),e<n?a+=Math.PI:h<t&&(a+=this.TWO_PI)),a},r.doIntersect=function(n,t,e,h){var a=n.x,p=n.y,o=t.x,i=t.y,d=e.x,s=e.y,c=h.x,g=h.y,m=(o-a)*(g-s)-(c-d)*(i-p);if(m===0)return!1;var T=((g-s)*(c-a)+(d-c)*(g-p))/m,L=((p-i)*(c-a)+(o-a)*(g-p))/m;return 0<T&&T<1&&0<L&&L<1},r.findCircleLineIntersections=function(n,t,e,h,a,p,o){var i=(e-n)*(e-n)+(h-t)*(h-t),d=2*((n-a)*(e-n)+(t-p)*(h-t)),s=(n-a)*(n-a)+(t-p)*(t-p)-o*o;if(d*d-4*i*s>=0){var c=(-d+Math.sqrt(d*d-4*i*s))/(2*i),g=(-d-Math.sqrt(d*d-4*i*s))/(2*i);return c>=0&&c<=1?[c]:g>=0&&g<=1?[g]:null}else return null},r.HALF_PI=.5*Math.PI,r.ONE_AND_HALF_PI=1.5*Math.PI,r.TWO_PI=2*Math.PI,r.THREE_PI=3*Math.PI,C.exports=r}),(function(C,M,N){function f(){}f.sign=function(r){return r>0?1:r<0?-1:0},f.floor=function(r){return r<0?Math.ceil(r):Math.floor(r)},f.ceil=function(r){return r<0?Math.floor(r):Math.ceil(r)},C.exports=f}),(function(C,M,N){function f(){}f.MAX_VALUE=2147483647,f.MIN_VALUE=-2147483648,C.exports=f}),(function(C,M,N){var f=(function(){function h(a,p){for(var o=0;o<p.length;o++){var i=p[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(a,i.key,i)}}return function(a,p,o){return p&&h(a.prototype,p),o&&h(a,o),a}})();function r(h,a){if(!(h instanceof a))throw TypeError("Cannot call a class as a function")}var n=function(h){return{value:h,next:null,prev:null}},t=function(h,a,p,o){return h===null?o.head=a:h.next=a,p===null?o.tail=a:p.prev=a,a.prev=h,a.next=p,o.length++,a},e=function(h,a){var p=h.prev,o=h.next;return p===null?a.head=o:p.next=o,o===null?a.tail=p:o.prev=p,h.prev=h.next=null,a.length--,h};C.exports=(function(){function h(a){var p=this;r(this,h),this.length=0,this.head=null,this.tail=null,a==null||a.forEach(function(o){return p.push(o)})}return f(h,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(a,p){return t(p.prev,n(a),p,this)}},{key:"insertAfter",value:function(a,p){return t(p,n(a),p.next,this)}},{key:"insertNodeBefore",value:function(a,p){return t(p.prev,a,p,this)}},{key:"insertNodeAfter",value:function(a,p){return t(p,a,p.next,this)}},{key:"push",value:function(a){return t(this.tail,n(a),null,this)}},{key:"unshift",value:function(a){return t(null,n(a),this.head,this)}},{key:"remove",value:function(a){return e(a,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(a){if(a<=this.length()){for(var p=1,o=this.head;p<a;)o=o.next,p++;return o.value}}},{key:"set_object_at",value:function(a,p){if(a<=this.length()){for(var o=1,i=this.head;o<a;)i=i.next,o++;i.value=p}}}]),h})()}),(function(C,M,N){function f(r,n,t){this.x=null,this.y=null,r==null&&n==null&&t==null?(this.x=0,this.y=0):typeof r=="number"&&typeof n=="number"&&t==null?(this.x=r,this.y=n):r.constructor.name=="Point"&&n==null&&t==null&&(t=r,this.x=t.x,this.y=t.y)}f.prototype.getX=function(){return this.x},f.prototype.getY=function(){return this.y},f.prototype.getLocation=function(){return new f(this.x,this.y)},f.prototype.setLocation=function(r,n,t){r.constructor.name=="Point"&&n==null&&t==null?(t=r,this.setLocation(t.x,t.y)):typeof r=="number"&&typeof n=="number"&&t==null&&(parseInt(r)==r&&parseInt(n)==n?this.move(r,n):(this.x=Math.floor(r+.5),this.y=Math.floor(n+.5)))},f.prototype.move=function(r,n){this.x=r,this.y=n},f.prototype.translate=function(r,n){this.x+=r,this.y+=n},f.prototype.equals=function(r){if(r.constructor.name=="Point"){var n=r;return this.x==n.x&&this.y==n.y}return this==r},f.prototype.toString=function(){return new f().constructor.name+"[x="+this.x+",y="+this.y+"]"},C.exports=f}),(function(C,M,N){function f(r,n,t,e){this.x=0,this.y=0,this.width=0,this.height=0,r!=null&&n!=null&&t!=null&&e!=null&&(this.x=r,this.y=n,this.width=t,this.height=e)}f.prototype.getX=function(){return this.x},f.prototype.setX=function(r){this.x=r},f.prototype.getY=function(){return this.y},f.prototype.setY=function(r){this.y=r},f.prototype.getWidth=function(){return this.width},f.prototype.setWidth=function(r){this.width=r},f.prototype.getHeight=function(){return this.height},f.prototype.setHeight=function(r){this.height=r},f.prototype.getRight=function(){return this.x+this.width},f.prototype.getBottom=function(){return this.y+this.height},f.prototype.intersects=function(r){return!(this.getRight()<r.x||this.getBottom()<r.y||r.getRight()<this.x||r.getBottom()<this.y)},f.prototype.getCenterX=function(){return this.x+this.width/2},f.prototype.getMinX=function(){return this.getX()},f.prototype.getMaxX=function(){return this.getX()+this.width},f.prototype.getCenterY=function(){return this.y+this.height/2},f.prototype.getMinY=function(){return this.getY()},f.prototype.getMaxY=function(){return this.getY()+this.height},f.prototype.getWidthHalf=function(){return this.width/2},f.prototype.getHeightHalf=function(){return this.height/2},C.exports=f}),(function(C,M,N){var f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n};function r(){}r.lastID=0,r.createID=function(n){return r.isPrimitive(n)?n:(n.uniqueID==null&&(n.uniqueID=r.getString(),r.lastID++),n.uniqueID)},r.getString=function(n){return n??(n=r.lastID),"Object#"+n},r.isPrimitive=function(n){var t=n===void 0?"undefined":f(n);return n==null||t!="object"&&t!="function"},C.exports=r}),(function(C,M,N){function f(d){if(Array.isArray(d)){for(var s=0,c=Array(d.length);s<d.length;s++)c[s]=d[s];return c}else return Array.from(d)}var r=N(0),n=N(7),t=N(3),e=N(1),h=N(6),a=N(5),p=N(17),o=N(29);function i(d){o.call(this),this.layoutQuality=r.QUALITY,this.createBendsAsNeeded=r.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=r.DEFAULT_INCREMENTAL,this.animationOnLayout=r.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=r.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=r.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=r.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new n(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,d!=null&&(this.isRemoteUse=d)}i.RANDOM_SEED=1,i.prototype=Object.create(o.prototype),i.prototype.getGraphManager=function(){return this.graphManager},i.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},i.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},i.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},i.prototype.newGraphManager=function(){var d=new n(this);return this.graphManager=d,d},i.prototype.newGraph=function(d){return new h(null,this.graphManager,d)},i.prototype.newNode=function(d){return new t(this.graphManager,d)},i.prototype.newEdge=function(d){return new e(null,null,d)},i.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},i.prototype.runLayout=function(){this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters();var d=this.checkLayoutSuccess()?!1:this.layout();return r.ANIMATE==="during"?!1:(d&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,d)},i.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},i.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var d=this.graphManager.getAllEdges(),s=0;s<d.length;s++)d[s];for(var c=this.graphManager.getRoot().getNodes(),s=0;s<c.length;s++)c[s];this.update(this.graphManager.getRoot())}},i.prototype.update=function(d){if(d==null)this.update2();else if(d instanceof t){var s=d;if(s.getChild()!=null)for(var c=s.getChild().getNodes(),g=0;g<c.length;g++)update(c[g]);s.vGraphObject!=null&&s.vGraphObject.update(s)}else if(d instanceof e){var m=d;m.vGraphObject!=null&&m.vGraphObject.update(m)}else if(d instanceof h){var T=d;T.vGraphObject!=null&&T.vGraphObject.update(T)}},i.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=r.QUALITY,this.animationDuringLayout=r.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=r.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=r.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=r.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=r.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=r.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},i.prototype.transform=function(d){if(d==null)this.transform(new a(0,0));else{var s=new p,c=this.graphManager.getRoot().updateLeftTop();if(c!=null){s.setWorldOrgX(d.x),s.setWorldOrgY(d.y),s.setDeviceOrgX(c.x),s.setDeviceOrgY(c.y);for(var g=this.getAllNodes(),m,T=0;T<g.length;T++)m=g[T],m.transform(s)}}},i.prototype.positionNodesRandomly=function(d){if(d==null)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var s,c,g=d.getNodes(),m=0;m<g.length;m++)s=g[m],c=s.getChild(),c==null||c.getNodes().length==0?s.scatter():(this.positionNodesRandomly(c),s.updateBounds())},i.prototype.getFlatForest=function(){for(var d=[],s=!0,c=this.graphManager.getRoot().getNodes(),g=!0,m=0;m<c.length;m++)c[m].getChild()!=null&&(g=!1);if(!g)return d;var T=new Set,L=[],R=new Map,S=[];for(S=S.concat(c);S.length>0&&s;){for(L.push(S[0]);L.length>0&&s;){var Y=L[0];L.splice(0,1),T.add(Y);for(var $=Y.getEdges(),m=0;m<$.length;m++){var Z=$[m].getOtherEnd(Y);if(R.get(Y)!=Z)if(!T.has(Z))L.push(Z),R.set(Z,Y);else{s=!1;break}}}if(!s)d=[];else{var D=[].concat(f(T));d.push(D);for(var m=0;m<D.length;m++){var J=D[m],l=S.indexOf(J);l>-1&&S.splice(l,1)}T=new Set,R=new Map}}return d},i.prototype.createDummyNodesForBendpoints=function(d){for(var s=[],c=d.source,g=this.graphManager.calcLowestCommonAncestor(d.source,d.target),m=0;m<d.bendpoints.length;m++){var T=this.newNode(null);T.setRect(new Point(0,0),new Dimension(1,1)),g.add(T);var L=this.newEdge(null);this.graphManager.add(L,c,T),s.add(T),c=T}var L=this.newEdge(null);return this.graphManager.add(L,c,d.target),this.edgeToDummyNodes.set(d,s),d.isInterGraph()?this.graphManager.remove(d):g.remove(d),s},i.prototype.createBendpointsFromDummyNodes=function(){var d=[];d=d.concat(this.graphManager.getAllEdges()),d=[].concat(f(this.edgeToDummyNodes.keys()),d);for(var s=0;s<d.length;s++){var c=d[s];if(c.bendpoints.length>0){for(var g=this.edgeToDummyNodes.get(c),m=0;m<g.length;m++){var T=g[m],L=new a(T.getCenterX(),T.getCenterY()),R=c.bendpoints.get(m);R.x=L.x,R.y=L.y,T.getOwner().remove(T)}this.graphManager.add(c,c.source,c.target)}}},i.transform=function(d,s,c,g){if(c!=null&&g!=null){var m=s;if(d<=50){var T=s/c;m-=(s-T)/50*(50-d)}else{var L=s*g;m+=(L-s)/50*(d-50)}return m}else{var R,S;return d<=50?(R=9*s/500,S=s/10):(R=9*s/50,S=-8*s),R*d+S}},i.findCenterOfTree=function(d){var s=[];s=s.concat(d);var c=[],g=new Map,m=!1,T=null;(s.length==1||s.length==2)&&(m=!0,T=s[0]);for(var L=0;L<s.length;L++){var R=s[L],S=R.getNeighborsList().size;g.set(R,R.getNeighborsList().size),S==1&&c.push(R)}var Y=[];for(Y=Y.concat(c);!m;){var $=[];$=$.concat(Y),Y=[];for(var L=0;L<s.length;L++){var R=s[L],Z=s.indexOf(R);Z>=0&&s.splice(Z,1),R.getNeighborsList().forEach(function(l){if(c.indexOf(l)<0){var E=g.get(l)-1;E==1&&Y.push(l),g.set(l,E)}})}c=c.concat(Y),(s.length==1||s.length==2)&&(m=!0,T=s[0])}return T},i.prototype.setGraphManager=function(d){this.graphManager=d},C.exports=i}),(function(C,M,N){function f(){}f.seed=1,f.x=0,f.nextDouble=function(){return f.x=Math.sin(f.seed++)*1e4,f.x-Math.floor(f.x)},C.exports=f}),(function(C,M,N){var f=N(5);function r(n,t){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}r.prototype.getWorldOrgX=function(){return this.lworldOrgX},r.prototype.setWorldOrgX=function(n){this.lworldOrgX=n},r.prototype.getWorldOrgY=function(){return this.lworldOrgY},r.prototype.setWorldOrgY=function(n){this.lworldOrgY=n},r.prototype.getWorldExtX=function(){return this.lworldExtX},r.prototype.setWorldExtX=function(n){this.lworldExtX=n},r.prototype.getWorldExtY=function(){return this.lworldExtY},r.prototype.setWorldExtY=function(n){this.lworldExtY=n},r.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},r.prototype.setDeviceOrgX=function(n){this.ldeviceOrgX=n},r.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},r.prototype.setDeviceOrgY=function(n){this.ldeviceOrgY=n},r.prototype.getDeviceExtX=function(){return this.ldeviceExtX},r.prototype.setDeviceExtX=function(n){this.ldeviceExtX=n},r.prototype.getDeviceExtY=function(){return this.ldeviceExtY},r.prototype.setDeviceExtY=function(n){this.ldeviceExtY=n},r.prototype.transformX=function(n){var t=0,e=this.lworldExtX;return e!=0&&(t=this.ldeviceOrgX+(n-this.lworldOrgX)*this.ldeviceExtX/e),t},r.prototype.transformY=function(n){var t=0,e=this.lworldExtY;return e!=0&&(t=this.ldeviceOrgY+(n-this.lworldOrgY)*this.ldeviceExtY/e),t},r.prototype.inverseTransformX=function(n){var t=0,e=this.ldeviceExtX;return e!=0&&(t=this.lworldOrgX+(n-this.ldeviceOrgX)*this.lworldExtX/e),t},r.prototype.inverseTransformY=function(n){var t=0,e=this.ldeviceExtY;return e!=0&&(t=this.lworldOrgY+(n-this.ldeviceOrgY)*this.lworldExtY/e),t},r.prototype.inverseTransformPoint=function(n){return new f(this.inverseTransformX(n.x),this.inverseTransformY(n.y))},C.exports=r}),(function(C,M,N){function f(o){if(Array.isArray(o)){for(var i=0,d=Array(o.length);i<o.length;i++)d[i]=o[i];return d}else return Array.from(o)}var r=N(15),n=N(4),t=N(0),e=N(8),h=N(9);function a(){r.call(this),this.useSmartIdealEdgeLengthCalculation=n.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=n.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=n.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=n.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=n.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*n.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=n.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=n.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=n.MAX_ITERATIONS}for(var p in a.prototype=Object.create(r.prototype),r)a[p]=r[p];a.prototype.initParameters=function(){r.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=n.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},a.prototype.calcIdealEdgeLengths=function(){for(var o,i,d,s,c,g,m,T=this.getGraphManager().getAllEdges(),L=0;L<T.length;L++)o=T[L],i=o.idealLength,o.isInterGraph&&(s=o.getSource(),c=o.getTarget(),g=o.getSourceInLca().getEstimatedSize(),m=o.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(o.idealLength+=g+m-2*t.SIMPLE_NODE_SIZE),d=o.getLca().getInclusionTreeDepth(),o.idealLength+=i*n.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(s.getInclusionTreeDepth()+c.getInclusionTreeDepth()-2*d))},a.prototype.initSpringEmbedder=function(){var o=this.getAllNodes().length;this.incremental?(o>n.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*n.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(o-n.ADAPTATION_LOWER_NODE_LIMIT)/(n.ADAPTATION_UPPER_NODE_LIMIT-n.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-n.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=n.MAX_NODE_DISPLACEMENT_INCREMENTAL):(o>n.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(n.COOLING_ADAPTATION_FACTOR,1-(o-n.ADAPTATION_LOWER_NODE_LIMIT)/(n.ADAPTATION_UPPER_NODE_LIMIT-n.ADAPTATION_LOWER_NODE_LIMIT)*(1-n.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=n.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*n.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},a.prototype.calcSpringForces=function(){for(var o=this.getAllEdges(),i,d=0;d<o.length;d++)i=o[d],this.calcSpringForce(i,i.idealLength)},a.prototype.calcRepulsionForces=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d,s,c,g,m=this.getAllNodes(),T;if(this.useFRGridVariant)for(this.totalIterations%n.GRID_CALCULATION_CHECK_PERIOD==1&&o&&this.updateGrid(),T=new Set,d=0;d<m.length;d++)c=m[d],this.calculateRepulsionForceOfANode(c,T,o,i),T.add(c);else for(d=0;d<m.length;d++)for(c=m[d],s=d+1;s<m.length;s++)g=m[s],c.getOwner()==g.getOwner()&&this.calcRepulsionForce(c,g)},a.prototype.calcGravitationalForces=function(){for(var o,i=this.getAllNodesToApplyGravitation(),d=0;d<i.length;d++)o=i[d],this.calcGravitationalForce(o)},a.prototype.moveNodes=function(){for(var o=this.getAllNodes(),i,d=0;d<o.length;d++)i=o[d],i.move()},a.prototype.calcSpringForce=function(o,i){var d=o.getSource(),s=o.getTarget(),c,g,m,T;if(this.uniformLeafNodeSizes&&d.getChild()==null&&s.getChild()==null)o.updateLengthSimple();else if(o.updateLength(),o.isOverlapingSourceAndTarget)return;c=o.getLength(),c!=0&&(g=o.edgeElasticity*(c-i),m=g*(o.lengthX/c),T=g*(o.lengthY/c),d.springForceX+=m,d.springForceY+=T,s.springForceX-=m,s.springForceY-=T)},a.prototype.calcRepulsionForce=function(o,i){var d=o.getRect(),s=i.getRect(),c=[,,],g=[,,,,],m,T,L,R,S,Y,$;if(d.intersects(s)){e.calcSeparationAmount(d,s,c,n.DEFAULT_EDGE_LENGTH/2),Y=2*c[0],$=2*c[1];var Z=o.noOfChildren*i.noOfChildren/(o.noOfChildren+i.noOfChildren);o.repulsionForceX-=Z*Y,o.repulsionForceY-=Z*$,i.repulsionForceX+=Z*Y,i.repulsionForceY+=Z*$}else this.uniformLeafNodeSizes&&o.getChild()==null&&i.getChild()==null?(m=s.getCenterX()-d.getCenterX(),T=s.getCenterY()-d.getCenterY()):(e.getIntersection(d,s,g),m=g[2]-g[0],T=g[3]-g[1]),Math.abs(m)<n.MIN_REPULSION_DIST&&(m=h.sign(m)*n.MIN_REPULSION_DIST),Math.abs(T)<n.MIN_REPULSION_DIST&&(T=h.sign(T)*n.MIN_REPULSION_DIST),L=m*m+T*T,R=Math.sqrt(L),S=(o.nodeRepulsion/2+i.nodeRepulsion/2)*o.noOfChildren*i.noOfChildren/L,Y=S*m/R,$=S*T/R,o.repulsionForceX-=Y,o.repulsionForceY-=$,i.repulsionForceX+=Y,i.repulsionForceY+=$},a.prototype.calcGravitationalForce=function(o){var i=o.getOwner(),d=(i.getRight()+i.getLeft())/2,s=(i.getTop()+i.getBottom())/2,c=o.getCenterX()-d,g=o.getCenterY()-s,m=Math.abs(c)+o.getWidth()/2,T=Math.abs(g)+o.getHeight()/2,L;o.getOwner()==this.graphManager.getRoot()?(L=i.getEstimatedSize()*this.gravityRangeFactor,(m>L||T>L)&&(o.gravitationForceX=-this.gravityConstant*c,o.gravitationForceY=-this.gravityConstant*g)):(L=i.getEstimatedSize()*this.compoundGravityRangeFactor,(m>L||T>L)&&(o.gravitationForceX=-this.gravityConstant*c*this.compoundGravityConstant,o.gravitationForceY=-this.gravityConstant*g*this.compoundGravityConstant))},a.prototype.isConverged=function(){var o,i=!1;return this.totalIterations>this.maxIterations/3&&(i=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),o=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,o||i},a.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},a.prototype.calcNoOfChildrenForAllNodes=function(){for(var o,i=this.graphManager.getAllNodes(),d=0;d<i.length;d++)o=i[d],o.noOfChildren=o.getNoOfChildren()},a.prototype.calcGrid=function(o){var i=0,d=0;i=parseInt(Math.ceil((o.getRight()-o.getLeft())/this.repulsionRange)),d=parseInt(Math.ceil((o.getBottom()-o.getTop())/this.repulsionRange));for(var s=Array(i),c=0;c<i;c++)s[c]=Array(d);for(var c=0;c<i;c++)for(var g=0;g<d;g++)s[c][g]=[];return s},a.prototype.addNodeToGrid=function(o,i,d){var s=0,c=0,g=0,m=0;s=parseInt(Math.floor((o.getRect().x-i)/this.repulsionRange)),c=parseInt(Math.floor((o.getRect().width+o.getRect().x-i)/this.repulsionRange)),g=parseInt(Math.floor((o.getRect().y-d)/this.repulsionRange)),m=parseInt(Math.floor((o.getRect().height+o.getRect().y-d)/this.repulsionRange));for(var T=s;T<=c;T++)for(var L=g;L<=m;L++)this.grid[T][L].push(o),o.setGridCoordinates(s,c,g,m)},a.prototype.updateGrid=function(){var o,i,d=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),o=0;o<d.length;o++)i=d[o],this.addNodeToGrid(i,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},a.prototype.calculateRepulsionForceOfANode=function(o,i,d,s){if(this.totalIterations%n.GRID_CALCULATION_CHECK_PERIOD==1&&d||s){var c=new Set;o.surrounding=[];for(var g,m=this.grid,T=o.startX-1;T<o.finishX+2;T++)for(var L=o.startY-1;L<o.finishY+2;L++)if(!(T<0||L<0||T>=m.length||L>=m[0].length)){for(var R=0;R<m[T][L].length;R++)if(g=m[T][L][R],!(o.getOwner()!=g.getOwner()||o==g)&&!i.has(g)&&!c.has(g)){var S=Math.abs(o.getCenterX()-g.getCenterX())-(o.getWidth()/2+g.getWidth()/2),Y=Math.abs(o.getCenterY()-g.getCenterY())-(o.getHeight()/2+g.getHeight()/2);S<=this.repulsionRange&&Y<=this.repulsionRange&&c.add(g)}}o.surrounding=[].concat(f(c))}for(T=0;T<o.surrounding.length;T++)this.calcRepulsionForce(o,o.surrounding[T])},a.prototype.calcRepulsionRange=function(){return 0},C.exports=a}),(function(C,M,N){var f=N(1),r=N(4);function n(e,h,a){f.call(this,e,h,a),this.idealLength=r.DEFAULT_EDGE_LENGTH,this.edgeElasticity=r.DEFAULT_SPRING_STRENGTH}for(var t in n.prototype=Object.create(f.prototype),f)n[t]=f[t];C.exports=n}),(function(C,M,N){var f=N(3),r=N(4);function n(e,h,a,p){f.call(this,e,h,a,p),this.nodeRepulsion=r.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=[]}for(var t in n.prototype=Object.create(f.prototype),f)n[t]=f[t];n.prototype.setGridCoordinates=function(e,h,a,p){this.startX=e,this.finishX=h,this.startY=a,this.finishY=p},C.exports=n}),(function(C,M,N){function f(r,n){this.width=0,this.height=0,r!==null&&n!==null&&(this.height=n,this.width=r)}f.prototype.getWidth=function(){return this.width},f.prototype.setWidth=function(r){this.width=r},f.prototype.getHeight=function(){return this.height},f.prototype.setHeight=function(r){this.height=r},C.exports=f}),(function(C,M,N){var f=N(14);function r(){this.map={},this.keys=[]}r.prototype.put=function(n,t){var e=f.createID(n);this.contains(e)||(this.map[e]=t,this.keys.push(n))},r.prototype.contains=function(n){return f.createID(n),this.map[n]!=null},r.prototype.get=function(n){var t=f.createID(n);return this.map[t]},r.prototype.keySet=function(){return this.keys},C.exports=r}),(function(C,M,N){var f=N(14);function r(){this.set={}}r.prototype.add=function(n){var t=f.createID(n);this.contains(t)||(this.set[t]=n)},r.prototype.remove=function(n){delete this.set[f.createID(n)]},r.prototype.clear=function(){this.set={}},r.prototype.contains=function(n){return this.set[f.createID(n)]==n},r.prototype.isEmpty=function(){return this.size()===0},r.prototype.size=function(){return Object.keys(this.set).length},r.prototype.addAllTo=function(n){for(var t=Object.keys(this.set),e=t.length,h=0;h<e;h++)n.push(this.set[t[h]])},r.prototype.size=function(){return Object.keys(this.set).length},r.prototype.addAll=function(n){for(var t=n.length,e=0;e<t;e++){var h=n[e];this.add(h)}},C.exports=r}),(function(C,M,N){function f(){}f.multMat=function(r,n){for(var t=[],e=0;e<r.length;e++){t[e]=[];for(var h=0;h<n[0].length;h++){t[e][h]=0;for(var a=0;a<r[0].length;a++)t[e][h]+=r[e][a]*n[a][h]}}return t},f.transpose=function(r){for(var n=[],t=0;t<r[0].length;t++){n[t]=[];for(var e=0;e<r.length;e++)n[t][e]=r[e][t]}return n},f.multCons=function(r,n){for(var t=[],e=0;e<r.length;e++)t[e]=r[e]*n;return t},f.minusOp=function(r,n){for(var t=[],e=0;e<r.length;e++)t[e]=r[e]-n[e];return t},f.dotProduct=function(r,n){for(var t=0,e=0;e<r.length;e++)t+=r[e]*n[e];return t},f.mag=function(r){return Math.sqrt(this.dotProduct(r,r))},f.normalize=function(r){for(var n=[],t=this.mag(r),e=0;e<r.length;e++)n[e]=r[e]/t;return n},f.multGamma=function(r){for(var n=[],t=0,e=0;e<r.length;e++)t+=r[e];t*=-1/r.length;for(var h=0;h<r.length;h++)n[h]=t+r[h];return n},f.multL=function(r,n,t){for(var e=[],h=[],a=[],p=0;p<n[0].length;p++){for(var o=0,i=0;i<n.length;i++)o+=-.5*n[i][p]*r[i];h[p]=o}for(var d=0;d<t.length;d++){for(var s=0,c=0;c<t.length;c++)s+=t[d][c]*h[c];a[d]=s}for(var g=0;g<n.length;g++){for(var m=0,T=0;T<n[0].length;T++)m+=n[g][T]*a[T];e[g]=m}return e},C.exports=f}),(function(C,M,N){var f=(function(){function t(e,h){for(var a=0;a<h.length;a++){var p=h[a];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(e,p.key,p)}}return function(e,h,a){return h&&t(e.prototype,h),a&&t(e,a),e}})();function r(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}var n=N(11);C.exports=(function(){function t(e,h){r(this,t),(h!==null||h!==void 0)&&(this.compareFunction=this._defaultCompareFunction);var a=void 0;a=e instanceof n?e.size():e.length,this._quicksort(e,0,a-1)}return f(t,[{key:"_quicksort",value:function(e,h,a){if(h<a){var p=this._partition(e,h,a);this._quicksort(e,h,p),this._quicksort(e,p+1,a)}}},{key:"_partition",value:function(e,h,a){for(var p=this._get(e,h),o=h,i=a;;){for(;this.compareFunction(p,this._get(e,i));)i--;for(;this.compareFunction(this._get(e,o),p);)o++;if(o<i)this._swap(e,o,i),o++,i--;else return i}}},{key:"_get",value:function(e,h){return e instanceof n?e.get_object_at(h):e[h]}},{key:"_set",value:function(e,h,a){e instanceof n?e.set_object_at(h,a):e[h]=a}},{key:"_swap",value:function(e,h,a){var p=this._get(e,h);this._set(e,h,this._get(e,a)),this._set(e,a,p)}},{key:"_defaultCompareFunction",value:function(e,h){return h>e}}]),t})()}),(function(C,M,N){function f(){}f.svd=function(r){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=r.length,this.n=r[0].length;var n=Math.min(this.m,this.n);this.s=(function(Tt){for(var Nt=[];Tt-- >0;)Nt.push(0);return Nt})(Math.min(this.m+1,this.n)),this.U=(function(Tt){return(function Nt(Mt){if(Mt.length==0)return 0;for(var Pt=[],Xt=0;Xt<Mt[0];Xt++)Pt.push(Nt(Mt.slice(1)));return Pt})(Tt)})([this.m,n]),this.V=(function(Tt){return(function Nt(Mt){if(Mt.length==0)return 0;for(var Pt=[],Xt=0;Xt<Mt[0];Xt++)Pt.push(Nt(Mt.slice(1)));return Pt})(Tt)})([this.n,this.n]);for(var t=(function(Tt){for(var Nt=[];Tt-- >0;)Nt.push(0);return Nt})(this.n),e=(function(Tt){for(var Nt=[];Tt-- >0;)Nt.push(0);return Nt})(this.m),h=!0,a=!0,p=Math.min(this.m-1,this.n),o=Math.max(0,Math.min(this.n-2,this.m)),i=0;i<Math.max(p,o);i++){if(i<p){this.s[i]=0;for(var d=i;d<this.m;d++)this.s[i]=f.hypot(this.s[i],r[d][i]);if(this.s[i]!==0){r[i][i]<0&&(this.s[i]=-this.s[i]);for(var s=i;s<this.m;s++)r[s][i]/=this.s[i];r[i][i]+=1}this.s[i]=-this.s[i]}for(var c=i+1;c<this.n;c++){if((function(Tt,Nt){return Tt&&Nt})(i<p,this.s[i]!==0)){for(var g=0,m=i;m<this.m;m++)g+=r[m][i]*r[m][c];g=-g/r[i][i];for(var T=i;T<this.m;T++)r[T][c]+=g*r[T][i]}t[c]=r[i][c]}if((function(Tt,Nt){return Tt&&Nt})(h,i<p))for(var L=i;L<this.m;L++)this.U[L][i]=r[L][i];if(i<o){t[i]=0;for(var R=i+1;R<this.n;R++)t[i]=f.hypot(t[i],t[R]);if(t[i]!==0){t[i+1]<0&&(t[i]=-t[i]);for(var S=i+1;S<this.n;S++)t[S]/=t[i];t[i+1]+=1}if(t[i]=-t[i],(function(Tt,Nt){return Tt&&Nt})(i+1<this.m,t[i]!==0)){for(var Y=i+1;Y<this.m;Y++)e[Y]=0;for(var $=i+1;$<this.n;$++)for(var Z=i+1;Z<this.m;Z++)e[Z]+=t[$]*r[Z][$];for(var D=i+1;D<this.n;D++)for(var J=-t[D]/t[i+1],l=i+1;l<this.m;l++)r[l][D]+=J*e[l]}if(a)for(var E=i+1;E<this.n;E++)this.V[E][i]=t[E]}}var u=Math.min(this.n,this.m+1);if(p<this.n&&(this.s[p]=r[p][p]),this.m<u&&(this.s[u-1]=0),o+1<u&&(t[o]=r[o][u-1]),t[u-1]=0,h){for(var y=p;y<n;y++){for(var v=0;v<this.m;v++)this.U[v][y]=0;this.U[y][y]=1}for(var A=p-1;A>=0;A--)if(this.s[A]!==0){for(var w=A+1;w<n;w++){for(var b=0,G=A;G<this.m;G++)b+=this.U[G][A]*this.U[G][w];b=-b/this.U[A][A];for(var F=A;F<this.m;F++)this.U[F][w]+=b*this.U[F][A]}for(var k=A;k<this.m;k++)this.U[k][A]=-this.U[k][A];this.U[A][A]=1+this.U[A][A];for(var V=0;V<A-1;V++)this.U[V][A]=0}else{for(var K=0;K<this.m;K++)this.U[K][A]=0;this.U[A][A]=1}}if(a)for(var H=this.n-1;H>=0;H--){if((function(Tt,Nt){return Tt&&Nt})(H<o,t[H]!==0))for(var X=H+1;X<n;X++){for(var O=0,z=H+1;z<this.n;z++)O+=this.V[z][H]*this.V[z][X];O=-O/this.V[H+1][H];for(var et=H+1;et<this.n;et++)this.V[et][X]+=O*this.V[et][H]}for(var U=0;U<this.n;U++)this.V[U][H]=0;this.V[H][H]=1}for(var B=u-1,lt=0,at=2**-52,Lt=2**-966;u>0;){var W=void 0,pt=void 0;for(W=u-2;W>=-1&&W!==-1;W--)if(Math.abs(t[W])<=Lt+at*(Math.abs(this.s[W])+Math.abs(this.s[W+1]))){t[W]=0;break}if(W===u-2)pt=4;else{var vt=void 0;for(vt=u-1;vt>=W&&vt!==W;vt--){var Bt=(vt===u?0:Math.abs(t[vt]))+(vt===W+1?0:Math.abs(t[vt-1]));if(Math.abs(this.s[vt])<=Lt+at*Bt){this.s[vt]=0;break}}vt===W?pt=3:vt===u-1?pt=1:(pt=2,W=vt)}switch(W++,pt){case 1:var Yt=t[u-2];t[u-2]=0;for(var _t=u-2;_t>=W;_t--){var xt=f.hypot(this.s[_t],Yt),kt=this.s[_t]/xt,Ut=Yt/xt;if(this.s[_t]=xt,_t!==W&&(Yt=-Ut*t[_t-1],t[_t-1]=kt*t[_t-1]),a)for(var Rt=0;Rt<this.n;Rt++)xt=kt*this.V[Rt][_t]+Ut*this.V[Rt][u-1],this.V[Rt][u-1]=-Ut*this.V[Rt][_t]+kt*this.V[Rt][u-1],this.V[Rt][_t]=xt}break;case 2:var Vt=t[W-1];t[W-1]=0;for(var Gt=W;Gt<u;Gt++){var st=f.hypot(this.s[Gt],Vt),ot=this.s[Gt]/st,ct=Vt/st;if(this.s[Gt]=st,Vt=-ct*t[Gt],t[Gt]=ot*t[Gt],h)for(var I=0;I<this.m;I++)st=ot*this.U[I][Gt]+ct*this.U[I][W-1],this.U[I][W-1]=-ct*this.U[I][Gt]+ot*this.U[I][W-1],this.U[I][Gt]=st}break;case 3:var P=Math.max(Math.max(Math.max(Math.max(Math.abs(this.s[u-1]),Math.abs(this.s[u-2])),Math.abs(t[u-2])),Math.abs(this.s[W])),Math.abs(t[W])),q=this.s[u-1]/P,j=this.s[u-2]/P,tt=t[u-2]/P,Et=this.s[W]/P,yt=t[W]/P,it=((j+q)*(j-q)+tt*tt)/2,ft=q*tt*(q*tt),It=0;(function(Tt,Nt){return Tt||Nt})(it!==0,ft!==0)&&(It=Math.sqrt(it*it+ft),it<0&&(It=-It),It=ft/(it+It));for(var wt=(Et+q)*(Et-q)+It,mt=Et*yt,ht=W;ht<u-1;ht++){var dt=f.hypot(wt,mt),Q=wt/dt,ut=mt/dt;if(ht!==W&&(t[ht-1]=dt),wt=Q*this.s[ht]+ut*t[ht],t[ht]=Q*t[ht]-ut*this.s[ht],mt=ut*this.s[ht+1],this.s[ht+1]=Q*this.s[ht+1],a)for(var At=0;At<this.n;At++)dt=Q*this.V[At][ht]+ut*this.V[At][ht+1],this.V[At][ht+1]=-ut*this.V[At][ht]+Q*this.V[At][ht+1],this.V[At][ht]=dt;if(dt=f.hypot(wt,mt),Q=wt/dt,ut=mt/dt,this.s[ht]=dt,wt=Q*t[ht]+ut*this.s[ht+1],this.s[ht+1]=-ut*t[ht]+Q*this.s[ht+1],mt=ut*t[ht+1],t[ht+1]=Q*t[ht+1],h&&ht<this.m-1)for(var rt=0;rt<this.m;rt++)dt=Q*this.U[rt][ht]+ut*this.U[rt][ht+1],this.U[rt][ht+1]=-ut*this.U[rt][ht]+Q*this.U[rt][ht+1],this.U[rt][ht]=dt}t[u-2]=wt,lt+=1;break;case 4:if(this.s[W]<=0&&(this.s[W]=this.s[W]<0?-this.s[W]:0,a))for(var bt=0;bt<=B;bt++)this.V[bt][W]=-this.V[bt][W];for(;W<B&&!(this.s[W]>=this.s[W+1]);){var Ot=this.s[W];if(this.s[W]=this.s[W+1],this.s[W+1]=Ot,a&&W<this.n-1)for(var Dt=0;Dt<this.n;Dt++)Ot=this.V[Dt][W+1],this.V[Dt][W+1]=this.V[Dt][W],this.V[Dt][W]=Ot;if(h&&W<this.m-1)for(var Ft=0;Ft<this.m;Ft++)Ot=this.U[Ft][W+1],this.U[Ft][W+1]=this.U[Ft][W],this.U[Ft][W]=Ot;W++}lt=0,u--;break}}return{U:this.U,V:this.V,S:this.s}},f.hypot=function(r,n){var t=void 0;return Math.abs(r)>Math.abs(n)?(t=n/r,t=Math.abs(r)*Math.sqrt(1+t*t)):n==0?t=0:(t=r/n,t=Math.abs(n)*Math.sqrt(1+t*t)),t},C.exports=f}),(function(C,M,N){var f=(function(){function n(t,e){for(var h=0;h<e.length;h++){var a=e[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,e,h){return e&&n(t.prototype,e),h&&n(t,h),t}})();function r(n,t){if(!(n instanceof t))throw TypeError("Cannot call a class as a function")}C.exports=(function(){function n(t,e){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;r(this,n),this.sequence1=t,this.sequence2=e,this.match_score=h,this.mismatch_penalty=a,this.gap_penalty=p,this.iMax=t.length+1,this.jMax=e.length+1,this.grid=Array(this.iMax);for(var o=0;o<this.iMax;o++){this.grid[o]=Array(this.jMax);for(var i=0;i<this.jMax;i++)this.grid[o][i]=0}this.tracebackGrid=Array(this.iMax);for(var d=0;d<this.iMax;d++){this.tracebackGrid[d]=Array(this.jMax);for(var s=0;s<this.jMax;s++)this.tracebackGrid[d][s]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return f(n,[{key:"getScore",value:function(){return this.score}},{key:"getAlignments",value:function(){return this.alignments}},{key:"computeGrids",value:function(){for(var t=1;t<this.jMax;t++)this.grid[0][t]=this.grid[0][t-1]+this.gap_penalty,this.tracebackGrid[0][t]=[!1,!1,!0];for(var e=1;e<this.iMax;e++)this.grid[e][0]=this.grid[e-1][0]+this.gap_penalty,this.tracebackGrid[e][0]=[!1,!0,!1];for(var h=1;h<this.iMax;h++)for(var a=1;a<this.jMax;a++){var p=void 0;p=this.sequence1[h-1]===this.sequence2[a-1]?this.grid[h-1][a-1]+this.match_score:this.grid[h-1][a-1]+this.mismatch_penalty;var o=this.grid[h-1][a]+this.gap_penalty,i=this.grid[h][a-1]+this.gap_penalty,d=[p,o,i],s=this.arrayAllMaxIndexes(d);this.grid[h][a]=d[s[0]],this.tracebackGrid[h][a]=[s.includes(0),s.includes(1),s.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:"alignmentTraceback",value:function(){var t=[];for(t.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});t[0];){var e=t[0],h=this.tracebackGrid[e.pos[0]][e.pos[1]];h[0]&&t.push({pos:[e.pos[0]-1,e.pos[1]-1],seq1:this.sequence1[e.pos[0]-1]+e.seq1,seq2:this.sequence2[e.pos[1]-1]+e.seq2}),h[1]&&t.push({pos:[e.pos[0]-1,e.pos[1]],seq1:this.sequence1[e.pos[0]-1]+e.seq1,seq2:"-"+e.seq2}),h[2]&&t.push({pos:[e.pos[0],e.pos[1]-1],seq1:"-"+e.seq1,seq2:this.sequence2[e.pos[1]-1]+e.seq2}),e.pos[0]===0&&e.pos[1]===0&&this.alignments.push({sequence1:e.seq1,sequence2:e.seq2}),t.shift()}return this.alignments}},{key:"getAllIndexes",value:function(t,e){for(var h=[],a=-1;(a=t.indexOf(e,a+1))!==-1;)h.push(a);return h}},{key:"arrayAllMaxIndexes",value:function(t){return this.getAllIndexes(t,Math.max.apply(null,t))}}]),n})()}),(function(C,M,N){var f=function(){};f.FDLayout=N(18),f.FDLayoutConstants=N(4),f.FDLayoutEdge=N(19),f.FDLayoutNode=N(20),f.DimensionD=N(21),f.HashMap=N(22),f.HashSet=N(23),f.IGeometry=N(8),f.IMath=N(9),f.Integer=N(10),f.Point=N(12),f.PointD=N(5),f.RandomSeed=N(16),f.RectangleD=N(13),f.Transform=N(17),f.UniqueIDGeneretor=N(14),f.Quicksort=N(25),f.LinkedList=N(11),f.LGraphObject=N(2),f.LGraph=N(6),f.LEdge=N(1),f.LGraphManager=N(7),f.LNode=N(3),f.Layout=N(15),f.LayoutConstants=N(0),f.NeedlemanWunsch=N(27),f.Matrix=N(24),f.SVD=N(26),C.exports=f}),(function(C,M,N){function f(){this.listeners=[]}var r=f.prototype;r.addListener=function(n,t){this.listeners.push({event:n,callback:t})},r.removeListener=function(n,t){for(var e=this.listeners.length;e>=0;e--){var h=this.listeners[e];h.event===n&&h.callback===t&&this.listeners.splice(e,1)}},r.emit=function(n,t){for(var e=0;e<this.listeners.length;e++){var h=this.listeners[e];n===h.event&&h.callback(t)}},C.exports=f})])})})),we=de(((_,x)=>{(function(C,M){typeof _=="object"&&typeof x=="object"?x.exports=M(Le()):typeof define=="function"&&define.amd?define(["layout-base"],M):typeof _=="object"?_.coseBase=M(Le()):C.coseBase=M(C.layoutBase)})(_,function(C){return(()=>{var M={45:((r,n,t)=>{var e={};e.layoutBase=t(551),e.CoSEConstants=t(806),e.CoSEEdge=t(767),e.CoSEGraph=t(880),e.CoSEGraphManager=t(578),e.CoSELayout=t(765),e.CoSENode=t(991),e.ConstraintHandler=t(902),r.exports=e}),806:((r,n,t)=>{var e=t(551).FDLayoutConstants;function h(){}for(var a in e)h[a]=e[a];h.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,h.DEFAULT_RADIAL_SEPARATION=e.DEFAULT_EDGE_LENGTH,h.DEFAULT_COMPONENT_SEPERATION=60,h.TILE=!0,h.TILING_PADDING_VERTICAL=10,h.TILING_PADDING_HORIZONTAL=10,h.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,h.ENFORCE_CONSTRAINTS=!0,h.APPLY_LAYOUT=!0,h.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,h.TREE_REDUCTION_ON_INCREMENTAL=!0,h.PURE_INCREMENTAL=h.DEFAULT_INCREMENTAL,r.exports=h}),767:((r,n,t)=>{var e=t(551).FDLayoutEdge;function h(p,o,i){e.call(this,p,o,i)}for(var a in h.prototype=Object.create(e.prototype),e)h[a]=e[a];r.exports=h}),880:((r,n,t)=>{var e=t(551).LGraph;function h(p,o,i){e.call(this,p,o,i)}for(var a in h.prototype=Object.create(e.prototype),e)h[a]=e[a];r.exports=h}),578:((r,n,t)=>{var e=t(551).LGraphManager;function h(p){e.call(this,p)}for(var a in h.prototype=Object.create(e.prototype),e)h[a]=e[a];r.exports=h}),765:((r,n,t)=>{var e=t(551).FDLayout,h=t(578),a=t(880),p=t(991),o=t(767),i=t(806),d=t(902),s=t(551).FDLayoutConstants,c=t(551).LayoutConstants,g=t(551).Point,m=t(551).PointD,T=t(551).DimensionD,L=t(551).Layout,R=t(551).Integer,S=t(551).IGeometry,Y=t(551).LGraph,$=t(551).Transform,Z=t(551).LinkedList;function D(){e.call(this),this.toBeTiled={},this.constraints={}}for(var J in D.prototype=Object.create(e.prototype),e)D[J]=e[J];D.prototype.newGraphManager=function(){var l=new h(this);return this.graphManager=l,l},D.prototype.newGraph=function(l){return new a(null,this.graphManager,l)},D.prototype.newNode=function(l){return new p(this.graphManager,l)},D.prototype.newEdge=function(l){return new o(null,null,l)},D.prototype.initParameters=function(){e.prototype.initParameters.call(this,arguments),this.isSubLayout||(i.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=i.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=i.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=s.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=s.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=s.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=s.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},D.prototype.initSpringEmbedder=function(){e.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/s.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},D.prototype.layout=function(){return c.DEFAULT_CREATE_BENDS_AS_NEEDED&&(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(i.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var l=new Set(this.getAllNodes()),E=this.nodesWithGravity.filter(function(y){return l.has(y)});this.graphManager.setAllNodesToApplyGravitation(E)}}else{var u=this.getFlatForest();if(u.length>0)this.positionNodesRadially(u);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var l=new Set(this.getAllNodes()),E=this.nodesWithGravity.filter(function(A){return l.has(A)});this.graphManager.setAllNodesToApplyGravitation(E),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(d.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),i.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%s.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-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 l=new Set(this.getAllNodes()),E=this.nodesWithGravity.filter(function(v){return l.has(v)});this.graphManager.setAllNodesToApplyGravitation(E),this.graphManager.updateBounds(),this.updateGrid(),i.PURE_INCREMENTAL?this.coolingFactor=s.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=s.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()),i.PURE_INCREMENTAL?this.coolingFactor=s.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=s.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var u=!this.isTreeGrowing&&!this.isGrowthFinished,y=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(u,y),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},D.prototype.getPositionsData=function(){for(var l=this.graphManager.getAllNodes(),E={},u=0;u<l.length;u++){var y=l[u].rect,v=l[u].id;E[v]={id:v,x:y.getCenterX(),y:y.getCenterY(),w:y.width,h:y.height}}return E},D.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var l=!1;if(s.ANIMATE==="during")this.emit("layoutstarted");else{for(;!l;)l=this.tick();this.graphManager.updateBounds()}},D.prototype.moveNodes=function(){for(var l=this.getAllNodes(),E,u=0;u<l.length;u++)E=l[u],E.calculateDisplacement();Object.keys(this.constraints).length>0&&this.updateDisplacements();for(var u=0;u<l.length;u++)E=l[u],E.move()},D.prototype.initConstraintVariables=function(){var l=this;this.idToNodeMap=new Map,this.fixedNodeSet=new Set;for(var E=this.graphManager.getAllNodes(),u=0;u<E.length;u++){var y=E[u];this.idToNodeMap.set(y.id,y)}var v=function O(z){for(var et=z.getChild().getNodes(),U,B=0,lt=0;lt<et.length;lt++)U=et[lt],U.getChild()==null?l.fixedNodeSet.has(U.id)&&(B+=100):B+=O(U);return B};if(this.constraints.fixedNodeConstraint){this.constraints.fixedNodeConstraint.forEach(function(O){l.fixedNodeSet.add(O.nodeId)});for(var E=this.graphManager.getAllNodes(),y,u=0;u<E.length;u++)if(y=E[u],y.getChild()!=null){var A=v(y);A>0&&(y.fixedNodeWeight=A)}}if(this.constraints.relativePlacementConstraint){var w=new Map,b=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(O){l.fixedNodesOnHorizontal.add(O),l.fixedNodesOnVertical.add(O)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var G=this.constraints.alignmentConstraint.vertical,u=0;u<G.length;u++)this.dummyToNodeForVerticalAlignment.set("dummy"+u,[]),G[u].forEach(function(z){w.set(z,"dummy"+u),l.dummyToNodeForVerticalAlignment.get("dummy"+u).push(z),l.fixedNodeSet.has(z)&&l.fixedNodesOnHorizontal.add("dummy"+u)});if(this.constraints.alignmentConstraint.horizontal)for(var F=this.constraints.alignmentConstraint.horizontal,u=0;u<F.length;u++)this.dummyToNodeForHorizontalAlignment.set("dummy"+u,[]),F[u].forEach(function(z){b.set(z,"dummy"+u),l.dummyToNodeForHorizontalAlignment.get("dummy"+u).push(z),l.fixedNodeSet.has(z)&&l.fixedNodesOnVertical.add("dummy"+u)})}if(i.RELAX_MOVEMENT_ON_CONSTRAINTS)this.shuffle=function(O){var z,et,U;for(U=O.length-1;U>=2*O.length/3;U--)z=Math.floor(Math.random()*(U+1)),et=O[U],O[U]=O[z],O[z]=et;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 z=w.has(O.left)?w.get(O.left):O.left,et=w.has(O.right)?w.get(O.right):O.right;l.nodesInRelativeHorizontal.includes(z)||(l.nodesInRelativeHorizontal.push(z),l.nodeToRelativeConstraintMapHorizontal.set(z,[]),l.dummyToNodeForVerticalAlignment.has(z)?l.nodeToTempPositionMapHorizontal.set(z,l.idToNodeMap.get(l.dummyToNodeForVerticalAlignment.get(z)[0]).getCenterX()):l.nodeToTempPositionMapHorizontal.set(z,l.idToNodeMap.get(z).getCenterX())),l.nodesInRelativeHorizontal.includes(et)||(l.nodesInRelativeHorizontal.push(et),l.nodeToRelativeConstraintMapHorizontal.set(et,[]),l.dummyToNodeForVerticalAlignment.has(et)?l.nodeToTempPositionMapHorizontal.set(et,l.idToNodeMap.get(l.dummyToNodeForVerticalAlignment.get(et)[0]).getCenterX()):l.nodeToTempPositionMapHorizontal.set(et,l.idToNodeMap.get(et).getCenterX())),l.nodeToRelativeConstraintMapHorizontal.get(z).push({right:et,gap:O.gap}),l.nodeToRelativeConstraintMapHorizontal.get(et).push({left:z,gap:O.gap})}else{var U=b.has(O.top)?b.get(O.top):O.top,B=b.has(O.bottom)?b.get(O.bottom):O.bottom;l.nodesInRelativeVertical.includes(U)||(l.nodesInRelativeVertical.push(U),l.nodeToRelativeConstraintMapVertical.set(U,[]),l.dummyToNodeForHorizontalAlignment.has(U)?l.nodeToTempPositionMapVertical.set(U,l.idToNodeMap.get(l.dummyToNodeForHorizontalAlignment.get(U)[0]).getCenterY()):l.nodeToTempPositionMapVertical.set(U,l.idToNodeMap.get(U).getCenterY())),l.nodesInRelativeVertical.includes(B)||(l.nodesInRelativeVertical.push(B),l.nodeToRelativeConstraintMapVertical.set(B,[]),l.dummyToNodeForHorizontalAlignment.has(B)?l.nodeToTempPositionMapVertical.set(B,l.idToNodeMap.get(l.dummyToNodeForHorizontalAlignment.get(B)[0]).getCenterY()):l.nodeToTempPositionMapVertical.set(B,l.idToNodeMap.get(B).getCenterY())),l.nodeToRelativeConstraintMapVertical.get(U).push({bottom:B,gap:O.gap}),l.nodeToRelativeConstraintMapVertical.get(B).push({top:U,gap:O.gap})}});else{var k=new Map,V=new Map;this.constraints.relativePlacementConstraint.forEach(function(O){if(O.left){var z=w.has(O.left)?w.get(O.left):O.left,et=w.has(O.right)?w.get(O.right):O.right;k.has(z)?k.get(z).push(et):k.set(z,[et]),k.has(et)?k.get(et).push(z):k.set(et,[z])}else{var U=b.has(O.top)?b.get(O.top):O.top,B=b.has(O.bottom)?b.get(O.bottom):O.bottom;V.has(U)?V.get(U).push(B):V.set(U,[B]),V.has(B)?V.get(B).push(U):V.set(B,[U])}});var K=function(O,z){var et=[],U=[],B=new Z,lt=new Set,at=0;return O.forEach(function(Lt,W){if(!lt.has(W)){et[at]=[],U[at]=!1;var pt=W;for(B.push(pt),lt.add(pt),et[at].push(pt);B.length!=0;)pt=B.shift(),z.has(pt)&&(U[at]=!0),O.get(pt).forEach(function(vt){lt.has(vt)||(B.push(vt),lt.add(vt),et[at].push(vt))});at++}}),{components:et,isFixed:U}},H=K(k,l.fixedNodesOnHorizontal);this.componentsOnHorizontal=H.components,this.fixedComponentsOnHorizontal=H.isFixed;var X=K(V,l.fixedNodesOnVertical);this.componentsOnVertical=X.components,this.fixedComponentsOnVertical=X.isFixed}}},D.prototype.updateDisplacements=function(){var l=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(X){var O=l.idToNodeMap.get(X.nodeId);O.displacementX=0,O.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var E=this.constraints.alignmentConstraint.vertical,u=0;u<E.length;u++){for(var y=0,v=0;v<E[u].length;v++){if(this.fixedNodeSet.has(E[u][v])){y=0;break}y+=this.idToNodeMap.get(E[u][v]).displacementX}for(var A=y/E[u].length,v=0;v<E[u].length;v++)this.idToNodeMap.get(E[u][v]).displacementX=A}if(this.constraints.alignmentConstraint.horizontal)for(var w=this.constraints.alignmentConstraint.horizontal,u=0;u<w.length;u++){for(var b=0,v=0;v<w[u].length;v++){if(this.fixedNodeSet.has(w[u][v])){b=0;break}b+=this.idToNodeMap.get(w[u][v]).displacementY}for(var G=b/w[u].length,v=0;v<w[u].length;v++)this.idToNodeMap.get(w[u][v]).displacementY=G}}if(this.constraints.relativePlacementConstraint)if(i.RELAX_MOVEMENT_ON_CONSTRAINTS)this.totalIterations%10==0&&(this.shuffle(this.nodesInRelativeHorizontal),this.shuffle(this.nodesInRelativeVertical)),this.nodesInRelativeHorizontal.forEach(function(X){if(!l.fixedNodesOnHorizontal.has(X)){var O=0;O=l.dummyToNodeForVerticalAlignment.has(X)?l.idToNodeMap.get(l.dummyToNodeForVerticalAlignment.get(X)[0]).displacementX:l.idToNodeMap.get(X).displacementX,l.nodeToRelativeConstraintMapHorizontal.get(X).forEach(function(z){if(z.right){var et=l.nodeToTempPositionMapHorizontal.get(z.right)-l.nodeToTempPositionMapHorizontal.get(X)-O;et<z.gap&&(O-=z.gap-et)}else{var et=l.nodeToTempPositionMapHorizontal.get(X)-l.nodeToTempPositionMapHorizontal.get(z.left)+O;et<z.gap&&(O+=z.gap-et)}}),l.nodeToTempPositionMapHorizontal.set(X,l.nodeToTempPositionMapHorizontal.get(X)+O),l.dummyToNodeForVerticalAlignment.has(X)?l.dummyToNodeForVerticalAlignment.get(X).forEach(function(z){l.idToNodeMap.get(z).displacementX=O}):l.idToNodeMap.get(X).displacementX=O}}),this.nodesInRelativeVertical.forEach(function(X){if(!l.fixedNodesOnHorizontal.has(X)){var O=0;O=l.dummyToNodeForHorizontalAlignment.has(X)?l.idToNodeMap.get(l.dummyToNodeForHorizontalAlignment.get(X)[0]).displacementY:l.idToNodeMap.get(X).displacementY,l.nodeToRelativeConstraintMapVertical.get(X).forEach(function(z){if(z.bottom){var et=l.nodeToTempPositionMapVertical.get(z.bottom)-l.nodeToTempPositionMapVertical.get(X)-O;et<z.gap&&(O-=z.gap-et)}else{var et=l.nodeToTempPositionMapVertical.get(X)-l.nodeToTempPositionMapVertical.get(z.top)+O;et<z.gap&&(O+=z.gap-et)}}),l.nodeToTempPositionMapVertical.set(X,l.nodeToTempPositionMapVertical.get(X)+O),l.dummyToNodeForHorizontalAlignment.has(X)?l.dummyToNodeForHorizontalAlignment.get(X).forEach(function(z){l.idToNodeMap.get(z).displacementY=O}):l.idToNodeMap.get(X).displacementY=O}});else{for(var u=0;u<this.componentsOnHorizontal.length;u++){var F=this.componentsOnHorizontal[u];if(this.fixedComponentsOnHorizontal[u])for(var v=0;v<F.length;v++)this.dummyToNodeForVerticalAlignment.has(F[v])?this.dummyToNodeForVerticalAlignment.get(F[v]).forEach(function(z){l.idToNodeMap.get(z).displacementX=0}):this.idToNodeMap.get(F[v]).displacementX=0;else{for(var k=0,V=0,v=0;v<F.length;v++)if(this.dummyToNodeForVerticalAlignment.has(F[v])){var K=this.dummyToNodeForVerticalAlignment.get(F[v]);k+=K.length*this.idToNodeMap.get(K[0]).displacementX,V+=K.length}else k+=this.idToNodeMap.get(F[v]).displacementX,V++;for(var H=k/V,v=0;v<F.length;v++)this.dummyToNodeForVerticalAlignment.has(F[v])?this.dummyToNodeForVerticalAlignment.get(F[v]).forEach(function(z){l.idToNodeMap.get(z).displacementX=H}):this.idToNodeMap.get(F[v]).displacementX=H}}for(var u=0;u<this.componentsOnVertical.length;u++){var F=this.componentsOnVertical[u];if(this.fixedComponentsOnVertical[u])for(var v=0;v<F.length;v++)this.dummyToNodeForHorizontalAlignment.has(F[v])?this.dummyToNodeForHorizontalAlignment.get(F[v]).forEach(function(et){l.idToNodeMap.get(et).displacementY=0}):this.idToNodeMap.get(F[v]).displacementY=0;else{for(var k=0,V=0,v=0;v<F.length;v++)if(this.dummyToNodeForHorizontalAlignment.has(F[v])){var K=this.dummyToNodeForHorizontalAlignment.get(F[v]);k+=K.length*this.idToNodeMap.get(K[0]).displacementY,V+=K.length}else k+=this.idToNodeMap.get(F[v]).displacementY,V++;for(var H=k/V,v=0;v<F.length;v++)this.dummyToNodeForHorizontalAlignment.has(F[v])?this.dummyToNodeForHorizontalAlignment.get(F[v]).forEach(function(U){l.idToNodeMap.get(U).displacementY=H}):this.idToNodeMap.get(F[v]).displacementY=H}}}},D.prototype.calculateNodesToApplyGravitationTo=function(){var l=[],E,u=this.graphManager.getGraphs(),y=u.length,v;for(v=0;v<y;v++)E=u[v],E.updateConnected(),E.isConnected||(l=l.concat(E.getNodes()));return l},D.prototype.createBendpoints=function(){var l=[];l=l.concat(this.graphManager.getAllEdges());var E=new Set,u;for(u=0;u<l.length;u++){var y=l[u];if(!E.has(y)){var v=y.getSource(),A=y.getTarget();if(v==A)y.getBendpoints().push(new m),y.getBendpoints().push(new m),this.createDummyNodesForBendpoints(y),E.add(y);else{var w=[];if(w=w.concat(v.getEdgeListToNode(A)),w=w.concat(A.getEdgeListToNode(v)),!E.has(w[0])){if(w.length>1){var b;for(b=0;b<w.length;b++){var G=w[b];G.getBendpoints().push(new m),this.createDummyNodesForBendpoints(G)}}w.forEach(function(F){E.add(F)})}}}if(E.size==l.length)break}},D.prototype.positionNodesRadially=function(l){for(var E=new g(0,0),u=Math.ceil(Math.sqrt(l.length)),y=0,v=0,A=0,w=new m(0,0),b=0;b<l.length;b++){b%u==0&&(A=0,v=y,b!=0&&(v+=i.DEFAULT_COMPONENT_SEPERATION),y=0);var G=l[b],F=L.findCenterOfTree(G);E.x=A,E.y=v,w=D.radialLayout(G,F,E),w.y>y&&(y=Math.floor(w.y)),A=Math.floor(w.x+i.DEFAULT_COMPONENT_SEPERATION)}this.transform(new m(c.WORLD_CENTER_X-w.x/2,c.WORLD_CENTER_Y-w.y/2))},D.radialLayout=function(l,E,u){var y=Math.max(this.maxDiagonalInTree(l),i.DEFAULT_RADIAL_SEPARATION);D.branchRadialLayout(E,null,0,359,0,y);var v=Y.calculateBounds(l),A=new $;A.setDeviceOrgX(v.getMinX()),A.setDeviceOrgY(v.getMinY()),A.setWorldOrgX(u.x),A.setWorldOrgY(u.y);for(var w=0;w<l.length;w++)l[w].transform(A);var b=new m(v.getMaxX(),v.getMaxY());return A.inverseTransformPoint(b)},D.branchRadialLayout=function(l,E,u,y,v,A){var w=(y-u+1)/2;w<0&&(w+=180);var b=(w+u)%360*S.TWO_PI/360,G=v*Math.cos(b),F=v*Math.sin(b);l.setCenter(G,F);var k=[];k=k.concat(l.getEdges());var V=k.length;E!=null&&V--;for(var K=0,H=k.length,X,O=l.getEdgesBetween(E);O.length>1;){var z=O[0];O.splice(0,1);var et=k.indexOf(z);et>=0&&k.splice(et,1),H--,V--}X=E==null?0:(k.indexOf(O[0])+1)%H;for(var U=Math.abs(y-u)/V,B=X;K!=V;B=++B%H){var lt=k[B].getOtherEnd(l);if(lt!=E){var at=(u+K*U)%360,Lt=(at+U)%360;D.branchRadialLayout(lt,l,at,Lt,v+A,A),K++}}},D.maxDiagonalInTree=function(l){for(var E=R.MIN_VALUE,u=0;u<l.length;u++){var y=l[u].getDiagonal();y>E&&(E=y)}return E},D.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},D.prototype.groupZeroDegreeMembers=function(){var l=this,E={};this.memberGroups={},this.idToDummyNode={};for(var u=[],y=this.graphManager.getAllNodes(),v=0;v<y.length;v++){var A=y[v],w=A.getParent();this.getNodeDegreeWithChildren(A)===0&&(w.id==null||!this.getToBeTiled(w))&&u.push(A)}for(var v=0;v<u.length;v++){var A=u[v],b=A.getParent().id;E[b]===void 0&&(E[b]=[]),E[b]=E[b].concat(A)}Object.keys(E).forEach(function(G){if(E[G].length>1){var F="DummyCompound_"+G;l.memberGroups[F]=E[G];var k=E[G][0].getParent(),V=new p(l.graphManager);V.id=F,V.paddingLeft=k.paddingLeft||0,V.paddingRight=k.paddingRight||0,V.paddingBottom=k.paddingBottom||0,V.paddingTop=k.paddingTop||0,l.idToDummyNode[F]=V;var K=l.getGraphManager().add(l.newGraph(),V),H=k.getChild();H.add(V);for(var X=0;X<E[G].length;X++){var O=E[G][X];H.remove(O),K.add(O)}}})},D.prototype.clearCompounds=function(){var l={},E={};this.performDFSOnCompounds();for(var u=0;u<this.compoundOrder.length;u++)E[this.compoundOrder[u].id]=this.compoundOrder[u],l[this.compoundOrder[u].id]=[].concat(this.compoundOrder[u].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[u].getChild()),this.compoundOrder[u].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(l,E)},D.prototype.clearZeroDegreeMembers=function(){var l=this,E=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(u){var y=l.idToDummyNode[u];if(E[u]=l.tileNodes(l.memberGroups[u],y.paddingLeft+y.paddingRight),y.rect.width=E[u].width,y.rect.height=E[u].height,y.setCenter(E[u].centerX,E[u].centerY),y.labelMarginLeft=0,y.labelMarginTop=0,i.NODE_DIMENSIONS_INCLUDE_LABELS){var v=y.rect.width,A=y.rect.height;y.labelWidth&&(y.labelPosHorizontal=="left"?(y.rect.x-=y.labelWidth,y.setWidth(v+y.labelWidth),y.labelMarginLeft=y.labelWidth):y.labelPosHorizontal=="center"&&y.labelWidth>v?(y.rect.x-=(y.labelWidth-v)/2,y.setWidth(y.labelWidth),y.labelMarginLeft=(y.labelWidth-v)/2):y.labelPosHorizontal=="right"&&y.setWidth(v+y.labelWidth)),y.labelHeight&&(y.labelPosVertical=="top"?(y.rect.y-=y.labelHeight,y.setHeight(A+y.labelHeight),y.labelMarginTop=y.labelHeight):y.labelPosVertical=="center"&&y.labelHeight>A?(y.rect.y-=(y.labelHeight-A)/2,y.setHeight(y.labelHeight),y.labelMarginTop=(y.labelHeight-A)/2):y.labelPosVertical=="bottom"&&y.setHeight(A+y.labelHeight))}})},D.prototype.repopulateCompounds=function(){for(var l=this.compoundOrder.length-1;l>=0;l--){var E=this.compoundOrder[l],u=E.id,y=E.paddingLeft,v=E.paddingTop,A=E.labelMarginLeft,w=E.labelMarginTop;this.adjustLocations(this.tiledMemberPack[u],E.rect.x,E.rect.y,y,v,A,w)}},D.prototype.repopulateZeroDegreeMembers=function(){var l=this,E=this.tiledZeroDegreePack;Object.keys(E).forEach(function(u){var y=l.idToDummyNode[u],v=y.paddingLeft,A=y.paddingTop,w=y.labelMarginLeft,b=y.labelMarginTop;l.adjustLocations(E[u],y.rect.x,y.rect.y,v,A,w,b)})},D.prototype.getToBeTiled=function(l){var E=l.id;if(this.toBeTiled[E]!=null)return this.toBeTiled[E];var u=l.getChild();if(u==null)return this.toBeTiled[E]=!1,!1;for(var y=u.getNodes(),v=0;v<y.length;v++){var A=y[v];if(this.getNodeDegree(A)>0)return this.toBeTiled[E]=!1,!1;if(A.getChild()==null){this.toBeTiled[A.id]=!1;continue}if(!this.getToBeTiled(A))return this.toBeTiled[E]=!1,!1}return this.toBeTiled[E]=!0,!0},D.prototype.getNodeDegree=function(l){l.id;for(var E=l.getEdges(),u=0,y=0;y<E.length;y++){var v=E[y];v.getSource().id!==v.getTarget().id&&(u+=1)}return u},D.prototype.getNodeDegreeWithChildren=function(l){var E=this.getNodeDegree(l);if(l.getChild()==null)return E;for(var u=l.getChild().getNodes(),y=0;y<u.length;y++){var v=u[y];E+=this.getNodeDegreeWithChildren(v)}return E},D.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},D.prototype.fillCompexOrderByDFS=function(l){for(var E=0;E<l.length;E++){var u=l[E];u.getChild()!=null&&this.fillCompexOrderByDFS(u.getChild().getNodes()),this.getToBeTiled(u)&&this.compoundOrder.push(u)}},D.prototype.adjustLocations=function(l,E,u,y,v,A,w){E+=y+A,u+=v+w;for(var b=E,G=0;G<l.rows.length;G++){var F=l.rows[G];E=b;for(var k=0,V=0;V<F.length;V++){var K=F[V];K.rect.x=E,K.rect.y=u,E+=K.rect.width+l.horizontalPadding,K.rect.height>k&&(k=K.rect.height)}u+=k+l.verticalPadding}},D.prototype.tileCompoundMembers=function(l,E){var u=this;this.tiledMemberPack=[],Object.keys(l).forEach(function(y){var v=E[y];if(u.tiledMemberPack[y]=u.tileNodes(l[y],v.paddingLeft+v.paddingRight),v.rect.width=u.tiledMemberPack[y].width,v.rect.height=u.tiledMemberPack[y].height,v.setCenter(u.tiledMemberPack[y].centerX,u.tiledMemberPack[y].centerY),v.labelMarginLeft=0,v.labelMarginTop=0,i.NODE_DIMENSIONS_INCLUDE_LABELS){var A=v.rect.width,w=v.rect.height;v.labelWidth&&(v.labelPosHorizontal=="left"?(v.rect.x-=v.labelWidth,v.setWidth(A+v.labelWidth),v.labelMarginLeft=v.labelWidth):v.labelPosHorizontal=="center"&&v.labelWidth>A?(v.rect.x-=(v.labelWidth-A)/2,v.setWidth(v.labelWidth),v.labelMarginLeft=(v.labelWidth-A)/2):v.labelPosHorizontal=="right"&&v.setWidth(A+v.labelWidth)),v.labelHeight&&(v.labelPosVertical=="top"?(v.rect.y-=v.labelHeight,v.setHeight(w+v.labelHeight),v.labelMarginTop=v.labelHeight):v.labelPosVertical=="center"&&v.labelHeight>w?(v.rect.y-=(v.labelHeight-w)/2,v.setHeight(v.labelHeight),v.labelMarginTop=(v.labelHeight-w)/2):v.labelPosVertical=="bottom"&&v.setHeight(w+v.labelHeight))}})},D.prototype.tileNodes=function(l,E){var u=this.tileNodesByFavoringDim(l,E,!0),y=this.tileNodesByFavoringDim(l,E,!1),v=this.getOrgRatio(u);return this.getOrgRatio(y)<v?y:u},D.prototype.getOrgRatio=function(l){var E=l.width/l.height;return E<1&&(E=1/E),E},D.prototype.calcIdealRowWidth=function(l,E){var u=i.TILING_PADDING_VERTICAL,y=i.TILING_PADDING_HORIZONTAL,v=l.length,A=0,w=0,b=0;l.forEach(function(X){A+=X.getWidth(),w+=X.getHeight(),X.getWidth()>b&&(b=X.getWidth())});var G=A/v,F=w/v,k=(u-y)**2+4*(G+y)*(F+u)*v,V=(y-u+Math.sqrt(k))/(2*(G+y)),K;E?(K=Math.ceil(V),K==V&&K++):K=Math.floor(V);var H=K*(G+y)-y;return b>H&&(H=b),H+=y*2,H},D.prototype.tileNodesByFavoringDim=function(l,E,u){var y=i.TILING_PADDING_VERTICAL,v=i.TILING_PADDING_HORIZONTAL,A=i.TILING_COMPARE_BY,w={rows:[],rowWidth:[],rowHeight:[],width:0,height:E,verticalPadding:y,horizontalPadding:v,centerX:0,centerY:0};A&&(w.idealRowWidth=this.calcIdealRowWidth(l,u));var b=function(X){return X.rect.width*X.rect.height},G=function(X,O){return b(O)-b(X)};l.sort(function(X,O){var z=G;return w.idealRowWidth?(z=A,z(X.id,O.id)):z(X,O)});for(var F=0,k=0,V=0;V<l.length;V++){var K=l[V];F+=K.getCenterX(),k+=K.getCenterY()}w.centerX=F/l.length,w.centerY=k/l.length;for(var V=0;V<l.length;V++){var K=l[V];if(w.rows.length==0)this.insertNodeToRow(w,K,0,E);else if(this.canAddHorizontal(w,K.rect.width,K.rect.height)){var H=w.rows.length-1;w.idealRowWidth||(H=this.getShortestRowIndex(w)),this.insertNodeToRow(w,K,H,E)}else this.insertNodeToRow(w,K,w.rows.length,E);this.shiftToLastRow(w)}return w},D.prototype.insertNodeToRow=function(l,E,u,y){var v=y;u==l.rows.length&&(l.rows.push([]),l.rowWidth.push(v),l.rowHeight.push(0));var A=l.rowWidth[u]+E.rect.width;l.rows[u].length>0&&(A+=l.horizontalPadding),l.rowWidth[u]=A,l.width<A&&(l.width=A);var w=E.rect.height;u>0&&(w+=l.verticalPadding);var b=0;w>l.rowHeight[u]&&(b=l.rowHeight[u],l.rowHeight[u]=w,b=l.rowHeight[u]-b),l.height+=b,l.rows[u].push(E)},D.prototype.getShortestRowIndex=function(l){for(var E=-1,u=Number.MAX_VALUE,y=0;y<l.rows.length;y++)l.rowWidth[y]<u&&(E=y,u=l.rowWidth[y]);return E},D.prototype.getLongestRowIndex=function(l){for(var E=-1,u=Number.MIN_VALUE,y=0;y<l.rows.length;y++)l.rowWidth[y]>u&&(E=y,u=l.rowWidth[y]);return E},D.prototype.canAddHorizontal=function(l,E,u){if(l.idealRowWidth){var y=l.rows.length-1;return l.rowWidth[y]+E+l.horizontalPadding<=l.idealRowWidth}var v=this.getShortestRowIndex(l);if(v<0)return!0;var A=l.rowWidth[v];if(A+l.horizontalPadding+E<=l.width)return!0;var w=0;l.rowHeight[v]<u&&v>0&&(w=u+l.verticalPadding-l.rowHeight[v]);var b=l.width-A>=E+l.horizontalPadding?(l.height+w)/(A+E+l.horizontalPadding):(l.height+w)/l.width;w=u+l.verticalPadding;var G=l.width<E?(l.height+w)/E:(l.height+w)/l.width;return G<1&&(G=1/G),b<1&&(b=1/b),b<G},D.prototype.shiftToLastRow=function(l){var E=this.getLongestRowIndex(l),u=l.rowWidth.length-1,y=l.rows[E],v=y[y.length-1],A=v.width+l.horizontalPadding;if(l.width-l.rowWidth[u]>A&&E!=u){y.splice(-1,1),l.rows[u].push(v),l.rowWidth[E]=l.rowWidth[E]-A,l.rowWidth[u]=l.rowWidth[u]+A,l.width=l.rowWidth[instance.getLongestRowIndex(l)];for(var w=Number.MIN_VALUE,b=0;b<y.length;b++)y[b].height>w&&(w=y[b].height);E>0&&(w+=l.verticalPadding);var G=l.rowHeight[E]+l.rowHeight[u];l.rowHeight[E]=w,l.rowHeight[u]<v.height+l.verticalPadding&&(l.rowHeight[u]=v.height+l.verticalPadding);var F=l.rowHeight[E]+l.rowHeight[u];l.height+=F-G,this.shiftToLastRow(l)}},D.prototype.tilingPreLayout=function(){i.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},D.prototype.tilingPostLayout=function(){i.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},D.prototype.reduceTrees=function(){for(var l=[],E=!0,u;E;){var y=this.graphManager.getAllNodes(),v=[];E=!1;for(var A=0;A<y.length;A++)if(u=y[A],u.getEdges().length==1&&!u.getEdges()[0].isInterGraph&&u.getChild()==null){if(i.PURE_INCREMENTAL){var w=u.getEdges()[0].getOtherEnd(u),b=new T(u.getCenterX()-w.getCenterX(),u.getCenterY()-w.getCenterY());v.push([u,u.getEdges()[0],u.getOwner(),b])}else v.push([u,u.getEdges()[0],u.getOwner()]);E=!0}if(E==1){for(var G=[],F=0;F<v.length;F++)v[F][0].getEdges().length==1&&(G.push(v[F]),v[F][0].getOwner().remove(v[F][0]));l.push(G),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=l},D.prototype.growTree=function(l){for(var E=l[l.length-1],u,y=0;y<E.length;y++)u=E[y],this.findPlaceforPrunedNode(u),u[2].add(u[0]),u[2].add(u[1],u[1].source,u[1].target);l.splice(l.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},D.prototype.findPlaceforPrunedNode=function(l){var E,u,y=l[0];if(u=y==l[1].source?l[1].target:l[1].source,i.PURE_INCREMENTAL)y.setCenter(u.getCenterX()+l[3].getWidth(),u.getCenterY()+l[3].getHeight());else{var v=u.startX,A=u.finishX,w=u.startY,b=u.finishY,G=[0,0,0,0];if(w>0)for(var F=v;F<=A;F++)G[0]+=this.grid[F][w-1].length+this.grid[F][w].length-1;if(A<this.grid.length-1)for(var F=w;F<=b;F++)G[1]+=this.grid[A+1][F].length+this.grid[A][F].length-1;if(b<this.grid[0].length-1)for(var F=v;F<=A;F++)G[2]+=this.grid[F][b+1].length+this.grid[F][b].length-1;if(v>0)for(var F=w;F<=b;F++)G[3]+=this.grid[v-1][F].length+this.grid[v][F].length-1;for(var k=R.MAX_VALUE,V,K,H=0;H<G.length;H++)G[H]<k?(k=G[H],V=1,K=H):G[H]==k&&V++;if(V==3&&k==0)G[0]==0&&G[1]==0&&G[2]==0?E=1:G[0]==0&&G[1]==0&&G[3]==0?E=0:G[0]==0&&G[2]==0&&G[3]==0?E=3:G[1]==0&&G[2]==0&&G[3]==0&&(E=2);else if(V==2&&k==0){var X=Math.floor(Math.random()*2);E=G[0]==0&&G[1]==0?X==0?0:1:G[0]==0&&G[2]==0?X==0?0:2:G[0]==0&&G[3]==0?X==0?0:3:G[1]==0&&G[2]==0?X==0?1:2:G[1]==0&&G[3]==0?X==0?1:3:X==0?2:3}else if(V==4&&k==0){var X=Math.floor(Math.random()*4);E=X}else E=K;E==0?y.setCenter(u.getCenterX(),u.getCenterY()-u.getHeight()/2-s.DEFAULT_EDGE_LENGTH-y.getHeight()/2):E==1?y.setCenter(u.getCenterX()+u.getWidth()/2+s.DEFAULT_EDGE_LENGTH+y.getWidth()/2,u.getCenterY()):E==2?y.setCenter(u.getCenterX(),u.getCenterY()+u.getHeight()/2+s.DEFAULT_EDGE_LENGTH+y.getHeight()/2):y.setCenter(u.getCenterX()-u.getWidth()/2-s.DEFAULT_EDGE_LENGTH-y.getWidth()/2,u.getCenterY())}},r.exports=D}),991:((r,n,t)=>{var e=t(551).FDLayoutNode,h=t(551).IMath;function a(o,i,d,s){e.call(this,o,i,d,s)}for(var p in a.prototype=Object.create(e.prototype),e)a[p]=e[p];a.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*h.sign(this.displacementX)),Math.abs(this.displacementY)>o.coolingFactor*o.maxNodeDisplacement&&(this.displacementY=o.coolingFactor*o.maxNodeDisplacement*h.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},a.prototype.propogateDisplacementToChildren=function(o,i){for(var d=this.getChild().getNodes(),s,c=0;c<d.length;c++)s=d[c],s.getChild()==null?(s.displacementX+=o,s.displacementY+=i):s.propogateDisplacementToChildren(o,i)},a.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},a.prototype.setPred1=function(o){this.pred1=o},a.prototype.getPred1=function(){return pred1},a.prototype.getPred2=function(){return pred2},a.prototype.setNext=function(o){this.next=o},a.prototype.getNext=function(){return next},a.prototype.setProcessed=function(o){this.processed=o},a.prototype.isProcessed=function(){return processed},r.exports=a}),902:((r,n,t)=>{function e(d){if(Array.isArray(d)){for(var s=0,c=Array(d.length);s<d.length;s++)c[s]=d[s];return c}else return Array.from(d)}var h=t(806),a=t(551).LinkedList,p=t(551).Matrix,o=t(551).SVD;function i(){}i.handleConstraints=function(d){var s={};s.fixedNodeConstraint=d.constraints.fixedNodeConstraint,s.alignmentConstraint=d.constraints.alignmentConstraint,s.relativePlacementConstraint=d.constraints.relativePlacementConstraint;for(var c=new Map,g=new Map,m=[],T=[],L=d.getAllNodes(),R=0,S=0;S<L.length;S++){var Y=L[S];Y.getChild()??(g.set(Y.id,R++),m.push(Y.getCenterX()),T.push(Y.getCenterY()),c.set(Y.id,Y))}s.relativePlacementConstraint&&s.relativePlacementConstraint.forEach(function(I){!I.gap&&I.gap!=0&&(I.left?I.gap=h.DEFAULT_EDGE_LENGTH+c.get(I.left).getWidth()/2+c.get(I.right).getWidth()/2:I.gap=h.DEFAULT_EDGE_LENGTH+c.get(I.top).getHeight()/2+c.get(I.bottom).getHeight()/2)});var $=function(I,P){return{x:I.x-P.x,y:I.y-P.y}},Z=function(I){var P=0,q=0;return I.forEach(function(j){P+=m[g.get(j)],q+=T[g.get(j)]}),{x:P/I.size,y:q/I.size}},D=function(I,P,q,j,tt){function Et(dt,Q){var ut=new Set(dt),At=!0,rt=!1,bt=void 0;try{for(var Ot=Q[Symbol.iterator](),Dt;!(At=(Dt=Ot.next()).done);At=!0){var Ft=Dt.value;ut.add(Ft)}}catch(Tt){rt=!0,bt=Tt}finally{try{!At&&Ot.return&&Ot.return()}finally{if(rt)throw bt}}return ut}var yt=new Map;I.forEach(function(dt,Q){yt.set(Q,0)}),I.forEach(function(dt,Q){dt.forEach(function(ut){yt.set(ut.id,yt.get(ut.id)+1)})});var it=new Map,ft=new Map,It=new a;yt.forEach(function(dt,Q){dt==0?(It.push(Q),q||(P=="horizontal"?it.set(Q,g.has(Q)?m[g.get(Q)]:j.get(Q)):it.set(Q,g.has(Q)?T[g.get(Q)]:j.get(Q)))):it.set(Q,-1/0),q&&ft.set(Q,new Set([Q]))}),q&&tt.forEach(function(dt){var Q=[];if(dt.forEach(function(rt){q.has(rt)&&Q.push(rt)}),Q.length>0){var ut=0;Q.forEach(function(rt){P=="horizontal"?(it.set(rt,g.has(rt)?m[g.get(rt)]:j.get(rt)),ut+=it.get(rt)):(it.set(rt,g.has(rt)?T[g.get(rt)]:j.get(rt)),ut+=it.get(rt))}),ut/=Q.length,dt.forEach(function(rt){q.has(rt)||it.set(rt,ut)})}else{var At=0;dt.forEach(function(rt){P=="horizontal"?At+=g.has(rt)?m[g.get(rt)]:j.get(rt):At+=g.has(rt)?T[g.get(rt)]:j.get(rt)}),At/=dt.length,dt.forEach(function(rt){it.set(rt,At)})}});for(var wt=function(){var dt=It.shift();I.get(dt).forEach(function(Q){if(it.get(Q.id)<it.get(dt)+Q.gap)if(q&&q.has(Q.id)){var ut=void 0;if(ut=P=="horizontal"?g.has(Q.id)?m[g.get(Q.id)]:j.get(Q.id):g.has(Q.id)?T[g.get(Q.id)]:j.get(Q.id),it.set(Q.id,ut),ut<it.get(dt)+Q.gap){var At=it.get(dt)+Q.gap-ut;ft.get(dt).forEach(function(rt){it.set(rt,it.get(rt)-At)})}}else it.set(Q.id,it.get(dt)+Q.gap);yt.set(Q.id,yt.get(Q.id)-1),yt.get(Q.id)==0&&It.push(Q.id),q&&ft.set(Q.id,Et(ft.get(dt),ft.get(Q.id)))})};It.length!=0;)wt();if(q){var mt=new Set;I.forEach(function(dt,Q){dt.length==0&&mt.add(Q)});var ht=[];ft.forEach(function(dt,Q){if(mt.has(Q)){var ut=!1,At=!0,rt=!1,bt=void 0;try{for(var Ot=dt[Symbol.iterator](),Dt;!(At=(Dt=Ot.next()).done);At=!0){var Ft=Dt.value;q.has(Ft)&&(ut=!0)}}catch(Mt){rt=!0,bt=Mt}finally{try{!At&&Ot.return&&Ot.return()}finally{if(rt)throw bt}}if(!ut){var Tt=!1,Nt=void 0;ht.forEach(function(Mt,Pt){Mt.has([].concat(e(dt))[0])&&(Tt=!0,Nt=Pt)}),Tt?dt.forEach(function(Mt){ht[Nt].add(Mt)}):ht.push(new Set(dt))}}}),ht.forEach(function(dt,Q){var ut=1/0,At=1/0,rt=-1/0,bt=-1/0,Ot=!0,Dt=!1,Ft=void 0;try{for(var Tt=dt[Symbol.iterator](),Nt;!(Ot=(Nt=Tt.next()).done);Ot=!0){var Mt=Nt.value,Pt=void 0;Pt=P=="horizontal"?g.has(Mt)?m[g.get(Mt)]:j.get(Mt):g.has(Mt)?T[g.get(Mt)]:j.get(Mt);var Xt=it.get(Mt);Pt<ut&&(ut=Pt),Pt>rt&&(rt=Pt),Xt<At&&(At=Xt),Xt>bt&&(bt=Xt)}}catch($t){Dt=!0,Ft=$t}finally{try{!Ot&&Tt.return&&Tt.return()}finally{if(Dt)throw Ft}}var ne=(ut+rt)/2-(At+bt)/2,ee=!0,qt=!1,Zt=void 0;try{for(var jt=dt[Symbol.iterator](),Jt;!(ee=(Jt=jt.next()).done);ee=!0){var re=Jt.value;it.set(re,it.get(re)+ne)}}catch($t){qt=!0,Zt=$t}finally{try{!ee&&jt.return&&jt.return()}finally{if(qt)throw Zt}}})}return it},J=function(I){var P=0,q=0,j=0,tt=0;if(I.forEach(function(ft){ft.left?m[g.get(ft.left)]-m[g.get(ft.right)]>=0?P++:q++:T[g.get(ft.top)]-T[g.get(ft.bottom)]>=0?j++:tt++}),P>q&&j>tt)for(var Et=0;Et<g.size;Et++)m[Et]=-1*m[Et],T[Et]=-1*T[Et];else if(P>q)for(var yt=0;yt<g.size;yt++)m[yt]=-1*m[yt];else if(j>tt)for(var it=0;it<g.size;it++)T[it]=-1*T[it]},l=function(I){var P=[],q=new a,j=new Set,tt=0;return I.forEach(function(Et,yt){if(!j.has(yt)){P[tt]=[];var it=yt;for(q.push(it),j.add(it),P[tt].push(it);q.length!=0;)it=q.shift(),I.get(it).forEach(function(ft){j.has(ft.id)||(q.push(ft.id),j.add(ft.id),P[tt].push(ft.id))});tt++}}),P},E=function(I){var P=new Map;return I.forEach(function(q,j){P.set(j,[])}),I.forEach(function(q,j){q.forEach(function(tt){P.get(j).push(tt),P.get(tt.id).push({id:j,gap:tt.gap,direction:tt.direction})})}),P},u=function(I){var P=new Map;return I.forEach(function(q,j){P.set(j,[])}),I.forEach(function(q,j){q.forEach(function(tt){P.get(tt.id).push({id:j,gap:tt.gap,direction:tt.direction})})}),P},y=[],v=[],A=!1,w=!1,b=new Set,G=new Map,F=new Map,k=[];if(s.fixedNodeConstraint&&s.fixedNodeConstraint.forEach(function(I){b.add(I.nodeId)}),s.relativePlacementConstraint&&(s.relativePlacementConstraint.forEach(function(I){I.left?(G.has(I.left)?G.get(I.left).push({id:I.right,gap:I.gap,direction:"horizontal"}):G.set(I.left,[{id:I.right,gap:I.gap,direction:"horizontal"}]),G.has(I.right)||G.set(I.right,[])):(G.has(I.top)?G.get(I.top).push({id:I.bottom,gap:I.gap,direction:"vertical"}):G.set(I.top,[{id:I.bottom,gap:I.gap,direction:"vertical"}]),G.has(I.bottom)||G.set(I.bottom,[]))}),F=E(G),k=l(F)),h.TRANSFORM_ON_CONSTRAINT_HANDLING){if(s.fixedNodeConstraint&&s.fixedNodeConstraint.length>1)s.fixedNodeConstraint.forEach(function(I,P){y[P]=[I.position.x,I.position.y],v[P]=[m[g.get(I.nodeId)],T[g.get(I.nodeId)]]}),A=!0;else if(s.alignmentConstraint)(function(){var I=0;if(s.alignmentConstraint.vertical){for(var P=s.alignmentConstraint.vertical,q=function(it){var ft=new Set;P[it].forEach(function(mt){ft.add(mt)});var It=new Set([].concat(e(ft)).filter(function(mt){return b.has(mt)})),wt=void 0;wt=It.size>0?m[g.get(It.values().next().value)]:Z(ft).x,P[it].forEach(function(mt){y[I]=[wt,T[g.get(mt)]],v[I]=[m[g.get(mt)],T[g.get(mt)]],I++})},j=0;j<P.length;j++)q(j);A=!0}if(s.alignmentConstraint.horizontal){for(var tt=s.alignmentConstraint.horizontal,Et=function(it){var ft=new Set;tt[it].forEach(function(mt){ft.add(mt)});var It=new Set([].concat(e(ft)).filter(function(mt){return b.has(mt)})),wt=void 0;wt=It.size>0?m[g.get(It.values().next().value)]:Z(ft).y,tt[it].forEach(function(mt){y[I]=[m[g.get(mt)],wt],v[I]=[m[g.get(mt)],T[g.get(mt)]],I++})},yt=0;yt<tt.length;yt++)Et(yt);A=!0}s.relativePlacementConstraint&&(w=!0)})();else if(s.relativePlacementConstraint){for(var V=0,K=0,H=0;H<k.length;H++)k[H].length>V&&(V=k[H].length,K=H);if(V<F.size/2)J(s.relativePlacementConstraint),A=!1,w=!1;else{var X=new Map,O=new Map,z=[];k[K].forEach(function(I){G.get(I).forEach(function(P){P.direction=="horizontal"?(X.has(I)?X.get(I).push(P):X.set(I,[P]),X.has(P.id)||X.set(P.id,[]),z.push({left:I,right:P.id})):(O.has(I)?O.get(I).push(P):O.set(I,[P]),O.has(P.id)||O.set(P.id,[]),z.push({top:I,bottom:P.id}))})}),J(z),w=!1;var et=D(X,"horizontal"),U=D(O,"vertical");k[K].forEach(function(I,P){v[P]=[m[g.get(I)],T[g.get(I)]],y[P]=[],et.has(I)?y[P][0]=et.get(I):y[P][0]=m[g.get(I)],U.has(I)?y[P][1]=U.get(I):y[P][1]=T[g.get(I)]}),A=!0}}if(A){for(var B=void 0,lt=p.transpose(y),at=p.transpose(v),Lt=0;Lt<lt.length;Lt++)lt[Lt]=p.multGamma(lt[Lt]),at[Lt]=p.multGamma(at[Lt]);var W=p.multMat(lt,p.transpose(at)),pt=o.svd(W);B=p.multMat(pt.V,p.transpose(pt.U));for(var vt=0;vt<g.size;vt++){var Bt=[m[vt],T[vt]],Yt=[B[0][0],B[1][0]],_t=[B[0][1],B[1][1]];m[vt]=p.dotProduct(Bt,Yt),T[vt]=p.dotProduct(Bt,_t)}w&&J(s.relativePlacementConstraint)}}if(h.ENFORCE_CONSTRAINTS){if(s.fixedNodeConstraint&&s.fixedNodeConstraint.length>0){var xt={x:0,y:0};s.fixedNodeConstraint.forEach(function(I,P){var q={x:m[g.get(I.nodeId)],y:T[g.get(I.nodeId)]},j=I.position,tt=$(j,q);xt.x+=tt.x,xt.y+=tt.y}),xt.x/=s.fixedNodeConstraint.length,xt.y/=s.fixedNodeConstraint.length,m.forEach(function(I,P){m[P]+=xt.x}),T.forEach(function(I,P){T[P]+=xt.y}),s.fixedNodeConstraint.forEach(function(I){m[g.get(I.nodeId)]=I.position.x,T[g.get(I.nodeId)]=I.position.y})}if(s.alignmentConstraint){if(s.alignmentConstraint.vertical)for(var kt=s.alignmentConstraint.vertical,Ut=function(I){var P=new Set;kt[I].forEach(function(tt){P.add(tt)});var q=new Set([].concat(e(P)).filter(function(tt){return b.has(tt)})),j=void 0;j=q.size>0?m[g.get(q.values().next().value)]:Z(P).x,P.forEach(function(tt){b.has(tt)||(m[g.get(tt)]=j)})},Rt=0;Rt<kt.length;Rt++)Ut(Rt);if(s.alignmentConstraint.horizontal)for(var Vt=s.alignmentConstraint.horizontal,Gt=function(I){var P=new Set;Vt[I].forEach(function(tt){P.add(tt)});var q=new Set([].concat(e(P)).filter(function(tt){return b.has(tt)})),j=void 0;j=q.size>0?T[g.get(q.values().next().value)]:Z(P).y,P.forEach(function(tt){b.has(tt)||(T[g.get(tt)]=j)})},st=0;st<Vt.length;st++)Gt(st)}s.relativePlacementConstraint&&(function(){var I=new Map,P=new Map,q=new Map,j=new Map,tt=new Map,Et=new Map,yt=new Set,it=new Set;if(b.forEach(function(nt){yt.add(nt),it.add(nt)}),s.alignmentConstraint){if(s.alignmentConstraint.vertical)for(var ft=s.alignmentConstraint.vertical,It=function(nt){q.set("dummy"+nt,[]),ft[nt].forEach(function(Ct){I.set(Ct,"dummy"+nt),q.get("dummy"+nt).push(Ct),b.has(Ct)&&yt.add("dummy"+nt)}),tt.set("dummy"+nt,m[g.get(ft[nt][0])])},wt=0;wt<ft.length;wt++)It(wt);if(s.alignmentConstraint.horizontal)for(var mt=s.alignmentConstraint.horizontal,ht=function(nt){j.set("dummy"+nt,[]),mt[nt].forEach(function(Ct){P.set(Ct,"dummy"+nt),j.get("dummy"+nt).push(Ct),b.has(Ct)&&it.add("dummy"+nt)}),Et.set("dummy"+nt,T[g.get(mt[nt][0])])},dt=0;dt<mt.length;dt++)ht(dt)}var Q=new Map,ut=new Map,At=function(nt){G.get(nt).forEach(function(Ct){var Ht=void 0,zt=void 0;Ct.direction=="horizontal"?(Ht=I.get(nt)?I.get(nt):nt,zt=I.get(Ct.id)?{id:I.get(Ct.id),gap:Ct.gap,direction:Ct.direction}:Ct,Q.has(Ht)?Q.get(Ht).push(zt):Q.set(Ht,[zt]),Q.has(zt.id)||Q.set(zt.id,[])):(Ht=P.get(nt)?P.get(nt):nt,zt=P.get(Ct.id)?{id:P.get(Ct.id),gap:Ct.gap,direction:Ct.direction}:Ct,ut.has(Ht)?ut.get(Ht).push(zt):ut.set(Ht,[zt]),ut.has(zt.id)||ut.set(zt.id,[]))})},rt=!0,bt=!1,Ot=void 0;try{for(var Dt=G.keys()[Symbol.iterator](),Ft;!(rt=(Ft=Dt.next()).done);rt=!0){var Tt=Ft.value;At(Tt)}}catch(nt){bt=!0,Ot=nt}finally{try{!rt&&Dt.return&&Dt.return()}finally{if(bt)throw Ot}}var Nt=E(Q),Mt=E(ut),Pt=l(Nt),Xt=l(Mt),ne=u(Q),ee=u(ut),qt=[],Zt=[];Pt.forEach(function(nt,Ct){qt[Ct]=[],nt.forEach(function(Ht){ne.get(Ht).length==0&&qt[Ct].push(Ht)})}),Xt.forEach(function(nt,Ct){Zt[Ct]=[],nt.forEach(function(Ht){ee.get(Ht).length==0&&Zt[Ct].push(Ht)})});var jt=D(Q,"horizontal",yt,tt,qt),Jt=D(ut,"vertical",it,Et,Zt),re=function(nt){q.get(nt)?q.get(nt).forEach(function(Ct){m[g.get(Ct)]=jt.get(nt)}):m[g.get(nt)]=jt.get(nt)},$t=!0,me=!1,ve=void 0;try{for(var ae=jt.keys()[Symbol.iterator](),ye;!($t=(ye=ae.next()).done);$t=!0){var se=ye.value;re(se)}}catch(nt){me=!0,ve=nt}finally{try{!$t&&ae.return&&ae.return()}finally{if(me)throw ve}}var He=function(nt){j.get(nt)?j.get(nt).forEach(function(Ct){T[g.get(Ct)]=Jt.get(nt)}):T[g.get(nt)]=Jt.get(nt)},he=!0,Ee=!1,Te=void 0;try{for(var le=Jt.keys()[Symbol.iterator](),Ne;!(he=(Ne=le.next()).done);he=!0){var se=Ne.value;He(se)}}catch(nt){Ee=!0,Te=nt}finally{try{!he&&le.return&&le.return()}finally{if(Ee)throw Te}}})()}for(var ot=0;ot<L.length;ot++){var ct=L[ot];ct.getChild()??ct.setCenter(m[g.get(ct.id)],T[g.get(ct.id)])}},r.exports=i}),551:(r=>{r.exports=C})},N={};function f(r){var n=N[r];if(n!==void 0)return n.exports;var t=N[r]={exports:{}};return M[r](t,t.exports,f),t.exports}return f(45)})()})})),si=Ue(de(((_,x)=>{(function(C,M){typeof _=="object"&&typeof x=="object"?x.exports=M(we()):typeof define=="function"&&define.amd?define(["cose-base"],M):typeof _=="object"?_.cytoscapeFcose=M(we()):C.cytoscapeFcose=M(C.coseBase)})(_,function(C){return(()=>{var M={658:(r=>{r.exports=Object.assign==null?function(n){return[...arguments].slice(1).forEach(function(t){Object.keys(t).forEach(function(e){return n[e]=t[e]})}),n}:Object.assign.bind(Object)}),548:((r,n,t)=>{var e=(function(){function p(o,i){var d=[],s=!0,c=!1,g=void 0;try{for(var m=o[Symbol.iterator](),T;!(s=(T=m.next()).done)&&(d.push(T.value),!(i&&d.length===i));s=!0);}catch(L){c=!0,g=L}finally{try{!s&&m.return&&m.return()}finally{if(c)throw g}}return d}return function(o,i){if(Array.isArray(o))return o;if(Symbol.iterator in Object(o))return p(o,i);throw TypeError("Invalid attempt to destructure non-iterable instance")}})(),h=t(140).layoutBase.LinkedList,a={};a.getTopMostNodes=function(p){for(var o={},i=0;i<p.length;i++)o[p[i].id()]=!0;return p.filter(function(d,s){typeof d=="number"&&(d=s);for(var c=d.parent()[0];c!=null;){if(o[c.id()])return!1;c=c.parent()[0]}return!0})},a.connectComponents=function(p,o,i,d){var s=new h,c=new Set,g=[],m=void 0,T=void 0,L=void 0,R=!1,S=1,Y=[],$=[],Z=function(){var D=p.collection();$.push(D);var J=i[0],l=p.collection();l.merge(J).merge(J.descendants().intersection(o)),g.push(J),l.forEach(function(y){s.push(y),c.add(y),D.merge(y)});for(var E=function(){J=s.shift();var y=p.collection();J.neighborhood().nodes().forEach(function(w){o.intersection(J.edgesWith(w)).length>0&&y.merge(w)});for(var v=0;v<y.length;v++){var A=y[v];m=i.intersection(A.union(A.ancestors())),m!=null&&!c.has(m[0])&&m.union(m.descendants()).forEach(function(w){s.push(w),c.add(w),D.merge(w),i.has(w)&&g.push(w)})}};s.length!=0;)E();if(D.forEach(function(y){o.intersection(y.connectedEdges()).forEach(function(v){D.has(v.source())&&D.has(v.target())&&D.merge(v)})}),g.length==i.length&&(R=!0),!R||R&&S>1){T=g[0],L=T.connectedEdges().length,g.forEach(function(y){y.connectedEdges().length<L&&(L=y.connectedEdges().length,T=y)}),Y.push(T.id());var u=p.collection();u.merge(g[0]),g.forEach(function(y){u.merge(y)}),g=[],i=i.difference(u),S++}};do Z();while(!R);return d&&Y.length>0&&d.set("dummy"+(d.size+1),Y),$},a.relocateComponent=function(p,o,i){if(!i.fixedNodeConstraint){var d=1/0,s=-1/0,c=1/0,g=-1/0;if(i.quality=="draft"){var m=!0,T=!1,L=void 0;try{for(var R=o.nodeIndexes[Symbol.iterator](),S;!(m=(S=R.next()).done);m=!0){var Y=S.value,$=e(Y,2),Z=$[0],D=$[1],J=i.cy.getElementById(Z);if(J){var l=J.boundingBox(),E=o.xCoords[D]-l.w/2,u=o.xCoords[D]+l.w/2,y=o.yCoords[D]-l.h/2,v=o.yCoords[D]+l.h/2;E<d&&(d=E),u>s&&(s=u),y<c&&(c=y),v>g&&(g=v)}}}catch(F){T=!0,L=F}finally{try{!m&&R.return&&R.return()}finally{if(T)throw L}}var A=p.x-(s+d)/2,w=p.y-(g+c)/2;o.xCoords=o.xCoords.map(function(F){return F+A}),o.yCoords=o.yCoords.map(function(F){return F+w})}else{Object.keys(o).forEach(function(F){var k=o[F],V=k.getRect().x,K=k.getRect().x+k.getRect().width,H=k.getRect().y,X=k.getRect().y+k.getRect().height;V<d&&(d=V),K>s&&(s=K),H<c&&(c=H),X>g&&(g=X)});var b=p.x-(s+d)/2,G=p.y-(g+c)/2;Object.keys(o).forEach(function(F){var k=o[F];k.setCenter(k.getCenterX()+b,k.getCenterY()+G)})}}},a.calcBoundingBox=function(p,o,i,d){for(var s=9007199254740991,c=-9007199254740991,g=9007199254740991,m=-9007199254740991,T=void 0,L=void 0,R=void 0,S=void 0,Y=p.descendants().not(":parent"),$=Y.length,Z=0;Z<$;Z++){var D=Y[Z];T=o[d.get(D.id())]-D.width()/2,L=o[d.get(D.id())]+D.width()/2,R=i[d.get(D.id())]-D.height()/2,S=i[d.get(D.id())]+D.height()/2,s>T&&(s=T),c<L&&(c=L),g>R&&(g=R),m<S&&(m=S)}var J={};return J.topLeftX=s,J.topLeftY=g,J.width=c-s,J.height=m-g,J},a.calcParentsWithoutChildren=function(p,o){var i=p.collection();return o.nodes(":parent").forEach(function(d){var s=!1;d.children().forEach(function(c){c.css("display")!="none"&&(s=!0)}),s||i.merge(d)}),i},r.exports=a}),816:((r,n,t)=>{var e=t(548),h=t(140).CoSELayout,a=t(140).CoSENode,p=t(140).layoutBase.PointD,o=t(140).layoutBase.DimensionD,i=t(140).layoutBase.LayoutConstants,d=t(140).layoutBase.FDLayoutConstants,s=t(140).CoSEConstants;r.exports={coseLayout:function(c,g){var m=c.cy,T=c.eles,L=T.nodes(),R=T.edges(),S=void 0,Y=void 0,$=void 0,Z={};c.randomize&&(S=g.nodeIndexes,Y=g.xCoords,$=g.yCoords);var D=function(w){return typeof w=="function"},J=function(w,b){return D(w)?w(b):w},l=e.calcParentsWithoutChildren(m,T),E=function w(b,G,F,k){for(var V=G.length,K=0;K<V;K++){var H=G[K],X=null;H.intersection(l).length==0&&(X=H.children());var O=void 0,z=H.layoutDimensions({nodeDimensionsIncludeLabels:k.nodeDimensionsIncludeLabels});if(H.outerWidth()!=null&&H.outerHeight()!=null)if(k.randomize)if(!H.isParent())O=b.add(new a(F.graphManager,new p(Y[S.get(H.id())]-z.w/2,$[S.get(H.id())]-z.h/2),new o(parseFloat(z.w),parseFloat(z.h))));else{var et=e.calcBoundingBox(H,Y,$,S);O=H.intersection(l).length==0?b.add(new a(F.graphManager,new p(et.topLeftX,et.topLeftY),new o(et.width,et.height))):b.add(new a(F.graphManager,new p(et.topLeftX,et.topLeftY),new o(parseFloat(z.w),parseFloat(z.h))))}else O=b.add(new a(F.graphManager,new p(H.position("x")-z.w/2,H.position("y")-z.h/2),new o(parseFloat(z.w),parseFloat(z.h))));else O=b.add(new a(this.graphManager));if(O.id=H.data("id"),O.nodeRepulsion=J(k.nodeRepulsion,H),O.paddingLeft=parseInt(H.css("padding")),O.paddingTop=parseInt(H.css("padding")),O.paddingRight=parseInt(H.css("padding")),O.paddingBottom=parseInt(H.css("padding")),k.nodeDimensionsIncludeLabels&&(O.labelWidth=H.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).w,O.labelHeight=H.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).h,O.labelPosVertical=H.css("text-valign"),O.labelPosHorizontal=H.css("text-halign")),Z[H.data("id")]=O,isNaN(O.rect.x)&&(O.rect.x=0),isNaN(O.rect.y)&&(O.rect.y=0),X!=null&&X.length>0){var U=void 0;U=F.getGraphManager().add(F.newGraph(),O),w(U,X,F,k)}}},u=function(w,b,G){for(var F=0,k=0,V=0;V<G.length;V++){var K=G[V],H=Z[K.data("source")],X=Z[K.data("target")];if(H&&X&&H!==X&&H.getEdgesBetween(X).length==0){var O=b.add(w.newEdge(),H,X);O.id=K.id(),O.idealLength=J(c.idealEdgeLength,K),O.edgeElasticity=J(c.edgeElasticity,K),F+=O.idealLength,k++}}c.idealEdgeLength!=null&&(k>0?s.DEFAULT_EDGE_LENGTH=d.DEFAULT_EDGE_LENGTH=F/k:D(c.idealEdgeLength)?s.DEFAULT_EDGE_LENGTH=d.DEFAULT_EDGE_LENGTH=50:s.DEFAULT_EDGE_LENGTH=d.DEFAULT_EDGE_LENGTH=c.idealEdgeLength,s.MIN_REPULSION_DIST=d.MIN_REPULSION_DIST=d.DEFAULT_EDGE_LENGTH/10,s.DEFAULT_RADIAL_SEPARATION=d.DEFAULT_EDGE_LENGTH)},y=function(w,b){b.fixedNodeConstraint&&(w.constraints.fixedNodeConstraint=b.fixedNodeConstraint),b.alignmentConstraint&&(w.constraints.alignmentConstraint=b.alignmentConstraint),b.relativePlacementConstraint&&(w.constraints.relativePlacementConstraint=b.relativePlacementConstraint)};c.nestingFactor!=null&&(s.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=d.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=c.nestingFactor),c.gravity!=null&&(s.DEFAULT_GRAVITY_STRENGTH=d.DEFAULT_GRAVITY_STRENGTH=c.gravity),c.numIter!=null&&(s.MAX_ITERATIONS=d.MAX_ITERATIONS=c.numIter),c.gravityRange!=null&&(s.DEFAULT_GRAVITY_RANGE_FACTOR=d.DEFAULT_GRAVITY_RANGE_FACTOR=c.gravityRange),c.gravityCompound!=null&&(s.DEFAULT_COMPOUND_GRAVITY_STRENGTH=d.DEFAULT_COMPOUND_GRAVITY_STRENGTH=c.gravityCompound),c.gravityRangeCompound!=null&&(s.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=d.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=c.gravityRangeCompound),c.initialEnergyOnIncremental!=null&&(s.DEFAULT_COOLING_FACTOR_INCREMENTAL=d.DEFAULT_COOLING_FACTOR_INCREMENTAL=c.initialEnergyOnIncremental),c.tilingCompareBy!=null&&(s.TILING_COMPARE_BY=c.tilingCompareBy),c.quality=="proof"?i.QUALITY=2:i.QUALITY=0,s.NODE_DIMENSIONS_INCLUDE_LABELS=d.NODE_DIMENSIONS_INCLUDE_LABELS=i.NODE_DIMENSIONS_INCLUDE_LABELS=c.nodeDimensionsIncludeLabels,s.DEFAULT_INCREMENTAL=d.DEFAULT_INCREMENTAL=i.DEFAULT_INCREMENTAL=!c.randomize,s.ANIMATE=d.ANIMATE=i.ANIMATE=c.animate,s.TILE=c.tile,s.TILING_PADDING_VERTICAL=typeof c.tilingPaddingVertical=="function"?c.tilingPaddingVertical.call():c.tilingPaddingVertical,s.TILING_PADDING_HORIZONTAL=typeof c.tilingPaddingHorizontal=="function"?c.tilingPaddingHorizontal.call():c.tilingPaddingHorizontal,s.DEFAULT_INCREMENTAL=d.DEFAULT_INCREMENTAL=i.DEFAULT_INCREMENTAL=!0,s.PURE_INCREMENTAL=!c.randomize,i.DEFAULT_UNIFORM_LEAF_NODE_SIZES=c.uniformNodeDimensions,c.step=="transformed"&&(s.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,s.ENFORCE_CONSTRAINTS=!1,s.APPLY_LAYOUT=!1),c.step=="enforced"&&(s.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,s.ENFORCE_CONSTRAINTS=!0,s.APPLY_LAYOUT=!1),c.step=="cose"&&(s.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,s.ENFORCE_CONSTRAINTS=!1,s.APPLY_LAYOUT=!0),c.step=="all"&&(c.randomize?s.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:s.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,s.ENFORCE_CONSTRAINTS=!0,s.APPLY_LAYOUT=!0),c.fixedNodeConstraint||c.alignmentConstraint||c.relativePlacementConstraint?s.TREE_REDUCTION_ON_INCREMENTAL=!1:s.TREE_REDUCTION_ON_INCREMENTAL=!0;var v=new h,A=v.newGraphManager();return E(A.addRoot(),e.getTopMostNodes(L),v,c),u(v,A,R),y(v,c),v.runLayout(),Z}}}),212:((r,n,t)=>{var e=(function(){function s(c,g){for(var m=0;m<g.length;m++){var T=g[m];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(c,T.key,T)}}return function(c,g,m){return g&&s(c.prototype,g),m&&s(c,m),c}})();function h(s,c){if(!(s instanceof c))throw TypeError("Cannot call a class as a function")}var a=t(658),p=t(548),o=t(657).spectralLayout,i=t(816).coseLayout,d=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(s){return 4500},idealEdgeLength:function(s){return 50},edgeElasticity:function(s){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(){}});r.exports=(function(){function s(c){h(this,s),this.options=a({},d,c)}return e(s,[{key:"run",value:function(){var c=this,g=this.options,m=g.cy,T=g.eles,L=[],R=[],S=void 0,Y=[];g.fixedNodeConstraint&&(!Array.isArray(g.fixedNodeConstraint)||g.fixedNodeConstraint.length==0)&&(g.fixedNodeConstraint=void 0),g.alignmentConstraint&&(g.alignmentConstraint.vertical&&(!Array.isArray(g.alignmentConstraint.vertical)||g.alignmentConstraint.vertical.length==0)&&(g.alignmentConstraint.vertical=void 0),g.alignmentConstraint.horizontal&&(!Array.isArray(g.alignmentConstraint.horizontal)||g.alignmentConstraint.horizontal.length==0)&&(g.alignmentConstraint.horizontal=void 0)),g.relativePlacementConstraint&&(!Array.isArray(g.relativePlacementConstraint)||g.relativePlacementConstraint.length==0)&&(g.relativePlacementConstraint=void 0),(g.fixedNodeConstraint||g.alignmentConstraint||g.relativePlacementConstraint)&&(g.tile=!1,g.packComponents=!1);var $=void 0,Z=!1;if(m.layoutUtilities&&g.packComponents&&($=m.layoutUtilities("get"),$||($=m.layoutUtilities()),Z=!0),T.nodes().length>0)if(Z){var D=p.getTopMostNodes(g.eles.nodes());if(S=p.connectComponents(m,g.eles,D),S.forEach(function(U){var B=U.boundingBox();Y.push({x:B.x1+B.w/2,y:B.y1+B.h/2})}),g.randomize&&S.forEach(function(U){g.eles=U,L.push(o(g))}),g.quality=="default"||g.quality=="proof"){var J=m.collection();if(g.tile){var l=new Map,E=[],u=[],y=0,v={nodeIndexes:l,xCoords:E,yCoords:u},A=[];if(S.forEach(function(U,B){U.edges().length==0&&(U.nodes().forEach(function(lt,at){J.merge(U.nodes()[at]),lt.isParent()||(v.nodeIndexes.set(U.nodes()[at].id(),y++),v.xCoords.push(U.nodes()[0].position().x),v.yCoords.push(U.nodes()[0].position().y))}),A.push(B))}),J.length>1){var w=J.boundingBox();Y.push({x:w.x1+w.w/2,y:w.y1+w.h/2}),S.push(J),L.push(v);for(var b=A.length-1;b>=0;b--)S.splice(A[b],1),L.splice(A[b],1),Y.splice(A[b],1)}}S.forEach(function(U,B){g.eles=U,R.push(i(g,L[B])),p.relocateComponent(Y[B],R[B],g)})}else S.forEach(function(U,B){p.relocateComponent(Y[B],L[B],g)});var G=new Set;if(S.length>1){var F=[],k=T.filter(function(U){return U.css("display")=="none"});S.forEach(function(U,B){var lt=void 0;if(g.quality=="draft"&&(lt=L[B].nodeIndexes),U.nodes().not(k).length>0){var at={};at.edges=[],at.nodes=[];var Lt=void 0;U.nodes().not(k).forEach(function(W){if(g.quality=="draft")if(!W.isParent())Lt=lt.get(W.id()),at.nodes.push({x:L[B].xCoords[Lt]-W.boundingbox().w/2,y:L[B].yCoords[Lt]-W.boundingbox().h/2,width:W.boundingbox().w,height:W.boundingbox().h});else{var pt=p.calcBoundingBox(W,L[B].xCoords,L[B].yCoords,lt);at.nodes.push({x:pt.topLeftX,y:pt.topLeftY,width:pt.width,height:pt.height})}else R[B][W.id()]&&at.nodes.push({x:R[B][W.id()].getLeft(),y:R[B][W.id()].getTop(),width:R[B][W.id()].getWidth(),height:R[B][W.id()].getHeight()})}),U.edges().forEach(function(W){var pt=W.source(),vt=W.target();if(pt.css("display")!="none"&&vt.css("display")!="none")if(g.quality=="draft"){var Bt=lt.get(pt.id()),Yt=lt.get(vt.id()),_t=[],xt=[];if(pt.isParent()){var kt=p.calcBoundingBox(pt,L[B].xCoords,L[B].yCoords,lt);_t.push(kt.topLeftX+kt.width/2),_t.push(kt.topLeftY+kt.height/2)}else _t.push(L[B].xCoords[Bt]),_t.push(L[B].yCoords[Bt]);if(vt.isParent()){var Ut=p.calcBoundingBox(vt,L[B].xCoords,L[B].yCoords,lt);xt.push(Ut.topLeftX+Ut.width/2),xt.push(Ut.topLeftY+Ut.height/2)}else xt.push(L[B].xCoords[Yt]),xt.push(L[B].yCoords[Yt]);at.edges.push({startX:_t[0],startY:_t[1],endX:xt[0],endY:xt[1]})}else R[B][pt.id()]&&R[B][vt.id()]&&at.edges.push({startX:R[B][pt.id()].getCenterX(),startY:R[B][pt.id()].getCenterY(),endX:R[B][vt.id()].getCenterX(),endY:R[B][vt.id()].getCenterY()})}),at.nodes.length>0&&(F.push(at),G.add(B))}});var V=$.packComponents(F,g.randomize).shifts;if(g.quality=="draft")L.forEach(function(U,B){var lt=U.xCoords.map(function(Lt){return Lt+V[B].dx}),at=U.yCoords.map(function(Lt){return Lt+V[B].dy});U.xCoords=lt,U.yCoords=at});else{var K=0;G.forEach(function(U){Object.keys(R[U]).forEach(function(B){var lt=R[U][B];lt.setCenter(lt.getCenterX()+V[K].dx,lt.getCenterY()+V[K].dy)}),K++})}}}else{var H=g.eles.boundingBox();if(Y.push({x:H.x1+H.w/2,y:H.y1+H.h/2}),g.randomize){var X=o(g);L.push(X)}g.quality=="default"||g.quality=="proof"?(R.push(i(g,L[0])),p.relocateComponent(Y[0],R[0],g)):p.relocateComponent(Y[0],L[0],g)}var O=function(U,B){if(g.quality=="default"||g.quality=="proof"){typeof U=="number"&&(U=B);var lt=void 0,at=void 0,Lt=U.data("id");return R.forEach(function(pt){Lt in pt&&(lt={x:pt[Lt].getRect().getCenterX(),y:pt[Lt].getRect().getCenterY()},at=pt[Lt])}),g.nodeDimensionsIncludeLabels&&(at.labelWidth&&(at.labelPosHorizontal=="left"?lt.x+=at.labelWidth/2:at.labelPosHorizontal=="right"&&(lt.x-=at.labelWidth/2)),at.labelHeight&&(at.labelPosVertical=="top"?lt.y+=at.labelHeight/2:at.labelPosVertical=="bottom"&&(lt.y-=at.labelHeight/2))),lt??(lt={x:U.position("x"),y:U.position("y")}),{x:lt.x,y:lt.y}}else{var W=void 0;return L.forEach(function(pt){var vt=pt.nodeIndexes.get(U.id());vt!=null&&(W={x:pt.xCoords[vt],y:pt.yCoords[vt]})}),W??(W={x:U.position("x"),y:U.position("y")}),{x:W.x,y:W.y}}};if(g.quality=="default"||g.quality=="proof"||g.randomize){var z=p.calcParentsWithoutChildren(m,T),et=T.filter(function(U){return U.css("display")=="none"});g.eles=T.not(et),T.nodes().not(":parent").not(et).layoutPositions(c,g,O),z.length>0&&z.forEach(function(U){U.position(O(U))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),s})()}),657:((r,n,t)=>{var e=t(548),h=t(140).layoutBase.Matrix,a=t(140).layoutBase.SVD;r.exports={spectralLayout:function(p){var o=p.cy,i=p.eles,d=i.nodes(),s=i.nodes(":parent"),c=new Map,g=new Map,m=new Map,T=[],L=[],R=[],S=[],Y=[],$=[],Z=[],D=[],J=void 0,l=1e8,E=1e-9,u=p.piTol,y=p.samplingType,v=p.nodeSeparation,A=void 0,w=function(){for(var st=0,ot=0,ct=!1;ot<A;){st=Math.floor(Math.random()*J),ct=!1;for(var I=0;I<ot;I++)if(S[I]==st){ct=!0;break}if(!ct)S[ot]=st,ot++;else continue}},b=function(st,ot,ct){for(var I=[],P=0,q=0,j=0,tt=void 0,Et=[],yt=0,it=1,ft=0;ft<J;ft++)Et[ft]=l;for(I[q]=st,Et[st]=0;q>=P;){j=I[P++];for(var It=T[j],wt=0;wt<It.length;wt++)tt=g.get(It[wt]),Et[tt]==l&&(Et[tt]=Et[j]+1,I[++q]=tt);$[j][ot]=Et[j]*v}if(ct){for(var mt=0;mt<J;mt++)$[mt][ot]<Y[mt]&&(Y[mt]=$[mt][ot]);for(var ht=0;ht<J;ht++)Y[ht]>yt&&(yt=Y[ht],it=ht)}return it},G=function(st){var ot=void 0;if(st){ot=Math.floor(Math.random()*J);for(var ct=0;ct<J;ct++)Y[ct]=l;for(var I=0;I<A;I++)S[I]=ot,ot=b(ot,I,st)}else{w();for(var P=0;P<A;P++)b(S[P],P,st,!1)}for(var q=0;q<J;q++)for(var j=0;j<A;j++)$[q][j]*=$[q][j];for(var tt=0;tt<A;tt++)Z[tt]=[];for(var Et=0;Et<A;Et++)for(var yt=0;yt<A;yt++)Z[Et][yt]=$[S[yt]][Et]},F=function(){for(var st=a.svd(Z),ot=st.S,ct=st.U,I=st.V,P=ot[0]*ot[0]*ot[0],q=[],j=0;j<A;j++){q[j]=[];for(var tt=0;tt<A;tt++)q[j][tt]=0,j==tt&&(q[j][tt]=ot[j]/(ot[j]*ot[j]+P/(ot[j]*ot[j])))}D=h.multMat(h.multMat(I,q),h.transpose(ct))},k=function(){for(var st=void 0,ot=void 0,ct=[],I=[],P=[],q=[],j=0;j<J;j++)ct[j]=Math.random(),I[j]=Math.random();ct=h.normalize(ct),I=h.normalize(I);for(var tt=0,Et=E,yt=E,it=void 0;;){tt++;for(var ft=0;ft<J;ft++)P[ft]=ct[ft];if(ct=h.multGamma(h.multL(h.multGamma(P),$,D)),st=h.dotProduct(P,ct),ct=h.normalize(ct),Et=h.dotProduct(P,ct),it=Math.abs(Et/yt),it<=1+u&&it>=1)break;yt=Et}for(var It=0;It<J;It++)P[It]=ct[It];for(tt=0,yt=E;;){tt++;for(var wt=0;wt<J;wt++)q[wt]=I[wt];if(q=h.minusOp(q,h.multCons(P,h.dotProduct(P,q))),I=h.multGamma(h.multL(h.multGamma(q),$,D)),ot=h.dotProduct(q,I),I=h.normalize(I),Et=h.dotProduct(q,I),it=Math.abs(Et/yt),it<=1+u&&it>=1)break;yt=Et}for(var mt=0;mt<J;mt++)q[mt]=I[mt];L=h.multCons(P,Math.sqrt(Math.abs(st))),R=h.multCons(q,Math.sqrt(Math.abs(ot)))};e.connectComponents(o,i,e.getTopMostNodes(d),c),s.forEach(function(st){e.connectComponents(o,i,e.getTopMostNodes(st.descendants().intersection(i)),c)});for(var V=0,K=0;K<d.length;K++)d[K].isParent()||g.set(d[K].id(),V++);var H=!0,X=!1,O=void 0;try{for(var z=c.keys()[Symbol.iterator](),et;!(H=(et=z.next()).done);H=!0){var U=et.value;g.set(U,V++)}}catch(st){X=!0,O=st}finally{try{!H&&z.return&&z.return()}finally{if(X)throw O}}for(var B=0;B<g.size;B++)T[B]=[];s.forEach(function(st){for(var ot=st.children().intersection(i);ot.nodes(":childless").length==0;)ot=ot.nodes()[0].children().intersection(i);var ct=0,I=ot.nodes(":childless")[0].connectedEdges().length;ot.nodes(":childless").forEach(function(P,q){P.connectedEdges().length<I&&(I=P.connectedEdges().length,ct=q)}),m.set(st.id(),ot.nodes(":childless")[ct].id())}),d.forEach(function(st){var ot=void 0;ot=st.isParent()?g.get(m.get(st.id())):g.get(st.id()),st.neighborhood().nodes().forEach(function(ct){i.intersection(st.edgesWith(ct)).length>0&&(ct.isParent()?T[ot].push(m.get(ct.id())):T[ot].push(ct.id()))})});var lt=function(st){var ot=g.get(st),ct=void 0;c.get(st).forEach(function(I){ct=o.getElementById(I).isParent()?m.get(I):I,T[ot].push(ct),T[g.get(ct)].push(st)})},at=!0,Lt=!1,W=void 0;try{for(var pt=c.keys()[Symbol.iterator](),vt;!(at=(vt=pt.next()).done);at=!0){var Bt=vt.value;lt(Bt)}}catch(st){Lt=!0,W=st}finally{try{!at&&pt.return&&pt.return()}finally{if(Lt)throw W}}J=g.size;var Yt=void 0;if(J>2){A=J<p.sampleSize?J:p.sampleSize;for(var _t=0;_t<J;_t++)$[_t]=[];for(var xt=0;xt<A;xt++)D[xt]=[];return p.quality=="draft"||p.step=="all"?(G(y),F(),k(),Yt={nodeIndexes:g,xCoords:L,yCoords:R}):(g.forEach(function(st,ot){L.push(o.getElementById(ot).position("x")),R.push(o.getElementById(ot).position("y"))}),Yt={nodeIndexes:g,xCoords:L,yCoords:R}),Yt}else{var kt=g.keys(),Ut=o.getElementById(kt.next().value),Rt=Ut.position(),Vt=Ut.outerWidth();if(L.push(Rt.x),R.push(Rt.y),J==2){var Gt=o.getElementById(kt.next().value).outerWidth();L.push(Rt.x+Vt/2+Gt/2+p.idealEdgeLength),R.push(Rt.y)}return Yt={nodeIndexes:g,xCoords:L,yCoords:R},Yt}}}}),579:((r,n,t)=>{var e=t(212),h=function(a){a&&a("layout","fcose",e)};typeof cytoscape<"u"&&h(cytoscape),r.exports=h}),140:(r=>{r.exports=C})},N={};function f(r){var n=N[r];if(n!==void 0)return n.exports;var t=N[r]={exports:{}};return M[r](t,t.exports,f),t.exports}return f(579)})()})}))(),1),Ie={L:"left",R:"right",T:"top",B:"bottom"},_e={L:gt(_=>`${_},${_/2} 0,${_} 0,0`,"L"),R:gt(_=>`0,${_/2} ${_},0 ${_},${_}`,"R"),T:gt(_=>`0,0 ${_},0 ${_/2},${_}`,"T"),B:gt(_=>`${_/2},0 ${_},${_} 0,${_}`,"B")},oe={L:gt((_,x)=>_-x+2,"L"),R:gt((_,x)=>_-2,"R"),T:gt((_,x)=>_-x+2,"T"),B:gt((_,x)=>_-2,"B")},hi=gt(function(_){return St(_)?_==="L"?"R":"L":_==="T"?"B":"T"},"getOppositeArchitectureDirection"),xe=gt(function(_){let x=_;return x==="L"||x==="R"||x==="T"||x==="B"},"isArchitectureDirection"),St=gt(function(_){let x=_;return x==="L"||x==="R"},"isArchitectureDirectionX"),Wt=gt(function(_){let x=_;return x==="T"||x==="B"},"isArchitectureDirectionY"),fe=gt(function(_,x){let C=St(_)&&Wt(x),M=Wt(_)&&St(x);return C||M},"isArchitectureDirectionXY"),li=gt(function(_){let x=_[0],C=_[1],M=St(x)&&Wt(C),N=Wt(x)&&St(C);return M||N},"isArchitecturePairXY"),di=gt(function(_){return _!=="LL"&&_!=="RR"&&_!=="TT"&&_!=="BB"},"isValidArchitectureDirectionPair"),pe=gt(function(_,x){let C=`${_}${x}`;return di(C)?C:void 0},"getArchitectureDirectionPair"),gi=gt(function([_,x],C){let M=C[0],N=C[1];return St(M)?Wt(N)?[_+(M==="L"?-1:1),x+(N==="T"?1:-1)]:[_+(M==="L"?-1:1),x]:St(N)?[_+(N==="L"?1:-1),x+(M==="T"?1:-1)]:[_,x+(M==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),ci=gt(function(_){return _==="LT"||_==="TL"?[1,1]:_==="BL"||_==="LB"?[1,-1]:_==="BR"||_==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),ui=gt(function(_,x){return fe(_,x)?"bend":St(_)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),fi=gt(function(_){return _.type==="service"},"isArchitectureService"),pi=gt(function(_){return _.type==="junction"},"isArchitectureJunction"),Me=gt(_=>_.data(),"edgeData"),Kt=gt(_=>_.data(),"nodeData"),mi=Ke.architecture,Oe=(te=class{constructor(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.elements={},this.setAccTitle=Ve,this.getAccTitle=Qe,this.setDiagramTitle=qe,this.getDiagramTitle=We,this.getAccDescription=Ze,this.setAccDescription=ei,this.clear()}clear(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.dataStructures=void 0,this.elements={},Je()}addService({id:x,icon:C,in:M,title:N,iconText:f}){if(this.registeredIds[x]!==void 0)throw Error(`The service id [${x}] is already in use by another ${this.registeredIds[x]}`);if(M!==void 0){if(x===M)throw Error(`The service [${x}] cannot be placed within itself`);if(this.registeredIds[M]===void 0)throw Error(`The service [${x}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds[M]==="node")throw Error(`The service [${x}]'s parent is not a group`)}this.registeredIds[x]="node",this.nodes[x]={id:x,type:"service",icon:C,iconText:f,title:N,edges:[],in:M}}getServices(){return Object.values(this.nodes).filter(fi)}addJunction({id:x,in:C}){this.registeredIds[x]="node",this.nodes[x]={id:x,type:"junction",edges:[],in:C}}getJunctions(){return Object.values(this.nodes).filter(pi)}getNodes(){return Object.values(this.nodes)}getNode(x){return this.nodes[x]??null}addGroup({id:x,icon:C,in:M,title:N}){var f,r,n;if(((f=this.registeredIds)==null?void 0:f[x])!==void 0)throw Error(`The group id [${x}] is already in use by another ${this.registeredIds[x]}`);if(M!==void 0){if(x===M)throw Error(`The group [${x}] cannot be placed within itself`);if(((r=this.registeredIds)==null?void 0:r[M])===void 0)throw Error(`The group [${x}]'s parent does not exist. Please make sure the parent is created before this group`);if(((n=this.registeredIds)==null?void 0:n[M])==="node")throw Error(`The group [${x}]'s parent is not a group`)}this.registeredIds[x]="group",this.groups[x]={id:x,icon:C,title:N,in:M}}getGroups(){return Object.values(this.groups)}addEdge({lhsId:x,rhsId:C,lhsDir:M,rhsDir:N,lhsInto:f,rhsInto:r,lhsGroup:n,rhsGroup:t,title:e}){if(!xe(M))throw Error(`Invalid direction given for left hand side of edge ${x}--${C}. Expected (L,R,T,B) got ${String(M)}`);if(!xe(N))throw Error(`Invalid direction given for right hand side of edge ${x}--${C}. Expected (L,R,T,B) got ${String(N)}`);if(this.nodes[x]===void 0&&this.groups[x]===void 0)throw Error(`The left-hand id [${x}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(this.nodes[C]===void 0&&this.groups[C]===void 0)throw Error(`The right-hand id [${C}] does not yet exist. Please create the service/group before declaring an edge to it.`);let h=this.nodes[x].in,a=this.nodes[C].in;if(n&&h&&a&&h==a)throw Error(`The left-hand id [${x}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(t&&h&&a&&h==a)throw Error(`The right-hand id [${C}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);let p={lhsId:x,lhsDir:M,lhsInto:f,lhsGroup:n,rhsId:C,rhsDir:N,rhsInto:r,rhsGroup:t,title:e};this.edges.push(p),this.nodes[x]&&this.nodes[C]&&(this.nodes[x].edges.push(this.edges[this.edges.length-1]),this.nodes[C].edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}getDataStructures(){if(this.dataStructures===void 0){let x={},C=Object.entries(this.nodes).reduce((t,[e,h])=>(t[e]=h.edges.reduce((a,p)=>{var d,s;let o=(d=this.getNode(p.lhsId))==null?void 0:d.in,i=(s=this.getNode(p.rhsId))==null?void 0:s.in;if(o&&i&&o!==i){let c=ui(p.lhsDir,p.rhsDir);c!=="bend"&&(x[o]??(x[o]={}),x[o][i]=c,x[i]??(x[i]={}),x[i][o]=c)}if(p.lhsId===e){let c=pe(p.lhsDir,p.rhsDir);c&&(a[c]=p.rhsId)}else{let c=pe(p.rhsDir,p.lhsDir);c&&(a[c]=p.lhsId)}return a},{}),t),{}),M=Object.keys(C)[0],N={[M]:1},f=Object.keys(C).reduce((t,e)=>e===M?t:{...t,[e]:1},{}),r=gt(t=>{let e={[t]:[0,0]},h=[t];for(;h.length>0;){let a=h.shift();if(a){N[a]=1,delete f[a];let p=C[a],[o,i]=e[a];Object.entries(p).forEach(([d,s])=>{N[s]||(e[s]=gi([o,i],d),h.push(s))})}}return e},"BFS"),n=[r(M)];for(;Object.keys(f).length>0;)n.push(r(Object.keys(f)[0]));this.dataStructures={adjList:C,spatialMaps:n,groupAlignments:x}}return this.dataStructures}setElementForId(x,C){this.elements[x]=C}getElementById(x){return this.elements[x]}getConfig(){return Be({...mi,...ti().architecture})}getConfigField(x){return this.getConfig()[x]}},gt(te,"ArchitectureDB"),te),vi=gt((_,x)=>{ni(_,x),_.groups.map(C=>x.addGroup(C)),_.services.map(C=>x.addService({...C,type:"service"})),_.junctions.map(C=>x.addJunction({...C,type:"junction"})),_.edges.map(C=>x.addEdge(C))},"populateDb"),De={parser:{yy:void 0},parse:gt(async _=>{var M;let x=await ai("architecture",_);Ae.debug(x);let C=(M=De.parser)==null?void 0:M.yy;if(!(C instanceof Oe))throw Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");vi(x,C)},"parse")},yi=gt(_=>`
1
+ var te;import{s as Ue,t as de}from"./chunk-LvLJmgfZ.js";import"./_Uint8Array-BGESiCQL.js";import"./isSymbol-BGkTcW3U.js";import"./toString-DlRqgfqz.js";import"./toNumber-GB_lFVaq.js";import"./toInteger-Cl1doThW.js";import"./isArrayLikeObject-BkJc8lDE.js";import"./_getTag-BWqNuuwU.js";import"./_baseUniq-DmLB0Hft.js";import"./reduce-qhYCumrN.js";import"./_baseIsEqual-C8v2yRqO.js";import"./chunk-FPAJGGOC-B0-l76aI.js";import"./_toKey-C5ccFCJm.js";import"./memoize-DN0TMY36.js";import"./get-DaaGyK0L.js";import"./_baseFlatten-CnCoQev7.js";import"./_basePickBy-CPlg9rol.js";import"./merge-DVX6Ez37.js";import"./_baseSlice-CskhCEVH.js";import"./_arrayReduce-BPS6ICyD.js";import"./clone-CWE1jGg6.js";import"./_baseEach-DNbt63Tv.js";import"./hasIn-Ddg4IE2d.js";import"./_baseProperty-Bl8lQyHQ.js";import"./_createAggregator-CmsZvFm6.js";import"./min-icbQ0dc4.js";import"./_baseMap-SuiZFU3A.js";import"./isString-Ciurw6G5.js";import"./isEmpty-G5zoL4pK.js";import"./_baseSet-BwKym8Ma.js";import"./uniq-CwfSRyIn.js";import"./preload-helper-WDmkW-6F.js";import"./main-B1nOh376.js";import"./purify.es-B1k9qoU6.js";import"./marked.esm-D2gFq9fv.js";import"./timer-yuocpjOJ.js";import{u as Xe}from"./src-C0izl9Fx.js";import"./math-CqRXdPQw.js";import"./step-DPEIwvoe.js";import{c as ze,i as Be}from"./chunk-S3R3BYOJ-CHQG4Tkr.js";import{n as gt,r as Ae}from"./src-BgRVyE5A.js";import{B as Ve,C as We,G as je,I as $e,U as qe,_ as Ze,a as Je,b as ge,d as Ke,v as Qe,y as ti,z as ei}from"./chunk-ABZYJK2D-CtXIjLiW.js";import{t as ii}from"./chunk-EXTU4WIE-D12Fazph.js";import"./dist-Sjq7q5Ez.js";import{i as ri,n as ce,o as oi,r as ue}from"./chunk-JA3XYJ7Z-CtNBL0qt.js";import"./chunk-O7ZBX7Z2-B5IhsoVf.js";import"./chunk-S6J4BHB3-1pPGBAFs.js";import"./chunk-LBM3YZW2-DECJ0RIr.js";import"./chunk-76Q3JFCE-MoKVUmPd.js";import"./chunk-T53DSG4Q-BBZDImTa.js";import"./chunk-LHMN2FUI-CZFxxXco.js";import"./chunk-FWNWRKHM-CAStKZ1H.js";import{t as ni}from"./chunk-4BX2VUAB-Dnmsi95O.js";import{t as ai}from"./mermaid-parser.core-bcTOi7_A.js";import{t as Ce}from"./cytoscape.esm-asoeCsL1.js";var Le=de(((_,x)=>{(function(C,M){typeof _=="object"&&typeof x=="object"?x.exports=M():typeof define=="function"&&define.amd?define([],M):typeof _=="object"?_.layoutBase=M():C.layoutBase=M()})(_,function(){return(function(C){var M={};function N(f){if(M[f])return M[f].exports;var r=M[f]={i:f,l:!1,exports:{}};return C[f].call(r.exports,r,r.exports,N),r.l=!0,r.exports}return N.m=C,N.c=M,N.i=function(f){return f},N.d=function(f,r,n){N.o(f,r)||Object.defineProperty(f,r,{configurable:!1,enumerable:!0,get:n})},N.n=function(f){var r=f&&f.__esModule?function(){return f.default}:function(){return f};return N.d(r,"a",r),r},N.o=function(f,r){return Object.prototype.hasOwnProperty.call(f,r)},N.p="",N(N.s=28)})([(function(C,M,N){function f(){}f.QUALITY=1,f.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,f.DEFAULT_INCREMENTAL=!1,f.DEFAULT_ANIMATION_ON_LAYOUT=!0,f.DEFAULT_ANIMATION_DURING_LAYOUT=!1,f.DEFAULT_ANIMATION_PERIOD=50,f.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,f.DEFAULT_GRAPH_MARGIN=15,f.NODE_DIMENSIONS_INCLUDE_LABELS=!1,f.SIMPLE_NODE_SIZE=40,f.SIMPLE_NODE_HALF_SIZE=f.SIMPLE_NODE_SIZE/2,f.EMPTY_COMPOUND_NODE_SIZE=40,f.MIN_EDGE_LENGTH=1,f.WORLD_BOUNDARY=1e6,f.INITIAL_WORLD_BOUNDARY=f.WORLD_BOUNDARY/1e3,f.WORLD_CENTER_X=1200,f.WORLD_CENTER_Y=900,C.exports=f}),(function(C,M,N){var f=N(2),r=N(8),n=N(9);function t(h,a,p){f.call(this,p),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=p,this.bendpoints=[],this.source=h,this.target=a}for(var e in t.prototype=Object.create(f.prototype),f)t[e]=f[e];t.prototype.getSource=function(){return this.source},t.prototype.getTarget=function(){return this.target},t.prototype.isInterGraph=function(){return this.isInterGraph},t.prototype.getLength=function(){return this.length},t.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},t.prototype.getBendpoints=function(){return this.bendpoints},t.prototype.getLca=function(){return this.lca},t.prototype.getSourceInLca=function(){return this.sourceInLca},t.prototype.getTargetInLca=function(){return this.targetInLca},t.prototype.getOtherEnd=function(h){if(this.source===h)return this.target;if(this.target===h)return this.source;throw"Node is not incident with this edge"},t.prototype.getOtherEndInGraph=function(h,a){for(var p=this.getOtherEnd(h),o=a.getGraphManager().getRoot();;){if(p.getOwner()==a)return p;if(p.getOwner()==o)break;p=p.getOwner().getParent()}return null},t.prototype.updateLength=function(){var h=[,,,,];this.isOverlapingSourceAndTarget=r.getIntersection(this.target.getRect(),this.source.getRect(),h),this.isOverlapingSourceAndTarget||(this.lengthX=h[0]-h[2],this.lengthY=h[1]-h[3],Math.abs(this.lengthX)<1&&(this.lengthX=n.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=n.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},t.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=n.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=n.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},C.exports=t}),(function(C,M,N){function f(r){this.vGraphObject=r}C.exports=f}),(function(C,M,N){var f=N(2),r=N(10),n=N(13),t=N(0),e=N(16),h=N(5);function a(o,i,d,s){d==null&&s==null&&(s=i),f.call(this,s),o.graphManager!=null&&(o=o.graphManager),this.estimatedSize=r.MIN_VALUE,this.inclusionTreeDepth=r.MAX_VALUE,this.vGraphObject=s,this.edges=[],this.graphManager=o,d!=null&&i!=null?this.rect=new n(i.x,i.y,d.width,d.height):this.rect=new n}for(var p in a.prototype=Object.create(f.prototype),f)a[p]=f[p];a.prototype.getEdges=function(){return this.edges},a.prototype.getChild=function(){return this.child},a.prototype.getOwner=function(){return this.owner},a.prototype.getWidth=function(){return this.rect.width},a.prototype.setWidth=function(o){this.rect.width=o},a.prototype.getHeight=function(){return this.rect.height},a.prototype.setHeight=function(o){this.rect.height=o},a.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},a.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},a.prototype.getCenter=function(){return new h(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},a.prototype.getLocation=function(){return new h(this.rect.x,this.rect.y)},a.prototype.getRect=function(){return this.rect},a.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},a.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},a.prototype.setRect=function(o,i){this.rect.x=o.x,this.rect.y=o.y,this.rect.width=i.width,this.rect.height=i.height},a.prototype.setCenter=function(o,i){this.rect.x=o-this.rect.width/2,this.rect.y=i-this.rect.height/2},a.prototype.setLocation=function(o,i){this.rect.x=o,this.rect.y=i},a.prototype.moveBy=function(o,i){this.rect.x+=o,this.rect.y+=i},a.prototype.getEdgeListToNode=function(o){var i=[],d=this;return d.edges.forEach(function(s){if(s.target==o){if(s.source!=d)throw"Incorrect edge source!";i.push(s)}}),i},a.prototype.getEdgesBetween=function(o){var i=[],d=this;return d.edges.forEach(function(s){if(!(s.source==d||s.target==d))throw"Incorrect edge source and/or target";(s.target==o||s.source==o)&&i.push(s)}),i},a.prototype.getNeighborsList=function(){var o=new Set,i=this;return i.edges.forEach(function(d){if(d.source==i)o.add(d.target);else{if(d.target!=i)throw"Incorrect incidency!";o.add(d.source)}}),o},a.prototype.withChildren=function(){var o=new Set,i,d;if(o.add(this),this.child!=null)for(var s=this.child.getNodes(),c=0;c<s.length;c++)i=s[c],d=i.withChildren(),d.forEach(function(g){o.add(g)});return o},a.prototype.getNoOfChildren=function(){var o=0,i;if(this.child==null)o=1;else for(var d=this.child.getNodes(),s=0;s<d.length;s++)i=d[s],o+=i.getNoOfChildren();return o==0&&(o=1),o},a.prototype.getEstimatedSize=function(){if(this.estimatedSize==r.MIN_VALUE)throw"assert failed";return this.estimatedSize},a.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)},a.prototype.scatter=function(){var o,i,d=-t.INITIAL_WORLD_BOUNDARY,s=t.INITIAL_WORLD_BOUNDARY;o=t.WORLD_CENTER_X+e.nextDouble()*(s-d)+d;var c=-t.INITIAL_WORLD_BOUNDARY,g=t.INITIAL_WORLD_BOUNDARY;i=t.WORLD_CENTER_Y+e.nextDouble()*(g-c)+c,this.rect.x=o,this.rect.y=i},a.prototype.updateBounds=function(){if(this.getChild()==null)throw"assert failed";if(this.getChild().getNodes().length!=0){var o=this.getChild();if(o.updateBounds(!0),this.rect.x=o.getLeft(),this.rect.y=o.getTop(),this.setWidth(o.getRight()-o.getLeft()),this.setHeight(o.getBottom()-o.getTop()),t.NODE_DIMENSIONS_INCLUDE_LABELS){var i=o.getRight()-o.getLeft(),d=o.getBottom()-o.getTop();this.labelWidth&&(this.labelPosHorizontal=="left"?(this.rect.x-=this.labelWidth,this.setWidth(i+this.labelWidth)):this.labelPosHorizontal=="center"&&this.labelWidth>i?(this.rect.x-=(this.labelWidth-i)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal=="right"&&this.setWidth(i+this.labelWidth)),this.labelHeight&&(this.labelPosVertical=="top"?(this.rect.y-=this.labelHeight,this.setHeight(d+this.labelHeight)):this.labelPosVertical=="center"&&this.labelHeight>d?(this.rect.y-=(this.labelHeight-d)/2,this.setHeight(this.labelHeight)):this.labelPosVertical=="bottom"&&this.setHeight(d+this.labelHeight))}}},a.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==r.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},a.prototype.transform=function(o){var i=this.rect.x;i>t.WORLD_BOUNDARY?i=t.WORLD_BOUNDARY:i<-t.WORLD_BOUNDARY&&(i=-t.WORLD_BOUNDARY);var d=this.rect.y;d>t.WORLD_BOUNDARY?d=t.WORLD_BOUNDARY:d<-t.WORLD_BOUNDARY&&(d=-t.WORLD_BOUNDARY);var s=new h(i,d),c=o.inverseTransformPoint(s);this.setLocation(c.x,c.y)},a.prototype.getLeft=function(){return this.rect.x},a.prototype.getRight=function(){return this.rect.x+this.rect.width},a.prototype.getTop=function(){return this.rect.y},a.prototype.getBottom=function(){return this.rect.y+this.rect.height},a.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},C.exports=a}),(function(C,M,N){var f=N(0);function r(){}for(var n in f)r[n]=f[n];r.MAX_ITERATIONS=2500,r.DEFAULT_EDGE_LENGTH=50,r.DEFAULT_SPRING_STRENGTH=.45,r.DEFAULT_REPULSION_STRENGTH=4500,r.DEFAULT_GRAVITY_STRENGTH=.4,r.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,r.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,r.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,r.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,r.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,r.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,r.COOLING_ADAPTATION_FACTOR=.33,r.ADAPTATION_LOWER_NODE_LIMIT=1e3,r.ADAPTATION_UPPER_NODE_LIMIT=5e3,r.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,r.MAX_NODE_DISPLACEMENT=r.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,r.MIN_REPULSION_DIST=r.DEFAULT_EDGE_LENGTH/10,r.CONVERGENCE_CHECK_PERIOD=100,r.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,r.MIN_EDGE_LENGTH=1,r.GRID_CALCULATION_CHECK_PERIOD=10,C.exports=r}),(function(C,M,N){function f(r,n){r==null&&n==null?(this.x=0,this.y=0):(this.x=r,this.y=n)}f.prototype.getX=function(){return this.x},f.prototype.getY=function(){return this.y},f.prototype.setX=function(r){this.x=r},f.prototype.setY=function(r){this.y=r},f.prototype.getDifference=function(r){return new DimensionD(this.x-r.x,this.y-r.y)},f.prototype.getCopy=function(){return new f(this.x,this.y)},f.prototype.translate=function(r){return this.x+=r.width,this.y+=r.height,this},C.exports=f}),(function(C,M,N){var f=N(2),r=N(10),n=N(0),t=N(7),e=N(3),h=N(1),a=N(13),p=N(12),o=N(11);function i(s,c,g){f.call(this,g),this.estimatedSize=r.MIN_VALUE,this.margin=n.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=s,c!=null&&c instanceof t?this.graphManager=c:c!=null&&c instanceof Layout&&(this.graphManager=c.graphManager)}for(var d in i.prototype=Object.create(f.prototype),f)i[d]=f[d];i.prototype.getNodes=function(){return this.nodes},i.prototype.getEdges=function(){return this.edges},i.prototype.getGraphManager=function(){return this.graphManager},i.prototype.getParent=function(){return this.parent},i.prototype.getLeft=function(){return this.left},i.prototype.getRight=function(){return this.right},i.prototype.getTop=function(){return this.top},i.prototype.getBottom=function(){return this.bottom},i.prototype.isConnected=function(){return this.isConnected},i.prototype.add=function(s,c,g){if(c==null&&g==null){var m=s;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(m)>-1)throw"Node already in graph!";return m.owner=this,this.getNodes().push(m),m}else{var T=s;if(!(this.getNodes().indexOf(c)>-1&&this.getNodes().indexOf(g)>-1))throw"Source or target not in graph!";if(!(c.owner==g.owner&&c.owner==this))throw"Both owners must be this graph!";return c.owner==g.owner?(T.source=c,T.target=g,T.isInterGraph=!1,this.getEdges().push(T),c.edges.push(T),g!=c&&g.edges.push(T),T):null}},i.prototype.remove=function(s){var c=s;if(s instanceof e){if(c==null)throw"Node is null!";if(!(c.owner!=null&&c.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var g=c.edges.slice(),m,T=g.length,L=0;L<T;L++)m=g[L],m.isInterGraph?this.graphManager.remove(m):m.source.owner.remove(m);var R=this.nodes.indexOf(c);if(R==-1)throw"Node not in owner node list!";this.nodes.splice(R,1)}else if(s instanceof h){var m=s;if(m==null)throw"Edge is null!";if(!(m.source!=null&&m.target!=null))throw"Source and/or target is null!";if(!(m.source.owner!=null&&m.target.owner!=null&&m.source.owner==this&&m.target.owner==this))throw"Source and/or target owner is invalid!";var S=m.source.edges.indexOf(m),Y=m.target.edges.indexOf(m);if(!(S>-1&&Y>-1))throw"Source and/or target doesn't know this edge!";m.source.edges.splice(S,1),m.target!=m.source&&m.target.edges.splice(Y,1);var R=m.source.owner.getEdges().indexOf(m);if(R==-1)throw"Not in owner's edge list!";m.source.owner.getEdges().splice(R,1)}},i.prototype.updateLeftTop=function(){for(var s=r.MAX_VALUE,c=r.MAX_VALUE,g,m,T,L=this.getNodes(),R=L.length,S=0;S<R;S++){var Y=L[S];g=Y.getTop(),m=Y.getLeft(),s>g&&(s=g),c>m&&(c=m)}return s==r.MAX_VALUE?null:(T=L[0].getParent().paddingLeft==null?this.margin:L[0].getParent().paddingLeft,this.left=c-T,this.top=s-T,new p(this.left,this.top))},i.prototype.updateBounds=function(s){for(var c=r.MAX_VALUE,g=-r.MAX_VALUE,m=r.MAX_VALUE,T=-r.MAX_VALUE,L,R,S,Y,$,Z=this.nodes,D=Z.length,J=0;J<D;J++){var l=Z[J];s&&l.child!=null&&l.updateBounds(),L=l.getLeft(),R=l.getRight(),S=l.getTop(),Y=l.getBottom(),c>L&&(c=L),g<R&&(g=R),m>S&&(m=S),T<Y&&(T=Y)}var E=new a(c,m,g-c,T-m);c==r.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),$=Z[0].getParent().paddingLeft==null?this.margin:Z[0].getParent().paddingLeft,this.left=E.x-$,this.right=E.x+E.width+$,this.top=E.y-$,this.bottom=E.y+E.height+$},i.calculateBounds=function(s){for(var c=r.MAX_VALUE,g=-r.MAX_VALUE,m=r.MAX_VALUE,T=-r.MAX_VALUE,L,R,S,Y,$=s.length,Z=0;Z<$;Z++){var D=s[Z];L=D.getLeft(),R=D.getRight(),S=D.getTop(),Y=D.getBottom(),c>L&&(c=L),g<R&&(g=R),m>S&&(m=S),T<Y&&(T=Y)}return new a(c,m,g-c,T-m)},i.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},i.prototype.getEstimatedSize=function(){if(this.estimatedSize==r.MIN_VALUE)throw"assert failed";return this.estimatedSize},i.prototype.calcEstimatedSize=function(){for(var s=0,c=this.nodes,g=c.length,m=0;m<g;m++){var T=c[m];s+=T.calcEstimatedSize()}return s==0?this.estimatedSize=n.EMPTY_COMPOUND_NODE_SIZE:this.estimatedSize=s/Math.sqrt(this.nodes.length),this.estimatedSize},i.prototype.updateConnected=function(){var s=this;if(this.nodes.length==0){this.isConnected=!0;return}var c=new o,g=new Set,m=this.nodes[0],T,L;for(m.withChildren().forEach(function($){c.push($),g.add($)});c.length!==0;){m=c.shift(),T=m.getEdges();for(var R=T.length,S=0;S<R;S++)L=T[S].getOtherEndInGraph(m,this),L!=null&&!g.has(L)&&L.withChildren().forEach(function($){c.push($),g.add($)})}if(this.isConnected=!1,g.size>=this.nodes.length){var Y=0;g.forEach(function($){$.owner==s&&Y++}),Y==this.nodes.length&&(this.isConnected=!0)}},C.exports=i}),(function(C,M,N){var f,r=N(1);function n(t){f=N(6),this.layout=t,this.graphs=[],this.edges=[]}n.prototype.addRoot=function(){var t=this.layout.newGraph(),e=this.layout.newNode(null),h=this.add(t,e);return this.setRootGraph(h),this.rootGraph},n.prototype.add=function(t,e,h,a,p){if(h==null&&a==null&&p==null){if(t==null)throw"Graph is null!";if(e==null)throw"Parent node is null!";if(this.graphs.indexOf(t)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(t),t.parent!=null)throw"Already has a parent!";if(e.child!=null)throw"Already has a child!";return t.parent=e,e.child=t,t}else{p=h,a=e,h=t;var o=a.getOwner(),i=p.getOwner();if(!(o!=null&&o.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(i!=null&&i.getGraphManager()==this))throw"Target not in this graph mgr!";if(o==i)return h.isInterGraph=!1,o.add(h,a,p);if(h.isInterGraph=!0,h.source=a,h.target=p,this.edges.indexOf(h)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(h),!(h.source!=null&&h.target!=null))throw"Edge source and/or target is null!";if(!(h.source.edges.indexOf(h)==-1&&h.target.edges.indexOf(h)==-1))throw"Edge already in source and/or target incidency list!";return h.source.edges.push(h),h.target.edges.push(h),h}},n.prototype.remove=function(t){if(t instanceof f){var e=t;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 h=[];h=h.concat(e.getEdges());for(var a,p=h.length,o=0;o<p;o++)a=h[o],e.remove(a);var i=[];i=i.concat(e.getNodes());var d;p=i.length;for(var o=0;o<p;o++)d=i[o],e.remove(d);e==this.rootGraph&&this.setRootGraph(null);var s=this.graphs.indexOf(e);this.graphs.splice(s,1),e.parent=null}else if(t instanceof r){if(a=t,a==null)throw"Edge is null!";if(!a.isInterGraph)throw"Not an inter-graph edge!";if(!(a.source!=null&&a.target!=null))throw"Source and/or target is null!";if(!(a.source.edges.indexOf(a)!=-1&&a.target.edges.indexOf(a)!=-1))throw"Source and/or target doesn't know this edge!";var s=a.source.edges.indexOf(a);if(a.source.edges.splice(s,1),s=a.target.edges.indexOf(a),a.target.edges.splice(s,1),!(a.source.owner!=null&&a.source.owner.getGraphManager()!=null))throw"Edge owner graph or owner graph manager is null!";if(a.source.owner.getGraphManager().edges.indexOf(a)==-1)throw"Not in owner graph manager's edge list!";var s=a.source.owner.getGraphManager().edges.indexOf(a);a.source.owner.getGraphManager().edges.splice(s,1)}},n.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},n.prototype.getGraphs=function(){return this.graphs},n.prototype.getAllNodes=function(){if(this.allNodes==null){for(var t=[],e=this.getGraphs(),h=e.length,a=0;a<h;a++)t=t.concat(e[a].getNodes());this.allNodes=t}return this.allNodes},n.prototype.resetAllNodes=function(){this.allNodes=null},n.prototype.resetAllEdges=function(){this.allEdges=null},n.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},n.prototype.getAllEdges=function(){if(this.allEdges==null){var t=[],e=this.getGraphs();e.length;for(var h=0;h<e.length;h++)t=t.concat(e[h].getEdges());t=t.concat(this.edges),this.allEdges=t}return this.allEdges},n.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},n.prototype.setAllNodesToApplyGravitation=function(t){if(this.allNodesToApplyGravitation!=null)throw"assert failed";this.allNodesToApplyGravitation=t},n.prototype.getRoot=function(){return this.rootGraph},n.prototype.setRootGraph=function(t){if(t.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=t,t.parent??(t.parent=this.layout.newNode("Root node"))},n.prototype.getLayout=function(){return this.layout},n.prototype.isOneAncestorOfOther=function(t,e){if(!(t!=null&&e!=null))throw"assert failed";if(t==e)return!0;var h=t.getOwner(),a;do{if(a=h.getParent(),a==null)break;if(a==e)return!0;if(h=a.getOwner(),h==null)break}while(!0);h=e.getOwner();do{if(a=h.getParent(),a==null)break;if(a==t)return!0;if(h=a.getOwner(),h==null)break}while(!0);return!1},n.prototype.calcLowestCommonAncestors=function(){for(var t,e,h,a,p,o=this.getAllEdges(),i=o.length,d=0;d<i;d++){if(t=o[d],e=t.source,h=t.target,t.lca=null,t.sourceInLca=e,t.targetInLca=h,e==h){t.lca=e.getOwner();continue}for(a=e.getOwner();t.lca==null;){for(t.targetInLca=h,p=h.getOwner();t.lca==null;){if(p==a){t.lca=p;break}if(p==this.rootGraph)break;if(t.lca!=null)throw"assert failed";t.targetInLca=p.getParent(),p=t.targetInLca.getOwner()}if(a==this.rootGraph)break;t.lca??(t.sourceInLca=a.getParent(),a=t.sourceInLca.getOwner())}if(t.lca==null)throw"assert failed"}},n.prototype.calcLowestCommonAncestor=function(t,e){if(t==e)return t.getOwner();var h=t.getOwner();do{if(h==null)break;var a=e.getOwner();do{if(a==null)break;if(a==h)return a;a=a.getParent().getOwner()}while(!0);h=h.getParent().getOwner()}while(!0);return h},n.prototype.calcInclusionTreeDepths=function(t,e){t==null&&e==null&&(t=this.rootGraph,e=1);for(var h,a=t.getNodes(),p=a.length,o=0;o<p;o++)h=a[o],h.inclusionTreeDepth=e,h.child!=null&&this.calcInclusionTreeDepths(h.child,e+1)},n.prototype.includesInvalidEdge=function(){for(var t,e=[],h=this.edges.length,a=0;a<h;a++)t=this.edges[a],this.isOneAncestorOfOther(t.source,t.target)&&e.push(t);for(var a=0;a<e.length;a++)this.remove(e[a]);return!1},C.exports=n}),(function(C,M,N){var f=N(12);function r(){}r.calcSeparationAmount=function(n,t,e,h){if(!n.intersects(t))throw"assert failed";var a=[,,];this.decideDirectionsForOverlappingNodes(n,t,a),e[0]=Math.min(n.getRight(),t.getRight())-Math.max(n.x,t.x),e[1]=Math.min(n.getBottom(),t.getBottom())-Math.max(n.y,t.y),n.getX()<=t.getX()&&n.getRight()>=t.getRight()?e[0]+=Math.min(t.getX()-n.getX(),n.getRight()-t.getRight()):t.getX()<=n.getX()&&t.getRight()>=n.getRight()&&(e[0]+=Math.min(n.getX()-t.getX(),t.getRight()-n.getRight())),n.getY()<=t.getY()&&n.getBottom()>=t.getBottom()?e[1]+=Math.min(t.getY()-n.getY(),n.getBottom()-t.getBottom()):t.getY()<=n.getY()&&t.getBottom()>=n.getBottom()&&(e[1]+=Math.min(n.getY()-t.getY(),t.getBottom()-n.getBottom()));var p=Math.abs((t.getCenterY()-n.getCenterY())/(t.getCenterX()-n.getCenterX()));t.getCenterY()===n.getCenterY()&&t.getCenterX()===n.getCenterX()&&(p=1);var o=p*e[0],i=e[1]/p;e[0]<i?i=e[0]:o=e[1],e[0]=-1*a[0]*(i/2+h),e[1]=-1*a[1]*(o/2+h)},r.decideDirectionsForOverlappingNodes=function(n,t,e){n.getCenterX()<t.getCenterX()?e[0]=-1:e[0]=1,n.getCenterY()<t.getCenterY()?e[1]=-1:e[1]=1},r.getIntersection2=function(n,t,e){var h=n.getCenterX(),a=n.getCenterY(),p=t.getCenterX(),o=t.getCenterY();if(n.intersects(t))return e[0]=h,e[1]=a,e[2]=p,e[3]=o,!0;var i=n.getX(),d=n.getY(),s=n.getRight(),c=n.getX(),g=n.getBottom(),m=n.getRight(),T=n.getWidthHalf(),L=n.getHeightHalf(),R=t.getX(),S=t.getY(),Y=t.getRight(),$=t.getX(),Z=t.getBottom(),D=t.getRight(),J=t.getWidthHalf(),l=t.getHeightHalf(),E=!1,u=!1;if(h===p){if(a>o)return e[0]=h,e[1]=d,e[2]=p,e[3]=Z,!1;if(a<o)return e[0]=h,e[1]=g,e[2]=p,e[3]=S,!1}else if(a===o){if(h>p)return e[0]=i,e[1]=a,e[2]=Y,e[3]=o,!1;if(h<p)return e[0]=s,e[1]=a,e[2]=R,e[3]=o,!1}else{var y=n.height/n.width,v=t.height/t.width,A=(o-a)/(p-h),w=void 0,b=void 0,G=void 0,F=void 0,k=void 0,V=void 0;if(-y===A?h>p?(e[0]=c,e[1]=g,E=!0):(e[0]=s,e[1]=d,E=!0):y===A&&(h>p?(e[0]=i,e[1]=d,E=!0):(e[0]=m,e[1]=g,E=!0)),-v===A?p>h?(e[2]=$,e[3]=Z,u=!0):(e[2]=Y,e[3]=S,u=!0):v===A&&(p>h?(e[2]=R,e[3]=S,u=!0):(e[2]=D,e[3]=Z,u=!0)),E&&u)return!1;if(h>p?a>o?(w=this.getCardinalDirection(y,A,4),b=this.getCardinalDirection(v,A,2)):(w=this.getCardinalDirection(-y,A,3),b=this.getCardinalDirection(-v,A,1)):a>o?(w=this.getCardinalDirection(-y,A,1),b=this.getCardinalDirection(-v,A,3)):(w=this.getCardinalDirection(y,A,2),b=this.getCardinalDirection(v,A,4)),!E)switch(w){case 1:F=d,G=h+-L/A,e[0]=G,e[1]=F;break;case 2:G=m,F=a+T*A,e[0]=G,e[1]=F;break;case 3:F=g,G=h+L/A,e[0]=G,e[1]=F;break;case 4:G=c,F=a+-T*A,e[0]=G,e[1]=F;break}if(!u)switch(b){case 1:V=S,k=p+-l/A,e[2]=k,e[3]=V;break;case 2:k=D,V=o+J*A,e[2]=k,e[3]=V;break;case 3:V=Z,k=p+l/A,e[2]=k,e[3]=V;break;case 4:k=$,V=o+-J*A,e[2]=k,e[3]=V;break}}return!1},r.getCardinalDirection=function(n,t,e){return n>t?e:1+e%4},r.getIntersection=function(n,t,e,h){if(h==null)return this.getIntersection2(n,t,e);var a=n.x,p=n.y,o=t.x,i=t.y,d=e.x,s=e.y,c=h.x,g=h.y,m=void 0,T=void 0,L=void 0,R=void 0,S=void 0,Y=void 0,$=void 0,Z=void 0,D=void 0;return L=i-p,S=a-o,$=o*p-a*i,R=g-s,Y=d-c,Z=c*s-d*g,D=L*Y-R*S,D===0?null:(m=(S*Z-Y*$)/D,T=(R*$-L*Z)/D,new f(m,T))},r.angleOfVector=function(n,t,e,h){var a=void 0;return n===e?a=h<t?this.ONE_AND_HALF_PI:this.HALF_PI:(a=Math.atan((h-t)/(e-n)),e<n?a+=Math.PI:h<t&&(a+=this.TWO_PI)),a},r.doIntersect=function(n,t,e,h){var a=n.x,p=n.y,o=t.x,i=t.y,d=e.x,s=e.y,c=h.x,g=h.y,m=(o-a)*(g-s)-(c-d)*(i-p);if(m===0)return!1;var T=((g-s)*(c-a)+(d-c)*(g-p))/m,L=((p-i)*(c-a)+(o-a)*(g-p))/m;return 0<T&&T<1&&0<L&&L<1},r.findCircleLineIntersections=function(n,t,e,h,a,p,o){var i=(e-n)*(e-n)+(h-t)*(h-t),d=2*((n-a)*(e-n)+(t-p)*(h-t)),s=(n-a)*(n-a)+(t-p)*(t-p)-o*o;if(d*d-4*i*s>=0){var c=(-d+Math.sqrt(d*d-4*i*s))/(2*i),g=(-d-Math.sqrt(d*d-4*i*s))/(2*i);return c>=0&&c<=1?[c]:g>=0&&g<=1?[g]:null}else return null},r.HALF_PI=.5*Math.PI,r.ONE_AND_HALF_PI=1.5*Math.PI,r.TWO_PI=2*Math.PI,r.THREE_PI=3*Math.PI,C.exports=r}),(function(C,M,N){function f(){}f.sign=function(r){return r>0?1:r<0?-1:0},f.floor=function(r){return r<0?Math.ceil(r):Math.floor(r)},f.ceil=function(r){return r<0?Math.floor(r):Math.ceil(r)},C.exports=f}),(function(C,M,N){function f(){}f.MAX_VALUE=2147483647,f.MIN_VALUE=-2147483648,C.exports=f}),(function(C,M,N){var f=(function(){function h(a,p){for(var o=0;o<p.length;o++){var i=p[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(a,i.key,i)}}return function(a,p,o){return p&&h(a.prototype,p),o&&h(a,o),a}})();function r(h,a){if(!(h instanceof a))throw TypeError("Cannot call a class as a function")}var n=function(h){return{value:h,next:null,prev:null}},t=function(h,a,p,o){return h===null?o.head=a:h.next=a,p===null?o.tail=a:p.prev=a,a.prev=h,a.next=p,o.length++,a},e=function(h,a){var p=h.prev,o=h.next;return p===null?a.head=o:p.next=o,o===null?a.tail=p:o.prev=p,h.prev=h.next=null,a.length--,h};C.exports=(function(){function h(a){var p=this;r(this,h),this.length=0,this.head=null,this.tail=null,a==null||a.forEach(function(o){return p.push(o)})}return f(h,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(a,p){return t(p.prev,n(a),p,this)}},{key:"insertAfter",value:function(a,p){return t(p,n(a),p.next,this)}},{key:"insertNodeBefore",value:function(a,p){return t(p.prev,a,p,this)}},{key:"insertNodeAfter",value:function(a,p){return t(p,a,p.next,this)}},{key:"push",value:function(a){return t(this.tail,n(a),null,this)}},{key:"unshift",value:function(a){return t(null,n(a),this.head,this)}},{key:"remove",value:function(a){return e(a,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(a){if(a<=this.length()){for(var p=1,o=this.head;p<a;)o=o.next,p++;return o.value}}},{key:"set_object_at",value:function(a,p){if(a<=this.length()){for(var o=1,i=this.head;o<a;)i=i.next,o++;i.value=p}}}]),h})()}),(function(C,M,N){function f(r,n,t){this.x=null,this.y=null,r==null&&n==null&&t==null?(this.x=0,this.y=0):typeof r=="number"&&typeof n=="number"&&t==null?(this.x=r,this.y=n):r.constructor.name=="Point"&&n==null&&t==null&&(t=r,this.x=t.x,this.y=t.y)}f.prototype.getX=function(){return this.x},f.prototype.getY=function(){return this.y},f.prototype.getLocation=function(){return new f(this.x,this.y)},f.prototype.setLocation=function(r,n,t){r.constructor.name=="Point"&&n==null&&t==null?(t=r,this.setLocation(t.x,t.y)):typeof r=="number"&&typeof n=="number"&&t==null&&(parseInt(r)==r&&parseInt(n)==n?this.move(r,n):(this.x=Math.floor(r+.5),this.y=Math.floor(n+.5)))},f.prototype.move=function(r,n){this.x=r,this.y=n},f.prototype.translate=function(r,n){this.x+=r,this.y+=n},f.prototype.equals=function(r){if(r.constructor.name=="Point"){var n=r;return this.x==n.x&&this.y==n.y}return this==r},f.prototype.toString=function(){return new f().constructor.name+"[x="+this.x+",y="+this.y+"]"},C.exports=f}),(function(C,M,N){function f(r,n,t,e){this.x=0,this.y=0,this.width=0,this.height=0,r!=null&&n!=null&&t!=null&&e!=null&&(this.x=r,this.y=n,this.width=t,this.height=e)}f.prototype.getX=function(){return this.x},f.prototype.setX=function(r){this.x=r},f.prototype.getY=function(){return this.y},f.prototype.setY=function(r){this.y=r},f.prototype.getWidth=function(){return this.width},f.prototype.setWidth=function(r){this.width=r},f.prototype.getHeight=function(){return this.height},f.prototype.setHeight=function(r){this.height=r},f.prototype.getRight=function(){return this.x+this.width},f.prototype.getBottom=function(){return this.y+this.height},f.prototype.intersects=function(r){return!(this.getRight()<r.x||this.getBottom()<r.y||r.getRight()<this.x||r.getBottom()<this.y)},f.prototype.getCenterX=function(){return this.x+this.width/2},f.prototype.getMinX=function(){return this.getX()},f.prototype.getMaxX=function(){return this.getX()+this.width},f.prototype.getCenterY=function(){return this.y+this.height/2},f.prototype.getMinY=function(){return this.getY()},f.prototype.getMaxY=function(){return this.getY()+this.height},f.prototype.getWidthHalf=function(){return this.width/2},f.prototype.getHeightHalf=function(){return this.height/2},C.exports=f}),(function(C,M,N){var f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n};function r(){}r.lastID=0,r.createID=function(n){return r.isPrimitive(n)?n:(n.uniqueID==null&&(n.uniqueID=r.getString(),r.lastID++),n.uniqueID)},r.getString=function(n){return n??(n=r.lastID),"Object#"+n},r.isPrimitive=function(n){var t=n===void 0?"undefined":f(n);return n==null||t!="object"&&t!="function"},C.exports=r}),(function(C,M,N){function f(d){if(Array.isArray(d)){for(var s=0,c=Array(d.length);s<d.length;s++)c[s]=d[s];return c}else return Array.from(d)}var r=N(0),n=N(7),t=N(3),e=N(1),h=N(6),a=N(5),p=N(17),o=N(29);function i(d){o.call(this),this.layoutQuality=r.QUALITY,this.createBendsAsNeeded=r.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=r.DEFAULT_INCREMENTAL,this.animationOnLayout=r.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=r.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=r.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=r.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new n(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,d!=null&&(this.isRemoteUse=d)}i.RANDOM_SEED=1,i.prototype=Object.create(o.prototype),i.prototype.getGraphManager=function(){return this.graphManager},i.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},i.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},i.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},i.prototype.newGraphManager=function(){var d=new n(this);return this.graphManager=d,d},i.prototype.newGraph=function(d){return new h(null,this.graphManager,d)},i.prototype.newNode=function(d){return new t(this.graphManager,d)},i.prototype.newEdge=function(d){return new e(null,null,d)},i.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},i.prototype.runLayout=function(){this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters();var d=this.checkLayoutSuccess()?!1:this.layout();return r.ANIMATE==="during"?!1:(d&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,d)},i.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},i.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var d=this.graphManager.getAllEdges(),s=0;s<d.length;s++)d[s];for(var c=this.graphManager.getRoot().getNodes(),s=0;s<c.length;s++)c[s];this.update(this.graphManager.getRoot())}},i.prototype.update=function(d){if(d==null)this.update2();else if(d instanceof t){var s=d;if(s.getChild()!=null)for(var c=s.getChild().getNodes(),g=0;g<c.length;g++)update(c[g]);s.vGraphObject!=null&&s.vGraphObject.update(s)}else if(d instanceof e){var m=d;m.vGraphObject!=null&&m.vGraphObject.update(m)}else if(d instanceof h){var T=d;T.vGraphObject!=null&&T.vGraphObject.update(T)}},i.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=r.QUALITY,this.animationDuringLayout=r.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=r.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=r.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=r.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=r.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=r.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},i.prototype.transform=function(d){if(d==null)this.transform(new a(0,0));else{var s=new p,c=this.graphManager.getRoot().updateLeftTop();if(c!=null){s.setWorldOrgX(d.x),s.setWorldOrgY(d.y),s.setDeviceOrgX(c.x),s.setDeviceOrgY(c.y);for(var g=this.getAllNodes(),m,T=0;T<g.length;T++)m=g[T],m.transform(s)}}},i.prototype.positionNodesRandomly=function(d){if(d==null)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var s,c,g=d.getNodes(),m=0;m<g.length;m++)s=g[m],c=s.getChild(),c==null||c.getNodes().length==0?s.scatter():(this.positionNodesRandomly(c),s.updateBounds())},i.prototype.getFlatForest=function(){for(var d=[],s=!0,c=this.graphManager.getRoot().getNodes(),g=!0,m=0;m<c.length;m++)c[m].getChild()!=null&&(g=!1);if(!g)return d;var T=new Set,L=[],R=new Map,S=[];for(S=S.concat(c);S.length>0&&s;){for(L.push(S[0]);L.length>0&&s;){var Y=L[0];L.splice(0,1),T.add(Y);for(var $=Y.getEdges(),m=0;m<$.length;m++){var Z=$[m].getOtherEnd(Y);if(R.get(Y)!=Z)if(!T.has(Z))L.push(Z),R.set(Z,Y);else{s=!1;break}}}if(!s)d=[];else{var D=[].concat(f(T));d.push(D);for(var m=0;m<D.length;m++){var J=D[m],l=S.indexOf(J);l>-1&&S.splice(l,1)}T=new Set,R=new Map}}return d},i.prototype.createDummyNodesForBendpoints=function(d){for(var s=[],c=d.source,g=this.graphManager.calcLowestCommonAncestor(d.source,d.target),m=0;m<d.bendpoints.length;m++){var T=this.newNode(null);T.setRect(new Point(0,0),new Dimension(1,1)),g.add(T);var L=this.newEdge(null);this.graphManager.add(L,c,T),s.add(T),c=T}var L=this.newEdge(null);return this.graphManager.add(L,c,d.target),this.edgeToDummyNodes.set(d,s),d.isInterGraph()?this.graphManager.remove(d):g.remove(d),s},i.prototype.createBendpointsFromDummyNodes=function(){var d=[];d=d.concat(this.graphManager.getAllEdges()),d=[].concat(f(this.edgeToDummyNodes.keys()),d);for(var s=0;s<d.length;s++){var c=d[s];if(c.bendpoints.length>0){for(var g=this.edgeToDummyNodes.get(c),m=0;m<g.length;m++){var T=g[m],L=new a(T.getCenterX(),T.getCenterY()),R=c.bendpoints.get(m);R.x=L.x,R.y=L.y,T.getOwner().remove(T)}this.graphManager.add(c,c.source,c.target)}}},i.transform=function(d,s,c,g){if(c!=null&&g!=null){var m=s;if(d<=50){var T=s/c;m-=(s-T)/50*(50-d)}else{var L=s*g;m+=(L-s)/50*(d-50)}return m}else{var R,S;return d<=50?(R=9*s/500,S=s/10):(R=9*s/50,S=-8*s),R*d+S}},i.findCenterOfTree=function(d){var s=[];s=s.concat(d);var c=[],g=new Map,m=!1,T=null;(s.length==1||s.length==2)&&(m=!0,T=s[0]);for(var L=0;L<s.length;L++){var R=s[L],S=R.getNeighborsList().size;g.set(R,R.getNeighborsList().size),S==1&&c.push(R)}var Y=[];for(Y=Y.concat(c);!m;){var $=[];$=$.concat(Y),Y=[];for(var L=0;L<s.length;L++){var R=s[L],Z=s.indexOf(R);Z>=0&&s.splice(Z,1),R.getNeighborsList().forEach(function(l){if(c.indexOf(l)<0){var E=g.get(l)-1;E==1&&Y.push(l),g.set(l,E)}})}c=c.concat(Y),(s.length==1||s.length==2)&&(m=!0,T=s[0])}return T},i.prototype.setGraphManager=function(d){this.graphManager=d},C.exports=i}),(function(C,M,N){function f(){}f.seed=1,f.x=0,f.nextDouble=function(){return f.x=Math.sin(f.seed++)*1e4,f.x-Math.floor(f.x)},C.exports=f}),(function(C,M,N){var f=N(5);function r(n,t){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}r.prototype.getWorldOrgX=function(){return this.lworldOrgX},r.prototype.setWorldOrgX=function(n){this.lworldOrgX=n},r.prototype.getWorldOrgY=function(){return this.lworldOrgY},r.prototype.setWorldOrgY=function(n){this.lworldOrgY=n},r.prototype.getWorldExtX=function(){return this.lworldExtX},r.prototype.setWorldExtX=function(n){this.lworldExtX=n},r.prototype.getWorldExtY=function(){return this.lworldExtY},r.prototype.setWorldExtY=function(n){this.lworldExtY=n},r.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},r.prototype.setDeviceOrgX=function(n){this.ldeviceOrgX=n},r.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},r.prototype.setDeviceOrgY=function(n){this.ldeviceOrgY=n},r.prototype.getDeviceExtX=function(){return this.ldeviceExtX},r.prototype.setDeviceExtX=function(n){this.ldeviceExtX=n},r.prototype.getDeviceExtY=function(){return this.ldeviceExtY},r.prototype.setDeviceExtY=function(n){this.ldeviceExtY=n},r.prototype.transformX=function(n){var t=0,e=this.lworldExtX;return e!=0&&(t=this.ldeviceOrgX+(n-this.lworldOrgX)*this.ldeviceExtX/e),t},r.prototype.transformY=function(n){var t=0,e=this.lworldExtY;return e!=0&&(t=this.ldeviceOrgY+(n-this.lworldOrgY)*this.ldeviceExtY/e),t},r.prototype.inverseTransformX=function(n){var t=0,e=this.ldeviceExtX;return e!=0&&(t=this.lworldOrgX+(n-this.ldeviceOrgX)*this.lworldExtX/e),t},r.prototype.inverseTransformY=function(n){var t=0,e=this.ldeviceExtY;return e!=0&&(t=this.lworldOrgY+(n-this.ldeviceOrgY)*this.lworldExtY/e),t},r.prototype.inverseTransformPoint=function(n){return new f(this.inverseTransformX(n.x),this.inverseTransformY(n.y))},C.exports=r}),(function(C,M,N){function f(o){if(Array.isArray(o)){for(var i=0,d=Array(o.length);i<o.length;i++)d[i]=o[i];return d}else return Array.from(o)}var r=N(15),n=N(4),t=N(0),e=N(8),h=N(9);function a(){r.call(this),this.useSmartIdealEdgeLengthCalculation=n.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=n.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=n.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=n.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=n.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*n.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=n.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=n.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=n.MAX_ITERATIONS}for(var p in a.prototype=Object.create(r.prototype),r)a[p]=r[p];a.prototype.initParameters=function(){r.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=n.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},a.prototype.calcIdealEdgeLengths=function(){for(var o,i,d,s,c,g,m,T=this.getGraphManager().getAllEdges(),L=0;L<T.length;L++)o=T[L],i=o.idealLength,o.isInterGraph&&(s=o.getSource(),c=o.getTarget(),g=o.getSourceInLca().getEstimatedSize(),m=o.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(o.idealLength+=g+m-2*t.SIMPLE_NODE_SIZE),d=o.getLca().getInclusionTreeDepth(),o.idealLength+=i*n.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(s.getInclusionTreeDepth()+c.getInclusionTreeDepth()-2*d))},a.prototype.initSpringEmbedder=function(){var o=this.getAllNodes().length;this.incremental?(o>n.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*n.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(o-n.ADAPTATION_LOWER_NODE_LIMIT)/(n.ADAPTATION_UPPER_NODE_LIMIT-n.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-n.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=n.MAX_NODE_DISPLACEMENT_INCREMENTAL):(o>n.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(n.COOLING_ADAPTATION_FACTOR,1-(o-n.ADAPTATION_LOWER_NODE_LIMIT)/(n.ADAPTATION_UPPER_NODE_LIMIT-n.ADAPTATION_LOWER_NODE_LIMIT)*(1-n.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=n.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*n.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},a.prototype.calcSpringForces=function(){for(var o=this.getAllEdges(),i,d=0;d<o.length;d++)i=o[d],this.calcSpringForce(i,i.idealLength)},a.prototype.calcRepulsionForces=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d,s,c,g,m=this.getAllNodes(),T;if(this.useFRGridVariant)for(this.totalIterations%n.GRID_CALCULATION_CHECK_PERIOD==1&&o&&this.updateGrid(),T=new Set,d=0;d<m.length;d++)c=m[d],this.calculateRepulsionForceOfANode(c,T,o,i),T.add(c);else for(d=0;d<m.length;d++)for(c=m[d],s=d+1;s<m.length;s++)g=m[s],c.getOwner()==g.getOwner()&&this.calcRepulsionForce(c,g)},a.prototype.calcGravitationalForces=function(){for(var o,i=this.getAllNodesToApplyGravitation(),d=0;d<i.length;d++)o=i[d],this.calcGravitationalForce(o)},a.prototype.moveNodes=function(){for(var o=this.getAllNodes(),i,d=0;d<o.length;d++)i=o[d],i.move()},a.prototype.calcSpringForce=function(o,i){var d=o.getSource(),s=o.getTarget(),c,g,m,T;if(this.uniformLeafNodeSizes&&d.getChild()==null&&s.getChild()==null)o.updateLengthSimple();else if(o.updateLength(),o.isOverlapingSourceAndTarget)return;c=o.getLength(),c!=0&&(g=o.edgeElasticity*(c-i),m=g*(o.lengthX/c),T=g*(o.lengthY/c),d.springForceX+=m,d.springForceY+=T,s.springForceX-=m,s.springForceY-=T)},a.prototype.calcRepulsionForce=function(o,i){var d=o.getRect(),s=i.getRect(),c=[,,],g=[,,,,],m,T,L,R,S,Y,$;if(d.intersects(s)){e.calcSeparationAmount(d,s,c,n.DEFAULT_EDGE_LENGTH/2),Y=2*c[0],$=2*c[1];var Z=o.noOfChildren*i.noOfChildren/(o.noOfChildren+i.noOfChildren);o.repulsionForceX-=Z*Y,o.repulsionForceY-=Z*$,i.repulsionForceX+=Z*Y,i.repulsionForceY+=Z*$}else this.uniformLeafNodeSizes&&o.getChild()==null&&i.getChild()==null?(m=s.getCenterX()-d.getCenterX(),T=s.getCenterY()-d.getCenterY()):(e.getIntersection(d,s,g),m=g[2]-g[0],T=g[3]-g[1]),Math.abs(m)<n.MIN_REPULSION_DIST&&(m=h.sign(m)*n.MIN_REPULSION_DIST),Math.abs(T)<n.MIN_REPULSION_DIST&&(T=h.sign(T)*n.MIN_REPULSION_DIST),L=m*m+T*T,R=Math.sqrt(L),S=(o.nodeRepulsion/2+i.nodeRepulsion/2)*o.noOfChildren*i.noOfChildren/L,Y=S*m/R,$=S*T/R,o.repulsionForceX-=Y,o.repulsionForceY-=$,i.repulsionForceX+=Y,i.repulsionForceY+=$},a.prototype.calcGravitationalForce=function(o){var i=o.getOwner(),d=(i.getRight()+i.getLeft())/2,s=(i.getTop()+i.getBottom())/2,c=o.getCenterX()-d,g=o.getCenterY()-s,m=Math.abs(c)+o.getWidth()/2,T=Math.abs(g)+o.getHeight()/2,L;o.getOwner()==this.graphManager.getRoot()?(L=i.getEstimatedSize()*this.gravityRangeFactor,(m>L||T>L)&&(o.gravitationForceX=-this.gravityConstant*c,o.gravitationForceY=-this.gravityConstant*g)):(L=i.getEstimatedSize()*this.compoundGravityRangeFactor,(m>L||T>L)&&(o.gravitationForceX=-this.gravityConstant*c*this.compoundGravityConstant,o.gravitationForceY=-this.gravityConstant*g*this.compoundGravityConstant))},a.prototype.isConverged=function(){var o,i=!1;return this.totalIterations>this.maxIterations/3&&(i=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),o=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,o||i},a.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},a.prototype.calcNoOfChildrenForAllNodes=function(){for(var o,i=this.graphManager.getAllNodes(),d=0;d<i.length;d++)o=i[d],o.noOfChildren=o.getNoOfChildren()},a.prototype.calcGrid=function(o){var i=0,d=0;i=parseInt(Math.ceil((o.getRight()-o.getLeft())/this.repulsionRange)),d=parseInt(Math.ceil((o.getBottom()-o.getTop())/this.repulsionRange));for(var s=Array(i),c=0;c<i;c++)s[c]=Array(d);for(var c=0;c<i;c++)for(var g=0;g<d;g++)s[c][g]=[];return s},a.prototype.addNodeToGrid=function(o,i,d){var s=0,c=0,g=0,m=0;s=parseInt(Math.floor((o.getRect().x-i)/this.repulsionRange)),c=parseInt(Math.floor((o.getRect().width+o.getRect().x-i)/this.repulsionRange)),g=parseInt(Math.floor((o.getRect().y-d)/this.repulsionRange)),m=parseInt(Math.floor((o.getRect().height+o.getRect().y-d)/this.repulsionRange));for(var T=s;T<=c;T++)for(var L=g;L<=m;L++)this.grid[T][L].push(o),o.setGridCoordinates(s,c,g,m)},a.prototype.updateGrid=function(){var o,i,d=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),o=0;o<d.length;o++)i=d[o],this.addNodeToGrid(i,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},a.prototype.calculateRepulsionForceOfANode=function(o,i,d,s){if(this.totalIterations%n.GRID_CALCULATION_CHECK_PERIOD==1&&d||s){var c=new Set;o.surrounding=[];for(var g,m=this.grid,T=o.startX-1;T<o.finishX+2;T++)for(var L=o.startY-1;L<o.finishY+2;L++)if(!(T<0||L<0||T>=m.length||L>=m[0].length)){for(var R=0;R<m[T][L].length;R++)if(g=m[T][L][R],!(o.getOwner()!=g.getOwner()||o==g)&&!i.has(g)&&!c.has(g)){var S=Math.abs(o.getCenterX()-g.getCenterX())-(o.getWidth()/2+g.getWidth()/2),Y=Math.abs(o.getCenterY()-g.getCenterY())-(o.getHeight()/2+g.getHeight()/2);S<=this.repulsionRange&&Y<=this.repulsionRange&&c.add(g)}}o.surrounding=[].concat(f(c))}for(T=0;T<o.surrounding.length;T++)this.calcRepulsionForce(o,o.surrounding[T])},a.prototype.calcRepulsionRange=function(){return 0},C.exports=a}),(function(C,M,N){var f=N(1),r=N(4);function n(e,h,a){f.call(this,e,h,a),this.idealLength=r.DEFAULT_EDGE_LENGTH,this.edgeElasticity=r.DEFAULT_SPRING_STRENGTH}for(var t in n.prototype=Object.create(f.prototype),f)n[t]=f[t];C.exports=n}),(function(C,M,N){var f=N(3),r=N(4);function n(e,h,a,p){f.call(this,e,h,a,p),this.nodeRepulsion=r.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=[]}for(var t in n.prototype=Object.create(f.prototype),f)n[t]=f[t];n.prototype.setGridCoordinates=function(e,h,a,p){this.startX=e,this.finishX=h,this.startY=a,this.finishY=p},C.exports=n}),(function(C,M,N){function f(r,n){this.width=0,this.height=0,r!==null&&n!==null&&(this.height=n,this.width=r)}f.prototype.getWidth=function(){return this.width},f.prototype.setWidth=function(r){this.width=r},f.prototype.getHeight=function(){return this.height},f.prototype.setHeight=function(r){this.height=r},C.exports=f}),(function(C,M,N){var f=N(14);function r(){this.map={},this.keys=[]}r.prototype.put=function(n,t){var e=f.createID(n);this.contains(e)||(this.map[e]=t,this.keys.push(n))},r.prototype.contains=function(n){return f.createID(n),this.map[n]!=null},r.prototype.get=function(n){var t=f.createID(n);return this.map[t]},r.prototype.keySet=function(){return this.keys},C.exports=r}),(function(C,M,N){var f=N(14);function r(){this.set={}}r.prototype.add=function(n){var t=f.createID(n);this.contains(t)||(this.set[t]=n)},r.prototype.remove=function(n){delete this.set[f.createID(n)]},r.prototype.clear=function(){this.set={}},r.prototype.contains=function(n){return this.set[f.createID(n)]==n},r.prototype.isEmpty=function(){return this.size()===0},r.prototype.size=function(){return Object.keys(this.set).length},r.prototype.addAllTo=function(n){for(var t=Object.keys(this.set),e=t.length,h=0;h<e;h++)n.push(this.set[t[h]])},r.prototype.size=function(){return Object.keys(this.set).length},r.prototype.addAll=function(n){for(var t=n.length,e=0;e<t;e++){var h=n[e];this.add(h)}},C.exports=r}),(function(C,M,N){function f(){}f.multMat=function(r,n){for(var t=[],e=0;e<r.length;e++){t[e]=[];for(var h=0;h<n[0].length;h++){t[e][h]=0;for(var a=0;a<r[0].length;a++)t[e][h]+=r[e][a]*n[a][h]}}return t},f.transpose=function(r){for(var n=[],t=0;t<r[0].length;t++){n[t]=[];for(var e=0;e<r.length;e++)n[t][e]=r[e][t]}return n},f.multCons=function(r,n){for(var t=[],e=0;e<r.length;e++)t[e]=r[e]*n;return t},f.minusOp=function(r,n){for(var t=[],e=0;e<r.length;e++)t[e]=r[e]-n[e];return t},f.dotProduct=function(r,n){for(var t=0,e=0;e<r.length;e++)t+=r[e]*n[e];return t},f.mag=function(r){return Math.sqrt(this.dotProduct(r,r))},f.normalize=function(r){for(var n=[],t=this.mag(r),e=0;e<r.length;e++)n[e]=r[e]/t;return n},f.multGamma=function(r){for(var n=[],t=0,e=0;e<r.length;e++)t+=r[e];t*=-1/r.length;for(var h=0;h<r.length;h++)n[h]=t+r[h];return n},f.multL=function(r,n,t){for(var e=[],h=[],a=[],p=0;p<n[0].length;p++){for(var o=0,i=0;i<n.length;i++)o+=-.5*n[i][p]*r[i];h[p]=o}for(var d=0;d<t.length;d++){for(var s=0,c=0;c<t.length;c++)s+=t[d][c]*h[c];a[d]=s}for(var g=0;g<n.length;g++){for(var m=0,T=0;T<n[0].length;T++)m+=n[g][T]*a[T];e[g]=m}return e},C.exports=f}),(function(C,M,N){var f=(function(){function t(e,h){for(var a=0;a<h.length;a++){var p=h[a];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(e,p.key,p)}}return function(e,h,a){return h&&t(e.prototype,h),a&&t(e,a),e}})();function r(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}var n=N(11);C.exports=(function(){function t(e,h){r(this,t),(h!==null||h!==void 0)&&(this.compareFunction=this._defaultCompareFunction);var a=void 0;a=e instanceof n?e.size():e.length,this._quicksort(e,0,a-1)}return f(t,[{key:"_quicksort",value:function(e,h,a){if(h<a){var p=this._partition(e,h,a);this._quicksort(e,h,p),this._quicksort(e,p+1,a)}}},{key:"_partition",value:function(e,h,a){for(var p=this._get(e,h),o=h,i=a;;){for(;this.compareFunction(p,this._get(e,i));)i--;for(;this.compareFunction(this._get(e,o),p);)o++;if(o<i)this._swap(e,o,i),o++,i--;else return i}}},{key:"_get",value:function(e,h){return e instanceof n?e.get_object_at(h):e[h]}},{key:"_set",value:function(e,h,a){e instanceof n?e.set_object_at(h,a):e[h]=a}},{key:"_swap",value:function(e,h,a){var p=this._get(e,h);this._set(e,h,this._get(e,a)),this._set(e,a,p)}},{key:"_defaultCompareFunction",value:function(e,h){return h>e}}]),t})()}),(function(C,M,N){function f(){}f.svd=function(r){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=r.length,this.n=r[0].length;var n=Math.min(this.m,this.n);this.s=(function(Tt){for(var Nt=[];Tt-- >0;)Nt.push(0);return Nt})(Math.min(this.m+1,this.n)),this.U=(function(Tt){return(function Nt(Mt){if(Mt.length==0)return 0;for(var Pt=[],Xt=0;Xt<Mt[0];Xt++)Pt.push(Nt(Mt.slice(1)));return Pt})(Tt)})([this.m,n]),this.V=(function(Tt){return(function Nt(Mt){if(Mt.length==0)return 0;for(var Pt=[],Xt=0;Xt<Mt[0];Xt++)Pt.push(Nt(Mt.slice(1)));return Pt})(Tt)})([this.n,this.n]);for(var t=(function(Tt){for(var Nt=[];Tt-- >0;)Nt.push(0);return Nt})(this.n),e=(function(Tt){for(var Nt=[];Tt-- >0;)Nt.push(0);return Nt})(this.m),h=!0,a=!0,p=Math.min(this.m-1,this.n),o=Math.max(0,Math.min(this.n-2,this.m)),i=0;i<Math.max(p,o);i++){if(i<p){this.s[i]=0;for(var d=i;d<this.m;d++)this.s[i]=f.hypot(this.s[i],r[d][i]);if(this.s[i]!==0){r[i][i]<0&&(this.s[i]=-this.s[i]);for(var s=i;s<this.m;s++)r[s][i]/=this.s[i];r[i][i]+=1}this.s[i]=-this.s[i]}for(var c=i+1;c<this.n;c++){if((function(Tt,Nt){return Tt&&Nt})(i<p,this.s[i]!==0)){for(var g=0,m=i;m<this.m;m++)g+=r[m][i]*r[m][c];g=-g/r[i][i];for(var T=i;T<this.m;T++)r[T][c]+=g*r[T][i]}t[c]=r[i][c]}if((function(Tt,Nt){return Tt&&Nt})(h,i<p))for(var L=i;L<this.m;L++)this.U[L][i]=r[L][i];if(i<o){t[i]=0;for(var R=i+1;R<this.n;R++)t[i]=f.hypot(t[i],t[R]);if(t[i]!==0){t[i+1]<0&&(t[i]=-t[i]);for(var S=i+1;S<this.n;S++)t[S]/=t[i];t[i+1]+=1}if(t[i]=-t[i],(function(Tt,Nt){return Tt&&Nt})(i+1<this.m,t[i]!==0)){for(var Y=i+1;Y<this.m;Y++)e[Y]=0;for(var $=i+1;$<this.n;$++)for(var Z=i+1;Z<this.m;Z++)e[Z]+=t[$]*r[Z][$];for(var D=i+1;D<this.n;D++)for(var J=-t[D]/t[i+1],l=i+1;l<this.m;l++)r[l][D]+=J*e[l]}if(a)for(var E=i+1;E<this.n;E++)this.V[E][i]=t[E]}}var u=Math.min(this.n,this.m+1);if(p<this.n&&(this.s[p]=r[p][p]),this.m<u&&(this.s[u-1]=0),o+1<u&&(t[o]=r[o][u-1]),t[u-1]=0,h){for(var y=p;y<n;y++){for(var v=0;v<this.m;v++)this.U[v][y]=0;this.U[y][y]=1}for(var A=p-1;A>=0;A--)if(this.s[A]!==0){for(var w=A+1;w<n;w++){for(var b=0,G=A;G<this.m;G++)b+=this.U[G][A]*this.U[G][w];b=-b/this.U[A][A];for(var F=A;F<this.m;F++)this.U[F][w]+=b*this.U[F][A]}for(var k=A;k<this.m;k++)this.U[k][A]=-this.U[k][A];this.U[A][A]=1+this.U[A][A];for(var V=0;V<A-1;V++)this.U[V][A]=0}else{for(var K=0;K<this.m;K++)this.U[K][A]=0;this.U[A][A]=1}}if(a)for(var H=this.n-1;H>=0;H--){if((function(Tt,Nt){return Tt&&Nt})(H<o,t[H]!==0))for(var X=H+1;X<n;X++){for(var O=0,z=H+1;z<this.n;z++)O+=this.V[z][H]*this.V[z][X];O=-O/this.V[H+1][H];for(var et=H+1;et<this.n;et++)this.V[et][X]+=O*this.V[et][H]}for(var U=0;U<this.n;U++)this.V[U][H]=0;this.V[H][H]=1}for(var B=u-1,lt=0,at=2**-52,Lt=2**-966;u>0;){var W=void 0,pt=void 0;for(W=u-2;W>=-1&&W!==-1;W--)if(Math.abs(t[W])<=Lt+at*(Math.abs(this.s[W])+Math.abs(this.s[W+1]))){t[W]=0;break}if(W===u-2)pt=4;else{var vt=void 0;for(vt=u-1;vt>=W&&vt!==W;vt--){var Bt=(vt===u?0:Math.abs(t[vt]))+(vt===W+1?0:Math.abs(t[vt-1]));if(Math.abs(this.s[vt])<=Lt+at*Bt){this.s[vt]=0;break}}vt===W?pt=3:vt===u-1?pt=1:(pt=2,W=vt)}switch(W++,pt){case 1:var Yt=t[u-2];t[u-2]=0;for(var _t=u-2;_t>=W;_t--){var xt=f.hypot(this.s[_t],Yt),kt=this.s[_t]/xt,Ut=Yt/xt;if(this.s[_t]=xt,_t!==W&&(Yt=-Ut*t[_t-1],t[_t-1]=kt*t[_t-1]),a)for(var Rt=0;Rt<this.n;Rt++)xt=kt*this.V[Rt][_t]+Ut*this.V[Rt][u-1],this.V[Rt][u-1]=-Ut*this.V[Rt][_t]+kt*this.V[Rt][u-1],this.V[Rt][_t]=xt}break;case 2:var Vt=t[W-1];t[W-1]=0;for(var Gt=W;Gt<u;Gt++){var st=f.hypot(this.s[Gt],Vt),ot=this.s[Gt]/st,ct=Vt/st;if(this.s[Gt]=st,Vt=-ct*t[Gt],t[Gt]=ot*t[Gt],h)for(var I=0;I<this.m;I++)st=ot*this.U[I][Gt]+ct*this.U[I][W-1],this.U[I][W-1]=-ct*this.U[I][Gt]+ot*this.U[I][W-1],this.U[I][Gt]=st}break;case 3:var P=Math.max(Math.max(Math.max(Math.max(Math.abs(this.s[u-1]),Math.abs(this.s[u-2])),Math.abs(t[u-2])),Math.abs(this.s[W])),Math.abs(t[W])),q=this.s[u-1]/P,j=this.s[u-2]/P,tt=t[u-2]/P,Et=this.s[W]/P,yt=t[W]/P,it=((j+q)*(j-q)+tt*tt)/2,ft=q*tt*(q*tt),It=0;(function(Tt,Nt){return Tt||Nt})(it!==0,ft!==0)&&(It=Math.sqrt(it*it+ft),it<0&&(It=-It),It=ft/(it+It));for(var wt=(Et+q)*(Et-q)+It,mt=Et*yt,ht=W;ht<u-1;ht++){var dt=f.hypot(wt,mt),Q=wt/dt,ut=mt/dt;if(ht!==W&&(t[ht-1]=dt),wt=Q*this.s[ht]+ut*t[ht],t[ht]=Q*t[ht]-ut*this.s[ht],mt=ut*this.s[ht+1],this.s[ht+1]=Q*this.s[ht+1],a)for(var At=0;At<this.n;At++)dt=Q*this.V[At][ht]+ut*this.V[At][ht+1],this.V[At][ht+1]=-ut*this.V[At][ht]+Q*this.V[At][ht+1],this.V[At][ht]=dt;if(dt=f.hypot(wt,mt),Q=wt/dt,ut=mt/dt,this.s[ht]=dt,wt=Q*t[ht]+ut*this.s[ht+1],this.s[ht+1]=-ut*t[ht]+Q*this.s[ht+1],mt=ut*t[ht+1],t[ht+1]=Q*t[ht+1],h&&ht<this.m-1)for(var rt=0;rt<this.m;rt++)dt=Q*this.U[rt][ht]+ut*this.U[rt][ht+1],this.U[rt][ht+1]=-ut*this.U[rt][ht]+Q*this.U[rt][ht+1],this.U[rt][ht]=dt}t[u-2]=wt,lt+=1;break;case 4:if(this.s[W]<=0&&(this.s[W]=this.s[W]<0?-this.s[W]:0,a))for(var bt=0;bt<=B;bt++)this.V[bt][W]=-this.V[bt][W];for(;W<B&&!(this.s[W]>=this.s[W+1]);){var Ot=this.s[W];if(this.s[W]=this.s[W+1],this.s[W+1]=Ot,a&&W<this.n-1)for(var Dt=0;Dt<this.n;Dt++)Ot=this.V[Dt][W+1],this.V[Dt][W+1]=this.V[Dt][W],this.V[Dt][W]=Ot;if(h&&W<this.m-1)for(var Ft=0;Ft<this.m;Ft++)Ot=this.U[Ft][W+1],this.U[Ft][W+1]=this.U[Ft][W],this.U[Ft][W]=Ot;W++}lt=0,u--;break}}return{U:this.U,V:this.V,S:this.s}},f.hypot=function(r,n){var t=void 0;return Math.abs(r)>Math.abs(n)?(t=n/r,t=Math.abs(r)*Math.sqrt(1+t*t)):n==0?t=0:(t=r/n,t=Math.abs(n)*Math.sqrt(1+t*t)),t},C.exports=f}),(function(C,M,N){var f=(function(){function n(t,e){for(var h=0;h<e.length;h++){var a=e[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,e,h){return e&&n(t.prototype,e),h&&n(t,h),t}})();function r(n,t){if(!(n instanceof t))throw TypeError("Cannot call a class as a function")}C.exports=(function(){function n(t,e){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;r(this,n),this.sequence1=t,this.sequence2=e,this.match_score=h,this.mismatch_penalty=a,this.gap_penalty=p,this.iMax=t.length+1,this.jMax=e.length+1,this.grid=Array(this.iMax);for(var o=0;o<this.iMax;o++){this.grid[o]=Array(this.jMax);for(var i=0;i<this.jMax;i++)this.grid[o][i]=0}this.tracebackGrid=Array(this.iMax);for(var d=0;d<this.iMax;d++){this.tracebackGrid[d]=Array(this.jMax);for(var s=0;s<this.jMax;s++)this.tracebackGrid[d][s]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return f(n,[{key:"getScore",value:function(){return this.score}},{key:"getAlignments",value:function(){return this.alignments}},{key:"computeGrids",value:function(){for(var t=1;t<this.jMax;t++)this.grid[0][t]=this.grid[0][t-1]+this.gap_penalty,this.tracebackGrid[0][t]=[!1,!1,!0];for(var e=1;e<this.iMax;e++)this.grid[e][0]=this.grid[e-1][0]+this.gap_penalty,this.tracebackGrid[e][0]=[!1,!0,!1];for(var h=1;h<this.iMax;h++)for(var a=1;a<this.jMax;a++){var p=void 0;p=this.sequence1[h-1]===this.sequence2[a-1]?this.grid[h-1][a-1]+this.match_score:this.grid[h-1][a-1]+this.mismatch_penalty;var o=this.grid[h-1][a]+this.gap_penalty,i=this.grid[h][a-1]+this.gap_penalty,d=[p,o,i],s=this.arrayAllMaxIndexes(d);this.grid[h][a]=d[s[0]],this.tracebackGrid[h][a]=[s.includes(0),s.includes(1),s.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:"alignmentTraceback",value:function(){var t=[];for(t.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});t[0];){var e=t[0],h=this.tracebackGrid[e.pos[0]][e.pos[1]];h[0]&&t.push({pos:[e.pos[0]-1,e.pos[1]-1],seq1:this.sequence1[e.pos[0]-1]+e.seq1,seq2:this.sequence2[e.pos[1]-1]+e.seq2}),h[1]&&t.push({pos:[e.pos[0]-1,e.pos[1]],seq1:this.sequence1[e.pos[0]-1]+e.seq1,seq2:"-"+e.seq2}),h[2]&&t.push({pos:[e.pos[0],e.pos[1]-1],seq1:"-"+e.seq1,seq2:this.sequence2[e.pos[1]-1]+e.seq2}),e.pos[0]===0&&e.pos[1]===0&&this.alignments.push({sequence1:e.seq1,sequence2:e.seq2}),t.shift()}return this.alignments}},{key:"getAllIndexes",value:function(t,e){for(var h=[],a=-1;(a=t.indexOf(e,a+1))!==-1;)h.push(a);return h}},{key:"arrayAllMaxIndexes",value:function(t){return this.getAllIndexes(t,Math.max.apply(null,t))}}]),n})()}),(function(C,M,N){var f=function(){};f.FDLayout=N(18),f.FDLayoutConstants=N(4),f.FDLayoutEdge=N(19),f.FDLayoutNode=N(20),f.DimensionD=N(21),f.HashMap=N(22),f.HashSet=N(23),f.IGeometry=N(8),f.IMath=N(9),f.Integer=N(10),f.Point=N(12),f.PointD=N(5),f.RandomSeed=N(16),f.RectangleD=N(13),f.Transform=N(17),f.UniqueIDGeneretor=N(14),f.Quicksort=N(25),f.LinkedList=N(11),f.LGraphObject=N(2),f.LGraph=N(6),f.LEdge=N(1),f.LGraphManager=N(7),f.LNode=N(3),f.Layout=N(15),f.LayoutConstants=N(0),f.NeedlemanWunsch=N(27),f.Matrix=N(24),f.SVD=N(26),C.exports=f}),(function(C,M,N){function f(){this.listeners=[]}var r=f.prototype;r.addListener=function(n,t){this.listeners.push({event:n,callback:t})},r.removeListener=function(n,t){for(var e=this.listeners.length;e>=0;e--){var h=this.listeners[e];h.event===n&&h.callback===t&&this.listeners.splice(e,1)}},r.emit=function(n,t){for(var e=0;e<this.listeners.length;e++){var h=this.listeners[e];n===h.event&&h.callback(t)}},C.exports=f})])})})),we=de(((_,x)=>{(function(C,M){typeof _=="object"&&typeof x=="object"?x.exports=M(Le()):typeof define=="function"&&define.amd?define(["layout-base"],M):typeof _=="object"?_.coseBase=M(Le()):C.coseBase=M(C.layoutBase)})(_,function(C){return(()=>{var M={45:((r,n,t)=>{var e={};e.layoutBase=t(551),e.CoSEConstants=t(806),e.CoSEEdge=t(767),e.CoSEGraph=t(880),e.CoSEGraphManager=t(578),e.CoSELayout=t(765),e.CoSENode=t(991),e.ConstraintHandler=t(902),r.exports=e}),806:((r,n,t)=>{var e=t(551).FDLayoutConstants;function h(){}for(var a in e)h[a]=e[a];h.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,h.DEFAULT_RADIAL_SEPARATION=e.DEFAULT_EDGE_LENGTH,h.DEFAULT_COMPONENT_SEPERATION=60,h.TILE=!0,h.TILING_PADDING_VERTICAL=10,h.TILING_PADDING_HORIZONTAL=10,h.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,h.ENFORCE_CONSTRAINTS=!0,h.APPLY_LAYOUT=!0,h.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,h.TREE_REDUCTION_ON_INCREMENTAL=!0,h.PURE_INCREMENTAL=h.DEFAULT_INCREMENTAL,r.exports=h}),767:((r,n,t)=>{var e=t(551).FDLayoutEdge;function h(p,o,i){e.call(this,p,o,i)}for(var a in h.prototype=Object.create(e.prototype),e)h[a]=e[a];r.exports=h}),880:((r,n,t)=>{var e=t(551).LGraph;function h(p,o,i){e.call(this,p,o,i)}for(var a in h.prototype=Object.create(e.prototype),e)h[a]=e[a];r.exports=h}),578:((r,n,t)=>{var e=t(551).LGraphManager;function h(p){e.call(this,p)}for(var a in h.prototype=Object.create(e.prototype),e)h[a]=e[a];r.exports=h}),765:((r,n,t)=>{var e=t(551).FDLayout,h=t(578),a=t(880),p=t(991),o=t(767),i=t(806),d=t(902),s=t(551).FDLayoutConstants,c=t(551).LayoutConstants,g=t(551).Point,m=t(551).PointD,T=t(551).DimensionD,L=t(551).Layout,R=t(551).Integer,S=t(551).IGeometry,Y=t(551).LGraph,$=t(551).Transform,Z=t(551).LinkedList;function D(){e.call(this),this.toBeTiled={},this.constraints={}}for(var J in D.prototype=Object.create(e.prototype),e)D[J]=e[J];D.prototype.newGraphManager=function(){var l=new h(this);return this.graphManager=l,l},D.prototype.newGraph=function(l){return new a(null,this.graphManager,l)},D.prototype.newNode=function(l){return new p(this.graphManager,l)},D.prototype.newEdge=function(l){return new o(null,null,l)},D.prototype.initParameters=function(){e.prototype.initParameters.call(this,arguments),this.isSubLayout||(i.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=i.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=i.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=s.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=s.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=s.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=s.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},D.prototype.initSpringEmbedder=function(){e.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/s.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},D.prototype.layout=function(){return c.DEFAULT_CREATE_BENDS_AS_NEEDED&&(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(i.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var l=new Set(this.getAllNodes()),E=this.nodesWithGravity.filter(function(y){return l.has(y)});this.graphManager.setAllNodesToApplyGravitation(E)}}else{var u=this.getFlatForest();if(u.length>0)this.positionNodesRadially(u);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var l=new Set(this.getAllNodes()),E=this.nodesWithGravity.filter(function(A){return l.has(A)});this.graphManager.setAllNodesToApplyGravitation(E),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(d.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),i.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%s.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-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 l=new Set(this.getAllNodes()),E=this.nodesWithGravity.filter(function(v){return l.has(v)});this.graphManager.setAllNodesToApplyGravitation(E),this.graphManager.updateBounds(),this.updateGrid(),i.PURE_INCREMENTAL?this.coolingFactor=s.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=s.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()),i.PURE_INCREMENTAL?this.coolingFactor=s.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=s.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var u=!this.isTreeGrowing&&!this.isGrowthFinished,y=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(u,y),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},D.prototype.getPositionsData=function(){for(var l=this.graphManager.getAllNodes(),E={},u=0;u<l.length;u++){var y=l[u].rect,v=l[u].id;E[v]={id:v,x:y.getCenterX(),y:y.getCenterY(),w:y.width,h:y.height}}return E},D.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var l=!1;if(s.ANIMATE==="during")this.emit("layoutstarted");else{for(;!l;)l=this.tick();this.graphManager.updateBounds()}},D.prototype.moveNodes=function(){for(var l=this.getAllNodes(),E,u=0;u<l.length;u++)E=l[u],E.calculateDisplacement();Object.keys(this.constraints).length>0&&this.updateDisplacements();for(var u=0;u<l.length;u++)E=l[u],E.move()},D.prototype.initConstraintVariables=function(){var l=this;this.idToNodeMap=new Map,this.fixedNodeSet=new Set;for(var E=this.graphManager.getAllNodes(),u=0;u<E.length;u++){var y=E[u];this.idToNodeMap.set(y.id,y)}var v=function O(z){for(var et=z.getChild().getNodes(),U,B=0,lt=0;lt<et.length;lt++)U=et[lt],U.getChild()==null?l.fixedNodeSet.has(U.id)&&(B+=100):B+=O(U);return B};if(this.constraints.fixedNodeConstraint){this.constraints.fixedNodeConstraint.forEach(function(O){l.fixedNodeSet.add(O.nodeId)});for(var E=this.graphManager.getAllNodes(),y,u=0;u<E.length;u++)if(y=E[u],y.getChild()!=null){var A=v(y);A>0&&(y.fixedNodeWeight=A)}}if(this.constraints.relativePlacementConstraint){var w=new Map,b=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(O){l.fixedNodesOnHorizontal.add(O),l.fixedNodesOnVertical.add(O)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var G=this.constraints.alignmentConstraint.vertical,u=0;u<G.length;u++)this.dummyToNodeForVerticalAlignment.set("dummy"+u,[]),G[u].forEach(function(z){w.set(z,"dummy"+u),l.dummyToNodeForVerticalAlignment.get("dummy"+u).push(z),l.fixedNodeSet.has(z)&&l.fixedNodesOnHorizontal.add("dummy"+u)});if(this.constraints.alignmentConstraint.horizontal)for(var F=this.constraints.alignmentConstraint.horizontal,u=0;u<F.length;u++)this.dummyToNodeForHorizontalAlignment.set("dummy"+u,[]),F[u].forEach(function(z){b.set(z,"dummy"+u),l.dummyToNodeForHorizontalAlignment.get("dummy"+u).push(z),l.fixedNodeSet.has(z)&&l.fixedNodesOnVertical.add("dummy"+u)})}if(i.RELAX_MOVEMENT_ON_CONSTRAINTS)this.shuffle=function(O){var z,et,U;for(U=O.length-1;U>=2*O.length/3;U--)z=Math.floor(Math.random()*(U+1)),et=O[U],O[U]=O[z],O[z]=et;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 z=w.has(O.left)?w.get(O.left):O.left,et=w.has(O.right)?w.get(O.right):O.right;l.nodesInRelativeHorizontal.includes(z)||(l.nodesInRelativeHorizontal.push(z),l.nodeToRelativeConstraintMapHorizontal.set(z,[]),l.dummyToNodeForVerticalAlignment.has(z)?l.nodeToTempPositionMapHorizontal.set(z,l.idToNodeMap.get(l.dummyToNodeForVerticalAlignment.get(z)[0]).getCenterX()):l.nodeToTempPositionMapHorizontal.set(z,l.idToNodeMap.get(z).getCenterX())),l.nodesInRelativeHorizontal.includes(et)||(l.nodesInRelativeHorizontal.push(et),l.nodeToRelativeConstraintMapHorizontal.set(et,[]),l.dummyToNodeForVerticalAlignment.has(et)?l.nodeToTempPositionMapHorizontal.set(et,l.idToNodeMap.get(l.dummyToNodeForVerticalAlignment.get(et)[0]).getCenterX()):l.nodeToTempPositionMapHorizontal.set(et,l.idToNodeMap.get(et).getCenterX())),l.nodeToRelativeConstraintMapHorizontal.get(z).push({right:et,gap:O.gap}),l.nodeToRelativeConstraintMapHorizontal.get(et).push({left:z,gap:O.gap})}else{var U=b.has(O.top)?b.get(O.top):O.top,B=b.has(O.bottom)?b.get(O.bottom):O.bottom;l.nodesInRelativeVertical.includes(U)||(l.nodesInRelativeVertical.push(U),l.nodeToRelativeConstraintMapVertical.set(U,[]),l.dummyToNodeForHorizontalAlignment.has(U)?l.nodeToTempPositionMapVertical.set(U,l.idToNodeMap.get(l.dummyToNodeForHorizontalAlignment.get(U)[0]).getCenterY()):l.nodeToTempPositionMapVertical.set(U,l.idToNodeMap.get(U).getCenterY())),l.nodesInRelativeVertical.includes(B)||(l.nodesInRelativeVertical.push(B),l.nodeToRelativeConstraintMapVertical.set(B,[]),l.dummyToNodeForHorizontalAlignment.has(B)?l.nodeToTempPositionMapVertical.set(B,l.idToNodeMap.get(l.dummyToNodeForHorizontalAlignment.get(B)[0]).getCenterY()):l.nodeToTempPositionMapVertical.set(B,l.idToNodeMap.get(B).getCenterY())),l.nodeToRelativeConstraintMapVertical.get(U).push({bottom:B,gap:O.gap}),l.nodeToRelativeConstraintMapVertical.get(B).push({top:U,gap:O.gap})}});else{var k=new Map,V=new Map;this.constraints.relativePlacementConstraint.forEach(function(O){if(O.left){var z=w.has(O.left)?w.get(O.left):O.left,et=w.has(O.right)?w.get(O.right):O.right;k.has(z)?k.get(z).push(et):k.set(z,[et]),k.has(et)?k.get(et).push(z):k.set(et,[z])}else{var U=b.has(O.top)?b.get(O.top):O.top,B=b.has(O.bottom)?b.get(O.bottom):O.bottom;V.has(U)?V.get(U).push(B):V.set(U,[B]),V.has(B)?V.get(B).push(U):V.set(B,[U])}});var K=function(O,z){var et=[],U=[],B=new Z,lt=new Set,at=0;return O.forEach(function(Lt,W){if(!lt.has(W)){et[at]=[],U[at]=!1;var pt=W;for(B.push(pt),lt.add(pt),et[at].push(pt);B.length!=0;)pt=B.shift(),z.has(pt)&&(U[at]=!0),O.get(pt).forEach(function(vt){lt.has(vt)||(B.push(vt),lt.add(vt),et[at].push(vt))});at++}}),{components:et,isFixed:U}},H=K(k,l.fixedNodesOnHorizontal);this.componentsOnHorizontal=H.components,this.fixedComponentsOnHorizontal=H.isFixed;var X=K(V,l.fixedNodesOnVertical);this.componentsOnVertical=X.components,this.fixedComponentsOnVertical=X.isFixed}}},D.prototype.updateDisplacements=function(){var l=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(X){var O=l.idToNodeMap.get(X.nodeId);O.displacementX=0,O.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var E=this.constraints.alignmentConstraint.vertical,u=0;u<E.length;u++){for(var y=0,v=0;v<E[u].length;v++){if(this.fixedNodeSet.has(E[u][v])){y=0;break}y+=this.idToNodeMap.get(E[u][v]).displacementX}for(var A=y/E[u].length,v=0;v<E[u].length;v++)this.idToNodeMap.get(E[u][v]).displacementX=A}if(this.constraints.alignmentConstraint.horizontal)for(var w=this.constraints.alignmentConstraint.horizontal,u=0;u<w.length;u++){for(var b=0,v=0;v<w[u].length;v++){if(this.fixedNodeSet.has(w[u][v])){b=0;break}b+=this.idToNodeMap.get(w[u][v]).displacementY}for(var G=b/w[u].length,v=0;v<w[u].length;v++)this.idToNodeMap.get(w[u][v]).displacementY=G}}if(this.constraints.relativePlacementConstraint)if(i.RELAX_MOVEMENT_ON_CONSTRAINTS)this.totalIterations%10==0&&(this.shuffle(this.nodesInRelativeHorizontal),this.shuffle(this.nodesInRelativeVertical)),this.nodesInRelativeHorizontal.forEach(function(X){if(!l.fixedNodesOnHorizontal.has(X)){var O=0;O=l.dummyToNodeForVerticalAlignment.has(X)?l.idToNodeMap.get(l.dummyToNodeForVerticalAlignment.get(X)[0]).displacementX:l.idToNodeMap.get(X).displacementX,l.nodeToRelativeConstraintMapHorizontal.get(X).forEach(function(z){if(z.right){var et=l.nodeToTempPositionMapHorizontal.get(z.right)-l.nodeToTempPositionMapHorizontal.get(X)-O;et<z.gap&&(O-=z.gap-et)}else{var et=l.nodeToTempPositionMapHorizontal.get(X)-l.nodeToTempPositionMapHorizontal.get(z.left)+O;et<z.gap&&(O+=z.gap-et)}}),l.nodeToTempPositionMapHorizontal.set(X,l.nodeToTempPositionMapHorizontal.get(X)+O),l.dummyToNodeForVerticalAlignment.has(X)?l.dummyToNodeForVerticalAlignment.get(X).forEach(function(z){l.idToNodeMap.get(z).displacementX=O}):l.idToNodeMap.get(X).displacementX=O}}),this.nodesInRelativeVertical.forEach(function(X){if(!l.fixedNodesOnHorizontal.has(X)){var O=0;O=l.dummyToNodeForHorizontalAlignment.has(X)?l.idToNodeMap.get(l.dummyToNodeForHorizontalAlignment.get(X)[0]).displacementY:l.idToNodeMap.get(X).displacementY,l.nodeToRelativeConstraintMapVertical.get(X).forEach(function(z){if(z.bottom){var et=l.nodeToTempPositionMapVertical.get(z.bottom)-l.nodeToTempPositionMapVertical.get(X)-O;et<z.gap&&(O-=z.gap-et)}else{var et=l.nodeToTempPositionMapVertical.get(X)-l.nodeToTempPositionMapVertical.get(z.top)+O;et<z.gap&&(O+=z.gap-et)}}),l.nodeToTempPositionMapVertical.set(X,l.nodeToTempPositionMapVertical.get(X)+O),l.dummyToNodeForHorizontalAlignment.has(X)?l.dummyToNodeForHorizontalAlignment.get(X).forEach(function(z){l.idToNodeMap.get(z).displacementY=O}):l.idToNodeMap.get(X).displacementY=O}});else{for(var u=0;u<this.componentsOnHorizontal.length;u++){var F=this.componentsOnHorizontal[u];if(this.fixedComponentsOnHorizontal[u])for(var v=0;v<F.length;v++)this.dummyToNodeForVerticalAlignment.has(F[v])?this.dummyToNodeForVerticalAlignment.get(F[v]).forEach(function(z){l.idToNodeMap.get(z).displacementX=0}):this.idToNodeMap.get(F[v]).displacementX=0;else{for(var k=0,V=0,v=0;v<F.length;v++)if(this.dummyToNodeForVerticalAlignment.has(F[v])){var K=this.dummyToNodeForVerticalAlignment.get(F[v]);k+=K.length*this.idToNodeMap.get(K[0]).displacementX,V+=K.length}else k+=this.idToNodeMap.get(F[v]).displacementX,V++;for(var H=k/V,v=0;v<F.length;v++)this.dummyToNodeForVerticalAlignment.has(F[v])?this.dummyToNodeForVerticalAlignment.get(F[v]).forEach(function(z){l.idToNodeMap.get(z).displacementX=H}):this.idToNodeMap.get(F[v]).displacementX=H}}for(var u=0;u<this.componentsOnVertical.length;u++){var F=this.componentsOnVertical[u];if(this.fixedComponentsOnVertical[u])for(var v=0;v<F.length;v++)this.dummyToNodeForHorizontalAlignment.has(F[v])?this.dummyToNodeForHorizontalAlignment.get(F[v]).forEach(function(et){l.idToNodeMap.get(et).displacementY=0}):this.idToNodeMap.get(F[v]).displacementY=0;else{for(var k=0,V=0,v=0;v<F.length;v++)if(this.dummyToNodeForHorizontalAlignment.has(F[v])){var K=this.dummyToNodeForHorizontalAlignment.get(F[v]);k+=K.length*this.idToNodeMap.get(K[0]).displacementY,V+=K.length}else k+=this.idToNodeMap.get(F[v]).displacementY,V++;for(var H=k/V,v=0;v<F.length;v++)this.dummyToNodeForHorizontalAlignment.has(F[v])?this.dummyToNodeForHorizontalAlignment.get(F[v]).forEach(function(U){l.idToNodeMap.get(U).displacementY=H}):this.idToNodeMap.get(F[v]).displacementY=H}}}},D.prototype.calculateNodesToApplyGravitationTo=function(){var l=[],E,u=this.graphManager.getGraphs(),y=u.length,v;for(v=0;v<y;v++)E=u[v],E.updateConnected(),E.isConnected||(l=l.concat(E.getNodes()));return l},D.prototype.createBendpoints=function(){var l=[];l=l.concat(this.graphManager.getAllEdges());var E=new Set,u;for(u=0;u<l.length;u++){var y=l[u];if(!E.has(y)){var v=y.getSource(),A=y.getTarget();if(v==A)y.getBendpoints().push(new m),y.getBendpoints().push(new m),this.createDummyNodesForBendpoints(y),E.add(y);else{var w=[];if(w=w.concat(v.getEdgeListToNode(A)),w=w.concat(A.getEdgeListToNode(v)),!E.has(w[0])){if(w.length>1){var b;for(b=0;b<w.length;b++){var G=w[b];G.getBendpoints().push(new m),this.createDummyNodesForBendpoints(G)}}w.forEach(function(F){E.add(F)})}}}if(E.size==l.length)break}},D.prototype.positionNodesRadially=function(l){for(var E=new g(0,0),u=Math.ceil(Math.sqrt(l.length)),y=0,v=0,A=0,w=new m(0,0),b=0;b<l.length;b++){b%u==0&&(A=0,v=y,b!=0&&(v+=i.DEFAULT_COMPONENT_SEPERATION),y=0);var G=l[b],F=L.findCenterOfTree(G);E.x=A,E.y=v,w=D.radialLayout(G,F,E),w.y>y&&(y=Math.floor(w.y)),A=Math.floor(w.x+i.DEFAULT_COMPONENT_SEPERATION)}this.transform(new m(c.WORLD_CENTER_X-w.x/2,c.WORLD_CENTER_Y-w.y/2))},D.radialLayout=function(l,E,u){var y=Math.max(this.maxDiagonalInTree(l),i.DEFAULT_RADIAL_SEPARATION);D.branchRadialLayout(E,null,0,359,0,y);var v=Y.calculateBounds(l),A=new $;A.setDeviceOrgX(v.getMinX()),A.setDeviceOrgY(v.getMinY()),A.setWorldOrgX(u.x),A.setWorldOrgY(u.y);for(var w=0;w<l.length;w++)l[w].transform(A);var b=new m(v.getMaxX(),v.getMaxY());return A.inverseTransformPoint(b)},D.branchRadialLayout=function(l,E,u,y,v,A){var w=(y-u+1)/2;w<0&&(w+=180);var b=(w+u)%360*S.TWO_PI/360,G=v*Math.cos(b),F=v*Math.sin(b);l.setCenter(G,F);var k=[];k=k.concat(l.getEdges());var V=k.length;E!=null&&V--;for(var K=0,H=k.length,X,O=l.getEdgesBetween(E);O.length>1;){var z=O[0];O.splice(0,1);var et=k.indexOf(z);et>=0&&k.splice(et,1),H--,V--}X=E==null?0:(k.indexOf(O[0])+1)%H;for(var U=Math.abs(y-u)/V,B=X;K!=V;B=++B%H){var lt=k[B].getOtherEnd(l);if(lt!=E){var at=(u+K*U)%360,Lt=(at+U)%360;D.branchRadialLayout(lt,l,at,Lt,v+A,A),K++}}},D.maxDiagonalInTree=function(l){for(var E=R.MIN_VALUE,u=0;u<l.length;u++){var y=l[u].getDiagonal();y>E&&(E=y)}return E},D.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},D.prototype.groupZeroDegreeMembers=function(){var l=this,E={};this.memberGroups={},this.idToDummyNode={};for(var u=[],y=this.graphManager.getAllNodes(),v=0;v<y.length;v++){var A=y[v],w=A.getParent();this.getNodeDegreeWithChildren(A)===0&&(w.id==null||!this.getToBeTiled(w))&&u.push(A)}for(var v=0;v<u.length;v++){var A=u[v],b=A.getParent().id;E[b]===void 0&&(E[b]=[]),E[b]=E[b].concat(A)}Object.keys(E).forEach(function(G){if(E[G].length>1){var F="DummyCompound_"+G;l.memberGroups[F]=E[G];var k=E[G][0].getParent(),V=new p(l.graphManager);V.id=F,V.paddingLeft=k.paddingLeft||0,V.paddingRight=k.paddingRight||0,V.paddingBottom=k.paddingBottom||0,V.paddingTop=k.paddingTop||0,l.idToDummyNode[F]=V;var K=l.getGraphManager().add(l.newGraph(),V),H=k.getChild();H.add(V);for(var X=0;X<E[G].length;X++){var O=E[G][X];H.remove(O),K.add(O)}}})},D.prototype.clearCompounds=function(){var l={},E={};this.performDFSOnCompounds();for(var u=0;u<this.compoundOrder.length;u++)E[this.compoundOrder[u].id]=this.compoundOrder[u],l[this.compoundOrder[u].id]=[].concat(this.compoundOrder[u].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[u].getChild()),this.compoundOrder[u].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(l,E)},D.prototype.clearZeroDegreeMembers=function(){var l=this,E=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(u){var y=l.idToDummyNode[u];if(E[u]=l.tileNodes(l.memberGroups[u],y.paddingLeft+y.paddingRight),y.rect.width=E[u].width,y.rect.height=E[u].height,y.setCenter(E[u].centerX,E[u].centerY),y.labelMarginLeft=0,y.labelMarginTop=0,i.NODE_DIMENSIONS_INCLUDE_LABELS){var v=y.rect.width,A=y.rect.height;y.labelWidth&&(y.labelPosHorizontal=="left"?(y.rect.x-=y.labelWidth,y.setWidth(v+y.labelWidth),y.labelMarginLeft=y.labelWidth):y.labelPosHorizontal=="center"&&y.labelWidth>v?(y.rect.x-=(y.labelWidth-v)/2,y.setWidth(y.labelWidth),y.labelMarginLeft=(y.labelWidth-v)/2):y.labelPosHorizontal=="right"&&y.setWidth(v+y.labelWidth)),y.labelHeight&&(y.labelPosVertical=="top"?(y.rect.y-=y.labelHeight,y.setHeight(A+y.labelHeight),y.labelMarginTop=y.labelHeight):y.labelPosVertical=="center"&&y.labelHeight>A?(y.rect.y-=(y.labelHeight-A)/2,y.setHeight(y.labelHeight),y.labelMarginTop=(y.labelHeight-A)/2):y.labelPosVertical=="bottom"&&y.setHeight(A+y.labelHeight))}})},D.prototype.repopulateCompounds=function(){for(var l=this.compoundOrder.length-1;l>=0;l--){var E=this.compoundOrder[l],u=E.id,y=E.paddingLeft,v=E.paddingTop,A=E.labelMarginLeft,w=E.labelMarginTop;this.adjustLocations(this.tiledMemberPack[u],E.rect.x,E.rect.y,y,v,A,w)}},D.prototype.repopulateZeroDegreeMembers=function(){var l=this,E=this.tiledZeroDegreePack;Object.keys(E).forEach(function(u){var y=l.idToDummyNode[u],v=y.paddingLeft,A=y.paddingTop,w=y.labelMarginLeft,b=y.labelMarginTop;l.adjustLocations(E[u],y.rect.x,y.rect.y,v,A,w,b)})},D.prototype.getToBeTiled=function(l){var E=l.id;if(this.toBeTiled[E]!=null)return this.toBeTiled[E];var u=l.getChild();if(u==null)return this.toBeTiled[E]=!1,!1;for(var y=u.getNodes(),v=0;v<y.length;v++){var A=y[v];if(this.getNodeDegree(A)>0)return this.toBeTiled[E]=!1,!1;if(A.getChild()==null){this.toBeTiled[A.id]=!1;continue}if(!this.getToBeTiled(A))return this.toBeTiled[E]=!1,!1}return this.toBeTiled[E]=!0,!0},D.prototype.getNodeDegree=function(l){l.id;for(var E=l.getEdges(),u=0,y=0;y<E.length;y++){var v=E[y];v.getSource().id!==v.getTarget().id&&(u+=1)}return u},D.prototype.getNodeDegreeWithChildren=function(l){var E=this.getNodeDegree(l);if(l.getChild()==null)return E;for(var u=l.getChild().getNodes(),y=0;y<u.length;y++){var v=u[y];E+=this.getNodeDegreeWithChildren(v)}return E},D.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},D.prototype.fillCompexOrderByDFS=function(l){for(var E=0;E<l.length;E++){var u=l[E];u.getChild()!=null&&this.fillCompexOrderByDFS(u.getChild().getNodes()),this.getToBeTiled(u)&&this.compoundOrder.push(u)}},D.prototype.adjustLocations=function(l,E,u,y,v,A,w){E+=y+A,u+=v+w;for(var b=E,G=0;G<l.rows.length;G++){var F=l.rows[G];E=b;for(var k=0,V=0;V<F.length;V++){var K=F[V];K.rect.x=E,K.rect.y=u,E+=K.rect.width+l.horizontalPadding,K.rect.height>k&&(k=K.rect.height)}u+=k+l.verticalPadding}},D.prototype.tileCompoundMembers=function(l,E){var u=this;this.tiledMemberPack=[],Object.keys(l).forEach(function(y){var v=E[y];if(u.tiledMemberPack[y]=u.tileNodes(l[y],v.paddingLeft+v.paddingRight),v.rect.width=u.tiledMemberPack[y].width,v.rect.height=u.tiledMemberPack[y].height,v.setCenter(u.tiledMemberPack[y].centerX,u.tiledMemberPack[y].centerY),v.labelMarginLeft=0,v.labelMarginTop=0,i.NODE_DIMENSIONS_INCLUDE_LABELS){var A=v.rect.width,w=v.rect.height;v.labelWidth&&(v.labelPosHorizontal=="left"?(v.rect.x-=v.labelWidth,v.setWidth(A+v.labelWidth),v.labelMarginLeft=v.labelWidth):v.labelPosHorizontal=="center"&&v.labelWidth>A?(v.rect.x-=(v.labelWidth-A)/2,v.setWidth(v.labelWidth),v.labelMarginLeft=(v.labelWidth-A)/2):v.labelPosHorizontal=="right"&&v.setWidth(A+v.labelWidth)),v.labelHeight&&(v.labelPosVertical=="top"?(v.rect.y-=v.labelHeight,v.setHeight(w+v.labelHeight),v.labelMarginTop=v.labelHeight):v.labelPosVertical=="center"&&v.labelHeight>w?(v.rect.y-=(v.labelHeight-w)/2,v.setHeight(v.labelHeight),v.labelMarginTop=(v.labelHeight-w)/2):v.labelPosVertical=="bottom"&&v.setHeight(w+v.labelHeight))}})},D.prototype.tileNodes=function(l,E){var u=this.tileNodesByFavoringDim(l,E,!0),y=this.tileNodesByFavoringDim(l,E,!1),v=this.getOrgRatio(u);return this.getOrgRatio(y)<v?y:u},D.prototype.getOrgRatio=function(l){var E=l.width/l.height;return E<1&&(E=1/E),E},D.prototype.calcIdealRowWidth=function(l,E){var u=i.TILING_PADDING_VERTICAL,y=i.TILING_PADDING_HORIZONTAL,v=l.length,A=0,w=0,b=0;l.forEach(function(X){A+=X.getWidth(),w+=X.getHeight(),X.getWidth()>b&&(b=X.getWidth())});var G=A/v,F=w/v,k=(u-y)**2+4*(G+y)*(F+u)*v,V=(y-u+Math.sqrt(k))/(2*(G+y)),K;E?(K=Math.ceil(V),K==V&&K++):K=Math.floor(V);var H=K*(G+y)-y;return b>H&&(H=b),H+=y*2,H},D.prototype.tileNodesByFavoringDim=function(l,E,u){var y=i.TILING_PADDING_VERTICAL,v=i.TILING_PADDING_HORIZONTAL,A=i.TILING_COMPARE_BY,w={rows:[],rowWidth:[],rowHeight:[],width:0,height:E,verticalPadding:y,horizontalPadding:v,centerX:0,centerY:0};A&&(w.idealRowWidth=this.calcIdealRowWidth(l,u));var b=function(X){return X.rect.width*X.rect.height},G=function(X,O){return b(O)-b(X)};l.sort(function(X,O){var z=G;return w.idealRowWidth?(z=A,z(X.id,O.id)):z(X,O)});for(var F=0,k=0,V=0;V<l.length;V++){var K=l[V];F+=K.getCenterX(),k+=K.getCenterY()}w.centerX=F/l.length,w.centerY=k/l.length;for(var V=0;V<l.length;V++){var K=l[V];if(w.rows.length==0)this.insertNodeToRow(w,K,0,E);else if(this.canAddHorizontal(w,K.rect.width,K.rect.height)){var H=w.rows.length-1;w.idealRowWidth||(H=this.getShortestRowIndex(w)),this.insertNodeToRow(w,K,H,E)}else this.insertNodeToRow(w,K,w.rows.length,E);this.shiftToLastRow(w)}return w},D.prototype.insertNodeToRow=function(l,E,u,y){var v=y;u==l.rows.length&&(l.rows.push([]),l.rowWidth.push(v),l.rowHeight.push(0));var A=l.rowWidth[u]+E.rect.width;l.rows[u].length>0&&(A+=l.horizontalPadding),l.rowWidth[u]=A,l.width<A&&(l.width=A);var w=E.rect.height;u>0&&(w+=l.verticalPadding);var b=0;w>l.rowHeight[u]&&(b=l.rowHeight[u],l.rowHeight[u]=w,b=l.rowHeight[u]-b),l.height+=b,l.rows[u].push(E)},D.prototype.getShortestRowIndex=function(l){for(var E=-1,u=Number.MAX_VALUE,y=0;y<l.rows.length;y++)l.rowWidth[y]<u&&(E=y,u=l.rowWidth[y]);return E},D.prototype.getLongestRowIndex=function(l){for(var E=-1,u=Number.MIN_VALUE,y=0;y<l.rows.length;y++)l.rowWidth[y]>u&&(E=y,u=l.rowWidth[y]);return E},D.prototype.canAddHorizontal=function(l,E,u){if(l.idealRowWidth){var y=l.rows.length-1;return l.rowWidth[y]+E+l.horizontalPadding<=l.idealRowWidth}var v=this.getShortestRowIndex(l);if(v<0)return!0;var A=l.rowWidth[v];if(A+l.horizontalPadding+E<=l.width)return!0;var w=0;l.rowHeight[v]<u&&v>0&&(w=u+l.verticalPadding-l.rowHeight[v]);var b=l.width-A>=E+l.horizontalPadding?(l.height+w)/(A+E+l.horizontalPadding):(l.height+w)/l.width;w=u+l.verticalPadding;var G=l.width<E?(l.height+w)/E:(l.height+w)/l.width;return G<1&&(G=1/G),b<1&&(b=1/b),b<G},D.prototype.shiftToLastRow=function(l){var E=this.getLongestRowIndex(l),u=l.rowWidth.length-1,y=l.rows[E],v=y[y.length-1],A=v.width+l.horizontalPadding;if(l.width-l.rowWidth[u]>A&&E!=u){y.splice(-1,1),l.rows[u].push(v),l.rowWidth[E]=l.rowWidth[E]-A,l.rowWidth[u]=l.rowWidth[u]+A,l.width=l.rowWidth[instance.getLongestRowIndex(l)];for(var w=Number.MIN_VALUE,b=0;b<y.length;b++)y[b].height>w&&(w=y[b].height);E>0&&(w+=l.verticalPadding);var G=l.rowHeight[E]+l.rowHeight[u];l.rowHeight[E]=w,l.rowHeight[u]<v.height+l.verticalPadding&&(l.rowHeight[u]=v.height+l.verticalPadding);var F=l.rowHeight[E]+l.rowHeight[u];l.height+=F-G,this.shiftToLastRow(l)}},D.prototype.tilingPreLayout=function(){i.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},D.prototype.tilingPostLayout=function(){i.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},D.prototype.reduceTrees=function(){for(var l=[],E=!0,u;E;){var y=this.graphManager.getAllNodes(),v=[];E=!1;for(var A=0;A<y.length;A++)if(u=y[A],u.getEdges().length==1&&!u.getEdges()[0].isInterGraph&&u.getChild()==null){if(i.PURE_INCREMENTAL){var w=u.getEdges()[0].getOtherEnd(u),b=new T(u.getCenterX()-w.getCenterX(),u.getCenterY()-w.getCenterY());v.push([u,u.getEdges()[0],u.getOwner(),b])}else v.push([u,u.getEdges()[0],u.getOwner()]);E=!0}if(E==1){for(var G=[],F=0;F<v.length;F++)v[F][0].getEdges().length==1&&(G.push(v[F]),v[F][0].getOwner().remove(v[F][0]));l.push(G),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=l},D.prototype.growTree=function(l){for(var E=l[l.length-1],u,y=0;y<E.length;y++)u=E[y],this.findPlaceforPrunedNode(u),u[2].add(u[0]),u[2].add(u[1],u[1].source,u[1].target);l.splice(l.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},D.prototype.findPlaceforPrunedNode=function(l){var E,u,y=l[0];if(u=y==l[1].source?l[1].target:l[1].source,i.PURE_INCREMENTAL)y.setCenter(u.getCenterX()+l[3].getWidth(),u.getCenterY()+l[3].getHeight());else{var v=u.startX,A=u.finishX,w=u.startY,b=u.finishY,G=[0,0,0,0];if(w>0)for(var F=v;F<=A;F++)G[0]+=this.grid[F][w-1].length+this.grid[F][w].length-1;if(A<this.grid.length-1)for(var F=w;F<=b;F++)G[1]+=this.grid[A+1][F].length+this.grid[A][F].length-1;if(b<this.grid[0].length-1)for(var F=v;F<=A;F++)G[2]+=this.grid[F][b+1].length+this.grid[F][b].length-1;if(v>0)for(var F=w;F<=b;F++)G[3]+=this.grid[v-1][F].length+this.grid[v][F].length-1;for(var k=R.MAX_VALUE,V,K,H=0;H<G.length;H++)G[H]<k?(k=G[H],V=1,K=H):G[H]==k&&V++;if(V==3&&k==0)G[0]==0&&G[1]==0&&G[2]==0?E=1:G[0]==0&&G[1]==0&&G[3]==0?E=0:G[0]==0&&G[2]==0&&G[3]==0?E=3:G[1]==0&&G[2]==0&&G[3]==0&&(E=2);else if(V==2&&k==0){var X=Math.floor(Math.random()*2);E=G[0]==0&&G[1]==0?X==0?0:1:G[0]==0&&G[2]==0?X==0?0:2:G[0]==0&&G[3]==0?X==0?0:3:G[1]==0&&G[2]==0?X==0?1:2:G[1]==0&&G[3]==0?X==0?1:3:X==0?2:3}else if(V==4&&k==0){var X=Math.floor(Math.random()*4);E=X}else E=K;E==0?y.setCenter(u.getCenterX(),u.getCenterY()-u.getHeight()/2-s.DEFAULT_EDGE_LENGTH-y.getHeight()/2):E==1?y.setCenter(u.getCenterX()+u.getWidth()/2+s.DEFAULT_EDGE_LENGTH+y.getWidth()/2,u.getCenterY()):E==2?y.setCenter(u.getCenterX(),u.getCenterY()+u.getHeight()/2+s.DEFAULT_EDGE_LENGTH+y.getHeight()/2):y.setCenter(u.getCenterX()-u.getWidth()/2-s.DEFAULT_EDGE_LENGTH-y.getWidth()/2,u.getCenterY())}},r.exports=D}),991:((r,n,t)=>{var e=t(551).FDLayoutNode,h=t(551).IMath;function a(o,i,d,s){e.call(this,o,i,d,s)}for(var p in a.prototype=Object.create(e.prototype),e)a[p]=e[p];a.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*h.sign(this.displacementX)),Math.abs(this.displacementY)>o.coolingFactor*o.maxNodeDisplacement&&(this.displacementY=o.coolingFactor*o.maxNodeDisplacement*h.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},a.prototype.propogateDisplacementToChildren=function(o,i){for(var d=this.getChild().getNodes(),s,c=0;c<d.length;c++)s=d[c],s.getChild()==null?(s.displacementX+=o,s.displacementY+=i):s.propogateDisplacementToChildren(o,i)},a.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},a.prototype.setPred1=function(o){this.pred1=o},a.prototype.getPred1=function(){return pred1},a.prototype.getPred2=function(){return pred2},a.prototype.setNext=function(o){this.next=o},a.prototype.getNext=function(){return next},a.prototype.setProcessed=function(o){this.processed=o},a.prototype.isProcessed=function(){return processed},r.exports=a}),902:((r,n,t)=>{function e(d){if(Array.isArray(d)){for(var s=0,c=Array(d.length);s<d.length;s++)c[s]=d[s];return c}else return Array.from(d)}var h=t(806),a=t(551).LinkedList,p=t(551).Matrix,o=t(551).SVD;function i(){}i.handleConstraints=function(d){var s={};s.fixedNodeConstraint=d.constraints.fixedNodeConstraint,s.alignmentConstraint=d.constraints.alignmentConstraint,s.relativePlacementConstraint=d.constraints.relativePlacementConstraint;for(var c=new Map,g=new Map,m=[],T=[],L=d.getAllNodes(),R=0,S=0;S<L.length;S++){var Y=L[S];Y.getChild()??(g.set(Y.id,R++),m.push(Y.getCenterX()),T.push(Y.getCenterY()),c.set(Y.id,Y))}s.relativePlacementConstraint&&s.relativePlacementConstraint.forEach(function(I){!I.gap&&I.gap!=0&&(I.left?I.gap=h.DEFAULT_EDGE_LENGTH+c.get(I.left).getWidth()/2+c.get(I.right).getWidth()/2:I.gap=h.DEFAULT_EDGE_LENGTH+c.get(I.top).getHeight()/2+c.get(I.bottom).getHeight()/2)});var $=function(I,P){return{x:I.x-P.x,y:I.y-P.y}},Z=function(I){var P=0,q=0;return I.forEach(function(j){P+=m[g.get(j)],q+=T[g.get(j)]}),{x:P/I.size,y:q/I.size}},D=function(I,P,q,j,tt){function Et(dt,Q){var ut=new Set(dt),At=!0,rt=!1,bt=void 0;try{for(var Ot=Q[Symbol.iterator](),Dt;!(At=(Dt=Ot.next()).done);At=!0){var Ft=Dt.value;ut.add(Ft)}}catch(Tt){rt=!0,bt=Tt}finally{try{!At&&Ot.return&&Ot.return()}finally{if(rt)throw bt}}return ut}var yt=new Map;I.forEach(function(dt,Q){yt.set(Q,0)}),I.forEach(function(dt,Q){dt.forEach(function(ut){yt.set(ut.id,yt.get(ut.id)+1)})});var it=new Map,ft=new Map,It=new a;yt.forEach(function(dt,Q){dt==0?(It.push(Q),q||(P=="horizontal"?it.set(Q,g.has(Q)?m[g.get(Q)]:j.get(Q)):it.set(Q,g.has(Q)?T[g.get(Q)]:j.get(Q)))):it.set(Q,-1/0),q&&ft.set(Q,new Set([Q]))}),q&&tt.forEach(function(dt){var Q=[];if(dt.forEach(function(rt){q.has(rt)&&Q.push(rt)}),Q.length>0){var ut=0;Q.forEach(function(rt){P=="horizontal"?(it.set(rt,g.has(rt)?m[g.get(rt)]:j.get(rt)),ut+=it.get(rt)):(it.set(rt,g.has(rt)?T[g.get(rt)]:j.get(rt)),ut+=it.get(rt))}),ut/=Q.length,dt.forEach(function(rt){q.has(rt)||it.set(rt,ut)})}else{var At=0;dt.forEach(function(rt){P=="horizontal"?At+=g.has(rt)?m[g.get(rt)]:j.get(rt):At+=g.has(rt)?T[g.get(rt)]:j.get(rt)}),At/=dt.length,dt.forEach(function(rt){it.set(rt,At)})}});for(var wt=function(){var dt=It.shift();I.get(dt).forEach(function(Q){if(it.get(Q.id)<it.get(dt)+Q.gap)if(q&&q.has(Q.id)){var ut=void 0;if(ut=P=="horizontal"?g.has(Q.id)?m[g.get(Q.id)]:j.get(Q.id):g.has(Q.id)?T[g.get(Q.id)]:j.get(Q.id),it.set(Q.id,ut),ut<it.get(dt)+Q.gap){var At=it.get(dt)+Q.gap-ut;ft.get(dt).forEach(function(rt){it.set(rt,it.get(rt)-At)})}}else it.set(Q.id,it.get(dt)+Q.gap);yt.set(Q.id,yt.get(Q.id)-1),yt.get(Q.id)==0&&It.push(Q.id),q&&ft.set(Q.id,Et(ft.get(dt),ft.get(Q.id)))})};It.length!=0;)wt();if(q){var mt=new Set;I.forEach(function(dt,Q){dt.length==0&&mt.add(Q)});var ht=[];ft.forEach(function(dt,Q){if(mt.has(Q)){var ut=!1,At=!0,rt=!1,bt=void 0;try{for(var Ot=dt[Symbol.iterator](),Dt;!(At=(Dt=Ot.next()).done);At=!0){var Ft=Dt.value;q.has(Ft)&&(ut=!0)}}catch(Mt){rt=!0,bt=Mt}finally{try{!At&&Ot.return&&Ot.return()}finally{if(rt)throw bt}}if(!ut){var Tt=!1,Nt=void 0;ht.forEach(function(Mt,Pt){Mt.has([].concat(e(dt))[0])&&(Tt=!0,Nt=Pt)}),Tt?dt.forEach(function(Mt){ht[Nt].add(Mt)}):ht.push(new Set(dt))}}}),ht.forEach(function(dt,Q){var ut=1/0,At=1/0,rt=-1/0,bt=-1/0,Ot=!0,Dt=!1,Ft=void 0;try{for(var Tt=dt[Symbol.iterator](),Nt;!(Ot=(Nt=Tt.next()).done);Ot=!0){var Mt=Nt.value,Pt=void 0;Pt=P=="horizontal"?g.has(Mt)?m[g.get(Mt)]:j.get(Mt):g.has(Mt)?T[g.get(Mt)]:j.get(Mt);var Xt=it.get(Mt);Pt<ut&&(ut=Pt),Pt>rt&&(rt=Pt),Xt<At&&(At=Xt),Xt>bt&&(bt=Xt)}}catch($t){Dt=!0,Ft=$t}finally{try{!Ot&&Tt.return&&Tt.return()}finally{if(Dt)throw Ft}}var ne=(ut+rt)/2-(At+bt)/2,ee=!0,qt=!1,Zt=void 0;try{for(var jt=dt[Symbol.iterator](),Jt;!(ee=(Jt=jt.next()).done);ee=!0){var re=Jt.value;it.set(re,it.get(re)+ne)}}catch($t){qt=!0,Zt=$t}finally{try{!ee&&jt.return&&jt.return()}finally{if(qt)throw Zt}}})}return it},J=function(I){var P=0,q=0,j=0,tt=0;if(I.forEach(function(ft){ft.left?m[g.get(ft.left)]-m[g.get(ft.right)]>=0?P++:q++:T[g.get(ft.top)]-T[g.get(ft.bottom)]>=0?j++:tt++}),P>q&&j>tt)for(var Et=0;Et<g.size;Et++)m[Et]=-1*m[Et],T[Et]=-1*T[Et];else if(P>q)for(var yt=0;yt<g.size;yt++)m[yt]=-1*m[yt];else if(j>tt)for(var it=0;it<g.size;it++)T[it]=-1*T[it]},l=function(I){var P=[],q=new a,j=new Set,tt=0;return I.forEach(function(Et,yt){if(!j.has(yt)){P[tt]=[];var it=yt;for(q.push(it),j.add(it),P[tt].push(it);q.length!=0;)it=q.shift(),I.get(it).forEach(function(ft){j.has(ft.id)||(q.push(ft.id),j.add(ft.id),P[tt].push(ft.id))});tt++}}),P},E=function(I){var P=new Map;return I.forEach(function(q,j){P.set(j,[])}),I.forEach(function(q,j){q.forEach(function(tt){P.get(j).push(tt),P.get(tt.id).push({id:j,gap:tt.gap,direction:tt.direction})})}),P},u=function(I){var P=new Map;return I.forEach(function(q,j){P.set(j,[])}),I.forEach(function(q,j){q.forEach(function(tt){P.get(tt.id).push({id:j,gap:tt.gap,direction:tt.direction})})}),P},y=[],v=[],A=!1,w=!1,b=new Set,G=new Map,F=new Map,k=[];if(s.fixedNodeConstraint&&s.fixedNodeConstraint.forEach(function(I){b.add(I.nodeId)}),s.relativePlacementConstraint&&(s.relativePlacementConstraint.forEach(function(I){I.left?(G.has(I.left)?G.get(I.left).push({id:I.right,gap:I.gap,direction:"horizontal"}):G.set(I.left,[{id:I.right,gap:I.gap,direction:"horizontal"}]),G.has(I.right)||G.set(I.right,[])):(G.has(I.top)?G.get(I.top).push({id:I.bottom,gap:I.gap,direction:"vertical"}):G.set(I.top,[{id:I.bottom,gap:I.gap,direction:"vertical"}]),G.has(I.bottom)||G.set(I.bottom,[]))}),F=E(G),k=l(F)),h.TRANSFORM_ON_CONSTRAINT_HANDLING){if(s.fixedNodeConstraint&&s.fixedNodeConstraint.length>1)s.fixedNodeConstraint.forEach(function(I,P){y[P]=[I.position.x,I.position.y],v[P]=[m[g.get(I.nodeId)],T[g.get(I.nodeId)]]}),A=!0;else if(s.alignmentConstraint)(function(){var I=0;if(s.alignmentConstraint.vertical){for(var P=s.alignmentConstraint.vertical,q=function(it){var ft=new Set;P[it].forEach(function(mt){ft.add(mt)});var It=new Set([].concat(e(ft)).filter(function(mt){return b.has(mt)})),wt=void 0;wt=It.size>0?m[g.get(It.values().next().value)]:Z(ft).x,P[it].forEach(function(mt){y[I]=[wt,T[g.get(mt)]],v[I]=[m[g.get(mt)],T[g.get(mt)]],I++})},j=0;j<P.length;j++)q(j);A=!0}if(s.alignmentConstraint.horizontal){for(var tt=s.alignmentConstraint.horizontal,Et=function(it){var ft=new Set;tt[it].forEach(function(mt){ft.add(mt)});var It=new Set([].concat(e(ft)).filter(function(mt){return b.has(mt)})),wt=void 0;wt=It.size>0?m[g.get(It.values().next().value)]:Z(ft).y,tt[it].forEach(function(mt){y[I]=[m[g.get(mt)],wt],v[I]=[m[g.get(mt)],T[g.get(mt)]],I++})},yt=0;yt<tt.length;yt++)Et(yt);A=!0}s.relativePlacementConstraint&&(w=!0)})();else if(s.relativePlacementConstraint){for(var V=0,K=0,H=0;H<k.length;H++)k[H].length>V&&(V=k[H].length,K=H);if(V<F.size/2)J(s.relativePlacementConstraint),A=!1,w=!1;else{var X=new Map,O=new Map,z=[];k[K].forEach(function(I){G.get(I).forEach(function(P){P.direction=="horizontal"?(X.has(I)?X.get(I).push(P):X.set(I,[P]),X.has(P.id)||X.set(P.id,[]),z.push({left:I,right:P.id})):(O.has(I)?O.get(I).push(P):O.set(I,[P]),O.has(P.id)||O.set(P.id,[]),z.push({top:I,bottom:P.id}))})}),J(z),w=!1;var et=D(X,"horizontal"),U=D(O,"vertical");k[K].forEach(function(I,P){v[P]=[m[g.get(I)],T[g.get(I)]],y[P]=[],et.has(I)?y[P][0]=et.get(I):y[P][0]=m[g.get(I)],U.has(I)?y[P][1]=U.get(I):y[P][1]=T[g.get(I)]}),A=!0}}if(A){for(var B=void 0,lt=p.transpose(y),at=p.transpose(v),Lt=0;Lt<lt.length;Lt++)lt[Lt]=p.multGamma(lt[Lt]),at[Lt]=p.multGamma(at[Lt]);var W=p.multMat(lt,p.transpose(at)),pt=o.svd(W);B=p.multMat(pt.V,p.transpose(pt.U));for(var vt=0;vt<g.size;vt++){var Bt=[m[vt],T[vt]],Yt=[B[0][0],B[1][0]],_t=[B[0][1],B[1][1]];m[vt]=p.dotProduct(Bt,Yt),T[vt]=p.dotProduct(Bt,_t)}w&&J(s.relativePlacementConstraint)}}if(h.ENFORCE_CONSTRAINTS){if(s.fixedNodeConstraint&&s.fixedNodeConstraint.length>0){var xt={x:0,y:0};s.fixedNodeConstraint.forEach(function(I,P){var q={x:m[g.get(I.nodeId)],y:T[g.get(I.nodeId)]},j=I.position,tt=$(j,q);xt.x+=tt.x,xt.y+=tt.y}),xt.x/=s.fixedNodeConstraint.length,xt.y/=s.fixedNodeConstraint.length,m.forEach(function(I,P){m[P]+=xt.x}),T.forEach(function(I,P){T[P]+=xt.y}),s.fixedNodeConstraint.forEach(function(I){m[g.get(I.nodeId)]=I.position.x,T[g.get(I.nodeId)]=I.position.y})}if(s.alignmentConstraint){if(s.alignmentConstraint.vertical)for(var kt=s.alignmentConstraint.vertical,Ut=function(I){var P=new Set;kt[I].forEach(function(tt){P.add(tt)});var q=new Set([].concat(e(P)).filter(function(tt){return b.has(tt)})),j=void 0;j=q.size>0?m[g.get(q.values().next().value)]:Z(P).x,P.forEach(function(tt){b.has(tt)||(m[g.get(tt)]=j)})},Rt=0;Rt<kt.length;Rt++)Ut(Rt);if(s.alignmentConstraint.horizontal)for(var Vt=s.alignmentConstraint.horizontal,Gt=function(I){var P=new Set;Vt[I].forEach(function(tt){P.add(tt)});var q=new Set([].concat(e(P)).filter(function(tt){return b.has(tt)})),j=void 0;j=q.size>0?T[g.get(q.values().next().value)]:Z(P).y,P.forEach(function(tt){b.has(tt)||(T[g.get(tt)]=j)})},st=0;st<Vt.length;st++)Gt(st)}s.relativePlacementConstraint&&(function(){var I=new Map,P=new Map,q=new Map,j=new Map,tt=new Map,Et=new Map,yt=new Set,it=new Set;if(b.forEach(function(nt){yt.add(nt),it.add(nt)}),s.alignmentConstraint){if(s.alignmentConstraint.vertical)for(var ft=s.alignmentConstraint.vertical,It=function(nt){q.set("dummy"+nt,[]),ft[nt].forEach(function(Ct){I.set(Ct,"dummy"+nt),q.get("dummy"+nt).push(Ct),b.has(Ct)&&yt.add("dummy"+nt)}),tt.set("dummy"+nt,m[g.get(ft[nt][0])])},wt=0;wt<ft.length;wt++)It(wt);if(s.alignmentConstraint.horizontal)for(var mt=s.alignmentConstraint.horizontal,ht=function(nt){j.set("dummy"+nt,[]),mt[nt].forEach(function(Ct){P.set(Ct,"dummy"+nt),j.get("dummy"+nt).push(Ct),b.has(Ct)&&it.add("dummy"+nt)}),Et.set("dummy"+nt,T[g.get(mt[nt][0])])},dt=0;dt<mt.length;dt++)ht(dt)}var Q=new Map,ut=new Map,At=function(nt){G.get(nt).forEach(function(Ct){var Ht=void 0,zt=void 0;Ct.direction=="horizontal"?(Ht=I.get(nt)?I.get(nt):nt,zt=I.get(Ct.id)?{id:I.get(Ct.id),gap:Ct.gap,direction:Ct.direction}:Ct,Q.has(Ht)?Q.get(Ht).push(zt):Q.set(Ht,[zt]),Q.has(zt.id)||Q.set(zt.id,[])):(Ht=P.get(nt)?P.get(nt):nt,zt=P.get(Ct.id)?{id:P.get(Ct.id),gap:Ct.gap,direction:Ct.direction}:Ct,ut.has(Ht)?ut.get(Ht).push(zt):ut.set(Ht,[zt]),ut.has(zt.id)||ut.set(zt.id,[]))})},rt=!0,bt=!1,Ot=void 0;try{for(var Dt=G.keys()[Symbol.iterator](),Ft;!(rt=(Ft=Dt.next()).done);rt=!0){var Tt=Ft.value;At(Tt)}}catch(nt){bt=!0,Ot=nt}finally{try{!rt&&Dt.return&&Dt.return()}finally{if(bt)throw Ot}}var Nt=E(Q),Mt=E(ut),Pt=l(Nt),Xt=l(Mt),ne=u(Q),ee=u(ut),qt=[],Zt=[];Pt.forEach(function(nt,Ct){qt[Ct]=[],nt.forEach(function(Ht){ne.get(Ht).length==0&&qt[Ct].push(Ht)})}),Xt.forEach(function(nt,Ct){Zt[Ct]=[],nt.forEach(function(Ht){ee.get(Ht).length==0&&Zt[Ct].push(Ht)})});var jt=D(Q,"horizontal",yt,tt,qt),Jt=D(ut,"vertical",it,Et,Zt),re=function(nt){q.get(nt)?q.get(nt).forEach(function(Ct){m[g.get(Ct)]=jt.get(nt)}):m[g.get(nt)]=jt.get(nt)},$t=!0,me=!1,ve=void 0;try{for(var ae=jt.keys()[Symbol.iterator](),ye;!($t=(ye=ae.next()).done);$t=!0){var se=ye.value;re(se)}}catch(nt){me=!0,ve=nt}finally{try{!$t&&ae.return&&ae.return()}finally{if(me)throw ve}}var He=function(nt){j.get(nt)?j.get(nt).forEach(function(Ct){T[g.get(Ct)]=Jt.get(nt)}):T[g.get(nt)]=Jt.get(nt)},he=!0,Ee=!1,Te=void 0;try{for(var le=Jt.keys()[Symbol.iterator](),Ne;!(he=(Ne=le.next()).done);he=!0){var se=Ne.value;He(se)}}catch(nt){Ee=!0,Te=nt}finally{try{!he&&le.return&&le.return()}finally{if(Ee)throw Te}}})()}for(var ot=0;ot<L.length;ot++){var ct=L[ot];ct.getChild()??ct.setCenter(m[g.get(ct.id)],T[g.get(ct.id)])}},r.exports=i}),551:(r=>{r.exports=C})},N={};function f(r){var n=N[r];if(n!==void 0)return n.exports;var t=N[r]={exports:{}};return M[r](t,t.exports,f),t.exports}return f(45)})()})})),si=Ue(de(((_,x)=>{(function(C,M){typeof _=="object"&&typeof x=="object"?x.exports=M(we()):typeof define=="function"&&define.amd?define(["cose-base"],M):typeof _=="object"?_.cytoscapeFcose=M(we()):C.cytoscapeFcose=M(C.coseBase)})(_,function(C){return(()=>{var M={658:(r=>{r.exports=Object.assign==null?function(n){return[...arguments].slice(1).forEach(function(t){Object.keys(t).forEach(function(e){return n[e]=t[e]})}),n}:Object.assign.bind(Object)}),548:((r,n,t)=>{var e=(function(){function p(o,i){var d=[],s=!0,c=!1,g=void 0;try{for(var m=o[Symbol.iterator](),T;!(s=(T=m.next()).done)&&(d.push(T.value),!(i&&d.length===i));s=!0);}catch(L){c=!0,g=L}finally{try{!s&&m.return&&m.return()}finally{if(c)throw g}}return d}return function(o,i){if(Array.isArray(o))return o;if(Symbol.iterator in Object(o))return p(o,i);throw TypeError("Invalid attempt to destructure non-iterable instance")}})(),h=t(140).layoutBase.LinkedList,a={};a.getTopMostNodes=function(p){for(var o={},i=0;i<p.length;i++)o[p[i].id()]=!0;return p.filter(function(d,s){typeof d=="number"&&(d=s);for(var c=d.parent()[0];c!=null;){if(o[c.id()])return!1;c=c.parent()[0]}return!0})},a.connectComponents=function(p,o,i,d){var s=new h,c=new Set,g=[],m=void 0,T=void 0,L=void 0,R=!1,S=1,Y=[],$=[],Z=function(){var D=p.collection();$.push(D);var J=i[0],l=p.collection();l.merge(J).merge(J.descendants().intersection(o)),g.push(J),l.forEach(function(y){s.push(y),c.add(y),D.merge(y)});for(var E=function(){J=s.shift();var y=p.collection();J.neighborhood().nodes().forEach(function(w){o.intersection(J.edgesWith(w)).length>0&&y.merge(w)});for(var v=0;v<y.length;v++){var A=y[v];m=i.intersection(A.union(A.ancestors())),m!=null&&!c.has(m[0])&&m.union(m.descendants()).forEach(function(w){s.push(w),c.add(w),D.merge(w),i.has(w)&&g.push(w)})}};s.length!=0;)E();if(D.forEach(function(y){o.intersection(y.connectedEdges()).forEach(function(v){D.has(v.source())&&D.has(v.target())&&D.merge(v)})}),g.length==i.length&&(R=!0),!R||R&&S>1){T=g[0],L=T.connectedEdges().length,g.forEach(function(y){y.connectedEdges().length<L&&(L=y.connectedEdges().length,T=y)}),Y.push(T.id());var u=p.collection();u.merge(g[0]),g.forEach(function(y){u.merge(y)}),g=[],i=i.difference(u),S++}};do Z();while(!R);return d&&Y.length>0&&d.set("dummy"+(d.size+1),Y),$},a.relocateComponent=function(p,o,i){if(!i.fixedNodeConstraint){var d=1/0,s=-1/0,c=1/0,g=-1/0;if(i.quality=="draft"){var m=!0,T=!1,L=void 0;try{for(var R=o.nodeIndexes[Symbol.iterator](),S;!(m=(S=R.next()).done);m=!0){var Y=S.value,$=e(Y,2),Z=$[0],D=$[1],J=i.cy.getElementById(Z);if(J){var l=J.boundingBox(),E=o.xCoords[D]-l.w/2,u=o.xCoords[D]+l.w/2,y=o.yCoords[D]-l.h/2,v=o.yCoords[D]+l.h/2;E<d&&(d=E),u>s&&(s=u),y<c&&(c=y),v>g&&(g=v)}}}catch(F){T=!0,L=F}finally{try{!m&&R.return&&R.return()}finally{if(T)throw L}}var A=p.x-(s+d)/2,w=p.y-(g+c)/2;o.xCoords=o.xCoords.map(function(F){return F+A}),o.yCoords=o.yCoords.map(function(F){return F+w})}else{Object.keys(o).forEach(function(F){var k=o[F],V=k.getRect().x,K=k.getRect().x+k.getRect().width,H=k.getRect().y,X=k.getRect().y+k.getRect().height;V<d&&(d=V),K>s&&(s=K),H<c&&(c=H),X>g&&(g=X)});var b=p.x-(s+d)/2,G=p.y-(g+c)/2;Object.keys(o).forEach(function(F){var k=o[F];k.setCenter(k.getCenterX()+b,k.getCenterY()+G)})}}},a.calcBoundingBox=function(p,o,i,d){for(var s=9007199254740991,c=-9007199254740991,g=9007199254740991,m=-9007199254740991,T=void 0,L=void 0,R=void 0,S=void 0,Y=p.descendants().not(":parent"),$=Y.length,Z=0;Z<$;Z++){var D=Y[Z];T=o[d.get(D.id())]-D.width()/2,L=o[d.get(D.id())]+D.width()/2,R=i[d.get(D.id())]-D.height()/2,S=i[d.get(D.id())]+D.height()/2,s>T&&(s=T),c<L&&(c=L),g>R&&(g=R),m<S&&(m=S)}var J={};return J.topLeftX=s,J.topLeftY=g,J.width=c-s,J.height=m-g,J},a.calcParentsWithoutChildren=function(p,o){var i=p.collection();return o.nodes(":parent").forEach(function(d){var s=!1;d.children().forEach(function(c){c.css("display")!="none"&&(s=!0)}),s||i.merge(d)}),i},r.exports=a}),816:((r,n,t)=>{var e=t(548),h=t(140).CoSELayout,a=t(140).CoSENode,p=t(140).layoutBase.PointD,o=t(140).layoutBase.DimensionD,i=t(140).layoutBase.LayoutConstants,d=t(140).layoutBase.FDLayoutConstants,s=t(140).CoSEConstants;r.exports={coseLayout:function(c,g){var m=c.cy,T=c.eles,L=T.nodes(),R=T.edges(),S=void 0,Y=void 0,$=void 0,Z={};c.randomize&&(S=g.nodeIndexes,Y=g.xCoords,$=g.yCoords);var D=function(w){return typeof w=="function"},J=function(w,b){return D(w)?w(b):w},l=e.calcParentsWithoutChildren(m,T),E=function w(b,G,F,k){for(var V=G.length,K=0;K<V;K++){var H=G[K],X=null;H.intersection(l).length==0&&(X=H.children());var O=void 0,z=H.layoutDimensions({nodeDimensionsIncludeLabels:k.nodeDimensionsIncludeLabels});if(H.outerWidth()!=null&&H.outerHeight()!=null)if(k.randomize)if(!H.isParent())O=b.add(new a(F.graphManager,new p(Y[S.get(H.id())]-z.w/2,$[S.get(H.id())]-z.h/2),new o(parseFloat(z.w),parseFloat(z.h))));else{var et=e.calcBoundingBox(H,Y,$,S);O=H.intersection(l).length==0?b.add(new a(F.graphManager,new p(et.topLeftX,et.topLeftY),new o(et.width,et.height))):b.add(new a(F.graphManager,new p(et.topLeftX,et.topLeftY),new o(parseFloat(z.w),parseFloat(z.h))))}else O=b.add(new a(F.graphManager,new p(H.position("x")-z.w/2,H.position("y")-z.h/2),new o(parseFloat(z.w),parseFloat(z.h))));else O=b.add(new a(this.graphManager));if(O.id=H.data("id"),O.nodeRepulsion=J(k.nodeRepulsion,H),O.paddingLeft=parseInt(H.css("padding")),O.paddingTop=parseInt(H.css("padding")),O.paddingRight=parseInt(H.css("padding")),O.paddingBottom=parseInt(H.css("padding")),k.nodeDimensionsIncludeLabels&&(O.labelWidth=H.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).w,O.labelHeight=H.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).h,O.labelPosVertical=H.css("text-valign"),O.labelPosHorizontal=H.css("text-halign")),Z[H.data("id")]=O,isNaN(O.rect.x)&&(O.rect.x=0),isNaN(O.rect.y)&&(O.rect.y=0),X!=null&&X.length>0){var U=void 0;U=F.getGraphManager().add(F.newGraph(),O),w(U,X,F,k)}}},u=function(w,b,G){for(var F=0,k=0,V=0;V<G.length;V++){var K=G[V],H=Z[K.data("source")],X=Z[K.data("target")];if(H&&X&&H!==X&&H.getEdgesBetween(X).length==0){var O=b.add(w.newEdge(),H,X);O.id=K.id(),O.idealLength=J(c.idealEdgeLength,K),O.edgeElasticity=J(c.edgeElasticity,K),F+=O.idealLength,k++}}c.idealEdgeLength!=null&&(k>0?s.DEFAULT_EDGE_LENGTH=d.DEFAULT_EDGE_LENGTH=F/k:D(c.idealEdgeLength)?s.DEFAULT_EDGE_LENGTH=d.DEFAULT_EDGE_LENGTH=50:s.DEFAULT_EDGE_LENGTH=d.DEFAULT_EDGE_LENGTH=c.idealEdgeLength,s.MIN_REPULSION_DIST=d.MIN_REPULSION_DIST=d.DEFAULT_EDGE_LENGTH/10,s.DEFAULT_RADIAL_SEPARATION=d.DEFAULT_EDGE_LENGTH)},y=function(w,b){b.fixedNodeConstraint&&(w.constraints.fixedNodeConstraint=b.fixedNodeConstraint),b.alignmentConstraint&&(w.constraints.alignmentConstraint=b.alignmentConstraint),b.relativePlacementConstraint&&(w.constraints.relativePlacementConstraint=b.relativePlacementConstraint)};c.nestingFactor!=null&&(s.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=d.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=c.nestingFactor),c.gravity!=null&&(s.DEFAULT_GRAVITY_STRENGTH=d.DEFAULT_GRAVITY_STRENGTH=c.gravity),c.numIter!=null&&(s.MAX_ITERATIONS=d.MAX_ITERATIONS=c.numIter),c.gravityRange!=null&&(s.DEFAULT_GRAVITY_RANGE_FACTOR=d.DEFAULT_GRAVITY_RANGE_FACTOR=c.gravityRange),c.gravityCompound!=null&&(s.DEFAULT_COMPOUND_GRAVITY_STRENGTH=d.DEFAULT_COMPOUND_GRAVITY_STRENGTH=c.gravityCompound),c.gravityRangeCompound!=null&&(s.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=d.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=c.gravityRangeCompound),c.initialEnergyOnIncremental!=null&&(s.DEFAULT_COOLING_FACTOR_INCREMENTAL=d.DEFAULT_COOLING_FACTOR_INCREMENTAL=c.initialEnergyOnIncremental),c.tilingCompareBy!=null&&(s.TILING_COMPARE_BY=c.tilingCompareBy),c.quality=="proof"?i.QUALITY=2:i.QUALITY=0,s.NODE_DIMENSIONS_INCLUDE_LABELS=d.NODE_DIMENSIONS_INCLUDE_LABELS=i.NODE_DIMENSIONS_INCLUDE_LABELS=c.nodeDimensionsIncludeLabels,s.DEFAULT_INCREMENTAL=d.DEFAULT_INCREMENTAL=i.DEFAULT_INCREMENTAL=!c.randomize,s.ANIMATE=d.ANIMATE=i.ANIMATE=c.animate,s.TILE=c.tile,s.TILING_PADDING_VERTICAL=typeof c.tilingPaddingVertical=="function"?c.tilingPaddingVertical.call():c.tilingPaddingVertical,s.TILING_PADDING_HORIZONTAL=typeof c.tilingPaddingHorizontal=="function"?c.tilingPaddingHorizontal.call():c.tilingPaddingHorizontal,s.DEFAULT_INCREMENTAL=d.DEFAULT_INCREMENTAL=i.DEFAULT_INCREMENTAL=!0,s.PURE_INCREMENTAL=!c.randomize,i.DEFAULT_UNIFORM_LEAF_NODE_SIZES=c.uniformNodeDimensions,c.step=="transformed"&&(s.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,s.ENFORCE_CONSTRAINTS=!1,s.APPLY_LAYOUT=!1),c.step=="enforced"&&(s.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,s.ENFORCE_CONSTRAINTS=!0,s.APPLY_LAYOUT=!1),c.step=="cose"&&(s.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,s.ENFORCE_CONSTRAINTS=!1,s.APPLY_LAYOUT=!0),c.step=="all"&&(c.randomize?s.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:s.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,s.ENFORCE_CONSTRAINTS=!0,s.APPLY_LAYOUT=!0),c.fixedNodeConstraint||c.alignmentConstraint||c.relativePlacementConstraint?s.TREE_REDUCTION_ON_INCREMENTAL=!1:s.TREE_REDUCTION_ON_INCREMENTAL=!0;var v=new h,A=v.newGraphManager();return E(A.addRoot(),e.getTopMostNodes(L),v,c),u(v,A,R),y(v,c),v.runLayout(),Z}}}),212:((r,n,t)=>{var e=(function(){function s(c,g){for(var m=0;m<g.length;m++){var T=g[m];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(c,T.key,T)}}return function(c,g,m){return g&&s(c.prototype,g),m&&s(c,m),c}})();function h(s,c){if(!(s instanceof c))throw TypeError("Cannot call a class as a function")}var a=t(658),p=t(548),o=t(657).spectralLayout,i=t(816).coseLayout,d=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(s){return 4500},idealEdgeLength:function(s){return 50},edgeElasticity:function(s){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(){}});r.exports=(function(){function s(c){h(this,s),this.options=a({},d,c)}return e(s,[{key:"run",value:function(){var c=this,g=this.options,m=g.cy,T=g.eles,L=[],R=[],S=void 0,Y=[];g.fixedNodeConstraint&&(!Array.isArray(g.fixedNodeConstraint)||g.fixedNodeConstraint.length==0)&&(g.fixedNodeConstraint=void 0),g.alignmentConstraint&&(g.alignmentConstraint.vertical&&(!Array.isArray(g.alignmentConstraint.vertical)||g.alignmentConstraint.vertical.length==0)&&(g.alignmentConstraint.vertical=void 0),g.alignmentConstraint.horizontal&&(!Array.isArray(g.alignmentConstraint.horizontal)||g.alignmentConstraint.horizontal.length==0)&&(g.alignmentConstraint.horizontal=void 0)),g.relativePlacementConstraint&&(!Array.isArray(g.relativePlacementConstraint)||g.relativePlacementConstraint.length==0)&&(g.relativePlacementConstraint=void 0),(g.fixedNodeConstraint||g.alignmentConstraint||g.relativePlacementConstraint)&&(g.tile=!1,g.packComponents=!1);var $=void 0,Z=!1;if(m.layoutUtilities&&g.packComponents&&($=m.layoutUtilities("get"),$||($=m.layoutUtilities()),Z=!0),T.nodes().length>0)if(Z){var D=p.getTopMostNodes(g.eles.nodes());if(S=p.connectComponents(m,g.eles,D),S.forEach(function(U){var B=U.boundingBox();Y.push({x:B.x1+B.w/2,y:B.y1+B.h/2})}),g.randomize&&S.forEach(function(U){g.eles=U,L.push(o(g))}),g.quality=="default"||g.quality=="proof"){var J=m.collection();if(g.tile){var l=new Map,E=[],u=[],y=0,v={nodeIndexes:l,xCoords:E,yCoords:u},A=[];if(S.forEach(function(U,B){U.edges().length==0&&(U.nodes().forEach(function(lt,at){J.merge(U.nodes()[at]),lt.isParent()||(v.nodeIndexes.set(U.nodes()[at].id(),y++),v.xCoords.push(U.nodes()[0].position().x),v.yCoords.push(U.nodes()[0].position().y))}),A.push(B))}),J.length>1){var w=J.boundingBox();Y.push({x:w.x1+w.w/2,y:w.y1+w.h/2}),S.push(J),L.push(v);for(var b=A.length-1;b>=0;b--)S.splice(A[b],1),L.splice(A[b],1),Y.splice(A[b],1)}}S.forEach(function(U,B){g.eles=U,R.push(i(g,L[B])),p.relocateComponent(Y[B],R[B],g)})}else S.forEach(function(U,B){p.relocateComponent(Y[B],L[B],g)});var G=new Set;if(S.length>1){var F=[],k=T.filter(function(U){return U.css("display")=="none"});S.forEach(function(U,B){var lt=void 0;if(g.quality=="draft"&&(lt=L[B].nodeIndexes),U.nodes().not(k).length>0){var at={};at.edges=[],at.nodes=[];var Lt=void 0;U.nodes().not(k).forEach(function(W){if(g.quality=="draft")if(!W.isParent())Lt=lt.get(W.id()),at.nodes.push({x:L[B].xCoords[Lt]-W.boundingbox().w/2,y:L[B].yCoords[Lt]-W.boundingbox().h/2,width:W.boundingbox().w,height:W.boundingbox().h});else{var pt=p.calcBoundingBox(W,L[B].xCoords,L[B].yCoords,lt);at.nodes.push({x:pt.topLeftX,y:pt.topLeftY,width:pt.width,height:pt.height})}else R[B][W.id()]&&at.nodes.push({x:R[B][W.id()].getLeft(),y:R[B][W.id()].getTop(),width:R[B][W.id()].getWidth(),height:R[B][W.id()].getHeight()})}),U.edges().forEach(function(W){var pt=W.source(),vt=W.target();if(pt.css("display")!="none"&&vt.css("display")!="none")if(g.quality=="draft"){var Bt=lt.get(pt.id()),Yt=lt.get(vt.id()),_t=[],xt=[];if(pt.isParent()){var kt=p.calcBoundingBox(pt,L[B].xCoords,L[B].yCoords,lt);_t.push(kt.topLeftX+kt.width/2),_t.push(kt.topLeftY+kt.height/2)}else _t.push(L[B].xCoords[Bt]),_t.push(L[B].yCoords[Bt]);if(vt.isParent()){var Ut=p.calcBoundingBox(vt,L[B].xCoords,L[B].yCoords,lt);xt.push(Ut.topLeftX+Ut.width/2),xt.push(Ut.topLeftY+Ut.height/2)}else xt.push(L[B].xCoords[Yt]),xt.push(L[B].yCoords[Yt]);at.edges.push({startX:_t[0],startY:_t[1],endX:xt[0],endY:xt[1]})}else R[B][pt.id()]&&R[B][vt.id()]&&at.edges.push({startX:R[B][pt.id()].getCenterX(),startY:R[B][pt.id()].getCenterY(),endX:R[B][vt.id()].getCenterX(),endY:R[B][vt.id()].getCenterY()})}),at.nodes.length>0&&(F.push(at),G.add(B))}});var V=$.packComponents(F,g.randomize).shifts;if(g.quality=="draft")L.forEach(function(U,B){var lt=U.xCoords.map(function(Lt){return Lt+V[B].dx}),at=U.yCoords.map(function(Lt){return Lt+V[B].dy});U.xCoords=lt,U.yCoords=at});else{var K=0;G.forEach(function(U){Object.keys(R[U]).forEach(function(B){var lt=R[U][B];lt.setCenter(lt.getCenterX()+V[K].dx,lt.getCenterY()+V[K].dy)}),K++})}}}else{var H=g.eles.boundingBox();if(Y.push({x:H.x1+H.w/2,y:H.y1+H.h/2}),g.randomize){var X=o(g);L.push(X)}g.quality=="default"||g.quality=="proof"?(R.push(i(g,L[0])),p.relocateComponent(Y[0],R[0],g)):p.relocateComponent(Y[0],L[0],g)}var O=function(U,B){if(g.quality=="default"||g.quality=="proof"){typeof U=="number"&&(U=B);var lt=void 0,at=void 0,Lt=U.data("id");return R.forEach(function(pt){Lt in pt&&(lt={x:pt[Lt].getRect().getCenterX(),y:pt[Lt].getRect().getCenterY()},at=pt[Lt])}),g.nodeDimensionsIncludeLabels&&(at.labelWidth&&(at.labelPosHorizontal=="left"?lt.x+=at.labelWidth/2:at.labelPosHorizontal=="right"&&(lt.x-=at.labelWidth/2)),at.labelHeight&&(at.labelPosVertical=="top"?lt.y+=at.labelHeight/2:at.labelPosVertical=="bottom"&&(lt.y-=at.labelHeight/2))),lt??(lt={x:U.position("x"),y:U.position("y")}),{x:lt.x,y:lt.y}}else{var W=void 0;return L.forEach(function(pt){var vt=pt.nodeIndexes.get(U.id());vt!=null&&(W={x:pt.xCoords[vt],y:pt.yCoords[vt]})}),W??(W={x:U.position("x"),y:U.position("y")}),{x:W.x,y:W.y}}};if(g.quality=="default"||g.quality=="proof"||g.randomize){var z=p.calcParentsWithoutChildren(m,T),et=T.filter(function(U){return U.css("display")=="none"});g.eles=T.not(et),T.nodes().not(":parent").not(et).layoutPositions(c,g,O),z.length>0&&z.forEach(function(U){U.position(O(U))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),s})()}),657:((r,n,t)=>{var e=t(548),h=t(140).layoutBase.Matrix,a=t(140).layoutBase.SVD;r.exports={spectralLayout:function(p){var o=p.cy,i=p.eles,d=i.nodes(),s=i.nodes(":parent"),c=new Map,g=new Map,m=new Map,T=[],L=[],R=[],S=[],Y=[],$=[],Z=[],D=[],J=void 0,l=1e8,E=1e-9,u=p.piTol,y=p.samplingType,v=p.nodeSeparation,A=void 0,w=function(){for(var st=0,ot=0,ct=!1;ot<A;){st=Math.floor(Math.random()*J),ct=!1;for(var I=0;I<ot;I++)if(S[I]==st){ct=!0;break}if(!ct)S[ot]=st,ot++;else continue}},b=function(st,ot,ct){for(var I=[],P=0,q=0,j=0,tt=void 0,Et=[],yt=0,it=1,ft=0;ft<J;ft++)Et[ft]=l;for(I[q]=st,Et[st]=0;q>=P;){j=I[P++];for(var It=T[j],wt=0;wt<It.length;wt++)tt=g.get(It[wt]),Et[tt]==l&&(Et[tt]=Et[j]+1,I[++q]=tt);$[j][ot]=Et[j]*v}if(ct){for(var mt=0;mt<J;mt++)$[mt][ot]<Y[mt]&&(Y[mt]=$[mt][ot]);for(var ht=0;ht<J;ht++)Y[ht]>yt&&(yt=Y[ht],it=ht)}return it},G=function(st){var ot=void 0;if(st){ot=Math.floor(Math.random()*J);for(var ct=0;ct<J;ct++)Y[ct]=l;for(var I=0;I<A;I++)S[I]=ot,ot=b(ot,I,st)}else{w();for(var P=0;P<A;P++)b(S[P],P,st,!1)}for(var q=0;q<J;q++)for(var j=0;j<A;j++)$[q][j]*=$[q][j];for(var tt=0;tt<A;tt++)Z[tt]=[];for(var Et=0;Et<A;Et++)for(var yt=0;yt<A;yt++)Z[Et][yt]=$[S[yt]][Et]},F=function(){for(var st=a.svd(Z),ot=st.S,ct=st.U,I=st.V,P=ot[0]*ot[0]*ot[0],q=[],j=0;j<A;j++){q[j]=[];for(var tt=0;tt<A;tt++)q[j][tt]=0,j==tt&&(q[j][tt]=ot[j]/(ot[j]*ot[j]+P/(ot[j]*ot[j])))}D=h.multMat(h.multMat(I,q),h.transpose(ct))},k=function(){for(var st=void 0,ot=void 0,ct=[],I=[],P=[],q=[],j=0;j<J;j++)ct[j]=Math.random(),I[j]=Math.random();ct=h.normalize(ct),I=h.normalize(I);for(var tt=0,Et=E,yt=E,it=void 0;;){tt++;for(var ft=0;ft<J;ft++)P[ft]=ct[ft];if(ct=h.multGamma(h.multL(h.multGamma(P),$,D)),st=h.dotProduct(P,ct),ct=h.normalize(ct),Et=h.dotProduct(P,ct),it=Math.abs(Et/yt),it<=1+u&&it>=1)break;yt=Et}for(var It=0;It<J;It++)P[It]=ct[It];for(tt=0,yt=E;;){tt++;for(var wt=0;wt<J;wt++)q[wt]=I[wt];if(q=h.minusOp(q,h.multCons(P,h.dotProduct(P,q))),I=h.multGamma(h.multL(h.multGamma(q),$,D)),ot=h.dotProduct(q,I),I=h.normalize(I),Et=h.dotProduct(q,I),it=Math.abs(Et/yt),it<=1+u&&it>=1)break;yt=Et}for(var mt=0;mt<J;mt++)q[mt]=I[mt];L=h.multCons(P,Math.sqrt(Math.abs(st))),R=h.multCons(q,Math.sqrt(Math.abs(ot)))};e.connectComponents(o,i,e.getTopMostNodes(d),c),s.forEach(function(st){e.connectComponents(o,i,e.getTopMostNodes(st.descendants().intersection(i)),c)});for(var V=0,K=0;K<d.length;K++)d[K].isParent()||g.set(d[K].id(),V++);var H=!0,X=!1,O=void 0;try{for(var z=c.keys()[Symbol.iterator](),et;!(H=(et=z.next()).done);H=!0){var U=et.value;g.set(U,V++)}}catch(st){X=!0,O=st}finally{try{!H&&z.return&&z.return()}finally{if(X)throw O}}for(var B=0;B<g.size;B++)T[B]=[];s.forEach(function(st){for(var ot=st.children().intersection(i);ot.nodes(":childless").length==0;)ot=ot.nodes()[0].children().intersection(i);var ct=0,I=ot.nodes(":childless")[0].connectedEdges().length;ot.nodes(":childless").forEach(function(P,q){P.connectedEdges().length<I&&(I=P.connectedEdges().length,ct=q)}),m.set(st.id(),ot.nodes(":childless")[ct].id())}),d.forEach(function(st){var ot=void 0;ot=st.isParent()?g.get(m.get(st.id())):g.get(st.id()),st.neighborhood().nodes().forEach(function(ct){i.intersection(st.edgesWith(ct)).length>0&&(ct.isParent()?T[ot].push(m.get(ct.id())):T[ot].push(ct.id()))})});var lt=function(st){var ot=g.get(st),ct=void 0;c.get(st).forEach(function(I){ct=o.getElementById(I).isParent()?m.get(I):I,T[ot].push(ct),T[g.get(ct)].push(st)})},at=!0,Lt=!1,W=void 0;try{for(var pt=c.keys()[Symbol.iterator](),vt;!(at=(vt=pt.next()).done);at=!0){var Bt=vt.value;lt(Bt)}}catch(st){Lt=!0,W=st}finally{try{!at&&pt.return&&pt.return()}finally{if(Lt)throw W}}J=g.size;var Yt=void 0;if(J>2){A=J<p.sampleSize?J:p.sampleSize;for(var _t=0;_t<J;_t++)$[_t]=[];for(var xt=0;xt<A;xt++)D[xt]=[];return p.quality=="draft"||p.step=="all"?(G(y),F(),k(),Yt={nodeIndexes:g,xCoords:L,yCoords:R}):(g.forEach(function(st,ot){L.push(o.getElementById(ot).position("x")),R.push(o.getElementById(ot).position("y"))}),Yt={nodeIndexes:g,xCoords:L,yCoords:R}),Yt}else{var kt=g.keys(),Ut=o.getElementById(kt.next().value),Rt=Ut.position(),Vt=Ut.outerWidth();if(L.push(Rt.x),R.push(Rt.y),J==2){var Gt=o.getElementById(kt.next().value).outerWidth();L.push(Rt.x+Vt/2+Gt/2+p.idealEdgeLength),R.push(Rt.y)}return Yt={nodeIndexes:g,xCoords:L,yCoords:R},Yt}}}}),579:((r,n,t)=>{var e=t(212),h=function(a){a&&a("layout","fcose",e)};typeof cytoscape<"u"&&h(cytoscape),r.exports=h}),140:(r=>{r.exports=C})},N={};function f(r){var n=N[r];if(n!==void 0)return n.exports;var t=N[r]={exports:{}};return M[r](t,t.exports,f),t.exports}return f(579)})()})}))(),1),Ie={L:"left",R:"right",T:"top",B:"bottom"},_e={L:gt(_=>`${_},${_/2} 0,${_} 0,0`,"L"),R:gt(_=>`0,${_/2} ${_},0 ${_},${_}`,"R"),T:gt(_=>`0,0 ${_},0 ${_/2},${_}`,"T"),B:gt(_=>`${_/2},0 ${_},${_} 0,${_}`,"B")},oe={L:gt((_,x)=>_-x+2,"L"),R:gt((_,x)=>_-2,"R"),T:gt((_,x)=>_-x+2,"T"),B:gt((_,x)=>_-2,"B")},hi=gt(function(_){return St(_)?_==="L"?"R":"L":_==="T"?"B":"T"},"getOppositeArchitectureDirection"),xe=gt(function(_){let x=_;return x==="L"||x==="R"||x==="T"||x==="B"},"isArchitectureDirection"),St=gt(function(_){let x=_;return x==="L"||x==="R"},"isArchitectureDirectionX"),Wt=gt(function(_){let x=_;return x==="T"||x==="B"},"isArchitectureDirectionY"),fe=gt(function(_,x){let C=St(_)&&Wt(x),M=Wt(_)&&St(x);return C||M},"isArchitectureDirectionXY"),li=gt(function(_){let x=_[0],C=_[1],M=St(x)&&Wt(C),N=Wt(x)&&St(C);return M||N},"isArchitecturePairXY"),di=gt(function(_){return _!=="LL"&&_!=="RR"&&_!=="TT"&&_!=="BB"},"isValidArchitectureDirectionPair"),pe=gt(function(_,x){let C=`${_}${x}`;return di(C)?C:void 0},"getArchitectureDirectionPair"),gi=gt(function([_,x],C){let M=C[0],N=C[1];return St(M)?Wt(N)?[_+(M==="L"?-1:1),x+(N==="T"?1:-1)]:[_+(M==="L"?-1:1),x]:St(N)?[_+(N==="L"?1:-1),x+(M==="T"?1:-1)]:[_,x+(M==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),ci=gt(function(_){return _==="LT"||_==="TL"?[1,1]:_==="BL"||_==="LB"?[1,-1]:_==="BR"||_==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),ui=gt(function(_,x){return fe(_,x)?"bend":St(_)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),fi=gt(function(_){return _.type==="service"},"isArchitectureService"),pi=gt(function(_){return _.type==="junction"},"isArchitectureJunction"),Me=gt(_=>_.data(),"edgeData"),Kt=gt(_=>_.data(),"nodeData"),mi=Ke.architecture,Oe=(te=class{constructor(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.elements={},this.setAccTitle=Ve,this.getAccTitle=Qe,this.setDiagramTitle=qe,this.getDiagramTitle=We,this.getAccDescription=Ze,this.setAccDescription=ei,this.clear()}clear(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.dataStructures=void 0,this.elements={},Je()}addService({id:x,icon:C,in:M,title:N,iconText:f}){if(this.registeredIds[x]!==void 0)throw Error(`The service id [${x}] is already in use by another ${this.registeredIds[x]}`);if(M!==void 0){if(x===M)throw Error(`The service [${x}] cannot be placed within itself`);if(this.registeredIds[M]===void 0)throw Error(`The service [${x}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds[M]==="node")throw Error(`The service [${x}]'s parent is not a group`)}this.registeredIds[x]="node",this.nodes[x]={id:x,type:"service",icon:C,iconText:f,title:N,edges:[],in:M}}getServices(){return Object.values(this.nodes).filter(fi)}addJunction({id:x,in:C}){this.registeredIds[x]="node",this.nodes[x]={id:x,type:"junction",edges:[],in:C}}getJunctions(){return Object.values(this.nodes).filter(pi)}getNodes(){return Object.values(this.nodes)}getNode(x){return this.nodes[x]??null}addGroup({id:x,icon:C,in:M,title:N}){var f,r,n;if(((f=this.registeredIds)==null?void 0:f[x])!==void 0)throw Error(`The group id [${x}] is already in use by another ${this.registeredIds[x]}`);if(M!==void 0){if(x===M)throw Error(`The group [${x}] cannot be placed within itself`);if(((r=this.registeredIds)==null?void 0:r[M])===void 0)throw Error(`The group [${x}]'s parent does not exist. Please make sure the parent is created before this group`);if(((n=this.registeredIds)==null?void 0:n[M])==="node")throw Error(`The group [${x}]'s parent is not a group`)}this.registeredIds[x]="group",this.groups[x]={id:x,icon:C,title:N,in:M}}getGroups(){return Object.values(this.groups)}addEdge({lhsId:x,rhsId:C,lhsDir:M,rhsDir:N,lhsInto:f,rhsInto:r,lhsGroup:n,rhsGroup:t,title:e}){if(!xe(M))throw Error(`Invalid direction given for left hand side of edge ${x}--${C}. Expected (L,R,T,B) got ${String(M)}`);if(!xe(N))throw Error(`Invalid direction given for right hand side of edge ${x}--${C}. Expected (L,R,T,B) got ${String(N)}`);if(this.nodes[x]===void 0&&this.groups[x]===void 0)throw Error(`The left-hand id [${x}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(this.nodes[C]===void 0&&this.groups[C]===void 0)throw Error(`The right-hand id [${C}] does not yet exist. Please create the service/group before declaring an edge to it.`);let h=this.nodes[x].in,a=this.nodes[C].in;if(n&&h&&a&&h==a)throw Error(`The left-hand id [${x}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(t&&h&&a&&h==a)throw Error(`The right-hand id [${C}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);let p={lhsId:x,lhsDir:M,lhsInto:f,lhsGroup:n,rhsId:C,rhsDir:N,rhsInto:r,rhsGroup:t,title:e};this.edges.push(p),this.nodes[x]&&this.nodes[C]&&(this.nodes[x].edges.push(this.edges[this.edges.length-1]),this.nodes[C].edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}getDataStructures(){if(this.dataStructures===void 0){let x={},C=Object.entries(this.nodes).reduce((t,[e,h])=>(t[e]=h.edges.reduce((a,p)=>{var d,s;let o=(d=this.getNode(p.lhsId))==null?void 0:d.in,i=(s=this.getNode(p.rhsId))==null?void 0:s.in;if(o&&i&&o!==i){let c=ui(p.lhsDir,p.rhsDir);c!=="bend"&&(x[o]??(x[o]={}),x[o][i]=c,x[i]??(x[i]={}),x[i][o]=c)}if(p.lhsId===e){let c=pe(p.lhsDir,p.rhsDir);c&&(a[c]=p.rhsId)}else{let c=pe(p.rhsDir,p.lhsDir);c&&(a[c]=p.lhsId)}return a},{}),t),{}),M=Object.keys(C)[0],N={[M]:1},f=Object.keys(C).reduce((t,e)=>e===M?t:{...t,[e]:1},{}),r=gt(t=>{let e={[t]:[0,0]},h=[t];for(;h.length>0;){let a=h.shift();if(a){N[a]=1,delete f[a];let p=C[a],[o,i]=e[a];Object.entries(p).forEach(([d,s])=>{N[s]||(e[s]=gi([o,i],d),h.push(s))})}}return e},"BFS"),n=[r(M)];for(;Object.keys(f).length>0;)n.push(r(Object.keys(f)[0]));this.dataStructures={adjList:C,spatialMaps:n,groupAlignments:x}}return this.dataStructures}setElementForId(x,C){this.elements[x]=C}getElementById(x){return this.elements[x]}getConfig(){return Be({...mi,...ti().architecture})}getConfigField(x){return this.getConfig()[x]}},gt(te,"ArchitectureDB"),te),vi=gt((_,x)=>{ni(_,x),_.groups.map(C=>x.addGroup(C)),_.services.map(C=>x.addService({...C,type:"service"})),_.junctions.map(C=>x.addJunction({...C,type:"junction"})),_.edges.map(C=>x.addEdge(C))},"populateDb"),De={parser:{yy:void 0},parse:gt(async _=>{var M;let x=await ai("architecture",_);Ae.debug(x);let C=(M=De.parser)==null?void 0:M.yy;if(!(C instanceof Oe))throw Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");vi(x,C)},"parse")},yi=gt(_=>`
2
2
  .edge {
3
3
  stroke-width: ${_.archEdgeWidth};
4
4
  stroke: ${_.archEdgeColor};