temporal-polyfill-lite 0.4.2 → 0.4.3

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.
@@ -213,19 +213,19 @@ function toTemporalZonedDateTime(e, t) {
213
213
  }
214
214
  i = getTemporalCalendarIdentifierWithIsoDefault(e);
215
215
  const l = prepareCalendarFields(i, e, [
216
- St.t,
217
- St.u,
218
- St.v,
219
- St.T,
220
- St.D,
221
- St.I,
222
- St.O,
223
- St.F,
224
- St.S,
225
- St.$,
226
- St.M,
227
- St.P
228
- ], [St.P]);
216
+ yt.t,
217
+ yt.u,
218
+ yt.v,
219
+ yt.T,
220
+ yt.D,
221
+ yt.I,
222
+ yt.O,
223
+ yt.F,
224
+ yt.S,
225
+ yt.$,
226
+ yt.M,
227
+ yt.P
228
+ ], [yt.P]);
229
229
  o = l.timeZone, n = l.offset;
230
230
  const d = getOptionsObject(t);
231
231
  r = getTemporalDisambiguationOption(d), a = getTemporalOffsetOption(d, X);
@@ -233,7 +233,7 @@ function toTemporalZonedDateTime(e, t) {
233
233
  c = m.o, s = m.p;
234
234
  } else {
235
235
  validateString(e);
236
- const m = parseIsoDateTime(e, [Qe]);
236
+ const m = parseIsoDateTime(e, [et]);
237
237
  o = toTemporalTimeZoneIdentifier(m.P.R), n = m.P.N, l = m.P.Z, i = canonicalizeCalendar(m.Y || "iso8601"), d = !1, n && (d = hasUtcOffsetSubMinuteParts(n));
238
238
  const u = getOptionsObject(t);
239
239
  r = getTemporalDisambiguationOption(u), a = getTemporalOffsetOption(u, X), getTemporalOverflowOption(u), c = createIsoDateRecord(m.t, m.u, m.T), s = m.p;
@@ -242,7 +242,7 @@ function toTemporalZonedDateTime(e, t) {
242
242
  return createZonedDateTimeSlot(interpretISODateTimeOffset(c, s, m, m === te ? parseDateTimeUtcOffset(n) : 0, o, r, a, d), o, i);
243
243
  }
244
244
  function createTemporalZonedDateTime(e, t, o, n) {
245
- return createTemporalZonedDateTimeFromSlot(createZonedDateTimeSlot(e, t, o, ((e, t) => Re[e] && Re[e].C(clampEpochSecond(t)))(t, epochSeconds(e))), n);
245
+ return createTemporalZonedDateTimeFromSlot(createZonedDateTimeSlot(e, t, o, ((e, t) => Ne[e] && Ne[e].C(clampEpochSecond(t)))(t, epochSeconds(e))), n);
246
246
  }
247
247
  function createZonedDateTimeSlot(e, t, o, n) {
248
248
  return {
@@ -267,7 +267,7 @@ function differenceZonedDateTime(e, t, o) {
267
267
  const r = getIsoDateTimeForZonedDateTimeSlot(e), a = getIsoDateTimeForZonedDateTimeSlot(t);
268
268
  if (!compareIsoDate(r.o, a.o)) return combineDateAndTimeDuration(zeroDateDuration(), timeDurationFromEpochNanosecondsDifference(t.U, e.U));
269
269
  let i, c = differenceTime(r.p, a.p);
270
- for (let o = Et(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)), Et(c) === n); o++);
270
+ for (let o = Mt(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)), Mt(c) === n); o++);
271
271
  return combineDateAndTimeDuration(calendarDateUntil(e.Y, r.o, i.o, largerOfTwoTemporalUnits(o, d)), c);
272
272
  }
