import { g as e, h as t, p as n } from "./src-CUQ6oOYk.js";
import { C as r, D as i, E as a, O as o, S as s, T as c, _ as l, b as u, h as d, v as f, w as p, x as m, y as h } from "./chunk-GEFDOKGD-BWpC-zoH.js";
import { b as g, w as _ } from "./chunk-7R4GIKGN-QT6IorJ_.js";
import { t as v } from "./line-Cu9NTacD.js";
import { n as y } from "./chunk-PU5JKC2W-DdP8BS-S.js";
import { i as b, n as x, r as S, t as C } from "./chunk-MX3YWQON-BxE-Aq9c.js";
import { n as w } from "./chunk-YBOYWFTD-CvaddD9G.js";
import { i as T, n as E } from "./chunk-PQ6SQG4A-D3jtNCWN.js";
import { t as D } from "./rough.esm-BhGP2Udb.js";
import { r as O } from "./chunk-KYZI473N-BHJ3T5Zv.js";
//#region ../../node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-O4XLMI2P.mjs
var ee = /* @__PURE__ */ t((e, t, n, r, i, a) => {
	t.arrowTypeStart && A(e, "start", t.arrowTypeStart, n, r, i, a), t.arrowTypeEnd && A(e, "end", t.arrowTypeEnd, n, r, i, a);
}, "addEdgeMarkers"), k = {
	arrow_cross: {
		type: "cross",
		fill: !1
	},
	arrow_point: {
		type: "point",
		fill: !0
	},
	arrow_barb: {
		type: "barb",
		fill: !0
	},
	arrow_circle: {
		type: "circle",
		fill: !1
	},
	aggregation: {
		type: "aggregation",
		fill: !1
	},
	extension: {
		type: "extension",
		fill: !1
	},
	composition: {
		type: "composition",
		fill: !0
	},
	dependency: {
		type: "dependency",
		fill: !0
	},
	lollipop: {
		type: "lollipop",
		fill: !1
	},
	only_one: {
		type: "onlyOne",
		fill: !1
	},
	zero_or_one: {
		type: "zeroOrOne",
		fill: !1
	},
	one_or_more: {
		type: "oneOrMore",
		fill: !1
	},
	zero_or_more: {
		type: "zeroOrMore",
		fill: !1
	},
	requirement_arrow: {
		type: "requirement_arrow",
		fill: !1
	},
	requirement_contains: {
		type: "requirement_contains",
		fill: !1
	}
}, A = /* @__PURE__ */ t((t, n, r, i, a, o, s) => {
	let c = k[r];
	if (!c) {
		e.warn(`Unknown arrow type: ${r}`);
		return;
	}
	let l = `${a}_${o}-${c.type}${n === "start" ? "Start" : "End"}`;
	if (s && s.trim() !== "") {
		let e = `${l}_${s.replace(/[^\dA-Za-z]/g, "_")}`;
		if (!document.getElementById(e)) {
			let t = document.getElementById(l);
			if (t) {
				let n = t.cloneNode(!0);
				n.id = e, n.querySelectorAll("path, circle, line").forEach((e) => {
					e.setAttribute("stroke", s), c.fill && e.setAttribute("fill", s);
				}), t.parentNode?.appendChild(n);
			}
		}
		t.attr(`marker-${n}`, `url(${i}#${e})`);
	} else t.attr(`marker-${n}`, `url(${i}#${l})`);
}, "addEdgeMarker"), te = /* @__PURE__ */ t((e) => typeof e == "string" ? e : g()?.flowchart?.curve, "resolveEdgeCurveType"), j = /* @__PURE__ */ new Map(), M = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ t(() => {
	j.clear(), M.clear();
}, "clear"), P = /* @__PURE__ */ t((e) => e ? typeof e == "string" ? e : e.reduce((e, t) => e + ";" + t, "") : "", "getLabelStyles"), F = /* @__PURE__ */ t(async (t, r) => {
	let i = g(), a = _(i), { labelStyles: o } = T(r);
	r.labelStyle = o;
	let s = t.insert("g").attr("class", "edgeLabel"), c = s.insert("g").attr("class", "label").attr("data-id", r.id), l = r.labelType === "markdown", u = await y(t, r.label, {
		style: P(r.labelStyle),
		useHtmlLabels: a,
		addSvgBackground: !0,
		isNode: !1,
		markdown: l,
		width: void 0
	}, i);
	c.node().appendChild(u), e.info("abc82", r, r.labelType);
	let d = u.getBBox(), f = d;
	if (a) {
		let e = u.children[0], t = n(u);
		d = e.getBoundingClientRect(), f = d, t.attr("width", d.width), t.attr("height", d.height);
	} else {
		let e = n(u).select("text").node();
		e && typeof e.getBBox == "function" && (f = e.getBBox());
	}
	c.attr("transform", C(f, a)), j.set(r.id, s), r.width = d.width, r.height = d.height;
	let p;
	if (r.startLabelLeft) {
		let e = t.insert("g").attr("class", "edgeTerminals"), i = e.insert("g").attr("class", "inner"), o = await O(i, r.startLabelLeft, P(r.labelStyle) || "", !1, !1);
		p = o;
		let s = o.getBBox();
		if (a) {
			let e = o.children[0], t = n(o);
			s = e.getBoundingClientRect(), t.attr("width", s.width), t.attr("height", s.height);
		}
		i.attr("transform", C(s, a)), M.get(r.id) || M.set(r.id, {}), M.get(r.id).startLeft = e, I(p, r.startLabelLeft);
	}
	if (r.startLabelRight) {
		let e = t.insert("g").attr("class", "edgeTerminals"), i = e.insert("g").attr("class", "inner"), o = await O(i, r.startLabelRight, P(r.labelStyle) || "", !1, !1);
		p = o, i.node().appendChild(o);
		let s = o.getBBox();
		if (a) {
			let e = o.children[0], t = n(o);
			s = e.getBoundingClientRect(), t.attr("width", s.width), t.attr("height", s.height);
		}
		i.attr("transform", C(s, a)), M.get(r.id) || M.set(r.id, {}), M.get(r.id).startRight = e, I(p, r.startLabelRight);
	}
	if (r.endLabelLeft) {
		let e = t.insert("g").attr("class", "edgeTerminals"), i = e.insert("g").attr("class", "inner"), o = await O(i, r.endLabelLeft, P(r.labelStyle) || "", !1, !1);
		p = o;
		let s = o.getBBox();
		if (a) {
			let e = o.children[0], t = n(o);
			s = e.getBoundingClientRect(), t.attr("width", s.width), t.attr("height", s.height);
		}
		i.attr("transform", C(s, a)), e.node().appendChild(o), M.get(r.id) || M.set(r.id, {}), M.get(r.id).endLeft = e, I(p, r.endLabelLeft);
	}
	if (r.endLabelRight) {
		let e = t.insert("g").attr("class", "edgeTerminals"), i = e.insert("g").attr("class", "inner"), o = await O(i, r.endLabelRight, P(r.labelStyle) || "", !1, !1);
		p = o;
		let s = o.getBBox();
		if (a) {
			let e = o.children[0], t = n(o);
			s = e.getBoundingClientRect(), t.attr("width", s.width), t.attr("height", s.height);
		}
		i.attr("transform", C(s, a)), e.node().appendChild(o), M.get(r.id) || M.set(r.id, {}), M.get(r.id).endRight = e, I(p, r.endLabelRight);
	}
	return u;
}, "insertEdgeLabel");
function I(e, t) {
	_(g()) && e && (e.style.width = t.length * 9 + "px", e.style.height = "12px");
}
t(I, "setTerminalWidth");
var L = /* @__PURE__ */ t((t, n) => {
	e.debug("Moving label abc88 ", t.id, t.label, j.get(t.id), n);
	let r = n.updatedPath ? n.updatedPath : n.originalPath, { subGraphTitleTotalMargin: i } = w(g());
	if (t.label) {
		let a = j.get(t.id), o = t.x, s = t.y;
		if (r) {
			let i = d.calcLabelPosition(r);
			e.debug("Moving label " + t.label + " from (", o, ",", s, ") to (", i.x, ",", i.y, ") abc88"), n.updatedPath && (o = i.x, s = i.y);
		}
		a.attr("transform", `translate(${o}, ${s + i / 2})`);
	}
	if (t.startLabelLeft) {
		let e = M.get(t.id).startLeft, n = t.x, i = t.y;
		if (r) {
			let e = d.calcTerminalLabelPosition(t.arrowTypeStart ? 10 : 0, "start_left", r);
			n = e.x, i = e.y;
		}
		e.attr("transform", `translate(${n}, ${i})`);
	}
	if (t.startLabelRight) {
		let e = M.get(t.id).startRight, n = t.x, i = t.y;
		if (r) {
			let e = d.calcTerminalLabelPosition(t.arrowTypeStart ? 10 : 0, "start_right", r);
			n = e.x, i = e.y;
		}
		e.attr("transform", `translate(${n}, ${i})`);
	}
	if (t.endLabelLeft) {
		let e = M.get(t.id).endLeft, n = t.x, i = t.y;
		if (r) {
			let e = d.calcTerminalLabelPosition(t.arrowTypeEnd ? 10 : 0, "end_left", r);
			n = e.x, i = e.y;
		}
		e.attr("transform", `translate(${n}, ${i})`);
	}
	if (t.endLabelRight) {
		let e = M.get(t.id).endRight, n = t.x, i = t.y;
		if (r) {
			let e = d.calcTerminalLabelPosition(t.arrowTypeEnd ? 10 : 0, "end_right", r);
			n = e.x, i = e.y;
		}
		e.attr("transform", `translate(${n}, ${i})`);
	}
}, "positionEdgeLabel"), R = /* @__PURE__ */ t((e, t) => {
	let n = e.x, r = e.y, i = Math.abs(t.x - n), a = Math.abs(t.y - r), o = e.width / 2, s = e.height / 2;
	return i >= o || a >= s;
}, "outsideNode"), z = /* @__PURE__ */ t((t, n, r) => {
	e.debug(`intersection calc abc89:
  outsidePoint: ${JSON.stringify(n)}
  insidePoint : ${JSON.stringify(r)}
  node        : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);
	let i = t.x, a = t.y, o = Math.abs(i - r.x), s = t.width / 2, c = r.x < n.x ? s - o : s + o, l = t.height / 2, u = Math.abs(n.y - r.y), d = Math.abs(n.x - r.x);
	if (Math.abs(a - n.y) * s > Math.abs(i - n.x) * l) {
		let t = r.y < n.y ? n.y - l - a : a - l - n.y;
		c = d * t / u;
		let i = {
			x: r.x < n.x ? r.x + c : r.x - d + c,
			y: r.y < n.y ? r.y + u - t : r.y - u + t
		};
		return c === 0 && (i.x = n.x, i.y = n.y), d === 0 && (i.x = n.x), u === 0 && (i.y = n.y), e.debug(`abc89 top/bottom calc, Q ${u}, q ${t}, R ${d}, r ${c}`, i), i;
	} else {
		c = r.x < n.x ? n.x - s - i : i - s - n.x;
		let t = u * c / d, a = r.x < n.x ? r.x + d - c : r.x - d + c, o = r.y < n.y ? r.y + t : r.y - t;
		return e.debug(`sides calc abc89, Q ${u}, q ${t}, R ${d}, r ${c}`, {
			_x: a,
			_y: o
		}), c === 0 && (a = n.x, o = n.y), d === 0 && (a = n.x), u === 0 && (o = n.y), {
			x: a,
			y: o
		};
	}
}, "intersection"), B = /* @__PURE__ */ t((t, n) => {
	e.warn("abc88 cutPathAtIntersect", t, n);
	let r = [], i = t[0], a = !1;
	return t.forEach((t) => {
		if (e.info("abc88 checking point", t, n), !R(n, t) && !a) {
			let o = z(n, i, t);
			e.debug("abc88 inside", t, i, o), e.debug("abc88 intersection", o, n);
			let s = !1;
			r.forEach((e) => {
				s ||= e.x === o.x && e.y === o.y;
			}), r.some((e) => e.x === o.x && e.y === o.y) ? e.warn("abc88 no intersect", o, r) : r.push(o), a = !0;
		} else e.warn("abc88 outside", t, i), i = t, a || r.push(t);
	}), e.debug("returning points", r), r;
}, "cutPathAtIntersect");
function V(e) {
	let t = [], n = [];
	for (let r = 1; r < e.length - 1; r++) {
		let i = e[r - 1], a = e[r], o = e[r + 1];
		(i.x === a.x && a.y === o.y && Math.abs(a.x - o.x) > 5 && Math.abs(a.y - i.y) > 5 || i.y === a.y && a.x === o.x && Math.abs(a.x - i.x) > 5 && Math.abs(a.y - o.y) > 5) && (t.push(a), n.push(r));
	}
	return {
		cornerPoints: t,
		cornerPointPositions: n
	};
}
t(V, "extractCornerPoints");
var H = /* @__PURE__ */ t(function(e, t, n) {
	let r = t.x - e.x, i = t.y - e.y, a = n / Math.sqrt(r * r + i * i);
	return {
		x: t.x - a * r,
		y: t.y - a * i
	};
}, "findAdjacentPoint"), ne = /* @__PURE__ */ t(function(t) {
	let { cornerPointPositions: n } = V(t), r = [];
	for (let i = 0; i < t.length; i++) if (n.includes(i)) {
		let n = t[i - 1], a = t[i + 1], o = t[i], s = H(n, o, 5), c = H(a, o, 5), l = c.x - s.x, u = c.y - s.y;
		r.push(s);
		let d = Math.sqrt(2) * 2, f = {
			x: o.x,
			y: o.y
		};
		Math.abs(a.x - n.x) > 10 && Math.abs(a.y - n.y) >= 10 ? (e.debug("Corner point fixing", Math.abs(a.x - n.x), Math.abs(a.y - n.y)), f = o.x === s.x ? {
			x: l < 0 ? s.x - 5 + d : s.x + 5 - d,
			y: u < 0 ? s.y - d : s.y + d
		} : {
			x: l < 0 ? s.x - d : s.x + d,
			y: u < 0 ? s.y - 5 + d : s.y + 5 - d
		}) : e.debug("Corner point skipping fixing", Math.abs(a.x - n.x), Math.abs(a.y - n.y)), r.push(f, c);
	} else r.push(t[i]);
	return r;
}, "fixCorners"), re = /* @__PURE__ */ t((e, t, n) => {
	let r = e - t - n, i = Math.floor(r / 4);
	return `0 ${t} ${Array(i).fill("2 2").join(" ")} ${n}`;
}, "generateDashArray"), U = /* @__PURE__ */ t(function(t, _, y, S, C, w, T, O = !1) {
	let { handDrawnSeed: k } = g(), A = _.points, j = !1, M = C;
	var N = w;
	let P = [];
	for (let e in _.cssCompiledStyles) E(e) || P.push(_.cssCompiledStyles[e]);
	e.debug("UIO intersect check", _.points, N.x, M.x), N.intersect && M.intersect && !O && (A = A.slice(1, _.points.length - 1), A.unshift(M.intersect(A[0])), e.debug("Last point UIO", _.start, "-->", _.end, A[A.length - 1], N, N.intersect(A[A.length - 1])), A.push(N.intersect(A[A.length - 1])));
	let F = btoa(JSON.stringify(A));
	_.toCluster && (e.info("to cluster abc88", y.get(_.toCluster)), A = B(_.points, y.get(_.toCluster).node), j = !0), _.fromCluster && (e.debug("from cluster abc88", y.get(_.fromCluster), JSON.stringify(A, null, 2)), A = B(A.reverse(), y.get(_.fromCluster).node).reverse(), j = !0);
	let I = A.filter((e) => !Number.isNaN(e.y)), L = te(_.curve);
	L !== "rounded" && (I = ne(I));
	let R = o;
	switch (L) {
		case "linear":
			R = o;
			break;
		case "basis":
			R = c;
			break;
		case "cardinal":
			R = p;
			break;
		case "bumpX":
			R = a;
			break;
		case "bumpY":
			R = i;
			break;
		case "catmullRom":
			R = r;
			break;
		case "monotoneX":
			R = m;
			break;
		case "monotoneY":
			R = s;
			break;
		case "natural":
			R = u;
			break;
		case "step":
			R = h;
			break;
		case "stepAfter":
			R = l;
			break;
		case "stepBefore":
			R = f;
			break;
		case "rounded":
			R = o;
			break;
		default: R = c;
	}
	let { x: z, y: V } = x(_), H = v().x(z).y(V).curve(R), U;
	switch (_.thickness) {
		case "normal":
			U = "edge-thickness-normal";
			break;
		case "thick":
			U = "edge-thickness-thick";
			break;
		case "invisible":
			U = "edge-thickness-invisible";
			break;
		default: U = "edge-thickness-normal";
	}
	switch (_.pattern) {
		case "solid":
			U += " edge-pattern-solid";
			break;
		case "dotted":
			U += " edge-pattern-dotted";
			break;
		case "dashed":
			U += " edge-pattern-dashed";
			break;
		default: U += " edge-pattern-solid";
	}
	let G, q = L === "rounded" ? W(K(I, _), 5) : H(I), J = Array.isArray(_.style) ? _.style : [_.style], Y = J.find((e) => e?.startsWith("stroke:")), X = "";
	_.animate && (X = "edge-animation-fast"), _.animation && (X = "edge-animation-" + _.animation);
	let Z = !1;
	if (_.look === "handDrawn") {
		let e = D.svg(t);
		Object.assign([], I);
		let r = e.path(q, {
			roughness: .3,
			seed: k
		});
		U += " transition", G = n(r).select("path").attr("id", _.id).attr("class", " " + U + (_.classes ? " " + _.classes : "") + (X ? " " + X : "")).attr("style", J ? J.reduce((e, t) => e + ";" + t, "") : "");
		let i = G.attr("d");
		G.attr("d", i), t.node().appendChild(G.node());
	} else {
		let e = P.join(";"), n = J ? J.reduce((e, t) => e + t + ";", "") : "", r = (e ? e + ";" + n + ";" : n) + ";" + (J ? J.reduce((e, t) => e + ";" + t, "") : "");
		G = t.append("path").attr("d", q).attr("id", _.id).attr("class", " " + U + (_.classes ? " " + _.classes : "") + (X ? " " + X : "")).attr("style", r), Y = r.match(/stroke:([^;]+)/)?.[1], Z = _.animate === !0 || !!_.animation || e.includes("animation");
		let i = G.node(), a = typeof i.getTotalLength == "function" ? i.getTotalLength() : 0, o = b[_.arrowTypeStart] || 0, s = b[_.arrowTypeEnd] || 0;
		if (_.look === "neo" && !Z) {
			let e = `stroke-dasharray: ${_.pattern === "dotted" || _.pattern === "dashed" ? re(a, o, s) : `0 ${o} ${a - o - s} ${s}`}; stroke-dashoffset: 0;`;
			G.attr("style", e + G.attr("style"));
		}
	}
	G.attr("data-edge", !0), G.attr("data-et", "edge"), G.attr("data-id", _.id), G.attr("data-points", F), _.showPoints && I.forEach((e) => {
		t.append("circle").style("stroke", "red").style("fill", "red").attr("r", 1).attr("cx", e.x).attr("cy", e.y);
	});
	let Q = "";
	(g().flowchart.arrowMarkerAbsolute || g().state.arrowMarkerAbsolute) && (Q = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, Q = Q.replace(/\(/g, "\\(").replace(/\)/g, "\\)")), e.info("arrowTypeStart", _.arrowTypeStart), e.info("arrowTypeEnd", _.arrowTypeEnd), ee(G, _, Q, T, S, Y);
	let ie = Math.floor(A.length / 2), ae = A[ie];
	d.isLabelCoordinateInPath(ae, G.attr("d")) || (j = !0);
	let $ = {};
	return j && ($.updatedPath = A), $.originalPath = _.points, $;
}, "insertEdge");
function W(e, t) {
	if (e.length < 2) return "";
	let n = "", r = e.length, i = 1e-5;
	for (let a = 0; a < r; a++) {
		let o = e[a], s = e[a - 1], c = e[a + 1];
		if (a === 0) n += `M${o.x},${o.y}`;
		else if (a === r - 1) n += `L${o.x},${o.y}`;
		else {
			let e = o.x - s.x, r = o.y - s.y, a = c.x - o.x, l = c.y - o.y, u = Math.hypot(e, r), d = Math.hypot(a, l);
			if (u < i || d < i) {
				n += `L${o.x},${o.y}`;
				continue;
			}
			let f = e / u, p = r / u, m = a / d, h = l / d, g = f * m + p * h, _ = Math.acos(Math.max(-1, Math.min(1, g)));
			if (_ < i || Math.abs(Math.PI - _) < i) {
				n += `L${o.x},${o.y}`;
				continue;
			}
			let v = Math.min(t / Math.sin(_ / 2), u / 2, d / 2), y = o.x - f * v, b = o.y - p * v, x = o.x + m * v, S = o.y + h * v;
			n += `L${y},${b}`, n += `Q${o.x},${o.y} ${x},${S}`;
		}
	}
	return n;
}
t(W, "generateRoundedPath");
function G(e, t) {
	if (!e || !t) return {
		angle: 0,
		deltaX: 0,
		deltaY: 0
	};
	let n = t.x - e.x, r = t.y - e.y;
	return {
		angle: Math.atan2(r, n),
		deltaX: n,
		deltaY: r
	};
}
t(G, "calculateDeltaAndAngle");
function K(e, t) {
	let n = e.map((e) => ({ ...e }));
	if (e.length >= 2 && S[t.arrowTypeStart]) {
		let r = S[t.arrowTypeStart], i = e[0], a = e[1], { angle: o } = G(i, a), s = r * Math.cos(o), c = r * Math.sin(o);
		n[0].x = i.x + s, n[0].y = i.y + c;
	}
	let r = e.length;
	if (r >= 2 && S[t.arrowTypeEnd]) {
		let i = S[t.arrowTypeEnd], a = e[r - 1], o = e[r - 2], { angle: s } = G(o, a), c = i * Math.cos(s), l = i * Math.sin(s);
		n[r - 1].x = a.x - c, n[r - 1].y = a.y - l;
	}
	return n;
}
t(K, "applyMarkerOffsetsToPoints");
var q = /* @__PURE__ */ t((e, t, n, r) => {
	t.forEach((t) => {
		J[t](e, n, r);
	});
}, "insertMarkers"), J = {
	extension: /* @__PURE__ */ t((t, n, r) => {
		e.trace("Making markers for ", r), t.append("defs").append("marker").attr("id", r + "_" + n + "-extensionStart").attr("class", "marker extension " + n).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), t.append("defs").append("marker").attr("id", r + "_" + n + "-extensionEnd").attr("class", "marker extension " + n).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z");
	}, "extension"),
	composition: /* @__PURE__ */ t((e, t, n) => {
		e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionStart").attr("class", "marker composition " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionEnd").attr("class", "marker composition " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
	}, "composition"),
	aggregation: /* @__PURE__ */ t((e, t, n) => {
		e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationStart").attr("class", "marker aggregation " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationEnd").attr("class", "marker aggregation " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
	}, "aggregation"),
	dependency: /* @__PURE__ */ t((e, t, n) => {
		e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyStart").attr("class", "marker dependency " + t).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyEnd").attr("class", "marker dependency " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
	}, "dependency"),
	lollipop: /* @__PURE__ */ t((e, t, n) => {
		e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopStart").attr("class", "marker lollipop " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopEnd").attr("class", "marker lollipop " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6);
	}, "lollipop"),
	point: /* @__PURE__ */ t((e, t, n) => {
		e.append("marker").attr("id", n + "_" + t + "-pointEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 8).attr("markerHeight", 8).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-pointStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 8).attr("markerHeight", 8).attr("orient", "auto").append("path").attr("d", "M 0 5 L 10 10 L 10 0 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
	}, "point"),
	circle: /* @__PURE__ */ t((e, t, n) => {
		e.append("marker").attr("id", n + "_" + t + "-circleEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 11).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-circleStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", -1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
	}, "circle"),
	cross: /* @__PURE__ */ t((e, t, n) => {
		e.append("marker").attr("id", n + "_" + t + "-crossEnd").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", 12).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-crossStart").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", -1).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0");
	}, "cross"),
	barb: /* @__PURE__ */ t((e, t, n) => {
		e.append("defs").append("marker").attr("id", n + "_" + t + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
	}, "barb"),
	only_one: /* @__PURE__ */ t((e, t, n) => {
		e.append("defs").append("marker").attr("id", n + "_" + t + "-onlyOneStart").attr("class", "marker onlyOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("d", "M9,0 L9,18 M15,0 L15,18"), e.append("defs").append("marker").attr("id", n + "_" + t + "-onlyOneEnd").attr("class", "marker onlyOne " + t).attr("refX", 18).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("d", "M3,0 L3,18 M9,0 L9,18");
	}, "only_one"),
	zero_or_one: /* @__PURE__ */ t((e, t, n) => {
		let r = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneStart").attr("class", "marker zeroOrOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto");
		r.append("circle").attr("fill", "white").attr("cx", 21).attr("cy", 9).attr("r", 6), r.append("path").attr("d", "M9,0 L9,18");
		let i = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneEnd").attr("class", "marker zeroOrOne " + t).attr("refX", 30).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto");
		i.append("circle").attr("fill", "white").attr("cx", 9).attr("cy", 9).attr("r", 6), i.append("path").attr("d", "M21,0 L21,18");
	}, "zero_or_one"),
	one_or_more: /* @__PURE__ */ t((e, t, n) => {
		e.append("defs").append("marker").attr("id", n + "_" + t + "-oneOrMoreStart").attr("class", "marker oneOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("d", "M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"), e.append("defs").append("marker").attr("id", n + "_" + t + "-oneOrMoreEnd").attr("class", "marker oneOrMore " + t).attr("refX", 27).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("d", "M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18");
	}, "one_or_more"),
	zero_or_more: /* @__PURE__ */ t((e, t, n) => {
		let r = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreStart").attr("class", "marker zeroOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto");
		r.append("circle").attr("fill", "white").attr("cx", 48).attr("cy", 18).attr("r", 6), r.append("path").attr("d", "M0,18 Q18,0 36,18 Q18,36 0,18");
		let i = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreEnd").attr("class", "marker zeroOrMore " + t).attr("refX", 39).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto");
		i.append("circle").attr("fill", "white").attr("cx", 9).attr("cy", 18).attr("r", 6), i.append("path").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18");
	}, "zero_or_more"),
	requirement_arrow: /* @__PURE__ */ t((e, t, n) => {
		e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_arrowEnd").attr("refX", 20).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").append("path").attr("d", "M0,0\n      L20,10\n      M20,10\n      L0,20");
	}, "requirement_arrow"),
	requirement_contains: /* @__PURE__ */ t((e, t, n) => {
		let r = e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_containsStart").attr("refX", 0).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").append("g");
		r.append("circle").attr("cx", 10).attr("cy", 10).attr("r", 9).attr("fill", "none"), r.append("line").attr("x1", 1).attr("x2", 19).attr("y1", 10).attr("y2", 10), r.append("line").attr("y1", 1).attr("y2", 19).attr("x1", 10).attr("x2", 10);
	}, "requirement_contains")
}, Y = q;
//#endregion
export { L as a, Y as i, U as n, F as r, N as t };
