"use client";
//#region packages/@mantine/core/src/core/utils/find-closest-number/find-closest-number.ts
function findClosestNumber(value, numbers) {
	if (numbers.length === 0) return value;
	return numbers.reduce((prev, curr) => Math.abs(curr - value) < Math.abs(prev - value) ? curr : prev);
}
//#endregion
exports.findClosestNumber = findClosestNumber;

//# sourceMappingURL=find-closest-number.cjs.map