//#region ../../node_modules/ol/obj.js
function e(e) {
	for (let t in e) delete e[t];
}
function t(e) {
	let t;
	for (t in e) return !1;
	return !t;
}
//#endregion
//#region ../../node_modules/ol/extent/Relationship.js
var n = {
	UNKNOWN: 0,
	INTERSECTING: 1,
	ABOVE: 2,
	RIGHT: 4,
	BELOW: 8,
	LEFT: 16
};
//#endregion
//#region ../../node_modules/ol/extent.js
function r(e) {
	let t = f();
	for (let n = 0, r = e.length; n < r; ++n) b(t, e[n]);
	return t;
}
function i(e, t, n) {
	return p(Math.min.apply(null, e), Math.min.apply(null, t), Math.max.apply(null, e), Math.max.apply(null, t), n);
}
function a(e, t, n) {
	return n ? (n[0] = e[0] - t, n[1] = e[1] - t, n[2] = e[2] + t, n[3] = e[3] + t, n) : [
		e[0] - t,
		e[1] - t,
		e[2] + t,
		e[3] + t
	];
}
function o(e, t) {
	return t ? (t[0] = e[0], t[1] = e[1], t[2] = e[2], t[3] = e[3], t) : e.slice();
}
function s(e, t, n) {
	let r, i;
	return r = t < e[0] ? e[0] - t : e[2] < t ? t - e[2] : 0, i = n < e[1] ? e[1] - n : e[3] < n ? n - e[3] : 0, r * r + i * i;
}
function c(e, t) {
	return u(e, t[0], t[1]);
}
function l(e, t) {
	return e[0] <= t[0] && t[2] <= e[2] && e[1] <= t[1] && t[3] <= e[3];
}
function u(e, t, n) {
	return e[0] <= t && t <= e[2] && e[1] <= n && n <= e[3];
}
function d(e, t) {
	let r = e[0], i = e[1], a = e[2], o = e[3], s = t[0], c = t[1], l = n.UNKNOWN;
	return s < r ? l |= n.LEFT : s > a && (l |= n.RIGHT), c < i ? l |= n.BELOW : c > o && (l |= n.ABOVE), l === n.UNKNOWN && (l = n.INTERSECTING), l;
}
function f() {
	return [
		Infinity,
		Infinity,
		-Infinity,
		-Infinity
	];
}
function p(e, t, n, r, i) {
	return i ? (i[0] = e, i[1] = t, i[2] = n, i[3] = r, i) : [
		e,
		t,
		n,
		r
	];
}
function m(e) {
	return p(Infinity, Infinity, -Infinity, -Infinity, e);
}
function h(e, t) {
	let n = e[0], r = e[1];
	return p(n, r, n, r, t);
}
function g(e, t, n, r, i) {
	return x(m(i), e, t, n, r);
}
function _(e, t) {
	return e[0] == t[0] && e[2] == t[2] && e[1] == t[1] && e[3] == t[3];
}
function v(e, t, n) {
	return Math.abs(e[0] - t[0]) < n && Math.abs(e[2] - t[2]) < n && Math.abs(e[1] - t[1]) < n && Math.abs(e[3] - t[3]) < n;
}
function y(e, t) {
	return t[0] < e[0] && (e[0] = t[0]), t[2] > e[2] && (e[2] = t[2]), t[1] < e[1] && (e[1] = t[1]), t[3] > e[3] && (e[3] = t[3]), e;
}
function b(e, t) {
	t[0] < e[0] && (e[0] = t[0]), t[0] > e[2] && (e[2] = t[0]), t[1] < e[1] && (e[1] = t[1]), t[1] > e[3] && (e[3] = t[1]);
}
function x(e, t, n, r, i) {
	for (; n < r; n += i) ee(e, t[n], t[n + 1]);
	return e;
}
function ee(e, t, n) {
	e[0] = Math.min(e[0], t), e[1] = Math.min(e[1], n), e[2] = Math.max(e[2], t), e[3] = Math.max(e[3], n);
}
function te(e, t) {
	let n;
	return n = t(ne(e)), n || (n = t(re(e)), n) || (n = t(w(e)), n) || (n = t(C(e)), n) ? n : !1;
}
function S(e) {
	let t = 0;
	return de(e) || (t = T(e) * ce(e)), t;
}
function ne(e) {
	return [e[0], e[1]];
}
function re(e) {
	return [e[2], e[1]];
}
function ie(e) {
	return [(e[0] + e[2]) / 2, (e[1] + e[3]) / 2];
}
function ae(e, t) {
	let n;
	if (t === "bottom-left") n = ne(e);
	else if (t === "bottom-right") n = re(e);
	else if (t === "top-left") n = C(e);
	else if (t === "top-right") n = w(e);
	else throw Error("Invalid corner");
	return n;
}
function oe(e, t, n, r, i) {
	let [a, o, s, c, l, u, d, f] = se(e, t, n, r);
	return p(Math.min(a, s, l, d), Math.min(o, c, u, f), Math.max(a, s, l, d), Math.max(o, c, u, f), i);
}
function se(e, t, n, r) {
	let i = t * r[0] / 2, a = t * r[1] / 2, o = Math.cos(n), s = Math.sin(n), c = i * o, l = i * s, u = a * o, d = a * s, f = e[0], p = e[1];
	return [
		f - c + d,
		p - l - u,
		f - c - d,
		p - l + u,
		f + c - d,
		p + l + u,
		f + c + d,
		p + l - u,
		f - c + d,
		p - l - u
	];
}
function ce(e) {
	return e[3] - e[1];
}
function le(e, t, n) {
	let r = n || f();
	return ue(e, t) ? (e[0] > t[0] ? r[0] = e[0] : r[0] = t[0], e[1] > t[1] ? r[1] = e[1] : r[1] = t[1], e[2] < t[2] ? r[2] = e[2] : r[2] = t[2], e[3] < t[3] ? r[3] = e[3] : r[3] = t[3]) : m(r), r;
}
function C(e) {
	return [e[0], e[3]];
}
function w(e) {
	return [e[2], e[3]];
}
function T(e) {
	return e[2] - e[0];
}
function ue(e, t) {
	return e[0] <= t[2] && e[2] >= t[0] && e[1] <= t[3] && e[3] >= t[1];
}
function de(e) {
	return e[2] < e[0] || e[3] < e[1];
}
function fe(e, t) {
	return t ? (t[0] = e[0], t[1] = e[1], t[2] = e[2], t[3] = e[3], t) : e;
}
function pe(e, t) {
	let n = (e[2] - e[0]) / 2 * (t - 1), r = (e[3] - e[1]) / 2 * (t - 1);
	e[0] -= n, e[2] += n, e[1] -= r, e[3] += r;
}
function me(e, t, r) {
	let i = !1, a = d(e, t), o = d(e, r);
	if (a === n.INTERSECTING || o === n.INTERSECTING) i = !0;
	else {
		let s = e[0], c = e[1], l = e[2], u = e[3], d = t[0], f = t[1], p = r[0], m = r[1], h = (m - f) / (p - d), g, _;
		o & n.ABOVE && !(a & n.ABOVE) && (g = p - (m - u) / h, i = g >= s && g <= l), !i && o & n.RIGHT && !(a & n.RIGHT) && (_ = m - (p - l) * h, i = _ >= c && _ <= u), !i && o & n.BELOW && !(a & n.BELOW) && (g = p - (m - c) / h, i = g >= s && g <= l), !i && o & n.LEFT && !(a & n.LEFT) && (_ = m - (p - s) * h, i = _ >= c && _ <= u);
	}
	return i;
}
function he(e, t, n, r) {
	if (de(e)) return m(n);
	let a = [];
	if (r > 1) {
		let t = e[2] - e[0], n = e[3] - e[1];
		for (let i = 0; i < r; ++i) a.push(e[0] + t * i / r, e[1], e[2], e[1] + n * i / r, e[2] - t * i / r, e[3], e[0], e[3] - n * i / r);
	} else a = [
		e[0],
		e[1],
		e[2],
		e[1],
		e[2],
		e[3],
		e[0],
		e[3]
	];
	t(a, a, 2);
	let o = [], s = [];
	for (let e = 0, t = a.length; e < t; e += 2) o.push(a[e]), s.push(a[e + 1]);
	return i(o, s, n);
}
function ge(e, t) {
	let n = t.getExtent(), r = ie(e);
	if (t.canWrapX() && (r[0] < n[0] || r[0] >= n[2])) {
		let t = T(n), i = Math.floor((r[0] - n[0]) / t) * t;
		e[0] -= i, e[2] -= i;
	}
	return e;
}
function _e(e, t, n) {
	if (t.canWrapX()) {
		let r = t.getExtent();
		if (!isFinite(e[0]) || !isFinite(e[2])) return [[
			r[0],
			e[1],
			r[2],
			e[3]
		]];
		ge(e, t);
		let i = T(r);
		if (T(e) > i && !n) return [[
			r[0],
			e[1],
			r[2],
			e[3]
		]];
		if (e[0] < r[0]) return [[
			e[0] + i,
			e[1],
			r[2],
			e[3]
		], [
			r[0],
			e[1],
			e[2],
			e[3]
		]];
		if (e[2] > r[2]) return [[
			e[0],
			e[1],
			r[2],
			e[3]
		], [
			r[0],
			e[1],
			e[2] - i,
			e[3]
		]];
	}
	return [e];
}
//#endregion
//#region ../../node_modules/ol/console.js
var ve = {
	info: 1,
	warn: 2,
	error: 3,
	none: 4
}, ye = ve.info;
function be(...e) {
	ye > ve.warn || console.warn(...e);
}
function xe(...e) {
	ye > ve.error || console.error(...e);
}
//#endregion
//#region ../../node_modules/ol/math.js
function E(e, t, n) {
	return Math.min(Math.max(e, t), n);
}
function Se(e, t, n, r, i, a) {
	let o = i - n, s = a - r;
	if (o !== 0 || s !== 0) {
		let c = ((e - n) * o + (t - r) * s) / (o * o + s * s);
		c > 1 ? (n = i, r = a) : c > 0 && (n += o * c, r += s * c);
	}
	return Ce(e, t, n, r);
}
function Ce(e, t, n, r) {
	let i = n - e, a = r - t;
	return i * i + a * a;
}
function we(e) {
	let t = e.length;
	for (let n = 0; n < t; n++) {
		let r = n, i = Math.abs(e[n][n]);
		for (let a = n + 1; a < t; a++) {
			let t = Math.abs(e[a][n]);
			t > i && (i = t, r = a);
		}
		if (i === 0) return null;
		let a = e[r];
		e[r] = e[n], e[n] = a;
		for (let r = n + 1; r < t; r++) {
			let i = -e[r][n] / e[n][n];
			for (let a = n; a < t + 1; a++) n == a ? e[r][a] = 0 : e[r][a] += i * e[n][a];
		}
	}
	let n = Array(t);
	for (let r = t - 1; r >= 0; r--) {
		n[r] = e[r][t] / e[r][r];
		for (let i = r - 1; i >= 0; i--) e[i][t] -= e[i][r] * n[r];
	}
	return n;
}
function Te(e) {
	return e * 180 / Math.PI;
}
function D(e) {
	return e * Math.PI / 180;
}
function Ee(e, t) {
	let n = e % t;
	return n * t < 0 ? n + t : n;
}
function De(e, t, n) {
	return e + n * (t - e);
}
function O(e, t) {
	let n = 10 ** t;
	return Math.round(e * n) / n;
}
function Oe(e, t) {
	return Math.round(O(e, t));
}
function ke(e, t) {
	return Math.floor(O(e, t));
}
function Ae(e, t) {
	return Math.ceil(O(e, t));
}
function je(e, t, n) {
	if (e >= t && e < n) return e;
	let r = n - t;
	return ((e - t) % r + r) % r + t;
}
//#endregion
//#region ../../node_modules/ol/string.js
function Me(e, t, n) {
	let r = n === void 0 ? "" + e : e.toFixed(n), i = r.indexOf(".");
	return i = i === -1 ? r.length : i, i > t ? r : Array(1 + t - i).join("0") + r;
}
function Ne(e, t) {
	let n = ("" + e).split("."), r = ("" + t).split(".");
	for (let e = 0; e < Math.max(n.length, r.length); e++) {
		let t = parseInt(n[e] || "0", 10), i = parseInt(r[e] || "0", 10);
		if (t > i) return 1;
		if (i > t) return -1;
	}
	return 0;
}
//#endregion
//#region ../../node_modules/ol/coordinate.js
function Pe(e, t) {
	return e[0] += +t[0], e[1] += +t[1], e;
}
function Fe(e, t, n) {
	let r = Ee(t + 180, 360) - 180, i = Math.abs(3600 * r), a = n || 0, o = Math.floor(i / 3600), s = Math.floor((i - o * 3600) / 60), c = O(i - o * 3600 - s * 60, a);
	c >= 60 && (c = 0, s += 1), s >= 60 && (s = 0, o += 1);
	let l = o + "°";
	return (s !== 0 || c !== 0) && (l += " " + Me(s, 2) + "′"), c !== 0 && (l += " " + Me(c, 2, a) + "″"), r !== 0 && (l += " " + e.charAt(+(r < 0))), l;
}
function Ie(e, t) {
	let n = !0;
	for (let r = e.length - 1; r >= 0; --r) if (e[r] != t[r]) {
		n = !1;
		break;
	}
	return n;
}
function Le(e, t) {
	let n = Math.cos(t), r = Math.sin(t), i = e[0] * n - e[1] * r, a = e[1] * n + e[0] * r;
	return e[0] = i, e[1] = a, e;
}
function Re(e, t) {
	return e[0] *= t, e[1] *= t, e;
}
function ze(e, t) {
	let n = e[0] - t[0], r = e[1] - t[1];
	return n * n + r * r;
}
function Be(e, t) {
	return Math.sqrt(ze(e, t));
}
function Ve(e, t) {
	if (t.canWrapX()) {
		let n = T(t.getExtent()), r = He(e, t, n);
		r && (e[0] -= r * n);
	}
	return e;
}
function He(e, t, n) {
	let r = t.getExtent(), i = 0;
	return t.canWrapX() && (e[0] < r[0] || e[0] > r[2]) && (n ||= T(r), i = Math.floor((e[0] - r[0]) / n)), i;
}
function Ue(e, t, n) {
	let r = Math.sqrt((t[0] - e[0]) * (t[0] - e[0]) + (t[1] - e[1]) * (t[1] - e[1])), i = [(t[0] - e[0]) / r, (t[1] - e[1]) / r], a = [-i[1], i[0]], o = Math.sqrt((n[0] - e[0]) * (n[0] - e[0]) + (n[1] - e[1]) * (n[1] - e[1])), s = [(n[0] - e[0]) / o, (n[1] - e[1]) / o], c = r === 0 || o === 0 ? 0 : Math.acos(E(s[0] * i[0] + s[1] * i[1], -1, 1));
	return c = Math.max(c, 1e-5), s[0] * a[0] + s[1] * a[1] > 0 ? c : Math.PI * 2 - c;
}
//#endregion
//#region ../../node_modules/ol/proj/Units.js
var We = {
	9001: "m",
	9002: "ft",
	9003: "us-ft",
	9101: "radians",
	9102: "degrees"
};
function Ge(e) {
	return We[e];
}
var k = {
	radians: 6370997 / (2 * Math.PI),
	degrees: 2 * Math.PI * 6370997 / 360,
	ft: .3048,
	m: 1,
	"us-ft": 1200 / 3937
}, A = class {
	constructor(e) {
		this.code_ = e.code, this.units_ = e.units, this.extent_ = e.extent === void 0 ? null : e.extent, this.worldExtent_ = e.worldExtent === void 0 ? null : e.worldExtent, this.axisOrientation_ = e.axisOrientation === void 0 ? "enu" : e.axisOrientation, this.global_ = e.global === void 0 ? !1 : e.global, this.canWrapX_ = !!(this.global_ && this.extent_), this.getPointResolutionFunc_ = e.getPointResolution, this.defaultTileGrid_ = null, this.metersPerUnit_ = e.metersPerUnit;
	}
	canWrapX() {
		return this.canWrapX_;
	}
	getCode() {
		return this.code_;
	}
	getExtent() {
		return this.extent_;
	}
	getUnits() {
		return this.units_;
	}
	getMetersPerUnit() {
		return this.metersPerUnit_ || k[this.units_];
	}
	getWorldExtent() {
		return this.worldExtent_;
	}
	getAxisOrientation() {
		return this.axisOrientation_;
	}
	isGlobal() {
		return this.global_;
	}
	setGlobal(e) {
		this.global_ = e, this.canWrapX_ = !!(e && this.extent_);
	}
	getDefaultTileGrid() {
		return this.defaultTileGrid_;
	}
	setDefaultTileGrid(e) {
		this.defaultTileGrid_ = e;
	}
	setExtent(e) {
		this.extent_ = e, this.canWrapX_ = !!(this.global_ && e);
	}
	setWorldExtent(e) {
		this.worldExtent_ = e;
	}
	setGetPointResolution(e) {
		this.getPointResolutionFunc_ = e;
	}
	getPointResolutionFunc() {
		return this.getPointResolutionFunc_;
	}
}, j = 6378137, M = Math.PI * j, Ke = [
	-M,
	-M,
	M,
	M
], qe = [
	-180,
	-85,
	180,
	85
], N = j * Math.log(Math.tan(Math.PI / 2)), P = class extends A {
	constructor(e) {
		super({
			code: e,
			units: "m",
			extent: Ke,
			global: !0,
			worldExtent: qe,
			getPointResolution: function(e, t) {
				return e / Math.cosh(t[1] / j);
			}
		});
	}
}, Je = [
	new P("EPSG:3857"),
	new P("EPSG:102100"),
	new P("EPSG:102113"),
	new P("EPSG:900913"),
	new P("http://www.opengis.net/def/crs/EPSG/0/3857"),
	new P("http://www.opengis.net/gml/srs/epsg.xml#3857")
];
function Ye(e, t, n, r) {
	let i = e.length;
	n = n > 1 ? n : 2, r ??= n, t === void 0 && (t = n > 2 ? e.slice() : Array(i));
	for (let n = 0; n < i; n += r) {
		t[n] = M * e[n] / 180;
		let r = j * Math.log(Math.tan(Math.PI * (+e[n + 1] + 90) / 360));
		r > N ? r = N : r < -N && (r = -N), t[n + 1] = r;
	}
	return t;
}
function Xe(e, t, n, r) {
	let i = e.length;
	n = n > 1 ? n : 2, r ??= n, t === void 0 && (t = n > 2 ? e.slice() : Array(i));
	for (let n = 0; n < i; n += r) t[n] = 180 * e[n] / M, t[n + 1] = 360 * Math.atan(Math.exp(e[n + 1] / j)) / Math.PI - 90;
	return t;
}
//#endregion
//#region ../../node_modules/ol/proj/epsg4326.js
var Ze = 6378137, Qe = [
	-180,
	-90,
	180,
	90
], $e = Math.PI * Ze / 180, F = class extends A {
	constructor(e, t) {
		super({
			code: e,
			units: "degrees",
			extent: Qe,
			axisOrientation: t,
			global: !0,
			metersPerUnit: $e,
			worldExtent: Qe
		});
	}
}, et = [
	new F("CRS:84"),
	new F("EPSG:4326", "neu"),
	new F("urn:ogc:def:crs:OGC:1.3:CRS84"),
	new F("urn:ogc:def:crs:OGC:2:84"),
	new F("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),
	new F("http://www.opengis.net/gml/srs/epsg.xml#4326", "neu"),
	new F("http://www.opengis.net/def/crs/EPSG/0/4326", "neu")
], I = {};
function tt(e) {
	return I[e] || I[e.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/, "EPSG:$3")] || null;
}
function nt(e, t) {
	I[e] = t;
}
//#endregion
//#region ../../node_modules/ol/proj/transforms.js
var L = {};
function R(e, t, n) {
	let r = e.getCode(), i = t.getCode();
	r in L || (L[r] = {}), L[r][i] = n;
}
function z(e, t) {
	return e in L && t in L[e] ? L[e][t] : null;
}
//#endregion
//#region ../../node_modules/ol/proj/utm.js
var B = .9996, V = .00669438, H = V * V, U = H * V, W = V / (1 - V), rt = Math.sqrt(1 - V), G = (1 - rt) / (1 + rt), it = G * G, at = it * G, ot = at * G, st = ot * G, ct = 1 - V / 4 - 3 * H / 64 - 5 * U / 256, lt = 3 * V / 8 + 3 * H / 32 + 45 * U / 1024, ut = 15 * H / 256 + 45 * U / 1024, dt = 35 * U / 3072, ft = 3 / 2 * G - 27 / 32 * at + 269 / 512 * st, pt = 21 / 16 * it - 55 / 32 * ot, mt = 151 / 96 * at - 417 / 128 * st, ht = 1097 / 512 * ot, K = 6378137;
function gt(e, t, n) {
	let r = e - 5e5, i = (n.north ? t : t - 1e7) / B / (K * ct), a = i + ft * Math.sin(2 * i) + pt * Math.sin(4 * i) + mt * Math.sin(6 * i) + ht * Math.sin(8 * i), o = Math.sin(a), s = o * o, c = Math.cos(a), l = o / c, u = l * l, d = u * u, f = 1 - V * s, p = K / Math.sqrt(1 - V * s), m = (1 - V) / f, h = W * c ** 2, g = h * h, _ = r / (p * B), v = _ * _, y = v * _, b = y * _, x = b * _, ee = x * _, te = a - l / m * (v / 2 - b / 24 * (5 + 3 * u + 10 * h - 4 * g - 9 * W)) + ee / 720 * (61 + 90 * u + 298 * h + 45 * d - 252 * W - 3 * g), S = (_ - y / 6 * (1 + 2 * u + h) + x / 120 * (5 - 2 * h + 28 * u - 3 * g + 8 * W + 24 * d)) / c;
	return S = je(S + D(St(n.number)), -Math.PI, Math.PI), [Te(S), Te(te)];
}
var _t = -80, vt = 84, yt = -180, bt = 180;
function xt(e, t, n) {
	e = je(e, yt, bt), t < _t ? t = _t : t > vt && (t = vt);
	let r = D(t), i = Math.sin(r), a = Math.cos(r), o = i / a, s = o * o, c = s * s, l = D(e), u = D(St(n.number)), d = K / Math.sqrt(1 - V * i ** 2), f = W * a ** 2, p = a * je(l - u, -Math.PI, Math.PI), m = p * p, h = m * p, g = h * p, _ = g * p, v = _ * p, y = K * (ct * r - lt * Math.sin(2 * r) + ut * Math.sin(4 * r) - dt * Math.sin(6 * r)), b = B * d * (p + h / 6 * (1 - s + f) + _ / 120 * (5 - 18 * s + c + 72 * f - 58 * W)) + 5e5, x = B * (y + d * o * (m / 2 + g / 24 * (5 - s + 9 * f + 4 * f ** 2) + v / 720 * (61 - 58 * s + c + 600 * f - 330 * W)));
	return n.north || (x += 1e7), [b, x];
}
function St(e) {
	return (e - 1) * 6 - 180 + 3;
}
var Ct = [
	/^EPSG:(\d+)$/,
	/^urn:ogc:def:crs:EPSG::(\d+)$/,
	/^http:\/\/www\.opengis\.net\/def\/crs\/EPSG\/0\/(\d+)$/
];
function wt(e) {
	let t = 0;
	for (let n of Ct) {
		let r = e.match(n);
		if (r) {
			t = parseInt(r[1]);
			break;
		}
	}
	if (!t) return null;
	let n = 0, r = !1;
	return t > 32700 && t < 32761 ? n = t - 32700 : t > 32600 && t < 32661 && (r = !0, n = t - 32600), n ? {
		number: n,
		north: r
	} : null;
}
function Tt(e, t) {
	return function(n, r, i, a) {
		let o = n.length;
		i = i > 1 ? i : 2, a ??= i, r ||= i > 2 ? n.slice() : Array(o);
		for (let i = 0; i < o; i += a) {
			let a = n[i], o = n[i + 1], s = e(a, o, t);
			r[i] = s[0], r[i + 1] = s[1];
		}
		return r;
	};
}
function Et(e) {
	return wt(e) ? new A({
		code: e,
		units: "m"
	}) : null;
}
function Dt(e) {
	let t = wt(e.getCode());
	return t ? {
		forward: Tt(xt, t),
		inverse: Tt(gt, t)
	} : null;
}
function Ot(e, t, n) {
	n ||= 6371008.8;
	let r = D(e[1]), i = D(t[1]), a = (i - r) / 2, o = D(t[0] - e[0]) / 2, s = Math.sin(a) * Math.sin(a) + Math.sin(o) * Math.sin(o) * Math.cos(r) * Math.cos(i);
	return 2 * n * Math.atan2(Math.sqrt(s), Math.sqrt(1 - s));
}
//#endregion
//#region ../../node_modules/ol/proj.js
var kt = [Dt], At = [Et], jt = !0;
function Mt(e) {
	jt = !(e === void 0 || e);
}
function Nt(e, t) {
	if (t !== void 0) {
		for (let n = 0, r = e.length; n < r; ++n) t[n] = e[n];
		t = t;
	} else t = e.slice();
	return t;
}
function q(e) {
	nt(e.getCode(), e), R(e, e, Nt);
}
function Pt(e) {
	e.forEach(q);
}
function J(e) {
	if (typeof e != "string") return e;
	let t = tt(e);
	if (t) return t;
	for (let t of At) {
		let n = t(e);
		if (n) return n;
	}
	return null;
}
function Ft(e, t, n, r) {
	e = J(e);
	let i, a = e.getPointResolutionFunc();
	if (a) {
		if (i = a(t, n), r && r !== e.getUnits()) {
			let t = e.getMetersPerUnit();
			t && (i = i * t / k[r]);
		}
	} else {
		let a = e.getUnits();
		if (a == "degrees" && !r || r == "degrees") i = t;
		else {
			let o = X(e, J("EPSG:4326"));
			if (!o && a !== "degrees") i = t * e.getMetersPerUnit();
			else {
				let e = [
					n[0] - t / 2,
					n[1],
					n[0] + t / 2,
					n[1],
					n[0],
					n[1] - t / 2,
					n[0],
					n[1] + t / 2
				];
				e = o(e, e, 2), i = (Ot(e.slice(0, 2), e.slice(2, 4)) + Ot(e.slice(4, 6), e.slice(6, 8))) / 2;
			}
			let s = r ? k[r] : e.getMetersPerUnit();
			s !== void 0 && (i /= s);
		}
	}
	return i;
}
function Y(e) {
	Pt(e), e.forEach(function(t) {
		e.forEach(function(e) {
			t !== e && R(t, e, Nt);
		});
	});
}
function It(e, t, n, r) {
	e.forEach(function(e) {
		t.forEach(function(t) {
			R(e, t, n), R(t, e, r);
		});
	});
}
function Lt(e, t) {
	return e ? typeof e == "string" ? J(e) : e : J(t);
}
function Rt(e) {
	return (function(t, n, r, i) {
		let a = t.length;
		r = r === void 0 ? 2 : r, i ??= r, n = n === void 0 ? Array(a) : n;
		for (let o = 0; o < a; o += i) {
			let a = e(t.slice(o, o + r)), s = a.length;
			for (let e = 0, r = i; e < r; ++e) n[o + e] = e >= s ? t[o + e] : a[e];
		}
		return n;
	});
}
function zt(e, t, n, r) {
	let i = J(e), a = J(t);
	R(i, a, Rt(n)), R(a, i, Rt(r));
}
function Bt(e, t) {
	return Mt(), Z(e, "EPSG:4326", t === void 0 ? "EPSG:3857" : t);
}
function Vt(e, t) {
	let n = Z(e, t === void 0 ? "EPSG:3857" : t, "EPSG:4326"), r = n[0];
	return (r < -180 || r > 180) && (n[0] = Ee(r + 180, 360) - 180), n;
}
function Ht(e, t) {
	if (e === t) return !0;
	let n = e.getUnits() === t.getUnits();
	return (e.getCode() === t.getCode() || X(e, t) === Nt) && n;
}
function X(e, t) {
	let n = e.getCode(), r = t.getCode(), i = z(n, r);
	if (i) return i;
	let a = null, o = null;
	for (let n of kt) a ||= n(e), o ||= n(t);
	if (!a && !o) return null;
	let s = "EPSG:4326";
	if (!o) {
		let e = z(s, r);
		e && (i = Ut(a.inverse, e));
	} else if (a) i = Ut(a.inverse, o.forward);
	else {
		let e = z(n, s);
		e && (i = Ut(e, o.forward));
	}
	return i && (q(e), q(t), R(e, t, i)), i;
}
function Ut(e, t) {
	return function(n, r, i, a) {
		return r = e(n, r, i, a), t(r, r, i, a);
	};
}
function Wt(e, t) {
	return X(J(e), J(t));
}
function Z(e, t, n) {
	let r = Wt(t, n);
	if (!r) {
		let e = J(t).getCode(), r = J(n).getCode();
		throw Error(`No transform available between ${e} and ${r}`);
	}
	return r(e, void 0, e.length);
}
function Q(e, t, n, r) {
	return he(e, Wt(t, n), void 0, r);
}
var $ = null;
function Gt() {
	return $;
}
function Kt(e, t) {
	return $ ? Z(e, t, $) : e;
}
function qt(e, t) {
	return $ ? Z(e, $, t) : (jt && !Ie(e, [0, 0]) && e[0] >= -180 && e[0] <= 180 && e[1] >= -90 && e[1] <= 90 && (jt = !1, be("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")), e);
}
function Jt(e, t) {
	return $ ? Q(e, t, $) : e;
}
function Yt(e, t) {
	return $ ? Q(e, $, t) : e;
}
function Xt(e, t) {
	if (!$) return e;
	let n = J(t).getMetersPerUnit(), r = $.getMetersPerUnit();
	return n && r ? e * n / r : e;
}
function Zt(e, t, n) {
	return function(r) {
		let i, a;
		if (e.canWrapX()) {
			let t = e.getExtent(), o = T(t);
			r = r.slice(0), a = He(r, e, o), a && (r[0] -= a * o), r[0] = E(r[0], t[0], t[2]), r[1] = E(r[1], t[1], t[3]), i = n(r);
		} else i = n(r);
		return a && t.canWrapX() && (i[0] += a * T(t.getExtent())), i;
	};
}
function Qt() {
	Y(Je), Y(et), It(et, Je, Ye, Xe);
}
Qt();
//#endregion
export { r as $, Fe as A, me as At, ke as B, z as C, ce as Ct, Ge as D, w as Dt, k as E, C as Et, Ve as F, ge as Ft, Ce as G, Ee as H, Ne as I, n as It, D as J, Se as K, Me as L, e as Lt, Ie as M, fe as Mt, Le as N, pe as Nt, Pe as O, T as Ot, Re as P, _e as Pt, v as Q, Ae as R, t as Rt, Q as S, oe as St, A as T, se as Tt, Oe as U, De as V, we as W, be as X, xe as Y, he as Z, Vt as _, S as _t, Zt as a, u as at, Xt as b, ie as bt, Ht as c, p as ct, Yt as d, g as dt, a as et, J as f, _ as ft, Gt as g, te as gt, X as h, x as ht, Lt as i, l as it, Be as j, de as jt, Ue as k, ue as kt, Bt as l, m as lt, Wt as m, b as mt, Y as n, s as nt, Rt as o, d as ot, Ft as p, y as pt, O as q, q as r, c as rt, Mt as s, f as st, zt as t, o as tt, qt as u, h as ut, Kt as v, ne as vt, tt as w, le as wt, Z as x, ae as xt, Jt as y, re as yt, E as z };
