"use client";
import { getDefaultOptions as n } from "./_lib/defaultOptions.js";
import { constructFrom as i } from "./constructFrom.js";
import { getWeekYear as f } from "./getWeekYear.js";
import { startOfWeek as c } from "./startOfWeek.js";
function D(r, t) {
  const s = n(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? s.firstWeekContainsDate ?? s.locale?.options?.firstWeekContainsDate ?? 1, o = f(r, t), e = i(t?.in || r, 0);
  return e.setFullYear(o, 0, a), e.setHours(0, 0, 0, 0), c(e, t);
}
export {
  D as default,
  D as startOfWeekYear
};
