//#region lib/components/ui/atoms/compute-flow-paths.ts
var e = 50, t = 0, n = 50, r = 14, i = 8, a = 88, o = {
	1: 0,
	2: 56,
	3: 72,
	4: 80
};
function s({ count: a, side: o }) {
	if (a <= 0) return [];
	let s = l(a, c(a)), d = l(a, t);
	return s.map((t, a) => {
		let s = d[a] ?? e;
		return o === "left" ? `M 0 ${u(t)} L ${i} ${u(t)} C 22 ${u(t)} ${100 - n} ${u(s)} 100 ${u(s)}` : `M 0 ${u(s)} C ${n} ${u(s)} ${100 - i - r} ${u(t)} ${100 - i} ${u(t)} L 100 ${u(t)}`;
	});
}
function c(e) {
	return o[e] ?? a;
}
function l(t, n) {
	if (t <= 0) return [];
	if (t === 1) return [e];
	let r = n / (t - 1);
	return Array.from({ length: t }, (n, i) => e + (i - (t - 1) / 2) * r);
}
function u(e) {
	return Number(e.toFixed(2)).toString();
}
//#endregion
export { s as computeFlowPaths };
