temporal-polyfill-lite 0.3.5 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ function getNameFromUnit(e) {
2
2
  return ie[e];
3
3
  }
4
4
  function nanosecondsForTimeUnit(e) {
5
- return se[e - 3];
5
+ return ce[e - 3];
6
6
  }
7
7
  function isObject(e) {
8
8
  return ("object" == typeof e || "function" == typeof e) && null !== e;
@@ -175,24 +175,24 @@ function roundTimeDurationByDays(e, t, o) {
175
175
  function divideTimeDurationToFloatingPoint(e, t) {
176
176
  return t <= 1e9 ? timeDurationToSubsecondsNumber(e, -9 + Math.log10(t), !0) : i / t * e[0] + e[1] / t;
177
177
  }
178
- function interpretISODateTimeOffset(e, t, o, n, r, a, i, c) {
178
+ function interpretISODateTimeOffset(e, t, o, n, r, a, i, s) {
179
179
  if (!t) return getStartOfDay(r, e);
180
- const s = combineIsoDateAndTimeRecord(e, t);
181
- if (o === y || o === F && "ignore" == i) return getEpochNanosecondsFor(r, s, a);
182
- if (o === S || o === F && "use" == i) return validateEpochNanoseconds(getUtcEpochNanoseconds(balanceIsoDateTime(s.o.t, s.o.u, s.o.T, s.p.D, s.p.I, s.p.O, s.p.F, s.p.S, s.p.$ - n)));
180
+ const c = combineIsoDateAndTimeRecord(e, t);
181
+ if (o === y || o === F && "ignore" == i) return getEpochNanosecondsFor(r, c, a);
182
+ if (o === S || o === F && "use" == i) return validateEpochNanoseconds(getUtcEpochNanoseconds(balanceIsoDateTime(c.o.t, c.o.u, c.o.T, c.p.D, c.p.I, c.p.O, c.p.F, c.p.S, c.p.$ - n)));
183
183
  ((e) => {
184
184
  Math.abs(isoDateToEpochDays(e.t, e.u - 1, e.T)) > 1e8 && throwRangeError(me);
185
185
  })(e);
186
- const l = getPossibleEpochNanoseconds(r, s);
186
+ const l = getPossibleEpochNanoseconds(r, c);
187
187
  for (const e of l) {
188
188
  const t = getOffsetNanosecondsFor(r, e);
189
189
  if (t === n) return e;
190
- if (!c && roundNumberToIncrement(t, 6e10, "halfExpand") === n) return e;
190
+ if (!s && roundNumberToIncrement(t, 6e10, "halfExpand") === n) return e;
191
191
  }
192
- return "reject" === i && throwRangeError("time zone offset mismatch"), disambiguatePossibleEpochNanoseconds(l, r, s, a);
192
+ return "reject" === i && throwRangeError("time zone offset mismatch"), disambiguatePossibleEpochNanoseconds(l, r, c, a);
193
193
  }
194
194
  function toTemporalZonedDateTime(e, t) {
195
- let o, n, r, a, i, c, s, l = !1, d = !0;
195
+ let o, n, r, a, i, s, c, l = !1, d = !0;
196
196
  if (isObject(e)) {
197
197
  if (isZonedDateTime(e)) {
198
198
  const o = getOptionsObject(t);
@@ -217,16 +217,16 @@ function toTemporalZonedDateTime(e, t) {
217
217
  const d = getOptionsObject(t);
218
218
  r = getTemporalDisambiguationOption(d), a = getTemporalOffsetOption(d, p);
219
219
  const m = interpretTemporalDateTimeFields(i, l, getTemporalOverflowOption(d));
220
- c = m.o, s = m.p;
220
+ s = m.o, c = m.p;
221
221
  } else {
222
222
  validateString(e);
223
223
  const m = parseIsoDateTime(e, [Xe]);
224
224
  o = toTemporalTimeZoneIdentifier(m.P.R), n = m.P.N, l = m.P.Z, i = canonicalizeCalendar(m.Y || "iso8601"), d = !1, n && (d = hasUtcOffsetSubMinuteParts(n));
225
225
  const u = getOptionsObject(t);
226
- r = getTemporalDisambiguationOption(u), a = getTemporalOffsetOption(u, p), getTemporalOverflowOption(u), c = createIsoDateRecord(m.t, m.u, m.T), s = m.p;
226
+ r = getTemporalDisambiguationOption(u), a = getTemporalOffsetOption(u, p), getTemporalOverflowOption(u), s = createIsoDateRecord(m.t, m.u, m.T), c = m.p;
227
227
  }
228
228
  const m = l ? S : n ? F : y;
229
- return createZonedDateTimeSlot(interpretISODateTimeOffset(c, s, m, m === F ? parseDateTimeUtcOffset(n) : 0, o, r, a, d), o, i);
229
+ return createZonedDateTimeSlot(interpretISODateTimeOffset(s, c, m, m === F ? parseDateTimeUtcOffset(n) : 0, o, r, a, d), o, i);
230
230
  }
231
231
  function createTemporalZonedDateTime(e, t, o, n) {
232
232
  return createTemporalZonedDateTimeFromSlot(createZonedDateTimeSlot(e, t, o, ((e, t) => Pe[e] && Pe[e].C(clampEpochSecond(t)))(t, epochSeconds(e))), n);
@@ -239,9 +239,9 @@ function createZonedDateTimeSlot(e, t, o, n) {
239
239
  W: n
240
240
  };
241
241
  }
242
- function temporalZonedDateTimeToString(e, t, o, n, r, a = 1, i = G, c = M) {
243
- const s = roundTemporalInstant(e.U, a, i, c), l = epochSeconds(s) === epochSeconds(e.U) ? getOffsetNanosecondsForZonedDateTimeSlot(e) : getOffsetNanosecondsFor(e.P, s);
244
- return `${isoDateTimeToString(getIsoDateTimeFromOffsetNanoseconds(s, l), "iso8601", t, Y)}${r === W ? "" : formatDateTimeUtcOffsetRounded(l)}${n === L ? "" : `[${n === k ? "!" : ""}${e.P}]`}${formatCalendarAnnotation(e.Y, o)}`;
242
+ function temporalZonedDateTimeToString(e, t, o, n, r, a = 1, i = G, s = M) {
243
+ const c = roundTemporalInstant(e.U, a, i, s), l = epochSeconds(c) === epochSeconds(e.U) ? getOffsetNanosecondsForZonedDateTimeSlot(e) : getOffsetNanosecondsFor(e.P, c);
244
+ return `${isoDateTimeToString(getIsoDateTimeFromOffsetNanoseconds(c, l), "iso8601", t, Y)}${r === W ? "" : formatDateTimeUtcOffsetRounded(l)}${n === L ? "" : `[${n === k ? "!" : ""}${e.P}]`}${formatCalendarAnnotation(e.Y, o)}`;
245
245
  }
246
246
  function addZonedDateTime(e, t, o) {
247
247
  if (0 === dateDurationSign(t.A)) return addInstant(e.U, t.p);
@@ -253,9 +253,9 @@ function differenceZonedDateTime(e, t, o) {
253
253
  if (!n) return combineDateAndTimeDuration(zeroDateDuration(), createTimeDurationFromSeconds(0));
254
254
  const r = getIsoDateTimeForZonedDateTimeSlot(e), a = getIsoDateTimeForZonedDateTimeSlot(t);
255
255
  if (!compareIsoDate(r.o, a.o)) return combineDateAndTimeDuration(zeroDateDuration(), timeDurationFromEpochNanosecondsDifference(t.U, e.U));
256
- let i, c = differenceTime(r.p, a.p);
257
- for (let o = vt(c) === n ? 1 : 0; o <= (3 - n) / 2 && (i = combineIsoDateAndTimeRecord(addDaysToIsoDate(a.o, o * n), r.p), c = timeDurationFromEpochNanosecondsDifference(t.U, getEpochNanosecondsFor(e.P, i, g)), vt(c) === n); o++);
258
- return combineDateAndTimeDuration(calendarDateUntil(e.Y, r.o, i.o, largerOfTwoTemporalUnits(o, H)), c);
256
+ let i, s = differenceTime(r.p, a.p);
257
+ for (let o = vt(s) === n ? 1 : 0; o <= (3 - n) / 2 && (i = combineIsoDateAndTimeRecord(addDaysToIsoDate(a.o, o * n), r.p), s = timeDurationFromEpochNanosecondsDifference(t.U, getEpochNanosecondsFor(e.P, i, g)), vt(s) === n); o++);
258
+ return combineDateAndTimeDuration(calendarDateUntil(e.Y, r.o, i.o, largerOfTwoTemporalUnits(o, H)), s);
259
259
  }
260
260
  function differenceZonedDateTimeWithRounding(e, t, o, n, r, a) {
261
261
  if (!isDateUnit(o)) return differenceInstant(e.U, t.U, n, r, a);
@@ -318,8 +318,8 @@ function createLruCache(e) {
318
318
  }
319
319
  };
320
320
  }
321
- function utcEpochMilliseconds(e, t, o, n = 0, a = 0, i = 0, c = 0) {
322
- return isoDateToEpochDays(e, t - 1, o) * r + Date.UTC(1970, 0, 1, n, a, i, c);
321
+ function utcEpochMilliseconds(e, t, o, n = 0, a = 0, i = 0, s = 0) {
322
+ return isoDateToEpochDays(e, t - 1, o) * r + Date.UTC(1970, 0, 1, n, a, i, s);
323
323
  }
324
324
  function clampEpochSecond(e) {
325
325
  return clamp(e, -1e10, Infinity);
@@ -328,15 +328,15 @@ function getNamedTimeZoneOffsetNanosecondsForEpochSecond(t, o, n) {
328
328
  if ("UTC" === t) return 0;
329
329
  const r = clampEpochSecond(o), a = Pe[t] ||= createLruCache(5e3), i = a.C(r);
330
330
  if (void 0 !== i) return i;
331
- const c = getFormatterForTimeZone(t).formatToParts(1e3 * r), s = (utcEpochMilliseconds(...[
331
+ const s = getFormatterForTimeZone(t).formatToParts(1e3 * r), c = (utcEpochMilliseconds(...[
332
332
  "year",
333
333
  "month",
334
334
  "day",
335
335
  "hour",
336
336
  "minute",
337
337
  "second"
338
- ].map((e) => toIntegerIfIntegral(c.find((t) => t.type === e).value))) - 1e3 * r) * e;
339
- return n || a.B(r, s), s;
338
+ ].map((e) => toIntegerIfIntegral(s.find((t) => t.type === e).value))) - 1e3 * r) * e;
339
+ return n || a.B(r, c), c;
340
340
  }
341
341
  function getFormatterForTimeZone(e) {
342
342
  return be[e] ||= new Pt("en-u-hc-h23", {
@@ -481,8 +481,8 @@ function toTemporalDateTime(e, t) {
481
481
  const o = parseIsoDateTime(e, [Qe]), n = canonicalizeCalendar(o.Y || "iso8601");
482
482
  return getTemporalOverflowOption(getOptionsObject(t)), createTemporalDateTime(combineIsoDateAndTimeRecord(createIsoDateRecord(o.t, o.u, o.T), o.p || midnightTimeRecord()), n);
483
483
  }
484
- function balanceIsoDateTime(e, t, o, n, r, a, i, c, s) {
485
- const l = balanceTime(n, r, a, i, c, s);
484
+ function balanceIsoDateTime(e, t, o, n, r, a, i, s, c) {
485
+ const l = balanceTime(n, r, a, i, s, c);
486
486
  return combineIsoDateAndTimeRecord(addDaysToIsoDate(createIsoDateRecord(e, t, o), l.K), l);
487
487
  }
488
488
  function createTemporalDateTime(e, t, o = Object.create(Ne.prototype)) {
@@ -506,14 +506,14 @@ function differenceISODateTime(e, t, o, n) {
506
506
  const a = vt(r);
507
507
  let i = t.o;
508
508
  a === compareIsoDate(e.o, t.o) && (i = addDaysToIsoDate(i, a), r = add24HourDaysToTimeDuration(r, -a));
509
- const c = largerOfTwoTemporalUnits(H, n), s = calendarDateUntil(o, e.o, i, c);
510
- return n !== c && (r = add24HourDaysToTimeDuration(r, s.K), s.K = 0), combineDateAndTimeDuration(s, r);
509
+ const s = largerOfTwoTemporalUnits(H, n), c = calendarDateUntil(o, e.o, i, s);
510
+ return n !== s && (r = add24HourDaysToTimeDuration(r, c.K), c.K = 0), combineDateAndTimeDuration(c, r);
511
511
  }
512
512
  function differencePlainDateTimeWithRounding(e, t, o, n, r, a, i) {
513
513
  if (!compareIsoDateTime(e, t)) return combineDateAndTimeDuration(zeroDateDuration(), createTimeDurationFromSeconds(0));
514
514
  validateIsoDateTime(e), validateIsoDateTime(t);
515
- const c = differenceISODateTime(e, t, o, n);
516
- return a === G && 1 === r ? c : roundRelativeDuration(c, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(t), e, void 0, o, n, r, a, i);
515
+ const s = differenceISODateTime(e, t, o, n);
516
+ return a === G && 1 === r ? s : roundRelativeDuration(s, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(t), e, void 0, o, n, r, a, i);
517
517
  }
518
518
  function differenceTemporalPlainDateTime(e, t, o, n) {
519
519
  const r = getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(o));
@@ -533,8 +533,8 @@ function differenceTemporalPlainDateTime(e, t, o, n) {
533
533
  ]));
534
534
  }
535
535
  function addDurationToDateTime(e, t, o, n) {
536
- const r = applySignToDurationSlot(toTemporalDuration(o), e), a = getTemporalOverflowOption(getOptionsObject(n)), i = toInternalDurationRecordWith24HourDays(r), c = addTime(t._.p, i.p);
537
- return createTemporalDateTime(combineIsoDateAndTimeRecord(calendarDateAdd(t.Y, t._.o, adjustDateDurationRecord(i.A, c.K), a), c), t.Y);
536
+ const r = applySignToDurationSlot(toTemporalDuration(o), e), a = getTemporalOverflowOption(getOptionsObject(n)), i = toInternalDurationRecordWith24HourDays(r), s = addTime(t._.p, i.p);
537
+ return createTemporalDateTime(combineIsoDateAndTimeRecord(calendarDateAdd(t.Y, t._.o, adjustDateDurationRecord(i.A, s.K), a), s), t.Y);
538
538
  }
539
539
  function validateIsoDateTime(e) {
540
540
  return ((e) => {
@@ -631,8 +631,8 @@ function addTime(e, t) {
631
631
  return n.K += o[0], n;
632
632
  }
633
633
  function roundTime(e, n, r, a) {
634
- const i = nanosecondsForTimeUnit(clamp(r - 1, 3, 8)), c = e.D * o + e.I * t + 1e9 * e.O + 1e6 * e.F + 1e3 * e.S + e.$;
635
- return balanceTime(0, 0, 0, 0, 0, divFloor(c, i) * i + roundNumberToIncrement(modFloor(c, i), n * nanosecondsForTimeUnit(r), a));
634
+ const i = nanosecondsForTimeUnit(clamp(r - 1, 3, 8)), s = e.D * o + e.I * t + 1e9 * e.O + 1e6 * e.F + 1e3 * e.S + e.$;
635
+ return balanceTime(0, 0, 0, 0, 0, divFloor(s, i) * i + roundNumberToIncrement(modFloor(s, i), n * nanosecondsForTimeUnit(r), a));
636
636
  }
637
637
  function differenceTemporalPlainTime(e, t, o, n) {
638
638
  const r = toTemporalTime(o), a = getDifferenceSettings(e, getOptionsObject(n), l, [], G, q);
@@ -702,11 +702,11 @@ function parseIsoDateTime(e, t) {
702
702
  throwRangeError(le);
703
703
  }
704
704
  function parseDateTimeUtcOffset(e) {
705
- const o = e.match(ct);
705
+ const o = e.match(st);
706
706
  return o || throwRangeError(le), Se(`${o[1]}1`) * (36e11 * Se(o[2]) + Se(o[4] || "") * t + 1e9 * Se(o[5] || "") + Se((o[6] || "").padEnd(9, "0")) + 0);
707
707
  }
708
708
  function hasUtcOffsetSubMinuteParts(e) {
709
- return !!e.match(ct)[5];
709
+ return !!e.match(st)[5];
710
710
  }
711
711
  function toTemporalMonthDay(e, t) {
712
712
  if (isObject(e)) {
@@ -725,7 +725,7 @@ function toTemporalMonthDay(e, t) {
725
725
  return getTemporalOverflowOption(getOptionsObject(t)), createTemporalMonthDay("iso8601" === n ? createIsoDateRecord(1972, o.u, o.T) : calendarMonthDayFromFields(n, isoDateToFields(n, validateIsoDate(createIsoDateRecord(o.t, o.u, o.T)), u), h), n);
726
726
  }
727
727
  function createTemporalMonthDay(e, t, o = Object.create(lt.prototype)) {
728
- return st.set(o, {
728
+ return ct.set(o, {
729
729
  o: validateIsoDate(e),
730
730
  Y: t
731
731
  }), o;
@@ -734,7 +734,7 @@ function temporalMonthDayToString(e, t) {
734
734
  return `${t === C || t === U || "iso8601" !== e.Y ? `${padIsoYear(e.o.t)}-` : ""}${toZeroPaddedDecimalString(e.o.u, 2)}-${toZeroPaddedDecimalString(e.o.T, 2)}${formatCalendarAnnotation(e.Y, t)}`;
735
735
  }
736
736
  function getInternalSlotForPlainMonthDay(e) {
737
- return st.get(e);
737
+ return ct.get(e);
738
738
  }
739
739
  function getInternalSlotOrThrowForPlainMonthDay(e) {
740
740
  const t = getInternalSlotForPlainMonthDay(e);
@@ -776,7 +776,7 @@ function temporalYearMonthToString(e, t) {
776
776
  function differenceTemporalPlainYearMonth(e, t, o, n) {
777
777
  const r = getInternalSlotOrThrowForPlainYearMonth(toTemporalYearMonth(o));
778
778
  calendarEquals(t.Y, r.Y) || throwRangeError(De);
779
- const a = getDifferenceSettings(e, getOptionsObject(n), s, [x, H], V, z);
779
+ const a = getDifferenceSettings(e, getOptionsObject(n), c, [x, H], V, z);
780
780
  if (!compareIsoDate(t.o, r.o)) return createTemporalDuration(createTemporalDurationSlot([
781
781
  0,
782
782
  0,
@@ -792,14 +792,14 @@ function differenceTemporalPlainYearMonth(e, t, o, n) {
792
792
  const i = calendarDateFromFields(t.Y, createNullPrototypeObject({
793
793
  ...isoDateToFields(t.Y, t.o, m),
794
794
  [Ft.T]: 1
795
- }), h), c = calendarDateFromFields(t.Y, createNullPrototypeObject({
795
+ }), h), s = calendarDateFromFields(t.Y, createNullPrototypeObject({
796
796
  ...isoDateToFields(t.Y, r.o, m),
797
797
  [Ft.T]: 1
798
798
  }), h);
799
- let l = combineDateAndTimeDuration(adjustDateDurationRecord(calendarDateUntil(t.Y, i, c, a.L), 0, 0), createTimeDurationFromSeconds(0));
799
+ let l = combineDateAndTimeDuration(adjustDateDurationRecord(calendarDateUntil(t.Y, i, s, a.L), 0, 0), createTimeDurationFromSeconds(0));
800
800
  if (a.H !== V || 1 !== a.V) {
801
801
  const e = combineIsoDateAndTimeRecord(i, midnightTimeRecord());
802
- l = roundRelativeDuration(l, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(c, midnightTimeRecord())), e, void 0, t.Y, a.L, a.V, a.H, a.q);
802
+ l = roundRelativeDuration(l, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(s, midnightTimeRecord())), e, void 0, t.Y, a.L, a.V, a.H, a.q);
803
803
  }
804
804
  return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(l, H), e));
805
805
  }
@@ -886,7 +886,7 @@ function compareIsoDate(e, t) {
886
886
  function differenceTemporalPlainDate(e, t, o, n) {
887
887
  const r = getInternalSlotOrThrowForPlainDate(toTemporalDate(o));
888
888
  calendarEquals(t.Y, r.Y) || throwRangeError(De);
889
- const a = getDifferenceSettings(e, getOptionsObject(n), s, [], H, H);
889
+ const a = getDifferenceSettings(e, getOptionsObject(n), c, [], H, H);
890
890
  if (!compareIsoDate(t.o, r.o)) return createTemporalDuration(createTemporalDurationSlot([
891
891
  0,
892
892
  0,
@@ -980,7 +980,7 @@ function calendarIntegersToEpochDays$6(e, t, o, n) {
980
980
  const r = getNewYear(e, t) + 30 * (o - 1);
981
981
  return r - yearMonthDay(e, r).T + n;
982
982
  }
983
- function daysInMonth$5(e, t, o) {
983
+ function daysInMonth$6(e, t, o) {
984
984
  return calendarIntegersToEpochDays$6(e, t, o + 1, 1) - calendarIntegersToEpochDays$6(e, t, o, 1);
985
985
  }
986
986
  function monthsInYear(e, t) {
@@ -1009,13 +1009,13 @@ function epochDaysToDate$6(e, t) {
1009
1009
  return t - getNewYear(e, o) + 1;
1010
1010
  },
1011
1011
  ie: {
1012
- ce: void 0,
1012
+ se: void 0,
1013
1013
  t: void 0
1014
1014
  },
1015
- se: 7,
1015
+ ce: 7,
1016
1016
  get le() {
1017
1017
  const o = yearMonthDay(e, t);
1018
- return daysInMonth$5(e, o.t, Math.round((t - o.T - getNewYear(e, o.t)) / 29.53) + 1);
1018
+ return daysInMonth$6(e, o.t, Math.round((t - o.T - getNewYear(e, o.t)) / 29.53) + 1);
1019
1019
  },
1020
1020
  get de() {
1021
1021
  const o = yearMonthDay(e, t).t;
@@ -1035,7 +1035,7 @@ function epoch$1(e) {
1035
1035
  function mathematicalInLeapYear$2(e) {
1036
1036
  return +!((e + 1) % 4);
1037
1037
  }
1038
- function daysInMonth$4(e, t) {
1038
+ function daysInMonth$5(e, t) {
1039
1039
  return 13 === t ? 5 + mathematicalInLeapYear$2(e) : 30;
1040
1040
  }
1041
1041
  function calendarIntegersToEpochDays$5(e, t, o, n) {
@@ -1056,7 +1056,7 @@ function calendarIntegersToEpochDays$4(e, t, o) {
1056
1056
  const n = (newYearEpochDays(e + 1) - newYearEpochDays(e)) % 30 - 24;
1057
1057
  return newYearEpochDays(e) + (isLeapYear$2(e) ? Math.round(29.53 * (t - 1) + .35) : Math.ceil(29.5 * (t - 1))) + (1 === n && t >= 3 ? 1 : -1 === n && t >= 4 ? -1 : 0) + o - 1;
1058
1058
  }
1059
- function daysInMonth$3(e, t) {
1059
+ function daysInMonth$4(e, t) {
1060
1060
  return calendarIntegersToEpochDays$4(e, t + 1, 1) - calendarIntegersToEpochDays$4(e, t, 1);
1061
1061
  }
1062
1062
  function mathematicalInLeapYear$1(e) {
@@ -1065,7 +1065,7 @@ function mathematicalInLeapYear$1(e) {
1065
1065
  function firstDayOfYear(e) {
1066
1066
  return isoDateToEpochDays(e + 78, 2, 22 - mathematicalInLeapYear$1(e));
1067
1067
  }
1068
- function daysInMonth$2(e, t) {
1068
+ function daysInMonth$3(e, t) {
1069
1069
  return t > 6 || 1 === t && !mathematicalInLeapYear$1(e) ? 30 : 31;
1070
1070
  }
1071
1071
  function calendarIntegersToEpochDays$3(e, t, o) {
@@ -1077,7 +1077,7 @@ function epoch(e) {
1077
1077
  function isLeapYear$1(e) {
1078
1078
  return modFloor(11 * (e + 4), 30) < 11;
1079
1079
  }
1080
- function daysInMonth$1(e, t) {
1080
+ function daysInMonth$2(e, t) {
1081
1081
  return 12 === t ? isLeapYear$1(e) ? 30 : 29 : 29 + t % 2;
1082
1082
  }
1083
1083
  function calendarIntegersToEpochDays$2(e, t, o, n) {
@@ -1097,11 +1097,11 @@ function epochDaysToDate$2(e, t) {
1097
1097
  re: isoDayOfWeek(epochDaysToIsoDate(t)),
1098
1098
  ae: t - calendarIntegersToEpochDays$2(e, o, 1, 1) + 1,
1099
1099
  ie: {
1100
- ce: void 0,
1100
+ se: void 0,
1101
1101
  t: void 0
1102
1102
  },
1103
- se: 7,
1104
- le: daysInMonth$1(o, n),
1103
+ ce: 7,
1104
+ le: daysInMonth$2(o, n),
1105
1105
  de: +isLeapYear$1(o) + 354,
1106
1106
  me: 12,
1107
1107
  ue: isLeapYear$1(o)
@@ -1153,6 +1153,9 @@ function getDate(e) {
1153
1153
  ae: e - n + 1
1154
1154
  };
1155
1155
  }
1156
+ function daysInMonth(e, t) {
1157
+ return t <= 6 ? 31 : 12 !== t || isLeapYear(e) ? 30 : 29;
1158
+ }
1156
1159
  function canonicalizeCalendar(e) {
1157
1160
  return "islamicc" === (e = asciiLowerCase(e)) ? "islamic-civil" : "ethiopic-amete-alem" === e ? "ethioaa" : Ot[e] ? e : throwRangeError(((e) => `calendar not supported in this polyfill: ${e}`)(e));
1158
1161
  }
@@ -1188,22 +1191,22 @@ function calendarDateUntil(e, t, o, n) {
1188
1191
  return o === z ? createDateDurationRecord(divTrunc(r, 12), r % 12 + 0, 0, i) : createDateDurationRecord(0, r, 0, i);
1189
1192
  })(t, o, n);
1190
1193
  const a = nonIsoCalendarIsoToDate(e, t), i = nonIsoCalendarIsoToDate(e, o);
1191
- let c, s = 0;
1192
- if (n === z) for (s = i.t - a.t; (c = nonIsoDateSurpasses(e, r, a, i, s, 0)).Te; s -= r);
1193
- const l = ("hebrew" === e ? (d = (c || a).t, m = (c || a).u, monthNumber(i.t, i.u) - monthNumber(d, m)) : isChineseDangi(e) ? (function(e, t, o, n, r) {
1194
+ let s, c = 0;
1195
+ if (n === z) for (c = i.t - a.t; (s = nonIsoDateSurpasses(e, r, a, i, c, 0)).Te; c -= r);
1196
+ const l = ("hebrew" === e ? (d = (s || a).t, m = (s || a).u, monthNumber(i.t, i.u) - monthNumber(d, m)) : isChineseDangi(e) ? (function(e, t, o, n, r) {
1194
1197
  if (t === n) return r - o;
1195
- const a = calendarIntegersToEpochDays$6(e, t, o, 1), i = calendarIntegersToEpochDays$6(e, n, r, 1), c = sign(i - a);
1198
+ const a = calendarIntegersToEpochDays$6(e, t, o, 1), i = calendarIntegersToEpochDays$6(e, n, r, 1), s = sign(i - a);
1196
1199
  if (Math.abs(i - a) <= 15e6) return Math.round((i - a) / 29.5306);
1197
- let s = 0, l = a;
1198
- for (; (i - l) * c > 0;) {
1199
- let t = l + clamp(15e6, 1, Math.abs(i - l)) * c;
1200
- t -= yearMonthDay(e, t).T - 1, s += Math.round((t - l) / 29.5306), l = t;
1200
+ let c = 0, l = a;
1201
+ for (; (i - l) * s > 0;) {
1202
+ let t = l + clamp(15e6, 1, Math.abs(i - l)) * s;
1203
+ t -= yearMonthDay(e, t).T - 1, c += Math.round((t - l) / 29.5306), l = t;
1201
1204
  }
1202
- return s;
1203
- })(e, (c || a).t, (c || a).u, i.t, i.u) : (i.t - (c || a).t) * a.me + i.u - (c || a).u) - (r * (a.T - i.T) > 0 ? r : 0);
1205
+ return c;
1206
+ })(e, (s || a).t, (s || a).u, i.t, i.u) : (i.t - (s || a).t) * a.me + i.u - (s || a).u) - (r * (a.T - i.T) > 0 ? r : 0);
1204
1207
  var d, m;
1205
- const u = nonIsoDateSurpasses(e, r, a, i, s, l);
1206
- return createDateDurationRecord(s, l, 0, isoDateRecordToEpochDays(o) - isoDateRecordToEpochDays(calendarIntegersToIso(e, u.t, u.u, constrainDay(e, u.t, u.u, a.T, h))));
1208
+ const u = nonIsoDateSurpasses(e, r, a, i, c, l);
1209
+ return createDateDurationRecord(c, l, 0, isoDateRecordToEpochDays(o) - isoDateRecordToEpochDays(calendarIntegersToIso(e, u.t, u.u, constrainDay(e, u.t, u.u, a.T, h))));
1207
1210
  }
1208
1211
  function calendarDateToIso(e, t, o) {
1209
1212
  const n = t[Ft.t], r = t[Ft.u], a = mapUnlessUndefined(t[Ft.v], parseMonthCode), i = t[Ft.T];
@@ -1212,44 +1215,40 @@ function calendarDateToIso(e, t, o) {
1212
1215
  year: n + ("buddhist" === e ? -543 : "roc" === e ? 1911 : 0)
1213
1216
  }, o);
1214
1217
  a && constrainMonthCode(e, n, a, o);
1215
- const c = constrainMonth(e, n, r, o);
1216
- return calendarIntegersToIso(e, n, c, constrainDay(e, n, c, i, o));
1218
+ const s = constrainMonth(e, n, r, o);
1219
+ return calendarIntegersToIso(e, n, s, constrainDay(e, n, s, i, o));
1217
1220
  }
1218
1221
  function nonIsoCalendarIsoToDate(e, t) {
1219
- const o = isoDateRecordToEpochDays(t);
1220
- if (isIsoLikeCalendar(e)) {
1221
- const n = {
1222
- ...isoCalendarIsoToDate(t),
1223
- ie: {
1224
- t: void 0,
1225
- ce: void 0
1226
- }
1227
- };
1228
- if ("japanese" === e) {
1229
- const r = o >= 18017 ? "reiwa" : o >= 6947 ? "heisei" : o >= -15713 ? "showa" : o >= -20974 ? "taisho" : o >= -35428 ? "meiji" : t.t > 0 ? "ce" : "bce", a = Ot[e].get(r);
1230
- return {
1231
- oe: r,
1232
- ne: "bce" === r ? 1 - t.t : t.t - a + 1,
1233
- ...n
1234
- };
1222
+ const o = isoDateRecordToEpochDays(t), n = {
1223
+ ...isoCalendarIsoToDate(t),
1224
+ ie: {
1225
+ t: void 0,
1226
+ se: void 0
1235
1227
  }
1236
- return "gregory" === e ? {
1237
- oe: t.t > 0 ? "ce" : "bce",
1238
- ne: t.t > 0 ? t.t : 1 - t.t,
1228
+ };
1229
+ if ("japanese" === e) {
1230
+ const r = o >= 18017 ? "reiwa" : o >= 6947 ? "heisei" : o >= -15713 ? "showa" : o >= -20974 ? "taisho" : o >= -35428 ? "meiji" : t.t > 0 ? "ce" : "bce", a = Ot[e].get(r);
1231
+ return {
1232
+ oe: r,
1233
+ ne: "bce" === r ? 1 - t.t : t.t - a + 1,
1239
1234
  ...n
1240
- } : "buddhist" === e ? {
1241
- oe: "be",
1242
- ne: t.t + 543,
1243
- ...n,
1244
- t: t.t + 543
1245
- } : {
1246
- oe: t.t >= 1912 ? "roc" : "broc",
1247
- ne: t.t >= 1912 ? t.t - 1911 : 1912 - t.t,
1248
- ...n,
1249
- t: t.t - 1911
1250
1235
  };
1251
1236
  }
1252
- return isCopticOrEthiopic(e) ? ((e, t) => {
1237
+ return "gregory" === e ? {
1238
+ oe: t.t > 0 ? "ce" : "bce",
1239
+ ne: t.t > 0 ? t.t : 1 - t.t,
1240
+ ...n
1241
+ } : "buddhist" === e ? {
1242
+ oe: "be",
1243
+ ne: t.t + 543,
1244
+ ...n,
1245
+ t: t.t + 543
1246
+ } : "roc" === e ? {
1247
+ oe: t.t >= 1912 ? "roc" : "broc",
1248
+ ne: t.t >= 1912 ? t.t - 1911 : 1912 - t.t,
1249
+ ...n,
1250
+ t: t.t - 1911
1251
+ } : isCopticOrEthiopic(e) ? ((e, t) => {
1253
1252
  const o = divFloor(t - epoch$1(e) + 365, 365.25) - 1, n = t - calendarIntegersToEpochDays$5(e, o, 1, 1) + 1, r = divFloor(n - 1, 30) + 1;
1254
1253
  return {
1255
1254
  oe: "coptic" === e || "ethiopic" === e && o > 0 ? "am" : "aa",
@@ -1261,11 +1260,11 @@ function nonIsoCalendarIsoToDate(e, t) {
1261
1260
  re: isoDayOfWeek(epochDaysToIsoDate(t)),
1262
1261
  ae: n,
1263
1262
  ie: {
1264
- ce: void 0,
1263
+ se: void 0,
1265
1264
  t: void 0
1266
1265
  },
1267
- se: 7,
1268
- le: daysInMonth$4(o, r),
1266
+ ce: 7,
1267
+ le: daysInMonth$5(o, r),
1269
1268
  de: mathematicalInLeapYear$2(o) + 365,
1270
1269
  me: 13,
1271
1270
  ue: !!mathematicalInLeapYear$2(o)
@@ -1284,11 +1283,11 @@ function nonIsoCalendarIsoToDate(e, t) {
1284
1283
  re: isoDayOfWeek(t),
1285
1284
  ae: e - firstDayOfYear(o) + 1,
1286
1285
  ie: {
1287
- ce: void 0,
1286
+ se: void 0,
1288
1287
  t: void 0
1289
1288
  },
1290
- se: 7,
1291
- le: daysInMonth$2(o, r),
1289
+ ce: 7,
1290
+ le: daysInMonth$3(o, r),
1292
1291
  de: 365 + n,
1293
1292
  me: 12,
1294
1293
  ue: !!n
@@ -1315,13 +1314,13 @@ function nonIsoCalendarIsoToDate(e, t) {
1315
1314
  return getDate(e).ae;
1316
1315
  },
1317
1316
  ie: {
1318
- ce: void 0,
1317
+ se: void 0,
1319
1318
  t: void 0
1320
1319
  },
1321
- se: 7,
1320
+ ce: 7,
1322
1321
  get le() {
1323
1322
  const t = getDate(e);
1324
- return t.u <= 6 ? 31 : 12 !== t.u || isLeapYear(t.t) ? 30 : 29;
1323
+ return daysInMonth(t.t, t.u);
1325
1324
  },
1326
1325
  get de() {
1327
1326
  return isLeapYear(getDate(e).t) ? 366 : 365;
@@ -1354,10 +1353,10 @@ function nonIsoCalendarIsoToDate(e, t) {
1354
1353
  return e - getFirstDayOfMonth(getYearMonthDay(e).t, 1) + 1;
1355
1354
  },
1356
1355
  ie: {
1357
- ce: void 0,
1356
+ se: void 0,
1358
1357
  t: void 0
1359
1358
  },
1360
- se: 7,
1359
+ ce: 7,
1361
1360
  get le() {
1362
1361
  const t = getYearMonthDay(e);
1363
1362
  return getFirstDayOfMonth(t.t, t.u + 1) - getFirstDayOfMonth(t.t, t.u);
@@ -1388,11 +1387,11 @@ function nonIsoCalendarIsoToDate(e, t) {
1388
1387
  re: isoDayOfWeek(t),
1389
1388
  ae: e - calendarIntegersToEpochDays$4(o, 1, 1) + 1,
1390
1389
  ie: {
1391
- ce: void 0,
1390
+ se: void 0,
1392
1391
  t: void 0
1393
1392
  },
1394
- se: 7,
1395
- le: daysInMonth$3(o, n),
1393
+ ce: 7,
1394
+ le: daysInMonth$4(o, n),
1396
1395
  de: calendarIntegersToEpochDays$4(o + 1, 1, 1) - calendarIntegersToEpochDays$4(o, 1, 1),
1397
1396
  me: isLeapYear$2(o) ? 13 : 12,
1398
1397
  ue: isLeapYear$2(o)
@@ -1433,7 +1432,7 @@ function isChineseDangi(e) {
1433
1432
  return "chinese" === e || "dangi" === e;
1434
1433
  }
1435
1434
  function constrainDay(e, t, o, n, r) {
1436
- const a = "persian" === e ? ((e, t, o) => t <= 6 ? clamp(o, 1, 31) : 12 !== t ? clamp(o, 1, 30) : o < 30 ? o : clamp(o, 1, isLeapYear(e) ? 30 : 29))(t, o, n) : "islamic-umalqura" === e ? constrainDay$2(t, o, n) : isChineseDangi(e) ? ((e, t, o, n) => n <= 29 ? n : clamp(n, 1, daysInMonth$5(e, t, o)))(e, t, o, n) : clamp(n, 1, isCopticOrEthiopic(e) ? daysInMonth$4(t, o) : "indian" === e ? daysInMonth$2(t, o) : "hebrew" === e ? daysInMonth$3(t, o) : daysInMonth$1(t, o));
1435
+ const a = "persian" === e ? ((e, t, o) => o < 30 ? o : clamp(o, 1, daysInMonth(e, t)))(t, o, n) : "islamic-umalqura" === e ? constrainDay$2(t, o, n) : isChineseDangi(e) ? ((e, t, o, n) => n <= 29 ? n : clamp(n, 1, daysInMonth$6(e, t, o)))(e, t, o, n) : clamp(n, 1, isCopticOrEthiopic(e) ? daysInMonth$5(t, o) : "indian" === e ? daysInMonth$3(t, o) : "hebrew" === e ? daysInMonth$4(t, o) : daysInMonth$2(t, o));
1437
1436
  return n !== a && "reject" === r ? throwRangeError(me) : a;
1438
1437
  }
1439
1438
  function constrainMonth(e, t, o, n) {
@@ -1537,19 +1536,11 @@ function calendarMonthDayFromFields(e, t, o) {
1537
1536
  const n = t[Ft.t];
1538
1537
  let r = t[Ft.u], a = mapUnlessUndefined(t[Ft.v], parseMonthCode), i = t[Ft.T];
1539
1538
  return void 0 !== n ? (a || (r = constrainMonth(e, n, r, o)), a = a ? constrainMonthCode(e, n, a, o) : parseMonthCode(nonIsoCalendarIsoToDate(e, calendarIntegersToIso(e, n, r, 1)).v), i = constrainDay(e, n, r, i, o), validateIsoDate(calendarIntegersToIso(e, n, r, i))) : i = ((e, t, o, n) => {
1540
- if (isChineseDangi(e)) {
1541
- const e = clamp(o, 1, 30);
1542
- return o !== e && "reject" === n ? throwRangeError(me) : e;
1539
+ if (isChineseDangi(e) || "islamic-umalqura" === e || "persian" === e) {
1540
+ const r = clamp(o, 1, "persian" === e && t[0] <= 6 ? 31 : 30);
1541
+ return o !== r && "reject" === n ? throwRangeError(me) : r;
1543
1542
  }
1544
- if ("islamic-umalqura" === e) {
1545
- const e = clamp(o, 1, 30);
1546
- return o !== e && "reject" === n ? throwRangeError(me) : e;
1547
- }
1548
- if ("persian" === e) {
1549
- const e = clamp(o, 1, t[0] <= 6 ? 31 : 30);
1550
- return o !== e && "reject" === n ? throwRangeError(me) : e;
1551
- }
1552
- return "hebrew" === e ? t[1] ? constrainDay(e, 3, 6, o, n) : constrainDay(e, 1, t[0], o, n) : isCopticOrEthiopic(e) ? constrainDay(e, 3, t[0], o, n) : constrainDay(e, 2, t[0], o, n);
1543
+ return "hebrew" === e ? t[1] ? constrainDay(e, 3, 6, o, n) : constrainDay(e, 1, t[0], o, n) : constrainDay(e, isCopticOrEthiopic(e) ? 3 : 2, t[0], o, n);
1553
1544
  })(e, a, i, o), isChineseDangi(e) && a[1] && (1 === a[0] || 12 === a[0] || 30 === i && (2 === a[0] || isWithin(a[0], 8, 11))) && ("reject" === o && throwRangeError(me), a[1] = !1), isCopticOrEthiopic(e) ? epochDaysToIsoDate(((e, t) => 13 === e && 6 === t ? 618 : (30 * (e - 1) + t + 252) % 365 + 731)(a[0], i)) : "indian" === e ? epochDaysToIsoDate(((e, t) => calendarIntegersToEpochDays$3(30 * e + t <= 310 ? 1894 : 1893, e, t))(a[0], i)) : "persian" === e ? epochDaysToIsoDate(((e, t) => {
1554
1545
  if (12 === e && 30 === t) {
1555
1546
  for (let o = 1350;; o--) if (isLeapYear(o)) return calendarIntegersToEpochDays(o, e, t);
@@ -1572,7 +1563,18 @@ function calendarMonthDayFromFields(e, t, o) {
1572
1563
  const t = calendarIntegersToEpochDays$6(e, 30 === n ? 1969 : 1972, 11, n);
1573
1564
  return t <= 1095 ? t : calendarIntegersToEpochDays$6(e, 1971, 12, n);
1574
1565
  }
1575
- return calendarIntegersToEpochDays$6(e, ((e, t, o, n) => 12 === t ? 1971 : !o && (n < 30 || 2 === t || 5 === t || 7 === t || 9 === t || 10 === t) ? 1972 : o ? 2 === t ? 1947 : 3 === t ? 30 === n ? 1955 : 1966 : 4 === t ? 30 === n ? 1944 : 1963 : 5 === t ? 30 === n ? 1952 : 1971 : 6 === t ? 30 === n ? 1941 : 1960 : 7 === t ? 30 === n ? 1938 : 1968 : 8 === t ? 1957 : 9 === t ? 2014 : 10 === t ? 1984 : 2033 : 1 === t || 4 === t ? 1970 : 3 === t ? "chinese" === e ? 1966 : 1968 : 1971)(e, t, o, n), r, n);
1566
+ return calendarIntegersToEpochDays$6(e, ((e, t, o, n) => 12 === t ? 1971 : !o && (n < 30 || 2 === t || 5 === t || 7 === t || 9 === t || 10 === t) ? 1972 : o ? [
1567
+ 1947,
1568
+ 30 === n ? 1955 : 1966,
1569
+ 30 === n ? 1944 : 1963,
1570
+ 30 === n ? 1952 : 1971,
1571
+ 30 === n ? 1941 : 1960,
1572
+ 30 === n ? 1938 : 1968,
1573
+ 1957,
1574
+ 2014,
1575
+ 1984,
1576
+ 2033
1577
+ ][t - 2] : 1 === t || 4 === t ? 1970 : 3 === t ? "chinese" === e ? 1966 : 1968 : 1971)(e, t, o, n), r, n);
1576
1578
  })(e, a[0], a[1], i)) : epochDaysToIsoDate(((e, t, o) => calendarIntegersToEpochDays$2(e, 12 === t && 30 === o ? 1390 : +(30 * t + o <= 356 - +("islamic-civil" === e)) + 1391, t, o))(e, a[0], i));
1577
1579
  })(e, t, o);
1578
1580
  }
@@ -1592,13 +1594,13 @@ function isoWeekOfYear(e) {
1592
1594
  const t = e.t, o = divFloor(isoDayOfYear(e) + 10 - isoDayOfWeek(e), 7);
1593
1595
  return o < 1 ? {
1594
1596
  t: t - 1,
1595
- ce: isoWeeksInYear(t - 1)
1597
+ se: isoWeeksInYear(t - 1)
1596
1598
  } : o > isoWeeksInYear(t) ? {
1597
1599
  t: t + 1,
1598
- ce: 1
1600
+ se: 1
1599
1601
  } : {
1600
1602
  t,
1601
- ce: o
1603
+ se: o
1602
1604
  };
1603
1605
  }
1604
1606
  function isoDayOfYear(e) {
@@ -1616,7 +1618,7 @@ function isoCalendarIsoToDate(e) {
1616
1618
  re: isoDayOfWeek(e),
1617
1619
  ae: isoDayOfYear(e),
1618
1620
  ie: isoWeekOfYear(e),
1619
- se: 7,
1621
+ ce: 7,
1620
1622
  le: isoDaysInMonth(e.t, e.u),
1621
1623
  de: (t = e.t, 365 + mathematicalInLeapYear(t)),
1622
1624
  me: 12,
@@ -1635,12 +1637,12 @@ function isoResolveFields(e, t) {
1635
1637
  const o = mapUnlessUndefined(e[Ft.v], parseMonthCode);
1636
1638
  o && ((o[0] > 12 || o[1] || void 0 !== e[Ft.u] && o[0] !== e[Ft.u]) && throwRangeError(ge), e[Ft.u] = o[0]);
1637
1639
  }
1638
- function calendarResolveFields(e, t, o = s) {
1639
- "iso8601" === e ? isoResolveFields(t, o) : (function(e, t, o = s) {
1640
+ function calendarResolveFields(e, t, o = c) {
1641
+ "iso8601" === e ? isoResolveFields(t, o) : (function(e, t, o = c) {
1640
1642
  const n = t[Ft.oe], r = t[Ft.ne];
1641
1643
  let a = t[Ft.t];
1642
- const i = t[Ft.v], c = t[Ft.u], l = t[Ft.T];
1643
- if (o === u && void 0 !== i && void 0 === c || void 0 !== a || calendarSupportsEraForNonIsoCalendars(e) && void 0 !== n && void 0 !== r || throwTypeError(missingField("year, era, eraYear")), calendarSupportsEraForNonIsoCalendars(e) && void 0 === n != (void 0 === r) && throwTypeError(), o !== m && void 0 === l && throwTypeError(missingField("day")), c === i && throwTypeError(missingField("month, monthCode")), calendarSupportsEraForNonIsoCalendars(e) && void 0 !== r) {
1644
+ const i = t[Ft.v], s = t[Ft.u], l = t[Ft.T];
1645
+ if (o === u && void 0 !== i && void 0 === s || void 0 !== a || calendarSupportsEraForNonIsoCalendars(e) && void 0 !== n && void 0 !== r || throwTypeError(missingField("year, era, eraYear")), calendarSupportsEraForNonIsoCalendars(e) && void 0 === n != (void 0 === r) && throwTypeError(), o !== m && void 0 === l && throwTypeError(missingField("day")), s === i && throwTypeError(missingField("month, monthCode")), calendarSupportsEraForNonIsoCalendars(e) && void 0 !== r) {
1644
1646
  const o = ((e, t, o) => {
1645
1647
  const n = canonicalizeEraInCalendar(e, t), r = Ot[e].get(n);
1646
1648
  return !1 === r ? 1 - o : r + o - 1;
@@ -1654,7 +1656,7 @@ function calendarResolveFields(e, t, o = s) {
1654
1656
  const n = t[Ft.t];
1655
1657
  if (void 0 !== n) {
1656
1658
  const r = monthCodeToOrdinal(e, n, constrainMonthCode(e, n, o, h));
1657
- void 0 !== c && c !== r && throwRangeError(ge), t[Ft.u] = r;
1659
+ void 0 !== s && s !== r && throwRangeError(ge), t[Ft.u] = r;
1658
1660
  }
1659
1661
  }
1660
1662
  })(e, t, o);
@@ -1746,7 +1748,7 @@ function toTemporalPartialDurationRecord(e) {
1746
1748
  6,
1747
1749
  2,
1748
1750
  0
1749
- ].map((t) => mapUnlessUndefined(e[ce[t]], toIntegerIfIntegral));
1751
+ ].map((t) => mapUnlessUndefined(e[se[t]], toIntegerIfIntegral));
1750
1752
  return t.every((e) => void 0 === e) && throwTypeError(Ie), [
1751
1753
  9,
1752
1754
  5,
@@ -1766,8 +1768,8 @@ function createTemporalDurationSlot(e) {
1766
1768
  function createTemporalDuration(e, t = Object.create(Et.prototype)) {
1767
1769
  return wt.set(t, e), t;
1768
1770
  }
1769
- function timeDurationFromComponents(e, t, o, n, c, s) {
1770
- return addTimeDuration(addTimeDuration(addTimeDuration(createTimeDurationFromSeconds(3600 * e + 60 * t + o), normalize(divTrunc(m = n, r), m % r * 1e6)), (d = c, normalize(Math.round((d - d % a) / a), d % a * 1e3))), (l = s, normalize(Math.round((l - l % i) / i), l % i)));
1771
+ function timeDurationFromComponents(e, t, o, n, s, c) {
1772
+ return addTimeDuration(addTimeDuration(addTimeDuration(createTimeDurationFromSeconds(3600 * e + 60 * t + o), normalize(divTrunc(m = n, r), m % r * 1e6)), (d = s, normalize(Math.round((d - d % a) / a), d % a * 1e3))), (l = c, normalize(Math.round((l - l % i) / i), l % i)));
1771
1773
  var l, d, m;
1772
1774
  }
1773
1775
  function add24HourDaysToTimeDuration(e, t) {
@@ -1789,11 +1791,11 @@ function roundTimeDuration(e, t, o, n) {
1789
1791
  function totalTimeDuration(e, t) {
1790
1792
  return divideTimeDurationToFloatingPoint(e, nanosecondsForTimeUnit(t));
1791
1793
  }
1792
- function computeNudgeWindow(e, t, o, n, r, a, i, c, s) {
1794
+ function computeNudgeWindow(e, t, o, n, r, a, i, s, c) {
1793
1795
  let l, d, m, u, T;
1794
- if (c === z) l = roundNumberToIncrement(t.A.ee, i, M) + (s ? i * e : 0), d = l + i * e, m = createDateDurationRecord(l, 0, 0, 0), u = createDateDurationRecord(d, 0, 0, 0);
1795
- else if (c === V) l = roundNumberToIncrement(t.A.te, i, M) + (s ? i * e : 0), d = l + i * e, m = adjustDateDurationRecord(t.A, 0, 0, l), u = adjustDateDurationRecord(t.A, 0, 0, d);
1796
- else if (c === x) {
1796
+ if (s === z) l = roundNumberToIncrement(t.A.ee, i, M) + (c ? i * e : 0), d = l + i * e, m = createDateDurationRecord(l, 0, 0, 0), u = createDateDurationRecord(d, 0, 0, 0);
1797
+ else if (s === V) l = roundNumberToIncrement(t.A.te, i, M) + (c ? i * e : 0), d = l + i * e, m = adjustDateDurationRecord(t.A, 0, 0, l), u = adjustDateDurationRecord(t.A, 0, 0, d);
1798
+ else if (s === x) {
1797
1799
  const o = calendarDateAdd(a, n.o, adjustDateDurationRecord(t.A, 0, 0), h);
1798
1800
  l = roundNumberToIncrement(t.A.X + calendarDateUntil(a, o, addDaysToIsoDate(o, t.A.K), x).X, i, M), d = l + i * e, m = adjustDateDurationRecord(t.A, 0, l), u = adjustDateDurationRecord(t.A, 0, d);
1799
1801
  } else l = roundNumberToIncrement(t.A.K, i, M), d = l + i * e, m = adjustDateDurationRecord(t.A, l), u = adjustDateDurationRecord(t.A, d);
@@ -1812,65 +1814,65 @@ function computeNudgeWindow(e, t, o, n, r, a, i, c, s) {
1812
1814
  Ie: u
1813
1815
  };
1814
1816
  }
1815
- function nudgeToCalendarUnit(e, t, o, n, r, a, i, c, s, l) {
1816
- let d = !1, m = computeNudgeWindow(e, t, o, r, a, i, c, s, !1);
1817
- compareEpochNanoseconds(m.pe, n) * compareEpochNanoseconds(m.ge, n) > 0 && (m = computeNudgeWindow(e, t, o, r, a, i, c, s, !0), d = !0);
1817
+ function nudgeToCalendarUnit(e, t, o, n, r, a, i, s, c, l) {
1818
+ let d = !1, m = computeNudgeWindow(e, t, o, r, a, i, s, c, !1);
1819
+ compareEpochNanoseconds(m.pe, n) * compareEpochNanoseconds(m.ge, n) > 0 && (m = computeNudgeWindow(e, t, o, r, a, i, s, c, !0), d = !0);
1818
1820
  const u = differenceEpochNanoseconds(m.pe, n), T = differenceEpochNanoseconds(m.pe, m.ge);
1819
1821
  let D = m.fe, h = m.pe;
1820
- return roundNumberToIncrement(m.he + ((e, t, o) => signTimeDuration(e) ? ve(e, t) ? ve(addTimeDuration(e, e), t) * o / 5 + .5 : 1 : 0)(u, T, e) * c * e, c, l) === m.De && (d = !0, D = m.Ie, h = m.ge), {
1822
+ return roundNumberToIncrement(m.he + ((e, t, o) => signTimeDuration(e) ? ve(e, t) ? ve(addTimeDuration(e, e), t) * o / 5 + .5 : 1 : 0)(u, T, e) * s * e, s, l) === m.De && (d = !0, D = m.Ie, h = m.ge), {
1821
1823
  Oe: {
1822
1824
  Fe: combineDateAndTimeDuration(D, createTimeDurationFromSeconds(0)),
1823
1825
  Se: h,
1824
1826
  ye: d
1825
1827
  },
1826
- we: m.he + divideTimeDurationToFloatingPoint(u, 1e9) / divideTimeDurationToFloatingPoint(T, 1e9) * c * e
1828
+ we: m.he + divideTimeDurationToFloatingPoint(u, 1e9) / divideTimeDurationToFloatingPoint(T, 1e9) * s * e
1827
1829
  };
1828
1830
  }
1829
- function roundRelativeDuration(e, t, o, n, r, a, i, c, s, l) {
1830
- const d = internalDurationSign(e) || 1, m = isCalendarUnit(s) || r && s === H ? nudgeToCalendarUnit(d, e, t, o, n, r, a, c, s, l).Oe : r ? ((e, t, o, n, r, a, i, c) => {
1831
- const s = calendarDateAdd(r, o.o, t.A, h), l = combineIsoDateAndTimeRecord(s, o.p), d = combineIsoDateAndTimeRecord(addDaysToIsoDate(s, e), o.p), m = getEpochNanosecondsFor(n, l, g), u = getEpochNanosecondsFor(n, d, g), T = timeDurationFromEpochNanosecondsDifference(u, m), D = nanosecondsForTimeUnit(i);
1832
- let p = roundTimeDurationToIncrement(t.p, a * D, c);
1831
+ function roundRelativeDuration(e, t, o, n, r, a, i, s, c, l) {
1832
+ const d = internalDurationSign(e) || 1, m = isCalendarUnit(c) || r && c === H ? nudgeToCalendarUnit(d, e, t, o, n, r, a, s, c, l).Oe : r ? ((e, t, o, n, r, a, i, s) => {
1833
+ const c = calendarDateAdd(r, o.o, t.A, h), l = combineIsoDateAndTimeRecord(c, o.p), d = combineIsoDateAndTimeRecord(addDaysToIsoDate(c, e), o.p), m = getEpochNanosecondsFor(n, l, g), u = getEpochNanosecondsFor(n, d, g), T = timeDurationFromEpochNanosecondsDifference(u, m), D = nanosecondsForTimeUnit(i);
1834
+ let p = roundTimeDurationToIncrement(t.p, a * D, s);
1833
1835
  const f = addTimeDuration(p, negateTimeDuration(T));
1834
1836
  let I, O = !1, F = 0;
1835
- return vt(f) !== -e ? (O = !0, F = e, p = roundTimeDurationToIncrement(f, a * D, c), I = addTimeDurationToEpochNanoseconds(u, p)) : I = addTimeDurationToEpochNanoseconds(u, p), {
1837
+ return vt(f) !== -e ? (O = !0, F = e, p = roundTimeDurationToIncrement(f, a * D, s), I = addTimeDurationToEpochNanoseconds(u, p)) : I = addTimeDurationToEpochNanoseconds(u, p), {
1836
1838
  Fe: combineDateAndTimeDuration(adjustDateDurationRecord(t.A, t.A.K + F), p),
1837
1839
  Se: I,
1838
1840
  ye: O
1839
1841
  };
1840
- })(d, e, n, r, a, c, s, l) : (function(e, t, o, n, r, a) {
1841
- const i = add24HourDaysToTimeDuration(e.p, e.A.K), c = r === H ? roundTimeDurationByDays(i, n, a) : roundTimeDurationToIncrement(i, nanosecondsForTimeUnit(r) * n, a), s = c[0], [l, d] = isDateUnit(o) ? [s, addTimeDuration(c, timeDurationFromComponents(24 * -s, 0, 0, 0, 0, 0))] : [0, c];
1842
+ })(d, e, n, r, a, s, c, l) : (function(e, t, o, n, r, a) {
1843
+ const i = add24HourDaysToTimeDuration(e.p, e.A.K), s = r === H ? roundTimeDurationByDays(i, n, a) : roundTimeDurationToIncrement(i, nanosecondsForTimeUnit(r) * n, a), c = s[0], [l, d] = isDateUnit(o) ? [c, addTimeDuration(s, timeDurationFromComponents(24 * -c, 0, 0, 0, 0, 0))] : [0, s];
1842
1844
  return {
1843
1845
  Fe: combineDateAndTimeDuration(adjustDateDurationRecord(e.A, l), d),
1844
- Se: addTimeDurationToEpochNanoseconds(t, addTimeDuration(c, negateTimeDuration(i))),
1845
- ye: sign(s - i[0]) === vt(i)
1846
+ Se: addTimeDurationToEpochNanoseconds(t, addTimeDuration(s, negateTimeDuration(i))),
1847
+ ye: sign(c - i[0]) === vt(i)
1846
1848
  };
1847
- })(e, o, i, c, s, l);
1848
- return m.ye && s !== x ? ((e, t, o, n, r, a, i, c) => {
1849
- if (c === i) return t;
1850
- const s = i;
1849
+ })(e, o, i, s, c, l);
1850
+ return m.ye && c !== x ? ((e, t, o, n, r, a, i, s) => {
1851
+ if (s === i) return t;
1852
+ const c = i;
1851
1853
  let l;
1852
- for (let i = c - 1; i >= s; i--) if (i !== X || s === X) {
1854
+ for (let i = s - 1; i >= c; i--) if (i !== X || c === X) {
1853
1855
  l = i === _ ? createDateDurationRecord(t.A.ee + e, 0, 0, 0) : i === K ? adjustDateDurationRecord(t.A, 0, 0, t.A.te + e) : adjustDateDurationRecord(t.A, 0, t.A.X + e);
1854
- const c = combineIsoDateAndTimeRecord(calendarDateAdd(a, n.o, l, h), n.p);
1855
- if (vt(differenceEpochNanoseconds(r ? getEpochNanosecondsFor(r, c, "compatible") : getUtcEpochNanoseconds(c), o)) === -e) break;
1856
+ const s = combineIsoDateAndTimeRecord(calendarDateAdd(a, n.o, l, h), n.p);
1857
+ if (vt(differenceEpochNanoseconds(r ? getEpochNanosecondsFor(r, s, "compatible") : getUtcEpochNanoseconds(s), o)) === -e) break;
1856
1858
  t = combineDateAndTimeDuration(l, createTimeDurationFromSeconds(0));
1857
1859
  }
1858
1860
  return t;
1859
- })(d, m.Fe, m.Se, n, r, a, i, largerOfTwoTemporalUnits(s, H)) : m.Fe;
1861
+ })(d, m.Fe, m.Se, n, r, a, i, largerOfTwoTemporalUnits(c, H)) : m.Fe;
1860
1862
  }
1861
1863
  function totalRelativeDuration(e, t, o, n, r, a, i) {
1862
1864
  return isCalendarUnit(i) || r && i === H ? nudgeToCalendarUnit(internalDurationSign(e) || 1, e, t, o, n, r, a, 1, i, M).we : totalTimeDuration(add24HourDaysToTimeDuration(e.p, e.A.K), i);
1863
1865
  }
1864
1866
  function temporalDurationToString(e, t) {
1865
- const o = durationSign(e), n = timeDurationFromComponents(0, 0, (e = applySignToDurationSlot(e, o))[oe], e[ne], e[re], e[ae]), [, , , r, a, i, c] = balanceTimeDuration(n, J), [s, l, d, m, u, T] = [
1867
+ const o = durationSign(e), n = timeDurationFromComponents(0, 0, (e = applySignToDurationSlot(e, o))[oe], e[ne], e[re], e[ae]), [, , , r, a, i, s] = balanceTimeDuration(n, J), [c, l, d, m, u, T] = [
1866
1868
  "Y",
1867
1869
  "M",
1868
1870
  "W",
1869
1871
  "D",
1870
1872
  "H",
1871
1873
  "M"
1872
- ].map((t, o) => e[o] ? `${e[o]}${t}` : ""), D = `${u}${T}${vt(n) || defaultTemporalLargestUnit(e) >= J || void 0 !== t ? `${toString(r)}${formatFractionalSeconds(1e6 * a + 1e3 * i + c, t)}S` : ""}`;
1873
- return `${o < 0 ? "-" : ""}P${s}${l}${d}${m}${D && `T${D}`}`;
1874
+ ].map((t, o) => e[o] ? `${e[o]}${t}` : ""), D = `${u}${T}${vt(n) || defaultTemporalLargestUnit(e) >= J || void 0 !== t ? `${toString(r)}${formatFractionalSeconds(1e6 * a + 1e3 * i + s, t)}S` : ""}`;
1875
+ return `${o < 0 ? "-" : ""}P${c}${l}${d}${m}${D && `T${D}`}`;
1874
1876
  }
1875
1877
  function addDurations(e, t, o) {
1876
1878
  const n = applySignToDurationSlot(toTemporalDuration(o), e), r = largerOfTwoTemporalUnits(defaultTemporalLargestUnit(t), defaultTemporalLargestUnit(n));
@@ -1897,7 +1899,7 @@ function balanceTimeDuration(e, t) {
1897
1899
  0,
1898
1900
  0
1899
1901
  ].slice(0, o - Q),
1900
- o > oe ? timeDurationToSubsecondsNumber(e, 18 - 3 * o) : divTrunc((r = e, r[0] * n + divTrunc(r[1], 1e9)), se[o - Q] / 1e9),
1902
+ o > oe ? timeDurationToSubsecondsNumber(e, 18 - 3 * o) : divTrunc((r = e, r[0] * n + divTrunc(r[1], 1e9)), ce[o - Q] / 1e9),
1901
1903
  ...[
1902
1904
  0,
1903
1905
  1,
@@ -1905,7 +1907,7 @@ function balanceTimeDuration(e, t) {
1905
1907
  3,
1906
1908
  4,
1907
1909
  5
1908
- ].map((t) => divTrunc(e[1], se[t + 1]) % (se[t] / se[t + 1]) + 0).slice(o - Q)
1910
+ ].map((t) => divTrunc(e[1], ce[t + 1]) % (ce[t] / ce[t + 1]) + 0).slice(o - Q)
1909
1911
  ];
1910
1912
  var r;
1911
1913
  }
@@ -1926,7 +1928,7 @@ function roundHalfEven(e) {
1926
1928
  }
1927
1929
  function isoDateToEpochDays(e, t, o) {
1928
1930
  const n = balanceIsoYearMonth(e, t + 1);
1929
- return Date.UTC(n.t % 400 - 400, n.u - 1, 0) / r + (divTrunc(n.t, 400) + 1) * c + o;
1931
+ return Date.UTC(n.t % 400 - 400, n.u - 1, 0) / r + (divTrunc(n.t, 400) + 1) * s + o;
1930
1932
  }
1931
1933
  function isoDateRecordToEpochDays(e) {
1932
1934
  return isoDateToEpochDays(e.t, e.u - 1, e.T);
@@ -1978,18 +1980,18 @@ function getTemporalFractionalSecondDigitsOption(e) {
1978
1980
  function toSecondsStringPrecisionRecord(e, t) {
1979
1981
  return e ? {
1980
1982
  $e: e === B ? D : 3 * (e - 6),
1981
- Ee: e,
1982
- ve: 1
1983
+ ve: e,
1984
+ Ee: 1
1983
1985
  } : {
1984
1986
  $e: t,
1985
- Ee: divFloor((t ?? 9) - 1, 3) + 7,
1986
- ve: 10 ** ((9 - (t ?? 9)) % 3)
1987
+ ve: divFloor((t ?? 9) - 1, 3) + 7,
1988
+ Ee: 10 ** ((9 - (t ?? 9)) % 3)
1987
1989
  };
1988
1990
  }
1989
1991
  function getTemporalUnitValuedOption(e, t, o) {
1990
1992
  return mapUnlessUndefined(getOption(e, t, [
1991
1993
  ...ie,
1992
- ...ce,
1994
+ ...se,
1993
1995
  "auto"
1994
1996
  ], o), (e) => {
1995
1997
  return "auto" === e ? "auto" : (t = e.replace(/s$/, ""), ie.indexOf(t));
@@ -1997,19 +1999,19 @@ function getTemporalUnitValuedOption(e, t, o) {
1997
1999
  });
1998
2000
  }
1999
2001
  function validateTemporalUnitValue(e, t, o = []) {
2000
- void 0 === e || o.includes(e) || ("auto" === e && throwRangeError(disallowedUnit(e)), (e <= H && t === l || e > H && t === s) && throwRangeError(disallowedUnit(e)));
2002
+ void 0 === e || o.includes(e) || ("auto" === e && throwRangeError(disallowedUnit(e)), (e <= H && t === l || e > H && t === c) && throwRangeError(disallowedUnit(e)));
2001
2003
  }
2002
2004
  function getTemporalRelativeToOption(e) {
2003
2005
  const t = e.relativeTo;
2004
2006
  if (void 0 === t) return createNullPrototypeObject();
2005
- let o, n, r, a, i, c = !0, s = F;
2007
+ let o, n, r, a, i, s = !0, c = F;
2006
2008
  if (isObject(t)) {
2007
2009
  if (isZonedDateTime(t)) return createNullPrototypeObject({ Me: getInternalSlotOrThrowForZonedDateTime(t) });
2008
2010
  if (isPlainDate(t)) return createNullPrototypeObject({ be: getInternalSlotOrThrowForPlainDate(t) });
2009
2011
  const e = getInternalSlotForPlainDateTime(t);
2010
2012
  if (e) return createNullPrototypeObject({ be: getInternalSlotOrThrowForPlainDate(createTemporalDate(e._.o, e.Y)) });
2011
2013
  r = getTemporalCalendarIdentifierWithIsoDefault(t);
2012
- const c = prepareCalendarFields(r, t, [
2014
+ const s = prepareCalendarFields(r, t, [
2013
2015
  Ft.t,
2014
2016
  Ft.u,
2015
2017
  Ft.v,
@@ -2022,14 +2024,14 @@ function getTemporalRelativeToOption(e) {
2022
2024
  Ft.$,
2023
2025
  Ft.M,
2024
2026
  Ft.P
2025
- ], []), l = interpretTemporalDateTimeFields(r, c, h);
2026
- a = l.o, i = l.p, o = c.timeZone, n = c.offset, s = n ? F : y;
2027
+ ], []), l = interpretTemporalDateTimeFields(r, s, h);
2028
+ a = l.o, i = l.p, o = s.timeZone, n = s.offset, c = n ? F : y;
2027
2029
  } else {
2028
2030
  validateString(t);
2029
2031
  const e = parseIsoDateTime(t, [Xe, Qe]);
2030
- n = e.P.N, e.P.R ? (o = toTemporalTimeZoneIdentifier(e.P.R), s = e.P.Z ? S : n ? F : y, c = void 0 !== n && hasUtcOffsetSubMinuteParts(n)) : o = void 0, r = canonicalizeCalendar(e.Y || "iso8601"), a = createIsoDateRecord(e.t, e.u, e.T), i = e.p;
2032
+ n = e.P.N, e.P.R ? (o = toTemporalTimeZoneIdentifier(e.P.R), c = e.P.Z ? S : n ? F : y, s = void 0 !== n && hasUtcOffsetSubMinuteParts(n)) : o = void 0, r = canonicalizeCalendar(e.Y || "iso8601"), a = createIsoDateRecord(e.t, e.u, e.T), i = e.p;
2031
2033
  }
2032
- return createNullPrototypeObject(o ? { Me: getInternalSlotOrThrowForZonedDateTime(createTemporalZonedDateTime(interpretISODateTimeOffset(a, i, s, s === F ? parseDateTimeUtcOffset(n) : 0, o, g, O, c), o, r)) } : { be: getInternalSlotOrThrowForPlainDate(createTemporalDate(a, r)) });
2034
+ return createNullPrototypeObject(o ? { Me: getInternalSlotOrThrowForZonedDateTime(createTemporalZonedDateTime(interpretISODateTimeOffset(a, i, c, c === F ? parseDateTimeUtcOffset(n) : 0, o, g, O, s), o, r)) } : { be: getInternalSlotOrThrowForPlainDate(createTemporalDate(a, r)) });
2033
2035
  }
2034
2036
  function largerOfTwoTemporalUnits(e, t) {
2035
2037
  return e < t ? e : t;
@@ -2087,28 +2089,28 @@ function isoDateToFields(e, t, o) {
2087
2089
  }
2088
2090
  function getDifferenceSettings(e, t, o, n, r, a) {
2089
2091
  let i = getTemporalUnitValuedOption(t, "largestUnit", void 0) ?? "auto";
2090
- const c = getRoundingIncrementOption(t), s = getRoundingModeOption(t, M), l = getTemporalUnitValuedOption(t, "smallestUnit", void 0) ?? r;
2091
- return validateTemporalUnitValue(i, o, ["auto"]), n.includes(i) && throwRangeError(disallowedUnit(i)), validateTemporalUnitValue(l, o), n.includes(l) && throwRangeError(disallowedUnit(l)), "auto" === i && (i = largerOfTwoTemporalUnits(a, l)), i > l && throwRangeError(pe), isDateUnit(l) || validateTemporalRoundingIncrement(c, maximumTemporalDurationRoundingIncrement(l), !1), {
2092
+ const s = getRoundingIncrementOption(t), c = getRoundingModeOption(t, M), l = getTemporalUnitValuedOption(t, "smallestUnit", void 0) ?? r;
2093
+ return validateTemporalUnitValue(i, o, ["auto"]), n.includes(i) && throwRangeError(disallowedUnit(i)), validateTemporalUnitValue(l, o), n.includes(l) && throwRangeError(disallowedUnit(l)), "auto" === i && (i = largerOfTwoTemporalUnits(a, l)), i > l && throwRangeError(pe), isDateUnit(l) || validateTemporalRoundingIncrement(s, maximumTemporalDurationRoundingIncrement(l), !1), {
2092
2094
  H: l,
2093
2095
  L: i,
2094
- q: -1 === e ? negateRoundingMode(s) : s,
2095
- V: c
2096
+ q: -1 === e ? negateRoundingMode(c) : c,
2097
+ V: s
2096
2098
  };
2097
2099
  }
2098
2100
  function getUtcEpochNanoseconds(e) {
2099
2101
  return addNanosecondsToEpochSeconds(createEpochNanosecondsFromEpochMilliseconds(utcEpochMilliseconds(e.o.t, e.o.u, e.o.T, e.p.D, e.p.I, e.p.O, e.p.F)), 1e3 * e.p.S + e.p.$);
2100
2102
  }
2101
2103
  function epochDaysToIsoDate(e) {
2102
- const t = new Date(modFloor(e, c) * r);
2104
+ const t = new Date(modFloor(e, s) * r);
2103
2105
  return {
2104
- t: t.getUTCFullYear() + 400 * divFloor(e, c),
2106
+ t: t.getUTCFullYear() + 400 * divFloor(e, s),
2105
2107
  u: t.getUTCMonth() + 1,
2106
2108
  T: t.getUTCDate()
2107
2109
  };
2108
2110
  }
2109
2111
  function isoDateTimeToFields(e, t) {
2110
2112
  return createNullPrototypeObject({
2111
- ...isoDateToFields(e, t.o, s),
2113
+ ...isoDateToFields(e, t.o, c),
2112
2114
  [Ft.D]: t.p.D,
2113
2115
  [Ft.I]: t.p.I,
2114
2116
  [Ft.O]: t.p.O,
@@ -2188,7 +2190,7 @@ function createDateTimeFormat(e, t = createNullPrototypeObject(), o, n, r = Obje
2188
2190
  const o = e[t];
2189
2191
  return "timeZone" === t && void 0 !== n ? (void 0 !== o && throwTypeError("disallowed field: timeZone"), a[t] = n) : void 0 === o ? o : a[t] = "hour12" === t ? ((e) => !!e)(o) : "fractionalSecondDigits" === t ? Se(o) : toString(o);
2190
2192
  } }));
2191
- return (o === s && a.timeStyle || o === l && a.dateStyle) && throwTypeError(Te), a.calendar = i.resolvedOptions().calendar, void 0 === n || hasAnyOptions(a, [
2193
+ return (o === c && a.timeStyle || o === l && a.dateStyle) && throwTypeError(Te), a.calendar = i.resolvedOptions().calendar, void 0 === n || hasAnyOptions(a, [
2192
2194
  ...Nt,
2193
2195
  ...Zt,
2194
2196
  "timeZoneName"
@@ -2219,8 +2221,8 @@ function handleDateTimeValue(e, t) {
2219
2221
  function DateTimeFormat(e, t) {
2220
2222
  return new Ct(e, t);
2221
2223
  }
2222
- function createTemporalInstant(e, t = Object.create(jt.prototype)) {
2223
- return Ut.set(t, { U: e }), t;
2224
+ function createTemporalInstant(e, t = Object.create(Wt.prototype)) {
2225
+ return jt.set(t, { U: e }), t;
2224
2226
  }
2225
2227
  function toTemporalInstant$1(e) {
2226
2228
  if (isObject(e)) {
@@ -2259,23 +2261,23 @@ function validateEpochNanoseconds(e) {
2259
2261
  return ((e) => compareEpochNanoseconds(ye, e) * compareEpochNanoseconds(we, e) <= 0)(e) || throwRangeError(me), e;
2260
2262
  }
2261
2263
  function getInternalSlotForInstant(e) {
2262
- return Ut.get(e);
2264
+ return jt.get(e);
2263
2265
  }
2264
2266
  function getInternalSlotOrThrowForInstant(e) {
2265
2267
  const t = getInternalSlotForInstant(e);
2266
2268
  return t || throwTypeError(he), t;
2267
2269
  }
2268
2270
  function isInstant(e) {
2269
- return Ut.has(e);
2271
+ return jt.has(e);
2270
2272
  }
2271
2273
  function clampEpochNanoseconds(e) {
2272
2274
  return compareEpochNanoseconds(e, we) > 0 ? we : compareEpochNanoseconds(e, ye) < 0 ? ye : e;
2273
2275
  }
2274
2276
  function systemTimeZoneIdentifier() {
2275
- return zt && Vt + zt > Date.now() && kt ? kt : (Vt = Date.now(), kt = new Pt().resolvedOptions().timeZone);
2277
+ return Vt && xt + Vt > Date.now() && zt ? zt : (xt = Date.now(), zt = new Pt().resolvedOptions().timeZone);
2276
2278
  }
2277
2279
  function setSystemTimeZoneIdCacheTtl(e) {
2278
- zt = e, e || (kt = void 0, Vt = -Infinity);
2280
+ Vt = e, e || (zt = void 0, xt = -Infinity);
2279
2281
  }
2280
2282
  function systemUtcEpochNanoseconds() {
2281
2283
  return createEpochNanosecondsFromEpochMilliseconds(Date.now());
@@ -2283,7 +2285,7 @@ function systemUtcEpochNanoseconds() {
2283
2285
  function systemDateTime(e = systemTimeZoneIdentifier()) {
2284
2286
  return getIsoDateTimeForZonedDateTimeSlot(createZonedDateTimeSlot(systemUtcEpochNanoseconds(), toTemporalTimeZoneIdentifier(e), "iso8601"));
2285
2287
  }
2286
- const e = 1e6, t = 6e10, o = 36e11, n = 86400, r = 864e5, a = 864e8, i = 864e11, c = 146097, s = Symbol(), l = Symbol(), d = Symbol(), m = Symbol(), u = Symbol(), T = Symbol(), D = Symbol(), h = "constrain", p = "reject", g = "compatible", f = "later", I = "prefer", O = "reject", F = Symbol(), S = Symbol(), y = Symbol(), w = "ceil", v = "floor", E = "expand", M = "trunc", b = "halfCeil", P = "halfFloor", R = "halfExpand", N = "halfTrunc", Z = "halfEven", $ = "auto", C = "always", Y = "never", U = "critical", j = "auto", W = "never", A = "auto", L = "never", k = "critical", z = 0, V = 1, x = 2, H = 3, q = 4, B = 5, J = 6, G = 9, _ = 0, K = 1, X = 2, Q = 3, ee = 4, te = 5, oe = 6, ne = 7, re = 8, ae = 9, ie = [
2288
+ const e = 1e6, t = 6e10, o = 36e11, n = 86400, r = 864e5, a = 864e8, i = 864e11, s = 146097, c = Symbol(), l = Symbol(), d = Symbol(), m = Symbol(), u = Symbol(), T = Symbol(), D = Symbol(), h = "constrain", p = "reject", g = "compatible", f = "later", I = "prefer", O = "reject", F = Symbol(), S = Symbol(), y = Symbol(), w = "ceil", v = "floor", E = "expand", M = "trunc", b = "halfCeil", P = "halfFloor", R = "halfExpand", N = "halfTrunc", Z = "halfEven", $ = "auto", C = "always", Y = "never", U = "critical", j = "auto", W = "never", A = "auto", L = "never", k = "critical", z = 0, V = 1, x = 2, H = 3, q = 4, B = 5, J = 6, G = 9, _ = 0, K = 1, X = 2, Q = 3, ee = 4, te = 5, oe = 6, ne = 7, re = 8, ae = 9, ie = [
2287
2289
  "year",
2288
2290
  "month",
2289
2291
  "week",
@@ -2294,7 +2296,7 @@ const e = 1e6, t = 6e10, o = 36e11, n = 86400, r = 864e5, a = 864e8, i = 864e11,
2294
2296
  "millisecond",
2295
2297
  "microsecond",
2296
2298
  "nanosecond"
2297
- ], ce = ie.map((e) => `${e}s`), se = [
2299
+ ], se = ie.map((e) => `${e}s`), ce = [
2298
2300
  i,
2299
2301
  o,
2300
2302
  t,
@@ -2371,7 +2373,7 @@ var Me = class {
2371
2373
  return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ae;
2372
2374
  }
2373
2375
  get weekOfYear() {
2374
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ie.ce;
2376
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ie.se;
2375
2377
  }
2376
2378
  get yearOfWeek() {
2377
2379
  return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ie.t;
@@ -2381,7 +2383,7 @@ var Me = class {
2381
2383
  return timeDurationToSubsecondsNumber(differenceEpochNanoseconds(getStartOfDay(e.P, t), getStartOfDay(e.P, addDaysToIsoDate(t, 1))), -9) / o;
2382
2384
  }
2383
2385
  get daysInWeek() {
2384
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).se;
2386
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ce;
2385
2387
  }
2386
2388
  get daysInMonth() {
2387
2389
  return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).le;
@@ -2419,8 +2421,8 @@ var Me = class {
2419
2421
  Ft.S,
2420
2422
  Ft.$,
2421
2423
  Ft.M
2422
- ])), i = getOptionsObject(t), c = getTemporalDisambiguationOption(i), s = getTemporalOffsetOption(i, I), l = getTemporalOverflowOption(i), d = interpretTemporalDateTimeFields(o.Y, a, l);
2423
- return createTemporalZonedDateTime(interpretISODateTimeOffset(d.o, d.p, F, parseDateTimeUtcOffset(a[Ft.M]), o.P, c, s, !0), o.P, o.Y);
2424
+ ])), i = getOptionsObject(t), s = getTemporalDisambiguationOption(i), c = getTemporalOffsetOption(i, I), l = getTemporalOverflowOption(i), d = interpretTemporalDateTimeFields(o.Y, a, l);
2425
+ return createTemporalZonedDateTime(interpretISODateTimeOffset(d.o, d.p, F, parseDateTimeUtcOffset(a[Ft.M]), o.P, s, c, !0), o.P, o.Y);
2424
2426
  }
2425
2427
  withPlainTime(e = void 0) {
2426
2428
  const t = getInternalSlotOrThrowForZonedDateTime(this), o = getIsoDateTimeForZonedDateTimeSlot(t);
@@ -2454,22 +2456,22 @@ var Me = class {
2454
2456
  const e = getStartOfDay(t.P, i.o), o = getStartOfDay(t.P, addDaysToIsoDate(i.o, 1));
2455
2457
  return createTemporalZonedDateTime(addNanosecondsToEpochSeconds(e, roundNumberToIncrement(timeDurationToSubsecondsNumber(differenceEpochNanoseconds(e, t.U), -9), timeDurationToSubsecondsNumber(differenceEpochNanoseconds(e, o), -9), r)), t.P, t.Y);
2456
2458
  }
2457
- const c = roundIsoDateTime(i, n, a, r), s = getOffsetNanosecondsForZonedDateTimeSlot(t);
2458
- return createTemporalZonedDateTime(interpretISODateTimeOffset(c.o, c.p, F, s, t.P, g, I, !0), t.P, t.Y);
2459
+ const s = roundIsoDateTime(i, n, a, r), c = getOffsetNanosecondsForZonedDateTimeSlot(t);
2460
+ return createTemporalZonedDateTime(interpretISODateTimeOffset(s.o, s.p, F, c, t.P, g, I, !0), t.P, t.Y);
2459
2461
  }
2460
2462
  equals(e) {
2461
2463
  const t = getInternalSlotOrThrowForZonedDateTime(this), o = toTemporalZonedDateTime(e);
2462
2464
  return !compareEpochNanoseconds(t.U, o.U) && timeZoneEquals(t.P, o.P) && calendarEquals(t.Y, o.Y);
2463
2465
  }
2464
2466
  toString(e = void 0) {
2465
- const t = getInternalSlotOrThrowForZonedDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = ((e) => getOption(e, "offset", [j, W], j))(o), i = getRoundingModeOption(o, M), c = getTemporalUnitValuedOption(o, "smallestUnit", void 0), s = ((e) => getOption(e, "timeZoneName", [
2467
+ const t = getInternalSlotOrThrowForZonedDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = ((e) => getOption(e, "offset", [j, W], j))(o), i = getRoundingModeOption(o, M), s = getTemporalUnitValuedOption(o, "smallestUnit", void 0), c = ((e) => getOption(e, "timeZoneName", [
2466
2468
  A,
2467
2469
  L,
2468
2470
  k
2469
2471
  ], A))(o);
2470
- validateTemporalUnitValue(c, l), c === q && throwRangeError(invalidField("smallestUnit"));
2471
- const d = toSecondsStringPrecisionRecord(c, r);
2472
- return temporalZonedDateTimeToString(t, d.$e, n, s, a, d.ve, d.Ee, i);
2472
+ validateTemporalUnitValue(s, l), s === q && throwRangeError(invalidField("smallestUnit"));
2473
+ const d = toSecondsStringPrecisionRecord(s, r);
2474
+ return temporalZonedDateTimeToString(t, d.$e, n, c, a, d.Ee, d.ve, i);
2473
2475
  }
2474
2476
  toLocaleString(e = void 0, t = void 0) {
2475
2477
  const o = getInternalSlotOrThrowForZonedDateTime(this), n = createDateTimeFormat(e, t, d, o.P), r = getInternalSlotOrThrowForDateTimeFormat(n);
@@ -2513,7 +2515,7 @@ var Me = class {
2513
2515
  defineStringTag(Me.prototype, "Temporal.ZonedDateTime"), renameFunction(Me, "ZonedDateTime");
2514
2516
  const be = createNullPrototypeObject(), Pe = createNullPrototypeObject(), Re = /* @__PURE__ */ new WeakMap();
2515
2517
  var Ne = class {
2516
- constructor(e, t, o, n = 0, r = 0, a = 0, i = 0, c = 0, s = 0, l = "iso8601") {
2518
+ constructor(e, t, o, n = 0, r = 0, a = 0, i = 0, s = 0, c = 0, l = "iso8601") {
2517
2519
  const d = [
2518
2520
  e,
2519
2521
  t,
@@ -2523,8 +2525,8 @@ var Ne = class {
2523
2525
  r,
2524
2526
  a,
2525
2527
  i,
2526
- c,
2527
- s
2528
+ s,
2529
+ c
2528
2530
  ].map(toIntegerWithTruncation);
2529
2531
  validateString(l);
2530
2532
  const u = canonicalizeCalendar(l);
@@ -2591,7 +2593,7 @@ var Ne = class {
2591
2593
  }
2592
2594
  get weekOfYear() {
2593
2595
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2594
- return calendarIsoToDate(e.Y, e._.o).ie.ce;
2596
+ return calendarIsoToDate(e.Y, e._.o).ie.se;
2595
2597
  }
2596
2598
  get yearOfWeek() {
2597
2599
  const e = getInternalSlotOrThrowForPlainDateTime(this);
@@ -2599,7 +2601,7 @@ var Ne = class {
2599
2601
  }
2600
2602
  get daysInWeek() {
2601
2603
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2602
- return calendarIsoToDate(e.Y, e._.o).se;
2604
+ return calendarIsoToDate(e.Y, e._.o).ce;
2603
2605
  }
2604
2606
  get daysInMonth() {
2605
2607
  const e = getInternalSlotOrThrowForPlainDateTime(this);
@@ -2664,8 +2666,8 @@ var Ne = class {
2664
2666
  toString(e = void 0) {
2665
2667
  const t = getInternalSlotOrThrowForPlainDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = getRoundingModeOption(o, M), i = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2666
2668
  validateTemporalUnitValue(i, l), i === q && throwRangeError(invalidField("smallestUnit"));
2667
- const c = toSecondsStringPrecisionRecord(i, r);
2668
- return isoDateTimeToString(validateIsoDateTime(roundIsoDateTime(t._, c.ve, c.Ee, a)), t.Y, c.$e, n);
2669
+ const s = toSecondsStringPrecisionRecord(i, r);
2670
+ return isoDateTimeToString(validateIsoDateTime(roundIsoDateTime(t._, s.Ee, s.ve, a)), t.Y, s.$e, n);
2669
2671
  }
2670
2672
  toLocaleString(e = void 0, t = void 0) {
2671
2673
  return getInternalSlotOrThrowForPlainDateTime(this), formatDateTime(createDateTimeFormat(e, t, d), this);
@@ -2761,7 +2763,7 @@ var $e = class {
2761
2763
  const t = getInternalSlotOrThrowForPlainTime(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, M), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2762
2764
  validateTemporalUnitValue(a, l), a === q && throwRangeError(invalidField("smallestUnit"));
2763
2765
  const i = toSecondsStringPrecisionRecord(a, n);
2764
- return timeRecordToString(roundTime(t, i.ve, i.Ee, r), i.$e);
2766
+ return timeRecordToString(roundTime(t, i.Ee, i.ve, r), i.$e);
2765
2767
  }
2766
2768
  toLocaleString(e = void 0, t = void 0) {
2767
2769
  return getInternalSlotOrThrowForPlainTime(this), formatDateTime(createDateTimeFormat(e, t, l), this);
@@ -2792,13 +2794,13 @@ const Ce = "\\d{4}|[-+]\\d{6}", Ye = "0[1-9]|1[0-2]", Ue = "0[1-9]|[12]\\d|30|31
2792
2794
  Ae,
2793
2795
  `[ tT]${Le}`,
2794
2796
  He
2795
- ])}${Be}${_e}`), Qe = createRegExp(`${ze}(?:${Be})?${_e}`), et = createRegExp(`${Ae}[ tT]${Le}(?:${He})(?:${Be})?${_e}`), tt = createRegExp(`(${Ae}[ tT]|[tT]?)${Le}(?<h>${ke})?(?:${Be})?${_e}`), ot = createRegExp(`(${ze}|${xe})(?:${Be})?${_e}`), nt = createRegExp(`(${ze}|${Ve})(?:${Be})?${_e}`), rt = [createRegExp(`${xe}(${Be})?(${Ge})*`), createRegExp(`${Ve}(${Be})?(${Ge})*`)], at = createRegExp(qe), it = createRegExp(Je), ct = createRegExp(ke), st = /* @__PURE__ */ new WeakMap();
2797
+ ])}${Be}${_e}`), Qe = createRegExp(`${ze}(?:${Be})?${_e}`), et = createRegExp(`${Ae}[ tT]${Le}(?:${He})(?:${Be})?${_e}`), tt = createRegExp(`(${Ae}[ tT]|[tT]?)${Le}(?<h>${ke})?(?:${Be})?${_e}`), ot = createRegExp(`(${ze}|${xe})(?:${Be})?${_e}`), nt = createRegExp(`(${ze}|${Ve})(?:${Be})?${_e}`), rt = [createRegExp(`${xe}(${Be})?(${Ge})*`), createRegExp(`${Ve}(${Be})?(${Ge})*`)], at = createRegExp(qe), it = createRegExp(Je), st = createRegExp(ke), ct = /* @__PURE__ */ new WeakMap();
2796
2798
  var lt = class {
2797
2799
  constructor(e, t, o = "iso8601", n = 1972) {
2798
2800
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t);
2799
2801
  validateString(o);
2800
- const i = canonicalizeCalendar(o), c = toIntegerWithTruncation(n);
2801
- isValidIsoDate(c, r, a) || throwRangeError(de), createTemporalMonthDay(createIsoDateRecord(c, r, a), i, this);
2802
+ const i = canonicalizeCalendar(o), s = toIntegerWithTruncation(n);
2803
+ isValidIsoDate(s, r, a) || throwRangeError(de), createTemporalMonthDay(createIsoDateRecord(s, r, a), i, this);
2802
2804
  }
2803
2805
  static from(e, t = void 0) {
2804
2806
  return toTemporalMonthDay(e, t);
@@ -2831,7 +2833,7 @@ var lt = class {
2831
2833
  return temporalMonthDayToString(getInternalSlotOrThrowForPlainMonthDay(this), getTemporalShowCalendarNameOption(getOptionsObject(e)));
2832
2834
  }
2833
2835
  toLocaleString(e = void 0, t = void 0) {
2834
- return getInternalSlotOrThrowForPlainMonthDay(this), formatDateTime(createDateTimeFormat(e, t, s), this);
2836
+ return getInternalSlotOrThrowForPlainMonthDay(this), formatDateTime(createDateTimeFormat(e, t, c), this);
2835
2837
  }
2836
2838
  toJSON() {
2837
2839
  return temporalMonthDayToString(getInternalSlotOrThrowForPlainMonthDay(this), $);
@@ -2850,8 +2852,8 @@ var mt = class {
2850
2852
  constructor(e, t, o = "iso8601", n = 1) {
2851
2853
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t);
2852
2854
  validateString(o);
2853
- const i = canonicalizeCalendar(o), c = toIntegerWithTruncation(n);
2854
- isValidIsoDate(r, a, c) || throwRangeError(de), createTemporalYearMonth(createIsoDateRecord(r, a, c), i, this);
2855
+ const i = canonicalizeCalendar(o), s = toIntegerWithTruncation(n);
2856
+ isValidIsoDate(r, a, s) || throwRangeError(de), createTemporalYearMonth(createIsoDateRecord(r, a, s), i, this);
2855
2857
  }
2856
2858
  static from(e, t = void 0) {
2857
2859
  return toTemporalYearMonth(e, t);
@@ -2928,7 +2930,7 @@ var mt = class {
2928
2930
  return temporalYearMonthToString(getInternalSlotOrThrowForPlainYearMonth(this), getTemporalShowCalendarNameOption(getOptionsObject(e)));
2929
2931
  }
2930
2932
  toLocaleString(e = void 0, t = void 0) {
2931
- return getInternalSlotOrThrowForPlainYearMonth(this), formatDateTime(createDateTimeFormat(e, t, s), this);
2933
+ return getInternalSlotOrThrowForPlainYearMonth(this), formatDateTime(createDateTimeFormat(e, t, c), this);
2932
2934
  }
2933
2935
  toJSON() {
2934
2936
  return temporalYearMonthToString(getInternalSlotOrThrowForPlainYearMonth(this), $);
@@ -2947,8 +2949,8 @@ var Tt = class {
2947
2949
  constructor(e, t, o, n = "iso8601") {
2948
2950
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t), i = toIntegerWithTruncation(o);
2949
2951
  validateString(n);
2950
- const c = canonicalizeCalendar(n);
2951
- isValidIsoDate(r, a, i) || throwRangeError(de), createTemporalDate(createIsoDateRecord(r, a, i), c, this);
2952
+ const s = canonicalizeCalendar(n);
2953
+ isValidIsoDate(r, a, i) || throwRangeError(de), createTemporalDate(createIsoDateRecord(r, a, i), s, this);
2952
2954
  }
2953
2955
  static from(e, t = void 0) {
2954
2956
  return toTemporalDate(e, t);
@@ -2993,7 +2995,7 @@ var Tt = class {
2993
2995
  }
2994
2996
  get weekOfYear() {
2995
2997
  const e = getInternalSlotOrThrowForPlainDate(this);
2996
- return calendarIsoToDate(e.Y, e.o).ie.ce;
2998
+ return calendarIsoToDate(e.Y, e.o).ie.se;
2997
2999
  }
2998
3000
  get yearOfWeek() {
2999
3001
  const e = getInternalSlotOrThrowForPlainDate(this);
@@ -3001,7 +3003,7 @@ var Tt = class {
3001
3003
  }
3002
3004
  get daysInWeek() {
3003
3005
  const e = getInternalSlotOrThrowForPlainDate(this);
3004
- return calendarIsoToDate(e.Y, e.o).se;
3006
+ return calendarIsoToDate(e.Y, e.o).ce;
3005
3007
  }
3006
3008
  get daysInMonth() {
3007
3009
  const e = getInternalSlotOrThrowForPlainDate(this);
@@ -3021,11 +3023,11 @@ var Tt = class {
3021
3023
  }
3022
3024
  toPlainYearMonth() {
3023
3025
  const e = getInternalSlotOrThrowForPlainDate(this);
3024
- return createTemporalYearMonth(calendarYearMonthFromFields(e.Y, isoDateToFields(e.Y, e.o, s), h), e.Y);
3026
+ return createTemporalYearMonth(calendarYearMonthFromFields(e.Y, isoDateToFields(e.Y, e.o, c), h), e.Y);
3025
3027
  }
3026
3028
  toPlainMonthDay() {
3027
3029
  const e = getInternalSlotOrThrowForPlainDate(this);
3028
- return createTemporalMonthDay(calendarMonthDayFromFields(e.Y, isoDateToFields(e.Y, e.o, s), h), e.Y);
3030
+ return createTemporalMonthDay(calendarMonthDayFromFields(e.Y, isoDateToFields(e.Y, e.o, c), h), e.Y);
3029
3031
  }
3030
3032
  add(e, t = void 0) {
3031
3033
  return addDurationToDate(1, getInternalSlotOrThrowForPlainDate(this), e, t);
@@ -3036,7 +3038,7 @@ var Tt = class {
3036
3038
  with(e, t = void 0) {
3037
3039
  const o = getInternalSlotOrThrowForPlainDate(this);
3038
3040
  validatePartialTemporalObject(e);
3039
- const n = calendarMergeFields(o.Y, isoDateToFields(o.Y, o.o, s), prepareCalendarFields(o.Y, e, [
3041
+ const n = calendarMergeFields(o.Y, isoDateToFields(o.Y, o.o, c), prepareCalendarFields(o.Y, e, [
3040
3042
  Ft.t,
3041
3043
  Ft.u,
3042
3044
  Ft.v,
@@ -3074,7 +3076,7 @@ var Tt = class {
3074
3076
  return temporalDateToString(getInternalSlotOrThrowForPlainDate(this), getTemporalShowCalendarNameOption(getOptionsObject(e)));
3075
3077
  }
3076
3078
  toLocaleString(e = void 0, t = void 0) {
3077
- return getInternalSlotOrThrowForPlainDate(this), formatDateTime(createDateTimeFormat(e, t, s), this);
3079
+ return getInternalSlotOrThrowForPlainDate(this), formatDateTime(createDateTimeFormat(e, t, c), this);
3078
3080
  }
3079
3081
  toJSON() {
3080
3082
  return temporalDateToString(getInternalSlotOrThrowForPlainDate(this), $);
@@ -3165,7 +3167,7 @@ const Dt = createNullPrototypeObject(), ht = {
3165
3167
  [Ft.P]: [toTemporalTimeZoneIdentifier]
3166
3168
  }, wt = /* @__PURE__ */ new WeakMap(), vt = signTimeDuration;
3167
3169
  var Et = class {
3168
- constructor(e = 0, t = 0, o = 0, n = 0, r = 0, a = 0, i = 0, c = 0, s = 0, l = 0) {
3170
+ constructor(e = 0, t = 0, o = 0, n = 0, r = 0, a = 0, i = 0, s = 0, c = 0, l = 0) {
3169
3171
  createTemporalDuration(createTemporalDurationSlot([
3170
3172
  e,
3171
3173
  t,
@@ -3174,8 +3176,8 @@ var Et = class {
3174
3176
  r,
3175
3177
  a,
3176
3178
  i,
3177
- c,
3178
3179
  s,
3180
+ c,
3179
3181
  l
3180
3182
  ].map(toIntegerIfIntegral)), this);
3181
3183
  }
@@ -3185,9 +3187,9 @@ var Et = class {
3185
3187
  static compare(e, t, o = void 0) {
3186
3188
  const n = toTemporalDuration(e), r = toTemporalDuration(t), a = getTemporalRelativeToOption(getOptionsObject(o));
3187
3189
  if (n.every((e, t) => r[t] === e)) return 0;
3188
- const i = defaultTemporalLargestUnit(n), c = defaultTemporalLargestUnit(r), s = toInternalDurationRecord(n), l = toInternalDurationRecord(r);
3190
+ const i = defaultTemporalLargestUnit(n), s = defaultTemporalLargestUnit(r), c = toInternalDurationRecord(n), l = toInternalDurationRecord(r);
3189
3191
  let d, m;
3190
- return a.Me && (isDateUnit(i) || isDateUnit(c)) ? compareEpochNanoseconds(addZonedDateTime(a.Me, s, h), addZonedDateTime(a.Me, l, h)) : (isCalendarUnit(i) || isCalendarUnit(c) ? (a.be || throwRangeError(missingField("relativeTo")), d = dateDurationDays(s.A, a.be), m = dateDurationDays(l.A, a.be)) : (d = n[Q], m = r[Q]), ve(add24HourDaysToTimeDuration(s.p, d), add24HourDaysToTimeDuration(l.p, m)));
3192
+ return a.Me && (isDateUnit(i) || isDateUnit(s)) ? compareEpochNanoseconds(addZonedDateTime(a.Me, c, h), addZonedDateTime(a.Me, l, h)) : (isCalendarUnit(i) || isCalendarUnit(s) ? (a.be || throwRangeError(missingField("relativeTo")), d = dateDurationDays(c.A, a.be), m = dateDurationDays(l.A, a.be)) : (d = n[Q], m = r[Q]), ve(add24HourDaysToTimeDuration(c.p, d), add24HourDaysToTimeDuration(l.p, m)));
3191
3193
  }
3192
3194
  get years() {
3193
3195
  return getInternalSlotOrThrowForDuration(this)[_];
@@ -3245,19 +3247,19 @@ var Et = class {
3245
3247
  const t = getInternalSlotOrThrowForDuration(this), o = getRoundToOptionsObject(e);
3246
3248
  let n = getTemporalUnitValuedOption(o, "largestUnit", void 0);
3247
3249
  const r = getTemporalRelativeToOption(o), a = getRoundingIncrementOption(o), i = getRoundingModeOption(o, R);
3248
- let c = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
3249
- validateTemporalUnitValue(c, d);
3250
- const s = void 0 !== c;
3251
- c ??= G;
3252
- const l = defaultTemporalLargestUnit(t), m = largerOfTwoTemporalUnits(l, c), u = void 0 !== n;
3253
- if (void 0 !== n && "auto" !== n || (n = m), (!s && !u || n > c) && throwRangeError(pe), isDateUnit(c) || validateTemporalRoundingIncrement(a, maximumTemporalDurationRoundingIncrement(c), !1), a > 1 && n !== c && isDateUnit(c) && throwRangeError(pe), r.Me) return createTemporalDuration(temporalDurationFromInternal(differenceZonedDateTimeWithRounding(r.Me, createZonedDateTimeSlot(addZonedDateTime(r.Me, toInternalDurationRecord(t), h), r.Me.P, r.Me.Y), n, a, c, i), isDateUnit(n) ? q : n));
3250
+ let s = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
3251
+ validateTemporalUnitValue(s, d);
3252
+ const c = void 0 !== s;
3253
+ s ??= G;
3254
+ const l = defaultTemporalLargestUnit(t), m = largerOfTwoTemporalUnits(l, s), u = void 0 !== n;
3255
+ if (void 0 !== n && "auto" !== n || (n = m), (!c && !u || n > s) && throwRangeError(pe), isDateUnit(s) || validateTemporalRoundingIncrement(a, maximumTemporalDurationRoundingIncrement(s), !1), a > 1 && n !== s && isDateUnit(s) && throwRangeError(pe), r.Me) return createTemporalDuration(temporalDurationFromInternal(differenceZonedDateTimeWithRounding(r.Me, createZonedDateTimeSlot(addZonedDateTime(r.Me, toInternalDurationRecord(t), h), r.Me.P, r.Me.Y), n, a, s, i), isDateUnit(n) ? q : n));
3254
3256
  if (r.be) {
3255
3257
  const e = toInternalDurationRecordWith24HourDays(t), o = addTime(midnightTimeRecord(), e.p);
3256
- return createTemporalDuration(temporalDurationFromInternal(differencePlainDateTimeWithRounding(combineIsoDateAndTimeRecord(r.be.o, midnightTimeRecord()), combineIsoDateAndTimeRecord(calendarDateAdd(r.be.Y, r.be.o, adjustDateDurationRecord(e.A, o.K), h), o), r.be.Y, n, a, c, i), n));
3258
+ return createTemporalDuration(temporalDurationFromInternal(differencePlainDateTimeWithRounding(combineIsoDateAndTimeRecord(r.be.o, midnightTimeRecord()), combineIsoDateAndTimeRecord(calendarDateAdd(r.be.Y, r.be.o, adjustDateDurationRecord(e.A, o.K), h), o), r.be.Y, n, a, s, i), n));
3257
3259
  }
3258
3260
  (isCalendarUnit(l) || isCalendarUnit(n)) && throwRangeError(missingField("relativeTo"));
3259
3261
  const T = toInternalDurationRecordWith24HourDays(t);
3260
- return createTemporalDuration(temporalDurationFromInternal(c === H ? combineDateAndTimeDuration(createDateDurationRecord(0, 0, 0, roundTimeDurationByDays(T.p, a, i)[0]), createTimeDurationFromSeconds(0)) : combineDateAndTimeDuration(zeroDateDuration(), roundTimeDuration(T.p, a, c, i)), n));
3262
+ return createTemporalDuration(temporalDurationFromInternal(s === H ? combineDateAndTimeDuration(createDateDurationRecord(0, 0, 0, roundTimeDurationByDays(T.p, a, i)[0]), createTimeDurationFromSeconds(0)) : combineDateAndTimeDuration(zeroDateDuration(), roundTimeDuration(T.p, a, s, i)), n));
3261
3263
  }
3262
3264
  total(e) {
3263
3265
  const t = getInternalSlotOrThrowForDuration(this);
@@ -3274,16 +3276,16 @@ var Et = class {
3274
3276
  const t = getInternalSlotOrThrowForDuration(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, M), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
3275
3277
  validateTemporalUnitValue(a, l), a !== q && a !== B || throwRangeError(disallowedUnit(a));
3276
3278
  const i = toSecondsStringPrecisionRecord(a, n);
3277
- if (i.Ee === G && 1 === i.ve) return temporalDurationToString(t, i.$e);
3278
- const c = toInternalDurationRecord(t);
3279
- return temporalDurationToString(temporalDurationFromInternal(combineDateAndTimeDuration(c.A, roundTimeDuration(c.p, i.ve, i.Ee, r)), largerOfTwoTemporalUnits(defaultTemporalLargestUnit(t), J)), i.$e);
3279
+ if (i.ve === G && 1 === i.Ee) return temporalDurationToString(t, i.$e);
3280
+ const s = toInternalDurationRecord(t);
3281
+ return temporalDurationToString(temporalDurationFromInternal(combineDateAndTimeDuration(s.A, roundTimeDuration(s.p, i.Ee, i.ve, r)), largerOfTwoTemporalUnits(defaultTemporalLargestUnit(t), J)), i.$e);
3280
3282
  }
3281
3283
  toJSON() {
3282
3284
  return temporalDurationToString(getInternalSlotOrThrowForDuration(this));
3283
3285
  }
3284
3286
  toLocaleString(e = void 0, t = void 0) {
3285
3287
  const o = getInternalSlotOrThrowForDuration(this), n = createNullPrototypeObject();
3286
- return ce.map((e, t) => {
3288
+ return se.map((e, t) => {
3287
3289
  n[e] = o[t];
3288
3290
  }), new Intl.DurationFormat(e, t).format(n);
3289
3291
  }
@@ -3363,10 +3365,12 @@ var $t = class {
3363
3365
  return getInternalSlotOrThrowForDateTimeFormat(this).Pe.resolvedOptions();
3364
3366
  }
3365
3367
  };
3366
- const Yt = Object.getOwnPropertyDescriptors(Intl.DateTimeFormat);
3367
- Yt.prototype.value = Ct.prototype, Object.defineProperties(DateTimeFormat, Yt), DateTimeFormat.prototype.constructor = DateTimeFormat, defineStringTag(DateTimeFormat.prototype, "Intl.DateTimeFormat");
3368
- const Ut = /* @__PURE__ */ new WeakMap();
3369
- var jt = class {
3368
+ const Yt = Object.getOwnPropertyDescriptors(Pt), Ut = Ct.prototype;
3369
+ Yt.prototype.value = Ut;
3370
+ for (const e of ["formatRange", "formatRangeToParts"]) Pt.prototype[e] || delete Ut[e];
3371
+ Object.defineProperties(DateTimeFormat, Yt), DateTimeFormat.prototype.constructor = DateTimeFormat, defineStringTag(DateTimeFormat.prototype, "Intl.DateTimeFormat");
3372
+ const jt = /* @__PURE__ */ new WeakMap();
3373
+ var Wt = class {
3370
3374
  constructor(e) {
3371
3375
  createTemporalInstant(validateEpochNanoseconds(createEpochNanosecondsFromBigInt(toBigInt(e))), this);
3372
3376
  }
@@ -3410,8 +3414,8 @@ var jt = class {
3410
3414
  toString(e = void 0) {
3411
3415
  const t = getInternalSlotOrThrowForInstant(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, M), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0), i = o.timeZone;
3412
3416
  validateTemporalUnitValue(a, l), a === q && throwRangeError(invalidField("smallestUnit"));
3413
- const c = mapUnlessUndefined(i, toTemporalTimeZoneIdentifier), s = toSecondsStringPrecisionRecord(a, n);
3414
- return temporalInstantToString(roundTemporalInstant(t.U, s.ve, s.Ee, r), c, s.$e);
3417
+ const s = mapUnlessUndefined(i, toTemporalTimeZoneIdentifier), c = toSecondsStringPrecisionRecord(a, n);
3418
+ return temporalInstantToString(roundTemporalInstant(t.U, c.Ee, c.ve, r), s, c.$e);
3415
3419
  }
3416
3420
  toLocaleString(e = void 0, t = void 0) {
3417
3421
  return getInternalSlotOrThrowForInstant(this), formatDateTime(createDateTimeFormat(e, t, d), this);
@@ -3426,18 +3430,18 @@ var jt = class {
3426
3430
  return createTemporalZonedDateTime(getInternalSlotOrThrowForInstant(this).U, toTemporalTimeZoneIdentifier(e), "iso8601");
3427
3431
  }
3428
3432
  };
3429
- defineStringTag(jt.prototype, "Temporal.Instant"), renameFunction(jt, "Instant");
3430
- const Wt = class {
3433
+ defineStringTag(Wt.prototype, "Temporal.Instant"), renameFunction(Wt, "Instant");
3434
+ const At = class {
3431
3435
  toTemporalInstant() {
3432
3436
  const e = Date.prototype.valueOf.call(this);
3433
3437
  return isNaN(e) && throwRangeError("invalid date"), createTemporalInstant(createEpochNanosecondsFromEpochMilliseconds(e));
3434
3438
  }
3435
- }.prototype.toTemporalInstant, At = Object.getOwnPropertyDescriptors(globalThis.Intl);
3436
- At.DateTimeFormat.value = DateTimeFormat;
3437
- const Lt = {};
3438
- Object.defineProperties(Lt, At);
3439
- let kt, zt = 0, Vt = -Infinity;
3440
- const xt = {
3439
+ }.prototype.toTemporalInstant, Lt = Object.getOwnPropertyDescriptors(globalThis.Intl);
3440
+ Lt.DateTimeFormat.value = DateTimeFormat;
3441
+ const kt = {};
3442
+ Object.defineProperties(kt, Lt);
3443
+ let zt, Vt = 0, xt = -Infinity;
3444
+ const Ht = {
3441
3445
  timeZoneId: () => systemTimeZoneIdentifier(),
3442
3446
  instant: () => createTemporalInstant(systemUtcEpochNanoseconds()),
3443
3447
  plainDateTimeISO: (e = void 0) => createTemporalDateTime(systemDateTime(e), "iso8601"),
@@ -3445,9 +3449,9 @@ const xt = {
3445
3449
  plainDateISO: (e = void 0) => createTemporalDate(systemDateTime(e).o, "iso8601"),
3446
3450
  plainTimeISO: (e = void 0) => createTemporalTime(systemDateTime(e).p)
3447
3451
  };
3448
- defineStringTag(xt, "Temporal.Now"), makePropertiesNonEnumerable(xt);
3449
- const Ht = {
3450
- Instant: jt,
3452
+ defineStringTag(Ht, "Temporal.Now"), makePropertiesNonEnumerable(Ht);
3453
+ const qt = {
3454
+ Instant: Wt,
3451
3455
  PlainDateTime: Ne,
3452
3456
  PlainDate: Tt,
3453
3457
  PlainTime: $e,
@@ -3455,7 +3459,7 @@ const Ht = {
3455
3459
  PlainMonthDay: lt,
3456
3460
  Duration: Et,
3457
3461
  ZonedDateTime: Me,
3458
- Now: xt
3462
+ Now: Ht
3459
3463
  };
3460
- defineStringTag(Ht, "Temporal"), makePropertiesNonEnumerable(Ht);
3461
- export { defineNonEnumerableProperty as a, Wt as i, setSystemTimeZoneIdCacheTtl as n, Lt as r, Ht as t };
3464
+ defineStringTag(qt, "Temporal"), makePropertiesNonEnumerable(qt);
3465
+ export { defineNonEnumerableProperty as a, At as i, setSystemTimeZoneIdCacheTtl as n, kt as r, qt as t };