import { getTimezoneOffsetInMilliseconds as a } from "./_lib/getTimezoneOffsetInMilliseconds.js";
import { normalizeDates as c } from "./_lib/normalizeDates.js";
import { millisecondsInDay as D } from "./constants.js";
import { startOfDay as m } from "./startOfDay.js";
function p(n, i, e) {
  const [f, l] = c(
    e == null ? void 0 : e.in,
    n,
    i
  ), r = m(f), t = m(l), o = +r - a(r), s = +t - a(t);
  return Math.round((o - s) / D);
}
export {
  p as default,
  p as differenceInCalendarDays
};