273
273
  function differenceZonedDateTimeWithRounding(e, t, o, n, r, a) {
@@ -333,11 +333,11 @@ function utcEpochMilliseconds(e, t, o, n = 0, a = 0, i = 0, c = 0) {
333
333
  return isoDateToEpochDays(e, t - 1, o) * r + Date.UTC(1970, 0, 1, n, a, i, c);
334
334
  }
335
335
  function clampEpochSecond(e) {
336
- return clamp(e, -1e10, Infinity);
336
+ return clamp(e, -1e10, 1 / 0);
337
337
  }
338
338
  function getNamedTimeZoneOffsetNanosecondsForEpochSecond(t, o, n) {
339
339
  if ("UTC" === t) return 0;
340
- const r = clampEpochSecond(o), a = Re[t] ||= createLruCache(5e3), i = a.C(r);
340
+ const r = clampEpochSecond(o), a = Ne[t] ||= createLruCache(5e3), i = a.C(r);
341
341
  if (void 0 !== i) return i;
342
342
  const c = getFormatterForTimeZone(t).formatToParts(1e3 * r), s = (utcEpochMilliseconds(...[
343
343
  "year",
@@ -350,7 +350,7 @@ function getNamedTimeZoneOffsetNanosecondsForEpochSecond(t, o, n) {
350
350
  return n || a.B(r, s), s;
351
351
  }
352
352
  function getFormatterForTimeZone(e) {
353
- return Pe[e] ||= new Rt("en-u-hc-h23", {
353
+ return Re[e] ||= new Nt("en-u-hc-h23", {
354
354
  timeZone: e,
355
355
  year: "numeric",
356
356
  month: "numeric",
@@ -401,12 +401,12 @@ function toTemporalTimeZoneIdentifier(e) {
401
401
  const t = ((e) => {
402
402
  if (isTimeZoneIdentifier(e)) return parseTimeZoneIdentifier(e);
403
403
  const t = parseIsoDateTime(e, [
404
- Qe,
405
404
  et,
406
405
  tt,
407
406
  ot,
408
407
  nt,
409
- rt
408
+ rt,
409
+ at
410
410
  ]).P, o = t.R || t.Z && "UTC" || t.N;
411
411
  return o || throwRangeError(invalidTimeZone(e)), parseTimeZoneIdentifier(o);
412
412
  })(e);
@@ -429,7 +429,7 @@ function getStartOfDay(e, t) {
429
429
  return getPossibleEpochNanoseconds(e, o)[0] || createEpochNanosecondsFromEpochSeconds(bisectOffsetTransition(e, ...getNamedTimeZoneEpochCandidates(e, o).map(epochSeconds)));
430
430
  }
431
431
  function timeZoneEquals(e, t) {
432
- return e === t || !isOffsetTimeZoneIdentifier(e) && !isOffsetTimeZoneIdentifier(t) && getFormatterForTimeZone(e).resolvedOptions().timeZone === getFormatterForTimeZone(t).resolvedOptions().timeZone;
432
+ return e === t || !isOffsetTimeZoneIdentifier(e) && !isOffsetTimeZoneIdentifier(t) && (Pe ? new Pe.ZonedDateTime(BigInt(0), e).equals(new Pe.ZonedDateTime(BigInt(0), t)) : getFormatterForTimeZone(e).resolvedOptions().timeZone === getFormatterForTimeZone(t).resolvedOptions().timeZone);
433
433
  }
434
434
  function parseTimeZoneIdentifier(e) {
435
435
  return isTimeZoneIdentifier(e) || throwRangeError(invalidTimeZone(e)), createNullPrototypeObject(isOffsetTimeZoneIdentifier(e) ? { G: parseDateTimeUtcOffset(e) / t } : { _: e });
@@ -456,7 +456,7 @@ function combineIsoDateAndTimeRecord(e, t) {
456
456
  };
457
457
  }
458
458
  function interpretTemporalDateTimeFields(e, t, o) {
459
- return combineIsoDateAndTimeRecord(calendarDateFromFields(e, t, o), regulateTime(t[St.D], t[St.I], t[St.O], t[St.F], t[St.S], t[St.$], o));
459
+ return combineIsoDateAndTimeRecord(calendarDateFromFields(e, t, o), regulateTime(t[yt.D], t[yt.I], t[yt.O], t[yt.F], t[yt.S], t[yt.$], o));
460
460
  }
461
461
  function toTemporalDateTime(e, t) {
462
462
  if (isObject(e)) {
@@ -476,28 +476,28 @@ function toTemporalDateTime(e, t) {
476
476
  }
477
477
  const o = getTemporalCalendarIdentifierWithIsoDefault(e);
478
478
  return createTemporalDateTime(interpretTemporalDateTimeFields(o, prepareCalendarFields(o, e, [
479
- St.t,
480
- St.u,
481
- St.v,
482
- St.T,
483
- St.D,
484
- St.I,
485
- St.O,
486
- St.F,
487
- St.S,
488
- St.$
479
+ yt.t,
480
+ yt.u,
481
+ yt.v,
482
+ yt.T,
483
+ yt.D,
484
+ yt.I,
485
+ yt.O,
486
+ yt.F,
487
+ yt.S,
488
+ yt.$
489
489
  ], []), getTemporalOverflowOption(getOptionsObject(t))), o);
490
490
  }
491
491
  validateString(e);
492
- const o = parseIsoDateTime(e, [et]), n = canonicalizeCalendar(o.Y || "iso8601");
492
+ const o = parseIsoDateTime(e, [tt]), n = canonicalizeCalendar(o.Y || "iso8601");
493
493
  return getTemporalOverflowOption(getOptionsObject(t)), createTemporalDateTime(combineIsoDateAndTimeRecord(createIsoDateRecord(o.t, o.u, o.T), o.p || midnightTimeRecord()), n);
494
494
  }
495
495
  function balanceIsoDateTime(e, t, o, n, r, a, i, c, s) {
496
496
  const l = balanceTime(n, r, a, i, c, s);
497
497
  return combineIsoDateAndTimeRecord(addDaysToIsoDate(createIsoDateRecord(e, t, o), l.X), l);
498
498
  }
499
- function createTemporalDateTime(e, t, o = Object.create(Ze.prototype)) {
500
- return Ne.set(o, {
499
+ function createTemporalDateTime(e, t, o = Object.create($e.prototype)) {
500
+ return Ze.set(o, {
501
501
  K: validateIsoDateTime(e),
502
502
  Y: t
503
503
  }), o;
@@ -514,7 +514,7 @@ function roundIsoDateTime(e, t, o, n) {
514
514
  }
515
515
  function differenceISODateTime(e, t, o, n) {
516
516
  let r = differenceTime(e.p, t.p);
517
- const a = Et(r);
517
+ const a = Mt(r);
518
518
  let i = t.o;
519
519
  a === compareIsoDate(e.o, t.o) && (i = addDaysToIsoDate(i, a), r = add24HourDaysToTimeDuration(r, -a));
520
520
  const c = largerOfTwoTemporalUnits(d, n), s = calendarDateUntil(o, e.o, i, c);
@@ -554,10 +554,10 @@ function validateIsoDateTime(e) {
554
554
  })(e) || throwRangeError(P), e;
555
555
  }
556
556
  function getInternalSlotForPlainDateTime(e) {
557
- return Ne.get(e);
557
+ return Ze.get(e);
558
558
  }
559
559
  function getInternalSlotOrThrowForPlainDateTime(e) {
560
- return getInternalSlotOrThrow(Ne, e);
560
+ return getInternalSlotOrThrow(Ze, e);
561
561
  }
562
562
  function isPlainDateTime(e) {
563
563
  return !!getInternalSlotForPlainDateTime(e);
@@ -567,7 +567,7 @@ function calendarDateForPlainDateTime(e) {
567
567
  return calendarIsoToDate(t.Y, t.K.o);
568
568
  }
569
569
  function createTimeRecord(e, t, o, n, r, a, i = 0) {
570
- return {
570
+ return ((e, t, o, n, r, a) => isWithin(e, 0, 23) && isWithin(t, 0, 59) && isWithin(o, 0, 59) && isWithin(n, 0, 999) && isWithin(r, 0, 999) && isWithin(a, 0, 999))(e, t, o, n, r, a) || throwRangeError(b), {
571
571
  D: e,
572
572
  I: t,
573
573
  O: o,
@@ -586,17 +586,14 @@ function differenceTime(e, t) {
586
586
  function toTemporalTime(e, t) {
587
587
  if (isObject(e)) return isPlainTime(e) ? (getTemporalOverflowOption(getOptionsObject(t)), getInternalSlotOrThrowForPlainTime(e)) : isPlainDateTime(e) ? (getTemporalOverflowOption(getOptionsObject(t)), getInternalSlotOrThrowForPlainDateTime(e).K.p) : isZonedDateTime(e) ? (getTemporalOverflowOption(getOptionsObject(t)), getIsoDateTimeForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(e)).p) : regulateTime(...toTemporalTimeRecord(e), getTemporalOverflowOption(getOptionsObject(t)));
588
588
  validateString(e);
589
- const o = parseIsoDateTime(e, [ot]);
589
+ const o = parseIsoDateTime(e, [nt]);
590
590
  return getTemporalOverflowOption(getOptionsObject(t)), o.p;
591
591
  }
592
592
  function toTimeRecordOrMidnight(e) {
593
593
  return void 0 === e ? midnightTimeRecord() : toTemporalTime(e);
594
594
  }
595
595
  function regulateTime(e, t, o, n, r, a, i) {
596
- return "constrain" === i ? createTimeRecord(clamp(e, 0, 23), clamp(t, 0, 59), clamp(o, 0, 59), clamp(n, 0, 999), clamp(r, 0, 999), clamp(a, 0, 999)) : (isValidTime(e, t, o, n, r, a) || throwRangeError(b), createTimeRecord(e, t, o, n, r, a));
597
- }
598
- function isValidTime(e, t, o, n, r, a) {
599
- return isWithin(e, 0, 23) && isWithin(t, 0, 59) && isWithin(o, 0, 59) && isWithin(n, 0, 999) && isWithin(r, 0, 999) && isWithin(a, 0, 999);
596
+ return "constrain" === i ? createTimeRecord(clamp(e, 0, 23), clamp(t, 0, 59), clamp(o, 0, 59), clamp(n, 0, 999), clamp(r, 0, 999), clamp(a, 0, 999)) : createTimeRecord(e, t, o, n, r, a);
600
597
  }
601
598
  function balanceTime(e, t, o, n, r, a) {
602
599
  return r += divFloor(a, 1e3), n += divFloor(r, 1e3), o += divFloor(n, 1e3), t += divFloor(o, 60), {
@@ -609,18 +606,18 @@ function balanceTime(e, t, o, n, r, a) {
609
606
  X: divFloor(e, 24)
610
607
  };
611
608
  }
612
- function createTemporalTime(e, t = Object.create(Ce.prototype)) {
613
- return $e.set(t, e), t;
609
+ function createTemporalTime(e, t = Object.create(Ye.prototype)) {
610
+ return Ce.set(t, e), t;
614
611
  }
615
612
  function toTemporalTimeRecord(e, t = !1) {
616
613
  let o = !1;
617
614
  const n = [
618
- St.D,
619
- St.S,
620
- St.F,
621
- St.I,
622
- St.$,
623
- St.O
615
+ yt.D,
616
+ yt.S,
617
+ yt.F,
618
+ yt.I,
619
+ yt.$,
620
+ yt.O
624
621
  ].map((n) => {
625
622
  const r = e[n];
626
623
  return void 0 !== r ? (o = !0, toIntegerWithTruncation(r)) : t ? void 0 : 0;
@@ -656,10 +653,10 @@ function addDurationToTime(e, t, o) {
656
653
  return createTemporalTime(addTime(t, toInternalDurationRecord(applySignToDurationSlot(toTemporalDuration(o), e)).p));
657
654
  }
658
655
  function getInternalSlotOrThrowForPlainTime(e) {
659
- return getInternalSlotOrThrow($e, e);
656
+ return getInternalSlotOrThrow(Ce, e);
660
657
  }
661
658
  function isPlainTime(e) {
662
- return $e.has(e);
659
+ return Ce.has(e);
663
660
  }
664
661
  function optionalChain(e) {
665
662
  return e.reduceRight((e, t) => `${t}(?:${e})?`);
@@ -671,10 +668,10 @@ function createRegExp(e) {
671
668
  return RegExp(`^(?:${e})$`);
672
669
  }
673
670
  function isAmbiguousTemporalTimeString(e) {
674
- return at.some((t) => isSemanticallyValid(e.match(t)?.groups));
671
+ return it.some((t) => isSemanticallyValid(e.match(t)?.groups));
675
672
  }
676
673
  function isTimeZoneIdentifier(e) {
677
- return it.test(e);
674
+ return ct.test(e);
678
675
  }
679
676
  function isSemanticallyValid(e) {
680
677
  return !!e && "-000000" !== (e.a || e.l) && (!e.a || isValidIsoDate(Se(e.a), Se(e.b), Se(e.c))) && (!e.n || isValidIsoDate(1972, Se(e.m), Se(e.n)));
@@ -682,12 +679,12 @@ function isSemanticallyValid(e) {
682
679
  function parseIsoDateTime(e, t) {
683
680
  for (const o of t) {
684
681
  const t = e.match(o);
685
- if (!t || !isSemanticallyValid(t.groups) || o === ot && isAmbiguousTemporalTimeString(e)) continue;
682
+ if (!t || !isSemanticallyValid(t.groups) || o === nt && isAmbiguousTemporalTimeString(e)) continue;
686
683
  const n = t.groups;
687
684
  let r;
688
685
  if (n.k) {
689
686
  let t = !1;
690
- for (const [, o, a, i] of n.k.matchAll(Ke)) "u-ca" === a ? r ? (o || t) && throwRangeError(parseError(e)) : (r = i, t = !!o) : o && throwRangeError(parseError(e));
687
+ for (const [, o, a, i] of n.k.matchAll(Qe)) "u-ca" === a ? r ? (o || t) && throwRangeError(parseError(e)) : (r = i, t = !!o) : o && throwRangeError(parseError(e));
691
688
  }
692
689
  n.m && r && "iso8601" !== asciiLowerCase(r) && throwRangeError(parseError(e));
693
690
  const a = (n.g || "").padEnd(9, "0");
@@ -707,11 +704,11 @@ function parseIsoDateTime(e, t) {
707
704
  throwRangeError(parseError(e));
708
705
  }
709
706
  function parseDateTimeUtcOffset(e) {
710
- const o = e.match(st);
707
+ const o = e.match(lt);
711
708
  return o || throwRangeError(parseError(e)), Se(`${o[1]}1`) * (36e11 * Se(o[2]) + Se(o[4] || "") * t + 1e9 * Se(o[5] || "") + Se((o[6] || "").padEnd(9, "0")) + 0);
712
709
  }
713
710
  function hasUtcOffsetSubMinuteParts(e) {
714
- return !!e.match(st)[5];
711
+ return !!e.match(lt)[5];
715
712
  }
716
713
  function toTemporalMonthDay(e, t) {
717
714
  if (isObject(e)) {
@@ -719,18 +716,18 @@ function toTemporalMonthDay(e, t) {
719
716
  if (o) return getTemporalOverflowOption(getOptionsObject(t)), createTemporalMonthDay(o.o, o.Y);
720
717
  const n = getTemporalCalendarIdentifierWithIsoDefault(e);
721
718
  return createTemporalMonthDay(calendarMonthDayFromFields(n, prepareCalendarFields(n, e, [
722
- St.t,
723
- St.u,
724
- St.v,
725
- St.T
719
+ yt.t,
720
+ yt.u,
721
+ yt.v,
722
+ yt.T
726
723
  ], []), getTemporalOverflowOption(getOptionsObject(t))), n);
727
724
  }
728
725
  validateString(e);
729
- const o = parseIsoDateTime(e, [nt]), n = canonicalizeCalendar(o.Y || "iso8601");
726
+ const o = parseIsoDateTime(e, [rt]), n = canonicalizeCalendar(o.Y || "iso8601");
730
727
  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)), q), _), n);
731
728
  }
732
- function createTemporalMonthDay(e, t, o = Object.create(dt.prototype)) {
733
- return lt.set(o, {
729
+ function createTemporalMonthDay(e, t, o = Object.create(mt.prototype)) {
730
+ return dt.set(o, {
734
731
  o: validateIsoDate(e),
735
732
  Y: t
736
733
  }), o;
@@ -739,10 +736,10 @@ function temporalMonthDayToString(e, t) {
739
736
  return `${t === De || t === pe || "iso8601" !== e.Y ? `${padIsoYear(e.o.t)}-` : ""}${toZeroPaddedDecimalString(e.o.u, 2)}-${toZeroPaddedDecimalString(e.o.T, 2)}${formatCalendarAnnotation(e.Y, t)}`;
740
737
  }
741
738
  function getInternalSlotForPlainMonthDay(e) {
742
- return lt.get(e);
739
+ return dt.get(e);
743
740
  }
744
741
  function getInternalSlotOrThrowForPlainMonthDay(e) {
745
- return getInternalSlotOrThrow(lt, e);
742
+ return getInternalSlotOrThrow(dt, e);
746
743
  }
747
744
  function isPlainMonthDay(e) {
748
745
  return !!getInternalSlotForPlainMonthDay(e);
@@ -753,13 +750,13 @@ function toTemporalYearMonth(e, t) {
753
750
  if (o) return getTemporalOverflowOption(getOptionsObject(t)), createTemporalYearMonth(o.o, o.Y);
754
751
  const n = getTemporalCalendarIdentifierWithIsoDefault(e);
755
752
  return createTemporalYearMonth(calendarYearMonthFromFields(n, prepareCalendarFields(n, e, [
756
- St.t,
757
- St.u,
758
- St.v
753
+ yt.t,
754
+ yt.u,
755
+ yt.v
759
756
  ], []), getTemporalOverflowOption(getOptionsObject(t))), n);
760
757
  }
761
758
  validateString(e);
762
- const o = parseIsoDateTime(e, [rt]), n = canonicalizeCalendar(o.Y || "iso8601");
759
+ const o = parseIsoDateTime(e, [at]), n = canonicalizeCalendar(o.Y || "iso8601");
763
760
  return getTemporalOverflowOption(getOptionsObject(t)), createTemporalYearMonth(calendarYearMonthFromFields(n, isoDateToFields(n, validateIsoYearMonth(createIsoDateRecord(o.t, o.u, o.T)), H), _), n);
764
761
  }
765
762
  function balanceIsoYearMonth(e, t) {
@@ -768,8 +765,8 @@ function balanceIsoYearMonth(e, t) {
768
765
  u: modFloor(t - 1, 12) + 1
769
766
  };
770
767
  }
771
- function createTemporalYearMonth(e, t, o = Object.create(ut.prototype)) {
772
- return mt.set(o, {
768
+ function createTemporalYearMonth(e, t, o = Object.create(Tt.prototype)) {
769
+ return ut.set(o, {
773
770
  o: validateIsoYearMonth(e),
774
771
  Y: t
775
772
  }), o;
@@ -795,10 +792,10 @@ function differenceTemporalPlainYearMonth(e, t, o, n) {
795
792
  ]));
796
793
  const i = calendarDateFromFields(t.Y, createNullPrototypeObject({
797
794
  ...isoDateToFields(t.Y, t.o, H),
798
- [St.T]: 1
795
+ [yt.T]: 1
799
796
  }), _), m = calendarDateFromFields(t.Y, createNullPrototypeObject({
800
797
  ...isoDateToFields(t.Y, r.o, H),
801
- [St.T]: 1
798
+ [yt.T]: 1
802
799
  }), _);
803
800
  let u = combineDateAndTimeDuration(adjustDateDurationRecord(calendarDateUntil(t.Y, i, m, a.L), 0, 0), ve);
804
801
  if (a.H !== s || 1 !== a.V) {
@@ -811,17 +808,17 @@ function addDurationToYearMonth(e, t, o, n) {
811
808
  const r = toInternalDurationRecord(applySignToDurationSlot(toTemporalDuration(o), e)), a = getTemporalOverflowOption(getOptionsObject(n));
812
809
  return (r.A.ee || r.A.X || signTimeDuration(r.p)) && throwRangeError("duration can contain only years and months"), createTemporalYearMonth(calendarYearMonthFromFields(t.Y, isoDateToFields(t.Y, calendarDateAdd(t.Y, calendarDateFromFields(t.Y, createNullPrototypeObject({
813
810
  ...isoDateToFields(t.Y, t.o, H),
814
- [St.T]: 1
811
+ [yt.T]: 1
815
812
  }), _), r.A, a), H), a), t.Y);
816
813
  }
817
814
  function validateIsoYearMonth(e) {
818
815
  return ((e) => isWithin(12 * e.t + e.u, -3261848, 3309129))(e) || throwRangeError(P), e;
819
816
  }
820
817
  function getInternalSlotForPlainYearMonth(e) {
821
- return mt.get(e);
818
+ return ut.get(e);
822
819
  }
823
820
  function getInternalSlotOrThrowForPlainYearMonth(e) {
824
- return getInternalSlotOrThrow(mt, e);
821
+ return getInternalSlotOrThrow(ut, e);
825
822
  }
826
823
  function isPlainYearMonth(e) {
827
824
  return !!getInternalSlotForPlainYearMonth(e);
@@ -831,14 +828,14 @@ function calendarDateForPlainYearMonth(e) {
831
828
  return calendarIsoToDate(t.Y, t.o);
832
829
  }
833
830
  function createIsoDateRecord(e, t, o) {
834
- return {
831
+ return isValidIsoDate(e, t, o) || throwRangeError(b), {
835
832
  t: e,
836
833
  u: t,
837
834
  T: o
838
835
  };
839
836
  }
840
- function createTemporalDate(e, t, o = Object.create(Dt.prototype)) {
841
- return Tt.set(o, {
837
+ function createTemporalDate(e, t, o = Object.create(ht.prototype)) {
838
+ return Dt.set(o, {
842
839
  o: validateIsoDate(e),
843
840
  Y: t
844
841
  }), o;
@@ -862,18 +859,18 @@ function toTemporalDate(e, t) {
862
859
  }
863
860
  const o = getTemporalCalendarIdentifierWithIsoDefault(e);
864
861
  return createTemporalDate(calendarDateFromFields(o, prepareCalendarFields(o, e, [
865
- St.t,
866
- St.u,
867
- St.v,
868
- St.T
862
+ yt.t,
863
+ yt.u,
864
+ yt.v,
865
+ yt.T
869
866
  ], []), getTemporalOverflowOption(getOptionsObject(t))), o);
870
867
  }
871
868
  validateString(e);
872
- const o = parseIsoDateTime(e, [et]), n = canonicalizeCalendar(o.Y || "iso8601");
869
+ const o = parseIsoDateTime(e, [tt]), n = canonicalizeCalendar(o.Y || "iso8601");
873
870
  return getTemporalOverflowOption(getOptionsObject(t)), createTemporalDate(createIsoDateRecord(o.t, o.u, o.T), n);
874
871
  }
875
872
  function regulateIsoDate(e, t, o, n) {
876
- return "constrain" === n ? createIsoDateRecord(e, t = clamp(t, 1, 12), clamp(o, 1, isoDaysInMonth(e, t))) : (isValidIsoDate(e, t, o) || throwRangeError(b), createIsoDateRecord(e, t, o));
873
+ return "constrain" === n ? createIsoDateRecord(e, t = clamp(t, 1, 12), clamp(o, 1, isoDaysInMonth(e, t))) : createIsoDateRecord(e, t, o);
877
874
  }
878
875
  function isValidIsoDate(e, t, o) {
879
876
  return isWithin(t, 1, 12) && isWithin(o, 1, isoDaysInMonth(e, t));
@@ -920,10 +917,10 @@ function addDurationToDate(e, t, o, n) {
920
917
  })(applySignToDurationSlot(toTemporalDuration(o), e)), getTemporalOverflowOption(getOptionsObject(n))), t.Y);
921
918
  }
922
919
  function getInternalSlotForPlainDate(e) {
923
- return Tt.get(e);
920
+ return Dt.get(e);
924
921
  }
925
922
  function getInternalSlotOrThrowForPlainDate(e) {
926
- return getInternalSlotOrThrow(Tt, e);
923
+ return getInternalSlotOrThrow(Dt, e);
927
924
  }
928
925
  function isPlainDate(e) {
929
926
  return !!getInternalSlotForPlainDate(e);
@@ -936,7 +933,7 @@ function calendarDateForPlainDate(e) {
936
933
  return calendarIsoToDate(t.Y, t.o);
937
934
  }
938
935
  function formatToParts(e, t) {
939
- return (ht[e] ||= new Rt("en", {
936
+ return (pt[e] ||= new Nt("en", {
940
937
  year: "numeric",
941
938
  month: "numeric",
942
939
  day: "numeric",
@@ -957,7 +954,7 @@ function extractYearMonthDay(e, t) {
957
954
  };
958
955
  }
959
956
  function yearMonthDay(e, t) {
960
- return gt[e].J(t, () => ((e, t) => {
957
+ return ft[e].J(t, () => ((e, t) => {
961
958
  const o = formatToParts(e, t), n = [
962
959
  "relatedYear",
963
960
  "month",
@@ -971,7 +968,7 @@ function yearMonthDay(e, t) {
971
968
  })(e, t));
972
969
  }
973
970
  function getNewYear(e, t) {
974
- return pt[e].J(t, () => {
971
+ return gt[e].J(t, () => {
975
972
  let o = isoDateToEpochDays(t, 0, 1985 === t ? 53 : Math.floor(modFloor(-10.8822 * t + 16, 29.53)) + 23), n = yearMonthDay(e, o);
976
973
  for (let r = 0; "M01" !== n.v; r++) {
977
974
  if (r > 20) throw new Error("unexpected calendar error");
@@ -1115,7 +1112,7 @@ function epochDaysToDate$2(e, t) {
1115
1112
  };
1116
1113
  }
1117
1114
  function getYearMonthDay(e) {
1118
- return ft.J(e, () => extractYearMonthDay("islamic-umalqura", e));
1115
+ return It.J(e, () => extractYearMonthDay("islamic-umalqura", e));
1119
1116
  }
1120
1117
  function getFirstDayOfMonth(e, t) {
1121
1118
  const o = balanceIsoYearMonth(e, t), n = calendarIntegersToEpochDays$2("islamic-civil", o.t, o.u, 1);
@@ -1128,7 +1125,7 @@ function constrainDay$2(e, t, o) {
1128
1125
  return o < 30 ? o : clamp(o, 1, ((e, t) => getFirstDayOfMonth(e, t + 1) - getFirstDayOfMonth(e, t))(e, t));
1129
1126
  }
1130
1127
  function startOfYear(e) {
1131
- return It.J(e, () => {
1128
+ return Ot.J(e, () => {
1132
1129
  const t = isoDateToEpochDays(e + 621, 4, 1), o = extractYearMonthDay("persian", t);
1133
1130
  return t - dayOfYearFromMonthDay(o.u, o.T) + 1;
1134
1131
  });
@@ -1161,7 +1158,7 @@ function daysInMonth(e, t) {
1161
1158
  return t <= 6 ? 31 : 12 !== t || isLeapYear(e) ? 30 : 29;
1162
1159
  }
1163
1160
  function canonicalizeCalendar(e) {
1164
- return "islamicc" === (e = asciiLowerCase(e)) ? "islamic-civil" : "ethiopic-amete-alem" === e ? "ethioaa" : Ft[e] ? e : throwRangeError(((e) => `unsupported calendar: ${e}`)(e));
1161
+ return "islamicc" === (e = asciiLowerCase(e)) ? "islamic-civil" : "ethiopic-amete-alem" === e ? "ethioaa" : St[e] ? e : throwRangeError(((e) => `unsupported calendar: ${e}`)(e));
1165
1162
  }
1166
1163
  function calendarDateAdd(e, t, o, n) {
1167
1164
  if (isIsoLikeCalendar(e) || !o.te && !o.oe) return ((e, t, o) => {
@@ -1213,8 +1210,8 @@ function calendarDateUntil(e, t, o, n) {
1213
1210
  return createDateDurationRecord(m, u, 0, isoDateRecordToEpochDays(o) - isoDateRecordToEpochDays(calendarIntegersToIso(e, h.t, h.u, constrainDay(e, h.t, h.u, a.T, _))));
1214
1211
  }
1215
1212
  function calendarDateToIso(e, t, o) {
1216
- const n = t[St.t], r = t[St.u], a = mapUnlessUndefined(t[St.v], parseMonthCode), i = t[St.T];
1217
- if (isIsoLikeCalendar(e)) return ((e, t) => regulateIsoDate(e[St.t], e[St.u], e[St.T], t))({
1213
+ const n = t[yt.t], r = t[yt.u], a = mapUnlessUndefined(t[yt.v], parseMonthCode), i = t[yt.T];
1214
+ if (isIsoLikeCalendar(e)) return ((e, t) => regulateIsoDate(e[yt.t], e[yt.u], e[yt.T], t))({
1218
1215
  ...t,
1219
1216
  year: n + ("buddhist" === e ? -543 : "roc" === e ? 1911 : 0)
1220
1217
  }, o);
@@ -1231,7 +1228,7 @@ function nonIsoCalendarIsoToDate(e, t) {
1231
1228
  }
1232
1229
  };
1233
1230
  if ("japanese" === e) {
1234
- const r = o >= 18017 ? "reiwa" : o >= 6947 ? "heisei" : o >= -15713 ? "showa" : o >= -20974 ? "taisho" : o >= -35428 ? "meiji" : t.t > 0 ? "ce" : "bce", a = Ft[e].get(r);
1231
+ const r = o >= 18017 ? "reiwa" : o >= 6947 ? "heisei" : o >= -15713 ? "showa" : o >= -20974 ? "taisho" : o >= -35428 ? "meiji" : t.t > 0 ? "ce" : "bce", a = St[e].get(r);
1235
1232
  return {
1236
1233
  ne: r,
1237
1234
  re: "bce" === r ? 1 - t.t : t.t - a + 1,
@@ -1403,11 +1400,11 @@ function nonIsoCalendarIsoToDate(e, t) {
1403
1400
  })(o) : epochDaysToDate$2(e, o);
1404
1401
  }
1405
1402
  function calendarSupportsEra(e) {
1406
- return !!Ft[e].size;
1403
+ return !!St[e].size;
1407
1404
  }
1408
1405
  function canonicalizeEraInCalendar(e, t) {
1409
1406
  const o = "ad" === t ? "ce" : "bc" === t ? "bce" : t;
1410
- return Ft[e].has(o) ? o : throwRangeError(((e) => `invalid era: ${e}`)(t));
1407
+ return St[e].has(o) ? o : throwRangeError(((e) => `invalid era: ${e}`)(t));
1411
1408
  }
1412
1409
  function constrainMonthCode(e, t, o, n) {
1413
1410
  if ("hebrew" === e) return o[1] && !isLeapYear$2(t) ? "reject" === n ? throwRangeError(b) : [6, !1] : o;
@@ -1489,16 +1486,16 @@ function prepareCalendarFields(e, t, o, n) {
1489
1486
  let a = !1;
1490
1487
  for (const e of o) {
1491
1488
  const o = t[e];
1492
- void 0 !== o ? (a = !0, r[e] = wt[e][0](o)) : n && (n.includes(e) && throwTypeError(missingField(e)), r[e] = wt[e][1]);
1489
+ void 0 !== o ? (a = !0, r[e] = vt[e][0](o)) : n && (n.includes(e) && throwTypeError(missingField(e)), r[e] = vt[e][1]);
1493
1490
  }
1494
1491
  return n || a || throwTypeError(U), r;
1495
1492
  }
1496
1493
  function calendarMergeFields(e, t, o) {
1497
1494
  const n = ((e, t) => {
1498
1495
  const o = [];
1499
- return void 0 !== t[St.u] && o.push(St.v), void 0 !== t[St.v] && o.push(St.u), !calendarSupportsEra(e) || void 0 === t[St.ne] && void 0 === t[St.re] && void 0 === t[St.t] || o.push(St.ne, St.re, St.t), !((e) => "japanese" === e)(e) || void 0 === t[St.T] && void 0 === t[St.u] && void 0 === t[St.v] || o.push(St.ne, St.re), o;
1496
+ return void 0 !== t[yt.u] && o.push(yt.v), void 0 !== t[yt.v] && o.push(yt.u), !calendarSupportsEra(e) || void 0 === t[yt.ne] && void 0 === t[yt.re] && void 0 === t[yt.t] || o.push(yt.ne, yt.re, yt.t), !((e) => "japanese" === e)(e) || void 0 === t[yt.T] && void 0 === t[yt.u] && void 0 === t[yt.v] || o.push(yt.ne, yt.re), o;
1500
1497
  })(e, o), r = createEmptyCalendarFieldsRecord();
1501
- for (const e of yt) void 0 === t[e] || n.includes(e) || (r[e] = t[e]), void 0 !== o[e] && (r[e] = o[e]);
1498
+ for (const e of wt) void 0 === t[e] || n.includes(e) || (r[e] = t[e]), void 0 !== o[e] && (r[e] = o[e]);
1502
1499
  return r;
1503
1500
  }
1504
1501
  function toTemporalCalendarIdentifier(e) {
@@ -1506,15 +1503,15 @@ function toTemporalCalendarIdentifier(e) {
1506
1503
  return t ? t.Y : (validateString(e), canonicalizeCalendar(((e) => {
1507
1504
  try {
1508
1505
  return parseIsoDateTime(e, [
1509
- Qe,
1510
1506
  et,
1511
1507
  tt,
1512
1508
  ot,
1513
1509
  nt,
1514
- rt
1510
+ rt,
1511
+ at
1515
1512
  ]).Y || "iso8601";
1516
1513
  } catch {
1517
- return ct.test(e) || throwRangeError(parseError(e)), e;
1514
+ return st.test(e) || throwRangeError(parseError(e)), e;
1518
1515
  }
1519
1516
  })(e)));
1520
1517
  }
@@ -1531,14 +1528,14 @@ function calendarYearMonthFromFields(e, t, o) {
1531
1528
  function calendarMonthDayFromFields(e, t, o) {
1532
1529
  return calendarResolveFields(e, t, q), (function(e, t, o) {
1533
1530
  if (isIsoLikeCalendar(e)) return ((e, t, o) => {
1534
- const n = regulateIsoDate(e[St.t] ?? 1972, e[St.u], e[St.T], t);
1531
+ const n = regulateIsoDate(e[yt.t] ?? 1972, e[yt.u], e[yt.T], t);
1535
1532
  return o || validateIsoDate(n), createIsoDateRecord(1972, n.u, n.T);
1536
1533
  })({
1537
1534
  ...t,
1538
1535
  year: mapUnlessUndefined(t.year, (t) => t + ("buddhist" === e ? -543 : "roc" === e ? 1911 : 0))
1539
1536
  }, o, "iso8601" === e);
1540
- const n = t[St.t];
1541
- let r = t[St.u], a = mapUnlessUndefined(t[St.v], parseMonthCode), i = t[St.T];
1537
+ const n = t[yt.t];
1538
+ let r = t[yt.u], a = mapUnlessUndefined(t[yt.v], parseMonthCode), i = t[yt.T];
1542
1539
  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) => {
1543
1540
  if (isChineseDangi(e) || "islamic-umalqura" === e || "persian" === e) {
1544
1541
  const r = clamp(o, 1, "persian" === e && t[0] <= 6 ? 31 : 30);
@@ -1637,30 +1634,30 @@ function calendarExtraFields(e, t) {
1637
1634
  return calendarSupportsEra(e) && t.includes("year") ? ["era", "eraYear"] : [];
1638
1635
  }
1639
1636
  function isoResolveFields(e, t) {
1640
- t !== q && void 0 === e[St.t] && throwTypeError(missingField(St.t)), t !== H && void 0 === e[St.T] && throwTypeError(missingField(St.T)), void 0 === e[St.v] && void 0 === e[St.u] && throwTypeError(missingField("month, monthCode"));
1641
- const o = mapUnlessUndefined(e[St.v], parseMonthCode);
1642
- o && ((o[0] > 12 || o[1] || void 0 !== e[St.u] && o[0] !== e[St.u]) && throwRangeError(C), e[St.u] = o[0]);
1637
+ t !== q && void 0 === e[yt.t] && throwTypeError(missingField(yt.t)), t !== H && void 0 === e[yt.T] && throwTypeError(missingField(yt.T)), void 0 === e[yt.v] && void 0 === e[yt.u] && throwTypeError(missingField("month, monthCode"));
1638
+ const o = mapUnlessUndefined(e[yt.v], parseMonthCode);
1639
+ o && ((o[0] > 12 || o[1] || void 0 !== e[yt.u] && o[0] !== e[yt.u]) && throwRangeError(C), e[yt.u] = o[0]);
1643
1640
  }
1644
1641
  function calendarResolveFields(e, t, o = z) {
1645
1642
  "iso8601" === e ? isoResolveFields(t, o) : (function(e, t, o = z) {
1646
- const n = t[St.ne], r = t[St.re];
1647
- let a = t[St.t];
1648
- const i = t[St.v], c = t[St.u], s = t[St.T];
1643
+ const n = t[yt.ne], r = t[yt.re];
1644
+ let a = t[yt.t];
1645
+ const i = t[yt.v], c = t[yt.u], s = t[yt.T];
1649
1646
  if (o === q && 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 !== H && void 0 === s && throwTypeError(missingField("day")), c === i && throwTypeError(missingField("month, monthCode")), calendarSupportsEraForNonIsoCalendars(e) && void 0 !== r) {
1650
1647
  const o = ((e, t, o) => {
1651
- const n = canonicalizeEraInCalendar(e, t), r = Ft[e].get(n);
1648
+ const n = canonicalizeEraInCalendar(e, t), r = St[e].get(n);
1652
1649
  return !1 === r ? 1 - o : r + o - 1;
1653
1650
  })(e, canonicalizeEraInCalendar(e, n), r);
1654
- void 0 !== a && a !== o && throwRangeError("mismatch of `year`, `era` and `eraYear`"), t[St.t] = o;
1651
+ void 0 !== a && a !== o && throwRangeError("mismatch of `year`, `era` and `eraYear`"), t[yt.t] = o;
1655
1652
  }
1656
- if (t[St.ne] = t[St.re] = void 0, isIsoLikeCalendar(e)) isoResolveFields(t, o);
1653
+ if (t[yt.ne] = t[yt.re] = void 0, isIsoLikeCalendar(e)) isoResolveFields(t, o);
1657
1654
  else if (i) {
1658
1655
  const o = parseMonthCode(i);
1659
1656
  ((e, t) => isWithin(t[0], 1, 12) && !t[1] || isChineseDangi(e) && isWithin(t[0], 1, 12) || isCopticOrEthiopic(e) && 13 === t[0] && !t[1] || "hebrew" === e && 5 === t[0] && t[1])(e, o) || throwRangeError(invalidMonthCode(i));
1660
- const n = t[St.t];
1657
+ const n = t[yt.t];
1661
1658
  if (void 0 !== n) {
1662
1659
  const r = monthCodeToOrdinal(e, n, constrainMonthCode(e, n, o, _));
1663
- void 0 !== c && c !== r && throwRangeError(C), t[St.u] = r;
1660
+ void 0 !== c && c !== r && throwRangeError(C), t[yt.u] = r;
1664
1661
  }
1665
1662
  }
1666
1663
  })(e, t, o);
@@ -1705,7 +1702,7 @@ function combineDateAndTimeDuration(e, t) {
1705
1702
  };
1706
1703
  }
1707
1704
  function toTemporalDuration(e) {
1708
- return t = e, vt.has(t) ? getInternalSlotOrThrowForDuration(e) : isObject(e) ? createTemporalDurationSlot(toTemporalPartialDurationRecord(e).map((e) => e || 0)) : (validateString(e), ((e) => {
1705
+ return Et.get(e) || (isObject(e) ? createTemporalDurationSlot(toTemporalPartialDurationRecord(e).map((e) => e || 0)) : (validateString(e), ((e) => {
1709
1706
  const t = e.match(/^([+-]?)p(?:(\d+)y)?(?:(\d+)m)?(?:(\d+)w)?(?:(\d+)d)?(?:t(?:(\d+)(?:[.,](\d{1,9}))?h)?(?:(\d+)(?:[.,](\d{1,9}))?m)?(?:(\d+)(?:[.,](\d{1,9}))?s)?)?$/i);
1710
1707
  t && !/[pt]$|[.,](\d{1,9})[hms]./i.test(e) || throwRangeError(parseError(e));
1711
1708
  const o = balanceTime(0, 0, 0, 0, 0, 3600 * toIntegerWithTruncation((t[7] || "").padEnd(9, "0")) + 60 * toIntegerWithTruncation((t[9] || "").padEnd(9, "0")) + toIntegerWithTruncation((t[11] || "").padEnd(9, "0")));
@@ -1721,8 +1718,7 @@ function toTemporalDuration(e) {
1721
1718
  o.S,
1722
1719
  o.$
1723
1720
  ]), toIntegerWithTruncation(`${t[1]}1`));
1724
- })(e));
1725
- var t;
1721
+ })(e)));
1726
1722
  }
1727
1723
  function durationSign(e) {
1728
1724
  return sign(e.find((e) => e) || 0);
@@ -1731,7 +1727,7 @@ function dateDurationSign(e) {
1731
1727
  return sign(e.te || e.oe || e.ee || e.X);
1732
1728
  }
1733
1729
  function internalDurationSign(e) {
1734
- return dateDurationSign(e.A) || Et(e.p);
1730
+ return dateDurationSign(e.A) || Mt(e.p);
1735
1731
  }
1736
1732
  function validateDuration(...e) {
1737
1733
  e.some((e) => e < 0) && e.some((e) => e > 0) && throwRangeError("invalid duration"), (e.some((e) => Math.abs(e) > 1e25) || [
@@ -1773,8 +1769,8 @@ function toTemporalPartialDurationRecord(e) {
1773
1769
  function createTemporalDurationSlot(e) {
1774
1770
  return validateDuration(...e), e;
1775
1771
  }
1776
- function createTemporalDuration(e, t = Object.create(Mt.prototype)) {
1777
- return vt.set(t, e), t;
1772
+ function createTemporalDuration(e, t = Object.create(bt.prototype)) {
1773
+ return Et.set(t, e), t;
1778
1774
  }
1779
1775
  function timeDurationFromComponents(e, t, o, n, r, a) {
1780
1776
  return addTimeDuration(addTimeDuration(addTimeDuration(createTimeDurationFromUnit(3600 * e + 60 * t + o, 1e9), createTimeDurationFromUnit(n, 1e6)), createTimeDurationFromUnit(r, 1e3)), createTimeDurationFromUnit(a, 1));
@@ -1840,7 +1836,7 @@ function roundRelativeDuration(e, t, o, n, r, a, i, c, s, m) {
1840
1836
  let h = roundTimeDurationToIncrement(t.p, a * D, c);
1841
1837
  const p = addTimeDuration(h, negateTimeDuration(T));
1842
1838
  let g = !1, f = 0;
1843
- return Et(p) !== -e && (g = !0, f = e, h = roundTimeDurationToIncrement(p, a * D, c)), {
1839
+ return Mt(p) !== -e && (g = !0, f = e, h = roundTimeDurationToIncrement(p, a * D, c)), {
1844
1840
  ye: combineDateAndTimeDuration(adjustDateDurationRecord(t.A, t.A.X + f), h),
1845
1841
  Se: addTimeDurationToEpochNanoseconds(u, h),
1846
1842
  we: g
@@ -1850,7 +1846,7 @@ function roundRelativeDuration(e, t, o, n, r, a, i, c, s, m) {
1850
1846
  return {
1851
1847
  ye: combineDateAndTimeDuration(adjustDateDurationRecord(e.A, isDateUnit(o) ? s : 0), isDateUnit(o) ? addTimeDuration(c, timeDurationFromComponents(24 * -s, 0, 0, 0, 0, 0)) : c),
1852
1848
  Se: addTimeDurationToEpochNanoseconds(t, addTimeDuration(c, negateTimeDuration(i))),
1853
- we: sign(s - i[0]) === Et(i)
1849
+ we: sign(s - i[0]) === Mt(i)
1854
1850
  };
1855
1851
  })(e, o, i, c, s, m);
1856
1852
  return T.we && s !== l ? ((e, t, o, n, r, a, i, c) => {
@@ -1859,8 +1855,8 @@ function roundRelativeDuration(e, t, o, n, r, a, i, c, s, m) {
1859
1855
  let d;
1860
1856
  for (let m = c - 1; m >= s; m--) if (m !== g || i === l) {
1861
1857
  d = m === h ? createDateDurationRecord(t.A.te + e, 0, 0, 0) : m === p ? adjustDateDurationRecord(t.A, 0, 0, t.A.oe + e) : adjustDateDurationRecord(t.A, 0, t.A.ee + e);
1862
- const i = combineIsoDateAndTimeRecord(calendarDateAdd(a, n.o, d, _), n.p);
1863
- if (Et(differenceEpochNanoseconds(r ? getEpochNanosecondsFor(r, i, "compatible") : getUtcEpochNanoseconds(i), o)) === -e) break;
1858
+ const i = combineIsoDateAndTimeRecord(calendarDateAdd(a, n.o, d, _), n.p), c = r ? getEpochNanosecondsFor(r, i, G) : getUtcEpochNanoseconds(i);
1859
+ if (Mt(differenceEpochNanoseconds(c, o)) === -e) break;
1864
1860
  t = combineDateAndTimeDuration(d, ve);
1865
1861
  }
1866
1862
  return t;
@@ -1877,7 +1873,7 @@ function temporalDurationToString(e, t) {
1877
1873
  "D",
1878
1874
  "H",
1879
1875
  "M"
1880
- ].map((t, o) => e[o] ? `${e[o]}${t}` : ""), h = `${u}${D}${Et(n) || defaultTemporalLargestUnit(e) >= T || void 0 !== t ? `${toString(r)}${formatFractionalSeconds(1e6 * a + 1e3 * i + c, t)}S` : ""}`;
1876
+ ].map((t, o) => e[o] ? `${e[o]}${t}` : ""), h = `${u}${D}${Mt(n) || defaultTemporalLargestUnit(e) >= T || void 0 !== t ? `${toString(r)}${formatFractionalSeconds(1e6 * a + 1e3 * i + c, t)}S` : ""}`;
1881
1877
  return `${o < 0 ? "-" : ""}P${s}${l}${d}${m}${h && `T${h}`}`;
1882
1878
  }
1883
1879
  function addDurations(e, t, o) {
@@ -1885,7 +1881,7 @@ function addDurations(e, t, o) {
1885
1881
  return isCalendarUnit(r) && throwRangeError(durationWithDateUnit(r)), createTemporalDuration(temporalDurationFromInternal(combineDateAndTimeDuration(zeroDateDuration(), addTimeDuration(toInternalDurationRecordWith24HourDays(t).p, toInternalDurationRecordWith24HourDays(n).p)), r));
1886
1882
  }
1887
1883
  function getInternalSlotOrThrowForDuration(e) {
1888
- return getInternalSlotOrThrow(vt, e);
1884
+ return getInternalSlotOrThrow(Et, e);
1889
1885
  }
1890
1886
  function applySignToDurationSlot(e, t) {
1891
1887
  return createTemporalDurationSlot(e.map((e) => e * t + 0));
@@ -2016,23 +2012,23 @@ function getTemporalRelativeToOption(e) {
2016
2012
  if (e) return createNullPrototypeObject({ Pe: getInternalSlotOrThrowForPlainDate(createTemporalDate(e.K.o, e.Y)) });
2017
2013
  r = getTemporalCalendarIdentifierWithIsoDefault(t);
2018
2014
  const c = prepareCalendarFields(r, t, [
2019
- St.t,
2020
- St.u,
2021
- St.v,
2022
- St.T,
2023
- St.D,
2024
- St.I,
2025
- St.O,
2026
- St.F,
2027
- St.S,
2028
- St.$,
2029
- St.M,
2030
- St.P
2015
+ yt.t,
2016
+ yt.u,
2017
+ yt.v,
2018
+ yt.T,
2019
+ yt.D,
2020
+ yt.I,
2021
+ yt.O,
2022
+ yt.F,
2023
+ yt.S,
2024
+ yt.$,
2025
+ yt.M,
2026
+ yt.P
2031
2027
  ], []), l = interpretTemporalDateTimeFields(r, c, _);
2032
2028
  a = l.o, i = l.p, o = c.timeZone, n = c.offset, s = n ? te : ne;
2033
2029
  } else {
2034
2030
  validateString(t);
2035
- const e = parseIsoDateTime(t, [Qe, et]);
2031
+ const e = parseIsoDateTime(t, [et, tt]);
2036
2032
  n = e.P.N, e.P.R ? (o = toTemporalTimeZoneIdentifier(e.P.R), s = e.P.Z ? oe : n ? te : ne, 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;
2037
2033
  }
2038
2034
  return createNullPrototypeObject(o ? { be: getInternalSlotOrThrowForZonedDateTime(createTemporalZonedDateTime(interpretISODateTimeOffset(a, i, s, s === te ? parseDateTimeUtcOffset(n) : 0, o, G, ee, c), o, r)) } : { Pe: getInternalSlotOrThrowForPlainDate(createTemporalDate(a, r)) });
@@ -2064,7 +2060,7 @@ function formatTimeString(e, t, o, n, r) {
2064
2060
  return `${toZeroPaddedDecimalString(e, 2)}:${toZeroPaddedDecimalString(t, 2)}${r === J ? "" : `:${toZeroPaddedDecimalString(o, 2)}${formatFractionalSeconds(n, r)}`}`;
2065
2061
  }
2066
2062
  function roundNumberToIncrement(e, t, o) {
2067
- return bt[o](e / t) * t;
2063
+ return Pt[o](e / t) * t;
2068
2064
  }
2069
2065
  function getRoundingModeOption(e, t) {
2070
2066
  return getOption(e, "roundingMode", [
@@ -2086,14 +2082,14 @@ function getRoundingIncrementOption(e) {
2086
2082
  function isoDateToFields(e, t, o) {
2087
2083
  const n = calendarIsoToDate(e, t);
2088
2084
  return createNullPrototypeObject({
2089
- [St.t]: o === q ? void 0 : n.t,
2090
- [St.v]: n.v,
2091
- [St.T]: o === H ? void 0 : n.T
2085
+ [yt.t]: o === q ? void 0 : n.t,
2086
+ [yt.v]: n.v,
2087
+ [yt.T]: o === H ? void 0 : n.T
2092
2088
  });
2093
2089
  }
2094
2090
  function getDifferenceSettings(e, t, o, n, r, a) {
2095
- let i = getTemporalUnitValuedOption(t, "largestUnit", void 0) ?? "auto";
2096
- const c = getRoundingIncrementOption(t), s = getRoundingModeOption(t, ce), l = getTemporalUnitValuedOption(t, "smallestUnit", void 0) ?? r;
2091
+ let i = getTemporalUnitValuedOption(t, "largestUnit") ?? "auto";
2092
+ const c = getRoundingIncrementOption(t), s = getRoundingModeOption(t, ce), l = getTemporalUnitValuedOption(t, "smallestUnit") ?? r;
2097
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($), isDateUnit(l) || validateTemporalRoundingIncrement(c, maximumTemporalDurationRoundingIncrement(l), !1), {
2098
2094
  H: l,
2099
2095
  L: i,
@@ -2115,16 +2111,16 @@ function epochDaysToIsoDate(e) {
2115
2111
  function isoDateTimeToFields(e, t) {
2116
2112
  return createNullPrototypeObject({
2117
2113
  ...isoDateToFields(e, t.o, z),
2118
- [St.D]: t.p.D,
2119
- [St.I]: t.p.I,
2120
- [St.O]: t.p.O,
2121
- [St.F]: t.p.F,
2122
- [St.S]: t.p.S,
2123
- [St.$]: t.p.$
2114
+ [yt.D]: t.p.D,
2115
+ [yt.I]: t.p.I,
2116
+ [yt.O]: t.p.O,
2117
+ [yt.F]: t.p.F,
2118
+ [yt.S]: t.p.S,
2119
+ [yt.$]: t.p.$
2124
2120
  });
2125
2121
  }
2126
2122
  function getInternalSlotOrThrowForDateTimeFormat(e) {
2127
- return getInternalSlotOrThrow(Nt, e);
2123
+ return getInternalSlotOrThrow(Zt, e);
2128
2124
  }
2129
2125
  function formatDateTime(e, t) {
2130
2126
  const [o, n] = handleDateTimeValue(e, t);
@@ -2138,19 +2134,19 @@ function dateStyleToMonthStyle(e) {
2138
2134
  }
2139
2135
  function amendOptionsForPlainDate(e) {
2140
2136
  const t = createNullPrototypeObject(e);
2141
- return hasAnyOptions(e, Zt) || (hasAnyOptions(e, $t) && throwTypeError(N), t.year = t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [...$t, "timeZoneName"]), t.timeZone = "UTC", t;
2137
+ return hasAnyOptions(e, $t) || (hasAnyOptions(e, Ct) && throwTypeError(N), t.year = t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [...Ct, "timeZoneName"]), t.timeZone = "UTC", t;
2142
2138
  }
2143
2139
  function amendOptionsForPlainTime(e) {
2144
2140
  const t = createNullPrototypeObject(e);
2145
- return hasAnyOptions(e, $t) || (hasAnyOptions(e, Zt) && throwTypeError(N), t.hour = t.minute = t.second = "numeric"), "long" !== e.timeStyle && "full" !== e.timeStyle || (removeDateTimeFormatOptions(t, ["timeStyle"]), t.hour = t.minute = t.second = "numeric"), removeDateTimeFormatOptions(t, [
2146
- ...Zt,
2141
+ return hasAnyOptions(e, Ct) || (hasAnyOptions(e, $t) && throwTypeError(N), t.hour = t.minute = t.second = "numeric"), "long" !== e.timeStyle && "full" !== e.timeStyle || (removeDateTimeFormatOptions(t, ["timeStyle"]), t.hour = t.minute = t.second = "numeric"), removeDateTimeFormatOptions(t, [
2142
+ ...$t,
2147
2143
  "era",
2148
2144
  "timeZoneName"
2149
2145
  ]), t.timeZone = "UTC", t;
2150
2146
  }
2151
2147
  function amendOptionsForPlainDateTime(e) {
2152
2148
  const t = createNullPrototypeObject(e);
2153
- return "long" !== e.timeStyle && "full" !== e.timeStyle || (removeDateTimeFormatOptions(t, ["timeStyle"]), t.hour = t.minute = t.second = "numeric", e.dateStyle && (removeDateTimeFormatOptions(t, ["dateStyle"]), t.year = t.day = "numeric", t.month = dateStyleToMonthStyle(e.dateStyle), t.weekday = "full" === e.dateStyle ? "long" : void 0)), hasAnyOptions(e, [...Zt, ...$t]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), removeDateTimeFormatOptions(t, ["timeZoneName"]), t.timeZone = "UTC", t;
2149
+ return "long" !== e.timeStyle && "full" !== e.timeStyle || (removeDateTimeFormatOptions(t, ["timeStyle"]), t.hour = t.minute = t.second = "numeric", e.dateStyle && (removeDateTimeFormatOptions(t, ["dateStyle"]), t.year = t.day = "numeric", t.month = dateStyleToMonthStyle(e.dateStyle), t.weekday = "full" === e.dateStyle ? "long" : void 0)), hasAnyOptions(e, [...$t, ...Ct]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), removeDateTimeFormatOptions(t, ["timeZoneName"]), t.timeZone = "UTC", t;
2154
2150
  }
2155
2151
  function amendOptionsForPlainYearMonth(e) {
2156
2152
  const t = createNullPrototypeObject(e);
@@ -2158,8 +2154,8 @@ function amendOptionsForPlainYearMonth(e) {
2158
2154
  "year",
2159
2155
  "month",
2160
2156
  "dateStyle"
2161
- ]) || (hasAnyOptions(e, [...Zt, ...$t]) && throwTypeError(N), t.year = t.month = "numeric"), removeDateTimeFormatOptions(t, [
2162
- ...$t,
2157
+ ]) || (hasAnyOptions(e, [...$t, ...Ct]) && throwTypeError(N), t.year = t.month = "numeric"), removeDateTimeFormatOptions(t, [
2158
+ ...Ct,
2163
2159
  "day",
2164
2160
  "weekday",
2165
2161
  "timeZoneName"
@@ -2171,8 +2167,8 @@ function amendOptionsForPlainMonthDay(e) {
2171
2167
  "month",
2172
2168
  "day",
2173
2169
  "dateStyle"
2174
- ]) || (hasAnyOptions(e, [...Zt, ...$t]) && throwTypeError(N), t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [
2175
- ...$t,
2170
+ ]) || (hasAnyOptions(e, [...$t, ...Ct]) && throwTypeError(N), t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [
2171
+ ...Ct,
2176
2172
  "era",
2177
2173
  "year",
2178
2174
  "weekday",
@@ -2181,7 +2177,7 @@ function amendOptionsForPlainMonthDay(e) {
2181
2177
  }
2182
2178
  function amendOptionsForInstant(e) {
2183
2179
  const t = createNullPrototypeObject(e);
2184
- return hasAnyOptions(e, [...Zt, ...$t]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), t;
2180
+ return hasAnyOptions(e, [...$t, ...Ct]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), t;
2185
2181
  }
2186
2182
  function hasAnyOptions(e, t) {
2187
2183
  return t.some((t) => void 0 !== e[t]);
@@ -2189,15 +2185,15 @@ function hasAnyOptions(e, t) {
2189
2185
  function createDateTimeFormat(e, t = createNullPrototypeObject(), o, n) {
2190
2186
  null === t && throwTypeError(N);
2191
2187
  const r = createNullPrototypeObject();
2192
- let a = new Rt(e, new Proxy({}, { get(e, o) {
2188
+ let a = new Nt(e, new Proxy({}, { get(e, o) {
2193
2189
  const a = t[o];
2194
2190
  return "timeZone" === o && void 0 !== n ? (void 0 !== a && throwTypeError("disallowed field: timeZone"), r[o] = n) : void 0 === a ? a : r[o] = "hour12" === o ? ((e) => !!e)(a) : "fractionalSecondDigits" === o ? Se(a) : toString(a);
2195
2191
  } }));
2196
2192
  return (o === z && r.timeStyle || o === V && r.dateStyle) && throwTypeError(N), r.calendar = a.resolvedOptions().calendar, void 0 === n || hasAnyOptions(r, [
2197
- ...Zt,
2198
2193
  ...$t,
2194
+ ...Ct,
2199
2195
  "timeZoneName"
2200
- ]) || (r.timeZoneName = "short", a = new Rt(a.resolvedOptions().locale, r)), createNullPrototypeObject({
2196
+ ]) || (r.timeZoneName = "short", a = new Nt(a.resolvedOptions().locale, r)), createNullPrototypeObject({
2201
2197
  Re: a,
2202
2198
  Ne: r,
2203
2199
  Ze: a.resolvedOptions().locale
@@ -2219,23 +2215,23 @@ function toDateTimeFormattable(e) {
2219
2215
  }
2220
2216
  function handleDateTimeValue(e, t) {
2221
2217
  const o = getInternalSlotForPlainDate(t), n = getInternalSlotForPlainDateTime(t), r = getInternalSlotForPlainYearMonth(t), a = getInternalSlotForPlainMonthDay(t);
2222
- return isPlainTime(t) ? [e.Ye ||= new Rt(e.Ze, amendOptionsForPlainTime(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(createIsoDateRecord(1970, 1, 1), getInternalSlotOrThrowForPlainTime(t))))] : o ? (o.Y !== e.Ne.calendar && "iso8601" !== o.Y && throwRangeError(Z), [e.Ce ||= new Rt(e.Ze, amendOptionsForPlainDate(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(o.o, midnightTimeRecord())))]) : n ? (n.Y !== e.Ne.calendar && "iso8601" !== n.Y && throwRangeError(Z), [e.Ue ||= new Rt(e.Ze, amendOptionsForPlainDateTime(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(n.K))]) : r ? (r.Y !== e.Ne.calendar && throwRangeError(Z), [e.je ||= new Rt(e.Ze, amendOptionsForPlainYearMonth(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(r.o, midnightTimeRecord())))]) : a ? (a.Y !== e.Ne.calendar && throwRangeError(Z), [e.We ||= new Rt(e.Ze, amendOptionsForPlainMonthDay(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(a.o, midnightTimeRecord())))]) : isInstant(t) ? [e.ke ||= new Rt(e.Ze, amendOptionsForInstant(e.Ne)), epochMilliseconds(getInternalSlotOrThrowForInstant(t).U)] : (isZonedDateTime(t) && throwTypeError(Y), [e.Re, t]);
2218
+ return isPlainTime(t) ? [e.Ye ||= new Nt(e.Ze, amendOptionsForPlainTime(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(createIsoDateRecord(1970, 1, 1), getInternalSlotOrThrowForPlainTime(t))))] : o ? (o.Y !== e.Ne.calendar && "iso8601" !== o.Y && throwRangeError(Z), [e.Ce ||= new Nt(e.Ze, amendOptionsForPlainDate(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(o.o, midnightTimeRecord())))]) : n ? (n.Y !== e.Ne.calendar && "iso8601" !== n.Y && throwRangeError(Z), [e.Ue ||= new Nt(e.Ze, amendOptionsForPlainDateTime(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(n.K))]) : r ? (r.Y !== e.Ne.calendar && throwRangeError(Z), [e.je ||= new Nt(e.Ze, amendOptionsForPlainYearMonth(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(r.o, midnightTimeRecord())))]) : a ? (a.Y !== e.Ne.calendar && throwRangeError(Z), [e.We ||= new Nt(e.Ze, amendOptionsForPlainMonthDay(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(a.o, midnightTimeRecord())))]) : isInstant(t) ? [e.ke ||= new Nt(e.Ze, amendOptionsForInstant(e.Ne)), epochMilliseconds(getInternalSlotOrThrowForInstant(t).U)] : (isZonedDateTime(t) && throwTypeError(Y), [e.Re, t]);
2223
2219
  }
2224
2220
  function DateTimeFormat(e, t) {
2225
- return new Yt(e, t);
2221
+ return new Ut(e, t);
2226
2222
  }
2227
- function createTemporalInstant(e, t = Object.create(At.prototype)) {
2228
- return Wt.set(t, { U: e }), t;
2223
+ function createTemporalInstant(e, t = Object.create(Lt.prototype)) {
2224
+ return At.set(t, { U: e }), t;
2229
2225
  }
2230
2226
  function toTemporalInstant$1(e) {
2231
2227
  if (isObject(e)) {
2232
- const o = (t = e, Wt.get(t) || getInternalSlotForZonedDateTime(e));
2228
+ const o = (t = e, At.get(t) || getInternalSlotForZonedDateTime(e));
2233
2229
  if (o) return createTemporalInstant(o.U);
2234
2230
  e = toPrimitive(e);
2235
2231
  }
2236
2232
  var t;
2237
2233
  validateString(e);
2238
- const o = parseIsoDateTime(e, [tt]), n = o.P.Z ? 0 : parseDateTimeUtcOffset(o.P.N), r = o.p;
2234
+ const o = parseIsoDateTime(e, [ot]), n = o.P.Z ? 0 : parseDateTimeUtcOffset(o.P.N), r = o.p;
2239
2235
  return createTemporalInstant(validateEpochNanoseconds(getUtcEpochNanoseconds(balanceIsoDateTime(o.t, o.u, o.T, r.D, r.I, r.O, r.F, r.S, r.$ - n))));
2240
2236
  }
2241
2237
  function addInstant(e, t) {
@@ -2246,7 +2242,7 @@ function differenceInstant(e, t, o, n, r) {
2246
2242
  }
2247
2243
  function roundTemporalInstant(e, t, o, n) {
2248
2244
  return (function(e, t, o) {
2249
- return normalizeEpochNanoseconds(e[0], ((e, t, o) => Pt[o](e / t) * t)(e[1], t, o));
2245
+ return normalizeEpochNanoseconds(e[0], ((e, t, o) => Rt[o](e / t) * t)(e[1], t, o));
2250
2246
  })(e, t * nanosecondsForTimeUnit(o), n);
2251
2247
  }
2252
2248
  function temporalInstantToString(e, t, o) {
@@ -2265,19 +2261,19 @@ function validateEpochNanoseconds(e) {
2265
2261
  return ((e) => compareEpochNanoseconds(ye, e) * compareEpochNanoseconds(we, e) <= 0)(e) || throwRangeError(P), e;
2266
2262
  }
2267
2263
  function getInternalSlotOrThrowForInstant(e) {
2268
- return getInternalSlotOrThrow(Wt, e);
2264
+ return getInternalSlotOrThrow(At, e);
2269
2265
  }
2270
2266
  function isInstant(e) {
2271
- return Wt.has(e);
2267
+ return At.has(e);
2272
2268
  }
2273
2269
  function clampEpochNanoseconds(e) {
2274
2270
  return compareEpochNanoseconds(e, we) > 0 ? we : compareEpochNanoseconds(e, ye) < 0 ? ye : e;
2275
2271
  }
2276
2272
  function systemTimeZoneIdentifier() {
2277
- return xt && Ht + xt > Date.now() && Vt ? Vt : (Ht = Date.now(), Vt = new Rt().resolvedOptions().timeZone);
2273
+ return Ht && qt + Ht > Date.now() && xt ? xt : (qt = Date.now(), xt = new Nt().resolvedOptions().timeZone);
2278
2274
  }
2279
2275
  function setSystemTimeZoneIdCacheTtl(e) {
2280
- xt = e, e || (Vt = void 0, Ht = -Infinity);
2276
+ Ht = e, e || (xt = void 0, qt = -1 / 0);
2281
2277
  }
2282
2278
  function systemUtcEpochNanoseconds() {
2283
2279
  return createEpochNanosecondsFromEpochMilliseconds(Date.now());
@@ -2427,21 +2423,21 @@ var be = class {
2427
2423
  validatePartialTemporalObject(e);
2428
2424
  const n = getOffsetNanosecondsForZonedDateTimeSlot(o), r = getIsoDateTimeForZonedDateTimeSlot(o), a = calendarMergeFields(o.Y, createNullPrototypeObject({
2429
2425
  ...isoDateTimeToFields(o.Y, r),
2430
- [St.M]: formatUtcOffsetNanoseconds(n)
2426
+ [yt.M]: formatUtcOffsetNanoseconds(n)
2431
2427
  }), prepareCalendarFields(o.Y, e, [
2432
- St.t,
2433
- St.u,
2434
- St.v,
2435
- St.T,
2436
- St.D,
2437
- St.I,
2438
- St.O,
2439
- St.F,
2440
- St.S,
2441
- St.$,
2442
- St.M
2428
+ yt.t,
2429
+ yt.u,
2430
+ yt.v,
2431
+ yt.T,
2432
+ yt.D,
2433
+ yt.I,
2434
+ yt.O,
2435
+ yt.F,
2436
+ yt.S,
2437
+ yt.$,
2438
+ yt.M
2443
2439
  ])), i = getOptionsObject(t), c = getTemporalDisambiguationOption(i), s = getTemporalOffsetOption(i, Q), l = getTemporalOverflowOption(i), d = interpretTemporalDateTimeFields(o.Y, a, l);
2444
- return createTemporalZonedDateTime(interpretISODateTimeOffset(d.o, d.p, te, parseDateTimeUtcOffset(a[St.M]), o.P, c, s, !0), o.P, o.Y);
2440
+ return createTemporalZonedDateTime(interpretISODateTimeOffset(d.o, d.p, te, parseDateTimeUtcOffset(a[yt.M]), o.P, c, s, !0), o.P, o.Y);
2445
2441
  }
2446
2442
  withPlainTime(e = void 0) {
2447
2443
  const t = getInternalSlotOrThrowForZonedDateTime(this), o = getIsoDateTimeForZonedDateTimeSlot(t);
@@ -2483,7 +2479,7 @@ var be = class {
2483
2479
  return !compareEpochNanoseconds(t.U, o.U) && timeZoneEquals(t.P, o.P) && calendarEquals(t.Y, o.Y);
2484
2480
  }
2485
2481
  toString(e = void 0) {
2486
- const t = getInternalSlotOrThrowForZonedDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = ((e) => getOption(e, "offset", [ge, fe], ge))(o), i = getRoundingModeOption(o, ce), c = getTemporalUnitValuedOption(o, "smallestUnit", void 0), s = ((e) => getOption(e, "timeZoneName", [
2482
+ const t = getInternalSlotOrThrowForZonedDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = ((e) => getOption(e, "offset", [ge, fe], ge))(o), i = getRoundingModeOption(o, ce), c = getTemporalUnitValuedOption(o, "smallestUnit"), s = ((e) => getOption(e, "timeZoneName", [
2487
2483
  Ie,
2488
2484
  Oe,
2489
2485
  Fe
@@ -2511,7 +2507,7 @@ var be = class {
2511
2507
  void 0 === e && throwTypeError(W);
2512
2508
  const o = getOption("string" == typeof e ? { direction: e } : getOptionsObject(e), "direction", ["next", "previous"], B), n = ((e, t, o) => {
2513
2509
  if ("UTC" === e || isOffsetTimeZoneIdentifier(e)) return null;
2514
- const n = -4e9, r = Math.floor((Date.now() + 31536e7) / 1e3), a = clamp(epochSeconds(addNanosecondsToEpochSeconds(t, o > 0 ? 0 : -1)), n, Infinity);
2510
+ const n = -4e9, r = Math.floor((Date.now() + 31536e7) / 1e3), a = clamp(epochSeconds(addNanosecondsToEpochSeconds(t, o > 0 ? 0 : -1)), n, 1 / 0);
2515
2511
  return -1 === o ? a === n ? null : a > r ? searchTimeZoneTransition(e, a, a - 31536e3, o) || searchTimeZoneTransition(e, r, n, o) : searchTimeZoneTransition(e, a, n, o) : searchTimeZoneTransition(e, a, a > r ? a + 31536e3 : r, o);
2516
2512
  })(t.P, t.U, "next" === o ? 1 : -1);
2517
2513
  return null === n ? null : createTemporalZonedDateTime(n, t.P, t.Y);
@@ -2532,8 +2528,8 @@ var be = class {
2532
2528
  }
2533
2529
  };
2534
2530
  defineStringTag(be.prototype, "Temporal.ZonedDateTime"), renameFunction(be, "ZonedDateTime");
2535
- const Pe = createNullPrototypeObject(), Re = createNullPrototypeObject(), Ne = /* @__PURE__ */ new WeakMap();
2536
- var Ze = class {
2531
+ const Pe = globalThis.Temporal, Re = createNullPrototypeObject(), Ne = createNullPrototypeObject(), Ze = /* @__PURE__ */ new WeakMap();
2532
+ var $e = class {
2537
2533
  constructor(e, t, o, n = 0, r = 0, a = 0, i = 0, c = 0, s = 0, l = "iso8601") {
2538
2534
  const d = [
2539
2535
  e,
@@ -2549,7 +2545,7 @@ var Ze = class {
2549
2545
  ].map(toIntegerWithTruncation);
2550
2546
  validateString(l);
2551
2547
  const u = canonicalizeCalendar(l);
2552
- isValidIsoDate(...d) && isValidTime(...m) || throwRangeError(b), createTemporalDateTime(combineIsoDateAndTimeRecord(createIsoDateRecord(...d), createTimeRecord(...m)), u, this);
2548
+ createTemporalDateTime(combineIsoDateAndTimeRecord(createIsoDateRecord(...d), createTimeRecord(...m)), u, this);
2553
2549
  }
2554
2550
  static from(e, t = void 0) {
2555
2551
  return toTemporalDateTime(e, t);
@@ -2627,16 +2623,16 @@ var Ze = class {
2627
2623
  const o = getInternalSlotOrThrowForPlainDateTime(this);
2628
2624
  validatePartialTemporalObject(e);
2629
2625
  const n = calendarMergeFields(o.Y, isoDateTimeToFields(o.Y, o.K), prepareCalendarFields(o.Y, e, [
2630
- St.t,
2631
- St.u,
2632
- St.v,
2633
- St.T,
2634
- St.D,
2635
- St.I,
2636
- St.O,
2637
- St.F,
2638
- St.S,
2639
- St.$
2626
+ yt.t,
2627
+ yt.u,
2628
+ yt.v,
2629
+ yt.T,
2630
+ yt.D,
2631
+ yt.I,
2632
+ yt.O,
2633
+ yt.F,
2634
+ yt.S,
2635
+ yt.$
2640
2636
  ]));
2641
2637
  return createTemporalDateTime(interpretTemporalDateTimeFields(o.Y, n, getTemporalOverflowOption(getOptionsObject(t))), o.Y);
2642
2638
  }
@@ -2668,7 +2664,7 @@ var Ze = class {
2668
2664
  return !compareIsoDateTime(t.K, o.K) && calendarEquals(t.Y, o.Y);
2669
2665
  }
2670
2666
  toString(e = void 0) {
2671
- const t = getInternalSlotOrThrowForPlainDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = getRoundingModeOption(o, ce), i = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2667
+ const t = getInternalSlotOrThrowForPlainDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = getRoundingModeOption(o, ce), i = getTemporalUnitValuedOption(o, "smallestUnit");
2672
2668
  validateTemporalUnitValue(i, V), i === m && throwRangeError(invalidField("smallestUnit"));
2673
2669
  const c = toSecondsStringPrecisionRecord(i, r);
2674
2670
  return isoDateTimeToString(validateIsoDateTime(roundIsoDateTime(t.K, c.Me, c.Ee, a)), t.Y, c.ve, n);
@@ -2695,19 +2691,18 @@ var Ze = class {
2695
2691
  return createTemporalTime(getInternalSlotOrThrowForPlainDateTime(this).K.p);
2696
2692
  }
2697
2693
  };
2698
- defineStringTag(Ze.prototype, "Temporal.PlainDateTime"), renameFunction(Ze, "PlainDateTime");
2699
- const $e = /* @__PURE__ */ new WeakMap();
2700
- var Ce = class {
2694
+ defineStringTag($e.prototype, "Temporal.PlainDateTime"), renameFunction($e, "PlainDateTime");
2695
+ const Ce = /* @__PURE__ */ new WeakMap();
2696
+ var Ye = class {
2701
2697
  constructor(e = 0, t = 0, o = 0, n = 0, r = 0, a = 0) {
2702
- const i = [
2698
+ createTemporalTime(createTimeRecord(...[
2703
2699
  e,
2704
2700
  t,
2705
2701
  o,
2706
2702
  n,
2707
2703
  r,
2708
2704
  a
2709
- ].map(toIntegerWithTruncation);
2710
- isValidTime(...i) || throwRangeError(b), createTemporalTime(createTimeRecord(...i), this);
2705
+ ].map(toIntegerWithTruncation)), this);
2711
2706
  }
2712
2707
  static from(e, t = void 0) {
2713
2708
  return createTemporalTime(toTemporalTime(e, t));
@@ -2764,7 +2759,7 @@ var Ce = class {
2764
2759
  return !compareTimeRecord(getInternalSlotOrThrowForPlainTime(this), toTemporalTime(e));
2765
2760
  }
2766
2761
  toString(e = void 0) {
2767
- const t = getInternalSlotOrThrowForPlainTime(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, ce), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2762
+ const t = getInternalSlotOrThrowForPlainTime(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, ce), a = getTemporalUnitValuedOption(o, "smallestUnit");
2768
2763
  validateTemporalUnitValue(a, V), a === m && throwRangeError(invalidField("smallestUnit"));
2769
2764
  const i = toSecondsStringPrecisionRecord(a, n);
2770
2765
  return timeRecordToString(roundTime(t, i.Me, i.Ee, r), i.ve);
@@ -2779,32 +2774,32 @@ var Ce = class {
2779
2774
  throwTypeError(j);
2780
2775
  }
2781
2776
  };
2782
- defineStringTag(Ce.prototype, "Temporal.PlainTime"), renameFunction(Ce, "PlainTime");
2783
- const Ye = "\\d{4}|[-+]\\d{6}", Ue = "0[1-9]|1[0-2]", je = "0[1-9]|[12]\\d|30|31", We = "[01]\\d|2[0-3]", Ae = "[0-5]\\d", Le = `(?<a>${Ye})(?<x>-?)(?<b>${Ue})\\k<x>(?<c>${je})`, ke = optionalChain([
2784
- `(?<d>${We})`,
2785
- `(?<y>:?)(?<e>${Ae})`,
2777
+ defineStringTag(Ye.prototype, "Temporal.PlainTime"), renameFunction(Ye, "PlainTime");
2778
+ const Ue = "\\d{4}|[-+]\\d{6}", je = "0[1-9]|1[0-2]", We = "0[1-9]|[12]\\d|30|31", Ae = "[01]\\d|2[0-3]", Le = "[0-5]\\d", ke = `(?<a>${Ue})(?<x>-?)(?<b>${je})\\k<x>(?<c>${We})`, ze = optionalChain([
2779
+ `(?<d>${Ae})`,
2780
+ `(?<y>:?)(?<e>${Le})`,
2786
2781
  "\\k<y>(?<f>[0-5]\\d|60)",
2787
2782
  "[.,](?<g>\\d{1,9})"
2788
- ]), ze = optionalChain([
2789
- `([+-])(${We})`,
2790
- `(?<z>:?)(${Ae})`,
2791
- `\\k<z>(${Ae})`,
2792
- "[.,](\\d{1,9})"
2793
2783
  ]), Ve = optionalChain([
2794
- Le,
2795
- `[ tT]${ke}`,
2796
- `(?<h>${ze})`
2797
- ]), xe = `(?<l>${Ye})-?(?<m>${Ue})`, He = `(?:--)?(?<m>${Ue})-?(?<n>${je})`, qe = `(?<h>${ze})|(?<i>[zZ])`, Be = `([+-])(${We})(?::?(${Ae}))?|${join("[a-zA-Z._][a-zA-Z._+-\\d]*", "\\/")}`, Je = `\\[!?(?<j>${Be})\\]`, _e = join("[a-zA-Z\\d]+", "-"), Xe = `\\[(!)?([a-z_][a-z\\d_-]*)=(${_e})\\]`, Ge = `(?<k>(${Xe})*)`, Ke = RegExp(Xe, "g"), Qe = createRegExp(`${optionalChain([
2798
- Le,
2799
- `[ tT]${ke}`,
2800
- qe
2801
- ])}${Je}${Ge}`), et = createRegExp(`${Ve}(?:${Je})?${Ge}`), tt = createRegExp(`${Le}[ tT]${ke}(?:${qe})(?:${Je})?${Ge}`), ot = createRegExp(`(${Le}[ tT]|[tT]?)${ke}(?<h>${ze})?(?:${Je})?${Ge}`), nt = createRegExp(`(${Ve}|${He})(?:${Je})?${Ge}`), rt = createRegExp(`(${Ve}|${xe})(?:${Je})?${Ge}`), at = [createRegExp(`${He}(${Je})?(${Xe})*`), createRegExp(`${xe}(${Je})?(${Xe})*`)], it = createRegExp(Be), ct = createRegExp(_e), st = createRegExp(ze), lt = /* @__PURE__ */ new WeakMap();
2802
- var dt = class {
2784
+ `([+-])(${Ae})`,
2785
+ `(?<z>:?)(${Le})`,
2786
+ `\\k<z>(${Le})`,
2787
+ "[.,](\\d{1,9})"
2788
+ ]), xe = optionalChain([
2789
+ ke,
2790
+ `[ tT]${ze}`,
2791
+ `(?<h>${Ve})`
2792
+ ]), He = `(?<l>${Ue})-?(?<m>${je})`, qe = `(?:--)?(?<m>${je})-?(?<n>${We})`, Be = `(?<h>${Ve})|(?<i>[zZ])`, Je = `([+-])(${Ae})(?::?(${Le}))?|${join("[a-zA-Z._][a-zA-Z._+-\\d]*", "\\/")}`, _e = `\\[!?(?<j>${Je})\\]`, Xe = join("[a-zA-Z\\d]+", "-"), Ge = `\\[(!)?([a-z_][a-z\\d_-]*)=(${Xe})\\]`, Ke = `(?<k>(${Ge})*)`, Qe = RegExp(Ge, "g"), et = createRegExp(`${optionalChain([
2793
+ ke,
2794
+ `[ tT]${ze}`,
2795
+ Be
2796
+ ])}${_e}${Ke}`), tt = createRegExp(`${xe}(?:${_e})?${Ke}`), ot = createRegExp(`${ke}[ tT]${ze}(?:${Be})(?:${_e})?${Ke}`), nt = createRegExp(`(${ke}[ tT]|[tT]?)${ze}(?<h>${Ve})?(?:${_e})?${Ke}`), rt = createRegExp(`(${xe}|${qe})(?:${_e})?${Ke}`), at = createRegExp(`(${xe}|${He})(?:${_e})?${Ke}`), it = [createRegExp(`${qe}(${_e})?(${Ge})*`), createRegExp(`${He}(${_e})?(${Ge})*`)], ct = createRegExp(Je), st = createRegExp(Xe), lt = createRegExp(Ve), dt = /* @__PURE__ */ new WeakMap();
2797
+ var mt = class {
2803
2798
  constructor(e, t, o = "iso8601", n = 1972) {
2804
2799
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t);
2805
2800
  validateString(o);
2806
- const i = canonicalizeCalendar(o), c = toIntegerWithTruncation(n);
2807
- isValidIsoDate(c, r, a) || throwRangeError(b), createTemporalMonthDay(createIsoDateRecord(c, r, a), i, this);
2801
+ const i = canonicalizeCalendar(o);
2802
+ createTemporalMonthDay(createIsoDateRecord(toIntegerWithTruncation(n), r, a), i, this);
2808
2803
  }
2809
2804
  static from(e, t = void 0) {
2810
2805
  return toTemporalMonthDay(e, t);
@@ -2823,10 +2818,10 @@ var dt = class {
2823
2818
  with(e, t = void 0) {
2824
2819
  const o = getInternalSlotOrThrowForPlainMonthDay(this);
2825
2820
  return validatePartialTemporalObject(e), createTemporalMonthDay(calendarMonthDayFromFields(o.Y, calendarMergeFields(o.Y, isoDateToFields(o.Y, o.o, q), prepareCalendarFields(o.Y, e, [
2826
- St.t,
2827
- St.u,
2828
- St.v,
2829
- St.T
2821
+ yt.t,
2822
+ yt.u,
2823
+ yt.v,
2824
+ yt.T
2830
2825
  ])), getTemporalOverflowOption(getOptionsObject(t))), o.Y);
2831
2826
  }
2832
2827
  equals(e) {
@@ -2847,17 +2842,17 @@ var dt = class {
2847
2842
  }
2848
2843
  toPlainDate(e) {
2849
2844
  const t = getInternalSlotOrThrowForPlainMonthDay(this);
2850
- return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.Y, calendarMergeFields(t.Y, isoDateToFields(t.Y, t.o, q), prepareCalendarFields(t.Y, e, [St.t], [])), _), t.Y);
2845
+ return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.Y, calendarMergeFields(t.Y, isoDateToFields(t.Y, t.o, q), prepareCalendarFields(t.Y, e, [yt.t], [])), _), t.Y);
2851
2846
  }
2852
2847
  };
2853
- defineStringTag(dt.prototype, "Temporal.PlainMonthDay"), renameFunction(dt, "PlainMonthDay");
2854
- const mt = /* @__PURE__ */ new WeakMap();
2855
- var ut = class {
2848
+ defineStringTag(mt.prototype, "Temporal.PlainMonthDay"), renameFunction(mt, "PlainMonthDay");
2849
+ const ut = /* @__PURE__ */ new WeakMap();
2850
+ var Tt = class {
2856
2851
  constructor(e, t, o = "iso8601", n = 1) {
2857
2852
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t);
2858
2853
  validateString(o);
2859
- const i = canonicalizeCalendar(o), c = toIntegerWithTruncation(n);
2860
- isValidIsoDate(r, a, c) || throwRangeError(b), createTemporalYearMonth(createIsoDateRecord(r, a, c), i, this);
2854
+ const i = canonicalizeCalendar(o);
2855
+ createTemporalYearMonth(createIsoDateRecord(r, a, toIntegerWithTruncation(n)), i, this);
2861
2856
  }
2862
2857
  static from(e, t = void 0) {
2863
2858
  return toTemporalYearMonth(e, t);
@@ -2899,9 +2894,9 @@ var ut = class {
2899
2894
  const o = getInternalSlotOrThrowForPlainYearMonth(this);
2900
2895
  validatePartialTemporalObject(e);
2901
2896
  const n = calendarMergeFields(o.Y, isoDateToFields(o.Y, o.o, H), prepareCalendarFields(o.Y, e, [
2902
- St.t,
2903
- St.u,
2904
- St.v
2897
+ yt.t,
2898
+ yt.u,
2899
+ yt.v
2905
2900
  ]));
2906
2901
  return createTemporalYearMonth(calendarYearMonthFromFields(o.Y, n, getTemporalOverflowOption(getOptionsObject(t))), o.Y);
2907
2902
  }
@@ -2935,17 +2930,17 @@ var ut = class {
2935
2930
  }
2936
2931
  toPlainDate(e) {
2937
2932
  const t = getInternalSlotOrThrowForPlainYearMonth(this);
2938
- return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.Y, calendarMergeFields(t.Y, isoDateToFields(t.Y, t.o, H), prepareCalendarFields(t.Y, e, [St.T], [])), _), t.Y);
2933
+ return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.Y, calendarMergeFields(t.Y, isoDateToFields(t.Y, t.o, H), prepareCalendarFields(t.Y, e, [yt.T], [])), _), t.Y);
2939
2934
  }
2940
2935
  };
2941
- defineStringTag(ut.prototype, "Temporal.PlainYearMonth"), renameFunction(ut, "PlainYearMonth");
2942
- const Tt = /* @__PURE__ */ new WeakMap();
2943
- var Dt = class {
2936
+ defineStringTag(Tt.prototype, "Temporal.PlainYearMonth"), renameFunction(Tt, "PlainYearMonth");
2937
+ const Dt = /* @__PURE__ */ new WeakMap();
2938
+ var ht = class {
2944
2939
  constructor(e, t, o, n = "iso8601") {
2945
2940
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t), i = toIntegerWithTruncation(o);
2946
2941
  validateString(n);
2947
2942
  const c = canonicalizeCalendar(n);
2948
- isValidIsoDate(r, a, i) || throwRangeError(b), createTemporalDate(createIsoDateRecord(r, a, i), c, this);
2943
+ createTemporalDate(createIsoDateRecord(r, a, i), c, this);
2949
2944
  }
2950
2945
  static from(e, t = void 0) {
2951
2946
  return toTemporalDate(e, t);
@@ -3019,10 +3014,10 @@ var Dt = class {
3019
3014
  const o = getInternalSlotOrThrowForPlainDate(this);
3020
3015
  validatePartialTemporalObject(e);
3021
3016
  const n = calendarMergeFields(o.Y, isoDateToFields(o.Y, o.o, z), prepareCalendarFields(o.Y, e, [
3022
- St.t,
3023
- St.u,
3024
- St.v,
3025
- St.T
3017
+ yt.t,
3018
+ yt.u,
3019
+ yt.v,
3020
+ yt.T
3026
3021
  ])), r = getTemporalOverflowOption(getOptionsObject(t));
3027
3022
  return createTemporalDate(calendarDateFromFields(o.Y, n, r), o.Y);
3028
3023
  }
@@ -3065,14 +3060,14 @@ var Dt = class {
3065
3060
  throwTypeError(j);
3066
3061
  }
3067
3062
  };
3068
- defineStringTag(Dt.prototype, "Temporal.PlainDate"), renameFunction(Dt, "PlainDate");
3069
- const ht = createNullPrototypeObject(), pt = {
3063
+ defineStringTag(ht.prototype, "Temporal.PlainDate"), renameFunction(ht, "PlainDate");
3064
+ const pt = createNullPrototypeObject(), gt = {
3070
3065
  chinese: createLruCache(2e3),
3071
3066
  dangi: createLruCache(2e3)
3072
- }, gt = {
3067
+ }, ft = {
3073
3068
  chinese: createLruCache(1e4),
3074
3069
  dangi: createLruCache(1e4)
3075
- }, ft = createLruCache(5e3), It = createLruCache(1e3), Ot = /* @__PURE__ */ new Map([["ah", 1], ["bh", !1]]), Ft = createNullPrototypeObject({
3070
+ }, It = createLruCache(5e3), Ot = createLruCache(1e3), Ft = /* @__PURE__ */ new Map([["ah", 1], ["bh", !1]]), St = createNullPrototypeObject({
3076
3071
  iso8601: /* @__PURE__ */ new Map(),
3077
3072
  buddhist: /* @__PURE__ */ new Map([["be", 1]]),
3078
3073
  chinese: /* @__PURE__ */ new Map(),
@@ -3083,9 +3078,9 @@ const ht = createNullPrototypeObject(), pt = {
3083
3078
  gregory: /* @__PURE__ */ new Map([["ce", 1], ["bce", !1]]),
3084
3079
  hebrew: /* @__PURE__ */ new Map([["am", 1]]),
3085
3080
  indian: /* @__PURE__ */ new Map([["shaka", 1]]),
3086
- "islamic-civil": Ot,
3087
- "islamic-tbla": Ot,
3088
- "islamic-umalqura": Ot,
3081
+ "islamic-civil": Ft,
3082
+ "islamic-tbla": Ft,
3083
+ "islamic-umalqura": Ft,
3089
3084
  japanese: /* @__PURE__ */ new Map([
3090
3085
  ["reiwa", 2019],
3091
3086
  ["heisei", 1989],
@@ -3097,7 +3092,7 @@ const ht = createNullPrototypeObject(), pt = {
3097
3092
  ]),
3098
3093
  persian: /* @__PURE__ */ new Map([["ap", 1]]),
3099
3094
  roc: /* @__PURE__ */ new Map([["roc", 1], ["broc", !1]])
3100
- }), St = {
3095
+ }), yt = {
3101
3096
  ne: "era",
3102
3097
  re: "eraYear",
3103
3098
  t: "year",
@@ -3112,41 +3107,41 @@ const ht = createNullPrototypeObject(), pt = {
3112
3107
  $: "nanosecond",
3113
3108
  M: "offset",
3114
3109
  P: "timeZone"
3115
- }, yt = [
3116
- St.ne,
3117
- St.re,
3118
- St.t,
3119
- St.u,
3120
- St.v,
3121
- St.T,
3122
- St.D,
3123
- St.I,
3124
- St.O,
3125
- St.F,
3126
- St.S,
3127
- St.$,
3128
- St.M,
3129
- St.P
3130
- ], wt = {
3131
- [St.ne]: [toString],
3132
- [St.re]: [toIntegerWithTruncation],
3133
- [St.t]: [toIntegerWithTruncation],
3134
- [St.u]: [toPositiveIntegerWithTruncation],
3135
- [St.v]: [(e) => createMonthCode(...parseMonthCode(e))],
3136
- [St.T]: [toPositiveIntegerWithTruncation],
3137
- [St.D]: [toIntegerWithTruncation, 0],
3138
- [St.I]: [toIntegerWithTruncation, 0],
3139
- [St.O]: [toIntegerWithTruncation, 0],
3140
- [St.F]: [toIntegerWithTruncation, 0],
3141
- [St.S]: [toIntegerWithTruncation, 0],
3142
- [St.$]: [toIntegerWithTruncation, 0],
3143
- [St.M]: [(e) => {
3110
+ }, wt = [
3111
+ yt.ne,
3112
+ yt.re,
3113
+ yt.t,
3114
+ yt.u,
3115
+ yt.v,
3116
+ yt.T,
3117
+ yt.D,
3118
+ yt.I,
3119
+ yt.O,
3120
+ yt.F,
3121
+ yt.S,
3122
+ yt.$,
3123
+ yt.M,
3124
+ yt.P
3125
+ ], vt = {
3126
+ [yt.ne]: [toString],
3127
+ [yt.re]: [toIntegerWithTruncation],
3128
+ [yt.t]: [toIntegerWithTruncation],
3129
+ [yt.u]: [toPositiveIntegerWithTruncation],
3130
+ [yt.v]: [(e) => createMonthCode(...parseMonthCode(e))],
3131
+ [yt.T]: [toPositiveIntegerWithTruncation],
3132
+ [yt.D]: [toIntegerWithTruncation, 0],
3133
+ [yt.I]: [toIntegerWithTruncation, 0],
3134
+ [yt.O]: [toIntegerWithTruncation, 0],
3135
+ [yt.F]: [toIntegerWithTruncation, 0],
3136
+ [yt.S]: [toIntegerWithTruncation, 0],
3137
+ [yt.$]: [toIntegerWithTruncation, 0],
3138
+ [yt.M]: [(e) => {
3144
3139
  const t = toPrimitive(e);
3145
3140
  return validateString(t), parseDateTimeUtcOffset(t), t;
3146
3141
  }],
3147
- [St.P]: [toTemporalTimeZoneIdentifier]
3148
- }, vt = /* @__PURE__ */ new WeakMap(), Et = signTimeDuration;
3149
- var Mt = class {
3142
+ [yt.P]: [toTemporalTimeZoneIdentifier]
3143
+ }, Et = /* @__PURE__ */ new WeakMap(), Mt = signTimeDuration;
3144
+ var bt = class {
3150
3145
  constructor(e = 0, t = 0, o = 0, n = 0, r = 0, a = 0, i = 0, c = 0, s = 0, l = 0) {
3151
3146
  createTemporalDuration(createTemporalDurationSlot([
3152
3147
  e,
@@ -3225,21 +3220,19 @@ var Mt = class {
3225
3220
  }
3226
3221
  round(e) {
3227
3222
  const t = getInternalSlotOrThrowForDuration(this), o = getRoundToOptionsObject(e);
3228
- let n = getTemporalUnitValuedOption(o, "largestUnit", void 0);
3223
+ let n = getTemporalUnitValuedOption(o, "largestUnit");
3229
3224
  const r = getTemporalRelativeToOption(o), a = getRoundingIncrementOption(o), i = getRoundingModeOption(o, de);
3230
- let c = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
3225
+ let c = getTemporalUnitValuedOption(o, "smallestUnit");
3231
3226
  validateTemporalUnitValue(c, x);
3232
- const s = void 0 !== c;
3233
- c ??= D;
3234
- const l = defaultTemporalLargestUnit(t), u = largerOfTwoTemporalUnits(l, c), T = void 0 !== n;
3235
- if (void 0 !== n && "auto" !== n || (n = u), (!s && !T || n > c) && throwRangeError($), isDateUnit(c) || validateTemporalRoundingIncrement(a, maximumTemporalDurationRoundingIncrement(c), !1), a > 1 && n !== c && isDateUnit(c) && throwRangeError($), r.be) return createTemporalDuration(temporalDurationFromInternal(differenceZonedDateTimeWithRounding(r.be, createZonedDateTimeSlot(addZonedDateTime(r.be, toInternalDurationRecord(t), _), r.be.P, r.be.Y), n, a, c, i), isDateUnit(n) ? m : n));
3227
+ const s = defaultTemporalLargestUnit(t), l = void 0 === c && void 0 === n;
3228
+ if (c ??= D, void 0 !== n && "auto" !== n || (n = largerOfTwoTemporalUnits(s, c)), (l || n > c) && throwRangeError($), isDateUnit(c) || validateTemporalRoundingIncrement(a, maximumTemporalDurationRoundingIncrement(c), !1), a > 1 && n !== c && isDateUnit(c) && throwRangeError($), r.be) return createTemporalDuration(temporalDurationFromInternal(differenceZonedDateTimeWithRounding(r.be, createZonedDateTimeSlot(addZonedDateTime(r.be, toInternalDurationRecord(t), _), r.be.P, r.be.Y), n, a, c, i), isDateUnit(n) ? m : n));
3236
3229
  if (r.Pe) {
3237
3230
  const e = toInternalDurationRecordWith24HourDays(t), o = addTime(midnightTimeRecord(), e.p);
3238
3231
  return createTemporalDuration(temporalDurationFromInternal(differencePlainDateTimeWithRounding(combineIsoDateAndTimeRecord(r.Pe.o, midnightTimeRecord()), combineIsoDateAndTimeRecord(calendarDateAdd(r.Pe.Y, r.Pe.o, adjustDateDurationRecord(e.A, o.X), _), o), r.Pe.Y, n, a, c, i), n));
3239
3232
  }
3240
- (isCalendarUnit(l) || isCalendarUnit(n)) && throwRangeError(missingField("relativeTo"));
3241
- const h = toInternalDurationRecordWith24HourDays(t);
3242
- return createTemporalDuration(temporalDurationFromInternal(c === d ? combineDateAndTimeDuration(createDateDurationRecord(0, 0, 0, roundTimeDurationByDays(h.p, a, i)[0]), ve) : combineDateAndTimeDuration(zeroDateDuration(), roundTimeDuration(h.p, a, c, i)), n));
3233
+ (isCalendarUnit(s) || isCalendarUnit(n)) && throwRangeError(missingField("relativeTo"));
3234
+ const u = toInternalDurationRecordWith24HourDays(t);
3235
+ return createTemporalDuration(temporalDurationFromInternal(c === d ? combineDateAndTimeDuration(createDateDurationRecord(0, 0, 0, roundTimeDurationByDays(u.p, a, i)[0]), ve) : combineDateAndTimeDuration(zeroDateDuration(), roundTimeDuration(u.p, a, c, i)), n));
3243
3236
  }
3244
3237
  total(e) {
3245
3238
  const t = getInternalSlotOrThrowForDuration(this);
@@ -3253,7 +3246,7 @@ var Mt = class {
3253
3246
  return (isCalendarUnit(defaultTemporalLargestUnit(t)) || isCalendarUnit(r)) && throwRangeError(missingField("relativeTo")), totalTimeDuration(toInternalDurationRecordWith24HourDays(t).p, r);
3254
3247
  }
3255
3248
  toString(e = void 0) {
3256
- const t = getInternalSlotOrThrowForDuration(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, ce), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
3249
+ const t = getInternalSlotOrThrowForDuration(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, ce), a = getTemporalUnitValuedOption(o, "smallestUnit");
3257
3250
  validateTemporalUnitValue(a, V), a !== m && a !== u || throwRangeError(disallowedUnit(a));
3258
3251
  const i = toSecondsStringPrecisionRecord(a, n);
3259
3252
  if (i.Ee === D && 1 === i.Me) return temporalDurationToString(t, i.ve);
@@ -3270,8 +3263,8 @@ var Mt = class {
3270
3263
  throwTypeError(j);
3271
3264
  }
3272
3265
  };
3273
- defineStringTag(Mt.prototype, "Temporal.Duration"), renameFunction(Mt, "Duration");
3274
- const bt = {
3266
+ defineStringTag(bt.prototype, "Temporal.Duration"), renameFunction(bt, "Duration");
3267
+ const Pt = {
3275
3268
  [re]: Math.ceil,
3276
3269
  [ae]: Math.floor,
3277
3270
  [ie]: roundExpand,
@@ -3281,7 +3274,7 @@ const bt = {
3281
3274
  [de]: (e) => (isIntegerAndHalf(e) ? roundExpand(e) : Math.round(e)) + 0,
3282
3275
  [me]: (e) => (isIntegerAndHalf(e) ? Math.trunc(e) : Math.round(e)) + 0,
3283
3276
  [ue]: roundHalfEven
3284
- }, Pt = {
3277
+ }, Rt = {
3285
3278
  [re]: Math.ceil,
3286
3279
  [ae]: Math.floor,
3287
3280
  [ie]: Math.ceil,
@@ -3291,13 +3284,13 @@ const bt = {
3291
3284
  [de]: roundHalfCeil,
3292
3285
  [me]: roundHalfFloor,
3293
3286
  [ue]: roundHalfEven
3294
- }, Rt = globalThis.Intl.DateTimeFormat, Nt = /* @__PURE__ */ new WeakMap(), Zt = [
3287
+ }, Nt = globalThis.Intl.DateTimeFormat, Zt = /* @__PURE__ */ new WeakMap(), $t = [
3295
3288
  "year",
3296
3289
  "month",
3297
3290
  "day",
3298
3291
  "weekday",
3299
3292
  "dateStyle"
3300
- ], $t = [
3293
+ ], Ct = [
3301
3294
  "hour",
3302
3295
  "minute",
3303
3296
  "second",
@@ -3305,16 +3298,16 @@ const bt = {
3305
3298
  "dayPeriod",
3306
3299
  "timeStyle"
3307
3300
  ];
3308
- var Ct = class {
3301
+ var Yt = class {
3309
3302
  Le(e) {
3310
3303
  return formatDateTime(getInternalSlotOrThrowForDateTimeFormat(this), e);
3311
3304
  }
3312
- }, Yt = class {
3305
+ }, Ut = class {
3313
3306
  constructor(e, t) {
3314
- Nt.set(this, createDateTimeFormat(e, t, x, void 0));
3307
+ Zt.set(this, createDateTimeFormat(e, t, x, void 0));
3315
3308
  }
3316
3309
  get format() {
3317
- return Object.defineProperty(getInternalSlotOrThrowForDateTimeFormat(this).ze ||= Ct.prototype.Le.bind(this), "name", { value: "" });
3310
+ return Object.defineProperty(getInternalSlotOrThrowForDateTimeFormat(this).ze ||= Yt.prototype.Le.bind(this), "name", { value: "" });
3318
3311
  }
3319
3312
  formatToParts(e) {
3320
3313
  return ((e, t) => {
@@ -3340,12 +3333,12 @@ var Ct = class {
3340
3333
  return getInternalSlotOrThrowForDateTimeFormat(this).Re.resolvedOptions();
3341
3334
  }
3342
3335
  };
3343
- const Ut = Object.getOwnPropertyDescriptors(Rt), jt = Yt.prototype;
3344
- Ut.prototype.value = jt;
3345
- for (const e of ["formatRange", "formatRangeToParts"]) Rt.prototype[e] || delete jt[e];
3346
- Object.defineProperties(DateTimeFormat, Ut), DateTimeFormat.prototype.constructor = DateTimeFormat, defineStringTag(DateTimeFormat.prototype, "Intl.DateTimeFormat");
3347
- const Wt = /* @__PURE__ */ new WeakMap();
3348
- var At = class {
3336
+ const jt = Object.getOwnPropertyDescriptors(Nt), Wt = Ut.prototype;
3337
+ jt.prototype.value = Wt;
3338
+ for (const e of ["formatRange", "formatRangeToParts"]) Nt.prototype[e] || delete Wt[e];
3339
+ Object.defineProperties(DateTimeFormat, jt), DateTimeFormat.prototype.constructor = DateTimeFormat, defineStringTag(DateTimeFormat.prototype, "Intl.DateTimeFormat");
3340
+ const At = /* @__PURE__ */ new WeakMap();
3341
+ var Lt = class {
3349
3342
  constructor(e) {
3350
3343
  createTemporalInstant(validateEpochNanoseconds(createEpochNanosecondsFromBigInt(toBigInt(e))), this);
3351
3344
  }
@@ -3387,7 +3380,7 @@ var At = class {
3387
3380
  return !compareEpochNanoseconds(getInternalSlotOrThrowForInstant(this).U, getInternalSlotOrThrowForInstant(toTemporalInstant$1(e)).U);
3388
3381
  }
3389
3382
  toString(e = void 0) {
3390
- const t = getInternalSlotOrThrowForInstant(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, ce), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0), i = o.timeZone;
3383
+ const t = getInternalSlotOrThrowForInstant(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, ce), a = getTemporalUnitValuedOption(o, "smallestUnit"), i = o.timeZone;
3391
3384
  validateTemporalUnitValue(a, V), a === m && throwRangeError(invalidField("smallestUnit"));
3392
3385
  const c = mapUnlessUndefined(i, toTemporalTimeZoneIdentifier), s = toSecondsStringPrecisionRecord(a, n);
3393
3386
  return temporalInstantToString(roundTemporalInstant(t.U, s.Me, s.Ee, r), c, s.ve);
@@ -3405,16 +3398,16 @@ var At = class {
3405
3398
  return createTemporalZonedDateTime(getInternalSlotOrThrowForInstant(this).U, toTemporalTimeZoneIdentifier(e), "iso8601");
3406
3399
  }
3407
3400
  };
3408
- defineStringTag(At.prototype, "Temporal.Instant"), renameFunction(At, "Instant");
3409
- const Lt = class {
3401
+ defineStringTag(Lt.prototype, "Temporal.Instant"), renameFunction(Lt, "Instant");
3402
+ const kt = class {
3410
3403
  toTemporalInstant() {
3411
3404
  const e = Date.prototype.valueOf.call(this);
3412
3405
  return e != e && throwRangeError("invalid date"), createTemporalInstant(createEpochNanosecondsFromEpochMilliseconds(e));
3413
3406
  }
3414
- }.prototype.toTemporalInstant, kt = {}, zt = Object.getOwnPropertyDescriptors(globalThis.Intl);
3415
- zt.DateTimeFormat.value = DateTimeFormat, zt.DurationFormat && (zt.DurationFormat.value = k), Object.defineProperties(kt, zt);
3416
- let Vt, xt = 0, Ht = -Infinity;
3417
- const qt = {
3407
+ }.prototype.toTemporalInstant, zt = {}, Vt = Object.getOwnPropertyDescriptors(globalThis.Intl);
3408
+ Vt.DateTimeFormat.value = DateTimeFormat, Vt.DurationFormat && (Vt.DurationFormat.value = k), Object.defineProperties(zt, Vt);
3409
+ let xt, Ht = 0, qt = -1 / 0;
3410
+ const Bt = {
3418
3411
  timeZoneId: () => systemTimeZoneIdentifier(),
3419
3412
  instant: () => createTemporalInstant(systemUtcEpochNanoseconds()),
3420
3413
  plainDateTimeISO: (e = void 0) => createTemporalDateTime(systemDateTime(e), "iso8601"),
@@ -3422,17 +3415,17 @@ const qt = {
3422
3415
  plainDateISO: (e = void 0) => createTemporalDate(systemDateTime(e).o, "iso8601"),
3423
3416
  plainTimeISO: (e = void 0) => createTemporalTime(systemDateTime(e).p)
3424
3417
  };
3425
- defineStringTag(qt, "Temporal.Now"), makePropertiesNonEnumerable(qt);
3426
- const Bt = {
3427
- Instant: At,
3428
- PlainDateTime: Ze,
3429
- PlainDate: Dt,
3430
- PlainTime: Ce,
3431
- PlainYearMonth: ut,
3432
- PlainMonthDay: dt,
3433
- Duration: Mt,
3418
+ defineStringTag(Bt, "Temporal.Now"), makePropertiesNonEnumerable(Bt);
3419
+ const Jt = {
3420
+ Instant: Lt,
3421
+ PlainDateTime: $e,
3422
+ PlainDate: ht,
3423
+ PlainTime: Ye,
3424
+ PlainYearMonth: Tt,
3425
+ PlainMonthDay: mt,
3426
+ Duration: bt,
3434
3427
  ZonedDateTime: be,
3435
- Now: qt
3428
+ Now: Bt
3436
3429
  };
3437
- defineStringTag(Bt, "Temporal"), makePropertiesNonEnumerable(Bt);
3438
- export { defineNonEnumerableProperty as a, Lt as i, setSystemTimeZoneIdCacheTtl as n, kt as r, Bt as t };
3430
+ defineStringTag(Jt, "Temporal"), makePropertiesNonEnumerable(Jt);
3431
+ export { defineNonEnumerableProperty as a, kt as i, setSystemTimeZoneIdCacheTtl as n, zt as r, Jt as t };