"use client";
import { timeInterval as n } from "./interval.js";
import { durationMinute as o, durationDay as r } from "./duration.js";
const a = n(
  (e) => e.setHours(0, 0, 0, 0),
  (e, t) => e.setDate(e.getDate() + t),
  (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * o) / r,
  (e) => e.getDate() - 1
);
a.range;
const s = n((e) => {
  e.setUTCHours(0, 0, 0, 0);
}, (e, t) => {
  e.setUTCDate(e.getUTCDate() + t);
}, (e, t) => (t - e) / r, (e) => e.getUTCDate() - 1);
s.range;
const u = n((e) => {
  e.setUTCHours(0, 0, 0, 0);
}, (e, t) => {
  e.setUTCDate(e.getUTCDate() + t);
}, (e, t) => (t - e) / r, (e) => Math.floor(e / r));
u.range;
export {
  a as timeDay,
  u as unixDay,
  s as utcDay
};
