import { $ as Be, c as Te, b as je, f as ve, a as Ce, e as ge } from "./utils-CrjF8U_E.es.js";
import { $ as ze } from "./FieldError-CXcEMuBf.es.js";
import { $ as Ne } from "./Form-CXcEMuBf.es.js";
import { a as Ee, $ as pu } from "./Group-GVlDKuLP.es.js";
import { e as ne, q as ee, x as xu, y as Ie, $ as X, z as vu, c as Ze, a as hu, b as Me, r as Bu, u as Ue, A as Cu, B as gu, C as Eu, D as Ae, d as Fu, E as ku, F as Pu, v as _e } from "./useDateFormatter-C0T2-xr7.es.js";
import V, { useCallback as de, useMemo as h, useRef as T, useEffect as Ke, useState as le, forwardRef as Y, useContext as q, createContext as ce, cloneElement as wu } from "react";
import { a as Vu } from "./VisuallyHidden-BW_C1pFq.es.js";
import { $ as Fe, a as Au } from "./Input-CXkgRPwc.es.js";
import { $ as Le } from "./Label-BPLFvUwR.es.js";
import { $ as Ge } from "./Text-DOcU1ycg.es.js";
import { $ as ae, b as Ru, a as Ou } from "./mergeProps-B-cqsBhL.es.js";
import { $ as me } from "./filterDOMProps-Cxz9cAAv.es.js";
import { $ as Su } from "./useObjectRef-CaJ5pgjX.es.js";
import { $ as J } from "./context-BfHy4NgG.es.js";
import { $ as fe } from "./LocalizedStringDictionary-rmcyf3BY.es.js";
import { $ as Tu, a as ju, b as zu } from "./useLocalizedStringFormatter-CYDf7GZk.es.js";
import { a as Nu, d as Re, e as Iu, $ as Zu } from "./useFormValidation-Cx9rG8-b.es.js";
import { $ as We } from "./useControlledState-3TGZUXux.es.js";
import { $ as He, a as qe } from "./FocusScope-DI1zU4s2.es.js";
import { $ as Mu } from "./usePress-UxAvyvOO.es.js";
import { a as Uu, c as _u } from "./scrollIntoView-Btu7DgIo.es.js";
import { $ as Ku } from "./useFormReset-Dl03QHFW.es.js";
import { $ as Lu } from "./useFocusWithin-CdBYoNiQ.es.js";
import { $ as Gu } from "./useField-BxLfE_kx.es.js";
import { $ as Wu } from "./useLabels-BOBP8-HM.es.js";
import { $ as Hu } from "./getScrollParent-vifdmp1X.es.js";
import { i as qu, c as Yu } from "./openLink-m90p5mer.es.js";
import { $ as pe } from "./useEvent-CKoH5wGJ.es.js";
import { a as Ju, $ as Qu } from "./useSpinButton-BiyDsWG5.es.js";
import { $ as Xu } from "./useCollator-DKdD8vEj.es.js";
import { $ as et } from "./useFocusRing-CZQUsztf.es.js";
import { $ as at } from "./useHover-BiPYlZr_.es.js";
function ut(e) {
  let a = Xu({
    usage: "search",
    ...e
  }), u = de((d, i) => i.length === 0 ? !0 : (d = d.normalize("NFC"), i = i.normalize("NFC"), a.compare(d.slice(0, i.length), i) === 0), [
    a
  ]), t = de((d, i) => i.length === 0 ? !0 : (d = d.normalize("NFC"), i = i.normalize("NFC"), a.compare(d.slice(-i.length), i) === 0), [
    a
  ]), n = de((d, i) => {
    if (i.length === 0) return !0;
    d = d.normalize("NFC"), i = i.normalize("NFC");
    let c = 0, r = i.length;
    for (; c + r <= d.length; c++) {
      let o = d.slice(c, c + r);
      if (a.compare(i, o) === 0) return !0;
    }
    return !1;
  }, [
    a
  ]);
  return h(() => ({
    startsWith: u,
    endsWith: t,
    contains: n
  }), [
    u,
    t,
    n
  ]);
}
var Ye = {};
Ye = {
  calendar: "التقويم",
  day: "يوم",
  dayPeriod: "ص/م",
  endDate: "تاريخ الانتهاء",
  era: "العصر",
  hour: "الساعات",
  minute: "الدقائق",
  month: "الشهر",
  second: "الثواني",
  selectedDateDescription: (e) => `تاريخ محدد: ${e.date}`,
  selectedRangeDescription: (e) => `المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,
  selectedTimeDescription: (e) => `الوقت المحدد: ${e.time}`,
  startDate: "تاريخ البدء",
  timeZoneName: "التوقيت",
  weekday: "اليوم",
  year: "السنة"
};
var Je = {};
Je = {
  calendar: "Календар",
  day: "ден",
  dayPeriod: "пр.об./сл.об.",
  endDate: "Крайна дата",
  era: "ера",
  hour: "час",
  minute: "минута",
  month: "месец",
  second: "секунда",
  selectedDateDescription: (e) => `Избрана дата: ${e.date}`,
  selectedRangeDescription: (e) => `Избран диапазон: ${e.startDate} до ${e.endDate}`,
  selectedTimeDescription: (e) => `Избрано време: ${e.time}`,
  startDate: "Начална дата",
  timeZoneName: "часова зона",
  weekday: "ден от седмицата",
  year: "година"
};
var Qe = {};
Qe = {
  calendar: "Kalendář",
  day: "den",
  dayPeriod: "část dne",
  endDate: "Konečné datum",
  era: "letopočet",
  hour: "hodina",
  minute: "minuta",
  month: "měsíc",
  second: "sekunda",
  selectedDateDescription: (e) => `Vybrané datum: ${e.date}`,
  selectedRangeDescription: (e) => `Vybrané období: ${e.startDate} až ${e.endDate}`,
  selectedTimeDescription: (e) => `Vybraný čas: ${e.time}`,
  startDate: "Počáteční datum",
  timeZoneName: "časové pásmo",
  weekday: "den v týdnu",
  year: "rok"
};
var Xe = {};
Xe = {
  calendar: "Kalender",
  day: "dag",
  dayPeriod: "AM/PM",
  endDate: "Slutdato",
  era: "æra",
  hour: "time",
  minute: "minut",
  month: "måned",
  second: "sekund",
  selectedDateDescription: (e) => `Valgt dato: ${e.date}`,
  selectedRangeDescription: (e) => `Valgt interval: ${e.startDate} til ${e.endDate}`,
  selectedTimeDescription: (e) => `Valgt tidspunkt: ${e.time}`,
  startDate: "Startdato",
  timeZoneName: "tidszone",
  weekday: "ugedag",
  year: "år"
};
var ea = {};
ea = {
  calendar: "Kalender",
  day: "Tag",
  dayPeriod: "Tageshälfte",
  endDate: "Enddatum",
  era: "Epoche",
  hour: "Stunde",
  minute: "Minute",
  month: "Monat",
  second: "Sekunde",
  selectedDateDescription: (e) => `Ausgewähltes Datum: ${e.date}`,
  selectedRangeDescription: (e) => `Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,
  selectedTimeDescription: (e) => `Ausgewählte Zeit: ${e.time}`,
  startDate: "Startdatum",
  timeZoneName: "Zeitzone",
  weekday: "Wochentag",
  year: "Jahr"
};
var aa = {};
aa = {
  calendar: "Ημερολόγιο",
  day: "ημέρα",
  dayPeriod: "π.μ./μ.μ.",
  endDate: "Ημερομηνία λήξης",
  era: "περίοδος",
  hour: "ώρα",
  minute: "λεπτό",
  month: "μήνας",
  second: "δευτερόλεπτο",
  selectedDateDescription: (e) => `Επιλεγμένη ημερομηνία: ${e.date}`,
  selectedRangeDescription: (e) => `Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,
  selectedTimeDescription: (e) => `Επιλεγμένη ώρα: ${e.time}`,
  startDate: "Ημερομηνία έναρξης",
  timeZoneName: "ζώνη ώρας",
  weekday: "καθημερινή",
  year: "έτος"
};
var ua = {};
ua = {
  era: "era",
  year: "year",
  month: "month",
  day: "day",
  hour: "hour",
  minute: "minute",
  second: "second",
  dayPeriod: "AM/PM",
  calendar: "Calendar",
  startDate: "Start Date",
  endDate: "End Date",
  weekday: "day of the week",
  timeZoneName: "time zone",
  selectedDateDescription: (e) => `Selected Date: ${e.date}`,
  selectedRangeDescription: (e) => `Selected Range: ${e.startDate} to ${e.endDate}`,
  selectedTimeDescription: (e) => `Selected Time: ${e.time}`
};
var ta = {};
ta = {
  calendar: "Calendario",
  day: "día",
  dayPeriod: "a. m./p. m.",
  endDate: "Fecha final",
  era: "era",
  hour: "hora",
  minute: "minuto",
  month: "mes",
  second: "segundo",
  selectedDateDescription: (e) => `Fecha seleccionada: ${e.date}`,
  selectedRangeDescription: (e) => `Rango seleccionado: ${e.startDate} a ${e.endDate}`,
  selectedTimeDescription: (e) => `Hora seleccionada: ${e.time}`,
  startDate: "Fecha de inicio",
  timeZoneName: "zona horaria",
  weekday: "día de la semana",
  year: "año"
};
var ra = {};
ra = {
  calendar: "Kalender",
  day: "päev",
  dayPeriod: "enne/pärast lõunat",
  endDate: "Lõppkuupäev",
  era: "ajastu",
  hour: "tund",
  minute: "minut",
  month: "kuu",
  second: "sekund",
  selectedDateDescription: (e) => `Valitud kuupäev: ${e.date}`,
  selectedRangeDescription: (e) => `Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,
  selectedTimeDescription: (e) => `Valitud aeg: ${e.time}`,
  startDate: "Alguskuupäev",
  timeZoneName: "ajavöönd",
  weekday: "nädalapäev",
  year: "aasta"
};
var na = {};
na = {
  calendar: "Kalenteri",
  day: "päivä",
  dayPeriod: "vuorokaudenaika",
  endDate: "Päättymispäivä",
  era: "aikakausi",
  hour: "tunti",
  minute: "minuutti",
  month: "kuukausi",
  second: "sekunti",
  selectedDateDescription: (e) => `Valittu päivämäärä: ${e.date}`,
  selectedRangeDescription: (e) => `Valittu aikaväli: ${e.startDate} – ${e.endDate}`,
  selectedTimeDescription: (e) => `Valittu aika: ${e.time}`,
  startDate: "Alkamispäivä",
  timeZoneName: "aikavyöhyke",
  weekday: "viikonpäivä",
  year: "vuosi"
};
var ia = {};
ia = {
  calendar: "Calendrier",
  day: "jour",
  dayPeriod: "cadran",
  endDate: "Date de fin",
  era: "ère",
  hour: "heure",
  minute: "minute",
  month: "mois",
  second: "seconde",
  selectedDateDescription: (e) => `Date sélectionnée : ${e.date}`,
  selectedRangeDescription: (e) => `Plage sélectionnée : ${e.startDate} au ${e.endDate}`,
  selectedTimeDescription: (e) => `Heure choisie : ${e.time}`,
  startDate: "Date de début",
  timeZoneName: "fuseau horaire",
  weekday: "jour de la semaine",
  year: "année"
};
var da = {};
da = {
  calendar: "לוח שנה",
  day: "יום",
  dayPeriod: "לפנה״צ/אחה״צ",
  endDate: "תאריך סיום",
  era: "תקופה",
  hour: "שעה",
  minute: "דקה",
  month: "חודש",
  second: "שנייה",
  selectedDateDescription: (e) => `תאריך נבחר: ${e.date}`,
  selectedRangeDescription: (e) => `טווח נבחר: ${e.startDate} עד ${e.endDate}`,
  selectedTimeDescription: (e) => `זמן נבחר: ${e.time}`,
  startDate: "תאריך התחלה",
  timeZoneName: "אזור זמן",
  weekday: "יום בשבוע",
  year: "שנה"
};
var la = {};
la = {
  calendar: "Kalendar",
  day: "dan",
  dayPeriod: "AM/PM",
  endDate: "Datum završetka",
  era: "era",
  hour: "sat",
  minute: "minuta",
  month: "mjesec",
  second: "sekunda",
  selectedDateDescription: (e) => `Odabrani datum: ${e.date}`,
  selectedRangeDescription: (e) => `Odabrani raspon: ${e.startDate} do ${e.endDate}`,
  selectedTimeDescription: (e) => `Odabrano vrijeme: ${e.time}`,
  startDate: "Datum početka",
  timeZoneName: "vremenska zona",
  weekday: "dan u tjednu",
  year: "godina"
};
var oa = {};
oa = {
  calendar: "Naptár",
  day: "nap",
  dayPeriod: "napszak",
  endDate: "Befejező dátum",
  era: "éra",
  hour: "óra",
  minute: "perc",
  month: "hónap",
  second: "másodperc",
  selectedDateDescription: (e) => `Kijelölt dátum: ${e.date}`,
  selectedRangeDescription: (e) => `Kijelölt tartomány: ${e.startDate}–${e.endDate}`,
  selectedTimeDescription: (e) => `Kijelölt idő: ${e.time}`,
  startDate: "Kezdő dátum",
  timeZoneName: "időzóna",
  weekday: "hét napja",
  year: "év"
};
var sa = {};
sa = {
  calendar: "Calendario",
  day: "giorno",
  dayPeriod: "AM/PM",
  endDate: "Data finale",
  era: "era",
  hour: "ora",
  minute: "minuto",
  month: "mese",
  second: "secondo",
  selectedDateDescription: (e) => `Data selezionata: ${e.date}`,
  selectedRangeDescription: (e) => `Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,
  selectedTimeDescription: (e) => `Ora selezionata: ${e.time}`,
  startDate: "Data iniziale",
  timeZoneName: "fuso orario",
  weekday: "giorno della settimana",
  year: "anno"
};
var ca = {};
ca = {
  calendar: "カレンダー",
  day: "日",
  dayPeriod: "午前/午後",
  endDate: "終了日",
  era: "時代",
  hour: "時",
  minute: "分",
  month: "月",
  second: "秒",
  selectedDateDescription: (e) => `選択した日付 : ${e.date}`,
  selectedRangeDescription: (e) => `選択範囲 : ${e.startDate} から ${e.endDate}`,
  selectedTimeDescription: (e) => `選択した時間 : ${e.time}`,
  startDate: "開始日",
  timeZoneName: "タイムゾーン",
  weekday: "曜日",
  year: "年"
};
var ma = {};
ma = {
  calendar: "달력",
  day: "일",
  dayPeriod: "오전/오후",
  endDate: "종료일",
  era: "연호",
  hour: "시",
  minute: "분",
  month: "월",
  second: "초",
  selectedDateDescription: (e) => `선택 일자: ${e.date}`,
  selectedRangeDescription: (e) => `선택 범위: ${e.startDate} ~ ${e.endDate}`,
  selectedTimeDescription: (e) => `선택 시간: ${e.time}`,
  startDate: "시작일",
  timeZoneName: "시간대",
  weekday: "요일",
  year: "년"
};
var fa = {};
fa = {
  calendar: "Kalendorius",
  day: "diena",
  dayPeriod: "iki pietų / po pietų",
  endDate: "Pabaigos data",
  era: "era",
  hour: "valanda",
  minute: "minutė",
  month: "mėnuo",
  second: "sekundė",
  selectedDateDescription: (e) => `Pasirinkta data: ${e.date}`,
  selectedRangeDescription: (e) => `Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,
  selectedTimeDescription: (e) => `Pasirinktas laikas: ${e.time}`,
  startDate: "Pradžios data",
  timeZoneName: "laiko juosta",
  weekday: "savaitės diena",
  year: "metai"
};
var Da = {};
Da = {
  calendar: "Kalendārs",
  day: "diena",
  dayPeriod: "priekšpusdienā/pēcpusdienā",
  endDate: "Beigu datums",
  era: "ēra",
  hour: "stundas",
  minute: "minūtes",
  month: "mēnesis",
  second: "sekundes",
  selectedDateDescription: (e) => `Atlasītais datums: ${e.date}`,
  selectedRangeDescription: (e) => `Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,
  selectedTimeDescription: (e) => `Atlasītais laiks: ${e.time}`,
  startDate: "Sākuma datums",
  timeZoneName: "laika josla",
  weekday: "nedēļas diena",
  year: "gads"
};
var $a = {};
$a = {
  calendar: "Kalender",
  day: "dag",
  dayPeriod: "a.m./p.m.",
  endDate: "Sluttdato",
  era: "tidsalder",
  hour: "time",
  minute: "minutt",
  month: "måned",
  second: "sekund",
  selectedDateDescription: (e) => `Valgt dato: ${e.date}`,
  selectedRangeDescription: (e) => `Valgt område: ${e.startDate} til ${e.endDate}`,
  selectedTimeDescription: (e) => `Valgt tid: ${e.time}`,
  startDate: "Startdato",
  timeZoneName: "tidssone",
  weekday: "ukedag",
  year: "år"
};
var ya = {};
ya = {
  calendar: "Kalender",
  day: "dag",
  dayPeriod: "a.m./p.m.",
  endDate: "Einddatum",
  era: "tijdperk",
  hour: "uur",
  minute: "minuut",
  month: "maand",
  second: "seconde",
  selectedDateDescription: (e) => `Geselecteerde datum: ${e.date}`,
  selectedRangeDescription: (e) => `Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,
  selectedTimeDescription: (e) => `Geselecteerde tijd: ${e.time}`,
  startDate: "Startdatum",
  timeZoneName: "tijdzone",
  weekday: "dag van de week",
  year: "jaar"
};
var ba = {};
ba = {
  calendar: "Kalendarz",
  day: "dzień",
  dayPeriod: "rano / po południu / wieczorem",
  endDate: "Data końcowa",
  era: "era",
  hour: "godzina",
  minute: "minuta",
  month: "miesiąc",
  second: "sekunda",
  selectedDateDescription: (e) => `Wybrana data: ${e.date}`,
  selectedRangeDescription: (e) => `Wybrany zakres: ${e.startDate} do ${e.endDate}`,
  selectedTimeDescription: (e) => `Wybrany czas: ${e.time}`,
  startDate: "Data początkowa",
  timeZoneName: "strefa czasowa",
  weekday: "dzień tygodnia",
  year: "rok"
};
var pa = {};
pa = {
  calendar: "Calendário",
  day: "dia",
  dayPeriod: "AM/PM",
  endDate: "Data final",
  era: "era",
  hour: "hora",
  minute: "minuto",
  month: "mês",
  second: "segundo",
  selectedDateDescription: (e) => `Data selecionada: ${e.date}`,
  selectedRangeDescription: (e) => `Intervalo selecionado: ${e.startDate} a ${e.endDate}`,
  selectedTimeDescription: (e) => `Hora selecionada: ${e.time}`,
  startDate: "Data inicial",
  timeZoneName: "fuso horário",
  weekday: "dia da semana",
  year: "ano"
};
var xa = {};
xa = {
  calendar: "Calendário",
  day: "dia",
  dayPeriod: "am/pm",
  endDate: "Data de Término",
  era: "era",
  hour: "hora",
  minute: "minuto",
  month: "mês",
  second: "segundo",
  selectedDateDescription: (e) => `Data selecionada: ${e.date}`,
  selectedRangeDescription: (e) => `Intervalo selecionado: ${e.startDate} a ${e.endDate}`,
  selectedTimeDescription: (e) => `Hora selecionada: ${e.time}`,
  startDate: "Data de Início",
  timeZoneName: "fuso horário",
  weekday: "dia da semana",
  year: "ano"
};
var va = {};
va = {
  calendar: "Calendar",
  day: "zi",
  dayPeriod: "a.m/p.m.",
  endDate: "Dată final",
  era: "eră",
  hour: "oră",
  minute: "minut",
  month: "lună",
  second: "secundă",
  selectedDateDescription: (e) => `Dată selectată: ${e.date}`,
  selectedRangeDescription: (e) => `Interval selectat: de la ${e.startDate} până la ${e.endDate}`,
  selectedTimeDescription: (e) => `Ora selectată: ${e.time}`,
  startDate: "Dată început",
  timeZoneName: "fus orar",
  weekday: "ziua din săptămână",
  year: "an"
};
var ha = {};
ha = {
  calendar: "Календарь",
  day: "день",
  dayPeriod: "AM/PM",
  endDate: "Дата окончания",
  era: "эра",
  hour: "час",
  minute: "минута",
  month: "месяц",
  second: "секунда",
  selectedDateDescription: (e) => `Выбранная дата: ${e.date}`,
  selectedRangeDescription: (e) => `Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,
  selectedTimeDescription: (e) => `Выбранное время: ${e.time}`,
  startDate: "Дата начала",
  timeZoneName: "часовой пояс",
  weekday: "день недели",
  year: "год"
};
var Ba = {};
Ba = {
  calendar: "Kalendár",
  day: "deň",
  dayPeriod: "AM/PM",
  endDate: "Dátum ukončenia",
  era: "letopočet",
  hour: "hodina",
  minute: "minúta",
  month: "mesiac",
  second: "sekunda",
  selectedDateDescription: (e) => `Vybratý dátum: ${e.date}`,
  selectedRangeDescription: (e) => `Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,
  selectedTimeDescription: (e) => `Vybratý čas: ${e.time}`,
  startDate: "Dátum začatia",
  timeZoneName: "časové pásmo",
  weekday: "deň týždňa",
  year: "rok"
};
var Ca = {};
Ca = {
  calendar: "Koledar",
  day: "dan",
  dayPeriod: "dop/pop",
  endDate: "Datum konca",
  era: "doba",
  hour: "ura",
  minute: "minuta",
  month: "mesec",
  second: "sekunda",
  selectedDateDescription: (e) => `Izbrani datum: ${e.date}`,
  selectedRangeDescription: (e) => `Izbrano območje: ${e.startDate} do ${e.endDate}`,
  selectedTimeDescription: (e) => `Izbrani čas: ${e.time}`,
  startDate: "Datum začetka",
  timeZoneName: "časovni pas",
  weekday: "dan v tednu",
  year: "leto"
};
var ga = {};
ga = {
  calendar: "Kalendar",
  day: "дан",
  dayPeriod: "пре подне/по подне",
  endDate: "Datum završetka",
  era: "ера",
  hour: "сат",
  minute: "минут",
  month: "месец",
  second: "секунд",
  selectedDateDescription: (e) => `Izabrani datum: ${e.date}`,
  selectedRangeDescription: (e) => `Izabrani opseg: od ${e.startDate} do ${e.endDate}`,
  selectedTimeDescription: (e) => `Izabrano vreme: ${e.time}`,
  startDate: "Datum početka",
  timeZoneName: "временска зона",
  weekday: "дан у недељи",
  year: "година"
};
var Ea = {};
Ea = {
  calendar: "Kalender",
  day: "dag",
  dayPeriod: "fm/em",
  endDate: "Slutdatum",
  era: "era",
  hour: "timme",
  minute: "minut",
  month: "månad",
  second: "sekund",
  selectedDateDescription: (e) => `Valt datum: ${e.date}`,
  selectedRangeDescription: (e) => `Valt intervall: ${e.startDate} till ${e.endDate}`,
  selectedTimeDescription: (e) => `Vald tid: ${e.time}`,
  startDate: "Startdatum",
  timeZoneName: "tidszon",
  weekday: "veckodag",
  year: "år"
};
var Fa = {};
Fa = {
  calendar: "Takvim",
  day: "gün",
  dayPeriod: "ÖÖ/ÖS",
  endDate: "Bitiş Tarihi",
  era: "çağ",
  hour: "saat",
  minute: "dakika",
  month: "ay",
  second: "saniye",
  selectedDateDescription: (e) => `Seçilen Tarih: ${e.date}`,
  selectedRangeDescription: (e) => `Seçilen Aralık: ${e.startDate} - ${e.endDate}`,
  selectedTimeDescription: (e) => `Seçilen Zaman: ${e.time}`,
  startDate: "Başlangıç Tarihi",
  timeZoneName: "saat dilimi",
  weekday: "haftanın günü",
  year: "yıl"
};
var ka = {};
ka = {
  calendar: "Календар",
  day: "день",
  dayPeriod: "дп/пп",
  endDate: "Дата завершення",
  era: "ера",
  hour: "година",
  minute: "хвилина",
  month: "місяць",
  second: "секунда",
  selectedDateDescription: (e) => `Вибрана дата: ${e.date}`,
  selectedRangeDescription: (e) => `Вибраний діапазон: ${e.startDate} — ${e.endDate}`,
  selectedTimeDescription: (e) => `Вибраний час: ${e.time}`,
  startDate: "Дата початку",
  timeZoneName: "часовий пояс",
  weekday: "день тижня",
  year: "рік"
};
var Pa = {};
Pa = {
  calendar: "日历",
  day: "日",
  dayPeriod: "上午/下午",
  endDate: "结束日期",
  era: "纪元",
  hour: "小时",
  minute: "分钟",
  month: "月",
  second: "秒",
  selectedDateDescription: (e) => `选定的日期：${e.date}`,
  selectedRangeDescription: (e) => `选定的范围：${e.startDate} 至 ${e.endDate}`,
  selectedTimeDescription: (e) => `选定的时间：${e.time}`,
  startDate: "开始日期",
  timeZoneName: "时区",
  weekday: "工作日",
  year: "年"
};
var wa = {};
wa = {
  calendar: "日曆",
  day: "日",
  dayPeriod: "上午/下午",
  endDate: "結束日期",
  era: "纪元",
  hour: "小时",
  minute: "分钟",
  month: "月",
  second: "秒",
  selectedDateDescription: (e) => `選定的日期：${e.date}`,
  selectedRangeDescription: (e) => `選定的範圍：${e.startDate} 至 ${e.endDate}`,
  selectedTimeDescription: (e) => `選定的時間：${e.time}`,
  startDate: "開始日期",
  timeZoneName: "时区",
  weekday: "工作日",
  year: "年"
};
var ke = {};
ke = {
  "ar-AE": Ye,
  "bg-BG": Je,
  "cs-CZ": Qe,
  "da-DK": Xe,
  "de-DE": ea,
  "el-GR": aa,
  "en-US": ua,
  "es-ES": ta,
  "et-EE": ra,
  "fi-FI": na,
  "fr-FR": ia,
  "he-IL": da,
  "hr-HR": la,
  "hu-HU": oa,
  "it-IT": sa,
  "ja-JP": ca,
  "ko-KR": ma,
  "lt-LT": fa,
  "lv-LV": Da,
  "nb-NO": $a,
  "nl-NL": ya,
  "pl-PL": ba,
  "pt-BR": pa,
  "pt-PT": xa,
  "ro-RO": va,
  "ru-RU": ha,
  "sk-SK": Ba,
  "sl-SI": Ca,
  "sr-SP": ga,
  "sv-SE": Ea,
  "tr-TR": Fa,
  "uk-UA": ka,
  "zh-CN": Pa,
  "zh-TW": wa
};
function tt(e, a, u) {
  let { direction: t } = J(), n = h(() => He(a), [
    a
  ]), d = (r) => {
    if (r.currentTarget.contains(r.target) && (r.altKey && (r.key === "ArrowDown" || r.key === "ArrowUp") && "setOpen" in e && (r.preventDefault(), r.stopPropagation(), e.setOpen(!0)), !u))
      switch (r.key) {
        case "ArrowLeft":
          if (r.preventDefault(), r.stopPropagation(), t === "rtl") {
            if (a.current) {
              let o = r.target, s = Oe(a.current, o.getBoundingClientRect().left, -1);
              s && s.focus();
            }
          } else n.focusPrevious();
          break;
        case "ArrowRight":
          if (r.preventDefault(), r.stopPropagation(), t === "rtl") {
            if (a.current) {
              let o = r.target, s = Oe(a.current, o.getBoundingClientRect().left, 1);
              s && s.focus();
            }
          } else n.focusNext();
          break;
      }
  }, i = () => {
    var r;
    if (!a.current) return;
    let o = (r = window.event) === null || r === void 0 ? void 0 : r.target, s = qe(a.current, {
      tabbable: !0
    });
    if (o && (s.currentNode = o, o = s.previousNode()), !o) {
      let m;
      do
        m = s.lastChild(), m && (o = m);
      while (m);
    }
    for (; o?.hasAttribute("data-placeholder"); ) {
      let m = s.previousNode();
      if (m && m.hasAttribute("data-placeholder")) o = m;
      else break;
    }
    o && o.focus();
  }, { pressProps: c } = Mu({
    preventFocusOnPress: !0,
    allowTextSelectionOnPress: !0,
    onPressStart(r) {
      r.pointerType === "mouse" && i();
    },
    onPress(r) {
      (r.pointerType === "touch" || r.pointerType === "pen") && i();
    }
  });
  return ae(c, {
    onKeyDown: d
  });
}
function Oe(e, a, u) {
  let t = qe(e, {
    tabbable: !0
  }), n = t.nextNode(), d = null, i = 1 / 0;
  for (; n; ) {
    let r = n.getBoundingClientRect().left - a, o = Math.abs(r);
    Math.sign(r) === u && o < i && (d = n, i = o), n = t.nextNode();
  }
  return d;
}
function rt(e) {
  return e && e.__esModule ? e.default : e;
}
const Va = /* @__PURE__ */ new WeakMap(), xe = "__role_" + /* @__PURE__ */ Date.now(), nt = "__focusManager_" + /* @__PURE__ */ Date.now();
function Pe(e, a, u) {
  var t;
  let { isInvalid: n, validationErrors: d, validationDetails: i } = a.displayValidation, { labelProps: c, fieldProps: r, descriptionProps: o, errorMessageProps: s } = Gu({
    ...e,
    labelElementType: "span",
    isInvalid: n,
    errorMessage: e.errorMessage || d
  }), m = T(null), { focusWithinProps: D } = Lu({
    ...e,
    onFocusWithin(S) {
      var w;
      m.current = a.value, (w = e.onFocus) === null || w === void 0 || w.call(e, S);
    },
    onBlurWithin: (S) => {
      var w;
      a.confirmPlaceholder(), a.value !== m.current && a.commitValidation(), (w = e.onBlur) === null || w === void 0 || w.call(e, S);
    },
    onFocusWithinChange: e.onFocusChange
  }), x = Tu(rt(ke), "@react-aria/datepicker"), v = a.maxGranularity === "hour" ? "selectedTimeDescription" : "selectedDateDescription", y = a.maxGranularity === "hour" ? "time" : "date", B = a.value ? x.format(v, {
    [y]: a.formatValue({
      month: "long"
    })
  }) : "", k = Uu(B), O = e[xe] === "presentation" ? r["aria-describedby"] : [
    k["aria-describedby"],
    r["aria-describedby"]
  ].filter(Boolean).join(" ") || void 0, A = e[nt], b = h(() => A || He(u), [
    A,
    u
  ]), _ = tt(a, u, e[xe] === "presentation");
  Va.set(a, {
    ariaLabel: e["aria-label"],
    ariaLabelledBy: [
      c.id,
      e["aria-labelledby"]
    ].filter(Boolean).join(" ") || void 0,
    ariaDescribedBy: O,
    focusManager: b
  });
  let I = T(e.autoFocus), U;
  e[xe] === "presentation" ? U = {
    role: "presentation"
  } : U = ae(r, {
    role: "group",
    "aria-disabled": e.isDisabled || void 0,
    "aria-describedby": O
  }), Ke(() => {
    I.current && b.focusFirst(), I.current = !1;
  }, [
    b
  ]), Ku(e.inputRef, a.defaultValue, a.setValue), Nu({
    ...e,
    focus() {
      b.focusFirst();
    }
  }, a, e.inputRef);
  let Z = {
    type: "hidden",
    name: e.name,
    form: e.form,
    value: ((t = a.value) === null || t === void 0 ? void 0 : t.toString()) || "",
    disabled: e.isDisabled
  };
  e.validationBehavior === "native" && (Z.type = "text", Z.hidden = !0, Z.required = e.isRequired, Z.onChange = () => {
  });
  let j = me(e);
  return {
    labelProps: {
      ...c,
      onClick: () => {
        b.focusFirst();
      }
    },
    fieldProps: ae(j, U, _, D, {
      onKeyDown(S) {
        e.onKeyDown && e.onKeyDown(S);
      },
      onKeyUp(S) {
        e.onKeyUp && e.onKeyUp(S);
      },
      style: {
        unicodeBidi: "isolate"
      }
    }),
    inputProps: Z,
    descriptionProps: o,
    errorMessageProps: s,
    isInvalid: n,
    validationErrors: d,
    validationDetails: i
  };
}
function it(e, a, u) {
  var t;
  let n = Pe(e, a, u);
  return n.inputProps.value = ((t = a.timeValue) === null || t === void 0 ? void 0 : t.toString()) || "", n;
}
function dt(e) {
  return e && e.__esModule ? e.default : e;
}
function lt() {
  let { locale: e } = J(), a = ju(dt(ke), "@react-aria/datepicker");
  return h(() => {
    try {
      return new Intl.DisplayNames(e, {
        type: "dateTimeField"
      });
    } catch {
      return new ot(e, a);
    }
  }, [
    e,
    a
  ]);
}
class ot {
  of(a) {
    return this.dictionary.getStringForLocale(a, this.locale);
  }
  constructor(a, u) {
    this.locale = a, this.dictionary = u;
  }
}
function st(e, a, u) {
  let t = T(""), { locale: n, direction: d } = J(), i = lt(), { ariaLabel: c, ariaLabelledBy: r, ariaDescribedBy: o, focusManager: s } = Va.get(a), m = e.isPlaceholder ? "" : e.text, D = h(() => a.dateFormatter.resolvedOptions(), [
    a.dateFormatter
  ]), x = ne({
    month: "long",
    timeZone: D.timeZone
  }), v = ne({
    hour: "numeric",
    hour12: D.hour12,
    timeZone: D.timeZone
  });
  if (e.type === "month" && !e.isPlaceholder) {
    let l = x.format(a.dateValue);
    m = l !== m ? `${m} – ${l}` : l;
  } else e.type === "hour" && !e.isPlaceholder && (m = v.format(a.dateValue));
  let { spinButtonProps: y } = Ju({
    // The ARIA spec says aria-valuenow is optional if there's no value, but aXe seems to require it.
    // This doesn't seem to have any negative effects with real AT since we also use aria-valuetext.
    // https://github.com/dequelabs/axe-core/issues/3505
    value: e.value,
    textValue: m,
    minValue: e.minValue,
    maxValue: e.maxValue,
    isDisabled: a.isDisabled,
    isReadOnly: a.isReadOnly || !e.isEditable,
    isRequired: a.isRequired,
    onIncrement: () => {
      t.current = "", a.increment(e.type);
    },
    onDecrement: () => {
      t.current = "", a.decrement(e.type);
    },
    onIncrementPage: () => {
      t.current = "", a.incrementPage(e.type);
    },
    onDecrementPage: () => {
      t.current = "", a.decrementPage(e.type);
    },
    onIncrementToMax: () => {
      t.current = "", e.maxValue !== void 0 && a.setSegment(e.type, e.maxValue);
    },
    onDecrementToMin: () => {
      t.current = "", e.minValue !== void 0 && a.setSegment(e.type, e.minValue);
    }
  }), B = h(() => new Qu(n, {
    maximumFractionDigits: 0
  }), [
    n
  ]), k = () => {
    if (e.text === e.placeholder && s.focusPrevious(), B.isValidPartialNumber(e.text) && !a.isReadOnly && !e.isPlaceholder) {
      let l = e.text.slice(0, -1), p = B.parse(l);
      l = p === 0 ? "" : l, l.length === 0 || p === 0 ? a.clearSegment(e.type) : a.setSegment(e.type, p), t.current = l;
    } else e.type === "dayPeriod" && a.clearSegment(e.type);
  }, O = (l) => {
    if (l.key === "a" && (Yu() ? l.metaKey : l.ctrlKey) && l.preventDefault(), !(l.ctrlKey || l.metaKey || l.shiftKey || l.altKey))
      switch (l.key) {
        case "Backspace":
        case "Delete":
          l.preventDefault(), l.stopPropagation(), k();
          break;
      }
  }, { startsWith: A } = ut({
    sensitivity: "base"
  }), b = ne({
    hour: "numeric",
    hour12: !0
  }), _ = h(() => {
    let l = /* @__PURE__ */ new Date();
    return l.setHours(0), b.formatToParts(l).find((p) => p.type === "dayPeriod").value;
  }, [
    b
  ]), I = h(() => {
    let l = /* @__PURE__ */ new Date();
    return l.setHours(12), b.formatToParts(l).find((p) => p.type === "dayPeriod").value;
  }, [
    b
  ]), U = ne({
    year: "numeric",
    era: "narrow",
    timeZone: "UTC"
  }), Z = h(() => {
    if (e.type !== "era") return [];
    let l = ee(new xu(1, 1, 1), a.calendar), p = a.calendar.getEras().map((F) => {
      let G = l.set({
        year: 1,
        month: 1,
        day: 1,
        era: F
      }).toDate("UTC"), re = U.formatToParts(G).find(($e) => $e.type === "era").value;
      return {
        era: F,
        formatted: re
      };
    }), g = ct(p.map((F) => F.formatted));
    if (g) for (let F of p) F.formatted = F.formatted.slice(g);
    return p;
  }, [
    U,
    a.calendar,
    e.type
  ]), j = (l) => {
    if (a.isDisabled || a.isReadOnly) return;
    let p = t.current + l;
    switch (e.type) {
      case "dayPeriod":
        if (A(_, l)) a.setSegment("dayPeriod", 0);
        else if (A(I, l)) a.setSegment("dayPeriod", 12);
        else break;
        s.focusNext();
        break;
      case "era": {
        let g = Z.find((F) => A(F.formatted, l));
        g && (a.setSegment("era", g.era), s.focusNext());
        break;
      }
      case "day":
      case "hour":
      case "minute":
      case "second":
      case "month":
      case "year": {
        if (!B.isValidPartialNumber(p)) return;
        let g = B.parse(p), F = g, G = e.minValue === 0;
        if (e.type === "hour" && a.dateFormatter.resolvedOptions().hour12) {
          switch (a.dateFormatter.resolvedOptions().hourCycle) {
            case "h11":
              g > 11 && (F = B.parse(l));
              break;
            case "h12":
              G = !1, g > 12 && (F = B.parse(l));
              break;
          }
          e.value !== void 0 && e.value >= 12 && g > 1 && (g += 12);
        } else e.maxValue !== void 0 && g > e.maxValue && (F = B.parse(l));
        if (isNaN(g)) return;
        let W = F !== 0 || G;
        W && a.setSegment(e.type, F), e.maxValue !== void 0 && (+(g + "0") > e.maxValue || p.length >= String(e.maxValue).length) ? (t.current = "", W && s.focusNext()) : t.current = p;
        break;
      }
    }
  }, S = () => {
    t.current = "", u.current && _u(u.current, {
      containingElement: Hu(u.current)
    });
    let l = window.getSelection();
    l?.collapse(u.current);
  }, w = T(typeof document < "u" ? document : null);
  pe(w, "selectionchange", () => {
    var l;
    let p = window.getSelection();
    p?.anchorNode && (!((l = u.current) === null || l === void 0) && l.contains(p?.anchorNode)) && p.collapse(u.current);
  });
  let K = T("");
  pe(u, "beforeinput", (l) => {
    if (u.current)
      switch (l.preventDefault(), l.inputType) {
        case "deleteContentBackward":
        case "deleteContentForward":
          B.isValidPartialNumber(e.text) && !a.isReadOnly && k();
          break;
        case "insertCompositionText":
          K.current = u.current.textContent, u.current.textContent = u.current.textContent;
          break;
        default:
          l.data != null && j(l.data);
          break;
      }
  }), pe(u, "input", (l) => {
    let { inputType: p, data: g } = l;
    switch (p) {
      case "insertCompositionText":
        u.current && (u.current.textContent = K.current), g != null && (A(_, g) || A(I, g)) && j(g);
        break;
    }
  }), Ru(() => {
    let l = u.current;
    return () => {
      document.activeElement === l && (s.focusPrevious() || s.focusNext());
    };
  }, [
    u,
    s
  ]);
  let P = qu() || e.type === "timeZoneName" ? {
    role: "textbox",
    "aria-valuemax": null,
    "aria-valuemin": null,
    "aria-valuetext": null,
    "aria-valuenow": null
  } : {}, $ = h(() => a.segments.find((l) => l.isEditable), [
    a.segments
  ]);
  e !== $ && !a.isInvalid && (o = void 0);
  let z = Ou(), N = !a.isDisabled && !a.isReadOnly && e.isEditable, te = e.type === "literal" ? "" : i.of(e.type), C = Wu({
    "aria-label": `${te}${c ? `, ${c}` : ""}${r ? ", " : ""}`,
    "aria-labelledby": r
  });
  if (e.type === "literal") return {
    segmentProps: {
      "aria-hidden": !0
    }
  };
  let M = {
    caretColor: "transparent"
  };
  if (d === "rtl") {
    M.unicodeBidi = "embed";
    let l = D[e.type];
    (l === "numeric" || l === "2-digit") && (M.direction = "ltr");
  }
  return {
    segmentProps: ae(y, C, {
      id: z,
      ...P,
      "aria-invalid": a.isInvalid ? "true" : void 0,
      "aria-describedby": o,
      "aria-readonly": a.isReadOnly || !e.isEditable ? "true" : void 0,
      "data-placeholder": e.isPlaceholder || void 0,
      contentEditable: N,
      suppressContentEditableWarning: N,
      spellCheck: N ? "false" : void 0,
      autoCorrect: N ? "off" : void 0,
      // Capitalization was changed in React 17...
      [parseInt(V.version, 10) >= 17 ? "enterKeyHint" : "enterkeyhint"]: N ? "next" : void 0,
      inputMode: a.isDisabled || e.type === "dayPeriod" || e.type === "era" || !N ? void 0 : "numeric",
      tabIndex: a.isDisabled ? void 0 : 0,
      onKeyDown: O,
      onFocus: S,
      style: M,
      // Prevent pointer events from reaching useDatePickerGroup, and allow native browser behavior to focus the segment.
      onPointerDown(l) {
        l.stopPropagation();
      },
      onMouseDown(l) {
        l.stopPropagation();
      }
    })
  };
}
function ct(e) {
  e.sort();
  let a = e[0], u = e[e.length - 1];
  for (let t = 0; t < a.length; t++)
    if (a[t] !== u[t]) return t;
  return 0;
}
var Aa = {};
Aa = {
  rangeOverflow: (e) => `يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,
  rangeReversed: "تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",
  rangeUnderflow: (e) => `يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,
  unavailableDate: "البيانات المحددة غير متاحة."
};
var Ra = {};
Ra = {
  rangeOverflow: (e) => `Стойността трябва да е ${e.maxValue} или по-ранна.`,
  rangeReversed: "Началната дата трябва да е преди крайната.",
  rangeUnderflow: (e) => `Стойността трябва да е ${e.minValue} или по-късно.`,
  unavailableDate: "Избраната дата не е налична."
};
var Oa = {};
Oa = {
  rangeOverflow: (e) => `Hodnota musí být ${e.maxValue} nebo dřívější.`,
  rangeReversed: "Datum zahájení musí předcházet datu ukončení.",
  rangeUnderflow: (e) => `Hodnota musí být ${e.minValue} nebo pozdější.`,
  unavailableDate: "Vybrané datum není k dispozici."
};
var Sa = {};
Sa = {
  rangeOverflow: (e) => `Værdien skal være ${e.maxValue} eller tidligere.`,
  rangeReversed: "Startdatoen skal være før slutdatoen.",
  rangeUnderflow: (e) => `Værdien skal være ${e.minValue} eller nyere.`,
  unavailableDate: "Den valgte dato er ikke tilgængelig."
};
var Ta = {};
Ta = {
  rangeOverflow: (e) => `Der Wert muss ${e.maxValue} oder früher sein.`,
  rangeReversed: "Das Startdatum muss vor dem Enddatum liegen.",
  rangeUnderflow: (e) => `Der Wert muss ${e.minValue} oder später sein.`,
  unavailableDate: "Das ausgewählte Datum ist nicht verfügbar."
};
var ja = {};
ja = {
  rangeOverflow: (e) => `Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,
  rangeReversed: "Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",
  rangeUnderflow: (e) => `Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,
  unavailableDate: "Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."
};
var za = {};
za = {
  rangeUnderflow: (e) => `Value must be ${e.minValue} or later.`,
  rangeOverflow: (e) => `Value must be ${e.maxValue} or earlier.`,
  rangeReversed: "Start date must be before end date.",
  unavailableDate: "Selected date unavailable."
};
var Na = {};
Na = {
  rangeOverflow: (e) => `El valor debe ser ${e.maxValue} o anterior.`,
  rangeReversed: "La fecha de inicio debe ser anterior a la fecha de finalización.",
  rangeUnderflow: (e) => `El valor debe ser ${e.minValue} o posterior.`,
  unavailableDate: "Fecha seleccionada no disponible."
};
var Ia = {};
Ia = {
  rangeOverflow: (e) => `Väärtus peab olema ${e.maxValue} või varasem.`,
  rangeReversed: "Alguskuupäev peab olema enne lõppkuupäeva.",
  rangeUnderflow: (e) => `Väärtus peab olema ${e.minValue} või hilisem.`,
  unavailableDate: "Valitud kuupäev pole saadaval."
};
var Za = {};
Za = {
  rangeOverflow: (e) => `Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,
  rangeReversed: "Aloituspäivän on oltava ennen lopetuspäivää.",
  rangeUnderflow: (e) => `Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,
  unavailableDate: "Valittu päivämäärä ei ole käytettävissä."
};
var Ma = {};
Ma = {
  rangeOverflow: (e) => `La valeur doit être ${e.maxValue} ou antérieure.`,
  rangeReversed: "La date de début doit être antérieure à la date de fin.",
  rangeUnderflow: (e) => `La valeur doit être ${e.minValue} ou ultérieure.`,
  unavailableDate: "La date sélectionnée n’est pas disponible."
};
var Ua = {};
Ua = {
  rangeOverflow: (e) => `הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,
  rangeReversed: "תאריך ההתחלה חייב להיות לפני תאריך הסיום.",
  rangeUnderflow: (e) => `הערך חייב להיות ${e.minValue} או מאוחר יותר.`,
  unavailableDate: "התאריך הנבחר אינו זמין."
};
var _a = {};
_a = {
  rangeOverflow: (e) => `Vrijednost mora biti ${e.maxValue} ili ranije.`,
  rangeReversed: "Datum početka mora biti prije datuma završetka.",
  rangeUnderflow: (e) => `Vrijednost mora biti ${e.minValue} ili kasnije.`,
  unavailableDate: "Odabrani datum nije dostupan."
};
var Ka = {};
Ka = {
  rangeOverflow: (e) => `Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,
  rangeReversed: "A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",
  rangeUnderflow: (e) => `Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,
  unavailableDate: "A kiválasztott dátum nem érhető el."
};
var La = {};
La = {
  rangeOverflow: (e) => `Il valore deve essere ${e.maxValue} o precedente.`,
  rangeReversed: "La data di inizio deve essere antecedente alla data di fine.",
  rangeUnderflow: (e) => `Il valore deve essere ${e.minValue} o successivo.`,
  unavailableDate: "Data selezionata non disponibile."
};
var Ga = {};
Ga = {
  rangeOverflow: (e) => `値は ${e.maxValue} 以下にする必要があります。`,
  rangeReversed: "開始日は終了日より前にする必要があります。",
  rangeUnderflow: (e) => `値は ${e.minValue} 以上にする必要があります。`,
  unavailableDate: "選択した日付は使用できません。"
};
var Wa = {};
Wa = {
  rangeOverflow: (e) => `값은 ${e.maxValue} 이전이어야 합니다.`,
  rangeReversed: "시작일은 종료일 이전이어야 합니다.",
  rangeUnderflow: (e) => `값은 ${e.minValue} 이후여야 합니다.`,
  unavailableDate: "선택한 날짜를 사용할 수 없습니다."
};
var Ha = {};
Ha = {
  rangeOverflow: (e) => `Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,
  rangeReversed: "Pradžios data turi būti ankstesnė nei pabaigos data.",
  rangeUnderflow: (e) => `Reikšmė turi būti ${e.minValue} arba naujesnė.`,
  unavailableDate: "Pasirinkta data nepasiekiama."
};
var qa = {};
qa = {
  rangeOverflow: (e) => `Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,
  rangeReversed: "Sākuma datumam ir jābūt pirms beigu datuma.",
  rangeUnderflow: (e) => `Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,
  unavailableDate: "Atlasītais datums nav pieejams."
};
var Ya = {};
Ya = {
  rangeOverflow: (e) => `Verdien må være ${e.maxValue} eller tidligere.`,
  rangeReversed: "Startdatoen må være før sluttdatoen.",
  rangeUnderflow: (e) => `Verdien må være ${e.minValue} eller senere.`,
  unavailableDate: "Valgt dato utilgjengelig."
};
var Ja = {};
Ja = {
  rangeOverflow: (e) => `Waarde moet ${e.maxValue} of eerder zijn.`,
  rangeReversed: "De startdatum moet voor de einddatum liggen.",
  rangeUnderflow: (e) => `Waarde moet ${e.minValue} of later zijn.`,
  unavailableDate: "Geselecteerde datum niet beschikbaar."
};
var Qa = {};
Qa = {
  rangeOverflow: (e) => `Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,
  rangeReversed: "Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",
  rangeUnderflow: (e) => `Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,
  unavailableDate: "Wybrana data jest niedostępna."
};
var Xa = {};
Xa = {
  rangeOverflow: (e) => `O valor deve ser ${e.maxValue} ou anterior.`,
  rangeReversed: "A data inicial deve ser anterior à data final.",
  rangeUnderflow: (e) => `O valor deve ser ${e.minValue} ou posterior.`,
  unavailableDate: "Data selecionada indisponível."
};
var eu = {};
eu = {
  rangeOverflow: (e) => `O valor tem de ser ${e.maxValue} ou anterior.`,
  rangeReversed: "A data de início deve ser anterior à data de fim.",
  rangeUnderflow: (e) => `O valor tem de ser ${e.minValue} ou posterior.`,
  unavailableDate: "Data selecionada indisponível."
};
var au = {};
au = {
  rangeOverflow: (e) => `Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,
  rangeReversed: "Data de început trebuie să fie anterioară datei de sfârșit.",
  rangeUnderflow: (e) => `Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,
  unavailableDate: "Data selectată nu este disponibilă."
};
var uu = {};
uu = {
  rangeOverflow: (e) => `Значение должно быть не позже ${e.maxValue}.`,
  rangeReversed: "Дата начала должна предшествовать дате окончания.",
  rangeUnderflow: (e) => `Значение должно быть не раньше ${e.minValue}.`,
  unavailableDate: "Выбранная дата недоступна."
};
var tu = {};
tu = {
  rangeOverflow: (e) => `Hodnota musí byť ${e.maxValue} alebo skoršia.`,
  rangeReversed: "Dátum začiatku musí byť skorší ako dátum konca.",
  rangeUnderflow: (e) => `Hodnota musí byť ${e.minValue} alebo neskoršia.`,
  unavailableDate: "Vybratý dátum je nedostupný."
};
var ru = {};
ru = {
  rangeOverflow: (e) => `Vrednost mora biti ${e.maxValue} ali starejša.`,
  rangeReversed: "Začetni datum mora biti pred končnim datumom.",
  rangeUnderflow: (e) => `Vrednost mora biti ${e.minValue} ali novejša.`,
  unavailableDate: "Izbrani datum ni na voljo."
};
var nu = {};
nu = {
  rangeOverflow: (e) => `Vrednost mora da bude ${e.maxValue} ili starija.`,
  rangeReversed: "Datum početka mora biti pre datuma završetka.",
  rangeUnderflow: (e) => `Vrednost mora da bude ${e.minValue} ili novija.`,
  unavailableDate: "Izabrani datum nije dostupan."
};
var iu = {};
iu = {
  rangeOverflow: (e) => `Värdet måste vara ${e.maxValue} eller tidigare.`,
  rangeReversed: "Startdatumet måste vara före slutdatumet.",
  rangeUnderflow: (e) => `Värdet måste vara ${e.minValue} eller senare.`,
  unavailableDate: "Det valda datumet är inte tillgängligt."
};
var du = {};
du = {
  rangeOverflow: (e) => `Değer, ${e.maxValue} veya öncesi olmalıdır.`,
  rangeReversed: "Başlangıç tarihi bitiş tarihinden önce olmalıdır.",
  rangeUnderflow: (e) => `Değer, ${e.minValue} veya sonrası olmalıdır.`,
  unavailableDate: "Seçilen tarih kullanılamıyor."
};
var lu = {};
lu = {
  rangeOverflow: (e) => `Значення має бути не пізніше ${e.maxValue}.`,
  rangeReversed: "Дата початку має передувати даті завершення.",
  rangeUnderflow: (e) => `Значення має бути не раніше ${e.minValue}.`,
  unavailableDate: "Вибрана дата недоступна."
};
var ou = {};
ou = {
  rangeOverflow: (e) => `值必须是 ${e.maxValue} 或更早日期。`,
  rangeReversed: "开始日期必须早于结束日期。",
  rangeUnderflow: (e) => `值必须是 ${e.minValue} 或更晚日期。`,
  unavailableDate: "所选日期不可用。"
};
var su = {};
su = {
  rangeOverflow: (e) => `值必須是 ${e.maxValue} 或更早。`,
  rangeReversed: "開始日期必須在結束日期之前。",
  rangeUnderflow: (e) => `值必須是 ${e.minValue} 或更晚。`,
  unavailableDate: "所選日期無法使用。"
};
var cu = {};
cu = {
  "ar-AE": Aa,
  "bg-BG": Ra,
  "cs-CZ": Oa,
  "da-DK": Sa,
  "de-DE": Ta,
  "el-GR": ja,
  "en-US": za,
  "es-ES": Na,
  "et-EE": Ia,
  "fi-FI": Za,
  "fr-FR": Ma,
  "he-IL": Ua,
  "hr-HR": _a,
  "hu-HU": Ka,
  "it-IT": La,
  "ja-JP": Ga,
  "ko-KR": Wa,
  "lt-LT": Ha,
  "lv-LV": qa,
  "nb-NO": Ya,
  "nl-NL": Ja,
  "pl-PL": Qa,
  "pt-BR": Xa,
  "pt-PT": eu,
  "ro-RO": au,
  "ru-RU": uu,
  "sk-SK": tu,
  "sl-SI": ru,
  "sr-SP": nu,
  "sv-SE": iu,
  "tr-TR": du,
  "uk-UA": lu,
  "zh-CN": ou,
  "zh-TW": su
};
function mt(e) {
  return e && e.__esModule ? e.default : e;
}
const mu = /* @__PURE__ */ new fe(/* @__PURE__ */ mt(cu));
function fu() {
  let e = typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
  try {
    Intl.DateTimeFormat.supportedLocalesOf([
      e
    ]);
  } catch {
    e = "en-US";
  }
  return e;
}
function he(e, a, u, t, n) {
  let d = e != null && u != null && e.compare(u) > 0, i = e != null && a != null && e.compare(a) < 0, c = e != null && t?.(e) || !1, r = d || i || c, o = [];
  if (r) {
    let s = fu(), m = fe.getGlobalDictionaryForPackage("@react-stately/datepicker") || mu, D = new zu(s, m), x = new X(s, oe({}, n)), v = x.resolvedOptions().timeZone;
    i && a != null && o.push(D.format("rangeUnderflow", {
      minValue: x.format(a.toDate(v))
    })), d && u != null && o.push(D.format("rangeOverflow", {
      maxValue: x.format(u.toDate(v))
    })), c && o.push(D.format("unavailableDate"));
  }
  return {
    isInvalid: r,
    validationErrors: o,
    validationDetails: {
      badInput: c,
      customError: !1,
      patternMismatch: !1,
      rangeOverflow: d,
      rangeUnderflow: i,
      stepMismatch: !1,
      tooLong: !1,
      tooShort: !1,
      typeMismatch: !1,
      valueMissing: !1,
      valid: !r
    }
  };
}
function ir(e, a, u, t, n) {
  var d;
  let i = he((d = e?.start) !== null && d !== void 0 ? d : null, a, u, t, n);
  var c;
  let r = he((c = e?.end) !== null && c !== void 0 ? c : null, a, u, t, n), o = Re(i, r);
  if (e?.end != null && e.start != null && e.end.compare(e.start) < 0) {
    let s = fe.getGlobalDictionaryForPackage("@react-stately/datepicker") || mu;
    o = Re(o, {
      isInvalid: !0,
      validationErrors: [
        s.getStringForLocale("rangeReversed", fu())
      ],
      validationDetails: {
        ...Iu,
        rangeUnderflow: !0,
        rangeOverflow: !0,
        valid: !1
      }
    });
  }
  return o;
}
const ft = {
  year: "numeric",
  month: "numeric",
  day: "numeric",
  hour: "numeric",
  minute: "2-digit",
  second: "2-digit"
}, Dt = {
  year: "numeric",
  month: "2-digit",
  day: "2-digit",
  hour: "2-digit",
  minute: "2-digit",
  second: "2-digit"
};
function oe(e, a) {
  e = {
    ...a.shouldForceLeadingZeros ? Dt : ft,
    ...e
  };
  let t = a.granularity || "minute", n = Object.keys(e);
  var d;
  let i = n.indexOf((d = a.maxGranularity) !== null && d !== void 0 ? d : "year");
  i < 0 && (i = 0);
  let c = n.indexOf(t);
  if (c < 0 && (c = 2), i > c) throw new Error("maxGranularity must be greater than granularity");
  let r = n.slice(i, c + 1).reduce((s, m) => (s[m] = e[m], s), {});
  return a.hourCycle != null && (r.hour12 = a.hourCycle === 12), r.timeZone = a.timeZone || "UTC", (t === "hour" || t === "minute" || t === "second") && a.timeZone && !a.hideTimeZone && (r.timeZoneName = "short"), a.showEra && i === 0 && (r.era = "short"), r;
}
function dr(e) {
  return e && "hour" in e ? e : new Ie();
}
function Du(e, a) {
  if (e === null) return null;
  if (e)
    return ee(e, a);
}
function Q(e, a, u, t) {
  if (e) return Du(e, u);
  let n = ee(vu(t ?? Ze()).set({
    hour: 0,
    minute: 0,
    second: 0,
    millisecond: 0
  }), u);
  return a === "year" || a === "month" || a === "day" ? hu(n) : t ? n : Me(n);
}
function $t(e, a) {
  let u = e && "timeZone" in e ? e.timeZone : void 0, t = e && "minute" in e ? "minute" : "day";
  if (e && a && !(a in e)) throw new Error("Invalid granularity " + a + " for value " + e.toString());
  let [n, d] = le([
    t,
    u
  ]);
  e && (n[0] !== t || n[1] !== u) && d([
    t,
    u
  ]), a || (a = e ? t : n[0]);
  let i = e ? u : n[1];
  return [
    a,
    i
  ];
}
const yt = /* @__PURE__ */ new fe({
  ach: {
    year: "mwaka",
    month: "dwe",
    day: "nino"
  },
  af: {
    year: "jjjj",
    month: "mm",
    day: "dd"
  },
  am: {
    year: "ዓዓዓዓ",
    month: "ሚሜ",
    day: "ቀቀ"
  },
  an: {
    year: "aaaa",
    month: "mm",
    day: "dd"
  },
  ar: {
    year: "سنة",
    month: "شهر",
    day: "يوم"
  },
  ast: {
    year: "aaaa",
    month: "mm",
    day: "dd"
  },
  az: {
    year: "iiii",
    month: "aa",
    day: "gg"
  },
  be: {
    year: "гггг",
    month: "мм",
    day: "дд"
  },
  bg: {
    year: "гггг",
    month: "мм",
    day: "дд"
  },
  bn: {
    year: "yyyy",
    month: "মিমি",
    day: "dd"
  },
  br: {
    year: "bbbb",
    month: "mm",
    day: "dd"
  },
  bs: {
    year: "gggg",
    month: "mm",
    day: "dd"
  },
  ca: {
    year: "aaaa",
    month: "mm",
    day: "dd"
  },
  cak: {
    year: "jjjj",
    month: "ii",
    day: "q'q'"
  },
  ckb: {
    year: "ساڵ",
    month: "مانگ",
    day: "ڕۆژ"
  },
  cs: {
    year: "rrrr",
    month: "mm",
    day: "dd"
  },
  cy: {
    year: "bbbb",
    month: "mm",
    day: "dd"
  },
  da: {
    year: "åååå",
    month: "mm",
    day: "dd"
  },
  de: {
    year: "jjjj",
    month: "mm",
    day: "tt"
  },
  dsb: {
    year: "llll",
    month: "mm",
    day: "źź"
  },
  el: {
    year: "εεεε",
    month: "μμ",
    day: "ηη"
  },
  en: {
    year: "yyyy",
    month: "mm",
    day: "dd"
  },
  eo: {
    year: "jjjj",
    month: "mm",
    day: "tt"
  },
  es: {
    year: "aaaa",
    month: "mm",
    day: "dd"
  },
  et: {
    year: "aaaa",
    month: "kk",
    day: "pp"
  },
  eu: {
    year: "uuuu",
    month: "hh",
    day: "ee"
  },
  fa: {
    year: "سال",
    month: "ماه",
    day: "روز"
  },
  ff: {
    year: "hhhh",
    month: "ll",
    day: "ññ"
  },
  fi: {
    year: "vvvv",
    month: "kk",
    day: "pp"
  },
  fr: {
    year: "aaaa",
    month: "mm",
    day: "jj"
  },
  fy: {
    year: "jjjj",
    month: "mm",
    day: "dd"
  },
  ga: {
    year: "bbbb",
    month: "mm",
    day: "ll"
  },
  gd: {
    year: "bbbb",
    month: "mm",
    day: "ll"
  },
  gl: {
    year: "aaaa",
    month: "mm",
    day: "dd"
  },
  he: {
    year: "שנה",
    month: "חודש",
    day: "יום"
  },
  hr: {
    year: "gggg",
    month: "mm",
    day: "dd"
  },
  hsb: {
    year: "llll",
    month: "mm",
    day: "dd"
  },
  hu: {
    year: "éééé",
    month: "hh",
    day: "nn"
  },
  ia: {
    year: "aaaa",
    month: "mm",
    day: "dd"
  },
  id: {
    year: "tttt",
    month: "bb",
    day: "hh"
  },
  it: {
    year: "aaaa",
    month: "mm",
    day: "gg"
  },
  ja: {
    year: "年",
    month: "月",
    day: "日"
  },
  ka: {
    year: "წწწწ",
    month: "თთ",
    day: "რრ"
  },
  kk: {
    year: "жжжж",
    month: "аа",
    day: "кк"
  },
  kn: {
    year: "ವವವವ",
    month: "ಮಿಮೀ",
    day: "ದಿದಿ"
  },
  ko: {
    year: "연도",
    month: "월",
    day: "일"
  },
  lb: {
    year: "jjjj",
    month: "mm",
    day: "dd"
  },
  lo: {
    year: "ປປປປ",
    month: "ດດ",
    day: "ວວ"
  },
  lt: {
    year: "mmmm",
    month: "mm",
    day: "dd"
  },
  lv: {
    year: "gggg",
    month: "mm",
    day: "dd"
  },
  meh: {
    year: "aaaa",
    month: "mm",
    day: "dd"
  },
  ml: {
    year: "വർഷം",
    month: "മാസം",
    day: "തീയതി"
  },
  ms: {
    year: "tttt",
    month: "mm",
    day: "hh"
  },
  nb: {
    year: "åååå",
    month: "mm",
    day: "dd"
  },
  nl: {
    year: "jjjj",
    month: "mm",
    day: "dd"
  },
  nn: {
    year: "åååå",
    month: "mm",
    day: "dd"
  },
  no: {
    year: "åååå",
    month: "mm",
    day: "dd"
  },
  oc: {
    year: "aaaa",
    month: "mm",
    day: "jj"
  },
  pl: {
    year: "rrrr",
    month: "mm",
    day: "dd"
  },
  pt: {
    year: "aaaa",
    month: "mm",
    day: "dd"
  },
  rm: {
    year: "oooo",
    month: "mm",
    day: "dd"
  },
  ro: {
    year: "aaaa",
    month: "ll",
    day: "zz"
  },
  ru: {
    year: "гггг",
    month: "мм",
    day: "дд"
  },
  sc: {
    year: "aaaa",
    month: "mm",
    day: "dd"
  },
  scn: {
    year: "aaaa",
    month: "mm",
    day: "jj"
  },
  sk: {
    year: "rrrr",
    month: "mm",
    day: "dd"
  },
  sl: {
    year: "llll",
    month: "mm",
    day: "dd"
  },
  sr: {
    year: "гггг",
    month: "мм",
    day: "дд"
  },
  sv: {
    year: "åååå",
    month: "mm",
    day: "dd"
  },
  szl: {
    year: "rrrr",
    month: "mm",
    day: "dd"
  },
  tg: {
    year: "сссс",
    month: "мм",
    day: "рр"
  },
  th: {
    year: "ปปปป",
    month: "ดด",
    day: "วว"
  },
  tr: {
    year: "yyyy",
    month: "aa",
    day: "gg"
  },
  uk: {
    year: "рррр",
    month: "мм",
    day: "дд"
  },
  "zh-CN": {
    year: "年",
    month: "月",
    day: "日"
  },
  "zh-TW": {
    year: "年",
    month: "月",
    day: "日"
  }
}, "en");
function bt(e, a, u) {
  return e === "era" || e === "dayPeriod" ? a : e === "year" || e === "month" || e === "day" ? yt.getStringForLocale(e, u) : "––";
}
const se = {
  year: !0,
  month: !0,
  day: !0,
  hour: !0,
  minute: !0,
  second: !0,
  dayPeriod: !0,
  era: !0
}, Se = {
  year: 5,
  month: 2,
  day: 7,
  hour: 2,
  minute: 15,
  second: 15
}, $u = {
  // Node seems to convert everything to lowercase...
  dayperiod: "dayPeriod",
  // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/formatToParts#named_years
  relatedYear: "year",
  yearName: "literal",
  unknown: "literal"
};
function we(e) {
  let { locale: a, createCalendar: u, hideTimeZone: t, isDisabled: n = !1, isReadOnly: d = !1, isRequired: i = !1, minValue: c, maxValue: r, isDateUnavailable: o } = e, s = e.value || e.defaultValue || e.placeholderValue || null, [m, D] = $t(s, e.granularity), x = D || "UTC";
  if (s && !(m in s)) throw new Error("Invalid granularity " + m + " for value " + s.toString());
  let v = h(() => new X(a), [
    a
  ]), y = h(() => u(v.resolvedOptions().calendar), [
    u,
    v
  ]);
  var B;
  let [k, O] = We(e.value, (B = e.defaultValue) !== null && B !== void 0 ? B : null, e.onChange), [A] = le(k), b = h(() => {
    var f;
    return (f = Du(k, y)) !== null && f !== void 0 ? f : null;
  }, [
    k,
    y
  ]), [_, I] = le(() => Q(e.placeholderValue, m, y, D)), U = b || _, Z = y.identifier === "gregory" && U.era === "BC", j = h(() => {
    var f;
    return {
      granularity: m,
      maxGranularity: (f = e.maxGranularity) !== null && f !== void 0 ? f : "year",
      timeZone: D,
      hideTimeZone: t,
      hourCycle: e.hourCycle,
      showEra: Z,
      shouldForceLeadingZeros: e.shouldForceLeadingZeros
    };
  }, [
    e.maxGranularity,
    m,
    e.hourCycle,
    e.shouldForceLeadingZeros,
    D,
    t,
    Z
  ]), S = h(() => oe({}, j), [
    j
  ]), w = h(() => new X(a, S), [
    a,
    S
  ]), K = h(() => w.resolvedOptions(), [
    w
  ]), P = h(() => w.formatToParts(/* @__PURE__ */ new Date()).filter((f) => se[f.type]).reduce((f, E) => (f[$u[E.type] || E.type] = !0, f), {}), [
    w
  ]), [$, z] = le(() => e.value || e.defaultValue ? {
    ...P
  } : {}), N = T(null), te = T(y);
  Ke(() => {
    Bu(y, te.current) || (te.current = y, I((f) => Object.keys($).length > 0 ? ee(f, y) : Q(e.placeholderValue, m, y, D)));
  }, [
    y,
    m,
    $,
    D,
    e.placeholderValue
  ]), k && Object.keys($).length < Object.keys(P).length && ($ = {
    ...P
  }, z($)), k == null && Object.keys($).length === Object.keys(P).length && ($ = {}, z($), I(Q(e.placeholderValue, m, y, D)));
  let C = b && Object.keys($).length >= Object.keys(P).length ? b : _, M = (f) => {
    if (e.isDisabled || e.isReadOnly) return;
    let E = Object.keys($), R = Object.keys(P);
    f == null ? (O(null), I(Q(e.placeholderValue, m, y, D)), z({})) : E.length === 0 && N.current == null || E.length >= R.length || E.length === R.length - 1 && P.dayPeriod && !$.dayPeriod && N.current !== "dayPeriod" ? (E.length === 0 && ($ = {
      ...P
    }, z($)), f = ee(f, s?.calendar || new Ue()), O(f)) : I(f), N.current = null;
  }, l = h(() => C.toDate(x), [
    C,
    x
  ]), p = h(() => pt(l, $, w, K, C, y, a, m), [
    l,
    $,
    w,
    K,
    C,
    y,
    a,
    m
  ]);
  P.era && $.year && !$.era ? ($.era = !0, z({
    ...$
  })) : !P.era && $.era && (delete $.era, z({
    ...$
  }));
  let g = (f) => {
    $[f] = !0, f === "year" && P.era && ($.era = !0), z({
      ...$
    });
  }, F = (f, E) => {
    if ($[f])
      M(xt(C, f, E, K));
    else {
      g(f);
      let R = Object.keys($), L = Object.keys(P);
      (R.length >= L.length || R.length === L.length - 1 && P.dayPeriod && !$.dayPeriod) && M(C);
    }
  }, G = h(() => he(k, c, r, o, j), [
    k,
    c,
    r,
    o,
    j
  ]), W = Zu({
    ...e,
    value: k,
    builtinValidation: G
  }), re = W.displayValidation.isInvalid, $e = e.validationState || (re ? "invalid" : null);
  var ye, be;
  return {
    ...W,
    value: b,
    defaultValue: (ye = e.defaultValue) !== null && ye !== void 0 ? ye : A,
    dateValue: l,
    calendar: y,
    setValue: M,
    segments: p,
    dateFormatter: w,
    validationState: $e,
    isInvalid: re,
    granularity: m,
    maxGranularity: (be = e.maxGranularity) !== null && be !== void 0 ? be : "year",
    isDisabled: n,
    isReadOnly: d,
    isRequired: i,
    increment(f) {
      F(f, 1);
    },
    decrement(f) {
      F(f, -1);
    },
    incrementPage(f) {
      F(f, Se[f] || 1);
    },
    decrementPage(f) {
      F(f, -(Se[f] || 1));
    },
    setSegment(f, E) {
      g(f), M(vt(C, f, E, K));
    },
    confirmPlaceholder() {
      if (e.isDisabled || e.isReadOnly) return;
      let f = Object.keys($), E = Object.keys(P);
      f.length === E.length - 1 && P.dayPeriod && !$.dayPeriod && ($ = {
        ...P
      }, z($), M(C.copy()));
    },
    clearSegment(f) {
      delete $[f], N.current = f, z({
        ...$
      });
      let E = Q(e.placeholderValue, m, y, D), R = C;
      if (f === "dayPeriod" && "hour" in C && "hour" in E) {
        let L = C.hour >= 12, Ve = E.hour >= 12;
        L && !Ve ? R = C.set({
          hour: C.hour - 12
        }) : !L && Ve && (R = C.set({
          hour: C.hour + 12
        }));
      } else f === "hour" && "hour" in C && C.hour >= 12 && $.dayPeriod ? R = C.set({
        hour: E.hour + 12
      }) : f in C && (R = C.set({
        [f]: E[f]
      }));
      O(null), M(R);
    },
    formatValue(f) {
      if (!b) return "";
      let E = oe(f, j);
      return new X(a, E).format(l);
    },
    getDateFormatter(f, E) {
      let R = {
        ...j,
        ...E
      }, L = oe({}, R);
      return new X(f, L);
    }
  };
}
function pt(e, a, u, t, n, d, i, c) {
  let r = [
    "hour",
    "minute",
    "second"
  ], o = u.formatToParts(e), s = [];
  for (let m of o) {
    let D = $u[m.type] || m.type, x = se[D];
    D === "era" && d.getEras().length === 1 && (x = !1);
    let v = se[D] && !a[D], y = se[D] ? bt(D, m.value, i) : null, B = {
      type: D,
      text: v ? y : m.value,
      ...ie(n, D, t),
      isPlaceholder: v,
      placeholder: y,
      isEditable: x
    };
    D === "hour" ? (s.push({
      type: "literal",
      text: "⁦",
      ...ie(n, "literal", t),
      isPlaceholder: !1,
      placeholder: "",
      isEditable: !1
    }), s.push(B), D === c && s.push({
      type: "literal",
      text: "⁩",
      ...ie(n, "literal", t),
      isPlaceholder: !1,
      placeholder: "",
      isEditable: !1
    })) : r.includes(D) && D === c ? (s.push(B), s.push({
      type: "literal",
      text: "⁩",
      ...ie(n, "literal", t),
      isPlaceholder: !1,
      placeholder: "",
      isEditable: !1
    })) : s.push(B);
  }
  return s;
}
function ie(e, a, u) {
  switch (a) {
    case "era": {
      let t = e.calendar.getEras();
      return {
        value: t.indexOf(e.era),
        minValue: 0,
        maxValue: t.length - 1
      };
    }
    case "year":
      return {
        value: e.year,
        minValue: 1,
        maxValue: e.calendar.getYearsInEra(e)
      };
    case "month":
      return {
        value: e.month,
        minValue: gu(e),
        maxValue: e.calendar.getMonthsInYear(e)
      };
    case "day":
      return {
        value: e.day,
        minValue: Cu(e),
        maxValue: e.calendar.getDaysInMonth(e)
      };
  }
  if ("hour" in e) switch (a) {
    case "dayPeriod":
      return {
        value: e.hour >= 12 ? 12 : 0,
        minValue: 0,
        maxValue: 12
      };
    case "hour":
      if (u.hour12) {
        let t = e.hour >= 12;
        return {
          value: e.hour,
          minValue: t ? 12 : 0,
          maxValue: t ? 23 : 11
        };
      }
      return {
        value: e.hour,
        minValue: 0,
        maxValue: 23
      };
    case "minute":
      return {
        value: e.minute,
        minValue: 0,
        maxValue: 59
      };
    case "second":
      return {
        value: e.second,
        minValue: 0,
        maxValue: 59
      };
  }
  return {};
}
function xt(e, a, u, t) {
  switch (a) {
    case "era":
    case "year":
    case "month":
    case "day":
      return e.cycle(a, u, {
        round: a === "year"
      });
  }
  if ("hour" in e) switch (a) {
    case "dayPeriod": {
      let n = e.hour, d = n >= 12;
      return e.set({
        hour: d ? n - 12 : n + 12
      });
    }
    case "hour":
    case "minute":
    case "second":
      return e.cycle(a, u, {
        round: a !== "hour",
        hourCycle: t.hour12 ? 12 : 24
      });
  }
  throw new Error("Unknown segment: " + a);
}
function vt(e, a, u, t) {
  switch (a) {
    case "day":
    case "month":
    case "year":
    case "era":
      return e.set({
        [a]: u
      });
  }
  if ("hour" in e && typeof u == "number") switch (a) {
    case "dayPeriod": {
      let n = e.hour, d = n >= 12;
      return u >= 12 === d ? e : e.set({
        hour: d ? n - 12 : n + 12
      });
    }
    case "hour":
      if (t.hour12) {
        let d = e.hour >= 12;
        !d && u === 12 && (u = 0), d && u < 12 && (u += 12);
      }
    // fallthrough
    case "minute":
    case "second":
      return e.set({
        [a]: u
      });
  }
  throw new Error("Unknown segment: " + a);
}
function ht(e) {
  let { placeholderValue: a = new Ie(), minValue: u, maxValue: t, defaultValue: n, granularity: d, validate: i } = e, [c, r] = We(e.value, n ?? null, e.onChange), o = c || a, s = o && "day" in o ? o : void 0, m = n && "timeZone" in n ? n.timeZone : void 0, D = h(() => {
    let b = o && "timeZone" in o ? o.timeZone : void 0;
    return (b || m) && a ? Eu(H(a), b || m) : H(a);
  }, [
    a,
    o,
    m
  ]), x = h(() => H(u, s), [
    u,
    s
  ]), v = h(() => H(t, s), [
    t,
    s
  ]), y = h(() => c && "day" in c ? Ae(c) : c, [
    c
  ]), B = h(() => c == null ? null : H(c), [
    c
  ]), k = h(() => n == null ? null : H(n), [
    n
  ]);
  return {
    ...we({
      ...e,
      value: B,
      defaultValue: k,
      minValue: x,
      maxValue: v,
      onChange: (b) => {
        r(s || m ? b : b && Ae(b));
      },
      granularity: d || "minute",
      maxGranularity: "hour",
      placeholderValue: D ?? void 0,
      // Calendar should not matter for time fields.
      createCalendar: () => new Ue(),
      validate: de(() => i?.(c), [
        i,
        c
      ])
    }),
    timeValue: y
  };
}
function H(e, a = Fu(Ze())) {
  return e ? "day" in e ? e : Me(a, e) : null;
}
const Bt = [
  "day",
  "month",
  "year"
], Ct = {
  hour: 1,
  minute: 2,
  second: 3
};
function gt(e, a) {
  let { autoComplete: u, isDisabled: t, name: n } = e, { visuallyHiddenProps: d } = Vu({
    style: {
      // Prevent page scrolling.
      position: "fixed",
      top: 0,
      left: 0
    }
  }), i = 60;
  a.granularity === "second" ? i = 1 : a.granularity === "hour" && (i = 3600);
  let c = a.value == null ? "" : a.value.toString(), r = a.granularity === "day" ? "date" : "datetime-local", o = [
    "hour",
    "minute",
    "second"
  ], s = 0;
  return o.includes(a.granularity) && (s = Ct[a.granularity], o = o.slice(0, s)), {
    containerProps: {
      ...d,
      "aria-hidden": !0,
      // @ts-ignore
      "data-react-aria-prevent-focus": !0,
      // @ts-ignore
      "data-a11y-ignore": "aria-hidden-focus"
    },
    inputProps: {
      tabIndex: -1,
      autoComplete: u,
      disabled: t,
      type: r,
      // We set the form prop to an empty string to prevent the hidden date input's value from being submitted
      form: "",
      name: n,
      step: i,
      value: c,
      onChange: (m) => {
        let D = m.target.value.toString();
        if (D) try {
          let x = ku(D);
          if (a.granularity === "day" && (x = Pu(D)), "setSegment" in a) for (let v in x)
            Bt.includes(v) && a.setSegment(v, x[v]), o.includes(v) && a.setSegment(v, x[v]);
          a.setValue(x);
        } catch {
        }
      }
    }
  };
}
function Et(e) {
  let { state: a } = e, { containerProps: u, inputProps: t } = gt({
    ...e
  }, a);
  return /* @__PURE__ */ V.createElement("div", {
    ...u,
    "data-testid": "hidden-dateinput-container"
  }, /* @__PURE__ */ V.createElement("input", t));
}
const yu = /* @__PURE__ */ ce(null), Ft = /* @__PURE__ */ ce(null), ue = /* @__PURE__ */ ce(null), De = /* @__PURE__ */ ce(null), lr = /* @__PURE__ */ Y(function(a, u) {
  [a, u] = Be(a, u, yu);
  let { validationBehavior: t } = Te(Ne) || {};
  var n, d;
  let i = (d = (n = a.validationBehavior) !== null && n !== void 0 ? n : t) !== null && d !== void 0 ? d : "native", { locale: c } = J(), r = we({
    ...a,
    locale: c,
    createCalendar: _e,
    validationBehavior: i
  }), o = T(null), [s, m] = je(!a["aria-label"] && !a["aria-labelledby"]), D = T(null), { labelProps: x, fieldProps: v, inputProps: y, descriptionProps: B, errorMessageProps: k, ...O } = Pe({
    ...ve(a),
    label: m,
    inputRef: D,
    validationBehavior: i
  }, r, o), A = Ce({
    ...ve(a),
    values: {
      state: r,
      isInvalid: r.isInvalid,
      isDisabled: r.isDisabled,
      isReadOnly: r.isReadOnly
    },
    defaultClassName: "react-aria-DateField"
  }), b = me(a, {
    global: !0
  });
  return delete b.id, /* @__PURE__ */ V.createElement(ge, {
    values: [
      [
        ue,
        r
      ],
      [
        Ee,
        {
          ...v,
          ref: o,
          isInvalid: r.isInvalid,
          isDisabled: r.isDisabled
        }
      ],
      [
        Fe,
        {
          ...y,
          ref: D
        }
      ],
      [
        Le,
        {
          ...x,
          ref: s,
          elementType: "span"
        }
      ],
      [
        Ge,
        {
          slots: {
            description: B,
            errorMessage: k
          }
        }
      ],
      [
        ze,
        O
      ]
    ]
  }, /* @__PURE__ */ V.createElement("div", {
    ...b,
    ...A,
    ref: u,
    slot: a.slot || void 0,
    "data-invalid": r.isInvalid || void 0,
    "data-disabled": r.isDisabled || void 0,
    "data-readonly": r.isReadOnly || void 0
  }), /* @__PURE__ */ V.createElement(Et, {
    autoComplete: a.autoComplete,
    name: a.name,
    isDisabled: a.isDisabled,
    state: r
  }));
}), or = /* @__PURE__ */ Y(function(a, u) {
  [a, u] = Be(a, u, Ft);
  let { validationBehavior: t } = Te(Ne) || {};
  var n, d;
  let i = (d = (n = a.validationBehavior) !== null && n !== void 0 ? n : t) !== null && d !== void 0 ? d : "native", { locale: c } = J(), r = ht({
    ...a,
    locale: c,
    validationBehavior: i
  }), o = T(null), [s, m] = je(!a["aria-label"] && !a["aria-labelledby"]), D = T(null), { labelProps: x, fieldProps: v, inputProps: y, descriptionProps: B, errorMessageProps: k, ...O } = it({
    ...ve(a),
    label: m,
    inputRef: D,
    validationBehavior: i
  }, r, o), A = Ce({
    ...a,
    values: {
      state: r,
      isInvalid: r.isInvalid,
      isDisabled: r.isDisabled,
      isReadOnly: r.isReadOnly
    },
    defaultClassName: "react-aria-TimeField"
  }), b = me(a, {
    global: !0
  });
  return delete b.id, /* @__PURE__ */ V.createElement(ge, {
    values: [
      [
        De,
        r
      ],
      [
        Ee,
        {
          ...v,
          ref: o,
          isInvalid: r.isInvalid,
          isDisabled: r.isDisabled
        }
      ],
      [
        Fe,
        {
          ...y,
          ref: D
        }
      ],
      [
        Le,
        {
          ...x,
          ref: s,
          elementType: "span"
        }
      ],
      [
        Ge,
        {
          slots: {
            description: B,
            errorMessage: k
          }
        }
      ],
      [
        ze,
        O
      ]
    ]
  }, /* @__PURE__ */ V.createElement("div", {
    ...b,
    ...A,
    ref: u,
    slot: a.slot || void 0,
    "data-invalid": r.isInvalid || void 0,
    "data-disabled": r.isDisabled || void 0,
    "data-readonly": r.isReadOnly || void 0
  }));
}), sr = /* @__PURE__ */ Y(function(a, u) {
  let t = q(ue), n = q(De);
  return t || n ? /* @__PURE__ */ V.createElement(bu, {
    ...a,
    ref: u
  }) : /* @__PURE__ */ V.createElement(kt, {
    ...a,
    ref: u
  });
}), kt = /* @__PURE__ */ Y((e, a) => {
  let [u, t] = Be({
    slot: e.slot
  }, a, yu), { locale: n } = J(), d = we({
    ...u,
    locale: n,
    createCalendar: _e
  }), i = T(null), { fieldProps: c, inputProps: r } = Pe({
    ...u,
    inputRef: i
  }, d, t);
  return /* @__PURE__ */ V.createElement(ge, {
    values: [
      [
        ue,
        d
      ],
      [
        Fe,
        {
          ...r,
          ref: i
        }
      ],
      [
        Ee,
        {
          ...c,
          ref: t,
          isInvalid: d.isInvalid,
          isDisabled: d.isDisabled
        }
      ]
    ]
  }, /* @__PURE__ */ V.createElement(bu, e));
}), bu = /* @__PURE__ */ Y((e, a) => {
  let { className: u, children: t } = e, n = q(ue), d = q(De), i = n ?? d;
  return /* @__PURE__ */ V.createElement(V.Fragment, null, /* @__PURE__ */ V.createElement(pu, {
    ...e,
    ref: a,
    slot: e.slot || void 0,
    className: u ?? "react-aria-DateInput",
    isReadOnly: i.isReadOnly,
    isInvalid: i.isInvalid,
    isDisabled: i.isDisabled
  }, i.segments.map((c, r) => /* @__PURE__ */ wu(t(c), {
    key: r
  }))), /* @__PURE__ */ V.createElement(Au, {
    className: ""
  }));
}), cr = /* @__PURE__ */ Y(function({ segment: a, ...u }, t) {
  let n = q(ue), d = q(De), i = n ?? d, c = Su(t), { segmentProps: r } = st(a, i, c), { focusProps: o, isFocused: s, isFocusVisible: m } = et(), { hoverProps: D, isHovered: x } = at({
    ...u,
    isDisabled: i.isDisabled || a.type === "literal"
  }), v = Ce({
    ...u,
    values: {
      ...a,
      isReadOnly: i.isReadOnly,
      isInvalid: i.isInvalid,
      isDisabled: i.isDisabled,
      isHovered: x,
      isFocused: s,
      isFocusVisible: m
    },
    defaultChildren: a.text,
    defaultClassName: "react-aria-DateSegment"
  });
  return /* @__PURE__ */ V.createElement("span", {
    ...ae(me(u, {
      global: !0
    }), r, o, D),
    ...v,
    style: r.style,
    ref: c,
    "data-placeholder": a.isPlaceholder || void 0,
    "data-invalid": i.isInvalid || void 0,
    "data-readonly": i.isReadOnly || void 0,
    "data-disabled": i.isDisabled || void 0,
    "data-type": a.type,
    "data-hovered": x || void 0,
    "data-focused": s || void 0,
    "data-focus-visible": m || void 0
  });
});
export {
  lr as $,
  sr as a,
  cr as b,
  or as c,
  tt as d,
  xe as e,
  ke as f,
  nt as g,
  $t as h,
  he as i,
  oe as j,
  dr as k,
  ir as l,
  yu as m,
  Et as n,
  Ft as o
};
//# sourceMappingURL=DateField-Q8JgjnI7.es.js.map
