import { __commonJSMin } from "../../_virtual/rolldown_runtime.js";
import { require_cose_base } from "./node_modules/cose-base/cose-base.js";
var require_cytoscape_fcose = /* @__PURE__ */ __commonJSMin(((e, n) => {
	(function(r, i) {
		typeof e == "object" && typeof n == "object" ? n.exports = i(require_cose_base()) : typeof define == "function" && define.amd ? define(["cose-base"], i) : typeof e == "object" ? e.cytoscapeFcose = i(require_cose_base()) : r.cytoscapeFcose = i(r.coseBase);
	})(e, function(e) {
		return (() => {
			var t = {
				658: ((e) => {
					e.exports = Object.assign == null ? function(e) {
						return [...arguments].slice(1).forEach(function(t) {
							Object.keys(t).forEach(function(n) {
								return e[n] = t[n];
							});
						}), e;
					} : Object.assign.bind(Object);
				}),
				548: ((e, t, n) => {
					var r = function() {
						function e(e, t) {
							var n = [], r = !0, i = !1, a = void 0;
							try {
								for (var o = e[Symbol.iterator](), s; !(r = (s = o.next()).done) && (n.push(s.value), !(t && n.length === t)); r = !0);
							} catch (e) {
								i = !0, a = e;
							} finally {
								try {
									!r && o.return && o.return();
								} finally {
									if (i) throw a;
								}
							}
							return n;
						}
						return function(t, n) {
							if (Array.isArray(t)) return t;
							if (Symbol.iterator in Object(t)) return e(t, n);
							throw TypeError("Invalid attempt to destructure non-iterable instance");
						};
					}(), i = n(140).layoutBase.LinkedList, a = {};
					a.getTopMostNodes = function(e) {
						for (var t = {}, n = 0; n < e.length; n++) t[e[n].id()] = !0;
						return e.filter(function(e, n) {
							typeof e == "number" && (e = n);
							for (var r = e.parent()[0]; r != null;) {
								if (t[r.id()]) return !1;
								r = r.parent()[0];
							}
							return !0;
						});
					}, a.connectComponents = function(e, t, n, r) {
						var a = new i(), o = /* @__PURE__ */ new Set(), s = [], c = void 0, l = void 0, u = void 0, d = !1, f = 1, p = [], m = [], h = function() {
							var r = e.collection();
							m.push(r);
							var i = n[0], h = e.collection();
							h.merge(i).merge(i.descendants().intersection(t)), s.push(i), h.forEach(function(e) {
								a.push(e), o.add(e), r.merge(e);
							});
							for (var g = function() {
								i = a.shift();
								var l = e.collection();
								i.neighborhood().nodes().forEach(function(e) {
									t.intersection(i.edgesWith(e)).length > 0 && l.merge(e);
								});
								for (var u = 0; u < l.length; u++) {
									var d = l[u];
									c = n.intersection(d.union(d.ancestors())), c != null && !o.has(c[0]) && c.union(c.descendants()).forEach(function(e) {
										a.push(e), o.add(e), r.merge(e), n.has(e) && s.push(e);
									});
								}
							}; a.length != 0;) g();
							if (r.forEach(function(e) {
								t.intersection(e.connectedEdges()).forEach(function(e) {
									r.has(e.source()) && r.has(e.target()) && r.merge(e);
								});
							}), s.length == n.length && (d = !0), !d || d && f > 1) {
								l = s[0], u = l.connectedEdges().length, s.forEach(function(e) {
									e.connectedEdges().length < u && (u = e.connectedEdges().length, l = e);
								}), p.push(l.id());
								var _ = e.collection();
								_.merge(s[0]), s.forEach(function(e) {
									_.merge(e);
								}), s = [], n = n.difference(_), f++;
							}
						};
						do
							h();
						while (!d);
						return r && p.length > 0 && r.set("dummy" + (r.size + 1), p), m;
					}, a.relocateComponent = function(e, t, n) {
						if (!n.fixedNodeConstraint) {
							var i = Infinity, a = -Infinity, o = Infinity, s = -Infinity;
							if (n.quality == "draft") {
								var c = !0, l = !1, u = void 0;
								try {
									for (var d = t.nodeIndexes[Symbol.iterator](), f; !(c = (f = d.next()).done); c = !0) {
										var p = f.value, m = r(p, 2), h = m[0], g = m[1], _ = n.cy.getElementById(h);
										if (_) {
											var v = _.boundingBox(), y = t.xCoords[g] - v.w / 2, b = t.xCoords[g] + v.w / 2, x = t.yCoords[g] - v.h / 2, S = t.yCoords[g] + v.h / 2;
											y < i && (i = y), b > a && (a = b), x < o && (o = x), S > s && (s = S);
										}
									}
								} catch (e) {
									l = !0, u = e;
								} finally {
									try {
										!c && d.return && d.return();
									} finally {
										if (l) throw u;
									}
								}
								var C = e.x - (a + i) / 2, w = e.y - (s + o) / 2;
								t.xCoords = t.xCoords.map(function(e) {
									return e + C;
								}), t.yCoords = t.yCoords.map(function(e) {
									return e + w;
								});
							} else {
								Object.keys(t).forEach(function(e) {
									var n = t[e], r = n.getRect().x, c = n.getRect().x + n.getRect().width, l = n.getRect().y, u = n.getRect().y + n.getRect().height;
									r < i && (i = r), c > a && (a = c), l < o && (o = l), u > s && (s = u);
								});
								var T = e.x - (a + i) / 2, E = e.y - (s + o) / 2;
								Object.keys(t).forEach(function(e) {
									var n = t[e];
									n.setCenter(n.getCenterX() + T, n.getCenterY() + E);
								});
							}
						}
					}, a.calcBoundingBox = function(e, t, n, r) {
						for (var i = 2 ** 53 - 1, a = -(2 ** 53 - 1), o = 2 ** 53 - 1, s = -(2 ** 53 - 1), c = void 0, l = void 0, u = void 0, d = void 0, f = e.descendants().not(":parent"), p = f.length, m = 0; m < p; m++) {
							var h = f[m];
							c = t[r.get(h.id())] - h.width() / 2, l = t[r.get(h.id())] + h.width() / 2, u = n[r.get(h.id())] - h.height() / 2, d = n[r.get(h.id())] + h.height() / 2, i > c && (i = c), a < l && (a = l), o > u && (o = u), s < d && (s = d);
						}
						var g = {};
						return g.topLeftX = i, g.topLeftY = o, g.width = a - i, g.height = s - o, g;
					}, a.calcParentsWithoutChildren = function(e, t) {
						var n = e.collection();
						return t.nodes(":parent").forEach(function(e) {
							var t = !1;
							e.children().forEach(function(e) {
								e.css("display") != "none" && (t = !0);
							}), t || n.merge(e);
						}), n;
					}, e.exports = a;
				}),
				816: ((e, t, n) => {
					var r = n(548), i = n(140).CoSELayout, a = n(140).CoSENode, o = n(140).layoutBase.PointD, s = n(140).layoutBase.DimensionD, c = n(140).layoutBase.LayoutConstants, l = n(140).layoutBase.FDLayoutConstants, u = n(140).CoSEConstants;
					e.exports = { coseLayout: function(e, t) {
						var n = e.cy, d = e.eles, f = d.nodes(), p = d.edges(), m = void 0, h = void 0, g = void 0, _ = {};
						e.randomize && (m = t.nodeIndexes, h = t.xCoords, g = t.yCoords);
						var v = function(e) {
							return typeof e == "function";
						}, y = function(e, t) {
							return v(e) ? e(t) : e;
						}, b = r.calcParentsWithoutChildren(n, d), x = function e(t, n, i, c) {
							for (var l = n.length, u = 0; u < l; u++) {
								var d = n[u], f = null;
								d.intersection(b).length == 0 && (f = d.children());
								var p = void 0, v = d.layoutDimensions({ nodeDimensionsIncludeLabels: c.nodeDimensionsIncludeLabels });
								if (d.outerWidth() != null && d.outerHeight() != null) if (c.randomize) if (!d.isParent()) p = t.add(new a(i.graphManager, new o(h[m.get(d.id())] - v.w / 2, g[m.get(d.id())] - v.h / 2), new s(parseFloat(v.w), parseFloat(v.h))));
								else {
									var x = r.calcBoundingBox(d, h, g, m);
									p = d.intersection(b).length == 0 ? t.add(new a(i.graphManager, new o(x.topLeftX, x.topLeftY), new s(x.width, x.height))) : t.add(new a(i.graphManager, new o(x.topLeftX, x.topLeftY), new s(parseFloat(v.w), parseFloat(v.h))));
								}
								else p = t.add(new a(i.graphManager, new o(d.position("x") - v.w / 2, d.position("y") - v.h / 2), new s(parseFloat(v.w), parseFloat(v.h))));
								else p = t.add(new a(this.graphManager));
								if (p.id = d.data("id"), p.nodeRepulsion = y(c.nodeRepulsion, d), p.paddingLeft = parseInt(d.css("padding")), p.paddingTop = parseInt(d.css("padding")), p.paddingRight = parseInt(d.css("padding")), p.paddingBottom = parseInt(d.css("padding")), c.nodeDimensionsIncludeLabels && (p.labelWidth = d.boundingBox({
									includeLabels: !0,
									includeNodes: !1,
									includeOverlays: !1
								}).w, p.labelHeight = d.boundingBox({
									includeLabels: !0,
									includeNodes: !1,
									includeOverlays: !1
								}).h, p.labelPosVertical = d.css("text-valign"), p.labelPosHorizontal = d.css("text-halign")), _[d.data("id")] = p, isNaN(p.rect.x) && (p.rect.x = 0), isNaN(p.rect.y) && (p.rect.y = 0), f != null && f.length > 0) {
									var S = void 0;
									S = i.getGraphManager().add(i.newGraph(), p), e(S, f, i, c);
								}
							}
						}, S = function(t, n, r) {
							for (var i = 0, a = 0, o = 0; o < r.length; o++) {
								var s = r[o], c = _[s.data("source")], d = _[s.data("target")];
								if (c && d && c !== d && c.getEdgesBetween(d).length == 0) {
									var f = n.add(t.newEdge(), c, d);
									f.id = s.id(), f.idealLength = y(e.idealEdgeLength, s), f.edgeElasticity = y(e.edgeElasticity, s), i += f.idealLength, a++;
								}
							}
							e.idealEdgeLength != null && (a > 0 ? u.DEFAULT_EDGE_LENGTH = l.DEFAULT_EDGE_LENGTH = i / a : v(e.idealEdgeLength) ? u.DEFAULT_EDGE_LENGTH = l.DEFAULT_EDGE_LENGTH = 50 : u.DEFAULT_EDGE_LENGTH = l.DEFAULT_EDGE_LENGTH = e.idealEdgeLength, u.MIN_REPULSION_DIST = l.MIN_REPULSION_DIST = l.DEFAULT_EDGE_LENGTH / 10, u.DEFAULT_RADIAL_SEPARATION = l.DEFAULT_EDGE_LENGTH);
						}, C = function(e, t) {
							t.fixedNodeConstraint && (e.constraints.fixedNodeConstraint = t.fixedNodeConstraint), t.alignmentConstraint && (e.constraints.alignmentConstraint = t.alignmentConstraint), t.relativePlacementConstraint && (e.constraints.relativePlacementConstraint = t.relativePlacementConstraint);
						};
						e.nestingFactor != null && (u.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = e.nestingFactor), e.gravity != null && (u.DEFAULT_GRAVITY_STRENGTH = l.DEFAULT_GRAVITY_STRENGTH = e.gravity), e.numIter != null && (u.MAX_ITERATIONS = l.MAX_ITERATIONS = e.numIter), e.gravityRange != null && (u.DEFAULT_GRAVITY_RANGE_FACTOR = l.DEFAULT_GRAVITY_RANGE_FACTOR = e.gravityRange), e.gravityCompound != null && (u.DEFAULT_COMPOUND_GRAVITY_STRENGTH = l.DEFAULT_COMPOUND_GRAVITY_STRENGTH = e.gravityCompound), e.gravityRangeCompound != null && (u.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = e.gravityRangeCompound), e.initialEnergyOnIncremental != null && (u.DEFAULT_COOLING_FACTOR_INCREMENTAL = l.DEFAULT_COOLING_FACTOR_INCREMENTAL = e.initialEnergyOnIncremental), e.tilingCompareBy != null && (u.TILING_COMPARE_BY = e.tilingCompareBy), e.quality == "proof" ? c.QUALITY = 2 : c.QUALITY = 0, u.NODE_DIMENSIONS_INCLUDE_LABELS = l.NODE_DIMENSIONS_INCLUDE_LABELS = c.NODE_DIMENSIONS_INCLUDE_LABELS = e.nodeDimensionsIncludeLabels, u.DEFAULT_INCREMENTAL = l.DEFAULT_INCREMENTAL = c.DEFAULT_INCREMENTAL = !e.randomize, u.ANIMATE = l.ANIMATE = c.ANIMATE = e.animate, u.TILE = e.tile, u.TILING_PADDING_VERTICAL = typeof e.tilingPaddingVertical == "function" ? e.tilingPaddingVertical.call() : e.tilingPaddingVertical, u.TILING_PADDING_HORIZONTAL = typeof e.tilingPaddingHorizontal == "function" ? e.tilingPaddingHorizontal.call() : e.tilingPaddingHorizontal, u.DEFAULT_INCREMENTAL = l.DEFAULT_INCREMENTAL = c.DEFAULT_INCREMENTAL = !0, u.PURE_INCREMENTAL = !e.randomize, c.DEFAULT_UNIFORM_LEAF_NODE_SIZES = e.uniformNodeDimensions, e.step == "transformed" && (u.TRANSFORM_ON_CONSTRAINT_HANDLING = !0, u.ENFORCE_CONSTRAINTS = !1, u.APPLY_LAYOUT = !1), e.step == "enforced" && (u.TRANSFORM_ON_CONSTRAINT_HANDLING = !1, u.ENFORCE_CONSTRAINTS = !0, u.APPLY_LAYOUT = !1), e.step == "cose" && (u.TRANSFORM_ON_CONSTRAINT_HANDLING = !1, u.ENFORCE_CONSTRAINTS = !1, u.APPLY_LAYOUT = !0), e.step == "all" && (e.randomize ? u.TRANSFORM_ON_CONSTRAINT_HANDLING = !0 : u.TRANSFORM_ON_CONSTRAINT_HANDLING = !1, u.ENFORCE_CONSTRAINTS = !0, u.APPLY_LAYOUT = !0), e.fixedNodeConstraint || e.alignmentConstraint || e.relativePlacementConstraint ? u.TREE_REDUCTION_ON_INCREMENTAL = !1 : u.TREE_REDUCTION_ON_INCREMENTAL = !0;
						var w = new i(), T = w.newGraphManager();
						return x(T.addRoot(), r.getTopMostNodes(f), w, e), S(w, T, p), C(w, e), w.runLayout(), _;
					} };
				}),
				212: ((e, t, n) => {
					var r = function() {
						function e(e, t) {
							for (var n = 0; n < t.length; n++) {
								var r = t[n];
								r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
							}
						}
						return function(t, n, r) {
							return n && e(t.prototype, n), r && e(t, r), t;
						};
					}();
					function i(e, t) {
						if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
					}
					var a = n(658), o = n(548), s = n(657).spectralLayout, c = n(816).coseLayout, l = Object.freeze({
						quality: "default",
						randomize: !0,
						animate: !0,
						animationDuration: 1e3,
						animationEasing: void 0,
						fit: !0,
						padding: 30,
						nodeDimensionsIncludeLabels: !1,
						uniformNodeDimensions: !1,
						packComponents: !0,
						step: "all",
						samplingType: !0,
						sampleSize: 25,
						nodeSeparation: 75,
						piTol: 1e-7,
						nodeRepulsion: function(e) {
							return 4500;
						},
						idealEdgeLength: function(e) {
							return 50;
						},
						edgeElasticity: function(e) {
							return .45;
						},
						nestingFactor: .1,
						gravity: .25,
						numIter: 2500,
						tile: !0,
						tilingCompareBy: void 0,
						tilingPaddingVertical: 10,
						tilingPaddingHorizontal: 10,
						gravityRangeCompound: 1.5,
						gravityCompound: 1,
						gravityRange: 3.8,
						initialEnergyOnIncremental: .3,
						fixedNodeConstraint: void 0,
						alignmentConstraint: void 0,
						relativePlacementConstraint: void 0,
						ready: function() {},
						stop: function() {}
					});
					e.exports = function() {
						function e(t) {
							i(this, e), this.options = a({}, l, t);
						}
						return r(e, [{
							key: "run",
							value: function() {
								var e = this, t = this.options, n = t.cy, r = t.eles, i = [], a = [], l = void 0, u = [];
								t.fixedNodeConstraint && (!Array.isArray(t.fixedNodeConstraint) || t.fixedNodeConstraint.length == 0) && (t.fixedNodeConstraint = void 0), t.alignmentConstraint && (t.alignmentConstraint.vertical && (!Array.isArray(t.alignmentConstraint.vertical) || t.alignmentConstraint.vertical.length == 0) && (t.alignmentConstraint.vertical = void 0), t.alignmentConstraint.horizontal && (!Array.isArray(t.alignmentConstraint.horizontal) || t.alignmentConstraint.horizontal.length == 0) && (t.alignmentConstraint.horizontal = void 0)), t.relativePlacementConstraint && (!Array.isArray(t.relativePlacementConstraint) || t.relativePlacementConstraint.length == 0) && (t.relativePlacementConstraint = void 0), (t.fixedNodeConstraint || t.alignmentConstraint || t.relativePlacementConstraint) && (t.tile = !1, t.packComponents = !1);
								var d = void 0, f = !1;
								if (n.layoutUtilities && t.packComponents && (d = n.layoutUtilities("get"), d ||= n.layoutUtilities(), f = !0), r.nodes().length > 0) if (f) {
									var p = o.getTopMostNodes(t.eles.nodes());
									if (l = o.connectComponents(n, t.eles, p), l.forEach(function(e) {
										var t = e.boundingBox();
										u.push({
											x: t.x1 + t.w / 2,
											y: t.y1 + t.h / 2
										});
									}), t.randomize && l.forEach(function(e) {
										t.eles = e, i.push(s(t));
									}), t.quality == "default" || t.quality == "proof") {
										var m = n.collection();
										if (t.tile) {
											var h = /* @__PURE__ */ new Map(), g = [], _ = [], v = 0, y = {
												nodeIndexes: h,
												xCoords: g,
												yCoords: _
											}, b = [];
											if (l.forEach(function(e, t) {
												e.edges().length == 0 && (e.nodes().forEach(function(t, n) {
													m.merge(e.nodes()[n]), t.isParent() || (y.nodeIndexes.set(e.nodes()[n].id(), v++), y.xCoords.push(e.nodes()[0].position().x), y.yCoords.push(e.nodes()[0].position().y));
												}), b.push(t));
											}), m.length > 1) {
												var x = m.boundingBox();
												u.push({
													x: x.x1 + x.w / 2,
													y: x.y1 + x.h / 2
												}), l.push(m), i.push(y);
												for (var S = b.length - 1; S >= 0; S--) l.splice(b[S], 1), i.splice(b[S], 1), u.splice(b[S], 1);
											}
										}
										l.forEach(function(e, n) {
											t.eles = e, a.push(c(t, i[n])), o.relocateComponent(u[n], a[n], t);
										});
									} else l.forEach(function(e, n) {
										o.relocateComponent(u[n], i[n], t);
									});
									var C = /* @__PURE__ */ new Set();
									if (l.length > 1) {
										var w = [], T = r.filter(function(e) {
											return e.css("display") == "none";
										});
										l.forEach(function(e, n) {
											var r = void 0;
											if (t.quality == "draft" && (r = i[n].nodeIndexes), e.nodes().not(T).length > 0) {
												var s = {};
												s.edges = [], s.nodes = [];
												var c = void 0;
												e.nodes().not(T).forEach(function(e) {
													if (t.quality == "draft") if (!e.isParent()) c = r.get(e.id()), s.nodes.push({
														x: i[n].xCoords[c] - e.boundingbox().w / 2,
														y: i[n].yCoords[c] - e.boundingbox().h / 2,
														width: e.boundingbox().w,
														height: e.boundingbox().h
													});
													else {
														var l = o.calcBoundingBox(e, i[n].xCoords, i[n].yCoords, r);
														s.nodes.push({
															x: l.topLeftX,
															y: l.topLeftY,
															width: l.width,
															height: l.height
														});
													}
													else a[n][e.id()] && s.nodes.push({
														x: a[n][e.id()].getLeft(),
														y: a[n][e.id()].getTop(),
														width: a[n][e.id()].getWidth(),
														height: a[n][e.id()].getHeight()
													});
												}), e.edges().forEach(function(e) {
													var c = e.source(), l = e.target();
													if (c.css("display") != "none" && l.css("display") != "none") if (t.quality == "draft") {
														var u = r.get(c.id()), d = r.get(l.id()), f = [], p = [];
														if (c.isParent()) {
															var m = o.calcBoundingBox(c, i[n].xCoords, i[n].yCoords, r);
															f.push(m.topLeftX + m.width / 2), f.push(m.topLeftY + m.height / 2);
														} else f.push(i[n].xCoords[u]), f.push(i[n].yCoords[u]);
														if (l.isParent()) {
															var h = o.calcBoundingBox(l, i[n].xCoords, i[n].yCoords, r);
															p.push(h.topLeftX + h.width / 2), p.push(h.topLeftY + h.height / 2);
														} else p.push(i[n].xCoords[d]), p.push(i[n].yCoords[d]);
														s.edges.push({
															startX: f[0],
															startY: f[1],
															endX: p[0],
															endY: p[1]
														});
													} else a[n][c.id()] && a[n][l.id()] && s.edges.push({
														startX: a[n][c.id()].getCenterX(),
														startY: a[n][c.id()].getCenterY(),
														endX: a[n][l.id()].getCenterX(),
														endY: a[n][l.id()].getCenterY()
													});
												}), s.nodes.length > 0 && (w.push(s), C.add(n));
											}
										});
										var E = d.packComponents(w, t.randomize).shifts;
										if (t.quality == "draft") i.forEach(function(e, t) {
											var n = e.xCoords.map(function(e) {
												return e + E[t].dx;
											}), r = e.yCoords.map(function(e) {
												return e + E[t].dy;
											});
											e.xCoords = n, e.yCoords = r;
										});
										else {
											var D = 0;
											C.forEach(function(e) {
												Object.keys(a[e]).forEach(function(t) {
													var n = a[e][t];
													n.setCenter(n.getCenterX() + E[D].dx, n.getCenterY() + E[D].dy);
												}), D++;
											});
										}
									}
								} else {
									var O = t.eles.boundingBox();
									if (u.push({
										x: O.x1 + O.w / 2,
										y: O.y1 + O.h / 2
									}), t.randomize) {
										var k = s(t);
										i.push(k);
									}
									t.quality == "default" || t.quality == "proof" ? (a.push(c(t, i[0])), o.relocateComponent(u[0], a[0], t)) : o.relocateComponent(u[0], i[0], t);
								}
								var A = function(e, n) {
									if (t.quality == "default" || t.quality == "proof") {
										typeof e == "number" && (e = n);
										var r = void 0, o = void 0, s = e.data("id");
										return a.forEach(function(e) {
											s in e && (r = {
												x: e[s].getRect().getCenterX(),
												y: e[s].getRect().getCenterY()
											}, o = e[s]);
										}), t.nodeDimensionsIncludeLabels && (o.labelWidth && (o.labelPosHorizontal == "left" ? r.x += o.labelWidth / 2 : o.labelPosHorizontal == "right" && (r.x -= o.labelWidth / 2)), o.labelHeight && (o.labelPosVertical == "top" ? r.y += o.labelHeight / 2 : o.labelPosVertical == "bottom" && (r.y -= o.labelHeight / 2))), r ??= {
											x: e.position("x"),
											y: e.position("y")
										}, {
											x: r.x,
											y: r.y
										};
									} else {
										var c = void 0;
										return i.forEach(function(t) {
											var n = t.nodeIndexes.get(e.id());
											n != null && (c = {
												x: t.xCoords[n],
												y: t.yCoords[n]
											});
										}), c ??= {
											x: e.position("x"),
											y: e.position("y")
										}, {
											x: c.x,
											y: c.y
										};
									}
								};
								if (t.quality == "default" || t.quality == "proof" || t.randomize) {
									var j = o.calcParentsWithoutChildren(n, r), M = r.filter(function(e) {
										return e.css("display") == "none";
									});
									t.eles = r.not(M), r.nodes().not(":parent").not(M).layoutPositions(e, t, A), j.length > 0 && j.forEach(function(e) {
										e.position(A(e));
									});
								} else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.");
							}
						}]), e;
					}();
				}),
				657: ((e, t, n) => {
					var r = n(548), i = n(140).layoutBase.Matrix, a = n(140).layoutBase.SVD;
					e.exports = { spectralLayout: function(e) {
						var t = e.cy, n = e.eles, o = n.nodes(), s = n.nodes(":parent"), c = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), d = [], f = [], p = [], m = [], h = [], g = [], _ = [], v = [], y = void 0, b = 1e8, x = 1e-9, S = e.piTol, C = e.samplingType, w = e.nodeSeparation, T = void 0, E = function() {
							for (var e = 0, t = 0, n = !1; t < T;) {
								e = Math.floor(Math.random() * y), n = !1;
								for (var r = 0; r < t; r++) if (m[r] == e) {
									n = !0;
									break;
								}
								if (!n) m[t] = e, t++;
								else continue;
							}
						}, D = function(e, t, n) {
							for (var r = [], i = 0, a = 0, o = 0, s = void 0, c = [], u = 0, f = 1, p = 0; p < y; p++) c[p] = b;
							for (r[a] = e, c[e] = 0; a >= i;) {
								o = r[i++];
								for (var m = d[o], _ = 0; _ < m.length; _++) s = l.get(m[_]), c[s] == b && (c[s] = c[o] + 1, r[++a] = s);
								g[o][t] = c[o] * w;
							}
							if (n) {
								for (var v = 0; v < y; v++) g[v][t] < h[v] && (h[v] = g[v][t]);
								for (var x = 0; x < y; x++) h[x] > u && (u = h[x], f = x);
							}
							return f;
						}, O = function(e) {
							var t = void 0;
							if (e) {
								t = Math.floor(Math.random() * y);
								for (var n = 0; n < y; n++) h[n] = b;
								for (var r = 0; r < T; r++) m[r] = t, t = D(t, r, e);
							} else {
								E();
								for (var i = 0; i < T; i++) D(m[i], i, e, !1);
							}
							for (var a = 0; a < y; a++) for (var o = 0; o < T; o++) g[a][o] *= g[a][o];
							for (var s = 0; s < T; s++) _[s] = [];
							for (var c = 0; c < T; c++) for (var l = 0; l < T; l++) _[c][l] = g[m[l]][c];
						}, k = function() {
							for (var e = a.svd(_), t = e.S, n = e.U, r = e.V, o = t[0] * t[0] * t[0], s = [], c = 0; c < T; c++) {
								s[c] = [];
								for (var l = 0; l < T; l++) s[c][l] = 0, c == l && (s[c][l] = t[c] / (t[c] * t[c] + o / (t[c] * t[c])));
							}
							v = i.multMat(i.multMat(r, s), i.transpose(n));
						}, A = function() {
							for (var e = void 0, t = void 0, n = [], r = [], a = [], o = [], s = 0; s < y; s++) n[s] = Math.random(), r[s] = Math.random();
							n = i.normalize(n), r = i.normalize(r);
							for (var c = 0, l = x, u = x, d = void 0;;) {
								c++;
								for (var m = 0; m < y; m++) a[m] = n[m];
								if (n = i.multGamma(i.multL(i.multGamma(a), g, v)), e = i.dotProduct(a, n), n = i.normalize(n), l = i.dotProduct(a, n), d = Math.abs(l / u), d <= 1 + S && d >= 1) break;
								u = l;
							}
							for (var h = 0; h < y; h++) a[h] = n[h];
							for (c = 0, u = x;;) {
								c++;
								for (var _ = 0; _ < y; _++) o[_] = r[_];
								if (o = i.minusOp(o, i.multCons(a, i.dotProduct(a, o))), r = i.multGamma(i.multL(i.multGamma(o), g, v)), t = i.dotProduct(o, r), r = i.normalize(r), l = i.dotProduct(o, r), d = Math.abs(l / u), d <= 1 + S && d >= 1) break;
								u = l;
							}
							for (var b = 0; b < y; b++) o[b] = r[b];
							f = i.multCons(a, Math.sqrt(Math.abs(e))), p = i.multCons(o, Math.sqrt(Math.abs(t)));
						};
						r.connectComponents(t, n, r.getTopMostNodes(o), c), s.forEach(function(e) {
							r.connectComponents(t, n, r.getTopMostNodes(e.descendants().intersection(n)), c);
						});
						for (var j = 0, M = 0; M < o.length; M++) o[M].isParent() || l.set(o[M].id(), j++);
						var N = !0, P = !1, F = void 0;
						try {
							for (var I = c.keys()[Symbol.iterator](), L; !(N = (L = I.next()).done); N = !0) {
								var R = L.value;
								l.set(R, j++);
							}
						} catch (e) {
							P = !0, F = e;
						} finally {
							try {
								!N && I.return && I.return();
							} finally {
								if (P) throw F;
							}
						}
						for (var z = 0; z < l.size; z++) d[z] = [];
						s.forEach(function(e) {
							for (var t = e.children().intersection(n); t.nodes(":childless").length == 0;) t = t.nodes()[0].children().intersection(n);
							var r = 0, i = t.nodes(":childless")[0].connectedEdges().length;
							t.nodes(":childless").forEach(function(e, t) {
								e.connectedEdges().length < i && (i = e.connectedEdges().length, r = t);
							}), u.set(e.id(), t.nodes(":childless")[r].id());
						}), o.forEach(function(e) {
							var t = void 0;
							t = e.isParent() ? l.get(u.get(e.id())) : l.get(e.id()), e.neighborhood().nodes().forEach(function(r) {
								n.intersection(e.edgesWith(r)).length > 0 && (r.isParent() ? d[t].push(u.get(r.id())) : d[t].push(r.id()));
							});
						});
						var B = function(e) {
							var n = l.get(e), r = void 0;
							c.get(e).forEach(function(i) {
								r = t.getElementById(i).isParent() ? u.get(i) : i, d[n].push(r), d[l.get(r)].push(e);
							});
						}, V = !0, H = !1, U = void 0;
						try {
							for (var W = c.keys()[Symbol.iterator](), G; !(V = (G = W.next()).done); V = !0) {
								var K = G.value;
								B(K);
							}
						} catch (e) {
							H = !0, U = e;
						} finally {
							try {
								!V && W.return && W.return();
							} finally {
								if (H) throw U;
							}
						}
						y = l.size;
						var q = void 0;
						if (y > 2) {
							T = y < e.sampleSize ? y : e.sampleSize;
							for (var J = 0; J < y; J++) g[J] = [];
							for (var Y = 0; Y < T; Y++) v[Y] = [];
							return e.quality == "draft" || e.step == "all" ? (O(C), k(), A(), q = {
								nodeIndexes: l,
								xCoords: f,
								yCoords: p
							}) : (l.forEach(function(e, n) {
								f.push(t.getElementById(n).position("x")), p.push(t.getElementById(n).position("y"));
							}), q = {
								nodeIndexes: l,
								xCoords: f,
								yCoords: p
							}), q;
						} else {
							var X = l.keys(), Z = t.getElementById(X.next().value), Q = Z.position(), $ = Z.outerWidth();
							if (f.push(Q.x), p.push(Q.y), y == 2) {
								var ee = t.getElementById(X.next().value).outerWidth();
								f.push(Q.x + $ / 2 + ee / 2 + e.idealEdgeLength), p.push(Q.y);
							}
							return q = {
								nodeIndexes: l,
								xCoords: f,
								yCoords: p
							}, q;
						}
					} };
				}),
				579: ((e, t, n) => {
					var r = n(212), i = function(e) {
						e && e("layout", "fcose", r);
					};
					typeof cytoscape < "u" && i(cytoscape), e.exports = i;
				}),
				140: ((t) => {
					t.exports = e;
				})
			}, n = {};
			function r(e) {
				var i = n[e];
				if (i !== void 0) return i.exports;
				var a = n[e] = { exports: {} };
				return t[e](a, a.exports, r), a.exports;
			}
			return r(579);
		})();
	});
}));
export default require_cytoscape_fcose();
export { require_cytoscape_fcose };
