import { l as e, n as t, o as n, r, t as i } from "./src-BZm6Awwh.js";
import { t as a } from "./init-DcYXQL-k.js";
//#region ../../node_modules/d3-array/src/ascending.js
function o(e, t) {
	return e == null || t == null ? NaN : e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
}
//#endregion
//#region ../../node_modules/d3-array/src/descending.js
function s(e, t) {
	return e == null || t == null ? NaN : t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
}
//#endregion
//#region ../../node_modules/d3-array/src/bisector.js
function c(e) {
	let t, n, r;
	e.length === 2 ? (t = e === o || e === s ? e : l, n = e, r = e) : (t = o, n = (t, n) => o(e(t), n), r = (t, n) => e(t) - n);
	function i(e, r, i = 0, a = e.length) {
		if (i < a) {
			if (t(r, r) !== 0) return a;
			do {
				let t = i + a >>> 1;
				n(e[t], r) < 0 ? i = t + 1 : a = t;
			} while (i < a);
		}
		return i;
	}
	function a(e, r, i = 0, a = e.length) {
		if (i < a) {
			if (t(r, r) !== 0) return a;
			do {
				let t = i + a >>> 1;
				n(e[t], r) <= 0 ? i = t + 1 : a = t;
			} while (i < a);
		}
		return i;
	}
	function c(e, t, n = 0, a = e.length) {
		let o = i(e, t, n, a - 1);
		return o > n && r(e[o - 1], t) > -r(e[o], t) ? o - 1 : o;
	}
	return {
		left: i,
		center: c,
		right: a
	};
}
function l() {
	return 0;
}
//#endregion
//#region ../../node_modules/d3-array/src/number.js
function u(e) {
	return e === null ? NaN : +e;
}
//#endregion
//#region ../../node_modules/d3-array/src/bisect.js
var d = c(o), f = d.right;
d.left, c(u).center;
//#endregion
//#region ../../node_modules/d3-array/src/ticks.js
var p = Math.sqrt(50), m = Math.sqrt(10), h = Math.sqrt(2);
function g(e, t, n) {
	let r = (t - e) / Math.max(0, n), i = Math.floor(Math.log10(r)), a = r / 10 ** i, o = a >= p ? 10 : a >= m ? 5 : a >= h ? 2 : 1, s, c, l;
	return i < 0 ? (l = 10 ** -i / o, s = Math.round(e * l), c = Math.round(t * l), s / l < e && ++s, c / l > t && --c, l = -l) : (l = 10 ** i * o, s = Math.round(e / l), c = Math.round(t / l), s * l < e && ++s, c * l > t && --c), c < s && .5 <= n && n < 2 ? g(e, t, n * 2) : [
		s,
		c,
		l
	];
}
function _(e, t, n) {
	if (t = +t, e = +e, n = +n, !(n > 0)) return [];
	if (e === t) return [e];
	let r = t < e, [i, a, o] = r ? g(t, e, n) : g(e, t, n);
	if (!(a >= i)) return [];
	let s = a - i + 1, c = Array(s);
	if (r) if (o < 0) for (let e = 0; e < s; ++e) c[e] = (a - e) / -o;
	else for (let e = 0; e < s; ++e) c[e] = (a - e) * o;
	else if (o < 0) for (let e = 0; e < s; ++e) c[e] = (i + e) / -o;
	else for (let e = 0; e < s; ++e) c[e] = (i + e) * o;
	return c;
}
function v(e, t, n) {
	return t = +t, e = +e, n = +n, g(e, t, n)[2];
}
function y(e, t, n) {
	t = +t, e = +e, n = +n;
	let r = t < e, i = r ? v(t, e, n) : v(e, t, n);
	return (r ? -1 : 1) * (i < 0 ? 1 / -i : i);
}
//#endregion
//#region ../../node_modules/d3-interpolate/src/numberArray.js
function b(e, t) {
	t ||= [];
	var n = e ? Math.min(t.length, e.length) : 0, r = t.slice(), i;
	return function(a) {
		for (i = 0; i < n; ++i) r[i] = e[i] * (1 - a) + t[i] * a;
		return r;
	};
}
function x(e) {
	return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
//#endregion
//#region ../../node_modules/d3-interpolate/src/array.js
function S(e, t) {
	var n = t ? t.length : 0, r = e ? Math.min(n, e.length) : 0, i = Array(r), a = Array(n), o;
	for (o = 0; o < r; ++o) i[o] = T(e[o], t[o]);
	for (; o < n; ++o) a[o] = t[o];
	return function(e) {
		for (o = 0; o < r; ++o) a[o] = i[o](e);
		return a;
	};
}
//#endregion
//#region ../../node_modules/d3-interpolate/src/date.js
function C(e, t) {
	var n = /* @__PURE__ */ new Date();
	return e = +e, t = +t, function(r) {
		return n.setTime(e * (1 - r) + t * r), n;
	};
}
//#endregion
//#region ../../node_modules/d3-interpolate/src/object.js
function w(e, t) {
	var n = {}, r = {}, i;
	for (i in (typeof e != "object" || !e) && (e = {}), (typeof t != "object" || !t) && (t = {}), t) i in e ? n[i] = T(e[i], t[i]) : r[i] = t[i];
	return function(e) {
		for (i in n) r[i] = n[i](e);
		return r;
	};
}
//#endregion
//#region ../../node_modules/d3-interpolate/src/value.js
function T(a, o) {
	var s = typeof o, c;
	return o == null || s === "boolean" ? n(o) : (s === "number" ? t : s === "string" ? (c = e(o)) ? (o = c, r) : i : o instanceof e ? r : o instanceof Date ? C : x(o) ? b : Array.isArray(o) ? S : typeof o.valueOf != "function" && typeof o.toString != "function" || isNaN(o) ? w : t)(a, o);
}
//#endregion
//#region ../../node_modules/d3-interpolate/src/round.js
function E(e, t) {
	return e = +e, t = +t, function(n) {
		return Math.round(e * (1 - n) + t * n);
	};
}
//#endregion
//#region ../../node_modules/d3-scale/src/constant.js
function D(e) {
	return function() {
		return e;
	};
}
//#endregion
//#region ../../node_modules/d3-scale/src/number.js
function ee(e) {
	return +e;
}
//#endregion
//#region ../../node_modules/d3-scale/src/continuous.js
var O = [0, 1];
function k(e) {
	return e;
}
function A(e, t) {
	return (t -= e = +e) ? function(n) {
		return (n - e) / t;
	} : D(isNaN(t) ? NaN : .5);
}
function j(e, t) {
	var n;
	return e > t && (n = e, e = t, t = n), function(n) {
		return Math.max(e, Math.min(t, n));
	};
}
function M(e, t, n) {
	var r = e[0], i = e[1], a = t[0], o = t[1];
	return i < r ? (r = A(i, r), a = n(o, a)) : (r = A(r, i), a = n(a, o)), function(e) {
		return a(r(e));
	};
}
function te(e, t, n) {
	var r = Math.min(e.length, t.length) - 1, i = Array(r), a = Array(r), o = -1;
	for (e[r] < e[0] && (e = e.slice().reverse(), t = t.slice().reverse()); ++o < r;) i[o] = A(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);
	return function(t) {
		var n = f(e, t, 1, r) - 1;
		return a[n](i[n](t));
	};
}
function N(e, t) {
	return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown());
}
function P() {
	var e = O, n = O, r = T, i, a, o, s = k, c, l, u;
	function d() {
		var t = Math.min(e.length, n.length);
		return s !== k && (s = j(e[0], e[t - 1])), c = t > 2 ? te : M, l = u = null, f;
	}
	function f(t) {
		return t == null || isNaN(t = +t) ? o : (l ||= c(e.map(i), n, r))(i(s(t)));
	}
	return f.invert = function(r) {
		return s(a((u ||= c(n, e.map(i), t))(r)));
	}, f.domain = function(t) {
		return arguments.length ? (e = Array.from(t, ee), d()) : e.slice();
	}, f.range = function(e) {
		return arguments.length ? (n = Array.from(e), d()) : n.slice();
	}, f.rangeRound = function(e) {
		return n = Array.from(e), r = E, d();
	}, f.clamp = function(e) {
		return arguments.length ? (s = e ? !0 : k, d()) : s !== k;
	}, f.interpolate = function(e) {
		return arguments.length ? (r = e, d()) : r;
	}, f.unknown = function(e) {
		return arguments.length ? (o = e, f) : o;
	}, function(e, t) {
		return i = e, a = t, d();
	};
}
function F() {
	return P()(k, k);
}
//#endregion
//#region ../../node_modules/d3-format/src/formatDecimal.js
function I(e) {
	return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
}
function L(e, t) {
	if ((n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e")) < 0) return null;
	var n, r = e.slice(0, n);
	return [r.length > 1 ? r[0] + r.slice(2) : r, +e.slice(n + 1)];
}
//#endregion
//#region ../../node_modules/d3-format/src/exponent.js
function R(e) {
	return e = L(Math.abs(e)), e ? e[1] : NaN;
}
//#endregion
//#region ../../node_modules/d3-format/src/formatGroup.js
function z(e, t) {
	return function(n, r) {
		for (var i = n.length, a = [], o = 0, s = e[0], c = 0; i > 0 && s > 0 && (c + s + 1 > r && (s = Math.max(1, r - c)), a.push(n.substring(i -= s, i + s)), !((c += s + 1) > r));) s = e[o = (o + 1) % e.length];
		return a.reverse().join(t);
	};
}
//#endregion
//#region ../../node_modules/d3-format/src/formatNumerals.js
function ne(e) {
	return function(t) {
		return t.replace(/[0-9]/g, function(t) {
			return e[+t];
		});
	};
}
//#endregion
//#region ../../node_modules/d3-format/src/formatSpecifier.js
var re = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
function B(e) {
	if (!(t = re.exec(e))) throw Error("invalid format: " + e);
	var t;
	return new V({
		fill: t[1],
		align: t[2],
		sign: t[3],
		symbol: t[4],
		zero: t[5],
		width: t[6],
		comma: t[7],
		precision: t[8] && t[8].slice(1),
		trim: t[9],
		type: t[10]
	});
}
B.prototype = V.prototype;
function V(e) {
	this.fill = e.fill === void 0 ? " " : e.fill + "", this.align = e.align === void 0 ? ">" : e.align + "", this.sign = e.sign === void 0 ? "-" : e.sign + "", this.symbol = e.symbol === void 0 ? "" : e.symbol + "", this.zero = !!e.zero, this.width = e.width === void 0 ? void 0 : +e.width, this.comma = !!e.comma, this.precision = e.precision === void 0 ? void 0 : +e.precision, this.trim = !!e.trim, this.type = e.type === void 0 ? "" : e.type + "";
}
V.prototype.toString = function() {
	return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
};
//#endregion
//#region ../../node_modules/d3-format/src/formatTrim.js
function ie(e) {
	out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
		case ".":
			r = i = n;
			break;
		case "0":
			r === 0 && (r = n), i = n;
			break;
		default:
			if (!+e[n]) break out;
			r > 0 && (r = 0);
			break;
	}
	return r > 0 ? e.slice(0, r) + e.slice(i + 1) : e;
}
//#endregion
//#region ../../node_modules/d3-format/src/formatPrefixAuto.js
var H;
function U(e, t) {
	var n = L(e, t);
	if (!n) return e + "";
	var r = n[0], i = n[1], a = i - (H = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
	return a === o ? r : a > o ? r + Array(a - o + 1).join("0") : a > 0 ? r.slice(0, a) + "." + r.slice(a) : "0." + Array(1 - a).join("0") + L(e, Math.max(0, t + a - 1))[0];
}
//#endregion
//#region ../../node_modules/d3-format/src/formatRounded.js
function W(e, t) {
	var n = L(e, t);
	if (!n) return e + "";
	var r = n[0], i = n[1];
	return i < 0 ? "0." + Array(-i).join("0") + r : r.length > i + 1 ? r.slice(0, i + 1) + "." + r.slice(i + 1) : r + Array(i - r.length + 2).join("0");
}
//#endregion
//#region ../../node_modules/d3-format/src/formatTypes.js
var G = {
	"%": function(e, t) {
		return (e * 100).toFixed(t);
	},
	b: function(e) {
		return Math.round(e).toString(2);
	},
	c: function(e) {
		return e + "";
	},
	d: I,
	e: function(e, t) {
		return e.toExponential(t);
	},
	f: function(e, t) {
		return e.toFixed(t);
	},
	g: function(e, t) {
		return e.toPrecision(t);
	},
	o: function(e) {
		return Math.round(e).toString(8);
	},
	p: function(e, t) {
		return W(e * 100, t);
	},
	r: W,
	s: U,
	X: function(e) {
		return Math.round(e).toString(16).toUpperCase();
	},
	x: function(e) {
		return Math.round(e).toString(16);
	}
};
//#endregion
//#region ../../node_modules/d3-format/src/identity.js
function K(e) {
	return e;
}
//#endregion
//#region ../../node_modules/d3-format/src/locale.js
var q = Array.prototype.map, J = [
	"y",
	"z",
	"a",
	"f",
	"p",
	"n",
	"µ",
	"m",
	"",
	"k",
	"M",
	"G",
	"T",
	"P",
	"E",
	"Z",
	"Y"
];
function ae(e) {
	var t = e.grouping === void 0 || e.thousands === void 0 ? K : z(q.call(e.grouping, Number), e.thousands + ""), n = e.currency === void 0 ? "" : e.currency[0] + "", r = e.currency === void 0 ? "" : e.currency[1] + "", i = e.decimal === void 0 ? "." : e.decimal + "", a = e.numerals === void 0 ? K : ne(q.call(e.numerals, String)), o = e.percent === void 0 ? "%" : e.percent + "", s = e.minus === void 0 ? "-" : e.minus + "", c = e.nan === void 0 ? "NaN" : e.nan + "";
	function l(e) {
		e = B(e);
		var l = e.fill, u = e.align, d = e.sign, f = e.symbol, p = e.zero, m = e.width, h = e.comma, g = e.precision, _ = e.trim, v = e.type;
		v === "n" ? (h = !0, v = "g") : G[v] || (g === void 0 && (g = 12), _ = !0, v = "g"), (p || l === "0" && u === "=") && (p = !0, l = "0", u = "=");
		var y = f === "$" ? n : f === "#" && /[boxX]/.test(v) ? "0" + v.toLowerCase() : "", b = f === "$" ? r : /[%p]/.test(v) ? o : "", x = G[v], S = /[defgprs%]/.test(v);
		g = g === void 0 ? 6 : /[gprs]/.test(v) ? Math.max(1, Math.min(21, g)) : Math.max(0, Math.min(20, g));
		function C(e) {
			var n = y, r = b, o, f, C;
			if (v === "c") r = x(e) + r, e = "";
			else {
				e = +e;
				var w = e < 0 || 1 / e < 0;
				if (e = isNaN(e) ? c : x(Math.abs(e), g), _ && (e = ie(e)), w && +e == 0 && d !== "+" && (w = !1), n = (w ? d === "(" ? d : s : d === "-" || d === "(" ? "" : d) + n, r = (v === "s" ? J[8 + H / 3] : "") + r + (w && d === "(" ? ")" : ""), S) {
					for (o = -1, f = e.length; ++o < f;) if (C = e.charCodeAt(o), 48 > C || C > 57) {
						r = (C === 46 ? i + e.slice(o + 1) : e.slice(o)) + r, e = e.slice(0, o);
						break;
					}
				}
			}
			h && !p && (e = t(e, Infinity));
			var T = n.length + e.length + r.length, E = T < m ? Array(m - T + 1).join(l) : "";
			switch (h && p && (e = t(E + e, E.length ? m - r.length : Infinity), E = ""), u) {
				case "<":
					e = n + e + r + E;
					break;
				case "=":
					e = n + E + e + r;
					break;
				case "^":
					e = E.slice(0, T = E.length >> 1) + n + e + r + E.slice(T);
					break;
				default:
					e = E + n + e + r;
					break;
			}
			return a(e);
		}
		return C.toString = function() {
			return e + "";
		}, C;
	}
	function u(e, t) {
		var n = l((e = B(e), e.type = "f", e)), r = Math.max(-8, Math.min(8, Math.floor(R(t) / 3))) * 3, i = 10 ** -r, a = J[8 + r / 3];
		return function(e) {
			return n(i * e) + a;
		};
	}
	return {
		format: l,
		formatPrefix: u
	};
}
//#endregion
//#region ../../node_modules/d3-format/src/defaultLocale.js
var Y, X, Z;
oe({
	decimal: ".",
	thousands: ",",
	grouping: [3],
	currency: ["$", ""],
	minus: "-"
});
function oe(e) {
	return Y = ae(e), X = Y.format, Z = Y.formatPrefix, Y;
}
//#endregion
//#region ../../node_modules/d3-format/src/precisionFixed.js
function se(e) {
	return Math.max(0, -R(Math.abs(e)));
}
//#endregion
//#region ../../node_modules/d3-format/src/precisionPrefix.js
function ce(e, t) {
	return Math.max(0, Math.max(-8, Math.min(8, Math.floor(R(t) / 3))) * 3 - R(Math.abs(e)));
}
//#endregion
//#region ../../node_modules/d3-format/src/precisionRound.js
function le(e, t) {
	return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, R(t) - R(e)) + 1;
}
//#endregion
//#region ../../node_modules/d3-scale/src/tickFormat.js
function ue(e, t, n, r) {
	var i = y(e, t, n), a;
	switch (r = B(r ?? ",f"), r.type) {
		case "s":
			var o = Math.max(Math.abs(e), Math.abs(t));
			return r.precision == null && !isNaN(a = ce(i, o)) && (r.precision = a), Z(r, o);
		case "":
		case "e":
		case "g":
		case "p":
		case "r":
			r.precision == null && !isNaN(a = le(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
			break;
		case "f":
		case "%":
			r.precision == null && !isNaN(a = se(i)) && (r.precision = a - (r.type === "%") * 2);
			break;
	}
	return X(r);
}
//#endregion
//#region ../../node_modules/d3-scale/src/linear.js
function Q(e) {
	var t = e.domain;
	return e.ticks = function(e) {
		var n = t();
		return _(n[0], n[n.length - 1], e ?? 10);
	}, e.tickFormat = function(e, n) {
		var r = t();
		return ue(r[0], r[r.length - 1], e ?? 10, n);
	}, e.nice = function(n) {
		n ??= 10;
		var r = t(), i = 0, a = r.length - 1, o = r[i], s = r[a], c, l, u = 10;
		for (s < o && (l = o, o = s, s = l, l = i, i = a, a = l); u-- > 0;) {
			if (l = v(o, s, n), l === c) return r[i] = o, r[a] = s, t(r);
			if (l > 0) o = Math.floor(o / l) * l, s = Math.ceil(s / l) * l;
			else if (l < 0) o = Math.ceil(o * l) / l, s = Math.floor(s * l) / l;
			else break;
			c = l;
		}
		return e;
	}, e;
}
function $() {
	var e = F();
	return e.copy = function() {
		return N(e, $());
	}, a.apply(e, arguments), Q(e);
}
//#endregion
export { c as a, y as i, F as n, N as r, $ as t };

//# sourceMappingURL=linear-LpGdIFrk.js.map