@tickernelz/paperclip-pro-ui 2026.925.0
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.
- package/README.md +30 -0
- package/dist/android-chrome-192x192.png +0 -0
- package/dist/android-chrome-512x512.png +0 -0
- package/dist/announcement-preview.svg +11 -0
- package/dist/apple-touch-icon.png +0 -0
- package/dist/assets/AgentAvatar-BR1Z_L_Z.js +1 -0
- package/dist/assets/AgentIdentity-BgihkjQU.js +1 -0
- package/dist/assets/Agents.production-BsKiBknO.js +2 -0
- package/dist/assets/CompanyActivity.production-Bp4gxpq3.js +1 -0
- package/dist/assets/CompanyExport-BvUhFYBr.js +4 -0
- package/dist/assets/CompanySkills.production-htb9HH0N.js +10 -0
- package/dist/assets/Costs.production-CzulNW6Y.js +1 -0
- package/dist/assets/EmptyState-DOb3I5aU.js +1 -0
- package/dist/assets/MarkdownBody-AdwNLx7A.js +16 -0
- package/dist/assets/MarkdownEditor-B3NYD32f.js +85 -0
- package/dist/assets/OrgChart.production-DbBigpMZ.js +1 -0
- package/dist/assets/PageSkeleton-C-C3Xlc_.js +1 -0
- package/dist/assets/RoutineDetail.production-DJn3YZiR.js +1 -0
- package/dist/assets/RoutineRunVariablesDialog-BkLLbP3a.js +5 -0
- package/dist/assets/Routines.production-BBDkh1yN.js +1 -0
- package/dist/assets/SidebarContext-9UFQ2Pex.js +1 -0
- package/dist/assets/StatusIcon-DMDp_WJw.js +1 -0
- package/dist/assets/abnfDiagram-VCTEODGH-wiE_K2ku.js +1 -0
- package/dist/assets/agents-DrLpWAcm.js +1 -0
- package/dist/assets/apl-MHzTCvfx.js +1 -0
- package/dist/assets/arc-BQ55EiX2.js +1 -0
- package/dist/assets/architecture-7GRP2DOG-B-bRgmfI.js +1 -0
- package/dist/assets/architectureDiagram-5GKGNRK7-BkhBoP5_.js +36 -0
- package/dist/assets/array-CL5Tisss.js +1 -0
- package/dist/assets/asciiarmor-DFLNSgns.js +1 -0
- package/dist/assets/asn1-CfPVWRYE.js +1 -0
- package/dist/assets/asterisk-CJ4OeA7Y.js +1 -0
- package/dist/assets/badge-BLr1M3ne.js +1 -0
- package/dist/assets/blockDiagram-I7D4REHJ-fyVn7r-9.js +129 -0
- package/dist/assets/bot-CET4VfU-.js +1 -0
- package/dist/assets/brainfuck-NEHkmXMc.js +1 -0
- package/dist/assets/button-DCI8NFig.js +1 -0
- package/dist/assets/c4Diagram-7LVT6UL2-BqC3qTZS.js +38 -0
- package/dist/assets/card-BD8MkPAL.js +1 -0
- package/dist/assets/channel-0B5iAV5A.js +1 -0
- package/dist/assets/character-CguPM7IG.js +1 -0
- package/dist/assets/check-C6myARng.js +1 -0
- package/dist/assets/checkbox-CmYq-YMP.js +1 -0
- package/dist/assets/chevron-down-D2wNtbQf.js +1 -0
- package/dist/assets/chevron-right-CU6xIk8W.js +1 -0
- package/dist/assets/chunk-2Q5K7J3B-CkPHWFj-.js +1 -0
- package/dist/assets/chunk-4HAMMTFA-CGGd_Pxz.js +62 -0
- package/dist/assets/chunk-5VM5RSS4-2H3r6wq0.js +15 -0
- package/dist/assets/chunk-75Z2AOVW-BaPl5WA6.js +2 -0
- package/dist/assets/chunk-DU6HZSFF-2P5iNHqg.js +127 -0
- package/dist/assets/chunk-F27PBJKO-Ci7GmRgM.js +1 -0
- package/dist/assets/chunk-FOHPRMQF-7Ogwfo6e.js +153 -0
- package/dist/assets/chunk-GMAD6QVW-BfvaaEBW.js +70 -0
- package/dist/assets/chunk-GVQU2GXP-Cwp_Wpj2.js +1 -0
- package/dist/assets/chunk-IMKFNOWR-BjXu-u1C.js +231 -0
- package/dist/assets/chunk-JWPE2WC7--HEGjv3t.js +1 -0
- package/dist/assets/chunk-L3NEJ4N5-JUd1UqX1.js +1 -0
- package/dist/assets/chunk-OSK3NFVY-DlrxddG-.js +10 -0
- package/dist/assets/chunk-P2QGCYS3-CjqEi3mx.js +1 -0
- package/dist/assets/chunk-POPQ4Y6H-BytmIqFc.js +1 -0
- package/dist/assets/chunk-PWAF6VOD-CR3rNBNB.js +1 -0
- package/dist/assets/chunk-SHT3W25Y-B1Klag0Z.js +168 -0
- package/dist/assets/chunk-SVP7TREG-A4BO1_5v.js +88 -0
- package/dist/assets/chunk-TICWLB2K-B4lRXha0.js +206 -0
- package/dist/assets/chunk-XXDRQBXY-BhrH-9FX.js +1 -0
- package/dist/assets/chunk-Y2CYZVJY-OvsAdhaO.js +1 -0
- package/dist/assets/classDiagram-ZZMXUADV-icHQAbF4.js +1 -0
- package/dist/assets/classDiagram-v2-VYDZK3BY-icHQAbF4.js +1 -0
- package/dist/assets/clike-CIx9nZSv.js +1 -0
- package/dist/assets/clipboard-BZT4l65i.js +1 -0
- package/dist/assets/clojure-DFaIEz5O.js +1 -0
- package/dist/assets/cmake-koz-qBlo.js +1 -0
- package/dist/assets/cobol-Bo8Zw9gB.js +1 -0
- package/dist/assets/coffeescript-CXYzYf-Y.js +1 -0
- package/dist/assets/commonlisp-C4OOCwkD.js +1 -0
- package/dist/assets/company-members-C1IoXITE.js +1 -0
- package/dist/assets/cose-bilkent-JH36ORCC-ShY6JvWh.js +1 -0
- package/dist/assets/createLucideIcon-D-iIM3hK.js +92 -0
- package/dist/assets/crystal-BlJXQDvy.js +1 -0
- package/dist/assets/css-DEZwfVpY.js +1 -0
- package/dist/assets/cynefin-OW5HDTMX-SmJ8tLYh.js +1 -0
- package/dist/assets/cynefinDiagram-5FMLGOSQ-Qp2NNXUx.js +62 -0
- package/dist/assets/cypher-z2oFsVv2.js +1 -0
- package/dist/assets/cytoscape.esm-B68Piqei.js +321 -0
- package/dist/assets/d-Dkt6y7AQ.js +1 -0
- package/dist/assets/dagre-Bnei_7lW.js +1 -0
- package/dist/assets/dagre-GXQ25YYZ-C1bu-Sbk.js +4 -0
- package/dist/assets/defaultLocale-C2Bpu8Ih.js +1 -0
- package/dist/assets/definition-qmfin__X.js +1 -0
- package/dist/assets/diagram-S7CK7UJ4-D0cqRe3j.js +30 -0
- package/dist/assets/diagram-UQ7AKVKN-DdEgR6LR.js +41 -0
- package/dist/assets/diagram-VSXAHHWV-B_APewr5.js +3 -0
- package/dist/assets/diagram-VX7I27RA-B2quR8-z.js +24 -0
- package/dist/assets/diagram-Z3DM3KII-BpQRCt5N.js +24 -0
- package/dist/assets/diff-C60bAYOU.js +1 -0
- package/dist/assets/dist-B0TRtKS8.js +1 -0
- package/dist/assets/dist-B3Uu-urE.js +1 -0
- package/dist/assets/dist-BRrJTSwu.js +1 -0
- package/dist/assets/dist-BX-OCtve.js +7 -0
- package/dist/assets/dist-BXoB5t8y.js +1 -0
- package/dist/assets/dist-BeN6V24C.js +1 -0
- package/dist/assets/dist-Bs8B1orN.js +1 -0
- package/dist/assets/dist-BuzarGBs.js +1 -0
- package/dist/assets/dist-C2jegCUe.js +2 -0
- package/dist/assets/dist-C8CoeHVO.js +6 -0
- package/dist/assets/dist-CBo4NvFW.js +1 -0
- package/dist/assets/dist-CSbL7rtN.js +1 -0
- package/dist/assets/dist-CWrRKmYk.js +1 -0
- package/dist/assets/dist-CXeuJs-w.js +1 -0
- package/dist/assets/dist-Cc3Bt6H4.js +1 -0
- package/dist/assets/dist-Cj4C2HPs.js +1 -0
- package/dist/assets/dist-DCJXgQu0.js +13 -0
- package/dist/assets/dist-DKJ0FdKS.js +1 -0
- package/dist/assets/dist-DZgNtG8a.js +1 -0
- package/dist/assets/dist-DoBOMP6Y.js +1 -0
- package/dist/assets/dist-DpmnjHX9.js +1 -0
- package/dist/assets/dist-DsLYqWnM.js +1 -0
- package/dist/assets/dist-DyyIM2uF.js +3 -0
- package/dist/assets/dist-YH7EZ8d1.js +1 -0
- package/dist/assets/dist-oQmcCiSD.js +1 -0
- package/dist/assets/dist-sLIQSVjm.js +13 -0
- package/dist/assets/dist-xQwUswee.js +1 -0
- package/dist/assets/dockerfile-BttNdtK0.js +1 -0
- package/dist/assets/dtd-CCVZU5Da.js +1 -0
- package/dist/assets/dylan-3pmV5wzs.js +1 -0
- package/dist/assets/ebnf-bm-I2WIh.js +1 -0
- package/dist/assets/ebnfDiagram-PWID7BFC-C9x73jSZ.js +1 -0
- package/dist/assets/ecl-BIv3PrZb.js +1 -0
- package/dist/assets/eiffel-DuLnr4-r.js +1 -0
- package/dist/assets/elm-njbaCU-L.js +1 -0
- package/dist/assets/environments-Cd-g_MmN.js +1 -0
- package/dist/assets/erDiagram-RLTQ6QDP-Dkp7z94L.js +99 -0
- package/dist/assets/erlang-CuhOC2I8.js +1 -0
- package/dist/assets/eventmodeling-NTZA5JFV-CCSRuDgA.js +1 -0
- package/dist/assets/external-link-BKz-OKDG.js +1 -0
- package/dist/assets/factor-CM3-9V3b.js +1 -0
- package/dist/assets/fcl-nWsMJ92o.js +1 -0
- package/dist/assets/file-text-DXa-cUrm.js +1 -0
- package/dist/assets/flowDiagram-HODETNUW-CDvpIOlT.js +1 -0
- package/dist/assets/forth-BQ9HrCVY.js +1 -0
- package/dist/assets/fortran-DHJe28ev.js +1 -0
- package/dist/assets/ganttDiagram-EL5Y4UJY-CJs7mNJX.js +292 -0
- package/dist/assets/gas-ByO0qYMr.js +1 -0
- package/dist/assets/gherkin-CwOmHL5K.js +1 -0
- package/dist/assets/gitGraph-4MIJSDKK-SUTvd_QT.js +1 -0
- package/dist/assets/gitGraphDiagram-WWUBYQGX-ByeD7NPE.js +106 -0
- package/dist/assets/graphlib-DHhK3saS.js +1 -0
- package/dist/assets/groovy-ByXGF8cx.js +1 -0
- package/dist/assets/haskell-CHSpCNOy.js +1 -0
- package/dist/assets/haxe-P2jh68ck.js +1 -0
- package/dist/assets/health-Dc13TJNg.js +1 -0
- package/dist/assets/heartbeats-CY77VTM_.js +1 -0
- package/dist/assets/http-0jwMmfWP.js +1 -0
- package/dist/assets/idl-DTVVj6r5.js +1 -0
- package/dist/assets/index-CWuperHN.css +1 -0
- package/dist/assets/index-ZrmXLuMX.js +733 -0
- package/dist/assets/info-A6RAGUB7-DP8pqSDg.js +1 -0
- package/dist/assets/infoDiagram-27XIBGKW-B6sR9qVK.js +2 -0
- package/dist/assets/init-BXPE0p7i.js +1 -0
- package/dist/assets/input-BkGpMopE.js +1 -0
- package/dist/assets/ishikawaDiagram-5VMMS53U-HFQ3gYGN.js +70 -0
- package/dist/assets/javascript-Cblpdx44.js +1 -0
- package/dist/assets/journeyDiagram-3NMN7TZE-BtoNErTz.js +139 -0
- package/dist/assets/julia-KVJvUu_F.js +1 -0
- package/dist/assets/kanban-definition-UXKFOSKX-Y55yoRj4.js +89 -0
- package/dist/assets/katex-Du_FPwxl.js +257 -0
- package/dist/assets/label-C-aWneNy.js +5 -0
- package/dist/assets/line-CJEZO7lL.js +1 -0
- package/dist/assets/linear-s0r5e4qh.js +1 -0
- package/dist/assets/livescript-DSHsJPcD.js +1 -0
- package/dist/assets/loader-circle-DwlcG9aS.js +1 -0
- package/dist/assets/lua-Vher-70I.js +1 -0
- package/dist/assets/mathematica-CE9SaVsW.js +1 -0
- package/dist/assets/mbox-JGl1Fgvq.js +1 -0
- package/dist/assets/mention-chips-pBjlxGok.js +17 -0
- package/dist/assets/mermaid-parser.core-CHJSk6z0.js +7 -0
- package/dist/assets/mermaid.core-G_BSi0G0.js +42 -0
- package/dist/assets/mindmap-definition-YA3MSWOX-BnlANYwV.js +96 -0
- package/dist/assets/mirc-BGWbO906.js +1 -0
- package/dist/assets/mllike-DuNQsEw8.js +1 -0
- package/dist/assets/model-DL5biheO.js +1 -0
- package/dist/assets/modelica-5XCgKQt8.js +1 -0
- package/dist/assets/mscgen-mVFg19ri.js +1 -0
- package/dist/assets/mumps-C7oS353s.js +1 -0
- package/dist/assets/nginx-DXVlpyCz.js +1 -0
- package/dist/assets/nsis-KFC6hioG.js +1 -0
- package/dist/assets/ntriples-5ckCopnn.js +1 -0
- package/dist/assets/octagon-alert-CTp78pR9.js +1 -0
- package/dist/assets/octave-D1J2QQNt.js +1 -0
- package/dist/assets/ordinal-BJyFM1v8.js +1 -0
- package/dist/assets/oz-CPsllMDD.js +1 -0
- package/dist/assets/packet-AYTQ26CC-DHxu-C4z.js +1 -0
- package/dist/assets/pascal-B-I6JP0Y.js +1 -0
- package/dist/assets/path-D6mommQw.js +1 -0
- package/dist/assets/pegDiagram-XKGWAZYB-CHhCzuLt.js +1 -0
- package/dist/assets/perl-CI8WIWBi.js +1 -0
- package/dist/assets/pie-WAS4IAKB-CP_gIBKD.js +1 -0
- package/dist/assets/pieDiagram-E7YTZNPT-CEGI1j0Q.js +39 -0
- package/dist/assets/pig-FQI0W3S3.js +1 -0
- package/dist/assets/powershell-BAu6x78A.js +1 -0
- package/dist/assets/preload-helper-CceJXRIF.js +1 -0
- package/dist/assets/prod-COP_vZWu.js +495 -0
- package/dist/assets/properties-BKTTDgau.js +1 -0
- package/dist/assets/protobuf-UWh8gh_j.js +1 -0
- package/dist/assets/pug-C20tNwmy.js +1 -0
- package/dist/assets/puppet-BAHVzCkO.js +1 -0
- package/dist/assets/python-C2DOnsac.js +1 -0
- package/dist/assets/q-Cooe-Nh8.js +1 -0
- package/dist/assets/quadrantDiagram-AXDQQJYC-BfVC-A1t.js +7 -0
- package/dist/assets/r-CktBKya9.js +1 -0
- package/dist/assets/radar-RG4KPBEZ-DbvKbV6l.js +1 -0
- package/dist/assets/railroad-74A4TZTK-BPHjMWIu.js +1 -0
- package/dist/assets/railroad-abnf-HS5TGJTU-DKY8xCGL.js +1 -0
- package/dist/assets/railroad-ebnf-LZEXJU2U-DK75GN4x.js +1 -0
- package/dist/assets/railroad-peg-WCYAUIDC-0bHp9JB9.js +1 -0
- package/dist/assets/railroadDiagram-O6MQD6OU-Bwh6snZb.js +1 -0
- package/dist/assets/requirementDiagram-BXWQKSXE-NEvTOdsw.js +84 -0
- package/dist/assets/rolldown-runtime-ZpX3ckPj.js +1 -0
- package/dist/assets/rotate-ccw-BhopZISX.js +1 -0
- package/dist/assets/rough.esm-DnC5Tr1g.js +1 -0
- package/dist/assets/router-BxwR1PwE.js +15 -0
- package/dist/assets/rpm-Csj9nLHl.js +1 -0
- package/dist/assets/ruby-bGx9eo-K.js +1 -0
- package/dist/assets/runtime-IAg0vdY9.js +4137 -0
- package/dist/assets/sankeyDiagram-P5KCCOFB-AvKb1lr-.js +40 -0
- package/dist/assets/sas-Drou_EQ9.js +1 -0
- package/dist/assets/save-D5KpMLil.js +1 -0
- package/dist/assets/scheme-DcjG9bAf.js +1 -0
- package/dist/assets/select-BqqjvKLd.js +1 -0
- package/dist/assets/sequenceDiagram-WJ2MYXX4-BP0QZnHN.js +162 -0
- package/dist/assets/sheet-Z4n6AEBA.js +1 -0
- package/dist/assets/shell-BSKClwid.js +1 -0
- package/dist/assets/sieve-CcvsXPZo.js +1 -0
- package/dist/assets/simple-mode-B79cVo-x.js +1 -0
- package/dist/assets/sizeCapture-INFHLROL-XURNLuv_.js +1 -0
- package/dist/assets/skeleton-BxD7FB8M.js +1 -0
- package/dist/assets/smalltalk-Cmg-4mjQ.js +1 -0
- package/dist/assets/solr-Dj8ahEwG.js +1 -0
- package/dist/assets/sparql-LAJYmgfk.js +1 -0
- package/dist/assets/spreadsheet-B8doD_pL.js +1 -0
- package/dist/assets/sql-C3kWxFGw.js +1 -0
- package/dist/assets/src-Bssc388C.js +1 -0
- package/dist/assets/stateDiagram-D77RDMKH-Ce0Wj7yz.js +1 -0
- package/dist/assets/stateDiagram-v2-MP3YSRHH-CREL-f_f.js +1 -0
- package/dist/assets/stex-CW6K5Nmu.js +1 -0
- package/dist/assets/stylus-BS-Ienrc.js +1 -0
- package/dist/assets/swift-BD82LMDK.js +1 -0
- package/dist/assets/swimlanes-42K2YHIH-CX7zPtNU.js +1 -0
- package/dist/assets/swimlanesDiagram-VR7AAH4N-B22pD4D6.js +8 -0
- package/dist/assets/tabs-Dqn3cNzC.js +1 -0
- package/dist/assets/tcl-RZa1cqc-.js +1 -0
- package/dist/assets/textile-C-BY_OGF.js +1 -0
- package/dist/assets/tiddlywiki-C9bm_Oju.js +1 -0
- package/dist/assets/tiki-DJOT-rFT.js +1 -0
- package/dist/assets/timeline-definition-24CTP7MA-Bw21rjHm.js +120 -0
- package/dist/assets/toml-Civ2fTsu.js +1 -0
- package/dist/assets/treeView-Q6P3EWNA-CzxfDhvq.js +1 -0
- package/dist/assets/treemap-WGGIJYW6-DNWYF4zd.js +1 -0
- package/dist/assets/triangle-alert-DOta-xfM.js +1 -0
- package/dist/assets/troff-Lns35Xcq.js +1 -0
- package/dist/assets/ttcn-7vlxVTUK.js +1 -0
- package/dist/assets/ttcn-cfg-B8qhhp6o.js +1 -0
- package/dist/assets/turtle-DTIS1YQ7.js +1 -0
- package/dist/assets/use-adapter-capabilities-0-4PhK9y.js +1 -0
- package/dist/assets/useHiddenSettings-D9d6LOsg.js +1 -0
- package/dist/assets/vb-BO8UacKu.js +1 -0
- package/dist/assets/vbscript-DWLru3lT.js +1 -0
- package/dist/assets/velocity-BIIn-Nl2.js +1 -0
- package/dist/assets/vennDiagram-4TSXK5OY-BuncstTm.js +34 -0
- package/dist/assets/verilog-BVYlmXGg.js +1 -0
- package/dist/assets/vhdl-Cn8cC8Yb.js +1 -0
- package/dist/assets/wardley-WFR3VGLG-C18JBEVS.js +1 -0
- package/dist/assets/wardleyDiagram-VM6X3IG4-DOHY7xcd.js +78 -0
- package/dist/assets/webidl-ChvzbZ5-.js +1 -0
- package/dist/assets/xquery-BKN7qEbU.js +1 -0
- package/dist/assets/xychartDiagram-S5SC5T6Z-qOWxoNte.js +7 -0
- package/dist/assets/yacas-BG9ha7tU.js +1 -0
- package/dist/assets/z80-CB2cGLew.js +1 -0
- package/dist/assets/zap-gf6Ev631.js +41 -0
- package/dist/brands/adapters/LICENSE +21 -0
- package/dist/brands/adapters/README.md +7 -0
- package/dist/brands/adapters/cursor-dark.svg +1 -0
- package/dist/brands/adapters/cursor.svg +1 -0
- package/dist/brands/adapters/gemini-color.svg +1 -0
- package/dist/brands/adapters/grok-dark.svg +1 -0
- package/dist/brands/adapters/grok.svg +1 -0
- package/dist/brands/adapters/hermesagent-dark.svg +1 -0
- package/dist/brands/adapters/hermesagent.svg +1 -0
- package/dist/brands/adapters/kimi-color-light.svg +1 -0
- package/dist/brands/adapters/kimi-color.svg +1 -0
- package/dist/brands/adapters/pi-dark.svg +1 -0
- package/dist/brands/adapters/pi.svg +1 -0
- package/dist/brands/apps/LOBE-LICENSE +21 -0
- package/dist/brands/apps/agentmail-dark.svg +16 -0
- package/dist/brands/apps/agentmail.svg +17 -0
- package/dist/brands/apps/airtable.svg +1 -0
- package/dist/brands/apps/anthropic-dark.svg +1 -0
- package/dist/brands/apps/anthropic.svg +1 -0
- package/dist/brands/apps/api-key-generic.svg +1 -0
- package/dist/brands/apps/arcade.png +0 -0
- package/dist/brands/apps/asana.svg +12 -0
- package/dist/brands/apps/beehiiv.png +0 -0
- package/dist/brands/apps/bitly.svg +1 -0
- package/dist/brands/apps/box.svg +1 -0
- package/dist/brands/apps/brex-dark.svg +1 -0
- package/dist/brands/apps/brex.svg +1 -0
- package/dist/brands/apps/candid.png +0 -0
- package/dist/brands/apps/clickhouse-dark.svg +1 -0
- package/dist/brands/apps/clickhouse.svg +1 -0
- package/dist/brands/apps/cloudflare.svg +1 -0
- package/dist/brands/apps/cloudinary-dark.svg +1 -0
- package/dist/brands/apps/cloudinary.svg +3 -0
- package/dist/brands/apps/coda.svg +1 -0
- package/dist/brands/apps/composio-dark.svg +11 -0
- package/dist/brands/apps/composio.svg +16 -0
- package/dist/brands/apps/context7-dark.svg +8 -0
- package/dist/brands/apps/context7.svg +8 -0
- package/dist/brands/apps/discord-dark.svg +1 -0
- package/dist/brands/apps/discord.svg +1 -0
- package/dist/brands/apps/egnyte.svg +1 -0
- package/dist/brands/apps/embat.svg +1 -0
- package/dist/brands/apps/executor.png +0 -0
- package/dist/brands/apps/fireflies.svg +76 -0
- package/dist/brands/apps/github-dark.svg +10 -0
- package/dist/brands/apps/github.svg +10 -0
- package/dist/brands/apps/gmail.svg +1 -0
- package/dist/brands/apps/google-calendar.svg +1 -0
- package/dist/brands/apps/google-chat.svg +1 -0
- package/dist/brands/apps/google-docs.svg +1 -0
- package/dist/brands/apps/google-drive.svg +1 -0
- package/dist/brands/apps/google-people.svg +1 -0
- package/dist/brands/apps/google-sheets.svg +1 -0
- package/dist/brands/apps/google-slides.svg +1 -0
- package/dist/brands/apps/google-workspace-search.svg +1 -0
- package/dist/brands/apps/hugging-face.svg +8 -0
- package/dist/brands/apps/imessage-photon.png +0 -0
- package/dist/brands/apps/jam-dev-dark.svg +1 -0
- package/dist/brands/apps/jam-dev.svg +1 -0
- package/dist/brands/apps/jira-dark.svg +1 -0
- package/dist/brands/apps/jira.svg +4 -0
- package/dist/brands/apps/kernel.svg +3 -0
- package/dist/brands/apps/linear-dark.svg +5 -0
- package/dist/brands/apps/linear.svg +5 -0
- package/dist/brands/apps/local-falcon.png +0 -0
- package/dist/brands/apps/make-dark.svg +1 -0
- package/dist/brands/apps/make.svg +1 -0
- package/dist/brands/apps/manifest.json +496 -0
- package/dist/brands/apps/manufact-dark.svg +6 -0
- package/dist/brands/apps/manufact.svg +5 -0
- package/dist/brands/apps/mem0.svg +1 -0
- package/dist/brands/apps/microsoft-teams.svg +68 -0
- package/dist/brands/apps/miro-dark.svg +1 -0
- package/dist/brands/apps/miro.svg +4 -0
- package/dist/brands/apps/mixpanel-dark.svg +1 -0
- package/dist/brands/apps/mixpanel.svg +1 -0
- package/dist/brands/apps/netlify-dark.svg +1 -0
- package/dist/brands/apps/netlify.svg +16 -0
- package/dist/brands/apps/notion-dark.svg +1 -0
- package/dist/brands/apps/notion.svg +1 -0
- package/dist/brands/apps/oauth-generic.svg +1 -0
- package/dist/brands/apps/openai-dark.svg +1 -0
- package/dist/brands/apps/openai.svg +1 -0
- package/dist/brands/apps/openrouter-dark.svg +3 -0
- package/dist/brands/apps/openrouter.svg +3 -0
- package/dist/brands/apps/oreilly.svg +1 -0
- package/dist/brands/apps/pagerduty.svg +4 -0
- package/dist/brands/apps/planetscale-dark.svg +1 -0
- package/dist/brands/apps/planetscale.svg +1 -0
- package/dist/brands/apps/posthog-dark.svg +1 -0
- package/dist/brands/apps/posthog.svg +1 -0
- package/dist/brands/apps/postman.svg +1 -0
- package/dist/brands/apps/railway-dark.svg +1 -0
- package/dist/brands/apps/railway.svg +1 -0
- package/dist/brands/apps/razorpay-dark.svg +1 -0
- package/dist/brands/apps/razorpay.svg +1 -0
- package/dist/brands/apps/resend-dark.svg +1 -0
- package/dist/brands/apps/resend.svg +1 -0
- package/dist/brands/apps/sanity-dark.svg +1 -0
- package/dist/brands/apps/sanity.svg +1 -0
- package/dist/brands/apps/sentry-dark.svg +1 -0
- package/dist/brands/apps/sentry.svg +1 -0
- package/dist/brands/apps/shopify.svg +24 -0
- package/dist/brands/apps/similarweb-dark.svg +1 -0
- package/dist/brands/apps/similarweb.svg +1 -0
- package/dist/brands/apps/slack.png +0 -0
- package/dist/brands/apps/slack.svg +17 -0
- package/dist/brands/apps/stripe.svg +11 -0
- package/dist/brands/apps/supabase.svg +15 -0
- package/dist/brands/apps/telegram.svg +12 -0
- package/dist/brands/apps/ticket-tailor-dark.svg +1 -0
- package/dist/brands/apps/ticket-tailor.svg +1 -0
- package/dist/brands/apps/ticktick.svg +1 -0
- package/dist/brands/apps/todoist.svg +1 -0
- package/dist/brands/apps/vercel-dark.svg +1 -0
- package/dist/brands/apps/vercel.svg +1 -0
- package/dist/brands/apps/webflow.svg +1 -0
- package/dist/brands/apps/wix-dark.svg +12 -0
- package/dist/brands/apps/wix.svg +12 -0
- package/dist/brands/apps/xai-dark.svg +1 -0
- package/dist/brands/apps/xai.svg +1 -0
- package/dist/brands/apps/xero.svg +1 -0
- package/dist/brands/apps/youcom-dark.svg +13 -0
- package/dist/brands/apps/youcom.svg +13 -0
- package/dist/brands/apps/zapier.svg +1 -0
- package/dist/brands/claude-color.svg +17 -0
- package/dist/brands/codex-color.svg +17 -0
- package/dist/brands/opencode-logo-dark-square.svg +18 -0
- package/dist/brands/opencode-logo-light-square.svg +18 -0
- package/dist/favicon-16x16.png +0 -0
- package/dist/favicon-32x32.png +0 -0
- package/dist/favicon.ico +0 -0
- package/dist/favicon.svg +9 -0
- package/dist/fonts/InterVariable-Italic.woff2 +0 -0
- package/dist/fonts/InterVariable.woff2 +0 -0
- package/dist/fonts/NOTICE.md +17 -0
- package/dist/index.html +97 -0
- package/dist/paperclip-thinking.svg +17 -0
- package/dist/site.webmanifest +30 -0
- package/dist/sw.js +85 -0
- package/dist/worktree-favicon-16x16.png +0 -0
- package/dist/worktree-favicon-32x32.png +0 -0
- package/dist/worktree-favicon.ico +0 -0
- package/dist/worktree-favicon.svg +9 -0
- package/package.json +22 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
var ze=Object.defineProperty;var A=(L,F)=>ze(L,"name",{value:F,configurable:!0});import{i as Be,t as ve}from"./rolldown-runtime-ZpX3ckPj.js";import{n as Ze}from"./mermaid-parser.core-CHJSk6z0.js";import{n as ft}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as xe,p as ke}from"./src-Bssc388C.js";import{H as Je,J as qe,K as Qe,U as Ke,a as je,b as _e,f as tr,v as er,w as rr,x as pe,y as ir,z as ar}from"./chunk-DU6HZSFF-2P5iNHqg.js";import{c as nr,i as or}from"./chunk-75Z2AOVW-BaPl5WA6.js";import{t as sr}from"./chunk-JWPE2WC7--HEGjv3t.js";import{i as hr,r as lr,t as ge}from"./chunk-PWAF6VOD-CR3rNBNB.js";import{n as ye}from"./chunk-GMAD6QVW-BfvaaEBW.js";import{t as Ie}from"./cytoscape.esm-B68Piqei.js";import{f as fr}from"./mermaid.core-G_BSi0G0.js";var Me=ve(((L,F)=>{A((function(G,N){typeof L=="object"&&typeof F=="object"?F.exports=N():typeof define=="function"&&define.amd?define([],N):typeof L=="object"?L.layoutBase=N():G.layoutBase=N()}),"webpackUniversalModuleDefinition")(L,function(){return(function(w){var G={};function N(v){if(G[v])return G[v].exports;var o=G[v]={i:v,l:!1,exports:{}};return w[v].call(o.exports,o,o.exports,N),o.l=!0,o.exports}return A(N,"__webpack_require__"),N.m=w,N.c=G,N.i=function(v){return v},N.d=function(v,o,n){N.o(v,o)||Object.defineProperty(v,o,{configurable:!1,enumerable:!0,get:n})},N.n=function(v){var o=v&&v.__esModule?A(function(){return v.default},"getDefault"):A(function(){return v},"getModuleExports");return N.d(o,"a",o),o},N.o=function(v,o){return Object.prototype.hasOwnProperty.call(v,o)},N.p="",N(N.s=28)})([(function(w,G,N){"use strict";function v(){}A(v,"LayoutConstants"),v.QUALITY=1,v.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,v.DEFAULT_INCREMENTAL=!1,v.DEFAULT_ANIMATION_ON_LAYOUT=!0,v.DEFAULT_ANIMATION_DURING_LAYOUT=!1,v.DEFAULT_ANIMATION_PERIOD=50,v.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,v.DEFAULT_GRAPH_MARGIN=15,v.NODE_DIMENSIONS_INCLUDE_LABELS=!1,v.SIMPLE_NODE_SIZE=40,v.SIMPLE_NODE_HALF_SIZE=v.SIMPLE_NODE_SIZE/2,v.EMPTY_COMPOUND_NODE_SIZE=40,v.MIN_EDGE_LENGTH=1,v.WORLD_BOUNDARY=1e6,v.INITIAL_WORLD_BOUNDARY=v.WORLD_BOUNDARY/1e3,v.WORLD_CENTER_X=1200,v.WORLD_CENTER_Y=900,w.exports=v}),(function(w,G,N){"use strict";var v=N(2),o=N(8),n=N(9);function t(h,i,d){v.call(this,d),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=d,this.bendpoints=[],this.source=h,this.target=i}A(t,"LEdge"),t.prototype=Object.create(v.prototype);for(var e in v)t[e]=v[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,i){for(var d=this.getOtherEnd(h),r=i.getGraphManager().getRoot();;){if(d.getOwner()==i)return d;if(d.getOwner()==r)break;d=d.getOwner().getParent()}return null},t.prototype.updateLength=function(){var h=new Array(4);this.isOverlapingSourceAndTarget=o.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)},w.exports=t}),(function(w,G,N){"use strict";function v(o){this.vGraphObject=o}A(v,"LGraphObject"),w.exports=v}),(function(w,G,N){"use strict";var v=N(2),o=N(10),n=N(13),t=N(0),e=N(16),h=N(5);function i(r,a,f,l){f==null&&l==null&&(l=a),v.call(this,l),r.graphManager!=null&&(r=r.graphManager),this.estimatedSize=o.MIN_VALUE,this.inclusionTreeDepth=o.MAX_VALUE,this.vGraphObject=l,this.edges=[],this.graphManager=r,f!=null&&a!=null?this.rect=new n(a.x,a.y,f.width,f.height):this.rect=new n}A(i,"LNode"),i.prototype=Object.create(v.prototype);for(var d in v)i[d]=v[d];i.prototype.getEdges=function(){return this.edges},i.prototype.getChild=function(){return this.child},i.prototype.getOwner=function(){return this.owner},i.prototype.getWidth=function(){return this.rect.width},i.prototype.setWidth=function(r){this.rect.width=r},i.prototype.getHeight=function(){return this.rect.height},i.prototype.setHeight=function(r){this.rect.height=r},i.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},i.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},i.prototype.getCenter=function(){return new h(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},i.prototype.getLocation=function(){return new h(this.rect.x,this.rect.y)},i.prototype.getRect=function(){return this.rect},i.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},i.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},i.prototype.setRect=function(r,a){this.rect.x=r.x,this.rect.y=r.y,this.rect.width=a.width,this.rect.height=a.height},i.prototype.setCenter=function(r,a){this.rect.x=r-this.rect.width/2,this.rect.y=a-this.rect.height/2},i.prototype.setLocation=function(r,a){this.rect.x=r,this.rect.y=a},i.prototype.moveBy=function(r,a){this.rect.x+=r,this.rect.y+=a},i.prototype.getEdgeListToNode=function(r){var a=[],f=this;return f.edges.forEach(function(l){if(l.target==r){if(l.source!=f)throw"Incorrect edge source!";a.push(l)}}),a},i.prototype.getEdgesBetween=function(r){var a=[],f=this;return f.edges.forEach(function(l){if(!(l.source==f||l.target==f))throw"Incorrect edge source and/or target";(l.target==r||l.source==r)&&a.push(l)}),a},i.prototype.getNeighborsList=function(){var r=new Set,a=this;return a.edges.forEach(function(f){if(f.source==a)r.add(f.target);else{if(f.target!=a)throw"Incorrect incidency!";r.add(f.source)}}),r},i.prototype.withChildren=function(){var r=new Set,a,f;if(r.add(this),this.child!=null)for(var l=this.child.getNodes(),p=0;p<l.length;p++)a=l[p],f=a.withChildren(),f.forEach(function(g){r.add(g)});return r},i.prototype.getNoOfChildren=function(){var r=0,a;if(this.child==null)r=1;else for(var f=this.child.getNodes(),l=0;l<f.length;l++)a=f[l],r+=a.getNoOfChildren();return r==0&&(r=1),r},i.prototype.getEstimatedSize=function(){if(this.estimatedSize==o.MIN_VALUE)throw"assert failed";return this.estimatedSize},i.prototype.calcEstimatedSize=function(){return this.child==null?this.estimatedSize=(this.rect.width+this.rect.height)/2:(this.estimatedSize=this.child.calcEstimatedSize(),this.rect.width=this.estimatedSize,this.rect.height=this.estimatedSize,this.estimatedSize)},i.prototype.scatter=function(){var r,a,f=-t.INITIAL_WORLD_BOUNDARY,l=t.INITIAL_WORLD_BOUNDARY;r=t.WORLD_CENTER_X+e.nextDouble()*(l-f)+f;var p=-t.INITIAL_WORLD_BOUNDARY,g=t.INITIAL_WORLD_BOUNDARY;a=t.WORLD_CENTER_Y+e.nextDouble()*(g-p)+p,this.rect.x=r,this.rect.y=a},i.prototype.updateBounds=function(){if(this.getChild()==null)throw"assert failed";if(this.getChild().getNodes().length!=0){var r=this.getChild();if(r.updateBounds(!0),this.rect.x=r.getLeft(),this.rect.y=r.getTop(),this.setWidth(r.getRight()-r.getLeft()),this.setHeight(r.getBottom()-r.getTop()),t.NODE_DIMENSIONS_INCLUDE_LABELS){var a=r.getRight()-r.getLeft(),f=r.getBottom()-r.getTop();this.labelWidth&&(this.labelPosHorizontal=="left"?(this.rect.x-=this.labelWidth,this.setWidth(a+this.labelWidth)):this.labelPosHorizontal=="center"&&this.labelWidth>a?(this.rect.x-=(this.labelWidth-a)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal=="right"&&this.setWidth(a+this.labelWidth)),this.labelHeight&&(this.labelPosVertical=="top"?(this.rect.y-=this.labelHeight,this.setHeight(f+this.labelHeight)):this.labelPosVertical=="center"&&this.labelHeight>f?(this.rect.y-=(this.labelHeight-f)/2,this.setHeight(this.labelHeight)):this.labelPosVertical=="bottom"&&this.setHeight(f+this.labelHeight))}}},i.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==o.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},i.prototype.transform=function(r){var a=this.rect.x;a>t.WORLD_BOUNDARY?a=t.WORLD_BOUNDARY:a<-t.WORLD_BOUNDARY&&(a=-t.WORLD_BOUNDARY);var f=this.rect.y;f>t.WORLD_BOUNDARY?f=t.WORLD_BOUNDARY:f<-t.WORLD_BOUNDARY&&(f=-t.WORLD_BOUNDARY);var l=new h(a,f),p=r.inverseTransformPoint(l);this.setLocation(p.x,p.y)},i.prototype.getLeft=function(){return this.rect.x},i.prototype.getRight=function(){return this.rect.x+this.rect.width},i.prototype.getTop=function(){return this.rect.y},i.prototype.getBottom=function(){return this.rect.y+this.rect.height},i.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},w.exports=i}),(function(w,G,N){"use strict";var v=N(0);function o(){}A(o,"FDLayoutConstants");for(var n in v)o[n]=v[n];o.MAX_ITERATIONS=2500,o.DEFAULT_EDGE_LENGTH=50,o.DEFAULT_SPRING_STRENGTH=.45,o.DEFAULT_REPULSION_STRENGTH=4500,o.DEFAULT_GRAVITY_STRENGTH=.4,o.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,o.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,o.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,o.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,o.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,o.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,o.COOLING_ADAPTATION_FACTOR=.33,o.ADAPTATION_LOWER_NODE_LIMIT=1e3,o.ADAPTATION_UPPER_NODE_LIMIT=5e3,o.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,o.MAX_NODE_DISPLACEMENT=o.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,o.MIN_REPULSION_DIST=o.DEFAULT_EDGE_LENGTH/10,o.CONVERGENCE_CHECK_PERIOD=100,o.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,o.MIN_EDGE_LENGTH=1,o.GRID_CALCULATION_CHECK_PERIOD=10,w.exports=o}),(function(w,G,N){"use strict";function v(o,n){o==null&&n==null?(this.x=0,this.y=0):(this.x=o,this.y=n)}A(v,"PointD"),v.prototype.getX=function(){return this.x},v.prototype.getY=function(){return this.y},v.prototype.setX=function(o){this.x=o},v.prototype.setY=function(o){this.y=o},v.prototype.getDifference=function(o){return new DimensionD(this.x-o.x,this.y-o.y)},v.prototype.getCopy=function(){return new v(this.x,this.y)},v.prototype.translate=function(o){return this.x+=o.width,this.y+=o.height,this},w.exports=v}),(function(w,G,N){"use strict";var v=N(2),o=N(10),n=N(0),t=N(7),e=N(3),h=N(1),i=N(13),d=N(12),r=N(11);function a(l,p,g){v.call(this,g),this.estimatedSize=o.MIN_VALUE,this.margin=n.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=l,p!=null&&p instanceof t?this.graphManager=p:p!=null&&p instanceof Layout&&(this.graphManager=p.graphManager)}A(a,"LGraph"),a.prototype=Object.create(v.prototype);for(var f in v)a[f]=v[f];a.prototype.getNodes=function(){return this.nodes},a.prototype.getEdges=function(){return this.edges},a.prototype.getGraphManager=function(){return this.graphManager},a.prototype.getParent=function(){return this.parent},a.prototype.getLeft=function(){return this.left},a.prototype.getRight=function(){return this.right},a.prototype.getTop=function(){return this.top},a.prototype.getBottom=function(){return this.bottom},a.prototype.isConnected=function(){return this.isConnected},a.prototype.add=function(l,p,g){if(p==null&&g==null){var c=l;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(c)>-1)throw"Node already in graph!";return c.owner=this,this.getNodes().push(c),c}else{var T=l;if(!(this.getNodes().indexOf(p)>-1&&this.getNodes().indexOf(g)>-1))throw"Source or target not in graph!";if(!(p.owner==g.owner&&p.owner==this))throw"Both owners must be this graph!";return p.owner!=g.owner?null:(T.source=p,T.target=g,T.isInterGraph=!1,this.getEdges().push(T),p.edges.push(T),g!=p&&g.edges.push(T),T)}},a.prototype.remove=function(l){var p=l;if(l instanceof e){if(p==null)throw"Node is null!";if(!(p.owner!=null&&p.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var g=p.edges.slice(),c,T=g.length,C=0;C<T;C++)c=g[C],c.isInterGraph?this.graphManager.remove(c):c.source.owner.remove(c);var R=this.nodes.indexOf(p);if(R==-1)throw"Node not in owner node list!";this.nodes.splice(R,1)}else if(l instanceof h){var c=l;if(c==null)throw"Edge is null!";if(!(c.source!=null&&c.target!=null))throw"Source and/or target is null!";if(!(c.source.owner!=null&&c.target.owner!=null&&c.source.owner==this&&c.target.owner==this))throw"Source and/or target owner is invalid!";var b=c.source.edges.indexOf(c),X=c.target.edges.indexOf(c);if(!(b>-1&&X>-1))throw"Source and/or target doesn't know this edge!";c.source.edges.splice(b,1),c.target!=c.source&&c.target.edges.splice(X,1);var R=c.source.owner.getEdges().indexOf(c);if(R==-1)throw"Not in owner's edge list!";c.source.owner.getEdges().splice(R,1)}},a.prototype.updateLeftTop=function(){for(var l=o.MAX_VALUE,p=o.MAX_VALUE,g,c,T,C=this.getNodes(),R=C.length,b=0;b<R;b++){var X=C[b];g=X.getTop(),c=X.getLeft(),l>g&&(l=g),p>c&&(p=c)}return l==o.MAX_VALUE?null:(C[0].getParent().paddingLeft!=null?T=C[0].getParent().paddingLeft:T=this.margin,this.left=p-T,this.top=l-T,new d(this.left,this.top))},a.prototype.updateBounds=function(l){for(var p=o.MAX_VALUE,g=-o.MAX_VALUE,c=o.MAX_VALUE,T=-o.MAX_VALUE,C,R,b,X,$,z=this.nodes,I=z.length,et=0;et<I;et++){var s=z[et];l&&s.child!=null&&s.updateBounds(),C=s.getLeft(),R=s.getRight(),b=s.getTop(),X=s.getBottom(),p>C&&(p=C),g<R&&(g=R),c>b&&(c=b),T<X&&(T=X)}var m=new i(p,c,g-p,T-c);p==o.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?$=z[0].getParent().paddingLeft:$=this.margin,this.left=m.x-$,this.right=m.x+m.width+$,this.top=m.y-$,this.bottom=m.y+m.height+$},a.calculateBounds=function(l){for(var p=o.MAX_VALUE,g=-o.MAX_VALUE,c=o.MAX_VALUE,T=-o.MAX_VALUE,C,R,b,X,$=l.length,z=0;z<$;z++){var I=l[z];C=I.getLeft(),R=I.getRight(),b=I.getTop(),X=I.getBottom(),p>C&&(p=C),g<R&&(g=R),c>b&&(c=b),T<X&&(T=X)}return new i(p,c,g-p,T-c)},a.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},a.prototype.getEstimatedSize=function(){if(this.estimatedSize==o.MIN_VALUE)throw"assert failed";return this.estimatedSize},a.prototype.calcEstimatedSize=function(){for(var l=0,p=this.nodes,g=p.length,c=0;c<g;c++){var T=p[c];l+=T.calcEstimatedSize()}return l==0?this.estimatedSize=n.EMPTY_COMPOUND_NODE_SIZE:this.estimatedSize=l/Math.sqrt(this.nodes.length),this.estimatedSize},a.prototype.updateConnected=function(){var l=this;if(this.nodes.length==0){this.isConnected=!0;return}var p=new r,g=new Set,c=this.nodes[0],T,C;for(c.withChildren().forEach(function($){p.push($),g.add($)});p.length!==0;){c=p.shift(),T=c.getEdges();for(var R=T.length,b=0;b<R;b++)C=T[b].getOtherEndInGraph(c,this),C!=null&&!g.has(C)&&C.withChildren().forEach(function($){p.push($),g.add($)})}if(this.isConnected=!1,g.size>=this.nodes.length){var X=0;g.forEach(function($){$.owner==l&&X++}),X==this.nodes.length&&(this.isConnected=!0)}},w.exports=a}),(function(w,G,N){"use strict";var v,o=N(1);function n(t){v=N(6),this.layout=t,this.graphs=[],this.edges=[]}A(n,"LGraphManager"),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,i,d){if(h==null&&i==null&&d==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{d=h,i=e,h=t;var r=i.getOwner(),a=d.getOwner();if(!(r!=null&&r.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(a!=null&&a.getGraphManager()==this))throw"Target not in this graph mgr!";if(r==a)return h.isInterGraph=!1,r.add(h,i,d);if(h.isInterGraph=!0,h.source=i,h.target=d,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 v){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 i,d=h.length,r=0;r<d;r++)i=h[r],e.remove(i);var a=[];a=a.concat(e.getNodes());var f;d=a.length;for(var r=0;r<d;r++)f=a[r],e.remove(f);e==this.rootGraph&&this.setRootGraph(null);var l=this.graphs.indexOf(e);this.graphs.splice(l,1),e.parent=null}else if(t instanceof o){if(i=t,i==null)throw"Edge is null!";if(!i.isInterGraph)throw"Not an inter-graph edge!";if(!(i.source!=null&&i.target!=null))throw"Source and/or target is null!";if(!(i.source.edges.indexOf(i)!=-1&&i.target.edges.indexOf(i)!=-1))throw"Source and/or target doesn't know this edge!";var l=i.source.edges.indexOf(i);if(i.source.edges.splice(l,1),l=i.target.edges.indexOf(i),i.target.edges.splice(l,1),!(i.source.owner!=null&&i.source.owner.getGraphManager()!=null))throw"Edge owner graph or owner graph manager is null!";if(i.source.owner.getGraphManager().edges.indexOf(i)==-1)throw"Not in owner graph manager's edge list!";var l=i.source.owner.getGraphManager().edges.indexOf(i);i.source.owner.getGraphManager().edges.splice(l,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,i=0;i<h;i++)t=t.concat(e[i].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==null&&(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(),i;do{if(i=h.getParent(),i==null)break;if(i==e)return!0;if(h=i.getOwner(),h==null)break}while(!0);h=e.getOwner();do{if(i=h.getParent(),i==null)break;if(i==t)return!0;if(h=i.getOwner(),h==null)break}while(!0);return!1},n.prototype.calcLowestCommonAncestors=function(){for(var t,e,h,i,d,r=this.getAllEdges(),a=r.length,f=0;f<a;f++){if(t=r[f],e=t.source,h=t.target,t.lca=null,t.sourceInLca=e,t.targetInLca=h,e==h){t.lca=e.getOwner();continue}for(i=e.getOwner();t.lca==null;){for(t.targetInLca=h,d=h.getOwner();t.lca==null;){if(d==i){t.lca=d;break}if(d==this.rootGraph)break;if(t.lca!=null)throw"assert failed";t.targetInLca=d.getParent(),d=t.targetInLca.getOwner()}if(i==this.rootGraph)break;t.lca==null&&(t.sourceInLca=i.getParent(),i=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 i=e.getOwner();do{if(i==null)break;if(i==h)return i;i=i.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,i=t.getNodes(),d=i.length,r=0;r<d;r++)h=i[r],h.inclusionTreeDepth=e,h.child!=null&&this.calcInclusionTreeDepths(h.child,e+1)},n.prototype.includesInvalidEdge=function(){for(var t,e=[],h=this.edges.length,i=0;i<h;i++)t=this.edges[i],this.isOneAncestorOfOther(t.source,t.target)&&e.push(t);for(var i=0;i<e.length;i++)this.remove(e[i]);return!1},w.exports=n}),(function(w,G,N){"use strict";var v=N(12);function o(){}A(o,"IGeometry"),o.calcSeparationAmount=function(n,t,e,h){if(!n.intersects(t))throw"assert failed";var i=new Array(2);this.decideDirectionsForOverlappingNodes(n,t,i),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 d=Math.abs((t.getCenterY()-n.getCenterY())/(t.getCenterX()-n.getCenterX()));t.getCenterY()===n.getCenterY()&&t.getCenterX()===n.getCenterX()&&(d=1);var r=d*e[0],a=e[1]/d;e[0]<a?a=e[0]:r=e[1],e[0]=-1*i[0]*(a/2+h),e[1]=-1*i[1]*(r/2+h)},o.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},o.getIntersection2=function(n,t,e){var h=n.getCenterX(),i=n.getCenterY(),d=t.getCenterX(),r=t.getCenterY();if(n.intersects(t))return e[0]=h,e[1]=i,e[2]=d,e[3]=r,!0;var a=n.getX(),f=n.getY(),l=n.getRight(),p=n.getX(),g=n.getBottom(),c=n.getRight(),T=n.getWidthHalf(),C=n.getHeightHalf(),R=t.getX(),b=t.getY(),X=t.getRight(),$=t.getX(),z=t.getBottom(),I=t.getRight(),et=t.getWidthHalf(),s=t.getHeightHalf(),m=!1,u=!1;if(h===d){if(i>r)return e[0]=h,e[1]=f,e[2]=d,e[3]=z,!1;if(i<r)return e[0]=h,e[1]=g,e[2]=d,e[3]=b,!1}else if(i===r){if(h>d)return e[0]=a,e[1]=i,e[2]=X,e[3]=r,!1;if(h<d)return e[0]=l,e[1]=i,e[2]=R,e[3]=r,!1}else{var E=n.height/n.width,y=t.height/t.width,M=(r-i)/(d-h),D=void 0,U=void 0,O=void 0,S=void 0,V=void 0,Z=void 0;if(-E===M?h>d?(e[0]=p,e[1]=g,m=!0):(e[0]=l,e[1]=f,m=!0):E===M&&(h>d?(e[0]=a,e[1]=f,m=!0):(e[0]=c,e[1]=g,m=!0)),-y===M?d>h?(e[2]=$,e[3]=z,u=!0):(e[2]=X,e[3]=b,u=!0):y===M&&(d>h?(e[2]=R,e[3]=b,u=!0):(e[2]=I,e[3]=z,u=!0)),m&&u)return!1;if(h>d?i>r?(D=this.getCardinalDirection(E,M,4),U=this.getCardinalDirection(y,M,2)):(D=this.getCardinalDirection(-E,M,3),U=this.getCardinalDirection(-y,M,1)):i>r?(D=this.getCardinalDirection(-E,M,1),U=this.getCardinalDirection(-y,M,3)):(D=this.getCardinalDirection(E,M,2),U=this.getCardinalDirection(y,M,4)),!m)switch(D){case 1:S=f,O=h+-C/M,e[0]=O,e[1]=S;break;case 2:O=c,S=i+T*M,e[0]=O,e[1]=S;break;case 3:S=g,O=h+C/M,e[0]=O,e[1]=S;break;case 4:O=p,S=i+-T*M,e[0]=O,e[1]=S}if(!u)switch(U){case 1:Z=b,V=d+-s/M,e[2]=V,e[3]=Z;break;case 2:V=I,Z=r+et*M,e[2]=V,e[3]=Z;break;case 3:Z=z,V=d+s/M,e[2]=V,e[3]=Z;break;case 4:V=$,Z=r+-et*M,e[2]=V,e[3]=Z}}return!1},o.getCardinalDirection=function(n,t,e){return n>t?e:1+e%4},o.getIntersection=function(n,t,e,h){if(h==null)return this.getIntersection2(n,t,e);var i=n.x,d=n.y,r=t.x,a=t.y,f=e.x,l=e.y,p=h.x,g=h.y,c=void 0,T=void 0,C=void 0,R=void 0,b=void 0,X=void 0,$=void 0,z=void 0,I=void 0;return C=a-d,b=i-r,$=r*d-i*a,R=g-l,X=f-p,z=p*l-f*g,I=C*X-R*b,I===0?null:(c=(b*z-X*$)/I,T=(R*$-C*z)/I,new v(c,T))},o.angleOfVector=function(n,t,e,h){var i=void 0;return n!==e?(i=Math.atan((h-t)/(e-n)),e<n?i+=Math.PI:h<t&&(i+=this.TWO_PI)):h<t?i=this.ONE_AND_HALF_PI:i=this.HALF_PI,i},o.doIntersect=function(n,t,e,h){var i=n.x,d=n.y,r=t.x,a=t.y,f=e.x,l=e.y,p=h.x,g=h.y,c=(r-i)*(g-l)-(p-f)*(a-d);if(c===0)return!1;var T=((g-l)*(p-i)+(f-p)*(g-d))/c,C=((d-a)*(p-i)+(r-i)*(g-d))/c;return 0<T&&T<1&&0<C&&C<1},o.findCircleLineIntersections=function(n,t,e,h,i,d,r){var a=(e-n)*(e-n)+(h-t)*(h-t),f=2*((n-i)*(e-n)+(t-d)*(h-t)),l=(n-i)*(n-i)+(t-d)*(t-d)-r*r;if(f*f-4*a*l>=0){var p=(-f+Math.sqrt(f*f-4*a*l))/(2*a),g=(-f-Math.sqrt(f*f-4*a*l))/(2*a),c=null;return p>=0&&p<=1?[p]:g>=0&&g<=1?[g]:c}else return null},o.HALF_PI=.5*Math.PI,o.ONE_AND_HALF_PI=1.5*Math.PI,o.TWO_PI=2*Math.PI,o.THREE_PI=3*Math.PI,w.exports=o}),(function(w,G,N){"use strict";function v(){}A(v,"IMath"),v.sign=function(o){return o>0?1:o<0?-1:0},v.floor=function(o){return o<0?Math.ceil(o):Math.floor(o)},v.ceil=function(o){return o<0?Math.floor(o):Math.ceil(o)},w.exports=v}),(function(w,G,N){"use strict";function v(){}A(v,"Integer"),v.MAX_VALUE=2147483647,v.MIN_VALUE=-2147483648,w.exports=v}),(function(w,G,N){"use strict";var v=(function(){function h(i,d){for(var r=0;r<d.length;r++){var a=d[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(i,a.key,a)}}return A(h,"defineProperties"),function(i,d,r){return d&&h(i.prototype,d),r&&h(i,r),i}})();function o(h,i){if(!(h instanceof i))throw new TypeError("Cannot call a class as a function")}A(o,"_classCallCheck");var n=A(function(i){return{value:i,next:null,prev:null}},"nodeFrom"),t=A(function(i,d,r,a){return i!==null?i.next=d:a.head=d,r!==null?r.prev=d:a.tail=d,d.prev=i,d.next=r,a.length++,d},"add"),e=A(function(i,d){var r=i.prev,a=i.next;return r!==null?r.next=a:d.head=a,a!==null?a.prev=r:d.tail=r,i.prev=i.next=null,d.length--,i},"_remove");w.exports=(function(){function h(i){var d=this;o(this,h),this.length=0,this.head=null,this.tail=null,i?.forEach(function(r){return d.push(r)})}return A(h,"LinkedList"),v(h,[{key:"size",value:A(function(){return this.length},"size")},{key:"insertBefore",value:A(function(d,r){return t(r.prev,n(d),r,this)},"insertBefore")},{key:"insertAfter",value:A(function(d,r){return t(r,n(d),r.next,this)},"insertAfter")},{key:"insertNodeBefore",value:A(function(d,r){return t(r.prev,d,r,this)},"insertNodeBefore")},{key:"insertNodeAfter",value:A(function(d,r){return t(r,d,r.next,this)},"insertNodeAfter")},{key:"push",value:A(function(d){return t(this.tail,n(d),null,this)},"push")},{key:"unshift",value:A(function(d){return t(null,n(d),this.head,this)},"unshift")},{key:"remove",value:A(function(d){return e(d,this)},"remove")},{key:"pop",value:A(function(){return e(this.tail,this).value},"pop")},{key:"popNode",value:A(function(){return e(this.tail,this)},"popNode")},{key:"shift",value:A(function(){return e(this.head,this).value},"shift")},{key:"shiftNode",value:A(function(){return e(this.head,this)},"shiftNode")},{key:"get_object_at",value:A(function(d){if(d<=this.length()){for(var r=1,a=this.head;r<d;)a=a.next,r++;return a.value}},"get_object_at")},{key:"set_object_at",value:A(function(d,r){if(d<=this.length()){for(var a=1,f=this.head;a<d;)f=f.next,a++;f.value=r}},"set_object_at")}]),h})()}),(function(w,G,N){"use strict";function v(o,n,t){this.x=null,this.y=null,o==null&&n==null&&t==null?(this.x=0,this.y=0):typeof o=="number"&&typeof n=="number"&&t==null?(this.x=o,this.y=n):o.constructor.name=="Point"&&n==null&&t==null&&(t=o,this.x=t.x,this.y=t.y)}A(v,"Point"),v.prototype.getX=function(){return this.x},v.prototype.getY=function(){return this.y},v.prototype.getLocation=function(){return new v(this.x,this.y)},v.prototype.setLocation=function(o,n,t){o.constructor.name=="Point"&&n==null&&t==null?(t=o,this.setLocation(t.x,t.y)):typeof o=="number"&&typeof n=="number"&&t==null&&(parseInt(o)==o&&parseInt(n)==n?this.move(o,n):(this.x=Math.floor(o+.5),this.y=Math.floor(n+.5)))},v.prototype.move=function(o,n){this.x=o,this.y=n},v.prototype.translate=function(o,n){this.x+=o,this.y+=n},v.prototype.equals=function(o){if(o.constructor.name=="Point"){var n=o;return this.x==n.x&&this.y==n.y}return this==o},v.prototype.toString=function(){return new v().constructor.name+"[x="+this.x+",y="+this.y+"]"},w.exports=v}),(function(w,G,N){"use strict";function v(o,n,t,e){this.x=0,this.y=0,this.width=0,this.height=0,o!=null&&n!=null&&t!=null&&e!=null&&(this.x=o,this.y=n,this.width=t,this.height=e)}A(v,"RectangleD"),v.prototype.getX=function(){return this.x},v.prototype.setX=function(o){this.x=o},v.prototype.getY=function(){return this.y},v.prototype.setY=function(o){this.y=o},v.prototype.getWidth=function(){return this.width},v.prototype.setWidth=function(o){this.width=o},v.prototype.getHeight=function(){return this.height},v.prototype.setHeight=function(o){this.height=o},v.prototype.getRight=function(){return this.x+this.width},v.prototype.getBottom=function(){return this.y+this.height},v.prototype.intersects=function(o){return!(this.getRight()<o.x||this.getBottom()<o.y||o.getRight()<this.x||o.getBottom()<this.y)},v.prototype.getCenterX=function(){return this.x+this.width/2},v.prototype.getMinX=function(){return this.getX()},v.prototype.getMaxX=function(){return this.getX()+this.width},v.prototype.getCenterY=function(){return this.y+this.height/2},v.prototype.getMinY=function(){return this.getY()},v.prototype.getMaxY=function(){return this.getY()+this.height},v.prototype.getWidthHalf=function(){return this.width/2},v.prototype.getHeightHalf=function(){return this.height/2},w.exports=v}),(function(w,G,N){"use strict";var v=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 o(){}A(o,"UniqueIDGeneretor"),o.lastID=0,o.createID=function(n){return o.isPrimitive(n)?n:(n.uniqueID!=null||(n.uniqueID=o.getString(),o.lastID++),n.uniqueID)},o.getString=function(n){return n==null&&(n=o.lastID),"Object#"+n},o.isPrimitive=function(n){var t=typeof n>"u"?"undefined":v(n);return n==null||t!="object"&&t!="function"},w.exports=o}),(function(w,G,N){"use strict";function v(f){if(Array.isArray(f)){for(var l=0,p=Array(f.length);l<f.length;l++)p[l]=f[l];return p}else return Array.from(f)}A(v,"_toConsumableArray");var o=N(0),n=N(7),t=N(3),e=N(1),h=N(6),i=N(5),d=N(17),r=N(29);function a(f){r.call(this),this.layoutQuality=o.QUALITY,this.createBendsAsNeeded=o.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=o.DEFAULT_INCREMENTAL,this.animationOnLayout=o.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=o.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=o.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=o.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new n(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,f!=null&&(this.isRemoteUse=f)}A(a,"Layout"),a.RANDOM_SEED=1,a.prototype=Object.create(r.prototype),a.prototype.getGraphManager=function(){return this.graphManager},a.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},a.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},a.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},a.prototype.newGraphManager=function(){var f=new n(this);return this.graphManager=f,f},a.prototype.newGraph=function(f){return new h(null,this.graphManager,f)},a.prototype.newNode=function(f){return new t(this.graphManager,f)},a.prototype.newEdge=function(f){return new e(null,null,f)},a.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},a.prototype.runLayout=function(){this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters();var f;return this.checkLayoutSuccess()?f=!1:f=this.layout(),o.ANIMATE==="during"?!1:(f&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,f)},a.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},a.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var f=this.graphManager.getAllEdges(),l=0;l<f.length;l++)f[l];for(var p=this.graphManager.getRoot().getNodes(),l=0;l<p.length;l++)p[l];this.update(this.graphManager.getRoot())}},a.prototype.update=function(f){if(f==null)this.update2();else if(f instanceof t){var l=f;if(l.getChild()!=null)for(var p=l.getChild().getNodes(),g=0;g<p.length;g++)update(p[g]);l.vGraphObject!=null&&l.vGraphObject.update(l)}else if(f instanceof e){var c=f;c.vGraphObject!=null&&c.vGraphObject.update(c)}else if(f instanceof h){var T=f;T.vGraphObject!=null&&T.vGraphObject.update(T)}},a.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=o.QUALITY,this.animationDuringLayout=o.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=o.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=o.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=o.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=o.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=o.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},a.prototype.transform=function(f){if(f==null)this.transform(new i(0,0));else{var l=new d,p=this.graphManager.getRoot().updateLeftTop();if(p!=null){l.setWorldOrgX(f.x),l.setWorldOrgY(f.y),l.setDeviceOrgX(p.x),l.setDeviceOrgY(p.y);for(var g=this.getAllNodes(),c,T=0;T<g.length;T++)c=g[T],c.transform(l)}}},a.prototype.positionNodesRandomly=function(f){if(f==null)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var l,p,g=f.getNodes(),c=0;c<g.length;c++)l=g[c],p=l.getChild(),p==null||p.getNodes().length==0?l.scatter():(this.positionNodesRandomly(p),l.updateBounds())},a.prototype.getFlatForest=function(){for(var f=[],l=!0,p=this.graphManager.getRoot().getNodes(),g=!0,c=0;c<p.length;c++)p[c].getChild()!=null&&(g=!1);if(!g)return f;var T=new Set,C=[],R=new Map,b=[];for(b=b.concat(p);b.length>0&&l;){for(C.push(b[0]);C.length>0&&l;){var X=C[0];C.splice(0,1),T.add(X);for(var $=X.getEdges(),c=0;c<$.length;c++){var z=$[c].getOtherEnd(X);if(R.get(X)!=z)if(!T.has(z))C.push(z),R.set(z,X);else{l=!1;break}}}if(!l)f=[];else{var I=[].concat(v(T));f.push(I);for(var c=0;c<I.length;c++){var et=I[c],s=b.indexOf(et);s>-1&&b.splice(s,1)}T=new Set,R=new Map}}return f},a.prototype.createDummyNodesForBendpoints=function(f){for(var l=[],p=f.source,g=this.graphManager.calcLowestCommonAncestor(f.source,f.target),c=0;c<f.bendpoints.length;c++){var T=this.newNode(null);T.setRect(new Point(0,0),new Dimension(1,1)),g.add(T);var C=this.newEdge(null);this.graphManager.add(C,p,T),l.add(T),p=T}var C=this.newEdge(null);return this.graphManager.add(C,p,f.target),this.edgeToDummyNodes.set(f,l),f.isInterGraph()?this.graphManager.remove(f):g.remove(f),l},a.prototype.createBendpointsFromDummyNodes=function(){var f=[];f=f.concat(this.graphManager.getAllEdges()),f=[].concat(v(this.edgeToDummyNodes.keys())).concat(f);for(var l=0;l<f.length;l++){var p=f[l];if(p.bendpoints.length>0){for(var g=this.edgeToDummyNodes.get(p),c=0;c<g.length;c++){var T=g[c],C=new i(T.getCenterX(),T.getCenterY()),R=p.bendpoints.get(c);R.x=C.x,R.y=C.y,T.getOwner().remove(T)}this.graphManager.add(p,p.source,p.target)}}},a.transform=function(f,l,p,g){if(p!=null&&g!=null){var c=l;if(f<=50){var T=l/p;c-=(l-T)/50*(50-f)}else{var C=l*g;c+=(C-l)/50*(f-50)}return c}else{var R,b;return f<=50?(R=9*l/500,b=l/10):(R=9*l/50,b=-8*l),R*f+b}},a.findCenterOfTree=function(f){var l=[];l=l.concat(f);var p=[],g=new Map,c=!1,T=null;(l.length==1||l.length==2)&&(c=!0,T=l[0]);for(var C=0;C<l.length;C++){var R=l[C],b=R.getNeighborsList().size;g.set(R,R.getNeighborsList().size),b==1&&p.push(R)}var X=[];for(X=X.concat(p);!c;){var $=[];$=$.concat(X),X=[];for(var C=0;C<l.length;C++){var R=l[C],z=l.indexOf(R);z>=0&&l.splice(z,1),R.getNeighborsList().forEach(function(s){if(p.indexOf(s)<0){var m=g.get(s)-1;m==1&&X.push(s),g.set(s,m)}})}p=p.concat(X),(l.length==1||l.length==2)&&(c=!0,T=l[0])}return T},a.prototype.setGraphManager=function(f){this.graphManager=f},w.exports=a}),(function(w,G,N){"use strict";function v(){}A(v,"RandomSeed"),v.seed=1,v.x=0,v.nextDouble=function(){return v.x=Math.sin(v.seed++)*1e4,v.x-Math.floor(v.x)},w.exports=v}),(function(w,G,N){"use strict";var v=N(5);function o(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}A(o,"Transform"),o.prototype.getWorldOrgX=function(){return this.lworldOrgX},o.prototype.setWorldOrgX=function(n){this.lworldOrgX=n},o.prototype.getWorldOrgY=function(){return this.lworldOrgY},o.prototype.setWorldOrgY=function(n){this.lworldOrgY=n},o.prototype.getWorldExtX=function(){return this.lworldExtX},o.prototype.setWorldExtX=function(n){this.lworldExtX=n},o.prototype.getWorldExtY=function(){return this.lworldExtY},o.prototype.setWorldExtY=function(n){this.lworldExtY=n},o.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},o.prototype.setDeviceOrgX=function(n){this.ldeviceOrgX=n},o.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},o.prototype.setDeviceOrgY=function(n){this.ldeviceOrgY=n},o.prototype.getDeviceExtX=function(){return this.ldeviceExtX},o.prototype.setDeviceExtX=function(n){this.ldeviceExtX=n},o.prototype.getDeviceExtY=function(){return this.ldeviceExtY},o.prototype.setDeviceExtY=function(n){this.ldeviceExtY=n},o.prototype.transformX=function(n){var t=0,e=this.lworldExtX;return e!=0&&(t=this.ldeviceOrgX+(n-this.lworldOrgX)*this.ldeviceExtX/e),t},o.prototype.transformY=function(n){var t=0,e=this.lworldExtY;return e!=0&&(t=this.ldeviceOrgY+(n-this.lworldOrgY)*this.ldeviceExtY/e),t},o.prototype.inverseTransformX=function(n){var t=0,e=this.ldeviceExtX;return e!=0&&(t=this.lworldOrgX+(n-this.ldeviceOrgX)*this.lworldExtX/e),t},o.prototype.inverseTransformY=function(n){var t=0,e=this.ldeviceExtY;return e!=0&&(t=this.lworldOrgY+(n-this.ldeviceOrgY)*this.lworldExtY/e),t},o.prototype.inverseTransformPoint=function(n){return new v(this.inverseTransformX(n.x),this.inverseTransformY(n.y))},w.exports=o}),(function(w,G,N){"use strict";function v(r){if(Array.isArray(r)){for(var a=0,f=Array(r.length);a<r.length;a++)f[a]=r[a];return f}else return Array.from(r)}A(v,"_toConsumableArray");var o=N(15),n=N(4),t=N(0),e=N(8),h=N(9);function i(){o.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}A(i,"FDLayout"),i.prototype=Object.create(o.prototype);for(var d in o)i[d]=o[d];i.prototype.initParameters=function(){o.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=n.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},i.prototype.calcIdealEdgeLengths=function(){for(var r,a,f,l,p,g,c,T=this.getGraphManager().getAllEdges(),C=0;C<T.length;C++)r=T[C],a=r.idealLength,r.isInterGraph&&(l=r.getSource(),p=r.getTarget(),g=r.getSourceInLca().getEstimatedSize(),c=r.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(r.idealLength+=g+c-2*t.SIMPLE_NODE_SIZE),f=r.getLca().getInclusionTreeDepth(),r.idealLength+=a*n.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(l.getInclusionTreeDepth()+p.getInclusionTreeDepth()-2*f))},i.prototype.initSpringEmbedder=function(){var r=this.getAllNodes().length;this.incremental?(r>n.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*n.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(r-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):(r>n.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(n.COOLING_ADAPTATION_FACTOR,1-(r-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()},i.prototype.calcSpringForces=function(){for(var r=this.getAllEdges(),a,f=0;f<r.length;f++)a=r[f],this.calcSpringForce(a,a.idealLength)},i.prototype.calcRepulsionForces=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f,l,p,g,c=this.getAllNodes(),T;if(this.useFRGridVariant)for(this.totalIterations%n.GRID_CALCULATION_CHECK_PERIOD==1&&r&&this.updateGrid(),T=new Set,f=0;f<c.length;f++)p=c[f],this.calculateRepulsionForceOfANode(p,T,r,a),T.add(p);else for(f=0;f<c.length;f++)for(p=c[f],l=f+1;l<c.length;l++)g=c[l],p.getOwner()==g.getOwner()&&this.calcRepulsionForce(p,g)},i.prototype.calcGravitationalForces=function(){for(var r,a=this.getAllNodesToApplyGravitation(),f=0;f<a.length;f++)r=a[f],this.calcGravitationalForce(r)},i.prototype.moveNodes=function(){for(var r=this.getAllNodes(),a,f=0;f<r.length;f++)a=r[f],a.move()},i.prototype.calcSpringForce=function(r,a){var f=r.getSource(),l=r.getTarget(),p,g,c,T;if(this.uniformLeafNodeSizes&&f.getChild()==null&&l.getChild()==null)r.updateLengthSimple();else if(r.updateLength(),r.isOverlapingSourceAndTarget)return;p=r.getLength(),p!=0&&(g=r.edgeElasticity*(p-a),c=g*(r.lengthX/p),T=g*(r.lengthY/p),f.springForceX+=c,f.springForceY+=T,l.springForceX-=c,l.springForceY-=T)},i.prototype.calcRepulsionForce=function(r,a){var f=r.getRect(),l=a.getRect(),p=new Array(2),g=new Array(4),c,T,C,R,b,X,$;if(f.intersects(l)){e.calcSeparationAmount(f,l,p,n.DEFAULT_EDGE_LENGTH/2),X=2*p[0],$=2*p[1];var z=r.noOfChildren*a.noOfChildren/(r.noOfChildren+a.noOfChildren);r.repulsionForceX-=z*X,r.repulsionForceY-=z*$,a.repulsionForceX+=z*X,a.repulsionForceY+=z*$}else this.uniformLeafNodeSizes&&r.getChild()==null&&a.getChild()==null?(c=l.getCenterX()-f.getCenterX(),T=l.getCenterY()-f.getCenterY()):(e.getIntersection(f,l,g),c=g[2]-g[0],T=g[3]-g[1]),Math.abs(c)<n.MIN_REPULSION_DIST&&(c=h.sign(c)*n.MIN_REPULSION_DIST),Math.abs(T)<n.MIN_REPULSION_DIST&&(T=h.sign(T)*n.MIN_REPULSION_DIST),C=c*c+T*T,R=Math.sqrt(C),b=(r.nodeRepulsion/2+a.nodeRepulsion/2)*r.noOfChildren*a.noOfChildren/C,X=b*c/R,$=b*T/R,r.repulsionForceX-=X,r.repulsionForceY-=$,a.repulsionForceX+=X,a.repulsionForceY+=$},i.prototype.calcGravitationalForce=function(r){var a,f,l,p,g,c,T,C;a=r.getOwner(),f=(a.getRight()+a.getLeft())/2,l=(a.getTop()+a.getBottom())/2,p=r.getCenterX()-f,g=r.getCenterY()-l,c=Math.abs(p)+r.getWidth()/2,T=Math.abs(g)+r.getHeight()/2,r.getOwner()==this.graphManager.getRoot()?(C=a.getEstimatedSize()*this.gravityRangeFactor,(c>C||T>C)&&(r.gravitationForceX=-this.gravityConstant*p,r.gravitationForceY=-this.gravityConstant*g)):(C=a.getEstimatedSize()*this.compoundGravityRangeFactor,(c>C||T>C)&&(r.gravitationForceX=-this.gravityConstant*p*this.compoundGravityConstant,r.gravitationForceY=-this.gravityConstant*g*this.compoundGravityConstant))},i.prototype.isConverged=function(){var r,a=!1;return this.totalIterations>this.maxIterations/3&&(a=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),r=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,r||a},i.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},i.prototype.calcNoOfChildrenForAllNodes=function(){for(var r,a=this.graphManager.getAllNodes(),f=0;f<a.length;f++)r=a[f],r.noOfChildren=r.getNoOfChildren()},i.prototype.calcGrid=function(r){var a=0,f=0;a=parseInt(Math.ceil((r.getRight()-r.getLeft())/this.repulsionRange)),f=parseInt(Math.ceil((r.getBottom()-r.getTop())/this.repulsionRange));for(var l=new Array(a),p=0;p<a;p++)l[p]=new Array(f);for(var p=0;p<a;p++)for(var g=0;g<f;g++)l[p][g]=new Array;return l},i.prototype.addNodeToGrid=function(r,a,f){var l=0,p=0,g=0,c=0;l=parseInt(Math.floor((r.getRect().x-a)/this.repulsionRange)),p=parseInt(Math.floor((r.getRect().width+r.getRect().x-a)/this.repulsionRange)),g=parseInt(Math.floor((r.getRect().y-f)/this.repulsionRange)),c=parseInt(Math.floor((r.getRect().height+r.getRect().y-f)/this.repulsionRange));for(var T=l;T<=p;T++)for(var C=g;C<=c;C++)this.grid[T][C].push(r),r.setGridCoordinates(l,p,g,c)},i.prototype.updateGrid=function(){var r,a,f=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),r=0;r<f.length;r++)a=f[r],this.addNodeToGrid(a,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},i.prototype.calculateRepulsionForceOfANode=function(r,a,f,l){if(this.totalIterations%n.GRID_CALCULATION_CHECK_PERIOD==1&&f||l){var p=new Set;r.surrounding=new Array;for(var g,c=this.grid,T=r.startX-1;T<r.finishX+2;T++)for(var C=r.startY-1;C<r.finishY+2;C++)if(!(T<0||C<0||T>=c.length||C>=c[0].length)){for(var R=0;R<c[T][C].length;R++)if(g=c[T][C][R],!(r.getOwner()!=g.getOwner()||r==g)&&!a.has(g)&&!p.has(g)){var b=Math.abs(r.getCenterX()-g.getCenterX())-(r.getWidth()/2+g.getWidth()/2),X=Math.abs(r.getCenterY()-g.getCenterY())-(r.getHeight()/2+g.getHeight()/2);b<=this.repulsionRange&&X<=this.repulsionRange&&p.add(g)}}r.surrounding=[].concat(v(p))}for(T=0;T<r.surrounding.length;T++)this.calcRepulsionForce(r,r.surrounding[T])},i.prototype.calcRepulsionRange=function(){return 0},w.exports=i}),(function(w,G,N){"use strict";var v=N(1),o=N(4);function n(e,h,i){v.call(this,e,h,i),this.idealLength=o.DEFAULT_EDGE_LENGTH,this.edgeElasticity=o.DEFAULT_SPRING_STRENGTH}A(n,"FDLayoutEdge"),n.prototype=Object.create(v.prototype);for(var t in v)n[t]=v[t];w.exports=n}),(function(w,G,N){"use strict";var v=N(3),o=N(4);function n(e,h,i,d){v.call(this,e,h,i,d),this.nodeRepulsion=o.DEFAULT_REPULSION_STRENGTH,this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0,this.startX=0,this.finishX=0,this.startY=0,this.finishY=0,this.surrounding=[]}A(n,"FDLayoutNode"),n.prototype=Object.create(v.prototype);for(var t in v)n[t]=v[t];n.prototype.setGridCoordinates=function(e,h,i,d){this.startX=e,this.finishX=h,this.startY=i,this.finishY=d},w.exports=n}),(function(w,G,N){"use strict";function v(o,n){this.width=0,this.height=0,o!==null&&n!==null&&(this.height=n,this.width=o)}A(v,"DimensionD"),v.prototype.getWidth=function(){return this.width},v.prototype.setWidth=function(o){this.width=o},v.prototype.getHeight=function(){return this.height},v.prototype.setHeight=function(o){this.height=o},w.exports=v}),(function(w,G,N){"use strict";var v=N(14);function o(){this.map={},this.keys=[]}A(o,"HashMap"),o.prototype.put=function(n,t){var e=v.createID(n);this.contains(e)||(this.map[e]=t,this.keys.push(n))},o.prototype.contains=function(n){return v.createID(n),this.map[n]!=null},o.prototype.get=function(n){var t=v.createID(n);return this.map[t]},o.prototype.keySet=function(){return this.keys},w.exports=o}),(function(w,G,N){"use strict";var v=N(14);function o(){this.set={}}A(o,"HashSet"),o.prototype.add=function(n){var t=v.createID(n);this.contains(t)||(this.set[t]=n)},o.prototype.remove=function(n){delete this.set[v.createID(n)]},o.prototype.clear=function(){this.set={}},o.prototype.contains=function(n){return this.set[v.createID(n)]==n},o.prototype.isEmpty=function(){return this.size()===0},o.prototype.size=function(){return Object.keys(this.set).length},o.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]])},o.prototype.size=function(){return Object.keys(this.set).length},o.prototype.addAll=function(n){for(var t=n.length,e=0;e<t;e++){var h=n[e];this.add(h)}},w.exports=o}),(function(w,G,N){"use strict";function v(){}A(v,"Matrix"),v.multMat=function(o,n){for(var t=[],e=0;e<o.length;e++){t[e]=[];for(var h=0;h<n[0].length;h++){t[e][h]=0;for(var i=0;i<o[0].length;i++)t[e][h]+=o[e][i]*n[i][h]}}return t},v.transpose=function(o){for(var n=[],t=0;t<o[0].length;t++){n[t]=[];for(var e=0;e<o.length;e++)n[t][e]=o[e][t]}return n},v.multCons=function(o,n){for(var t=[],e=0;e<o.length;e++)t[e]=o[e]*n;return t},v.minusOp=function(o,n){for(var t=[],e=0;e<o.length;e++)t[e]=o[e]-n[e];return t},v.dotProduct=function(o,n){for(var t=0,e=0;e<o.length;e++)t+=o[e]*n[e];return t},v.mag=function(o){return Math.sqrt(this.dotProduct(o,o))},v.normalize=function(o){for(var n=[],t=this.mag(o),e=0;e<o.length;e++)n[e]=o[e]/t;return n},v.multGamma=function(o){for(var n=[],t=0,e=0;e<o.length;e++)t+=o[e];t*=-1/o.length;for(var h=0;h<o.length;h++)n[h]=t+o[h];return n},v.multL=function(o,n,t){for(var e=[],h=[],i=[],d=0;d<n[0].length;d++){for(var r=0,a=0;a<n.length;a++)r+=-.5*n[a][d]*o[a];h[d]=r}for(var f=0;f<t.length;f++){for(var l=0,p=0;p<t.length;p++)l+=t[f][p]*h[p];i[f]=l}for(var g=0;g<n.length;g++){for(var c=0,T=0;T<n[0].length;T++)c+=n[g][T]*i[T];e[g]=c}return e},w.exports=v}),(function(w,G,N){"use strict";var v=(function(){function t(e,h){for(var i=0;i<h.length;i++){var d=h[i];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(e,d.key,d)}}return A(t,"defineProperties"),function(e,h,i){return h&&t(e.prototype,h),i&&t(e,i),e}})();function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}A(o,"_classCallCheck");var n=N(11);w.exports=(function(){function t(e,h){o(this,t),(h!==null||h!==void 0)&&(this.compareFunction=this._defaultCompareFunction);var i=void 0;e instanceof n?i=e.size():i=e.length,this._quicksort(e,0,i-1)}return A(t,"Quicksort"),v(t,[{key:"_quicksort",value:A(function(h,i,d){if(i<d){var r=this._partition(h,i,d);this._quicksort(h,i,r),this._quicksort(h,r+1,d)}},"_quicksort")},{key:"_partition",value:A(function(h,i,d){for(var r=this._get(h,i),a=i,f=d;;){for(;this.compareFunction(r,this._get(h,f));)f--;for(;this.compareFunction(this._get(h,a),r);)a++;if(a<f)this._swap(h,a,f),a++,f--;else return f}},"_partition")},{key:"_get",value:A(function(h,i){return h instanceof n?h.get_object_at(i):h[i]},"_get")},{key:"_set",value:A(function(h,i,d){h instanceof n?h.set_object_at(i,d):h[i]=d},"_set")},{key:"_swap",value:A(function(h,i,d){var r=this._get(h,i);this._set(h,i,this._get(h,d)),this._set(h,d,r)},"_swap")},{key:"_defaultCompareFunction",value:A(function(h,i){return i>h},"_defaultCompareFunction")}]),t})()}),(function(w,G,N){"use strict";function v(){}A(v,"SVD"),v.svd=function(o){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=o.length,this.n=o[0].length;var n=Math.min(this.m,this.n);this.s=(function(Ot){for(var Nt=[];Ot-- >0;)Nt.push(0);return Nt})(Math.min(this.m+1,this.n)),this.U=(function(Ot){return A(function Nt(Ht){if(Ht.length==0)return 0;for(var Ft=[],Yt=0;Yt<Ht[0];Yt++)Ft.push(Nt(Ht.slice(1)));return Ft},"allocate")(Ot)})([this.m,n]),this.V=(function(Ot){return A(function Nt(Ht){if(Ht.length==0)return 0;for(var Ft=[],Yt=0;Yt<Ht[0];Yt++)Ft.push(Nt(Ht.slice(1)));return Ft},"allocate")(Ot)})([this.n,this.n]);for(var t=(function(Ot){for(var Nt=[];Ot-- >0;)Nt.push(0);return Nt})(this.n),e=(function(Ot){for(var Nt=[];Ot-- >0;)Nt.push(0);return Nt})(this.m),h=!0,i=!0,d=Math.min(this.m-1,this.n),r=Math.max(0,Math.min(this.n-2,this.m)),a=0;a<Math.max(d,r);a++){if(a<d){this.s[a]=0;for(var f=a;f<this.m;f++)this.s[a]=v.hypot(this.s[a],o[f][a]);if(this.s[a]!==0){o[a][a]<0&&(this.s[a]=-this.s[a]);for(var l=a;l<this.m;l++)o[l][a]/=this.s[a];o[a][a]+=1}this.s[a]=-this.s[a]}for(var p=a+1;p<this.n;p++){if((function(Ot,Nt){return Ot&&Nt})(a<d,this.s[a]!==0)){for(var g=0,c=a;c<this.m;c++)g+=o[c][a]*o[c][p];g=-g/o[a][a];for(var T=a;T<this.m;T++)o[T][p]+=g*o[T][a]}t[p]=o[a][p]}if((function(Ot,Nt){return Ot&&Nt})(h,a<d))for(var C=a;C<this.m;C++)this.U[C][a]=o[C][a];if(a<r){t[a]=0;for(var R=a+1;R<this.n;R++)t[a]=v.hypot(t[a],t[R]);if(t[a]!==0){t[a+1]<0&&(t[a]=-t[a]);for(var b=a+1;b<this.n;b++)t[b]/=t[a];t[a+1]+=1}if(t[a]=-t[a],(function(Ot,Nt){return Ot&&Nt})(a+1<this.m,t[a]!==0)){for(var X=a+1;X<this.m;X++)e[X]=0;for(var $=a+1;$<this.n;$++)for(var z=a+1;z<this.m;z++)e[z]+=t[$]*o[z][$];for(var I=a+1;I<this.n;I++)for(var et=-t[I]/t[a+1],s=a+1;s<this.m;s++)o[s][I]+=et*e[s]}if(i)for(var m=a+1;m<this.n;m++)this.V[m][a]=t[m]}}var u=Math.min(this.n,this.m+1);if(d<this.n&&(this.s[d]=o[d][d]),this.m<u&&(this.s[u-1]=0),r+1<u&&(t[r]=o[r][u-1]),t[u-1]=0,h){for(var E=d;E<n;E++){for(var y=0;y<this.m;y++)this.U[y][E]=0;this.U[E][E]=1}for(var M=d-1;M>=0;M--)if(this.s[M]!==0){for(var D=M+1;D<n;D++){for(var U=0,O=M;O<this.m;O++)U+=this.U[O][M]*this.U[O][D];U=-U/this.U[M][M];for(var S=M;S<this.m;S++)this.U[S][D]+=U*this.U[S][M]}for(var V=M;V<this.m;V++)this.U[V][M]=-this.U[V][M];this.U[M][M]=1+this.U[M][M];for(var Z=0;Z<M-1;Z++)this.U[Z][M]=0}else{for(var it=0;it<this.m;it++)this.U[it][M]=0;this.U[M][M]=1}}if(i)for(var j=this.n-1;j>=0;j--){if((function(Ot,Nt){return Ot&&Nt})(j<r,t[j]!==0))for(var Y=j+1;Y<n;Y++){for(var P=0,H=j+1;H<this.n;H++)P+=this.V[H][j]*this.V[H][Y];P=-P/this.V[j+1][j];for(var K=j+1;K<this.n;K++)this.V[K][Y]+=P*this.V[K][j]}for(var nt=0;nt<this.n;nt++)this.V[nt][j]=0;this.V[j][j]=1}for(var Q=u-1,k=0,Tt=Math.pow(2,-52),ct=Math.pow(2,-966);u>0;){var J=void 0,Et=void 0;for(J=u-2;J>=-1&&J!==-1;J--)if(Math.abs(t[J])<=ct+Tt*(Math.abs(this.s[J])+Math.abs(this.s[J+1]))){t[J]=0;break}if(J===u-2)Et=4;else{var st=void 0;for(st=u-1;st>=J&&st!==J;st--){var Mt=(st!==u?Math.abs(t[st]):0)+(st!==J+1?Math.abs(t[st-1]):0);if(Math.abs(this.s[st])<=ct+Tt*Mt){this.s[st]=0;break}}st===J?Et=3:st===u-1?Et=1:(Et=2,J=st)}switch(J++,Et){case 1:var Vt=t[u-2];t[u-2]=0;for(var xt=u-2;xt>=J;xt--){var It=v.hypot(this.s[xt],Vt),Pt=this.s[xt]/It,$t=Vt/It;if(this.s[xt]=It,xt!==J&&(Vt=-$t*t[xt-1],t[xt-1]=Pt*t[xt-1]),i)for(var bt=0;bt<this.n;bt++)It=Pt*this.V[bt][xt]+$t*this.V[bt][u-1],this.V[bt][u-1]=-$t*this.V[bt][xt]+Pt*this.V[bt][u-1],this.V[bt][xt]=It}break;case 2:var Bt=t[J-1];t[J-1]=0;for(var Xt=J;Xt<u;Xt++){var Zt=v.hypot(this.s[Xt],Bt),Ct=this.s[Xt]/Zt,ut=Bt/Zt;if(this.s[Xt]=Zt,Bt=-ut*t[Xt],t[Xt]=Ct*t[Xt],h)for(var x=0;x<this.m;x++)Zt=Ct*this.U[x][Xt]+ut*this.U[x][J-1],this.U[x][J-1]=-ut*this.U[x][Xt]+Ct*this.U[x][J-1],this.U[x][Xt]=Zt}break;case 3:var W=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[J])),Math.abs(t[J])),B=this.s[u-1]/W,tt=this.s[u-2]/W,q=t[u-2]/W,_=this.s[J]/W,yt=t[J]/W,gt=((tt+B)*(tt-B)+q*q)/2,at=B*q*(B*q),vt=0;(function(Ot,Nt){return Ot||Nt})(gt!==0,at!==0)&&(vt=Math.sqrt(gt*gt+at),gt<0&&(vt=-vt),vt=at/(gt+vt));for(var wt=(_+B)*(_-B)+vt,Dt=_*yt,rt=J;rt<u-1;rt++){var Lt=v.hypot(wt,Dt),ht=wt/Lt,ot=Dt/Lt;if(rt!==J&&(t[rt-1]=Lt),wt=ht*this.s[rt]+ot*t[rt],t[rt]=ht*t[rt]-ot*this.s[rt],Dt=ot*this.s[rt+1],this.s[rt+1]=ht*this.s[rt+1],i)for(var lt=0;lt<this.n;lt++)Lt=ht*this.V[lt][rt]+ot*this.V[lt][rt+1],this.V[lt][rt+1]=-ot*this.V[lt][rt]+ht*this.V[lt][rt+1],this.V[lt][rt]=Lt;if(Lt=v.hypot(wt,Dt),ht=wt/Lt,ot=Dt/Lt,this.s[rt]=Lt,wt=ht*t[rt]+ot*this.s[rt+1],this.s[rt+1]=-ot*t[rt]+ht*this.s[rt+1],Dt=ot*t[rt+1],t[rt+1]=ht*t[rt+1],h&&rt<this.m-1)for(var mt=0;mt<this.m;mt++)Lt=ht*this.U[mt][rt]+ot*this.U[mt][rt+1],this.U[mt][rt+1]=-ot*this.U[mt][rt]+ht*this.U[mt][rt+1],this.U[mt][rt]=Lt}t[u-2]=wt,k=k+1;break;case 4:if(this.s[J]<=0&&(this.s[J]=this.s[J]<0?-this.s[J]:0,i))for(var dt=0;dt<=Q;dt++)this.V[dt][J]=-this.V[dt][J];for(;J<Q&&!(this.s[J]>=this.s[J+1]);){var St=this.s[J];if(this.s[J]=this.s[J+1],this.s[J+1]=St,i&&J<this.n-1)for(var Rt=0;Rt<this.n;Rt++)St=this.V[Rt][J+1],this.V[Rt][J+1]=this.V[Rt][J],this.V[Rt][J]=St;if(h&&J<this.m-1)for(var Gt=0;Gt<this.m;Gt++)St=this.U[Gt][J+1],this.U[Gt][J+1]=this.U[Gt][J],this.U[Gt][J]=St;J++}k=0,u--}}return{U:this.U,V:this.V,S:this.s}},v.hypot=function(o,n){var t=void 0;return Math.abs(o)>Math.abs(n)?(t=n/o,t=Math.abs(o)*Math.sqrt(1+t*t)):n!=0?(t=o/n,t=Math.abs(n)*Math.sqrt(1+t*t)):t=0,t},w.exports=v}),(function(w,G,N){"use strict";var v=(function(){function n(t,e){for(var h=0;h<e.length;h++){var i=e[h];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return A(n,"defineProperties"),function(t,e,h){return e&&n(t.prototype,e),h&&n(t,h),t}})();function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}A(o,"_classCallCheck"),w.exports=(function(){function n(t,e){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;o(this,n),this.sequence1=t,this.sequence2=e,this.match_score=h,this.mismatch_penalty=i,this.gap_penalty=d,this.iMax=t.length+1,this.jMax=e.length+1,this.grid=new Array(this.iMax);for(var r=0;r<this.iMax;r++){this.grid[r]=new Array(this.jMax);for(var a=0;a<this.jMax;a++)this.grid[r][a]=0}this.tracebackGrid=new Array(this.iMax);for(var f=0;f<this.iMax;f++){this.tracebackGrid[f]=new Array(this.jMax);for(var l=0;l<this.jMax;l++)this.tracebackGrid[f][l]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return A(n,"NeedlemanWunsch"),v(n,[{key:"getScore",value:A(function(){return this.score},"getScore")},{key:"getAlignments",value:A(function(){return this.alignments},"getAlignments")},{key:"computeGrids",value:A(function(){for(var e=1;e<this.jMax;e++)this.grid[0][e]=this.grid[0][e-1]+this.gap_penalty,this.tracebackGrid[0][e]=[!1,!1,!0];for(var h=1;h<this.iMax;h++)this.grid[h][0]=this.grid[h-1][0]+this.gap_penalty,this.tracebackGrid[h][0]=[!1,!0,!1];for(var i=1;i<this.iMax;i++)for(var d=1;d<this.jMax;d++){var r=void 0;this.sequence1[i-1]===this.sequence2[d-1]?r=this.grid[i-1][d-1]+this.match_score:r=this.grid[i-1][d-1]+this.mismatch_penalty;var a=this.grid[i-1][d]+this.gap_penalty,f=this.grid[i][d-1]+this.gap_penalty,l=[r,a,f],p=this.arrayAllMaxIndexes(l);this.grid[i][d]=l[p[0]],this.tracebackGrid[i][d]=[p.includes(0),p.includes(1),p.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]},"computeGrids")},{key:"alignmentTraceback",value:A(function(){var e=[];for(e.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});e[0];){var h=e[0],i=this.tracebackGrid[h.pos[0]][h.pos[1]];i[0]&&e.push({pos:[h.pos[0]-1,h.pos[1]-1],seq1:this.sequence1[h.pos[0]-1]+h.seq1,seq2:this.sequence2[h.pos[1]-1]+h.seq2}),i[1]&&e.push({pos:[h.pos[0]-1,h.pos[1]],seq1:this.sequence1[h.pos[0]-1]+h.seq1,seq2:"-"+h.seq2}),i[2]&&e.push({pos:[h.pos[0],h.pos[1]-1],seq1:"-"+h.seq1,seq2:this.sequence2[h.pos[1]-1]+h.seq2}),h.pos[0]===0&&h.pos[1]===0&&this.alignments.push({sequence1:h.seq1,sequence2:h.seq2}),e.shift()}return this.alignments},"alignmentTraceback")},{key:"getAllIndexes",value:A(function(e,h){for(var i=[],d=-1;(d=e.indexOf(h,d+1))!==-1;)i.push(d);return i},"getAllIndexes")},{key:"arrayAllMaxIndexes",value:A(function(e){return this.getAllIndexes(e,Math.max.apply(null,e))},"arrayAllMaxIndexes")}]),n})()}),(function(w,G,N){"use strict";var v=A(function(){},"layoutBase");v.FDLayout=N(18),v.FDLayoutConstants=N(4),v.FDLayoutEdge=N(19),v.FDLayoutNode=N(20),v.DimensionD=N(21),v.HashMap=N(22),v.HashSet=N(23),v.IGeometry=N(8),v.IMath=N(9),v.Integer=N(10),v.Point=N(12),v.PointD=N(5),v.RandomSeed=N(16),v.RectangleD=N(13),v.Transform=N(17),v.UniqueIDGeneretor=N(14),v.Quicksort=N(25),v.LinkedList=N(11),v.LGraphObject=N(2),v.LGraph=N(6),v.LEdge=N(1),v.LGraphManager=N(7),v.LNode=N(3),v.Layout=N(15),v.LayoutConstants=N(0),v.NeedlemanWunsch=N(27),v.Matrix=N(24),v.SVD=N(26),w.exports=v}),(function(w,G,N){"use strict";function v(){this.listeners=[]}A(v,"Emitter");var o=v.prototype;o.addListener=function(n,t){this.listeners.push({event:n,callback:t})},o.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)}},o.emit=function(n,t){for(var e=0;e<this.listeners.length;e++){var h=this.listeners[e];n===h.event&&h.callback(t)}},w.exports=v})])})})),Ce=ve(((L,F)=>{A((function(G,N){typeof L=="object"&&typeof F=="object"?F.exports=N(Me()):typeof define=="function"&&define.amd?define(["layout-base"],N):typeof L=="object"?L.coseBase=N(Me()):G.coseBase=N(G.layoutBase)}),"webpackUniversalModuleDefinition")(L,function(w){return(()=>{"use strict";var G={45:((o,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),o.exports=e}),806:((o,n,t)=>{var e=t(551).FDLayoutConstants;function h(){}A(h,"CoSEConstants");for(var i in e)h[i]=e[i];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,o.exports=h}),767:((o,n,t)=>{var e=t(551).FDLayoutEdge;function h(d,r,a){e.call(this,d,r,a)}A(h,"CoSEEdge"),h.prototype=Object.create(e.prototype);for(var i in e)h[i]=e[i];o.exports=h}),880:((o,n,t)=>{var e=t(551).LGraph;function h(d,r,a){e.call(this,d,r,a)}A(h,"CoSEGraph"),h.prototype=Object.create(e.prototype);for(var i in e)h[i]=e[i];o.exports=h}),578:((o,n,t)=>{var e=t(551).LGraphManager;function h(d){e.call(this,d)}A(h,"CoSEGraphManager"),h.prototype=Object.create(e.prototype);for(var i in e)h[i]=e[i];o.exports=h}),765:((o,n,t)=>{var e=t(551).FDLayout,h=t(578),i=t(880),d=t(991),r=t(767),a=t(806),f=t(902),l=t(551).FDLayoutConstants,p=t(551).LayoutConstants,g=t(551).Point,c=t(551).PointD,T=t(551).DimensionD,C=t(551).Layout,R=t(551).Integer,b=t(551).IGeometry,X=t(551).LGraph,$=t(551).Transform,z=t(551).LinkedList;function I(){e.call(this),this.toBeTiled={},this.constraints={}}A(I,"CoSELayout"),I.prototype=Object.create(e.prototype);for(var et in e)I[et]=e[et];I.prototype.newGraphManager=function(){var s=new h(this);return this.graphManager=s,s},I.prototype.newGraph=function(s){return new i(null,this.graphManager,s)},I.prototype.newNode=function(s){return new d(this.graphManager,s)},I.prototype.newEdge=function(s){return new r(null,null,s)},I.prototype.initParameters=function(){e.prototype.initParameters.call(this,arguments),this.isSubLayout||(a.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=a.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=a.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=l.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=l.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=l.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},I.prototype.initSpringEmbedder=function(){e.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/l.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},I.prototype.layout=function(){return p.DEFAULT_CREATE_BENDS_AS_NEEDED&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},I.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(a.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),u=this.nodesWithGravity.filter(function(M){return m.has(M)});this.graphManager.setAllNodesToApplyGravitation(u)}}else{var s=this.getFlatForest();if(s.length>0)this.positionNodesRadially(s);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),u=this.nodesWithGravity.filter(function(E){return m.has(E)});this.graphManager.setAllNodesToApplyGravitation(u),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(f.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),a.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},I.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%l.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var s=new Set(this.getAllNodes()),m=this.nodesWithGravity.filter(function(y){return s.has(y)});this.graphManager.setAllNodesToApplyGravitation(m),this.graphManager.updateBounds(),this.updateGrid(),a.PURE_INCREMENTAL?this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),a.PURE_INCREMENTAL?this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var u=!this.isTreeGrowing&&!this.isGrowthFinished,E=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(u,E),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},I.prototype.getPositionsData=function(){for(var s=this.graphManager.getAllNodes(),m={},u=0;u<s.length;u++){var E=s[u].rect,y=s[u].id;m[y]={id:y,x:E.getCenterX(),y:E.getCenterY(),w:E.width,h:E.height}}return m},I.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var s=!1;if(l.ANIMATE==="during")this.emit("layoutstarted");else{for(;!s;)s=this.tick();this.graphManager.updateBounds()}},I.prototype.moveNodes=function(){for(var s=this.getAllNodes(),m,u=0;u<s.length;u++)m=s[u],m.calculateDisplacement();Object.keys(this.constraints).length>0&&this.updateDisplacements();for(var u=0;u<s.length;u++)m=s[u],m.move()},I.prototype.initConstraintVariables=function(){var s=this;this.idToNodeMap=new Map,this.fixedNodeSet=new Set;for(var m=this.graphManager.getAllNodes(),u=0;u<m.length;u++){var E=m[u];this.idToNodeMap.set(E.id,E)}var y=A(function P(H){for(var K=H.getChild().getNodes(),nt,Q=0,k=0;k<K.length;k++)nt=K[k],nt.getChild()==null?s.fixedNodeSet.has(nt.id)&&(Q+=100):Q+=P(nt);return Q},"calculateCompoundWeight");if(this.constraints.fixedNodeConstraint){this.constraints.fixedNodeConstraint.forEach(function(K){s.fixedNodeSet.add(K.nodeId)});for(var m=this.graphManager.getAllNodes(),E,u=0;u<m.length;u++)if(E=m[u],E.getChild()!=null){var M=y(E);M>0&&(E.fixedNodeWeight=M)}}if(this.constraints.relativePlacementConstraint){var D=new Map,U=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(P){s.fixedNodesOnHorizontal.add(P),s.fixedNodesOnVertical.add(P)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var O=this.constraints.alignmentConstraint.vertical,u=0;u<O.length;u++)this.dummyToNodeForVerticalAlignment.set("dummy"+u,[]),O[u].forEach(function(H){D.set(H,"dummy"+u),s.dummyToNodeForVerticalAlignment.get("dummy"+u).push(H),s.fixedNodeSet.has(H)&&s.fixedNodesOnHorizontal.add("dummy"+u)});if(this.constraints.alignmentConstraint.horizontal)for(var S=this.constraints.alignmentConstraint.horizontal,u=0;u<S.length;u++)this.dummyToNodeForHorizontalAlignment.set("dummy"+u,[]),S[u].forEach(function(H){U.set(H,"dummy"+u),s.dummyToNodeForHorizontalAlignment.get("dummy"+u).push(H),s.fixedNodeSet.has(H)&&s.fixedNodesOnVertical.add("dummy"+u)})}if(a.RELAX_MOVEMENT_ON_CONSTRAINTS)this.shuffle=function(P){var H,K,nt;for(nt=P.length-1;nt>=2*P.length/3;nt--)H=Math.floor(Math.random()*(nt+1)),K=P[nt],P[nt]=P[H],P[H]=K;return P},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(P){if(P.left){var H=D.has(P.left)?D.get(P.left):P.left,K=D.has(P.right)?D.get(P.right):P.right;s.nodesInRelativeHorizontal.includes(H)||(s.nodesInRelativeHorizontal.push(H),s.nodeToRelativeConstraintMapHorizontal.set(H,[]),s.dummyToNodeForVerticalAlignment.has(H)?s.nodeToTempPositionMapHorizontal.set(H,s.idToNodeMap.get(s.dummyToNodeForVerticalAlignment.get(H)[0]).getCenterX()):s.nodeToTempPositionMapHorizontal.set(H,s.idToNodeMap.get(H).getCenterX())),s.nodesInRelativeHorizontal.includes(K)||(s.nodesInRelativeHorizontal.push(K),s.nodeToRelativeConstraintMapHorizontal.set(K,[]),s.dummyToNodeForVerticalAlignment.has(K)?s.nodeToTempPositionMapHorizontal.set(K,s.idToNodeMap.get(s.dummyToNodeForVerticalAlignment.get(K)[0]).getCenterX()):s.nodeToTempPositionMapHorizontal.set(K,s.idToNodeMap.get(K).getCenterX())),s.nodeToRelativeConstraintMapHorizontal.get(H).push({right:K,gap:P.gap}),s.nodeToRelativeConstraintMapHorizontal.get(K).push({left:H,gap:P.gap})}else{var nt=U.has(P.top)?U.get(P.top):P.top,Q=U.has(P.bottom)?U.get(P.bottom):P.bottom;s.nodesInRelativeVertical.includes(nt)||(s.nodesInRelativeVertical.push(nt),s.nodeToRelativeConstraintMapVertical.set(nt,[]),s.dummyToNodeForHorizontalAlignment.has(nt)?s.nodeToTempPositionMapVertical.set(nt,s.idToNodeMap.get(s.dummyToNodeForHorizontalAlignment.get(nt)[0]).getCenterY()):s.nodeToTempPositionMapVertical.set(nt,s.idToNodeMap.get(nt).getCenterY())),s.nodesInRelativeVertical.includes(Q)||(s.nodesInRelativeVertical.push(Q),s.nodeToRelativeConstraintMapVertical.set(Q,[]),s.dummyToNodeForHorizontalAlignment.has(Q)?s.nodeToTempPositionMapVertical.set(Q,s.idToNodeMap.get(s.dummyToNodeForHorizontalAlignment.get(Q)[0]).getCenterY()):s.nodeToTempPositionMapVertical.set(Q,s.idToNodeMap.get(Q).getCenterY())),s.nodeToRelativeConstraintMapVertical.get(nt).push({bottom:Q,gap:P.gap}),s.nodeToRelativeConstraintMapVertical.get(Q).push({top:nt,gap:P.gap})}});else{var V=new Map,Z=new Map;this.constraints.relativePlacementConstraint.forEach(function(P){if(P.left){var H=D.has(P.left)?D.get(P.left):P.left,K=D.has(P.right)?D.get(P.right):P.right;V.has(H)?V.get(H).push(K):V.set(H,[K]),V.has(K)?V.get(K).push(H):V.set(K,[H])}else{var nt=U.has(P.top)?U.get(P.top):P.top,Q=U.has(P.bottom)?U.get(P.bottom):P.bottom;Z.has(nt)?Z.get(nt).push(Q):Z.set(nt,[Q]),Z.has(Q)?Z.get(Q).push(nt):Z.set(Q,[nt])}});var it=A(function(H,K){var nt=[],Q=[],k=new z,Tt=new Set,ct=0;return H.forEach(function(J,Et){if(!Tt.has(Et)){nt[ct]=[],Q[ct]=!1;var st=Et;for(k.push(st),Tt.add(st),nt[ct].push(st);k.length!=0;)st=k.shift(),K.has(st)&&(Q[ct]=!0),H.get(st).forEach(function(Mt){Tt.has(Mt)||(k.push(Mt),Tt.add(Mt),nt[ct].push(Mt))});ct++}}),{components:nt,isFixed:Q}},"constructComponents"),j=it(V,s.fixedNodesOnHorizontal);this.componentsOnHorizontal=j.components,this.fixedComponentsOnHorizontal=j.isFixed;var Y=it(Z,s.fixedNodesOnVertical);this.componentsOnVertical=Y.components,this.fixedComponentsOnVertical=Y.isFixed}}},I.prototype.updateDisplacements=function(){var s=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(Y){var P=s.idToNodeMap.get(Y.nodeId);P.displacementX=0,P.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var m=this.constraints.alignmentConstraint.vertical,u=0;u<m.length;u++){for(var E=0,y=0;y<m[u].length;y++){if(this.fixedNodeSet.has(m[u][y])){E=0;break}E+=this.idToNodeMap.get(m[u][y]).displacementX}for(var M=E/m[u].length,y=0;y<m[u].length;y++)this.idToNodeMap.get(m[u][y]).displacementX=M}if(this.constraints.alignmentConstraint.horizontal)for(var D=this.constraints.alignmentConstraint.horizontal,u=0;u<D.length;u++){for(var U=0,y=0;y<D[u].length;y++){if(this.fixedNodeSet.has(D[u][y])){U=0;break}U+=this.idToNodeMap.get(D[u][y]).displacementY}for(var O=U/D[u].length,y=0;y<D[u].length;y++)this.idToNodeMap.get(D[u][y]).displacementY=O}}if(this.constraints.relativePlacementConstraint)if(a.RELAX_MOVEMENT_ON_CONSTRAINTS)this.totalIterations%10==0&&(this.shuffle(this.nodesInRelativeHorizontal),this.shuffle(this.nodesInRelativeVertical)),this.nodesInRelativeHorizontal.forEach(function(Y){if(!s.fixedNodesOnHorizontal.has(Y)){var P=0;s.dummyToNodeForVerticalAlignment.has(Y)?P=s.idToNodeMap.get(s.dummyToNodeForVerticalAlignment.get(Y)[0]).displacementX:P=s.idToNodeMap.get(Y).displacementX,s.nodeToRelativeConstraintMapHorizontal.get(Y).forEach(function(H){if(H.right){var K=s.nodeToTempPositionMapHorizontal.get(H.right)-s.nodeToTempPositionMapHorizontal.get(Y)-P;K<H.gap&&(P-=H.gap-K)}else{var K=s.nodeToTempPositionMapHorizontal.get(Y)-s.nodeToTempPositionMapHorizontal.get(H.left)+P;K<H.gap&&(P+=H.gap-K)}}),s.nodeToTempPositionMapHorizontal.set(Y,s.nodeToTempPositionMapHorizontal.get(Y)+P),s.dummyToNodeForVerticalAlignment.has(Y)?s.dummyToNodeForVerticalAlignment.get(Y).forEach(function(H){s.idToNodeMap.get(H).displacementX=P}):s.idToNodeMap.get(Y).displacementX=P}}),this.nodesInRelativeVertical.forEach(function(Y){if(!s.fixedNodesOnHorizontal.has(Y)){var P=0;s.dummyToNodeForHorizontalAlignment.has(Y)?P=s.idToNodeMap.get(s.dummyToNodeForHorizontalAlignment.get(Y)[0]).displacementY:P=s.idToNodeMap.get(Y).displacementY,s.nodeToRelativeConstraintMapVertical.get(Y).forEach(function(H){if(H.bottom){var K=s.nodeToTempPositionMapVertical.get(H.bottom)-s.nodeToTempPositionMapVertical.get(Y)-P;K<H.gap&&(P-=H.gap-K)}else{var K=s.nodeToTempPositionMapVertical.get(Y)-s.nodeToTempPositionMapVertical.get(H.top)+P;K<H.gap&&(P+=H.gap-K)}}),s.nodeToTempPositionMapVertical.set(Y,s.nodeToTempPositionMapVertical.get(Y)+P),s.dummyToNodeForHorizontalAlignment.has(Y)?s.dummyToNodeForHorizontalAlignment.get(Y).forEach(function(H){s.idToNodeMap.get(H).displacementY=P}):s.idToNodeMap.get(Y).displacementY=P}});else{for(var u=0;u<this.componentsOnHorizontal.length;u++){var S=this.componentsOnHorizontal[u];if(this.fixedComponentsOnHorizontal[u])for(var y=0;y<S.length;y++)this.dummyToNodeForVerticalAlignment.has(S[y])?this.dummyToNodeForVerticalAlignment.get(S[y]).forEach(function(H){s.idToNodeMap.get(H).displacementX=0}):this.idToNodeMap.get(S[y]).displacementX=0;else{for(var V=0,Z=0,y=0;y<S.length;y++)if(this.dummyToNodeForVerticalAlignment.has(S[y])){var it=this.dummyToNodeForVerticalAlignment.get(S[y]);V+=it.length*this.idToNodeMap.get(it[0]).displacementX,Z+=it.length}else V+=this.idToNodeMap.get(S[y]).displacementX,Z++;for(var j=V/Z,y=0;y<S.length;y++)this.dummyToNodeForVerticalAlignment.has(S[y])?this.dummyToNodeForVerticalAlignment.get(S[y]).forEach(function(H){s.idToNodeMap.get(H).displacementX=j}):this.idToNodeMap.get(S[y]).displacementX=j}}for(var u=0;u<this.componentsOnVertical.length;u++){var S=this.componentsOnVertical[u];if(this.fixedComponentsOnVertical[u])for(var y=0;y<S.length;y++)this.dummyToNodeForHorizontalAlignment.has(S[y])?this.dummyToNodeForHorizontalAlignment.get(S[y]).forEach(function(K){s.idToNodeMap.get(K).displacementY=0}):this.idToNodeMap.get(S[y]).displacementY=0;else{for(var V=0,Z=0,y=0;y<S.length;y++)if(this.dummyToNodeForHorizontalAlignment.has(S[y])){var it=this.dummyToNodeForHorizontalAlignment.get(S[y]);V+=it.length*this.idToNodeMap.get(it[0]).displacementY,Z+=it.length}else V+=this.idToNodeMap.get(S[y]).displacementY,Z++;for(var j=V/Z,y=0;y<S.length;y++)this.dummyToNodeForHorizontalAlignment.has(S[y])?this.dummyToNodeForHorizontalAlignment.get(S[y]).forEach(function(k){s.idToNodeMap.get(k).displacementY=j}):this.idToNodeMap.get(S[y]).displacementY=j}}}},I.prototype.calculateNodesToApplyGravitationTo=function(){var s=[],m,u=this.graphManager.getGraphs(),E=u.length,y;for(y=0;y<E;y++)m=u[y],m.updateConnected(),m.isConnected||(s=s.concat(m.getNodes()));return s},I.prototype.createBendpoints=function(){var s=[];s=s.concat(this.graphManager.getAllEdges());var m=new Set,u;for(u=0;u<s.length;u++){var E=s[u];if(!m.has(E)){var y=E.getSource(),M=E.getTarget();if(y==M)E.getBendpoints().push(new c),E.getBendpoints().push(new c),this.createDummyNodesForBendpoints(E),m.add(E);else{var D=[];if(D=D.concat(y.getEdgeListToNode(M)),D=D.concat(M.getEdgeListToNode(y)),!m.has(D[0])){if(D.length>1){var U;for(U=0;U<D.length;U++){var O=D[U];O.getBendpoints().push(new c),this.createDummyNodesForBendpoints(O)}}D.forEach(function(S){m.add(S)})}}}if(m.size==s.length)break}},I.prototype.positionNodesRadially=function(s){for(var m=new g(0,0),u=Math.ceil(Math.sqrt(s.length)),E=0,y=0,M=0,D=new c(0,0),U=0;U<s.length;U++){U%u==0&&(M=0,y=E,U!=0&&(y+=a.DEFAULT_COMPONENT_SEPERATION),E=0);var O=s[U],S=C.findCenterOfTree(O);m.x=M,m.y=y,D=I.radialLayout(O,S,m),D.y>E&&(E=Math.floor(D.y)),M=Math.floor(D.x+a.DEFAULT_COMPONENT_SEPERATION)}this.transform(new c(p.WORLD_CENTER_X-D.x/2,p.WORLD_CENTER_Y-D.y/2))},I.radialLayout=function(s,m,u){var E=Math.max(this.maxDiagonalInTree(s),a.DEFAULT_RADIAL_SEPARATION);I.branchRadialLayout(m,null,0,359,0,E);var y=X.calculateBounds(s),M=new $;M.setDeviceOrgX(y.getMinX()),M.setDeviceOrgY(y.getMinY()),M.setWorldOrgX(u.x),M.setWorldOrgY(u.y);for(var D=0;D<s.length;D++)s[D].transform(M);var U=new c(y.getMaxX(),y.getMaxY());return M.inverseTransformPoint(U)},I.branchRadialLayout=function(s,m,u,E,y,M){var D=(E-u+1)/2;D<0&&(D+=180);var U=(D+u)%360*b.TWO_PI/360,O=y*Math.cos(U),S=y*Math.sin(U);s.setCenter(O,S);var V=[];V=V.concat(s.getEdges());var Z=V.length;m!=null&&Z--;for(var it=0,j=V.length,Y,P=s.getEdgesBetween(m);P.length>1;){var H=P[0];P.splice(0,1);var K=V.indexOf(H);K>=0&&V.splice(K,1),j--,Z--}m!=null?Y=(V.indexOf(P[0])+1)%j:Y=0;for(var nt=Math.abs(E-u)/Z,Q=Y;it!=Z;Q=++Q%j){var k=V[Q].getOtherEnd(s);if(k!=m){var Tt=(u+it*nt)%360,ct=(Tt+nt)%360;I.branchRadialLayout(k,s,Tt,ct,y+M,M),it++}}},I.maxDiagonalInTree=function(s){for(var m=R.MIN_VALUE,u=0;u<s.length;u++){var E=s[u].getDiagonal();E>m&&(m=E)}return m},I.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},I.prototype.groupZeroDegreeMembers=function(){var s=this,m={};this.memberGroups={},this.idToDummyNode={};for(var u=[],E=this.graphManager.getAllNodes(),y=0;y<E.length;y++){var M=E[y],D=M.getParent();this.getNodeDegreeWithChildren(M)===0&&(D.id==null||!this.getToBeTiled(D))&&u.push(M)}for(var y=0;y<u.length;y++){var M=u[y],U=M.getParent().id;typeof m[U]>"u"&&(m[U]=[]),m[U]=m[U].concat(M)}Object.keys(m).forEach(function(O){if(m[O].length>1){var S="DummyCompound_"+O;s.memberGroups[S]=m[O];var V=m[O][0].getParent(),Z=new d(s.graphManager);Z.id=S,Z.paddingLeft=V.paddingLeft||0,Z.paddingRight=V.paddingRight||0,Z.paddingBottom=V.paddingBottom||0,Z.paddingTop=V.paddingTop||0,s.idToDummyNode[S]=Z;var it=s.getGraphManager().add(s.newGraph(),Z),j=V.getChild();j.add(Z);for(var Y=0;Y<m[O].length;Y++){var P=m[O][Y];j.remove(P),it.add(P)}}})},I.prototype.clearCompounds=function(){var s={},m={};this.performDFSOnCompounds();for(var u=0;u<this.compoundOrder.length;u++)m[this.compoundOrder[u].id]=this.compoundOrder[u],s[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(s,m)},I.prototype.clearZeroDegreeMembers=function(){var s=this,m=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(u){var E=s.idToDummyNode[u];if(m[u]=s.tileNodes(s.memberGroups[u],E.paddingLeft+E.paddingRight),E.rect.width=m[u].width,E.rect.height=m[u].height,E.setCenter(m[u].centerX,m[u].centerY),E.labelMarginLeft=0,E.labelMarginTop=0,a.NODE_DIMENSIONS_INCLUDE_LABELS){var y=E.rect.width,M=E.rect.height;E.labelWidth&&(E.labelPosHorizontal=="left"?(E.rect.x-=E.labelWidth,E.setWidth(y+E.labelWidth),E.labelMarginLeft=E.labelWidth):E.labelPosHorizontal=="center"&&E.labelWidth>y?(E.rect.x-=(E.labelWidth-y)/2,E.setWidth(E.labelWidth),E.labelMarginLeft=(E.labelWidth-y)/2):E.labelPosHorizontal=="right"&&E.setWidth(y+E.labelWidth)),E.labelHeight&&(E.labelPosVertical=="top"?(E.rect.y-=E.labelHeight,E.setHeight(M+E.labelHeight),E.labelMarginTop=E.labelHeight):E.labelPosVertical=="center"&&E.labelHeight>M?(E.rect.y-=(E.labelHeight-M)/2,E.setHeight(E.labelHeight),E.labelMarginTop=(E.labelHeight-M)/2):E.labelPosVertical=="bottom"&&E.setHeight(M+E.labelHeight))}})},I.prototype.repopulateCompounds=function(){for(var s=this.compoundOrder.length-1;s>=0;s--){var m=this.compoundOrder[s],u=m.id,E=m.paddingLeft,y=m.paddingTop,M=m.labelMarginLeft,D=m.labelMarginTop;this.adjustLocations(this.tiledMemberPack[u],m.rect.x,m.rect.y,E,y,M,D)}},I.prototype.repopulateZeroDegreeMembers=function(){var s=this,m=this.tiledZeroDegreePack;Object.keys(m).forEach(function(u){var E=s.idToDummyNode[u],y=E.paddingLeft,M=E.paddingTop,D=E.labelMarginLeft,U=E.labelMarginTop;s.adjustLocations(m[u],E.rect.x,E.rect.y,y,M,D,U)})},I.prototype.getToBeTiled=function(s){var m=s.id;if(this.toBeTiled[m]!=null)return this.toBeTiled[m];var u=s.getChild();if(u==null)return this.toBeTiled[m]=!1,!1;for(var E=u.getNodes(),y=0;y<E.length;y++){var M=E[y];if(this.getNodeDegree(M)>0)return this.toBeTiled[m]=!1,!1;if(M.getChild()==null){this.toBeTiled[M.id]=!1;continue}if(!this.getToBeTiled(M))return this.toBeTiled[m]=!1,!1}return this.toBeTiled[m]=!0,!0},I.prototype.getNodeDegree=function(s){s.id;for(var m=s.getEdges(),u=0,E=0;E<m.length;E++){var y=m[E];y.getSource().id!==y.getTarget().id&&(u=u+1)}return u},I.prototype.getNodeDegreeWithChildren=function(s){var m=this.getNodeDegree(s);if(s.getChild()==null)return m;for(var u=s.getChild().getNodes(),E=0;E<u.length;E++){var y=u[E];m+=this.getNodeDegreeWithChildren(y)}return m},I.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},I.prototype.fillCompexOrderByDFS=function(s){for(var m=0;m<s.length;m++){var u=s[m];u.getChild()!=null&&this.fillCompexOrderByDFS(u.getChild().getNodes()),this.getToBeTiled(u)&&this.compoundOrder.push(u)}},I.prototype.adjustLocations=function(s,m,u,E,y,M,D){m+=E+M,u+=y+D;for(var U=m,O=0;O<s.rows.length;O++){var S=s.rows[O];m=U;for(var V=0,Z=0;Z<S.length;Z++){var it=S[Z];it.rect.x=m,it.rect.y=u,m+=it.rect.width+s.horizontalPadding,it.rect.height>V&&(V=it.rect.height)}u+=V+s.verticalPadding}},I.prototype.tileCompoundMembers=function(s,m){var u=this;this.tiledMemberPack=[],Object.keys(s).forEach(function(E){var y=m[E];if(u.tiledMemberPack[E]=u.tileNodes(s[E],y.paddingLeft+y.paddingRight),y.rect.width=u.tiledMemberPack[E].width,y.rect.height=u.tiledMemberPack[E].height,y.setCenter(u.tiledMemberPack[E].centerX,u.tiledMemberPack[E].centerY),y.labelMarginLeft=0,y.labelMarginTop=0,a.NODE_DIMENSIONS_INCLUDE_LABELS){var M=y.rect.width,D=y.rect.height;y.labelWidth&&(y.labelPosHorizontal=="left"?(y.rect.x-=y.labelWidth,y.setWidth(M+y.labelWidth),y.labelMarginLeft=y.labelWidth):y.labelPosHorizontal=="center"&&y.labelWidth>M?(y.rect.x-=(y.labelWidth-M)/2,y.setWidth(y.labelWidth),y.labelMarginLeft=(y.labelWidth-M)/2):y.labelPosHorizontal=="right"&&y.setWidth(M+y.labelWidth)),y.labelHeight&&(y.labelPosVertical=="top"?(y.rect.y-=y.labelHeight,y.setHeight(D+y.labelHeight),y.labelMarginTop=y.labelHeight):y.labelPosVertical=="center"&&y.labelHeight>D?(y.rect.y-=(y.labelHeight-D)/2,y.setHeight(y.labelHeight),y.labelMarginTop=(y.labelHeight-D)/2):y.labelPosVertical=="bottom"&&y.setHeight(D+y.labelHeight))}})},I.prototype.tileNodes=function(s,m){var u=this.tileNodesByFavoringDim(s,m,!0),E=this.tileNodesByFavoringDim(s,m,!1),y=this.getOrgRatio(u),M=this.getOrgRatio(E),D;return M<y?D=E:D=u,D},I.prototype.getOrgRatio=function(s){var m=s.width/s.height;return m<1&&(m=1/m),m},I.prototype.calcIdealRowWidth=function(s,m){var u=a.TILING_PADDING_VERTICAL,E=a.TILING_PADDING_HORIZONTAL,y=s.length,M=0,D=0,U=0;s.forEach(function(Y){M+=Y.getWidth(),D+=Y.getHeight(),Y.getWidth()>U&&(U=Y.getWidth())});var O=M/y,S=D/y,V=Math.pow(u-E,2)+4*(O+E)*(S+u)*y,Z=(E-u+Math.sqrt(V))/(2*(O+E)),it;m?(it=Math.ceil(Z),it==Z&&it++):it=Math.floor(Z);var j=it*(O+E)-E;return U>j&&(j=U),j+=E*2,j},I.prototype.tileNodesByFavoringDim=function(s,m,u){var E=a.TILING_PADDING_VERTICAL,y=a.TILING_PADDING_HORIZONTAL,M=a.TILING_COMPARE_BY,D={rows:[],rowWidth:[],rowHeight:[],width:0,height:m,verticalPadding:E,horizontalPadding:y,centerX:0,centerY:0};M&&(D.idealRowWidth=this.calcIdealRowWidth(s,u));var U=A(function(P){return P.rect.width*P.rect.height},"getNodeArea"),O=A(function(P,H){return U(H)-U(P)},"areaCompareFcn");s.sort(function(Y,P){var H=O;return D.idealRowWidth?(H=M,H(Y.id,P.id)):H(Y,P)});for(var S=0,V=0,Z=0;Z<s.length;Z++){var it=s[Z];S+=it.getCenterX(),V+=it.getCenterY()}D.centerX=S/s.length,D.centerY=V/s.length;for(var Z=0;Z<s.length;Z++){var it=s[Z];if(D.rows.length==0)this.insertNodeToRow(D,it,0,m);else if(this.canAddHorizontal(D,it.rect.width,it.rect.height)){var j=D.rows.length-1;D.idealRowWidth||(j=this.getShortestRowIndex(D)),this.insertNodeToRow(D,it,j,m)}else this.insertNodeToRow(D,it,D.rows.length,m);this.shiftToLastRow(D)}return D},I.prototype.insertNodeToRow=function(s,m,u,E){var y=E;u==s.rows.length&&(s.rows.push([]),s.rowWidth.push(y),s.rowHeight.push(0));var M=s.rowWidth[u]+m.rect.width;s.rows[u].length>0&&(M+=s.horizontalPadding),s.rowWidth[u]=M,s.width<M&&(s.width=M);var D=m.rect.height;u>0&&(D+=s.verticalPadding);var U=0;D>s.rowHeight[u]&&(U=s.rowHeight[u],s.rowHeight[u]=D,U=s.rowHeight[u]-U),s.height+=U,s.rows[u].push(m)},I.prototype.getShortestRowIndex=function(s){for(var m=-1,u=Number.MAX_VALUE,E=0;E<s.rows.length;E++)s.rowWidth[E]<u&&(m=E,u=s.rowWidth[E]);return m},I.prototype.getLongestRowIndex=function(s){for(var m=-1,u=Number.MIN_VALUE,E=0;E<s.rows.length;E++)s.rowWidth[E]>u&&(m=E,u=s.rowWidth[E]);return m},I.prototype.canAddHorizontal=function(s,m,u){if(s.idealRowWidth){var E=s.rows.length-1;return s.rowWidth[E]+m+s.horizontalPadding<=s.idealRowWidth}var y=this.getShortestRowIndex(s);if(y<0)return!0;var M=s.rowWidth[y];if(M+s.horizontalPadding+m<=s.width)return!0;var D=0;s.rowHeight[y]<u&&y>0&&(D=u+s.verticalPadding-s.rowHeight[y]);var U;s.width-M>=m+s.horizontalPadding?U=(s.height+D)/(M+m+s.horizontalPadding):U=(s.height+D)/s.width,D=u+s.verticalPadding;var O;return s.width<m?O=(s.height+D)/m:O=(s.height+D)/s.width,O<1&&(O=1/O),U<1&&(U=1/U),U<O},I.prototype.shiftToLastRow=function(s){var m=this.getLongestRowIndex(s),u=s.rowWidth.length-1,E=s.rows[m],y=E[E.length-1],M=y.width+s.horizontalPadding;if(s.width-s.rowWidth[u]>M&&m!=u){E.splice(-1,1),s.rows[u].push(y),s.rowWidth[m]=s.rowWidth[m]-M,s.rowWidth[u]=s.rowWidth[u]+M,s.width=s.rowWidth[instance.getLongestRowIndex(s)];for(var D=Number.MIN_VALUE,U=0;U<E.length;U++)E[U].height>D&&(D=E[U].height);m>0&&(D+=s.verticalPadding);var O=s.rowHeight[m]+s.rowHeight[u];s.rowHeight[m]=D,s.rowHeight[u]<y.height+s.verticalPadding&&(s.rowHeight[u]=y.height+s.verticalPadding);var S=s.rowHeight[m]+s.rowHeight[u];s.height+=S-O,this.shiftToLastRow(s)}},I.prototype.tilingPreLayout=function(){a.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},I.prototype.tilingPostLayout=function(){a.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},I.prototype.reduceTrees=function(){for(var s=[],m=!0,u;m;){var E=this.graphManager.getAllNodes(),y=[];m=!1;for(var M=0;M<E.length;M++)if(u=E[M],u.getEdges().length==1&&!u.getEdges()[0].isInterGraph&&u.getChild()==null){if(a.PURE_INCREMENTAL){var D=u.getEdges()[0].getOtherEnd(u),U=new T(u.getCenterX()-D.getCenterX(),u.getCenterY()-D.getCenterY());y.push([u,u.getEdges()[0],u.getOwner(),U])}else y.push([u,u.getEdges()[0],u.getOwner()]);m=!0}if(m==!0){for(var O=[],S=0;S<y.length;S++)y[S][0].getEdges().length==1&&(O.push(y[S]),y[S][0].getOwner().remove(y[S][0]));s.push(O),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=s},I.prototype.growTree=function(s){for(var m=s[s.length-1],u,E=0;E<m.length;E++)u=m[E],this.findPlaceforPrunedNode(u),u[2].add(u[0]),u[2].add(u[1],u[1].source,u[1].target);s.splice(s.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},I.prototype.findPlaceforPrunedNode=function(s){var m,u,E=s[0];if(E==s[1].source?u=s[1].target:u=s[1].source,a.PURE_INCREMENTAL)E.setCenter(u.getCenterX()+s[3].getWidth(),u.getCenterY()+s[3].getHeight());else{var y=u.startX,M=u.finishX,D=u.startY,U=u.finishY,O=[0,0,0,0];if(D>0)for(var S=y;S<=M;S++)O[0]+=this.grid[S][D-1].length+this.grid[S][D].length-1;if(M<this.grid.length-1)for(var S=D;S<=U;S++)O[1]+=this.grid[M+1][S].length+this.grid[M][S].length-1;if(U<this.grid[0].length-1)for(var S=y;S<=M;S++)O[2]+=this.grid[S][U+1].length+this.grid[S][U].length-1;if(y>0)for(var S=D;S<=U;S++)O[3]+=this.grid[y-1][S].length+this.grid[y][S].length-1;for(var V=R.MAX_VALUE,Z,it,j=0;j<O.length;j++)O[j]<V?(V=O[j],Z=1,it=j):O[j]==V&&Z++;if(Z==3&&V==0)O[0]==0&&O[1]==0&&O[2]==0?m=1:O[0]==0&&O[1]==0&&O[3]==0?m=0:O[0]==0&&O[2]==0&&O[3]==0?m=3:O[1]==0&&O[2]==0&&O[3]==0&&(m=2);else if(Z==2&&V==0){var Y=Math.floor(Math.random()*2);O[0]==0&&O[1]==0?Y==0?m=0:m=1:O[0]==0&&O[2]==0?Y==0?m=0:m=2:O[0]==0&&O[3]==0?Y==0?m=0:m=3:O[1]==0&&O[2]==0?Y==0?m=1:m=2:O[1]==0&&O[3]==0?Y==0?m=1:m=3:Y==0?m=2:m=3}else if(Z==4&&V==0){var Y=Math.floor(Math.random()*4);m=Y}else m=it;m==0?E.setCenter(u.getCenterX(),u.getCenterY()-u.getHeight()/2-l.DEFAULT_EDGE_LENGTH-E.getHeight()/2):m==1?E.setCenter(u.getCenterX()+u.getWidth()/2+l.DEFAULT_EDGE_LENGTH+E.getWidth()/2,u.getCenterY()):m==2?E.setCenter(u.getCenterX(),u.getCenterY()+u.getHeight()/2+l.DEFAULT_EDGE_LENGTH+E.getHeight()/2):E.setCenter(u.getCenterX()-u.getWidth()/2-l.DEFAULT_EDGE_LENGTH-E.getWidth()/2,u.getCenterY())}},o.exports=I}),991:((o,n,t)=>{var e=t(551).FDLayoutNode,h=t(551).IMath;function i(r,a,f,l){e.call(this,r,a,f,l)}A(i,"CoSENode"),i.prototype=Object.create(e.prototype);for(var d in e)i[d]=e[d];i.prototype.calculateDisplacement=function(){var r=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=r.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=r.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=r.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=r.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>r.coolingFactor*r.maxNodeDisplacement&&(this.displacementX=r.coolingFactor*r.maxNodeDisplacement*h.sign(this.displacementX)),Math.abs(this.displacementY)>r.coolingFactor*r.maxNodeDisplacement&&(this.displacementY=r.coolingFactor*r.maxNodeDisplacement*h.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},i.prototype.propogateDisplacementToChildren=function(r,a){for(var f=this.getChild().getNodes(),l,p=0;p<f.length;p++)l=f[p],l.getChild()==null?(l.displacementX+=r,l.displacementY+=a):l.propogateDisplacementToChildren(r,a)},i.prototype.move=function(){var r=this.graphManager.getLayout();(this.child==null||this.child.getNodes().length==0)&&(this.moveBy(this.displacementX,this.displacementY),r.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},i.prototype.setPred1=function(r){this.pred1=r},i.prototype.getPred1=function(){return pred1},i.prototype.getPred2=function(){return pred2},i.prototype.setNext=function(r){this.next=r},i.prototype.getNext=function(){return next},i.prototype.setProcessed=function(r){this.processed=r},i.prototype.isProcessed=function(){return processed},o.exports=i}),902:((o,n,t)=>{function e(f){if(Array.isArray(f)){for(var l=0,p=Array(f.length);l<f.length;l++)p[l]=f[l];return p}else return Array.from(f)}A(e,"_toConsumableArray");var h=t(806),i=t(551).LinkedList,d=t(551).Matrix,r=t(551).SVD;function a(){}A(a,"ConstraintHandler"),a.handleConstraints=function(f){var l={};l.fixedNodeConstraint=f.constraints.fixedNodeConstraint,l.alignmentConstraint=f.constraints.alignmentConstraint,l.relativePlacementConstraint=f.constraints.relativePlacementConstraint;for(var p=new Map,g=new Map,c=[],T=[],C=f.getAllNodes(),R=0,b=0;b<C.length;b++){var X=C[b];X.getChild()==null&&(g.set(X.id,R++),c.push(X.getCenterX()),T.push(X.getCenterY()),p.set(X.id,X))}l.relativePlacementConstraint&&l.relativePlacementConstraint.forEach(function(x){!x.gap&&x.gap!=0&&(x.left?x.gap=h.DEFAULT_EDGE_LENGTH+p.get(x.left).getWidth()/2+p.get(x.right).getWidth()/2:x.gap=h.DEFAULT_EDGE_LENGTH+p.get(x.top).getHeight()/2+p.get(x.bottom).getHeight()/2)});var $=A(function(W,B){return{x:W.x-B.x,y:W.y-B.y}},"calculatePositionDiff"),z=A(function(W){var B=0,tt=0;return W.forEach(function(q){B+=c[g.get(q)],tt+=T[g.get(q)]}),{x:B/W.size,y:tt/W.size}},"calculateAvgPosition"),I=A(function(W,B,tt,q,_){function yt(ht,ot){var lt=new Set(ht),mt=!0,dt=!1,St=void 0;try{for(var Rt=ot[Symbol.iterator](),Gt;!(mt=(Gt=Rt.next()).done);mt=!0){var Ot=Gt.value;lt.add(Ot)}}catch(Nt){dt=!0,St=Nt}finally{try{!mt&&Rt.return&&Rt.return()}finally{if(dt)throw St}}return lt}A(yt,"setUnion");var gt=new Map;W.forEach(function(ht,ot){gt.set(ot,0)}),W.forEach(function(ht,ot){ht.forEach(function(lt){gt.set(lt.id,gt.get(lt.id)+1)})});var at=new Map,vt=new Map,wt=new i;gt.forEach(function(ht,ot){ht==0?(wt.push(ot),tt||(B=="horizontal"?at.set(ot,g.has(ot)?c[g.get(ot)]:q.get(ot)):at.set(ot,g.has(ot)?T[g.get(ot)]:q.get(ot)))):at.set(ot,Number.NEGATIVE_INFINITY),tt&&vt.set(ot,new Set([ot]))}),tt&&_.forEach(function(ht){var ot=[];if(ht.forEach(function(dt){tt.has(dt)&&ot.push(dt)}),ot.length>0){var lt=0;ot.forEach(function(dt){B=="horizontal"?(at.set(dt,g.has(dt)?c[g.get(dt)]:q.get(dt)),lt+=at.get(dt)):(at.set(dt,g.has(dt)?T[g.get(dt)]:q.get(dt)),lt+=at.get(dt))}),lt=lt/ot.length,ht.forEach(function(dt){tt.has(dt)||at.set(dt,lt)})}else{var mt=0;ht.forEach(function(dt){B=="horizontal"?mt+=g.has(dt)?c[g.get(dt)]:q.get(dt):mt+=g.has(dt)?T[g.get(dt)]:q.get(dt)}),mt=mt/ht.length,ht.forEach(function(dt){at.set(dt,mt)})}});for(var Dt=A(function(){var ot=wt.shift();W.get(ot).forEach(function(lt){if(at.get(lt.id)<at.get(ot)+lt.gap)if(tt&&tt.has(lt.id)){var mt=void 0;if(B=="horizontal"?mt=g.has(lt.id)?c[g.get(lt.id)]:q.get(lt.id):mt=g.has(lt.id)?T[g.get(lt.id)]:q.get(lt.id),at.set(lt.id,mt),mt<at.get(ot)+lt.gap){var dt=at.get(ot)+lt.gap-mt;vt.get(ot).forEach(function(St){at.set(St,at.get(St)-dt)})}}else at.set(lt.id,at.get(ot)+lt.gap);gt.set(lt.id,gt.get(lt.id)-1),gt.get(lt.id)==0&&wt.push(lt.id),tt&&vt.set(lt.id,yt(vt.get(ot),vt.get(lt.id)))})},"_loop");wt.length!=0;)Dt();if(tt){var rt=new Set;W.forEach(function(ht,ot){ht.length==0&&rt.add(ot)});var Lt=[];vt.forEach(function(ht,ot){if(rt.has(ot)){var lt=!1,mt=!0,dt=!1,St=void 0;try{for(var Rt=ht[Symbol.iterator](),Gt;!(mt=(Gt=Rt.next()).done);mt=!0){var Ot=Gt.value;tt.has(Ot)&&(lt=!0)}}catch(Ft){dt=!0,St=Ft}finally{try{!mt&&Rt.return&&Rt.return()}finally{if(dt)throw St}}if(!lt){var Nt=!1,Ht=void 0;Lt.forEach(function(Ft,Yt){Ft.has([].concat(e(ht))[0])&&(Nt=!0,Ht=Yt)}),Nt?ht.forEach(function(Ft){Lt[Ht].add(Ft)}):Lt.push(new Set(ht))}}}),Lt.forEach(function(ht,ot){var lt=Number.POSITIVE_INFINITY,mt=Number.POSITIVE_INFINITY,dt=Number.NEGATIVE_INFINITY,St=Number.NEGATIVE_INFINITY,Rt=!0,Gt=!1,Ot=void 0;try{for(var Nt=ht[Symbol.iterator](),Ht;!(Rt=(Ht=Nt.next()).done);Rt=!0){var Ft=Ht.value,Yt=void 0;B=="horizontal"?Yt=g.has(Ft)?c[g.get(Ft)]:q.get(Ft):Yt=g.has(Ft)?T[g.get(Ft)]:q.get(Ft);var Kt=at.get(Ft);Yt<lt&&(lt=Yt),Yt>dt&&(dt=Yt),Kt<mt&&(mt=Kt),Kt>St&&(St=Kt)}}catch(ee){Gt=!0,Ot=ee}finally{try{!Rt&&Nt.return&&Nt.return()}finally{if(Gt)throw Ot}}var se=(lt+dt)/2-(mt+St)/2,qt=!0,jt=!1,_t=void 0;try{for(var Qt=ht[Symbol.iterator](),ne;!(qt=(ne=Qt.next()).done);qt=!0){var te=ne.value;at.set(te,at.get(te)+se)}}catch(ee){jt=!0,_t=ee}finally{try{!qt&&Qt.return&&Qt.return()}finally{if(jt)throw _t}}})}return at},"findAppropriatePositionForRelativePlacement"),et=A(function(W){var B=0,tt=0,q=0,_=0;if(W.forEach(function(vt){vt.left?c[g.get(vt.left)]-c[g.get(vt.right)]>=0?B++:tt++:T[g.get(vt.top)]-T[g.get(vt.bottom)]>=0?q++:_++}),B>tt&&q>_)for(var yt=0;yt<g.size;yt++)c[yt]=-1*c[yt],T[yt]=-1*T[yt];else if(B>tt)for(var gt=0;gt<g.size;gt++)c[gt]=-1*c[gt];else if(q>_)for(var at=0;at<g.size;at++)T[at]=-1*T[at]},"applyReflectionForRelativePlacement"),s=A(function(W){var B=[],tt=new i,q=new Set,_=0;return W.forEach(function(yt,gt){if(!q.has(gt)){B[_]=[];var at=gt;for(tt.push(at),q.add(at),B[_].push(at);tt.length!=0;)at=tt.shift(),W.get(at).forEach(function(vt){q.has(vt.id)||(tt.push(vt.id),q.add(vt.id),B[_].push(vt.id))});_++}}),B},"findComponents"),m=A(function(W){var B=new Map;return W.forEach(function(tt,q){B.set(q,[])}),W.forEach(function(tt,q){tt.forEach(function(_){B.get(q).push(_),B.get(_.id).push({id:q,gap:_.gap,direction:_.direction})})}),B},"dagToUndirected"),u=A(function(W){var B=new Map;return W.forEach(function(tt,q){B.set(q,[])}),W.forEach(function(tt,q){tt.forEach(function(_){B.get(_.id).push({id:q,gap:_.gap,direction:_.direction})})}),B},"dagToReversed"),E=[],y=[],M=!1,D=!1,U=new Set,O=new Map,S=new Map,V=[];if(l.fixedNodeConstraint&&l.fixedNodeConstraint.forEach(function(x){U.add(x.nodeId)}),l.relativePlacementConstraint&&(l.relativePlacementConstraint.forEach(function(x){x.left?(O.has(x.left)?O.get(x.left).push({id:x.right,gap:x.gap,direction:"horizontal"}):O.set(x.left,[{id:x.right,gap:x.gap,direction:"horizontal"}]),O.has(x.right)||O.set(x.right,[])):(O.has(x.top)?O.get(x.top).push({id:x.bottom,gap:x.gap,direction:"vertical"}):O.set(x.top,[{id:x.bottom,gap:x.gap,direction:"vertical"}]),O.has(x.bottom)||O.set(x.bottom,[]))}),S=m(O),V=s(S)),h.TRANSFORM_ON_CONSTRAINT_HANDLING){if(l.fixedNodeConstraint&&l.fixedNodeConstraint.length>1)l.fixedNodeConstraint.forEach(function(x,W){E[W]=[x.position.x,x.position.y],y[W]=[c[g.get(x.nodeId)],T[g.get(x.nodeId)]]}),M=!0;else if(l.alignmentConstraint)(function(){var x=0;if(l.alignmentConstraint.vertical){for(var W=l.alignmentConstraint.vertical,B=A(function(at){var vt=new Set;W[at].forEach(function(rt){vt.add(rt)});var wt=new Set([].concat(e(vt)).filter(function(rt){return U.has(rt)})),Dt=void 0;wt.size>0?Dt=c[g.get(wt.values().next().value)]:Dt=z(vt).x,W[at].forEach(function(rt){E[x]=[Dt,T[g.get(rt)]],y[x]=[c[g.get(rt)],T[g.get(rt)]],x++})},"_loop2"),tt=0;tt<W.length;tt++)B(tt);M=!0}if(l.alignmentConstraint.horizontal){for(var q=l.alignmentConstraint.horizontal,_=A(function(at){var vt=new Set;q[at].forEach(function(rt){vt.add(rt)});var wt=new Set([].concat(e(vt)).filter(function(rt){return U.has(rt)})),Dt=void 0;wt.size>0?Dt=c[g.get(wt.values().next().value)]:Dt=z(vt).y,q[at].forEach(function(rt){E[x]=[c[g.get(rt)],Dt],y[x]=[c[g.get(rt)],T[g.get(rt)]],x++})},"_loop3"),yt=0;yt<q.length;yt++)_(yt);M=!0}l.relativePlacementConstraint&&(D=!0)})();else if(l.relativePlacementConstraint){for(var Z=0,it=0,j=0;j<V.length;j++)V[j].length>Z&&(Z=V[j].length,it=j);if(Z<S.size/2)et(l.relativePlacementConstraint),M=!1,D=!1;else{var Y=new Map,P=new Map,H=[];V[it].forEach(function(x){O.get(x).forEach(function(W){W.direction=="horizontal"?(Y.has(x)?Y.get(x).push(W):Y.set(x,[W]),Y.has(W.id)||Y.set(W.id,[]),H.push({left:x,right:W.id})):(P.has(x)?P.get(x).push(W):P.set(x,[W]),P.has(W.id)||P.set(W.id,[]),H.push({top:x,bottom:W.id}))})}),et(H),D=!1;var K=I(Y,"horizontal"),nt=I(P,"vertical");V[it].forEach(function(x,W){y[W]=[c[g.get(x)],T[g.get(x)]],E[W]=[],K.has(x)?E[W][0]=K.get(x):E[W][0]=c[g.get(x)],nt.has(x)?E[W][1]=nt.get(x):E[W][1]=T[g.get(x)]}),M=!0}}if(M){for(var Q=void 0,k=d.transpose(E),Tt=d.transpose(y),ct=0;ct<k.length;ct++)k[ct]=d.multGamma(k[ct]),Tt[ct]=d.multGamma(Tt[ct]);var J=d.multMat(k,d.transpose(Tt)),Et=r.svd(J);Q=d.multMat(Et.V,d.transpose(Et.U));for(var st=0;st<g.size;st++){var Mt=[c[st],T[st]],Vt=[Q[0][0],Q[1][0]],xt=[Q[0][1],Q[1][1]];c[st]=d.dotProduct(Mt,Vt),T[st]=d.dotProduct(Mt,xt)}D&&et(l.relativePlacementConstraint)}}if(h.ENFORCE_CONSTRAINTS){if(l.fixedNodeConstraint&&l.fixedNodeConstraint.length>0){var It={x:0,y:0};l.fixedNodeConstraint.forEach(function(x,W){var B={x:c[g.get(x.nodeId)],y:T[g.get(x.nodeId)]},tt=x.position,q=$(tt,B);It.x+=q.x,It.y+=q.y}),It.x/=l.fixedNodeConstraint.length,It.y/=l.fixedNodeConstraint.length,c.forEach(function(x,W){c[W]+=It.x}),T.forEach(function(x,W){T[W]+=It.y}),l.fixedNodeConstraint.forEach(function(x){c[g.get(x.nodeId)]=x.position.x,T[g.get(x.nodeId)]=x.position.y})}if(l.alignmentConstraint){if(l.alignmentConstraint.vertical)for(var Pt=l.alignmentConstraint.vertical,$t=A(function(W){var B=new Set;Pt[W].forEach(function(_){B.add(_)});var tt=new Set([].concat(e(B)).filter(function(_){return U.has(_)})),q=void 0;tt.size>0?q=c[g.get(tt.values().next().value)]:q=z(B).x,B.forEach(function(_){U.has(_)||(c[g.get(_)]=q)})},"_loop4"),bt=0;bt<Pt.length;bt++)$t(bt);if(l.alignmentConstraint.horizontal)for(var Bt=l.alignmentConstraint.horizontal,Xt=A(function(W){var B=new Set;Bt[W].forEach(function(_){B.add(_)});var tt=new Set([].concat(e(B)).filter(function(_){return U.has(_)})),q=void 0;tt.size>0?q=T[g.get(tt.values().next().value)]:q=z(B).y,B.forEach(function(_){U.has(_)||(T[g.get(_)]=q)})},"_loop5"),Zt=0;Zt<Bt.length;Zt++)Xt(Zt)}l.relativePlacementConstraint&&(function(){var x=new Map,W=new Map,B=new Map,tt=new Map,q=new Map,_=new Map,yt=new Set,gt=new Set;if(U.forEach(function(Ut){yt.add(Ut),gt.add(Ut)}),l.alignmentConstraint){if(l.alignmentConstraint.vertical)for(var at=l.alignmentConstraint.vertical,vt=A(function(pt){B.set("dummy"+pt,[]),at[pt].forEach(function(At){x.set(At,"dummy"+pt),B.get("dummy"+pt).push(At),U.has(At)&&yt.add("dummy"+pt)}),q.set("dummy"+pt,c[g.get(at[pt][0])])},"_loop6"),wt=0;wt<at.length;wt++)vt(wt);if(l.alignmentConstraint.horizontal)for(var Dt=l.alignmentConstraint.horizontal,rt=A(function(pt){tt.set("dummy"+pt,[]),Dt[pt].forEach(function(At){W.set(At,"dummy"+pt),tt.get("dummy"+pt).push(At),U.has(At)&>.add("dummy"+pt)}),_.set("dummy"+pt,T[g.get(Dt[pt][0])])},"_loop7"),Lt=0;Lt<Dt.length;Lt++)rt(Lt)}var ht=new Map,ot=new Map,lt=A(function(pt){O.get(pt).forEach(function(At){var kt=void 0,zt=void 0;At.direction=="horizontal"?(kt=x.get(pt)?x.get(pt):pt,x.get(At.id)?zt={id:x.get(At.id),gap:At.gap,direction:At.direction}:zt=At,ht.has(kt)?ht.get(kt).push(zt):ht.set(kt,[zt]),ht.has(zt.id)||ht.set(zt.id,[])):(kt=W.get(pt)?W.get(pt):pt,W.get(At.id)?zt={id:W.get(At.id),gap:At.gap,direction:At.direction}:zt=At,ot.has(kt)?ot.get(kt).push(zt):ot.set(kt,[zt]),ot.has(zt.id)||ot.set(zt.id,[]))})},"_loop8"),mt=!0,dt=!1,St=void 0;try{for(var Rt=O.keys()[Symbol.iterator](),Gt;!(mt=(Gt=Rt.next()).done);mt=!0){var Ot=Gt.value;lt(Ot)}}catch(Ut){dt=!0,St=Ut}finally{try{!mt&&Rt.return&&Rt.return()}finally{if(dt)throw St}}var Nt=m(ht),Ht=m(ot),Ft=s(Nt),Yt=s(Ht),Kt=u(ht),se=u(ot),qt=[],jt=[];Ft.forEach(function(Ut,pt){qt[pt]=[],Ut.forEach(function(At){Kt.get(At).length==0&&qt[pt].push(At)})}),Yt.forEach(function(Ut,pt){jt[pt]=[],Ut.forEach(function(At){se.get(At).length==0&&jt[pt].push(At)})});var _t=I(ht,"horizontal",yt,q,qt),Qt=I(ot,"vertical",gt,_,jt),ne=A(function(pt){B.get(pt)?B.get(pt).forEach(function(At){c[g.get(At)]=_t.get(pt)}):c[g.get(pt)]=_t.get(pt)},"_loop9"),te=!0,ee=!1,Ee=void 0;try{for(var he=_t.keys()[Symbol.iterator](),Te;!(te=(Te=he.next()).done);te=!0){var le=Te.value;ne(le)}}catch(Ut){ee=!0,Ee=Ut}finally{try{!te&&he.return&&he.return()}finally{if(ee)throw Ee}}var $e=A(function(pt){tt.get(pt)?tt.get(pt).forEach(function(At){T[g.get(At)]=Qt.get(pt)}):T[g.get(pt)]=Qt.get(pt)},"_loop10"),fe=!0,Ne=!1,Le=void 0;try{for(var ce=Qt.keys()[Symbol.iterator](),we;!(fe=(we=ce.next()).done);fe=!0){var le=we.value;$e(le)}}catch(Ut){Ne=!0,Le=Ut}finally{try{!fe&&ce.return&&ce.return()}finally{if(Ne)throw Le}}})()}for(var Ct=0;Ct<C.length;Ct++){var ut=C[Ct];ut.getChild()==null&&ut.setCenter(c[g.get(ut.id)],T[g.get(ut.id)])}},o.exports=a}),551:(o=>{o.exports=w})},N={};function v(o){var n=N[o];if(n!==void 0)return n.exports;var t=N[o]={exports:{}};return G[o](t,t.exports,v),t.exports}return A(v,"__webpack_require__"),v(45)})()})})),cr=ve(((L,F)=>{A((function(G,N){typeof L=="object"&&typeof F=="object"?F.exports=N(Ce()):typeof define=="function"&&define.amd?define(["cose-base"],N):typeof L=="object"?L.cytoscapeFcose=N(Ce()):G.cytoscapeFcose=N(G.coseBase)}),"webpackUniversalModuleDefinition")(L,function(w){return(()=>{"use strict";var G={658:(o=>{o.exports=Object.assign!=null?Object.assign.bind(Object):function(n){for(var t=arguments.length,e=Array(t>1?t-1:0),h=1;h<t;h++)e[h-1]=arguments[h];return e.forEach(function(i){Object.keys(i).forEach(function(d){return n[d]=i[d]})}),n}}),548:((o,n,t)=>{var e=(function(){function d(r,a){var f=[],l=!0,p=!1,g=void 0;try{for(var c=r[Symbol.iterator](),T;!(l=(T=c.next()).done)&&(f.push(T.value),!(a&&f.length===a));l=!0);}catch(C){p=!0,g=C}finally{try{!l&&c.return&&c.return()}finally{if(p)throw g}}return f}return A(d,"sliceIterator"),function(r,a){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r))return d(r,a);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),h=t(140).layoutBase.LinkedList,i={};i.getTopMostNodes=function(d){for(var r={},a=0;a<d.length;a++)r[d[a].id()]=!0;return d.filter(function(f,l){typeof f=="number"&&(f=l);for(var p=f.parent()[0];p!=null;){if(r[p.id()])return!1;p=p.parent()[0]}return!0})},i.connectComponents=function(d,r,a,f){var l=new h,p=new Set,g=[],c=void 0,T=void 0,C=void 0,R=!1,b=1,X=[],$=[],z=A(function(){var et=d.collection();$.push(et);var s=a[0],m=d.collection();m.merge(s).merge(s.descendants().intersection(r)),g.push(s),m.forEach(function(y){l.push(y),p.add(y),et.merge(y)});for(var u=A(function(){s=l.shift();var M=d.collection();s.neighborhood().nodes().forEach(function(O){r.intersection(s.edgesWith(O)).length>0&&M.merge(O)});for(var D=0;D<M.length;D++){var U=M[D];c=a.intersection(U.union(U.ancestors())),c!=null&&!p.has(c[0])&&c.union(c.descendants()).forEach(function(O){l.push(O),p.add(O),et.merge(O),a.has(O)&&g.push(O)})}},"_loop2");l.length!=0;)u();if(et.forEach(function(y){r.intersection(y.connectedEdges()).forEach(function(M){et.has(M.source())&&et.has(M.target())&&et.merge(M)})}),g.length==a.length&&(R=!0),!R||R&&b>1){T=g[0],C=T.connectedEdges().length,g.forEach(function(y){y.connectedEdges().length<C&&(C=y.connectedEdges().length,T=y)}),X.push(T.id());var E=d.collection();E.merge(g[0]),g.forEach(function(y){E.merge(y)}),g=[],a=a.difference(E),b++}},"_loop");do z();while(!R);return f&&X.length>0&&f.set("dummy"+(f.size+1),X),$},i.relocateComponent=function(d,r,a){if(!a.fixedNodeConstraint){var f=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,p=Number.POSITIVE_INFINITY,g=Number.NEGATIVE_INFINITY;if(a.quality=="draft"){var c=!0,T=!1,C=void 0;try{for(var R=r.nodeIndexes[Symbol.iterator](),b;!(c=(b=R.next()).done);c=!0){var X=b.value,$=e(X,2),z=$[0],I=$[1],et=a.cy.getElementById(z);if(et){var s=et.boundingBox(),m=r.xCoords[I]-s.w/2,u=r.xCoords[I]+s.w/2,E=r.yCoords[I]-s.h/2,y=r.yCoords[I]+s.h/2;m<f&&(f=m),u>l&&(l=u),E<p&&(p=E),y>g&&(g=y)}}}catch(S){T=!0,C=S}finally{try{!c&&R.return&&R.return()}finally{if(T)throw C}}var M=d.x-(l+f)/2,D=d.y-(g+p)/2;r.xCoords=r.xCoords.map(function(S){return S+M}),r.yCoords=r.yCoords.map(function(S){return S+D})}else{Object.keys(r).forEach(function(S){var V=r[S],Z=V.getRect().x,it=V.getRect().x+V.getRect().width,j=V.getRect().y,Y=V.getRect().y+V.getRect().height;Z<f&&(f=Z),it>l&&(l=it),j<p&&(p=j),Y>g&&(g=Y)});var U=d.x-(l+f)/2,O=d.y-(g+p)/2;Object.keys(r).forEach(function(S){var V=r[S];V.setCenter(V.getCenterX()+U,V.getCenterY()+O)})}}},i.calcBoundingBox=function(d,r,a,f){for(var l=Number.MAX_SAFE_INTEGER,p=Number.MIN_SAFE_INTEGER,g=Number.MAX_SAFE_INTEGER,c=Number.MIN_SAFE_INTEGER,T=void 0,C=void 0,R=void 0,b=void 0,X=d.descendants().not(":parent"),$=X.length,z=0;z<$;z++){var I=X[z];T=r[f.get(I.id())]-I.width()/2,C=r[f.get(I.id())]+I.width()/2,R=a[f.get(I.id())]-I.height()/2,b=a[f.get(I.id())]+I.height()/2,l>T&&(l=T),p<C&&(p=C),g>R&&(g=R),c<b&&(c=b)}var et={};return et.topLeftX=l,et.topLeftY=g,et.width=p-l,et.height=c-g,et},i.calcParentsWithoutChildren=function(d,r){var a=d.collection();return r.nodes(":parent").forEach(function(f){var l=!1;f.children().forEach(function(p){p.css("display")!="none"&&(l=!0)}),l||a.merge(f)}),a},o.exports=i}),816:((o,n,t)=>{var e=t(548),h=t(140).CoSELayout,i=t(140).CoSENode,d=t(140).layoutBase.PointD,r=t(140).layoutBase.DimensionD,a=t(140).layoutBase.LayoutConstants,f=t(140).layoutBase.FDLayoutConstants,l=t(140).CoSEConstants;o.exports={coseLayout:A(function(g,c){var T=g.cy,C=g.eles,R=C.nodes(),b=C.edges(),X=void 0,$=void 0,z=void 0,I={};g.randomize&&(X=c.nodeIndexes,$=c.xCoords,z=c.yCoords);var et=A(function(O){return typeof O=="function"},"isFn"),s=A(function(O,S){return et(O)?O(S):O},"optFn"),m=e.calcParentsWithoutChildren(T,C),u=A(function U(O,S,V,Z){for(var it=S.length,j=0;j<it;j++){var Y=S[j],P=null;Y.intersection(m).length==0&&(P=Y.children());var H=void 0,K=Y.layoutDimensions({nodeDimensionsIncludeLabels:Z.nodeDimensionsIncludeLabels});if(Y.outerWidth()!=null&&Y.outerHeight()!=null)if(Z.randomize)if(!Y.isParent())H=O.add(new i(V.graphManager,new d($[X.get(Y.id())]-K.w/2,z[X.get(Y.id())]-K.h/2),new r(parseFloat(K.w),parseFloat(K.h))));else{var nt=e.calcBoundingBox(Y,$,z,X);Y.intersection(m).length==0?H=O.add(new i(V.graphManager,new d(nt.topLeftX,nt.topLeftY),new r(nt.width,nt.height))):H=O.add(new i(V.graphManager,new d(nt.topLeftX,nt.topLeftY),new r(parseFloat(K.w),parseFloat(K.h))))}else H=O.add(new i(V.graphManager,new d(Y.position("x")-K.w/2,Y.position("y")-K.h/2),new r(parseFloat(K.w),parseFloat(K.h))));else H=O.add(new i(this.graphManager));if(H.id=Y.data("id"),H.nodeRepulsion=s(Z.nodeRepulsion,Y),H.paddingLeft=parseInt(Y.css("padding")),H.paddingTop=parseInt(Y.css("padding")),H.paddingRight=parseInt(Y.css("padding")),H.paddingBottom=parseInt(Y.css("padding")),Z.nodeDimensionsIncludeLabels&&(H.labelWidth=Y.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).w,H.labelHeight=Y.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).h,H.labelPosVertical=Y.css("text-valign"),H.labelPosHorizontal=Y.css("text-halign")),I[Y.data("id")]=H,isNaN(H.rect.x)&&(H.rect.x=0),isNaN(H.rect.y)&&(H.rect.y=0),P!=null&&P.length>0){var Q=void 0;Q=V.getGraphManager().add(V.newGraph(),H),U(Q,P,V,Z)}}},"processChildrenList"),E=A(function(O,S,V){for(var Z=0,it=0,j=0;j<V.length;j++){var Y=V[j],P=I[Y.data("source")],H=I[Y.data("target")];if(P&&H&&P!==H&&P.getEdgesBetween(H).length==0){var K=S.add(O.newEdge(),P,H);K.id=Y.id(),K.idealLength=s(g.idealEdgeLength,Y),K.edgeElasticity=s(g.edgeElasticity,Y),Z+=K.idealLength,it++}}g.idealEdgeLength!=null&&(it>0?l.DEFAULT_EDGE_LENGTH=f.DEFAULT_EDGE_LENGTH=Z/it:et(g.idealEdgeLength)?l.DEFAULT_EDGE_LENGTH=f.DEFAULT_EDGE_LENGTH=50:l.DEFAULT_EDGE_LENGTH=f.DEFAULT_EDGE_LENGTH=g.idealEdgeLength,l.MIN_REPULSION_DIST=f.MIN_REPULSION_DIST=f.DEFAULT_EDGE_LENGTH/10,l.DEFAULT_RADIAL_SEPARATION=f.DEFAULT_EDGE_LENGTH)},"processEdges"),y=A(function(O,S){S.fixedNodeConstraint&&(O.constraints.fixedNodeConstraint=S.fixedNodeConstraint),S.alignmentConstraint&&(O.constraints.alignmentConstraint=S.alignmentConstraint),S.relativePlacementConstraint&&(O.constraints.relativePlacementConstraint=S.relativePlacementConstraint)},"processConstraints");g.nestingFactor!=null&&(l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=f.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=g.nestingFactor),g.gravity!=null&&(l.DEFAULT_GRAVITY_STRENGTH=f.DEFAULT_GRAVITY_STRENGTH=g.gravity),g.numIter!=null&&(l.MAX_ITERATIONS=f.MAX_ITERATIONS=g.numIter),g.gravityRange!=null&&(l.DEFAULT_GRAVITY_RANGE_FACTOR=f.DEFAULT_GRAVITY_RANGE_FACTOR=g.gravityRange),g.gravityCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=f.DEFAULT_COMPOUND_GRAVITY_STRENGTH=g.gravityCompound),g.gravityRangeCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=f.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=g.gravityRangeCompound),g.initialEnergyOnIncremental!=null&&(l.DEFAULT_COOLING_FACTOR_INCREMENTAL=f.DEFAULT_COOLING_FACTOR_INCREMENTAL=g.initialEnergyOnIncremental),g.tilingCompareBy!=null&&(l.TILING_COMPARE_BY=g.tilingCompareBy),g.quality=="proof"?a.QUALITY=2:a.QUALITY=0,l.NODE_DIMENSIONS_INCLUDE_LABELS=f.NODE_DIMENSIONS_INCLUDE_LABELS=a.NODE_DIMENSIONS_INCLUDE_LABELS=g.nodeDimensionsIncludeLabels,l.DEFAULT_INCREMENTAL=f.DEFAULT_INCREMENTAL=a.DEFAULT_INCREMENTAL=!g.randomize,l.ANIMATE=f.ANIMATE=a.ANIMATE=g.animate,l.TILE=g.tile,l.TILING_PADDING_VERTICAL=typeof g.tilingPaddingVertical=="function"?g.tilingPaddingVertical.call():g.tilingPaddingVertical,l.TILING_PADDING_HORIZONTAL=typeof g.tilingPaddingHorizontal=="function"?g.tilingPaddingHorizontal.call():g.tilingPaddingHorizontal,l.DEFAULT_INCREMENTAL=f.DEFAULT_INCREMENTAL=a.DEFAULT_INCREMENTAL=!0,l.PURE_INCREMENTAL=!g.randomize,a.DEFAULT_UNIFORM_LEAF_NODE_SIZES=g.uniformNodeDimensions,g.step=="transformed"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!1),g.step=="enforced"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!1),g.step=="cose"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!0),g.step=="all"&&(g.randomize?l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!0),g.fixedNodeConstraint||g.alignmentConstraint||g.relativePlacementConstraint?l.TREE_REDUCTION_ON_INCREMENTAL=!1:l.TREE_REDUCTION_ON_INCREMENTAL=!0;var M=new h,D=M.newGraphManager();return u(D.addRoot(),e.getTopMostNodes(R),M,g),E(M,D,b),y(M,g),M.runLayout(),I},"coseLayout")}}),212:((o,n,t)=>{var e=(function(){function l(p,g){for(var c=0;c<g.length;c++){var T=g[c];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(p,T.key,T)}}return A(l,"defineProperties"),function(p,g,c){return g&&l(p.prototype,g),c&&l(p,c),p}})();function h(l,p){if(!(l instanceof p))throw new TypeError("Cannot call a class as a function")}A(h,"_classCallCheck");var i=t(658),d=t(548),r=t(657).spectralLayout,a=t(816).coseLayout,f=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:A(function(p){return 4500},"nodeRepulsion"),idealEdgeLength:A(function(p){return 50},"idealEdgeLength"),edgeElasticity:A(function(p){return .45},"edgeElasticity"),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:A(function(){},"ready"),stop:A(function(){},"stop")});o.exports=(function(){function l(p){h(this,l),this.options=i({},f,p)}return A(l,"Layout"),e(l,[{key:"run",value:A(function(){var g=this,c=this.options,T=c.cy,C=c.eles,R=[],b=[],X=void 0,$=[];c.fixedNodeConstraint&&(!Array.isArray(c.fixedNodeConstraint)||c.fixedNodeConstraint.length==0)&&(c.fixedNodeConstraint=void 0),c.alignmentConstraint&&(c.alignmentConstraint.vertical&&(!Array.isArray(c.alignmentConstraint.vertical)||c.alignmentConstraint.vertical.length==0)&&(c.alignmentConstraint.vertical=void 0),c.alignmentConstraint.horizontal&&(!Array.isArray(c.alignmentConstraint.horizontal)||c.alignmentConstraint.horizontal.length==0)&&(c.alignmentConstraint.horizontal=void 0)),c.relativePlacementConstraint&&(!Array.isArray(c.relativePlacementConstraint)||c.relativePlacementConstraint.length==0)&&(c.relativePlacementConstraint=void 0),(c.fixedNodeConstraint||c.alignmentConstraint||c.relativePlacementConstraint)&&(c.tile=!1,c.packComponents=!1);var z=void 0,I=!1;if(T.layoutUtilities&&c.packComponents&&(z=T.layoutUtilities("get"),z||(z=T.layoutUtilities()),I=!0),C.nodes().length>0)if(I){var m=d.getTopMostNodes(c.eles.nodes());if(X=d.connectComponents(T,c.eles,m),X.forEach(function(Q){var k=Q.boundingBox();$.push({x:k.x1+k.w/2,y:k.y1+k.h/2})}),c.randomize&&X.forEach(function(Q){c.eles=Q,R.push(r(c))}),c.quality=="default"||c.quality=="proof"){var u=T.collection();if(c.tile){var E=new Map,y=[],M=[],D=0,U={nodeIndexes:E,xCoords:y,yCoords:M},O=[];if(X.forEach(function(Q,k){Q.edges().length==0&&(Q.nodes().forEach(function(Tt,ct){u.merge(Q.nodes()[ct]),Tt.isParent()||(U.nodeIndexes.set(Q.nodes()[ct].id(),D++),U.xCoords.push(Q.nodes()[0].position().x),U.yCoords.push(Q.nodes()[0].position().y))}),O.push(k))}),u.length>1){var S=u.boundingBox();$.push({x:S.x1+S.w/2,y:S.y1+S.h/2}),X.push(u),R.push(U);for(var V=O.length-1;V>=0;V--)X.splice(O[V],1),R.splice(O[V],1),$.splice(O[V],1)}}X.forEach(function(Q,k){c.eles=Q,b.push(a(c,R[k])),d.relocateComponent($[k],b[k],c)})}else X.forEach(function(Q,k){d.relocateComponent($[k],R[k],c)});var Z=new Set;if(X.length>1){var it=[],j=C.filter(function(Q){return Q.css("display")=="none"});X.forEach(function(Q,k){var Tt=void 0;if(c.quality=="draft"&&(Tt=R[k].nodeIndexes),Q.nodes().not(j).length>0){var ct={};ct.edges=[],ct.nodes=[];var J=void 0;Q.nodes().not(j).forEach(function(Et){if(c.quality=="draft")if(!Et.isParent())J=Tt.get(Et.id()),ct.nodes.push({x:R[k].xCoords[J]-Et.boundingbox().w/2,y:R[k].yCoords[J]-Et.boundingbox().h/2,width:Et.boundingbox().w,height:Et.boundingbox().h});else{var st=d.calcBoundingBox(Et,R[k].xCoords,R[k].yCoords,Tt);ct.nodes.push({x:st.topLeftX,y:st.topLeftY,width:st.width,height:st.height})}else b[k][Et.id()]&&ct.nodes.push({x:b[k][Et.id()].getLeft(),y:b[k][Et.id()].getTop(),width:b[k][Et.id()].getWidth(),height:b[k][Et.id()].getHeight()})}),Q.edges().forEach(function(Et){var st=Et.source(),Mt=Et.target();if(st.css("display")!="none"&&Mt.css("display")!="none")if(c.quality=="draft"){var Vt=Tt.get(st.id()),xt=Tt.get(Mt.id()),It=[],Pt=[];if(st.isParent()){var $t=d.calcBoundingBox(st,R[k].xCoords,R[k].yCoords,Tt);It.push($t.topLeftX+$t.width/2),It.push($t.topLeftY+$t.height/2)}else It.push(R[k].xCoords[Vt]),It.push(R[k].yCoords[Vt]);if(Mt.isParent()){var bt=d.calcBoundingBox(Mt,R[k].xCoords,R[k].yCoords,Tt);Pt.push(bt.topLeftX+bt.width/2),Pt.push(bt.topLeftY+bt.height/2)}else Pt.push(R[k].xCoords[xt]),Pt.push(R[k].yCoords[xt]);ct.edges.push({startX:It[0],startY:It[1],endX:Pt[0],endY:Pt[1]})}else b[k][st.id()]&&b[k][Mt.id()]&&ct.edges.push({startX:b[k][st.id()].getCenterX(),startY:b[k][st.id()].getCenterY(),endX:b[k][Mt.id()].getCenterX(),endY:b[k][Mt.id()].getCenterY()})}),ct.nodes.length>0&&(it.push(ct),Z.add(k))}});var Y=z.packComponents(it,c.randomize).shifts;if(c.quality=="draft")R.forEach(function(Q,k){var Tt=Q.xCoords.map(function(J){return J+Y[k].dx}),ct=Q.yCoords.map(function(J){return J+Y[k].dy});Q.xCoords=Tt,Q.yCoords=ct});else{var P=0;Z.forEach(function(Q){Object.keys(b[Q]).forEach(function(k){var Tt=b[Q][k];Tt.setCenter(Tt.getCenterX()+Y[P].dx,Tt.getCenterY()+Y[P].dy)}),P++})}}}else{var et=c.eles.boundingBox();if($.push({x:et.x1+et.w/2,y:et.y1+et.h/2}),c.randomize){var s=r(c);R.push(s)}c.quality=="default"||c.quality=="proof"?(b.push(a(c,R[0])),d.relocateComponent($[0],b[0],c)):d.relocateComponent($[0],R[0],c)}var H=A(function(k,Tt){if(c.quality=="default"||c.quality=="proof"){typeof k=="number"&&(k=Tt);var ct=void 0,J=void 0,Et=k.data("id");return b.forEach(function(Mt){Et in Mt&&(ct={x:Mt[Et].getRect().getCenterX(),y:Mt[Et].getRect().getCenterY()},J=Mt[Et])}),c.nodeDimensionsIncludeLabels&&(J.labelWidth&&(J.labelPosHorizontal=="left"?ct.x+=J.labelWidth/2:J.labelPosHorizontal=="right"&&(ct.x-=J.labelWidth/2)),J.labelHeight&&(J.labelPosVertical=="top"?ct.y+=J.labelHeight/2:J.labelPosVertical=="bottom"&&(ct.y-=J.labelHeight/2))),ct==null&&(ct={x:k.position("x"),y:k.position("y")}),{x:ct.x,y:ct.y}}else{var st=void 0;return R.forEach(function(Mt){var Vt=Mt.nodeIndexes.get(k.id());Vt!=null&&(st={x:Mt.xCoords[Vt],y:Mt.yCoords[Vt]})}),st==null&&(st={x:k.position("x"),y:k.position("y")}),{x:st.x,y:st.y}}},"getPositions");if(c.quality=="default"||c.quality=="proof"||c.randomize){var K=d.calcParentsWithoutChildren(T,C),nt=C.filter(function(Q){return Q.css("display")=="none"});c.eles=C.not(nt),C.nodes().not(":parent").not(nt).layoutPositions(g,c,H),K.length>0&&K.forEach(function(Q){Q.position(H(Q))})}},"run")}]),l})()}),657:((o,n,t)=>{var e=t(548),h=t(140).layoutBase.Matrix,i=t(140).layoutBase.SVD;o.exports={spectralLayout:A(function(r){var a=r.cy,f=r.eles,l=f.nodes(),p=f.nodes(":parent"),g=new Map,c=new Map,T=new Map,C=[],R=[],b=[],X=[],$=[],z=[],I=[],et=[],s=void 0,m=1e8,u=1e-9,E=r.piTol,y=r.samplingType,M=r.nodeSeparation,D=void 0,U=A(function(){for(var ut=0,x=0,W=!1;x<D;){ut=Math.floor(Math.random()*s),W=!1;for(var B=0;B<x;B++)if(X[B]==ut){W=!0;break}if(!W)X[x]=ut,x++;else continue}},"randomSampleCR"),O=A(function(ut,x,W){for(var B=[],tt=0,q=0,_=0,yt=void 0,gt=[],at=0,vt=1,wt=0;wt<s;wt++)gt[wt]=m;for(B[q]=ut,gt[ut]=0;q>=tt;){_=B[tt++];for(var Dt=C[_],rt=0;rt<Dt.length;rt++)yt=c.get(Dt[rt]),gt[yt]==m&&(gt[yt]=gt[_]+1,B[++q]=yt);z[_][x]=gt[_]*M}if(W){for(var Lt=0;Lt<s;Lt++)z[Lt][x]<$[Lt]&&($[Lt]=z[Lt][x]);for(var ht=0;ht<s;ht++)$[ht]>at&&(at=$[ht],vt=ht)}return vt},"BFS"),S=A(function(ut){var x=void 0;if(ut){x=Math.floor(Math.random()*s);for(var B=0;B<s;B++)$[B]=m;for(var tt=0;tt<D;tt++)X[tt]=x,x=O(x,tt,ut)}else{U();for(var W=0;W<D;W++)O(X[W],W,ut,!1)}for(var q=0;q<s;q++)for(var _=0;_<D;_++)z[q][_]*=z[q][_];for(var yt=0;yt<D;yt++)I[yt]=[];for(var gt=0;gt<D;gt++)for(var at=0;at<D;at++)I[gt][at]=z[X[at]][gt]},"allBFS"),V=A(function(){for(var ut=i.svd(I),x=ut.S,W=ut.U,B=ut.V,tt=x[0]*x[0]*x[0],q=[],_=0;_<D;_++){q[_]=[];for(var yt=0;yt<D;yt++)q[_][yt]=0,_==yt&&(q[_][yt]=x[_]/(x[_]*x[_]+tt/(x[_]*x[_])))}et=h.multMat(h.multMat(B,q),h.transpose(W))},"sample"),Z=A(function(){for(var ut=void 0,x=void 0,W=[],B=[],tt=[],q=[],_=0;_<s;_++)W[_]=Math.random(),B[_]=Math.random();W=h.normalize(W),B=h.normalize(B);for(var yt=0,gt=u,at=u,vt=void 0;;){yt++;for(var wt=0;wt<s;wt++)tt[wt]=W[wt];if(W=h.multGamma(h.multL(h.multGamma(tt),z,et)),ut=h.dotProduct(tt,W),W=h.normalize(W),gt=h.dotProduct(tt,W),vt=Math.abs(gt/at),vt<=1+E&&vt>=1)break;at=gt}for(var Dt=0;Dt<s;Dt++)tt[Dt]=W[Dt];for(yt=0,at=u;;){yt++;for(var rt=0;rt<s;rt++)q[rt]=B[rt];if(q=h.minusOp(q,h.multCons(tt,h.dotProduct(tt,q))),B=h.multGamma(h.multL(h.multGamma(q),z,et)),x=h.dotProduct(q,B),B=h.normalize(B),gt=h.dotProduct(q,B),vt=Math.abs(gt/at),vt<=1+E&&vt>=1)break;at=gt}for(var Lt=0;Lt<s;Lt++)q[Lt]=B[Lt];R=h.multCons(tt,Math.sqrt(Math.abs(ut))),b=h.multCons(q,Math.sqrt(Math.abs(x)))},"powerIteration");e.connectComponents(a,f,e.getTopMostNodes(l),g),p.forEach(function(Ct){e.connectComponents(a,f,e.getTopMostNodes(Ct.descendants().intersection(f)),g)});for(var it=0,j=0;j<l.length;j++)l[j].isParent()||c.set(l[j].id(),it++);var Y=!0,P=!1,H=void 0;try{for(var K=g.keys()[Symbol.iterator](),nt;!(Y=(nt=K.next()).done);Y=!0){var Q=nt.value;c.set(Q,it++)}}catch(Ct){P=!0,H=Ct}finally{try{!Y&&K.return&&K.return()}finally{if(P)throw H}}for(var k=0;k<c.size;k++)C[k]=[];p.forEach(function(Ct){for(var ut=Ct.children().intersection(f);ut.nodes(":childless").length==0;)ut=ut.nodes()[0].children().intersection(f);var x=0,W=ut.nodes(":childless")[0].connectedEdges().length;ut.nodes(":childless").forEach(function(B,tt){B.connectedEdges().length<W&&(W=B.connectedEdges().length,x=tt)}),T.set(Ct.id(),ut.nodes(":childless")[x].id())}),l.forEach(function(Ct){var ut=void 0;Ct.isParent()?ut=c.get(T.get(Ct.id())):ut=c.get(Ct.id()),Ct.neighborhood().nodes().forEach(function(x){f.intersection(Ct.edgesWith(x)).length>0&&(x.isParent()?C[ut].push(T.get(x.id())):C[ut].push(x.id()))})});var Tt=A(function(ut){var x=c.get(ut),W=void 0;g.get(ut).forEach(function(B){a.getElementById(B).isParent()?W=T.get(B):W=B,C[x].push(W),C[c.get(W)].push(ut)})},"_loop"),ct=!0,J=!1,Et=void 0;try{for(var st=g.keys()[Symbol.iterator](),Mt;!(ct=(Mt=st.next()).done);ct=!0){var Vt=Mt.value;Tt(Vt)}}catch(Ct){J=!0,Et=Ct}finally{try{!ct&&st.return&&st.return()}finally{if(J)throw Et}}s=c.size;var xt=void 0;if(s>2){D=s<r.sampleSize?s:r.sampleSize;for(var It=0;It<s;It++)z[It]=[];for(var Pt=0;Pt<D;Pt++)et[Pt]=[];return r.quality=="draft"||r.step=="all"?(S(y),V(),Z(),xt={nodeIndexes:c,xCoords:R,yCoords:b}):(c.forEach(function(Ct,ut){R.push(a.getElementById(ut).position("x")),b.push(a.getElementById(ut).position("y"))}),xt={nodeIndexes:c,xCoords:R,yCoords:b}),xt}else{var $t=c.keys(),bt=a.getElementById($t.next().value),Bt=bt.position(),Xt=bt.outerWidth();if(R.push(Bt.x),b.push(Bt.y),s==2){var Zt=a.getElementById($t.next().value).outerWidth();R.push(Bt.x+Xt/2+Zt/2+r.idealEdgeLength),b.push(Bt.y)}return xt={nodeIndexes:c,xCoords:R,yCoords:b},xt}},"spectralLayout")}}),579:((o,n,t)=>{var e=t(212),h=A(function(d){d&&d("layout","fcose",e)},"register");typeof cytoscape<"u"&&h(cytoscape),o.exports=h}),140:(o=>{o.exports=w})},N={};function v(o){var n=N[o];if(n!==void 0)return n.exports;var t=N[o]={exports:{}};return G[o](t,t.exports,v),t.exports}return A(v,"__webpack_require__"),v(579)})()})})),gr=Be(cr(),1),Ae={L:"left",R:"right",T:"top",B:"bottom"},De={L:ft(L=>`${L},${L/2} 0,${L} 0,0`,"L"),R:ft(L=>`0,${L/2} ${L},0 ${L},${L}`,"R"),T:ft(L=>`0,0 ${L},0 ${L/2},${L}`,"T"),B:ft(L=>`${L/2},0 ${L},${L} 0,${L}`,"B")},oe={L:ft((L,F)=>L-F+2,"L"),R:ft((L,F)=>L-2,"R"),T:ft((L,F)=>L-F+2,"T"),B:ft((L,F)=>L-2,"B")},ur=ft(function(L){return Wt(L)?L==="L"?"R":"L":L==="T"?"B":"T"},"getOppositeArchitectureDirection"),Oe=ft(function(L){const F=L;return F==="L"||F==="R"||F==="T"||F==="B"},"isArchitectureDirection"),Wt=ft(function(L){const F=L;return F==="L"||F==="R"},"isArchitectureDirectionX"),Jt=ft(function(L){const F=L;return F==="T"||F==="B"},"isArchitectureDirectionY"),me=ft(function(L,F){const w=Wt(L)&&Jt(F),G=Jt(L)&&Wt(F);return w||G},"isArchitectureDirectionXY"),dr=ft(function(L){const F=L[0],w=L[1],G=Wt(F)&&Jt(w),N=Jt(F)&&Wt(w);return G||N},"isArchitecturePairXY"),vr=ft(function(L){return L!=="LL"&&L!=="RR"&&L!=="TT"&&L!=="BB"},"isValidArchitectureDirectionPair"),ue=ft(function(L,F){const w=`${L}${F}`;return vr(w)?w:void 0},"getArchitectureDirectionPair"),pr=ft(function([L,F],w){const G=w[0],N=w[1];return Wt(G)?Jt(N)?[L+(G==="L"?-1:1),F+(N==="T"?1:-1)]:[L+(G==="L"?-1:1),F]:Wt(N)?[L+(N==="L"?1:-1),F+(G==="T"?1:-1)]:[L,F+(G==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),yr=ft(function(L){return L==="LT"||L==="TL"?[1,1]:L==="BL"||L==="LB"?[1,-1]:L==="BR"||L==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),mr=ft(function(L,F){return me(L,F)?"bend":Wt(L)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),Er=ft(function(L){return L.type==="service"},"isArchitectureService"),Tr=ft(function(L){return L.type==="junction"},"isArchitectureJunction"),Re=ft((L,F)=>{const[w,G]=[L,F].sort();return`${JSON.stringify(w)}-${JSON.stringify(G)}`},"architectureGroupAlignmentKey"),Se=ft(L=>L.data(),"edgeData"),ie=ft(L=>L.data(),"nodeData"),Nr=tr.architecture,Fe=class{static{A(this,"ArchitectureDB")}constructor(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.elements=new Map,this.diagramId="",this.setAccTitle=Ke,this.getAccTitle=ir,this.setDiagramTitle=Qe,this.getDiagramTitle=rr,this.getAccDescription=er,this.setAccDescription=Je,this.clear()}static{ft(this,"ArchitectureDB")}setDiagramId(L){this.diagramId=L}getDiagramId(){return this.diagramId}clear(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.dataStructures=void 0,this.elements=new Map,this.diagramId="",je()}addService({id:L,icon:F,in:w,title:G,iconText:N}){if(this.registeredIds.has(L))throw new Error(`The service id [${L}] is already in use by another ${this.registeredIds.get(L)}`);if(w!==void 0){if(L===w)throw new Error(`The service [${L}] cannot be placed within itself`);if(!this.registeredIds.has(w))throw new Error(`The service [${L}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds.get(w)==="node")throw new Error(`The service [${L}]'s parent is not a group`)}this.registeredIds.set(L,"node"),this.nodes.set(L,{id:L,type:"service",icon:F,iconText:N,title:G,edges:[],in:w})}getServices(){return[...this.nodes.values()].filter(Er)}addJunction({id:L,in:F}){if(this.registeredIds.has(L))throw new Error(`The junction id [${L}] is already in use by another ${this.registeredIds.get(L)}`);if(F!==void 0){if(L===F)throw new Error(`The junction [${L}] cannot be placed within itself`);if(!this.registeredIds.has(F))throw new Error(`The junction [${L}]'s parent does not exist. Please make sure the parent is created before this junction`);if(this.registeredIds.get(F)==="node")throw new Error(`The junction [${L}]'s parent is not a group`)}this.registeredIds.set(L,"node"),this.nodes.set(L,{id:L,type:"junction",edges:[],in:F})}getJunctions(){return[...this.nodes.values()].filter(Tr)}getNodes(){return[...this.nodes.values()]}getNode(L){return this.nodes.get(L)??null}addGroup({id:L,icon:F,in:w,title:G}){if(this.registeredIds.has(L))throw new Error(`The group id [${L}] is already in use by another ${this.registeredIds.get(L)}`);if(w!==void 0){if(L===w)throw new Error(`The group [${L}] cannot be placed within itself`);if(!this.registeredIds.has(w))throw new Error(`The group [${L}]'s parent does not exist. Please make sure the parent is created before this group`);if(this.registeredIds.get(w)==="node")throw new Error(`The group [${L}]'s parent is not a group`)}this.registeredIds.set(L,"group"),this.groups.set(L,{id:L,icon:F,title:G,in:w})}getGroups(){return[...this.groups.values()]}addEdge({lhsId:L,rhsId:F,lhsDir:w,rhsDir:G,lhsInto:N,rhsInto:v,lhsGroup:o,rhsGroup:n,title:t}){if(!Oe(w))throw new Error(`Invalid direction given for left hand side of edge ${L}--${F}. Expected (L,R,T,B) got ${String(w)}`);if(!Oe(G))throw new Error(`Invalid direction given for right hand side of edge ${L}--${F}. Expected (L,R,T,B) got ${String(G)}`);if(!this.nodes.has(L)&&!this.groups.has(L))throw new Error(`The left-hand id [${L}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(!this.nodes.has(F)&&!this.groups.has(F))throw new Error(`The right-hand id [${F}] does not yet exist. Please create the service/group before declaring an edge to it.`);const e=this.nodes.get(L).in,h=this.nodes.get(F).in;if(o&&e&&h&&e==h)throw new Error(`The left-hand id [${L}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(n&&e&&h&&e==h)throw new Error(`The right-hand id [${F}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const i={lhsId:L,lhsDir:w,lhsInto:N,lhsGroup:o,rhsId:F,rhsDir:G,rhsInto:v,rhsGroup:n,title:t};this.edges.push(i);const d=this.nodes.get(L),r=this.nodes.get(F);d&&r&&(d.edges.push(this.edges[this.edges.length-1]),r.edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}addLayoutHint(L){if(L.members.length<2)throw new Error(`An align directive requires at least two members; got ${L.members.length}`);const F=new Set;L.members.forEach(w=>{if(this.registeredIds.get(w)!=="node")throw new Error(`align ${L.direction} references [${w}], which is not a service or junction`);if(F.has(w))throw new Error(`align ${L.direction} lists [${w}] more than once`);F.add(w)}),this.layoutHints.push(L)}getLayoutHints(){return this.layoutHints}getDataStructures(){if(this.dataStructures===void 0){const L=new Map,F=new Map;for(const[o,n]of this.nodes.entries()){const t=new Map;for(const e of n.edges){const h=this.getNode(e.lhsId)?.in,i=this.getNode(e.rhsId)?.in;if(h&&i&&h!==i){const d=mr(e.lhsDir,e.rhsDir);d!=="bend"&&L.set(Re(h,i),d)}if(e.lhsId===o){const d=ue(e.lhsDir,e.rhsDir);d&&t.set(d,e.rhsId)}else{const d=ue(e.rhsDir,e.lhsDir);d&&t.set(d,e.lhsId)}}F.set(o,t)}const w=new Set,G=new Set(F.keys()),N=ft(o=>{const n=new Map([[o,[0,0]]]),t=[o];for(;t.length>0;){const e=t.shift();if(e){w.add(e),G.delete(e);const h=F.get(e);if(!h)throw new Error(`BFS error: adjacency list for id ${e} not found. Please report this as a bug.`);const i=n.get(e);if(!i)throw new Error(`BFS error: position for id ${e} not found in spatial map. Please report this as a bug.`);const[d,r]=i;h.forEach((a,f)=>{w.has(a)||(n.set(a,pr([d,r],f)),t.push(a))})}}return n},"BFS"),v=[];for(;G.size>0;){const o=G.values().next().value;v.push(N(o))}this.dataStructures={adjList:F,spatialMaps:v,groupAlignments:L}}return this.dataStructures}setElementForId(L,F){this.elements.set(L,F)}getElementById(L){return this.elements.get(L)}getConfig(){return or({...Nr,..._e().architecture})}getConfigField(L){return this.getConfig()[L]}},Lr=ft((L,F)=>{sr(L,F),L.groups.map(w=>F.addGroup(w)),L.services.map(w=>F.addService({...w,type:"service"})),L.junctions.map(w=>F.addJunction({...w,type:"junction"})),L.edges.map(w=>F.addEdge(w)),L.alignments?.map(w=>F.addLayoutHint({direction:w.direction,members:[...w.members]}))},"populateDb"),be={parser:{yy:void 0},parse:ft(async L=>{const F=await Ze("architecture",L);xe.debug(F);const w=be.parser?.yy;if(!(w instanceof Fe))throw new 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.");Lr(F,w)},"parse")},wr=ft(L=>`
|
|
2
|
+
.edge {
|
|
3
|
+
stroke-width: ${L.archEdgeWidth};
|
|
4
|
+
stroke: ${L.archEdgeColor};
|
|
5
|
+
fill: none;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.arrow {
|
|
9
|
+
fill: ${L.archEdgeArrowColor};
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.node-bkg {
|
|
13
|
+
fill: none;
|
|
14
|
+
stroke: ${L.archGroupBorderColor};
|
|
15
|
+
stroke-width: ${L.archGroupBorderWidth};
|
|
16
|
+
stroke-dasharray: 8;
|
|
17
|
+
}
|
|
18
|
+
.node-icon-text {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.node-icon-text > div {
|
|
24
|
+
color: #fff;
|
|
25
|
+
margin: 1px;
|
|
26
|
+
height: fit-content;
|
|
27
|
+
text-align: center;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
display: -webkit-box;
|
|
30
|
+
-webkit-box-orient: vertical;
|
|
31
|
+
}
|
|
32
|
+
`,"getStyles");function de(L,F){if(L===0)return F();const w=Math.random;let G=L>>>0;Math.random=function(){G=G+1831565813>>>0;let N=G;return N=Math.imul(N^N>>>15,N|1),N^=N+Math.imul(N^N>>>7,N|61),((N^N>>>14)>>>0)/4294967296};try{return F()}finally{Math.random=w}}A(de,"withSeededRandom");ft(de,"withSeededRandom");var re=ft(L=>`<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/>${L}</g>`,"wrapIcon"),ae={prefix:"mermaid-architecture",height:80,width:80,icons:{database:{body:re('<path id="b" data-name="4" d="m20,57.86c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path id="c" data-name="3" d="m20,45.95c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path id="d" data-name="2" d="m20,34.05c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse id="e" data-name="1" cx="40" cy="22.14" rx="20" ry="7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="20" y1="57.86" x2="20" y2="22.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="60" y1="57.86" x2="60" y2="22.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},server:{body:re('<rect x="17.5" y="17.5" width="45" height="45" rx="2" ry="2" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="32.5" x2="62.5" y2="32.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="47.5" x2="62.5" y2="47.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><g><path d="m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><path d="m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><path d="m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g>')},disk:{body:re('<rect x="20" y="15" width="40" height="50" rx="1" ry="1" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="24" cy="19.17" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="56" cy="19.17" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="24" cy="60.83" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="56" cy="60.83" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="40" cy="33.75" rx="14" ry="14.58" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="40" cy="33.75" rx="4" ry="4.17" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m37.51,42.52l-4.83,13.22c-.26.71-1.1,1.02-1.76.64l-4.18-2.42c-.66-.38-.81-1.26-.33-1.84l9.01-10.8c.88-1.05,2.56-.08,2.09,1.2Z" style="fill: #fff; stroke-width: 0px;"/>')},internet:{body:re('<circle cx="40" cy="40" r="22.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="40" y1="17.5" x2="40" y2="62.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="40" x2="62.5" y2="40" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m39.99,17.51c-15.28,11.1-15.28,33.88,0,44.98" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m40.01,17.51c15.28,11.1,15.28,33.88,0,44.98" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="19.75" y1="30.1" x2="60.25" y2="30.1" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="19.75" y1="49.9" x2="60.25" y2="49.9" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},cloud:{body:re('<path d="m65,47.5c0,2.76-2.24,5-5,5H20c-2.76,0-5-2.24-5-5,0-1.87,1.03-3.51,2.56-4.36-.04-.21-.06-.42-.06-.64,0-2.6,2.48-4.74,5.65-4.97,1.65-4.51,6.34-7.76,11.85-7.76.86,0,1.69.08,2.5.23,2.09-1.57,4.69-2.5,7.5-2.5,6.1,0,11.19,4.38,12.28,10.17,2.14.56,3.72,2.51,3.72,4.83,0,.03,0,.07-.01.1,2.29.46,4.01,2.48,4.01,4.9Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},unknown:hr,blank:{body:re("")}}},Mr=ft(async function(L,F,w,G){const N=w.getConfigField("padding"),v=w.getConfigField("iconSize"),o=v/2,n=v/6,t=n/2;await Promise.all(F.edges().map(async e=>{const{source:h,sourceDir:i,sourceArrow:d,sourceGroup:r,target:a,targetDir:f,targetArrow:l,targetGroup:p,label:g}=Se(e);let{x:c,y:T}=e[0].sourceEndpoint();const{x:C,y:R}=e[0].midpoint();let{x:b,y:X}=e[0].targetEndpoint();const $=N+4;if(r&&(Wt(i)?c+=i==="L"?-$:$:T+=i==="T"?-$:$+18),p&&(Wt(f)?b+=f==="L"?-$:$:X+=f==="T"?-$:$+18),!r&&w.getNode(h)?.type==="junction"&&(Wt(i)?c+=i==="L"?o:-o:T+=i==="T"?o:-o),!p&&w.getNode(a)?.type==="junction"&&(Wt(f)?b+=f==="L"?o:-o:X+=f==="T"?o:-o),e[0]._private.rscratch){const z=L.insert("g");if(z.insert("path").attr("d",`M ${c},${T} L ${C},${R} L${b},${X} `).attr("class","edge").attr("id",`${G}-${nr(h,a,{prefix:"L"})}`),d){const I=Wt(i)?oe[i](c,n):c-t,et=Jt(i)?oe[i](T,n):T-t;z.insert("polygon").attr("points",De[i](n)).attr("transform",`translate(${I},${et})`).attr("class","arrow")}if(l){const I=Wt(f)?oe[f](b,n):b-t,et=Jt(f)?oe[f](X,n):X-t;z.insert("polygon").attr("points",De[f](n)).attr("transform",`translate(${I},${et})`).attr("class","arrow")}if(g){const I=me(i,f)?"XY":Wt(i)?"X":"Y";let et=0;I==="X"?et=Math.abs(c-b):I==="Y"?et=Math.abs(T-X)/1.5:et=Math.abs(c-b)/2;const s=z.append("g");if(await ye(s,g,{useHtmlLabels:!1,width:et,classes:"architecture-service-label"},pe()),s.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),I==="X")s.attr("transform","translate("+C+", "+R+")");else if(I==="Y")s.attr("transform","translate("+C+", "+R+") rotate(-90)");else if(I==="XY"){const m=ue(i,f);if(m&&dr(m)){const u=s.node().getBoundingClientRect(),[E,y]=yr(m);s.attr("dominant-baseline","auto").attr("transform",`rotate(${-1*E*y*45})`);const M=s.node().getBoundingClientRect();s.attr("transform",`
|
|
33
|
+
translate(${C}, ${R-u.height/2})
|
|
34
|
+
translate(${E*M.width/2}, ${y*M.height/2})
|
|
35
|
+
rotate(${-1*E*y*45}, 0, ${u.height/2})
|
|
36
|
+
`)}}}}}))},"drawEdges"),Cr=ft(async function(L,F,w,G){const N=w.getConfigField("padding")*.75,v=w.getConfigField("fontSize"),o=w.getConfigField("iconSize")/2;await Promise.all(F.nodes().map(async n=>{const t=ie(n);if(t.type==="group"){const{h:e,w:h,x1:i,y1:d}=n.boundingBox(),r=L.append("rect");r.attr("id",`${G}-group-${t.id}`).attr("x",i+o).attr("y",d+o).attr("width",h).attr("height",e).attr("class","node-bkg");const a=L.append("g");let f=i,l=d;if(t.icon){const p=a.append("g");p.html(`<g>${await ge(t.icon,{height:N,width:N,fallbackPrefix:ae.prefix})}</g>`),p.attr("transform","translate("+(f+o+1)+", "+(l+o+1)+")"),f+=N,l+=v/2-1-2}if(t.label){const p=a.append("g");await ye(p,t.label,{useHtmlLabels:!1,width:h,classes:"architecture-service-label"},pe()),p.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start"),p.attr("transform","translate("+(f+o+4)+", "+(l+o+2)+")")}w.setElementForId(t.id,r)}}))},"drawGroups"),Ar=ft(async function(L,F,w,G){const N=pe();for(const v of w){const o=F.append("g"),n=L.getConfigField("iconSize");if(v.title){const i=o.append("g");await ye(i,v.title,{useHtmlLabels:!1,width:n*1.5,classes:"architecture-service-label"},N),i.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),i.attr("transform","translate("+n/2+", "+n+")")}const t=o.append("g");if(v.icon)t.html(`<g>${await ge(v.icon,{height:n,width:n,fallbackPrefix:ae.prefix})}</g>`);else if(v.iconText){t.html(`<g>${await ge("blank",{height:n,width:n,fallbackPrefix:ae.prefix})}</g>`);const i=t.append("g").append("foreignObject").attr("width",n).attr("height",n).append("div").attr("class","node-icon-text").attr("style",`height: ${n}px;`).append("div").html(ar(v.iconText,N)),d=parseInt(window.getComputedStyle(i.node(),null).getPropertyValue("font-size").replace(/\D/g,""))??16;i.attr("style",`-webkit-line-clamp: ${Math.floor((n-2)/d)};`)}else t.append("path").attr("class","node-bkg").attr("id",`${G}-node-${v.id}`).attr("d",`M0,${n} V5 Q0,0 5,0 H${n-5} Q${n},0 ${n},5 V${n} Z`);o.attr("id",`${G}-service-${v.id}`).attr("class","architecture-service");const{width:e,height:h}=o.node().getBBox();v.width=e,v.height=h,L.setElementForId(v.id,o)}return 0},"drawServices"),Dr=ft(function(L,F,w,G){w.forEach(N=>{const v=F.append("g"),o=L.getConfigField("iconSize");v.append("g").append("rect").attr("id",`${G}-node-${N.id}`).attr("fill-opacity","0").attr("width",o).attr("height",o),v.attr("class","architecture-junction");const{width:n,height:t}=v._groups[0][0].getBBox();v.width=n,v.height=t,L.setElementForId(N.id,v)})},"drawJunctions");lr([{name:ae.prefix,icons:ae}]);Ie.use(gr.default);function Ge(L,F,w){L.forEach(G=>{F.add({group:"nodes",data:{type:"service",id:G.id,icon:G.icon,label:G.title,parent:G.in,width:w.getConfigField("iconSize"),height:w.getConfigField("iconSize")},classes:"node-service"})})}A(Ge,"addServices");ft(Ge,"addServices");function Pe(L,F,w){L.forEach(G=>{F.add({group:"nodes",data:{type:"junction",id:G.id,parent:G.in,width:w.getConfigField("iconSize"),height:w.getConfigField("iconSize")},classes:"node-junction"})})}A(Pe,"addJunctions");ft(Pe,"addJunctions");function Ue(L,F){F.nodes().map(w=>{const G=ie(w);G.type!=="group"&&(G.x=w.position().x,G.y=w.position().y,L.getElementById(G.id).attr("transform","translate("+(G.x||0)+","+(G.y||0)+")"))})}A(Ue,"positionNodes");ft(Ue,"positionNodes");function Ye(L,F){L.forEach(w=>{F.add({group:"nodes",data:{type:"group",id:w.id,icon:w.icon,label:w.title,parent:w.in},classes:"node-group"})})}A(Ye,"addGroups");ft(Ye,"addGroups");function Xe(L,F){L.forEach(w=>{const{lhsId:G,rhsId:N,lhsInto:v,lhsGroup:o,rhsInto:n,lhsDir:t,rhsDir:e,rhsGroup:h,title:i}=w,d=me(w.lhsDir,w.rhsDir)?"segments":"straight",r={id:`${G}-${N}`,label:i,source:G,sourceDir:t,sourceArrow:v,sourceGroup:o,sourceEndpoint:t==="L"?"0 50%":t==="R"?"100% 50%":t==="T"?"50% 0":"50% 100%",target:N,targetDir:e,targetArrow:n,targetGroup:h,targetEndpoint:e==="L"?"0 50%":e==="R"?"100% 50%":e==="T"?"50% 0":"50% 100%"};F.add({group:"edges",data:r,classes:d})})}A(Xe,"addEdges");ft(Xe,"addEdges");function He(L,F,w,G=[]){const N=ft((i,d)=>{const r=new Map;for(const[a,f]of i.entries()){const l=`${a}`;let p=0;const g=[...f.entries()];if(g.length===1){r.set(l,g[0][1]);continue}for(let c=0;c<g.length-1;c++)for(let T=c+1;T<g.length;T++){const[C,R]=g[c],[b,X]=g[T];if(w.get(Re(C,b))===d)r.set(l,[...r.get(l)??[],...R,...X]);else if(C==="default"||b==="default")r.set(l,[...r.get(l)??[],...R,...X]);else{const $=`${l}-${p++}`;r.set($,R);const z=`${l}-${p++}`;r.set(z,X)}}}return r},"flattenAlignments"),[v,o]=F.map(i=>{const d=new Map,r=new Map;return i.forEach(([a,f],l)=>{const p=L.getNode(l)?.in??"default",g=d.get(f)??new Map;d.has(f)||d.set(f,g);const c=r.get(a)??new Map;r.has(a)||r.set(a,c);for(const T of[g,c]){const C=T.get(p)??[];T.has(p)||T.set(p,C),C.push(l)}}),{horiz:[...N(d,"horizontal").values()].filter(a=>a.length>1),vert:[...N(r,"vertical").values()].filter(a=>a.length>1)}}).reduce(([i,d],{horiz:r,vert:a})=>[[...i,...r],[...d,...a]],[[],[]]),n=new Set;G.forEach(i=>i.members.forEach(d=>n.add(d)));const t=ft(i=>i.filter(d=>!d.some(r=>n.has(r))),"dropOverlapping"),e=t(v),h=t(o);return G.forEach(i=>{i.members.length<2||(i.direction==="row"?e.push([...i.members]):h.push([...i.members]))}),{horizontal:e,vertical:h}}A(He,"getAlignments");ft(He,"getAlignments");function We(L,F,w=[]){const G=[],N=F.getConfigField("iconSize"),v=F.getConfigField("idealEdgeLengthMultiplier"),o=v*N,n=new Set;w.forEach(h=>{for(let i=0;i<h.members.length-1;i++){const d=h.members[i],r=h.members[i+1];n.add(`${d}|${r}`),n.add(`${r}|${d}`),h.direction==="row"?G.push({left:d,right:r,gap:o}):G.push({top:d,bottom:r,gap:o})}});const t=ft(h=>`${h[0]},${h[1]}`,"posToStr"),e=ft(h=>h.split(",").map(i=>parseInt(i)),"strToPos");return L.forEach(h=>{const i=new Map([...h.entries()].map(([f,l])=>[t(l),f])),d=[t([0,0])],r={},a={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};for(;d.length>0;){const f=d.shift();if(f){r[f]=1;const l=i.get(f);if(l){const p=e(f);Object.entries(a).forEach(([g,c])=>{const T=t([p[0]+c[0],p[1]+c[1]]),C=i.get(T);if(C&&!r[T]){if(d.push(T),n.has(`${l}|${C}`))return;G.push({[Ae[g]]:C,[Ae[ur(g)]]:l,gap:v*N})}})}}}}),G}A(We,"getRelativeConstraints");ft(We,"getRelativeConstraints");function Ve(L,F,w,G,N,{spatialMaps:v,groupAlignments:o}){return new Promise(n=>{const t=ke("body").append("div").attr("id","cy").attr("style","display:none"),e=Ie({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"straight","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"edge[label]",style:{label:"data(label)"}},{selector:"edge.segments",style:{"curve-style":"segments","segment-weights":"0","segment-distances":[.5],"edge-distances":"endpoints","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"node",style:{"compound-sizing-wrt-labels":"include"}},{selector:"node[label]",style:{"text-valign":"bottom","text-halign":"center","font-size":`${N.getConfigField("fontSize")}px`}},{selector:".node-service",style:{label:"data(label)",width:"data(width)",height:"data(height)"}},{selector:".node-junction",style:{width:"data(width)",height:"data(height)"}},{selector:".node-group",style:{padding:`${N.getConfigField("padding")}px`}}],layout:{name:"grid",boundingBox:{x1:0,x2:100,y1:0,y2:100}}});t.remove(),Ye(w,e),Ge(L,e,N),Pe(F,e,N),Xe(G,e);const h=N.getLayoutHints(),i=He(N,v,o,h),d=We(v,N,h),r=N.getConfigField("iconSize"),a=N.getConfigField("idealEdgeLengthMultiplier")*r,f=.5*r,l=N.getConfigField("edgeElasticity"),p=N.getConfigField("seed"),g=e.layout({name:"fcose",quality:"proof",randomize:N.getConfigField("randomize"),nodeSeparation:N.getConfigField("nodeSeparation"),numIter:N.getConfigField("numIter"),styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength(c){const[T,C]=c.connectedNodes(),{parent:R}=ie(T),{parent:b}=ie(C);return R===b?a:f},edgeElasticity(c){const[T,C]=c.connectedNodes(),{parent:R}=ie(T),{parent:b}=ie(C);return R===b?l:.001},alignmentConstraint:i,relativePlacementConstraint:d});g.one("layoutstop",()=>{function c(T,C,R,b){let X,$;const{x:z,y:I}=T,{x:et,y:s}=C;$=(b-I+(z-R)*(I-s)/(z-et))/Math.sqrt(1+Math.pow((I-s)/(z-et),2)),X=Math.sqrt(Math.pow(b-I,2)+Math.pow(R-z,2)-Math.pow($,2));const m=Math.sqrt(Math.pow(et-z,2)+Math.pow(s-I,2));X=X/m;let u=(et-z)*(b-I)-(s-I)*(R-z);switch(!0){case u>=0:u=1;break;case u<0:u=-1}let E=(et-z)*(R-z)+(s-I)*(b-I);switch(!0){case E>=0:E=1;break;case E<0:E=-1}return $=Math.abs($)*u,X=X*E,{distances:$,weights:X}}A(c,"getSegmentWeights"),ft(c,"getSegmentWeights"),e.startBatch();for(const T of Object.values(e.edges()))if(T.data?.()){const{x:C,y:R}=T.source().position(),{x:b,y:X}=T.target().position();if(C!==b&&R!==X){const $=T.sourceEndpoint(),z=T.targetEndpoint(),{sourceDir:I}=Se(T),[et,s]=Jt(I)?[$.x,z.y]:[z.x,$.y],{weights:m,distances:u}=c($,z,et,s);T.style("segment-distances",u),T.style("segment-weights",m)}}e.endBatch(),de(p,()=>g.run())});try{de(p,()=>g.run())}catch(c){throw c instanceof RangeError&&c.message.includes("Invalid array length")?new Error("Architecture layout failed: a declared `align row|column` directive likely contradicts the edge directions, or two declared alignments overlap on a shared node. Check that the order of members in each `align` chain is consistent with the edges between them, and that no node appears in two `align` directives along the same axis."):c}e.ready(c=>{xe.info("Ready",c),n(e)})})}A(Ve,"layoutArchitecture");ft(Ve,"layoutArchitecture");var Hr={parser:be,get db(){return new Fe},renderer:{draw:ft(async(L,F,w,G)=>{const N=G.db;N.setDiagramId(F);const v=N.getServices(),o=N.getJunctions(),n=N.getGroups(),t=N.getEdges(),e=N.getDataStructures(),h=fr(F),i=h.append("g");i.attr("class","architecture-edges");const d=h.append("g");d.attr("class","architecture-services");const r=h.append("g");r.attr("class","architecture-groups"),await Ar(N,d,v,F),Dr(N,d,o,F);const a=await Ve(v,o,n,t,N,e);await Mr(i,a,N,F),await Cr(r,a,N,F),Ue(N,a),qe(void 0,h,N.getConfigField("padding"),N.getConfigField("useMaxWidth"))},"draw")},styles:wr};export{Hr as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=Object.defineProperty;var t=(r,e)=>a(r,"name",{value:e,configurable:!0});var n=Array.prototype.slice;function y(r){return typeof r=="object"&&"length"in r?r:Array.from(r)}t(y,"array_default");export{y as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var u=Object.defineProperty;var n=(e,r)=>u(e,"name",{value:r,configurable:!0});function i(e){var r=e.match(/^\s*\S/);return e.skipToEnd(),r?"error":null}n(i,"errorIfNotEmpty");var l={name:"asciiarmor",token:n(function(e,r){var t;if(r.state=="top")return e.sol()&&(t=e.match(/^-----BEGIN (.*)?-----\s*$/))?(r.state="headers",r.type=t[1],"tag"):i(e);if(r.state=="headers"){if(e.sol()&&e.match(/^\w+:/))return r.state="header","atom";var o=i(e);return o&&(r.state="body"),o}else{if(r.state=="header")return e.skipToEnd(),r.state="headers","string";if(r.state=="body")return e.sol()&&(t=e.match(/^-----END (.*)?-----\s*$/))?t[1]!=r.type?"error":(r.state="end","tag"):e.eatWhile(/[A-Za-z0-9+\/=]/)?null:(e.next(),"error");if(r.state=="end")return i(e)}},"token"),blankLine:n(function(e){e.state=="headers"&&(e.state="body")},"blankLine"),startState:n(function(){return{state:"top",type:null}},"startState")};export{l as asciiArmor};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var P=Object.defineProperty;var o=(i,T)=>P(i,"name",{value:T,configurable:!0});function I(i){for(var T={},a=i.split(" "),l=0;l<a.length;++l)T[a[l]]=!0;return T}o(I,"words");var u={keywords:I("DEFINITIONS OBJECTS IF DERIVED INFORMATION ACTION REPLY ANY NAMED CHARACTERIZED BEHAVIOUR REGISTERED WITH AS IDENTIFIED CONSTRAINED BY PRESENT BEGIN IMPORTS FROM UNITS SYNTAX MIN-ACCESS MAX-ACCESS MINACCESS MAXACCESS REVISION STATUS DESCRIPTION SEQUENCE SET COMPONENTS OF CHOICE DistinguishedName ENUMERATED SIZE MODULE END INDEX AUGMENTS EXTENSIBILITY IMPLIED EXPORTS"),cmipVerbs:I("ACTIONS ADD GET NOTIFICATIONS REPLACE REMOVE"),compareTypes:I("OPTIONAL DEFAULT MANAGED MODULE-TYPE MODULE_IDENTITY MODULE-COMPLIANCE OBJECT-TYPE OBJECT-IDENTITY OBJECT-COMPLIANCE MODE CONFIRMED CONDITIONAL SUBORDINATE SUPERIOR CLASS TRUE FALSE NULL TEXTUAL-CONVENTION"),status:I("current deprecated mandatory obsolete"),tags:I("APPLICATION AUTOMATIC EXPLICIT IMPLICIT PRIVATE TAGS UNIVERSAL"),storage:I("BOOLEAN INTEGER OBJECT IDENTIFIER BIT OCTET STRING UTCTime InterfaceIndex IANAifType CMIP-Attribute REAL PACKAGE PACKAGES IpAddress PhysAddress NetworkAddress BITS BMPString TimeStamp TimeTicks TruthValue RowStatus DisplayString GeneralString GraphicString IA5String NumericString PrintableString SnmpAdminString TeletexString UTF8String VideotexString VisibleString StringStore ISO646String T61String UniversalString Unsigned32 Integer32 Gauge Gauge32 Counter Counter32 Counter64"),modifier:I("ATTRIBUTE ATTRIBUTES MANDATORY-GROUP MANDATORY-GROUPS GROUP GROUPS ELEMENTS EQUALITY ORDERING SUBSTRINGS DEFINED"),accessTypes:I("not-accessible accessible-for-notify read-only read-create read-write"),multiLineStrings:!0};function M(i){var T=i.keywords||u.keywords,a=i.cmipVerbs||u.cmipVerbs,l=i.compareTypes||u.compareTypes,d=i.status||u.status,f=i.tags||u.tags,m=i.storage||u.storage,C=i.modifier||u.modifier,R=i.accessTypes||u.accessTypes,y=i.multiLineStrings||u.multiLineStrings,D=i.indentStatements!==!1,p=/[\|\^]/,E;function g(e,n){var t=e.next();if(t=='"'||t=="'")return n.tokenize=L(t),n.tokenize(e,n);if(/[\[\]\(\){}:=,;]/.test(t))return E=t,"punctuation";if(t=="-"&&e.eat("-"))return e.skipToEnd(),"comment";if(/\d/.test(t))return e.eatWhile(/[\w\.]/),"number";if(p.test(t))return e.eatWhile(p),"operator";e.eatWhile(/[\w\-]/);var r=e.current();return T.propertyIsEnumerable(r)?"keyword":a.propertyIsEnumerable(r)?"variableName":l.propertyIsEnumerable(r)?"atom":d.propertyIsEnumerable(r)?"comment":f.propertyIsEnumerable(r)?"typeName":m.propertyIsEnumerable(r)||C.propertyIsEnumerable(r)||R.propertyIsEnumerable(r)?"modifier":"variableName"}o(g,"tokenBase");function L(e){return function(n,t){for(var r=!1,c,N=!1;(c=n.next())!=null;){if(c==e&&!r){var S=n.peek();S&&(S=S.toLowerCase(),(S=="b"||S=="h"||S=="o")&&n.next()),N=!0;break}r=!r&&c=="\\"}return(N||!(r||y))&&(t.tokenize=null),"string"}}o(L,"tokenString");function O(e,n,t,r,c){this.indented=e,this.column=n,this.type=t,this.align=r,this.prev=c}o(O,"Context");function A(e,n,t){var r=e.indented;return e.context&&e.context.type=="statement"&&(r=e.context.indented),e.context=new O(r,n,t,null,e.context)}o(A,"pushContext");function s(e){var n=e.context.type;return(n==")"||n=="]"||n=="}")&&(e.indented=e.context.indented),e.context=e.context.prev}return o(s,"popContext"),{name:"asn1",startState:o(function(){return{tokenize:null,context:new O(-2,0,"top",!1),indented:0,startOfLine:!0}},"startState"),token:o(function(e,n){var t=n.context;if(e.sol()&&(t.align==null&&(t.align=!1),n.indented=e.indentation(),n.startOfLine=!0),e.eatSpace())return null;E=null;var r=(n.tokenize||g)(e,n);if(r=="comment")return r;if(t.align==null&&(t.align=!0),(E==";"||E==":"||E==",")&&t.type=="statement")s(n);else if(E=="{")A(n,e.column(),"}");else if(E=="[")A(n,e.column(),"]");else if(E=="(")A(n,e.column(),")");else if(E=="}"){for(;t.type=="statement";)t=s(n);for(t.type=="}"&&(t=s(n));t.type=="statement";)t=s(n)}else E==t.type?s(n):D&&((t.type=="}"||t.type=="top")&&E!=";"||t.type=="statement"&&E=="newstatement")&&A(n,e.column(),"statement");return n.startOfLine=!1,r},"token"),languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"--"}}}}o(M,"asn1");export{M as asn1};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t=Object.defineProperty;var r=(e,n)=>t(e,"name",{value:n,configurable:!0});var o=["exten","same","include","ignorepat","switch"],c=["#include","#exec"],l=["addqueuemember","adsiprog","aelsub","agentlogin","agentmonitoroutgoing","agi","alarmreceiver","amd","answer","authenticate","background","backgrounddetect","bridge","busy","callcompletioncancel","callcompletionrequest","celgenuserevent","changemonitor","chanisavail","channelredirect","chanspy","clearhash","confbridge","congestion","continuewhile","controlplayback","dahdiacceptr2call","dahdibarge","dahdiras","dahdiscan","dahdisendcallreroutingfacility","dahdisendkeypadfacility","datetime","dbdel","dbdeltree","deadagi","dial","dictate","directory","disa","dumpchan","eagi","echo","endwhile","exec","execif","execiftime","exitwhile","extenspy","externalivr","festival","flash","followme","forkcdr","getcpeid","gosub","gosubif","goto","gotoif","gotoiftime","hangup","iax2provision","ices","importvar","incomplete","ivrdemo","jabberjoin","jabberleave","jabbersend","jabbersendgroup","jabberstatus","jack","log","macro","macroexclusive","macroexit","macroif","mailboxexists","meetme","meetmeadmin","meetmechanneladmin","meetmecount","milliwatt","minivmaccmess","minivmdelete","minivmgreet","minivmmwi","minivmnotify","minivmrecord","mixmonitor","monitor","morsecode","mp3player","mset","musiconhold","nbscat","nocdr","noop","odbc","odbc","odbcfinish","originate","ospauth","ospfinish","osplookup","ospnext","page","park","parkandannounce","parkedcall","pausemonitor","pausequeuemember","pickup","pickupchan","playback","playtones","privacymanager","proceeding","progress","queue","queuelog","raiseexception","read","readexten","readfile","receivefax","receivefax","receivefax","record","removequeuemember","resetcdr","retrydial","return","ringing","sayalpha","saycountedadj","saycountednoun","saycountpl","saydigits","saynumber","sayphonetic","sayunixtime","senddtmf","sendfax","sendfax","sendfax","sendimage","sendtext","sendurl","set","setamaflags","setcallerpres","setmusiconhold","sipaddheader","sipdtmfmode","sipremoveheader","skel","slastation","slatrunk","sms","softhangup","speechactivategrammar","speechbackground","speechcreate","speechdeactivategrammar","speechdestroy","speechloadgrammar","speechprocessingsound","speechstart","speechunloadgrammar","stackpop","startmusiconhold","stopmixmonitor","stopmonitor","stopmusiconhold","stopplaytones","system","testclient","testserver","transfer","tryexec","trysystem","unpausemonitor","unpausequeuemember","userevent","verbose","vmauthenticate","vmsayname","voicemail","voicemailmain","wait","waitexten","waitfornoise","waitforring","waitforsilence","waitmusiconhold","waituntil","while","zapateller"];function s(e,n){var i="",a=e.next();if(n.blockComment)return a=="-"&&e.match("-;",!0)?n.blockComment=!1:e.skipTo("--;")?(e.next(),e.next(),e.next(),n.blockComment=!1):e.skipToEnd(),"comment";if(a==";")return e.match("--",!0)&&!e.match("-",!1)?(n.blockComment=!0,"comment"):(e.skipToEnd(),"comment");if(a=="[")return e.skipTo("]"),e.eat("]"),"header";if(a=='"')return e.skipTo('"'),"string";if(a=="'")return e.skipTo("'"),"string.special";if(a=="#"&&(e.eatWhile(/\w/),i=e.current(),c.indexOf(i)!==-1))return e.skipToEnd(),"strong";if(a=="$"&&e.peek()=="{")return e.skipTo("}"),e.eat("}"),"variableName.special";if(e.eatWhile(/\w/),i=e.current(),o.indexOf(i)!==-1){switch(n.extenStart=!0,i){case"same":n.extenSame=!0;break;case"include":case"switch":case"ignorepat":n.extenInclude=!0}return"atom"}}r(s,"basicToken");var d={name:"asterisk",startState:r(function(){return{blockComment:!1,extenStart:!1,extenSame:!1,extenInclude:!1,extenExten:!1,extenPriority:!1,extenApplication:!1}},"startState"),token:r(function(e,n){var i="";if(e.eatSpace())return null;if(n.extenStart)return e.eatWhile(/[^\s]/),i=e.current(),/^=>?$/.test(i)?(n.extenExten=!0,n.extenStart=!1,"strong"):(n.extenStart=!1,e.skipToEnd(),"error");if(n.extenExten)return n.extenExten=!1,n.extenPriority=!0,e.eatWhile(/[^,]/),n.extenInclude&&(e.skipToEnd(),n.extenPriority=!1,n.extenInclude=!1),n.extenSame&&(n.extenPriority=!1,n.extenSame=!1,n.extenApplication=!0),"tag";if(n.extenPriority)return n.extenPriority=!1,n.extenApplication=!0,e.next(),n.extenSame?null:(e.eatWhile(/[^,]/),"number");if(n.extenApplication){if(e.eatWhile(/,/),i=e.current(),i===",")return null;if(e.eatWhile(/\w/),i=e.current().toLowerCase(),n.extenApplication=!1,l.indexOf(i)!==-1)return"def"}else return s(e,n);return null},"token"),languageData:{commentTokens:{line:";",block:{open:";--",close:"--;"}}}};export{d as asterisk};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var s=Object.defineProperty;var t=(e,r)=>s(e,"name",{value:r,configurable:!0});import{i as a}from"./rolldown-runtime-ZpX3ckPj.js";import{Fr as d,Lr as c,S as u,d as v}from"./createLucideIcon-D-iIM3hK.js";import{r as g}from"./button-DCI8NFig.js";var h=a(c(),1),f=a(d(),1),l=g("inline-flex items-center justify-center rounded-full border border-transparent px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-(length:--rad-3) aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-(--tp-color-box-shadow) overflow-hidden",{variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",ghost:"[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",link:"text-primary underline-offset-4 [a&]:hover:underline"}},defaultVariants:{variant:"default"}});function y({className:e,variant:r="default",asChild:i=!1,...o}){const n=i?v:"span";return(0,f.jsx)(n,{"data-slot":"badge","data-variant":r,className:u(l({variant:r}),e),...o})}t(y,"Badge");export{l as n,y as t};
|