//#region src/internal/data-table/virtualization.ts
var e = (e, t, n) => Math.min(n, Math.max(t, e)), t = ({ overflowY: e, scrollHeight: t, clientHeight: n }) => e !== "auto" && e !== "scroll" && e !== "overlay" ? !1 : t > n + 1, n = ({ autoLoad: e, canLoadMore: t, totalHeight: n, visibleBottom: r, thresholdPx: i, isCoolingDown: a }) => !e || !t || a ? !1 : n - r <= i, r = ({ rowCount: t, rowHeightPx: n, overscan: r, visibleTop: i, visibleBottom: a }) => {
	let o = t * n, s = e(a, 0, o), c = e(i, 0, o), l = Math.floor(c / n) - r, u = Math.ceil(s / n) + r, d = e(l, 0, t);
	return {
		startIndex: d,
		endIndex: e(u, d, t)
	};
};
//#endregion
export { e as clamp, r as computeVirtualWindowBounds, t as isVerticallyScrollable, n as shouldTriggerVirtualizedInfiniteLoad };

//# sourceMappingURL=virtualization.js.map