temporal-polyfill-lite 0.3.6 → 0.4.1

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.
@@ -1,5 +1,5 @@
1
1
  function getNameFromUnit(e) {
2
- return ie[e];
2
+ return ae[e];
3
3
  }
4
4
  function nanosecondsForTimeUnit(e) {
5
5
  return ce[e - 3];
@@ -27,8 +27,7 @@ function toPrimitive(e) {
27
27
  const t = e[Symbol.toPrimitive];
28
28
  if (null != t) {
29
29
  const o = Date.call.call(t, e, "string");
30
- if (!isObject(o)) return o;
31
- throwTypeError("cannot convert value to primitive");
30
+ return isObject(o) && throwTypeError("cannot convert value to primitive"), o;
32
31
  }
33
32
  return Date.prototype[Symbol.toPrimitive].call(e, "string");
34
33
  }
@@ -36,30 +35,30 @@ function toString(e) {
36
35
  return `${e}`;
37
36
  }
38
37
  function toBigInt(e) {
39
- return isObject(e) || "number" == typeof e ? BigInt.asIntN(2 ** 53 - 1, e) : BigInt(e);
38
+ return BigInt.asIntN(2 ** 53 - 1, e);
40
39
  }
41
40
  function toIntegerIfIntegral(e) {
42
- const t = Se(e);
41
+ const t = Oe(e);
43
42
  return Number.isInteger(t) || throwRangeError(invalidNumber(t)), t + 0;
44
43
  }
45
44
  function toIntegerWithTruncation(e) {
46
- const t = Se(e);
47
- return !isNaN(t) && isFinite(t) || throwRangeError(invalidNumber(t)), Math.trunc(t) + 0;
45
+ const t = Oe(e);
46
+ return isFinite(t) || throwRangeError(invalidNumber(t)), Math.trunc(t) + 0;
48
47
  }
49
48
  function toPositiveIntegerWithTruncation(e) {
50
49
  const t = toIntegerWithTruncation(e);
51
50
  return t <= 0 && throwRangeError(invalidNumber(t)), t;
52
51
  }
53
52
  function getOptionsObject(e = createNullPrototypeObject()) {
54
- return isObject(e) || throwTypeError("invalid options object"), e;
53
+ return isObject(e) || throwTypeError(notObject(e)), e;
55
54
  }
56
55
  function getOption(e, t, o, n) {
57
56
  const r = e[t];
58
- if (void 0 === r) return n === T && throwRangeError(missingField(t)), n;
57
+ if (void 0 === r) return n === u && throwRangeError(missingField(t)), n;
59
58
  const a = toString(r);
60
59
  return o.includes(a) || throwRangeError(invalidField(t)), a;
61
60
  }
62
- function getRoundToOptionsObject(e = throwTypeError(Fe)) {
61
+ function getRoundToOptionsObject(e = throwTypeError(Ie)) {
63
62
  return "string" == typeof e ? createNullPrototypeObject({ smallestUnit: e }) : getOptionsObject(e);
64
63
  }
65
64
  function validateString(e) {
@@ -105,10 +104,10 @@ function renameFunction(e, t) {
105
104
  Object.defineProperty(e, "name", { value: t });
106
105
  }
107
106
  function normalizeEpochNanoseconds(e, t) {
108
- return [e + divFloor(t, i), modFloor(t, i)];
107
+ return [e + divFloor(t, a), modFloor(t, a)];
109
108
  }
110
109
  function createEpochNanosecondsFromBigInt(e) {
111
- return normalizeEpochNanoseconds(Number(e / BigInt(i)), Number(e % BigInt(i)));
110
+ return normalizeEpochNanoseconds(Number(e / BigInt(a)), Number(e % BigInt(a)));
112
111
  }
113
112
  function createEpochNanosecondsFromEpochMilliseconds(e) {
114
113
  return normalizeEpochNanoseconds(divFloor(e, r), 1e6 * modFloor(e, r));
@@ -117,7 +116,7 @@ function createEpochNanosecondsFromEpochSeconds(e) {
117
116
  return createEpochNanosecondsFromEpochMilliseconds(1e3 * e);
118
117
  }
119
118
  function convertEpochNanosecondsToBigInt(e) {
120
- return BigInt(e[0]) * BigInt(i) + BigInt(e[1]);
119
+ return BigInt(e[0]) * BigInt(a) + BigInt(e[1]);
121
120
  }
122
121
  function compareEpochNanoseconds(e, t) {
123
122
  return compare(e[0], t[0]) || compare(e[1], t[1]);
@@ -148,88 +147,89 @@ function toZeroPaddedDecimalString(e, t) {
148
147
  }
149
148
  function normalize(e, t) {
150
149
  const [o, n] = normalizeEpochNanoseconds(e, t);
151
- return o < 0 && n > 0 ? [o + 1, n - i] : [o, n];
150
+ return o < 0 && n > 0 ? [o + 1, n - a] : [o, n];
152
151
  }
153
- function createTimeDurationFromSeconds(e) {
154
- return normalize(divTrunc(e, n), e % n * 1e9);
152
+ function createTimeDurationFromUnit(e, t) {
153
+ const o = a / t;
154
+ return normalize(Math.round((e - e % o) / o), e % o * t);
155
155
  }
156
156
  function addTimeDuration(e, t) {
157
157
  return normalize(e[0] + t[0], e[1] + t[1]);
158
158
  }
159
159
  function absTimeDuration(e) {
160
- return normalize(Math.abs(e[0]), Math.abs(e[1]));
160
+ return e.map(Math.abs);
161
161
  }
162
162
  function negateTimeDuration(e) {
163
163
  return normalize(-e[0], -e[1]);
164
164
  }
165
165
  function signTimeDuration(e) {
166
- return ve(e, [0, 0]);
166
+ return we(e, ye);
167
167
  }
168
168
  function timeDurationToSubsecondsNumber(e, t, o) {
169
169
  const n = signTimeDuration(e);
170
- return e = absTimeDuration(e), n * Se(`${864 * e[0] + divTrunc(e[1], 1e11)}${toZeroPaddedDecimalString(divTrunc(e[1] % 1e11, 10 ** (9 + t)), 2 - t)}.${o ? toZeroPaddedDecimalString(e[1] % 10 ** (9 + t), 9 + t) : "0"}`) + 0;
170
+ return e = absTimeDuration(e), n * Oe(`${864 * e[0] + divTrunc(e[1], 1e11)}${toZeroPaddedDecimalString(divTrunc(e[1] % 1e11, 10 ** (9 + t)), 2 - t)}.${o ? toZeroPaddedDecimalString(e[1] % 10 ** (9 + t), 9 + t) : "0"}`) + 0;
171
171
  }
172
172
  function roundTimeDurationByDays(e, t, o) {
173
- return normalize(roundNumberToIncrement(e[0] + signTimeDuration(e) * (e[1] ? .2 * compare(Math.abs(e[1] / i), .5) + .5 : 0), t, o), 0);
173
+ return normalize(roundNumberToIncrement(e[0] + signTimeDuration(e) * (e[1] ? .2 * compare(Math.abs(e[1] / a), .5) + .5 : 0), t, o), 0);
174
174
  }
175
175
  function divideTimeDurationToFloatingPoint(e, t) {
176
- return t <= 1e9 ? timeDurationToSubsecondsNumber(e, -9 + Math.log10(t), !0) : i / t * e[0] + e[1] / t;
176
+ return t <= 1e9 ? timeDurationToSubsecondsNumber(e, -9 + Math.log10(t), !0) : a / t * e[0] + e[1] / t;
177
177
  }
178
- function interpretISODateTimeOffset(e, t, o, n, r, a, i, s) {
178
+ function interpretISODateTimeOffset(e, t, o, n, r, a, i, c) {
179
179
  if (!t) return getStartOfDay(r, e);
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)));
180
+ const s = combineIsoDateAndTimeRecord(e, t);
181
+ if (o === S || o === O && "ignore" == i) return getEpochNanosecondsFor(r, s, a);
182
+ if (o === F || o === O && "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)));
183
183
  ((e) => {
184
- Math.abs(isoDateToEpochDays(e.t, e.u - 1, e.T)) > 1e8 && throwRangeError(me);
184
+ Math.abs(isoDateToEpochDays(e.t, e.u - 1, e.T)) > 1e8 && throwRangeError(le);
185
185
  })(e);
186
- const l = getPossibleEpochNanoseconds(r, c);
186
+ const l = getPossibleEpochNanoseconds(r, s);
187
187
  for (const e of l) {
188
188
  const t = getOffsetNanosecondsFor(r, e);
189
189
  if (t === n) return e;
190
- if (!s && roundNumberToIncrement(t, 6e10, "halfExpand") === n) return e;
190
+ if (!c && roundNumberToIncrement(t, 6e10, "halfExpand") === n) return e;
191
191
  }
192
- return "reject" === i && throwRangeError("time zone offset mismatch"), disambiguatePossibleEpochNanoseconds(l, r, c, a);
192
+ return "reject" === i && throwRangeError("time zone offset mismatch"), disambiguatePossibleEpochNanoseconds(l, r, s, a);
193
193
  }
194
194
  function toTemporalZonedDateTime(e, t) {
195
- let o, n, r, a, i, s, c, l = !1, d = !0;
195
+ let o, n, r, a, i, c, s, l = !1, d = !0;
196
196
  if (isObject(e)) {
197
197
  if (isZonedDateTime(e)) {
198
198
  const o = getOptionsObject(t);
199
- return getTemporalDisambiguationOption(o), getTemporalOffsetOption(o, p), getTemporalOverflowOption(o), getInternalSlotOrThrowForZonedDateTime(e);
199
+ return getTemporalDisambiguationOption(o), getTemporalOffsetOption(o, h), getTemporalOverflowOption(o), getInternalSlotOrThrowForZonedDateTime(e);
200
200
  }
201
201
  i = getTemporalCalendarIdentifierWithIsoDefault(e);
202
202
  const l = prepareCalendarFields(i, e, [
203
- Ft.t,
204
- Ft.u,
205
- Ft.v,
206
- Ft.T,
207
- Ft.D,
208
- Ft.I,
209
- Ft.O,
210
- Ft.F,
211
- Ft.S,
212
- Ft.$,
213
- Ft.M,
214
- Ft.P
215
- ], [Ft.P]);
203
+ Ot.t,
204
+ Ot.u,
205
+ Ot.v,
206
+ Ot.T,
207
+ Ot.D,
208
+ Ot.I,
209
+ Ot.O,
210
+ Ot.F,
211
+ Ot.S,
212
+ Ot.$,
213
+ Ot.M,
214
+ Ot.P
215
+ ], [Ot.P]);
216
216
  o = l.timeZone, n = l.offset;
217
217
  const d = getOptionsObject(t);
218
- r = getTemporalDisambiguationOption(d), a = getTemporalOffsetOption(d, p);
218
+ r = getTemporalDisambiguationOption(d), a = getTemporalOffsetOption(d, h);
219
219
  const m = interpretTemporalDateTimeFields(i, l, getTemporalOverflowOption(d));
220
- s = m.o, c = m.p;
220
+ c = m.o, s = m.p;
221
221
  } else {
222
222
  validateString(e);
223
- const m = parseIsoDateTime(e, [Xe]);
223
+ const m = parseIsoDateTime(e, [Ge]);
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), s = createIsoDateRecord(m.t, m.u, m.T), c = m.p;
226
+ r = getTemporalDisambiguationOption(u), a = getTemporalOffsetOption(u, h), getTemporalOverflowOption(u), c = createIsoDateRecord(m.t, m.u, m.T), s = m.p;
227
227
  }
228
- const m = l ? S : n ? F : y;
229
- return createZonedDateTimeSlot(interpretISODateTimeOffset(s, c, m, m === F ? parseDateTimeUtcOffset(n) : 0, o, r, a, d), o, i);
228
+ const m = l ? F : n ? O : S;
229
+ return createZonedDateTimeSlot(interpretISODateTimeOffset(c, s, m, m === O ? parseDateTimeUtcOffset(n) : 0, o, r, a, d), o, i);
230
230
  }
231
231
  function createTemporalZonedDateTime(e, t, o, n) {
232
- return createTemporalZonedDateTimeFromSlot(createZonedDateTimeSlot(e, t, o, ((e, t) => Pe[e] && Pe[e].C(clampEpochSecond(t)))(t, epochSeconds(e))), n);
232
+ return createTemporalZonedDateTimeFromSlot(createZonedDateTimeSlot(e, t, o, ((e, t) => be[e] && be[e].C(clampEpochSecond(t)))(t, epochSeconds(e))), n);
233
233
  }
234
234
  function createZonedDateTimeSlot(e, t, o, n) {
235
235
  return {
@@ -239,34 +239,34 @@ 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, 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)}`;
242
+ function temporalZonedDateTimeToString(e, t, o, n, r, a = 1, i = J, c = E) {
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, C)}${r === j ? "" : formatDateTimeUtcOffsetRounded(l)}${n === A ? "" : `[${n === L ? "!" : ""}${e.P}]`}${formatCalendarAnnotation(e.Y, o)}`;
245
245
  }
246
246
  function addZonedDateTime(e, t, o) {
247
- if (0 === dateDurationSign(t.A)) return addInstant(e.U, t.p);
247
+ if (!dateDurationSign(t.A)) return addInstant(e.U, t.p);
248
248
  const n = getIsoDateTimeForZonedDateTimeSlot(e);
249
- return addInstant(getEpochNanosecondsFor(e.P, validateIsoDateTime(combineIsoDateAndTimeRecord(calendarDateAdd(e.Y, n.o, t.A, o), n.p)), g), t.p);
249
+ return addInstant(getEpochNanosecondsFor(e.P, validateIsoDateTime(combineIsoDateAndTimeRecord(calendarDateAdd(e.Y, n.o, t.A, o), n.p)), p), t.p);
250
250
  }
251
251
  function differenceZonedDateTime(e, t, o) {
252
252
  const n = compareEpochNanoseconds(e.U, t.U);
253
- if (!n) return combineDateAndTimeDuration(zeroDateDuration(), createTimeDurationFromSeconds(0));
253
+ if (!n) return combineDateAndTimeDuration(zeroDateDuration(), ye);
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, 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);
256
+ let i, c = differenceTime(r.p, a.p);
257
+ for (let o = wt(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, p)), wt(c) === n); o++);
258
+ return combineDateAndTimeDuration(calendarDateUntil(e.Y, r.o, i.o, largerOfTwoTemporalUnits(o, x)), c);
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);
262
262
  const i = differenceZonedDateTime(e, t, o);
263
- return r === G && 1 === n ? i : roundRelativeDuration(i, e.U, t.U, getIsoDateTimeForZonedDateTimeSlot(e), e.P, e.Y, o, n, r, a);
263
+ return r === J && 1 === n ? i : roundRelativeDuration(i, e.U, t.U, getIsoDateTimeForZonedDateTimeSlot(e), e.P, e.Y, o, n, r, a);
264
264
  }
265
265
  function differenceTemporalZonedDateTime(e, t, o, n) {
266
266
  const r = toTemporalZonedDateTime(o);
267
- calendarEquals(t.Y, r.Y) || throwRangeError(De);
268
- const a = getDifferenceSettings(e, getOptionsObject(n), d, [], G, q);
269
- return isDateUnit(a.L) ? (timeZoneEquals(t.P, r.P) || throwRangeError("time zone mismatch"), compareEpochNanoseconds(t.U, r.U) ? createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differenceZonedDateTimeWithRounding(t, r, a.L, a.V, a.H, a.q), q), e)) : createTemporalDuration(createTemporalDurationSlot([
267
+ calendarEquals(t.Y, r.Y) || throwRangeError(ue);
268
+ const a = getDifferenceSettings(e, getOptionsObject(n), l, [], J, H);
269
+ return isDateUnit(a.L) ? (timeZoneEquals(t.P, r.P) || throwRangeError("time zone mismatch"), compareEpochNanoseconds(t.U, r.U) ? createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differenceZonedDateTimeWithRounding(t, r, a.L, a.V, a.H, a.q), H), e)) : createTemporalDuration(createTemporalDurationSlot([
270
270
  0,
271
271
  0,
272
272
  0,
@@ -288,18 +288,18 @@ function getOffsetNanosecondsForZonedDateTimeSlot(e) {
288
288
  function getIsoDateTimeForZonedDateTimeSlot(e) {
289
289
  return getIsoDateTimeFromOffsetNanoseconds(e.U, getOffsetNanosecondsForZonedDateTimeSlot(e));
290
290
  }
291
- function createTemporalZonedDateTimeFromSlot(e, t = Object.create(Me.prototype)) {
292
- return Ee.set(t, e), t;
291
+ function createTemporalZonedDateTimeFromSlot(e, t = Object.create(Ee.prototype)) {
292
+ return ve.set(t, e), t;
293
293
  }
294
294
  function calendarIsoToDateForZonedDateTimeSlot(e) {
295
295
  return calendarIsoToDate(e.Y, getIsoDateTimeForZonedDateTimeSlot(e).o);
296
296
  }
297
297
  function getInternalSlotForZonedDateTime(e) {
298
- return Ee.get(e);
298
+ return ve.get(e);
299
299
  }
300
300
  function getInternalSlotOrThrowForZonedDateTime(e) {
301
301
  const t = getInternalSlotForZonedDateTime(e);
302
- return t || throwTypeError(he), t;
302
+ return t || throwTypeError(Te), t;
303
303
  }
304
304
  function isZonedDateTime(e) {
305
305
  return !!getInternalSlotForZonedDateTime(e);
@@ -308,38 +308,37 @@ function createLruCache(e) {
308
308
  const t = /* @__PURE__ */ new Map();
309
309
  return {
310
310
  C(e) {
311
- if (t.has(e)) {
312
- const o = t.get(e);
313
- return t.delete(e), t.set(e, o), o;
314
- }
311
+ const o = t.get(e);
312
+ if (void 0 !== o) return t.delete(e), t.set(e, o), o;
315
313
  },
316
- B(o, n) {
317
- t.size >= e && t.delete(t.keys().next().value), t.set(o, n);
314
+ B: (o, n) => (t.size >= e && t.delete(t.keys().next().value), t.set(o, n), n),
315
+ J(e, t) {
316
+ return this.C(e) ?? this.B(e, t());
318
317
  }
319
318
  };
320
319
  }
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);
320
+ function utcEpochMilliseconds(e, t, o, n = 0, a = 0, i = 0, c = 0) {
321
+ return isoDateToEpochDays(e, t - 1, o) * r + Date.UTC(1970, 0, 1, n, a, i, c);
323
322
  }
324
323
  function clampEpochSecond(e) {
325
324
  return clamp(e, -1e10, Infinity);
326
325
  }
327
326
  function getNamedTimeZoneOffsetNanosecondsForEpochSecond(t, o, n) {
328
327
  if ("UTC" === t) return 0;
329
- const r = clampEpochSecond(o), a = Pe[t] ||= createLruCache(5e3), i = a.C(r);
328
+ const r = clampEpochSecond(o), a = be[t] ||= createLruCache(5e3), i = a.C(r);
330
329
  if (void 0 !== i) return i;
331
- const s = getFormatterForTimeZone(t).formatToParts(1e3 * r), c = (utcEpochMilliseconds(...[
330
+ const c = getFormatterForTimeZone(t).formatToParts(1e3 * r), s = (utcEpochMilliseconds(...[
332
331
  "year",
333
332
  "month",
334
333
  "day",
335
334
  "hour",
336
335
  "minute",
337
336
  "second"
338
- ].map((e) => toIntegerIfIntegral(s.find((t) => t.type === e).value))) - 1e3 * r) * e;
339
- return n || a.B(r, c), c;
337
+ ].map((e) => toIntegerIfIntegral(c.find((t) => t.type === e).value))) - 1e3 * r) * e;
338
+ return n || a.B(r, s), s;
340
339
  }
341
340
  function getFormatterForTimeZone(e) {
342
- return be[e] ||= new Pt("en-u-hc-h23", {
341
+ return Me[e] ||= new bt("en-u-hc-h23", {
343
342
  timeZone: e,
344
343
  year: "numeric",
345
344
  month: "numeric",
@@ -379,10 +378,10 @@ function formatOffsetTimeZoneIdentifier(e) {
379
378
  }
380
379
  function formatUtcOffsetNanoseconds(e) {
381
380
  const n = Math.abs(e);
382
- return `${e < 0 ? "-" : "+"}${formatTimeString(divFloor(n, o), modFloor(divFloor(n, t), 60), modFloor(divFloor(n, 1e9), 60), 0, n % 6e10 ? void 0 : D)}`;
381
+ return `${e < 0 ? "-" : "+"}${formatTimeString(divFloor(n, o), modFloor(divFloor(n, t), 60), modFloor(divFloor(n, 1e9), 60), 0, n % 6e10 ? void 0 : T)}`;
383
382
  }
384
383
  function formatDateTimeUtcOffsetRounded(e) {
385
- return formatOffsetTimeZoneIdentifier(roundNumberToIncrement(e, t, R) / t);
384
+ return formatOffsetTimeZoneIdentifier(roundNumberToIncrement(e, t, P) / t);
386
385
  }
387
386
  function toTemporalTimeZoneIdentifier(e) {
388
387
  if (isZonedDateTime(e)) return getInternalSlotOrThrowForZonedDateTime(e).P;
@@ -390,16 +389,16 @@ function toTemporalTimeZoneIdentifier(e) {
390
389
  const t = ((e) => {
391
390
  if (isTimeZoneIdentifier(e)) return parseTimeZoneIdentifier(e);
392
391
  const t = parseIsoDateTime(e, [
393
- Xe,
392
+ Ge,
393
+ Ke,
394
394
  Qe,
395
395
  et,
396
396
  tt,
397
- ot,
398
- nt
397
+ ot
399
398
  ]).P, o = t.R || t.Z && "UTC" || t.N;
400
399
  return o || throwRangeError(invalidTimeZone(e)), parseTimeZoneIdentifier(o);
401
400
  })(e);
402
- return t.J ? getAvailableNamedTimeZoneIdentifier(t.J) : formatOffsetTimeZoneIdentifier(t.G);
401
+ return t._ ? getAvailableNamedTimeZoneIdentifier(t._) : formatOffsetTimeZoneIdentifier(t.G);
403
402
  }
404
403
  function getOffsetNanosecondsFor(e, t) {
405
404
  return isOffsetTimeZoneIdentifier(e) ? parseDateTimeUtcOffset(e) : getNamedTimeZoneOffsetNanosecondsForEpochSecond(e, epochSeconds(t));
@@ -408,7 +407,7 @@ function getEpochNanosecondsFor(e, t, o) {
408
407
  return disambiguatePossibleEpochNanoseconds(getPossibleEpochNanoseconds(e, t), e, t, o);
409
408
  }
410
409
  function disambiguatePossibleEpochNanoseconds(e, t, o, n) {
411
- return 1 === e.length ? e[0] : ("reject" === n && throwRangeError("ambiguity / gaps in local time"), getNamedTimeZoneEpochCandidates(t, o).map(validateEpochNanoseconds)["compatible" === n ? +!e[0] : +(n === f)]);
410
+ return 1 === e.length ? e[0] : ("reject" === n && throwRangeError("ambiguity / gaps in local time"), getNamedTimeZoneEpochCandidates(t, o).map(validateEpochNanoseconds)["compatible" === n ? +!e[0] : +(n === g)]);
412
411
  }
413
412
  function getPossibleEpochNanoseconds(e, t) {
414
413
  return isOffsetTimeZoneIdentifier(e) ? [validateEpochNanoseconds(getUtcEpochNanoseconds(balanceIsoDateTime(t.o.t, t.o.u, t.o.T, t.p.D, t.p.I, t.p.O, t.p.F, t.p.S, t.p.$ - parseDateTimeUtcOffset(e))))] : ((e, t) => getNamedTimeZoneEpochCandidates(e, t).filter((o) => !compareEpochNanoseconds(addNanosecondsToEpochSeconds(o, getOffsetNanosecondsFor(e, o)), getUtcEpochNanoseconds(t))))(e, t).map(validateEpochNanoseconds);
@@ -421,7 +420,7 @@ function timeZoneEquals(e, t) {
421
420
  return e === t || !isOffsetTimeZoneIdentifier(e) && !isOffsetTimeZoneIdentifier(t) && getFormatterForTimeZone(e).resolvedOptions().timeZone === getFormatterForTimeZone(t).resolvedOptions().timeZone;
422
421
  }
423
422
  function parseTimeZoneIdentifier(e) {
424
- return isTimeZoneIdentifier(e) || throwRangeError(invalidTimeZone(e)), createNullPrototypeObject(isOffsetTimeZoneIdentifier(e) ? { G: parseDateTimeUtcOffset(e) / t } : { J: e });
423
+ return isTimeZoneIdentifier(e) || throwRangeError(invalidTimeZone(e)), createNullPrototypeObject(isOffsetTimeZoneIdentifier(e) ? { G: parseDateTimeUtcOffset(e) / t } : { _: e });
425
424
  }
426
425
  function isOffsetTimeZoneIdentifier(e) {
427
426
  return /^[+-]/.test(e);
@@ -445,14 +444,14 @@ function combineIsoDateAndTimeRecord(e, t) {
445
444
  };
446
445
  }
447
446
  function interpretTemporalDateTimeFields(e, t, o) {
448
- return combineIsoDateAndTimeRecord(calendarDateFromFields(e, t, o), regulateTime(t[Ft.D], t[Ft.I], t[Ft.O], t[Ft.F], t[Ft.S], t[Ft.$], o));
447
+ return combineIsoDateAndTimeRecord(calendarDateFromFields(e, t, o), regulateTime(t[Ot.D], t[Ot.I], t[Ot.O], t[Ot.F], t[Ot.S], t[Ot.$], o));
449
448
  }
450
449
  function toTemporalDateTime(e, t) {
451
450
  if (isObject(e)) {
452
451
  if (isPlainDateTime(e)) {
453
452
  getTemporalOverflowOption(getOptionsObject(t));
454
453
  const o = getInternalSlotOrThrowForPlainDateTime(e);
455
- return createTemporalDateTime(o._, o.Y);
454
+ return createTemporalDateTime(o.K, o.Y);
456
455
  }
457
456
  if (isZonedDateTime(e)) {
458
457
  const o = getInternalSlotOrThrowForZonedDateTime(e);
@@ -465,29 +464,29 @@ function toTemporalDateTime(e, t) {
465
464
  }
466
465
  const o = getTemporalCalendarIdentifierWithIsoDefault(e);
467
466
  return createTemporalDateTime(interpretTemporalDateTimeFields(o, prepareCalendarFields(o, e, [
468
- Ft.t,
469
- Ft.u,
470
- Ft.v,
471
- Ft.T,
472
- Ft.D,
473
- Ft.I,
474
- Ft.O,
475
- Ft.F,
476
- Ft.S,
477
- Ft.$
467
+ Ot.t,
468
+ Ot.u,
469
+ Ot.v,
470
+ Ot.T,
471
+ Ot.D,
472
+ Ot.I,
473
+ Ot.O,
474
+ Ot.F,
475
+ Ot.S,
476
+ Ot.$
478
477
  ], []), getTemporalOverflowOption(getOptionsObject(t))), o);
479
478
  }
480
479
  validateString(e);
481
- const o = parseIsoDateTime(e, [Qe]), n = canonicalizeCalendar(o.Y || "iso8601");
480
+ const o = parseIsoDateTime(e, [Ke]), n = canonicalizeCalendar(o.Y || "iso8601");
482
481
  return getTemporalOverflowOption(getOptionsObject(t)), createTemporalDateTime(combineIsoDateAndTimeRecord(createIsoDateRecord(o.t, o.u, o.T), o.p || midnightTimeRecord()), n);
483
482
  }
484
- function balanceIsoDateTime(e, t, o, n, r, a, i, s, c) {
485
- const l = balanceTime(n, r, a, i, s, c);
486
- return combineIsoDateAndTimeRecord(addDaysToIsoDate(createIsoDateRecord(e, t, o), l.K), l);
483
+ function balanceIsoDateTime(e, t, o, n, r, a, i, c, s) {
484
+ const l = balanceTime(n, r, a, i, c, s);
485
+ return combineIsoDateAndTimeRecord(addDaysToIsoDate(createIsoDateRecord(e, t, o), l.X), l);
487
486
  }
488
- function createTemporalDateTime(e, t, o = Object.create(Ne.prototype)) {
489
- return Re.set(o, {
490
- _: validateIsoDateTime(e),
487
+ function createTemporalDateTime(e, t, o = Object.create(Re.prototype)) {
488
+ return Pe.set(o, {
489
+ K: validateIsoDateTime(e),
491
490
  Y: t
492
491
  }), o;
493
492
  }
@@ -499,27 +498,27 @@ function compareIsoDateTime(e, t) {
499
498
  }
500
499
  function roundIsoDateTime(e, t, o, n) {
501
500
  const r = roundTime(e.p, t, o, n);
502
- return combineIsoDateAndTimeRecord(addDaysToIsoDate(e.o, r.K), r);
501
+ return combineIsoDateAndTimeRecord(addDaysToIsoDate(e.o, r.X), r);
503
502
  }
504
503
  function differenceISODateTime(e, t, o, n) {
505
504
  let r = differenceTime(e.p, t.p);
506
- const a = vt(r);
505
+ const a = wt(r);
507
506
  let i = t.o;
508
507
  a === compareIsoDate(e.o, t.o) && (i = addDaysToIsoDate(i, a), r = add24HourDaysToTimeDuration(r, -a));
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);
508
+ const c = largerOfTwoTemporalUnits(x, n), s = calendarDateUntil(o, e.o, i, c);
509
+ return n !== c && (r = add24HourDaysToTimeDuration(r, s.X), s.X = 0), combineDateAndTimeDuration(s, r);
511
510
  }
512
511
  function differencePlainDateTimeWithRounding(e, t, o, n, r, a, i) {
513
- if (!compareIsoDateTime(e, t)) return combineDateAndTimeDuration(zeroDateDuration(), createTimeDurationFromSeconds(0));
512
+ if (!compareIsoDateTime(e, t)) return combineDateAndTimeDuration(zeroDateDuration(), ye);
514
513
  validateIsoDateTime(e), validateIsoDateTime(t);
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);
514
+ const c = differenceISODateTime(e, t, o, n);
515
+ return a === J && 1 === r ? c : roundRelativeDuration(c, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(t), e, void 0, o, n, r, a, i);
517
516
  }
518
517
  function differenceTemporalPlainDateTime(e, t, o, n) {
519
518
  const r = getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(o));
520
- calendarEquals(t.Y, r.Y) || throwRangeError(De);
521
- const a = getDifferenceSettings(e, getOptionsObject(n), d, [], G, H);
522
- return compareIsoDateTime(t._, r._) ? createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differencePlainDateTimeWithRounding(t._, r._, t.Y, a.L, a.V, a.H, a.q), a.L), e)) : createTemporalDuration(createTemporalDurationSlot([
519
+ calendarEquals(t.Y, r.Y) || throwRangeError(ue);
520
+ const a = getDifferenceSettings(e, getOptionsObject(n), l, [], J, x);
521
+ return compareIsoDateTime(t.K, r.K) ? createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differencePlainDateTimeWithRounding(t.K, r.K, t.Y, a.L, a.V, a.H, a.q), a.L), e)) : createTemporalDuration(createTemporalDurationSlot([
523
522
  0,
524
523
  0,
525
524
  0,
@@ -533,25 +532,29 @@ function differenceTemporalPlainDateTime(e, t, o, n) {
533
532
  ]));
534
533
  }
535
534
  function addDurationToDateTime(e, t, o, n) {
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);
535
+ const r = applySignToDurationSlot(toTemporalDuration(o), e), a = getTemporalOverflowOption(getOptionsObject(n)), i = toInternalDurationRecordWith24HourDays(r), c = addTime(t.K.p, i.p);
536
+ return createTemporalDateTime(combineIsoDateAndTimeRecord(calendarDateAdd(t.Y, t.K.o, adjustDateDurationRecord(i.A, c.X), a), c), t.Y);
538
537
  }
539
538
  function validateIsoDateTime(e) {
540
539
  return ((e) => {
541
540
  const t = isoDateRecordToEpochDays(e.o);
542
541
  return Math.abs(t) <= 1e8 || -100000001 === t && !!compareTimeRecord(e.p, midnightTimeRecord());
543
- })(e) || throwRangeError(me), e;
542
+ })(e) || throwRangeError(le), e;
544
543
  }
545
544
  function getInternalSlotForPlainDateTime(e) {
546
- return Re.get(e);
545
+ return Pe.get(e);
547
546
  }
548
547
  function getInternalSlotOrThrowForPlainDateTime(e) {
549
548
  const t = getInternalSlotForPlainDateTime(e);
550
- return t || throwTypeError(he), t;
549
+ return t || throwTypeError(Te), t;
551
550
  }
552
551
  function isPlainDateTime(e) {
553
552
  return !!getInternalSlotForPlainDateTime(e);
554
553
  }
554
+ function calendarDateForPlainDateTime(e) {
555
+ const t = getInternalSlotOrThrowForPlainDateTime(e);
556
+ return calendarIsoToDate(t.Y, t.K.o);
557
+ }
555
558
  function createTimeRecord(e, t, o, n, r, a, i = 0) {
556
559
  return {
557
560
  D: e,
@@ -560,7 +563,7 @@ function createTimeRecord(e, t, o, n, r, a, i = 0) {
560
563
  F: n,
561
564
  S: r,
562
565
  $: a,
563
- K: i
566
+ X: i
564
567
  };
565
568
  }
566
569
  function midnightTimeRecord() {
@@ -570,16 +573,16 @@ function differenceTime(e, t) {
570
573
  return timeDurationFromComponents(t.D - e.D, t.I - e.I, t.O - e.O, t.F - e.F, t.S - e.S, t.$ - e.$);
571
574
  }
572
575
  function toTemporalTime(e, t) {
573
- if (isObject(e)) return isPlainTime(e) ? (getTemporalOverflowOption(getOptionsObject(t)), getInternalSlotOrThrowForPlainTime(e)) : isPlainDateTime(e) ? (getTemporalOverflowOption(getOptionsObject(t)), getInternalSlotOrThrowForPlainDateTime(e)._.p) : isZonedDateTime(e) ? (getTemporalOverflowOption(getOptionsObject(t)), getIsoDateTimeForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(e)).p) : regulateTime(...toTemporalTimeRecord(e), getTemporalOverflowOption(getOptionsObject(t)));
576
+ 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)));
574
577
  validateString(e);
575
- const o = parseIsoDateTime(e, [tt]);
578
+ const o = parseIsoDateTime(e, [et]);
576
579
  return getTemporalOverflowOption(getOptionsObject(t)), o.p;
577
580
  }
578
581
  function toTimeRecordOrMidnight(e) {
579
582
  return void 0 === e ? midnightTimeRecord() : toTemporalTime(e);
580
583
  }
581
584
  function regulateTime(e, t, o, n, r, a, i) {
582
- 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(de), createTimeRecord(e, t, o, n, r, a));
585
+ 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(se), createTimeRecord(e, t, o, n, r, a));
583
586
  }
584
587
  function isValidTime(e, t, o, n, r, a) {
585
588
  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);
@@ -592,26 +595,26 @@ function balanceTime(e, t, o, n, r, a) {
592
595
  F: modFloor(n, 1e3),
593
596
  S: modFloor(r, 1e3),
594
597
  $: modFloor(a, 1e3),
595
- K: divFloor(e, 24)
598
+ X: divFloor(e, 24)
596
599
  };
597
600
  }
598
- function createTemporalTime(e, t = Object.create($e.prototype)) {
599
- return Ze.set(t, e), t;
601
+ function createTemporalTime(e, t = Object.create(Ze.prototype)) {
602
+ return Ne.set(t, e), t;
600
603
  }
601
604
  function toTemporalTimeRecord(e, t = !1) {
602
605
  let o = !1;
603
606
  const n = [
604
- Ft.D,
605
- Ft.S,
606
- Ft.F,
607
- Ft.I,
608
- Ft.$,
609
- Ft.O
607
+ Ot.D,
608
+ Ot.S,
609
+ Ot.F,
610
+ Ot.I,
611
+ Ot.$,
612
+ Ot.O
610
613
  ].map((n) => {
611
614
  const r = e[n];
612
615
  return void 0 !== r ? (o = !0, toIntegerWithTruncation(r)) : t ? void 0 : 0;
613
616
  });
614
- return o || throwTypeError(Ie), [
617
+ return o || throwTypeError(ge), [
615
618
  0,
616
619
  3,
617
620
  5,
@@ -628,25 +631,25 @@ function compareTimeRecord(e, t) {
628
631
  }
629
632
  function addTime(e, t) {
630
633
  const o = t, n = balanceTime(e.D, e.I, e.O, e.F, e.S, e.$ + o[1]);
631
- return n.K += o[0], n;
634
+ return n.X += o[0], n;
632
635
  }
633
636
  function roundTime(e, n, 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));
637
+ 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.$;
638
+ return balanceTime(0, 0, 0, 0, 0, divFloor(c, i) * i + roundNumberToIncrement(modFloor(c, i), n * nanosecondsForTimeUnit(r), a));
636
639
  }
637
640
  function differenceTemporalPlainTime(e, t, o, n) {
638
- const r = toTemporalTime(o), a = getDifferenceSettings(e, getOptionsObject(n), l, [], G, q);
641
+ const r = toTemporalTime(o), a = getDifferenceSettings(e, getOptionsObject(n), s, [], J, H);
639
642
  return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(combineDateAndTimeDuration(zeroDateDuration(), roundTimeDuration(differenceTime(t, r), a.V, a.H, a.q)), a.L), e));
640
643
  }
641
644
  function addDurationToTime(e, t, o) {
642
645
  return createTemporalTime(addTime(t, toInternalDurationRecord(applySignToDurationSlot(toTemporalDuration(o), e)).p));
643
646
  }
644
647
  function getInternalSlotOrThrowForPlainTime(e) {
645
- const t = Ze.get(e);
646
- return t || throwTypeError(he), t;
648
+ const t = Ne.get(e);
649
+ return t || throwTypeError(Te), t;
647
650
  }
648
651
  function isPlainTime(e) {
649
- return Ze.has(e);
652
+ return Ne.has(e);
650
653
  }
651
654
  function optionalChain(e) {
652
655
  return e.reduceRight((e, t) => `${t}(?:${e})?`);
@@ -658,39 +661,31 @@ function createRegExp(e) {
658
661
  return RegExp(`^(?:${e})$`);
659
662
  }
660
663
  function isAmbiguousTemporalTimeString(e) {
661
- return rt.some((t) => {
662
- const o = e.match(t);
663
- return o && isSemanticallyValid(o.groups);
664
- });
664
+ return nt.some((t) => isSemanticallyValid(e.match(t)?.groups));
665
665
  }
666
666
  function isTimeZoneIdentifier(e) {
667
- return at.test(e);
668
- }
669
- function parseAnnotationsAndGetCalendar(e) {
670
- let t, o = !1;
671
- for (const n of e.matchAll(Ke)) {
672
- const e = !!n[1];
673
- "u-ca" === n[2] ? t ? (e || o) && throwRangeError(le) : (t = n[3], e && (o = !0)) : e && throwRangeError(le);
674
- }
675
- return t;
676
- }
677
- function getTimeRecordFromMatchedGroups(e) {
678
- const t = (e.g || "").padEnd(9, "0");
679
- return createTimeRecord(Se(e.d || 0), Se(e.e || 0), clamp(Se(e.f || 0), 0, 59), Se(t.slice(0, 3)), Se(t.slice(3, 6)), Se(t.slice(6)));
667
+ return rt.test(e);
680
668
  }
681
669
  function isSemanticallyValid(e) {
682
- return "-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)));
670
+ return !!e && "-000000" !== (e.a || e.l) && (!e.a || isValidIsoDate(Oe(e.a), Oe(e.b), Oe(e.c))) && (!e.n || isValidIsoDate(1972, Oe(e.m), Oe(e.n)));
683
671
  }
684
672
  function parseIsoDateTime(e, t) {
685
673
  for (const o of t) {
686
674
  const t = e.match(o);
687
- if (!t || !isSemanticallyValid(t.groups) || o === tt && isAmbiguousTemporalTimeString(e)) continue;
688
- const n = t.groups, r = parseAnnotationsAndGetCalendar(n.k || "");
689
- return n.m && r && "iso8601" !== asciiLowerCase(r) && throwRangeError(le), {
690
- t: mapUnlessUndefined(n.a || n.l, Se),
691
- u: Se(n.b || n.m || 1),
692
- T: Se(n.c || n.n || 1),
693
- p: n.d ? getTimeRecordFromMatchedGroups(n) : void 0,
675
+ if (!t || !isSemanticallyValid(t.groups) || o === et && isAmbiguousTemporalTimeString(e)) continue;
676
+ const n = t.groups;
677
+ let r;
678
+ if (n.k) {
679
+ let t = !1;
680
+ for (const [, o, a, i] of n.k.matchAll(Xe)) "u-ca" === a ? r ? (o || t) && throwRangeError(parseError(e)) : (r = i, t = !!o) : o && throwRangeError(parseError(e));
681
+ }
682
+ n.m && r && "iso8601" !== asciiLowerCase(r) && throwRangeError(parseError(e));
683
+ const a = (n.g || "").padEnd(9, "0");
684
+ return {
685
+ t: mapUnlessUndefined(n.a || n.l, Oe),
686
+ u: Oe(n.b || n.m || 1),
687
+ T: Oe(n.c || n.n || 1),
688
+ p: n.d ? createTimeRecord(Oe(n.d || 0), Oe(n.e || 0), clamp(Oe(n.f || 0), 0, 59), Oe(a.slice(0, 3)), Oe(a.slice(3, 6)), Oe(a.slice(6))) : void 0,
694
689
  P: {
695
690
  Z: !!n.i,
696
691
  N: n.h,
@@ -699,14 +694,14 @@ function parseIsoDateTime(e, t) {
699
694
  Y: r
700
695
  };
701
696
  }
702
- throwRangeError(le);
697
+ throwRangeError(parseError(e));
703
698
  }
704
699
  function parseDateTimeUtcOffset(e) {
705
- const o = e.match(st);
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);
700
+ const o = e.match(it);
701
+ return o || throwRangeError(parseError(e)), Oe(`${o[1]}1`) * (36e11 * Oe(o[2]) + Oe(o[4] || "") * t + 1e9 * Oe(o[5] || "") + Oe((o[6] || "").padEnd(9, "0")) + 0);
707
702
  }
708
703
  function hasUtcOffsetSubMinuteParts(e) {
709
- return !!e.match(st)[5];
704
+ return !!e.match(it)[5];
710
705
  }
711
706
  function toTemporalMonthDay(e, t) {
712
707
  if (isObject(e)) {
@@ -714,31 +709,31 @@ function toTemporalMonthDay(e, t) {
714
709
  if (o) return getTemporalOverflowOption(getOptionsObject(t)), createTemporalMonthDay(o.o, o.Y);
715
710
  const n = getTemporalCalendarIdentifierWithIsoDefault(e);
716
711
  return createTemporalMonthDay(calendarMonthDayFromFields(n, prepareCalendarFields(n, e, [
717
- Ft.t,
718
- Ft.u,
719
- Ft.v,
720
- Ft.T
712
+ Ot.t,
713
+ Ot.u,
714
+ Ot.v,
715
+ Ot.T
721
716
  ], []), getTemporalOverflowOption(getOptionsObject(t))), n);
722
717
  }
723
718
  validateString(e);
724
- const o = parseIsoDateTime(e, [ot]), n = canonicalizeCalendar(o.Y || "iso8601");
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);
719
+ const o = parseIsoDateTime(e, [tt]), n = canonicalizeCalendar(o.Y || "iso8601");
720
+ 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)), m), D), n);
726
721
  }
727
- function createTemporalMonthDay(e, t, o = Object.create(lt.prototype)) {
722
+ function createTemporalMonthDay(e, t, o = Object.create(st.prototype)) {
728
723
  return ct.set(o, {
729
724
  o: validateIsoDate(e),
730
725
  Y: t
731
726
  }), o;
732
727
  }
733
728
  function temporalMonthDayToString(e, t) {
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)}`;
729
+ return `${t === $ || t === Y || "iso8601" !== e.Y ? `${padIsoYear(e.o.t)}-` : ""}${toZeroPaddedDecimalString(e.o.u, 2)}-${toZeroPaddedDecimalString(e.o.T, 2)}${formatCalendarAnnotation(e.Y, t)}`;
735
730
  }
736
731
  function getInternalSlotForPlainMonthDay(e) {
737
732
  return ct.get(e);
738
733
  }
739
734
  function getInternalSlotOrThrowForPlainMonthDay(e) {
740
735
  const t = getInternalSlotForPlainMonthDay(e);
741
- return t || throwTypeError(he), t;
736
+ return t || throwTypeError(Te), t;
742
737
  }
743
738
  function isPlainMonthDay(e) {
744
739
  return !!getInternalSlotForPlainMonthDay(e);
@@ -749,14 +744,14 @@ function toTemporalYearMonth(e, t) {
749
744
  if (o) return getTemporalOverflowOption(getOptionsObject(t)), createTemporalYearMonth(o.o, o.Y);
750
745
  const n = getTemporalCalendarIdentifierWithIsoDefault(e);
751
746
  return createTemporalYearMonth(calendarYearMonthFromFields(n, prepareCalendarFields(n, e, [
752
- Ft.t,
753
- Ft.u,
754
- Ft.v
747
+ Ot.t,
748
+ Ot.u,
749
+ Ot.v
755
750
  ], []), getTemporalOverflowOption(getOptionsObject(t))), n);
756
751
  }
757
752
  validateString(e);
758
- const o = parseIsoDateTime(e, [nt]), n = canonicalizeCalendar(o.Y || "iso8601");
759
- return getTemporalOverflowOption(getOptionsObject(t)), createTemporalYearMonth(calendarYearMonthFromFields(n, isoDateToFields(n, validateIsoYearMonth(createIsoDateRecord(o.t, o.u, o.T)), m), h), n);
753
+ const o = parseIsoDateTime(e, [ot]), n = canonicalizeCalendar(o.Y || "iso8601");
754
+ return getTemporalOverflowOption(getOptionsObject(t)), createTemporalYearMonth(calendarYearMonthFromFields(n, isoDateToFields(n, validateIsoYearMonth(createIsoDateRecord(o.t, o.u, o.T)), d), D), n);
760
755
  }
761
756
  function balanceIsoYearMonth(e, t) {
762
757
  return {
@@ -764,19 +759,19 @@ function balanceIsoYearMonth(e, t) {
764
759
  u: modFloor(t - 1, 12) + 1
765
760
  };
766
761
  }
767
- function createTemporalYearMonth(e, t, o = Object.create(mt.prototype)) {
768
- return dt.set(o, {
762
+ function createTemporalYearMonth(e, t, o = Object.create(dt.prototype)) {
763
+ return lt.set(o, {
769
764
  o: validateIsoYearMonth(e),
770
765
  Y: t
771
766
  }), o;
772
767
  }
773
768
  function temporalYearMonthToString(e, t) {
774
- return `${padIsoYear(e.o.t)}-${toZeroPaddedDecimalString(e.o.u, 2)}${t === C || t === U || "iso8601" !== e.Y ? `-${toZeroPaddedDecimalString(e.o.T, 2)}` : ""}${formatCalendarAnnotation(e.Y, t)}`;
769
+ return `${padIsoYear(e.o.t)}-${toZeroPaddedDecimalString(e.o.u, 2)}${t === $ || t === Y || "iso8601" !== e.Y ? `-${toZeroPaddedDecimalString(e.o.T, 2)}` : ""}${formatCalendarAnnotation(e.Y, t)}`;
775
770
  }
776
771
  function differenceTemporalPlainYearMonth(e, t, o, n) {
777
772
  const r = getInternalSlotOrThrowForPlainYearMonth(toTemporalYearMonth(o));
778
- calendarEquals(t.Y, r.Y) || throwRangeError(De);
779
- const a = getDifferenceSettings(e, getOptionsObject(n), c, [x, H], V, z);
773
+ calendarEquals(t.Y, r.Y) || throwRangeError(ue);
774
+ const a = getDifferenceSettings(e, getOptionsObject(n), c, [V, x], z, k);
780
775
  if (!compareIsoDate(t.o, r.o)) return createTemporalDuration(createTemporalDurationSlot([
781
776
  0,
782
777
  0,
@@ -790,39 +785,43 @@ function differenceTemporalPlainYearMonth(e, t, o, n) {
790
785
  0
791
786
  ]));
792
787
  const i = calendarDateFromFields(t.Y, createNullPrototypeObject({
793
- ...isoDateToFields(t.Y, t.o, m),
794
- [Ft.T]: 1
795
- }), h), s = calendarDateFromFields(t.Y, createNullPrototypeObject({
796
- ...isoDateToFields(t.Y, r.o, m),
797
- [Ft.T]: 1
798
- }), h);
799
- let l = combineDateAndTimeDuration(adjustDateDurationRecord(calendarDateUntil(t.Y, i, s, a.L), 0, 0), createTimeDurationFromSeconds(0));
800
- if (a.H !== V || 1 !== a.V) {
788
+ ...isoDateToFields(t.Y, t.o, d),
789
+ [Ot.T]: 1
790
+ }), D), s = calendarDateFromFields(t.Y, createNullPrototypeObject({
791
+ ...isoDateToFields(t.Y, r.o, d),
792
+ [Ot.T]: 1
793
+ }), D);
794
+ let l = combineDateAndTimeDuration(adjustDateDurationRecord(calendarDateUntil(t.Y, i, s, a.L), 0, 0), ye);
795
+ if (a.H !== z || 1 !== a.V) {
801
796
  const e = combineIsoDateAndTimeRecord(i, midnightTimeRecord());
802
797
  l = roundRelativeDuration(l, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(s, midnightTimeRecord())), e, void 0, t.Y, a.L, a.V, a.H, a.q);
803
798
  }
804
- return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(l, H), e));
799
+ return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(l, x), e));
805
800
  }
806
801
  function addDurationToYearMonth(e, t, o, n) {
807
802
  const r = toInternalDurationRecord(applySignToDurationSlot(toTemporalDuration(o), e)), a = getTemporalOverflowOption(getOptionsObject(n));
808
- return (r.A.X || r.A.K || 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({
809
- ...isoDateToFields(t.Y, t.o, m),
810
- [Ft.T]: 1
811
- }), h), r.A, a), m), a), t.Y);
803
+ 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({
804
+ ...isoDateToFields(t.Y, t.o, d),
805
+ [Ot.T]: 1
806
+ }), D), r.A, a), d), a), t.Y);
812
807
  }
813
808
  function validateIsoYearMonth(e) {
814
- return ((e) => isWithin(12 * e.t + e.u, -3261848, 3309129))(e) || throwRangeError(me), e;
809
+ return ((e) => isWithin(12 * e.t + e.u, -3261848, 3309129))(e) || throwRangeError(le), e;
815
810
  }
816
811
  function getInternalSlotForPlainYearMonth(e) {
817
- return dt.get(e);
812
+ return lt.get(e);
818
813
  }
819
814
  function getInternalSlotOrThrowForPlainYearMonth(e) {
820
815
  const t = getInternalSlotForPlainYearMonth(e);
821
- return t || throwTypeError(he), t;
816
+ return t || throwTypeError(Te), t;
822
817
  }
823
818
  function isPlainYearMonth(e) {
824
819
  return !!getInternalSlotForPlainYearMonth(e);
825
820
  }
821
+ function calendarDateForPlainYearMonth(e) {
822
+ const t = getInternalSlotOrThrowForPlainYearMonth(e);
823
+ return calendarIsoToDate(t.Y, t.o);
824
+ }
826
825
  function createIsoDateRecord(e, t, o) {
827
826
  return {
828
827
  t: e,
@@ -830,8 +829,8 @@ function createIsoDateRecord(e, t, o) {
830
829
  T: o
831
830
  };
832
831
  }
833
- function createTemporalDate(e, t, o = Object.create(Tt.prototype)) {
834
- return ut.set(o, {
832
+ function createTemporalDate(e, t, o = Object.create(ut.prototype)) {
833
+ return mt.set(o, {
835
834
  o: validateIsoDate(e),
836
835
  Y: t
837
836
  }), o;
@@ -851,22 +850,22 @@ function toTemporalDate(e, t) {
851
850
  if (isPlainDateTime(e)) {
852
851
  getTemporalOverflowOption(getOptionsObject(t));
853
852
  const o = getInternalSlotOrThrowForPlainDateTime(e);
854
- return createTemporalDate(o._.o, o.Y);
853
+ return createTemporalDate(o.K.o, o.Y);
855
854
  }
856
855
  const o = getTemporalCalendarIdentifierWithIsoDefault(e);
857
856
  return createTemporalDate(calendarDateFromFields(o, prepareCalendarFields(o, e, [
858
- Ft.t,
859
- Ft.u,
860
- Ft.v,
861
- Ft.T
857
+ Ot.t,
858
+ Ot.u,
859
+ Ot.v,
860
+ Ot.T
862
861
  ], []), getTemporalOverflowOption(getOptionsObject(t))), o);
863
862
  }
864
863
  validateString(e);
865
- const o = parseIsoDateTime(e, [Qe]), n = canonicalizeCalendar(o.Y || "iso8601");
864
+ const o = parseIsoDateTime(e, [Ke]), n = canonicalizeCalendar(o.Y || "iso8601");
866
865
  return getTemporalOverflowOption(getOptionsObject(t)), createTemporalDate(createIsoDateRecord(o.t, o.u, o.T), n);
867
866
  }
868
867
  function regulateIsoDate(e, t, o, n) {
869
- return "constrain" === n ? createIsoDateRecord(e, t = clamp(t, 1, 12), clamp(o, 1, isoDaysInMonth(e, t))) : (isValidIsoDate(e, t, o) || throwRangeError(me), createIsoDateRecord(e, t, o));
868
+ return "constrain" === n ? createIsoDateRecord(e, t = clamp(t, 1, 12), clamp(o, 1, isoDaysInMonth(e, t))) : (isValidIsoDate(e, t, o) || throwRangeError(se), createIsoDateRecord(e, t, o));
870
869
  }
871
870
  function isValidIsoDate(e, t, o) {
872
871
  return isWithin(t, 1, 12) && isWithin(o, 1, isoDaysInMonth(e, t));
@@ -885,8 +884,8 @@ function compareIsoDate(e, t) {
885
884
  }
886
885
  function differenceTemporalPlainDate(e, t, o, n) {
887
886
  const r = getInternalSlotOrThrowForPlainDate(toTemporalDate(o));
888
- calendarEquals(t.Y, r.Y) || throwRangeError(De);
889
- const a = getDifferenceSettings(e, getOptionsObject(n), c, [], H, H);
887
+ calendarEquals(t.Y, r.Y) || throwRangeError(ue);
888
+ const a = getDifferenceSettings(e, getOptionsObject(n), c, [], x, x);
890
889
  if (!compareIsoDate(t.o, r.o)) return createTemporalDuration(createTemporalDurationSlot([
891
890
  0,
892
891
  0,
@@ -899,25 +898,25 @@ function differenceTemporalPlainDate(e, t, o, n) {
899
898
  0,
900
899
  0
901
900
  ]));
902
- let i = combineDateAndTimeDuration(calendarDateUntil(t.Y, t.o, r.o, a.L), createTimeDurationFromSeconds(0));
903
- if (a.H !== H || 1 !== a.V) {
901
+ let i = combineDateAndTimeDuration(calendarDateUntil(t.Y, t.o, r.o, a.L), ye);
902
+ if (a.H !== x || 1 !== a.V) {
904
903
  const e = combineIsoDateAndTimeRecord(t.o, midnightTimeRecord());
905
904
  i = roundRelativeDuration(i, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(r.o, midnightTimeRecord())), e, void 0, t.Y, a.L, a.V, a.H, a.q);
906
905
  }
907
- return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(i, H), e));
906
+ return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(i, x), e));
908
907
  }
909
908
  function addDurationToDate(e, t, o, n) {
910
909
  return createTemporalDate(calendarDateAdd(t.Y, t.o, ((e) => {
911
910
  const t = toInternalDurationRecordWith24HourDays(e);
912
- return createDateDurationRecord(t.A.ee, t.A.te, t.A.X, t.p[0]);
911
+ return createDateDurationRecord(t.A.te, t.A.oe, t.A.ee, t.p[0]);
913
912
  })(applySignToDurationSlot(toTemporalDuration(o), e)), getTemporalOverflowOption(getOptionsObject(n))), t.Y);
914
913
  }
915
914
  function getInternalSlotForPlainDate(e) {
916
- return ut.get(e);
915
+ return mt.get(e);
917
916
  }
918
917
  function getInternalSlotOrThrowForPlainDate(e) {
919
918
  const t = getInternalSlotForPlainDate(e);
920
- return t || throwTypeError(he), t;
919
+ return t || throwTypeError(Te), t;
921
920
  }
922
921
  function isPlainDate(e) {
923
922
  return !!getInternalSlotForPlainDate(e);
@@ -925,8 +924,12 @@ function isPlainDate(e) {
925
924
  function validateIsoDate(e) {
926
925
  return validateIsoDateTime(combineIsoDateAndTimeRecord(e, createTimeRecord(12, 0, 0, 0, 0, 0))), e;
927
926
  }
927
+ function calendarDateForPlainDate(e) {
928
+ const t = getInternalSlotOrThrowForPlainDate(e);
929
+ return calendarIsoToDate(t.Y, t.o);
930
+ }
928
931
  function formatToParts(e, t) {
929
- return (Dt[e] ||= new Pt("en", {
932
+ return (Tt[e] ||= new bt("en", {
930
933
  year: "numeric",
931
934
  month: "numeric",
932
935
  day: "numeric",
@@ -947,9 +950,7 @@ function extractYearMonthDay(e, t) {
947
950
  };
948
951
  }
949
952
  function yearMonthDay(e, t) {
950
- const o = pt[e].C(t);
951
- if (o) return o;
952
- const n = ((e, t) => {
953
+ return ht[e].J(t, () => ((e, t) => {
953
954
  const o = formatToParts(e, t), n = [
954
955
  "relatedYear",
955
956
  "month",
@@ -960,18 +961,17 @@ function yearMonthDay(e, t) {
960
961
  v: createMonthCode(parseInt(n[1]), /bis/.test(n[1])),
961
962
  T: toIntegerIfIntegral(n[2])
962
963
  };
963
- })(e, t);
964
- return pt[e].B(t, n), n;
964
+ })(e, t));
965
965
  }
966
966
  function getNewYear(e, t) {
967
- let o = ht[e].C(t);
968
- if (o) return o;
969
- let n = isoDateToEpochDays(t, 0, 1985 === t ? 53 : Math.floor(modFloor(-10.8822 * t + 16, 29.53)) + 23), r = yearMonthDay(e, n);
970
- for (let o = 0; "M01" !== r.v; o++) {
971
- if (o > 20) throw new Error("unexpected calendar error");
972
- n += r.t < t ? 31 - r.T : -r.T, r = yearMonthDay(e, n);
973
- }
974
- return ht[e].B(t, n - r.T + 1), n - r.T + 1;
967
+ return Dt[e].J(t, () => {
968
+ let o = isoDateToEpochDays(t, 0, 1985 === t ? 53 : Math.floor(modFloor(-10.8822 * t + 16, 29.53)) + 23), n = yearMonthDay(e, o);
969
+ for (let r = 0; "M01" !== n.v; r++) {
970
+ if (r > 20) throw new Error("unexpected calendar error");
971
+ o += n.t < t ? 31 - n.T : -n.T, n = yearMonthDay(e, o);
972
+ }
973
+ return o - n.T + 1;
974
+ });
975
975
  }
976
976
  function ordinalMonthToMonthCode(e, t, o) {
977
977
  return yearMonthDay(e, getNewYear(e, t) + 30 * (o - 1)).v;
@@ -988,8 +988,8 @@ function monthsInYear(e, t) {
988
988
  }
989
989
  function epochDaysToDate$6(e, t) {
990
990
  return {
991
- oe: void 0,
992
991
  ne: void 0,
992
+ re: void 0,
993
993
  get t() {
994
994
  return yearMonthDay(e, t).t;
995
995
  },
@@ -1003,28 +1003,28 @@ function epochDaysToDate$6(e, t) {
1003
1003
  get T() {
1004
1004
  return yearMonthDay(e, t).T;
1005
1005
  },
1006
- re: isoDayOfWeek(epochDaysToIsoDate(t)),
1007
- get ae() {
1006
+ ae: isoDayOfWeek(epochDaysToIsoDate(t)),
1007
+ get ie() {
1008
1008
  const o = yearMonthDay(e, t).t;
1009
1009
  return t - getNewYear(e, o) + 1;
1010
1010
  },
1011
- ie: {
1011
+ ce: {
1012
1012
  se: void 0,
1013
1013
  t: void 0
1014
1014
  },
1015
- ce: 7,
1016
- get le() {
1015
+ le: 7,
1016
+ get de() {
1017
1017
  const o = yearMonthDay(e, t);
1018
1018
  return daysInMonth$6(e, o.t, Math.round((t - o.T - getNewYear(e, o.t)) / 29.53) + 1);
1019
1019
  },
1020
- get de() {
1020
+ get me() {
1021
1021
  const o = yearMonthDay(e, t).t;
1022
1022
  return getNewYear(e, o + 1) - getNewYear(e, o);
1023
1023
  },
1024
- get me() {
1024
+ get ue() {
1025
1025
  return monthsInYear(e, yearMonthDay(e, t).t);
1026
1026
  },
1027
- get ue() {
1027
+ get Te() {
1028
1028
  return monthsInYear(e, yearMonthDay(e, t).t) > 12;
1029
1029
  }
1030
1030
  };
@@ -1088,30 +1088,27 @@ function epochDaysToDate$2(e, t) {
1088
1088
  let n = 12;
1089
1089
  for (; calendarIntegersToEpochDays$2(e, o, n, 1) > t; n--);
1090
1090
  return {
1091
- oe: o > 0 ? "ah" : "bh",
1092
- ne: o > 0 ? o : 1 - o,
1091
+ ne: o > 0 ? "ah" : "bh",
1092
+ re: o > 0 ? o : 1 - o,
1093
1093
  t: o,
1094
1094
  u: n,
1095
1095
  v: createMonthCode(n),
1096
1096
  T: t - calendarIntegersToEpochDays$2(e, o, n, 1) + 1,
1097
- re: isoDayOfWeek(epochDaysToIsoDate(t)),
1098
- ae: t - calendarIntegersToEpochDays$2(e, o, 1, 1) + 1,
1099
- ie: {
1097
+ ae: isoDayOfWeek(epochDaysToIsoDate(t)),
1098
+ ie: t - calendarIntegersToEpochDays$2(e, o, 1, 1) + 1,
1099
+ ce: {
1100
1100
  se: void 0,
1101
1101
  t: void 0
1102
1102
  },
1103
- ce: 7,
1104
- le: daysInMonth$2(o, n),
1105
- de: +isLeapYear$1(o) + 354,
1106
- me: 12,
1107
- ue: isLeapYear$1(o)
1103
+ le: 7,
1104
+ de: daysInMonth$2(o, n),
1105
+ me: +isLeapYear$1(o) + 354,
1106
+ ue: 12,
1107
+ Te: isLeapYear$1(o)
1108
1108
  };
1109
1109
  }
1110
1110
  function getYearMonthDay(e) {
1111
- const t = gt.C(e);
1112
- if (t) return t;
1113
- const o = extractYearMonthDay("islamic-umalqura", e);
1114
- return gt.B(e, o), o;
1111
+ return pt.J(e, () => extractYearMonthDay("islamic-umalqura", e));
1115
1112
  }
1116
1113
  function getFirstDayOfMonth(e, t) {
1117
1114
  const o = balanceIsoYearMonth(e, t), n = calendarIntegersToEpochDays$2("islamic-civil", o.t, o.u, 1);
@@ -1124,10 +1121,10 @@ function constrainDay$2(e, t, o) {
1124
1121
  return o < 30 ? o : clamp(o, 1, ((e, t) => getFirstDayOfMonth(e, t + 1) - getFirstDayOfMonth(e, t))(e, t));
1125
1122
  }
1126
1123
  function startOfYear(e) {
1127
- const t = ft.C(e);
1128
- if (t) return t;
1129
- const o = isoDateToEpochDays(e + 621, 4, 1), n = extractYearMonthDay("persian", o), r = o - dayOfYearFromMonthDay(n.u, n.T) + 1;
1130
- return ft.B(e, r), r;
1124
+ return gt.J(e, () => {
1125
+ const t = isoDateToEpochDays(e + 621, 4, 1), o = extractYearMonthDay("persian", t);
1126
+ return t - dayOfYearFromMonthDay(o.u, o.T) + 1;
1127
+ });
1131
1128
  }
1132
1129
  function dayOfYearFromMonthDay(e, t) {
1133
1130
  return 30 * (e - 1) + t + clamp(e - 1, 0, 6);
@@ -1150,151 +1147,151 @@ function getDate(e) {
1150
1147
  t: o,
1151
1148
  u: r[0],
1152
1149
  T: r[1],
1153
- ae: e - n + 1
1150
+ ie: e - n + 1
1154
1151
  };
1155
1152
  }
1156
1153
  function daysInMonth(e, t) {
1157
1154
  return t <= 6 ? 31 : 12 !== t || isLeapYear(e) ? 30 : 29;
1158
1155
  }
1159
1156
  function canonicalizeCalendar(e) {
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));
1157
+ return "islamicc" === (e = asciiLowerCase(e)) ? "islamic-civil" : "ethiopic-amete-alem" === e ? "ethioaa" : It[e] ? e : throwRangeError(((e) => `unsupported calendar: ${e}`)(e));
1161
1158
  }
1162
1159
  function calendarDateAdd(e, t, o, n) {
1163
- if (isIsoLikeCalendar(e) || !o.ee && !o.te) return ((e, t, o) => {
1164
- const n = balanceIsoYearMonth(e.t + t.ee, e.u + t.te);
1165
- return validateIsoDate(addDaysToIsoDate(regulateIsoDate(n.t, n.u, e.T, o), 7 * t.X + t.K));
1160
+ if (isIsoLikeCalendar(e) || !o.te && !o.oe) return ((e, t, o) => {
1161
+ const n = balanceIsoYearMonth(e.t + t.te, e.u + t.oe);
1162
+ return validateIsoDate(addDaysToIsoDate(regulateIsoDate(n.t, n.u, e.T, o), 7 * t.ee + t.X));
1166
1163
  })(t, o, n);
1167
- const r = nonIsoCalendarIsoToDate(e, t), a = r.t + o.ee, i = balanceNonIsoYearMonth(e, a, monthCodeToOrdinal(e, a, constrainMonthCode(e, a, parseMonthCode(r.v), n)) + o.te);
1168
- return validateIsoDate(addDaysToIsoDate(calendarIntegersToIso(e, i.t, i.u, constrainDay(e, i.t, i.u, r.T, n)), 7 * o.X + o.K));
1164
+ const r = nonIsoCalendarIsoToDate(e, t), a = r.t + o.te, i = balanceNonIsoYearMonth(e, a, monthCodeToOrdinal(e, a, constrainMonthCode(e, a, parseMonthCode(r.v), n)) + o.oe);
1165
+ return validateIsoDate(addDaysToIsoDate(calendarIntegersToIso(e, i.t, i.u, constrainDay(e, i.t, i.u, r.T, n)), 7 * o.ee + o.X));
1169
1166
  }
1170
1167
  function compareSurpasses(e, t, o, n, r) {
1171
1168
  return t !== r.t ? e * (t - r.t) > 0 : o !== r.u && o !== r.v ? e * ("string" == typeof o ? o > r.v ? 1 : o < r.v ? -1 : 0 : o - r.u) > 0 : e * (n - r.T) > 0;
1172
1169
  }
1173
1170
  function nonIsoDateSurpasses(e, t, o, n, r, a) {
1174
- if (compareSurpasses(t, o.t + r, o.v, o.T, n)) return { Te: !0 };
1175
- const i = balanceNonIsoYearMonth(e, o.t + r, monthCodeToOrdinal(e, o.t + r, constrainMonthCode(e, o.t + r, parseMonthCode(o.v), h)) + a);
1176
- return compareSurpasses(t, i.t, i.u, o.T, n) ? { Te: !0 } : {
1177
- Te: !1,
1171
+ if (compareSurpasses(t, o.t + r, o.v, o.T, n)) return { De: !0 };
1172
+ const i = balanceNonIsoYearMonth(e, o.t + r, monthCodeToOrdinal(e, o.t + r, constrainMonthCode(e, o.t + r, parseMonthCode(o.v), D)) + a);
1173
+ return compareSurpasses(t, i.t, i.u, o.T, n) ? { De: !0 } : {
1174
+ De: !1,
1178
1175
  ...i
1179
1176
  };
1180
1177
  }
1181
1178
  function calendarDateUntil(e, t, o, n) {
1182
1179
  const r = compareIsoDate(o, t);
1183
- if (isIsoLikeCalendar(e) || n === x || n === H || !r) return ((e, t, o) => {
1180
+ if (isIsoLikeCalendar(e) || n === V || n === x || !r) return ((e, t, o) => {
1184
1181
  const n = compareIsoDate(t, e);
1185
1182
  if (!n) return zeroDateDuration();
1186
- if (o === x || o === H) {
1183
+ if (o === V || o === x) {
1187
1184
  const n = isoDateToEpochDays(t.t, t.u - 1, t.T) - isoDateToEpochDays(e.t, e.u - 1, e.T);
1188
- return o === x ? createDateDurationRecord(0, 0, divTrunc(n, 7) + 0, n % 7 + 0) : createDateDurationRecord(0, 0, 0, n);
1185
+ return o === V ? createDateDurationRecord(0, 0, divTrunc(n, 7) + 0, n % 7 + 0) : createDateDurationRecord(0, 0, 0, n);
1189
1186
  }
1190
- const r = 12 * t.t + t.u - 12 * e.t - e.u - (n * (e.T - t.T) > 0 ? n : 0), a = balanceIsoYearMonth(e.t, e.u + r), i = isoDateRecordToEpochDays(t) - isoDateRecordToEpochDays(regulateIsoDate(a.t, a.u, e.T, h));
1191
- return o === z ? createDateDurationRecord(divTrunc(r, 12), r % 12 + 0, 0, i) : createDateDurationRecord(0, r, 0, i);
1187
+ const r = 12 * t.t + t.u - 12 * e.t - e.u - (n * (e.T - t.T) > 0 ? n : 0), a = balanceIsoYearMonth(e.t, e.u + r), i = isoDateRecordToEpochDays(t) - isoDateRecordToEpochDays(regulateIsoDate(a.t, a.u, e.T, D));
1188
+ return o === k ? createDateDurationRecord(divTrunc(r, 12), r % 12 + 0, 0, i) : createDateDurationRecord(0, r, 0, i);
1192
1189
  })(t, o, n);
1193
1190
  const a = nonIsoCalendarIsoToDate(e, t), i = nonIsoCalendarIsoToDate(e, o);
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) {
1191
+ let c, s = 0;
1192
+ if (n === k) for (s = i.t - a.t; (c = nonIsoDateSurpasses(e, r, a, i, s, 0)).De; 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) {
1197
1194
  if (t === n) return r - o;
1198
- const a = calendarIntegersToEpochDays$6(e, t, o, 1), i = calendarIntegersToEpochDays$6(e, n, r, 1), s = sign(i - a);
1195
+ const a = calendarIntegersToEpochDays$6(e, t, o, 1), i = calendarIntegersToEpochDays$6(e, n, r, 1), c = sign(i - a);
1199
1196
  if (Math.abs(i - a) <= 15e6) return Math.round((i - a) / 29.5306);
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;
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;
1204
1201
  }
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);
1202
+ return s;
1203
+ })(e, (c || a).t, (c || a).u, i.t, i.u) : (i.t - (c || a).t) * a.ue + i.u - (c || a).u) - (r * (a.T - i.T) > 0 ? r : 0);
1207
1204
  var d, m;
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))));
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, D))));
1210
1207
  }
1211
1208
  function calendarDateToIso(e, t, o) {
1212
- const n = t[Ft.t], r = t[Ft.u], a = mapUnlessUndefined(t[Ft.v], parseMonthCode), i = t[Ft.T];
1213
- if (isIsoLikeCalendar(e)) return ((e, t) => regulateIsoDate(e[Ft.t], e[Ft.u], e[Ft.T], t))({
1209
+ const n = t[Ot.t], r = t[Ot.u], a = mapUnlessUndefined(t[Ot.v], parseMonthCode), i = t[Ot.T];
1210
+ if (isIsoLikeCalendar(e)) return ((e, t) => regulateIsoDate(e[Ot.t], e[Ot.u], e[Ot.T], t))({
1214
1211
  ...t,
1215
1212
  year: n + ("buddhist" === e ? -543 : "roc" === e ? 1911 : 0)
1216
1213
  }, o);
1217
1214
  a && constrainMonthCode(e, n, a, o);
1218
- const s = constrainMonth(e, n, r, o);
1219
- return calendarIntegersToIso(e, n, s, constrainDay(e, n, s, i, o));
1215
+ const c = constrainMonth(e, n, r, o);
1216
+ return calendarIntegersToIso(e, n, c, constrainDay(e, n, c, i, o));
1220
1217
  }
1221
1218
  function nonIsoCalendarIsoToDate(e, t) {
1222
1219
  const o = isoDateRecordToEpochDays(t), n = {
1223
1220
  ...isoCalendarIsoToDate(t),
1224
- ie: {
1221
+ ce: {
1225
1222
  t: void 0,
1226
1223
  se: void 0
1227
1224
  }
1228
1225
  };
1229
1226
  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);
1227
+ const r = o >= 18017 ? "reiwa" : o >= 6947 ? "heisei" : o >= -15713 ? "showa" : o >= -20974 ? "taisho" : o >= -35428 ? "meiji" : t.t > 0 ? "ce" : "bce", a = It[e].get(r);
1231
1228
  return {
1232
- oe: r,
1233
- ne: "bce" === r ? 1 - t.t : t.t - a + 1,
1229
+ ne: r,
1230
+ re: "bce" === r ? 1 - t.t : t.t - a + 1,
1234
1231
  ...n
1235
1232
  };
1236
1233
  }
1237
1234
  return "gregory" === e ? {
1238
- oe: t.t > 0 ? "ce" : "bce",
1239
- ne: t.t > 0 ? t.t : 1 - t.t,
1235
+ ne: t.t > 0 ? "ce" : "bce",
1236
+ re: t.t > 0 ? t.t : 1 - t.t,
1240
1237
  ...n
1241
1238
  } : "buddhist" === e ? {
1242
- oe: "be",
1243
- ne: t.t + 543,
1239
+ ne: "be",
1240
+ re: t.t + 543,
1244
1241
  ...n,
1245
1242
  t: t.t + 543
1246
1243
  } : "roc" === e ? {
1247
- oe: t.t >= 1912 ? "roc" : "broc",
1248
- ne: t.t >= 1912 ? t.t - 1911 : 1912 - t.t,
1244
+ ne: t.t >= 1912 ? "roc" : "broc",
1245
+ re: t.t >= 1912 ? t.t - 1911 : 1912 - t.t,
1249
1246
  ...n,
1250
1247
  t: t.t - 1911
1251
1248
  } : isCopticOrEthiopic(e) ? ((e, t) => {
1252
1249
  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;
1253
1250
  return {
1254
- oe: "coptic" === e || "ethiopic" === e && o > 0 ? "am" : "aa",
1255
- ne: "ethiopic" === e && o <= 0 ? o + 5500 : o,
1251
+ ne: "coptic" === e || "ethiopic" === e && o > 0 ? "am" : "aa",
1252
+ re: "ethiopic" === e && o <= 0 ? o + 5500 : o,
1256
1253
  t: o,
1257
1254
  u: r,
1258
1255
  v: createMonthCode(r),
1259
1256
  T: modFloor(n - 1, 30) + 1,
1260
- re: isoDayOfWeek(epochDaysToIsoDate(t)),
1261
- ae: n,
1262
- ie: {
1257
+ ae: isoDayOfWeek(epochDaysToIsoDate(t)),
1258
+ ie: n,
1259
+ ce: {
1263
1260
  se: void 0,
1264
1261
  t: void 0
1265
1262
  },
1266
- ce: 7,
1267
- le: daysInMonth$5(o, r),
1268
- de: mathematicalInLeapYear$2(o) + 365,
1269
- me: 13,
1270
- ue: !!mathematicalInLeapYear$2(o)
1263
+ le: 7,
1264
+ de: daysInMonth$5(o, r),
1265
+ me: mathematicalInLeapYear$2(o) + 365,
1266
+ ue: 13,
1267
+ Te: !!mathematicalInLeapYear$2(o)
1271
1268
  };
1272
1269
  })(e, o) : "indian" === e ? ((e) => {
1273
1270
  const t = epochDaysToIsoDate(e), o = firstDayOfYear(t.t - 78) <= e ? t.t - 78 : t.t - 79, n = mathematicalInLeapYear$1(o);
1274
1271
  let r = 12;
1275
1272
  for (; calendarIntegersToEpochDays$3(o, r, 1) > e; r--);
1276
1273
  return {
1277
- oe: "shaka",
1278
- ne: o,
1274
+ ne: "shaka",
1275
+ re: o,
1279
1276
  t: o,
1280
1277
  u: r,
1281
1278
  v: createMonthCode(r),
1282
1279
  T: e - calendarIntegersToEpochDays$3(o, r, 1) + 1,
1283
- re: isoDayOfWeek(t),
1284
- ae: e - firstDayOfYear(o) + 1,
1285
- ie: {
1280
+ ae: isoDayOfWeek(t),
1281
+ ie: e - firstDayOfYear(o) + 1,
1282
+ ce: {
1286
1283
  se: void 0,
1287
1284
  t: void 0
1288
1285
  },
1289
- ce: 7,
1290
- le: daysInMonth$3(o, r),
1291
- de: 365 + n,
1292
- me: 12,
1293
- ue: !!n
1286
+ le: 7,
1287
+ de: daysInMonth$3(o, r),
1288
+ me: 365 + n,
1289
+ ue: 12,
1290
+ Te: !!n
1294
1291
  };
1295
1292
  })(o) : "persian" === e ? ((e) => ({
1296
- oe: "ap",
1297
- get ne() {
1293
+ ne: "ap",
1294
+ get re() {
1298
1295
  return getDate(e).t;
1299
1296
  },
1300
1297
  get t() {
@@ -1309,31 +1306,31 @@ function nonIsoCalendarIsoToDate(e, t) {
1309
1306
  get T() {
1310
1307
  return getDate(e).T;
1311
1308
  },
1312
- re: isoDayOfWeek(epochDaysToIsoDate(e)),
1313
- get ae() {
1314
- return getDate(e).ae;
1309
+ ae: isoDayOfWeek(epochDaysToIsoDate(e)),
1310
+ get ie() {
1311
+ return getDate(e).ie;
1315
1312
  },
1316
- ie: {
1313
+ ce: {
1317
1314
  se: void 0,
1318
1315
  t: void 0
1319
1316
  },
1320
- ce: 7,
1321
- get le() {
1317
+ le: 7,
1318
+ get de() {
1322
1319
  const t = getDate(e);
1323
1320
  return daysInMonth(t.t, t.u);
1324
1321
  },
1325
- get de() {
1322
+ get me() {
1326
1323
  return isLeapYear(getDate(e).t) ? 366 : 365;
1327
1324
  },
1328
- me: 12,
1329
- get ue() {
1325
+ ue: 12,
1326
+ get Te() {
1330
1327
  return isLeapYear(getDate(e).t);
1331
1328
  }
1332
1329
  }))(o) : isChineseDangi(e) ? epochDaysToDate$6(e, o) : "islamic-umalqura" === e ? ((e) => {
1333
1330
  const t = epochDaysToDate$2("islamic-civil", e);
1334
1331
  return e < -33600 || e > 76200 ? t : {
1335
- oe: "ah",
1336
- get ne() {
1332
+ ne: "ah",
1333
+ get re() {
1337
1334
  return getYearMonthDay(e).t;
1338
1335
  },
1339
1336
  get t() {
@@ -1348,25 +1345,25 @@ function nonIsoCalendarIsoToDate(e, t) {
1348
1345
  get T() {
1349
1346
  return getYearMonthDay(e).T;
1350
1347
  },
1351
- re: isoDayOfWeek(epochDaysToIsoDate(e)),
1352
- get ae() {
1348
+ ae: isoDayOfWeek(epochDaysToIsoDate(e)),
1349
+ get ie() {
1353
1350
  return e - getFirstDayOfMonth(getYearMonthDay(e).t, 1) + 1;
1354
1351
  },
1355
- ie: {
1352
+ ce: {
1356
1353
  se: void 0,
1357
1354
  t: void 0
1358
1355
  },
1359
- ce: 7,
1360
- get le() {
1356
+ le: 7,
1357
+ get de() {
1361
1358
  const t = getYearMonthDay(e);
1362
1359
  return getFirstDayOfMonth(t.t, t.u + 1) - getFirstDayOfMonth(t.t, t.u);
1363
1360
  },
1364
- get de() {
1361
+ get me() {
1365
1362
  const t = getYearMonthDay(e).t;
1366
1363
  return getFirstDayOfMonth(t + 1, 1) - getFirstDayOfMonth(t, 1);
1367
1364
  },
1368
- me: 12,
1369
- get ue() {
1365
+ ue: 12,
1366
+ get Te() {
1370
1367
  const t = getYearMonthDay(e).t;
1371
1368
  return getFirstDayOfMonth(t + 1, 1) - getFirstDayOfMonth(t, 1) > 354;
1372
1369
  }
@@ -1378,38 +1375,38 @@ function nonIsoCalendarIsoToDate(e, t) {
1378
1375
  let n = isLeapYear$2(o) ? 13 : 12;
1379
1376
  for (; calendarIntegersToEpochDays$4(o, n, 1) > e; n--);
1380
1377
  return {
1381
- oe: "am",
1382
- ne: o,
1378
+ ne: "am",
1379
+ re: o,
1383
1380
  t: o,
1384
1381
  u: n,
1385
1382
  v: isLeapYear$2(o) ? createMonthCode(n <= 5 ? n : n - 1, 6 === n) : createMonthCode(n),
1386
1383
  T: e - calendarIntegersToEpochDays$4(o, n, 1) + 1,
1387
- re: isoDayOfWeek(t),
1388
- ae: e - calendarIntegersToEpochDays$4(o, 1, 1) + 1,
1389
- ie: {
1384
+ ae: isoDayOfWeek(t),
1385
+ ie: e - calendarIntegersToEpochDays$4(o, 1, 1) + 1,
1386
+ ce: {
1390
1387
  se: void 0,
1391
1388
  t: void 0
1392
1389
  },
1393
- ce: 7,
1394
- le: daysInMonth$4(o, n),
1395
- de: calendarIntegersToEpochDays$4(o + 1, 1, 1) - calendarIntegersToEpochDays$4(o, 1, 1),
1396
- me: isLeapYear$2(o) ? 13 : 12,
1397
- ue: isLeapYear$2(o)
1390
+ le: 7,
1391
+ de: daysInMonth$4(o, n),
1392
+ me: calendarIntegersToEpochDays$4(o + 1, 1, 1) - calendarIntegersToEpochDays$4(o, 1, 1),
1393
+ ue: isLeapYear$2(o) ? 13 : 12,
1394
+ Te: isLeapYear$2(o)
1398
1395
  };
1399
1396
  })(o) : epochDaysToDate$2(e, o);
1400
1397
  }
1401
1398
  function calendarSupportsEra(e) {
1402
- return !!Ot[e].size;
1399
+ return !!It[e].size;
1403
1400
  }
1404
1401
  function canonicalizeEraInCalendar(e, t) {
1405
1402
  const o = "ad" === t ? "ce" : "bc" === t ? "bce" : t;
1406
- return Ot[e].has(o) ? o : throwRangeError(((e) => `invalid era: ${e}`)(t));
1403
+ return It[e].has(o) ? o : throwRangeError(((e) => `invalid era: ${e}`)(t));
1407
1404
  }
1408
1405
  function constrainMonthCode(e, t, o, n) {
1409
- if ("hebrew" === e) return o[1] && !isLeapYear$2(t) ? "reject" === n ? throwRangeError(me) : [6, !1] : o;
1406
+ if ("hebrew" === e) return o[1] && !isLeapYear$2(t) ? "reject" === n ? throwRangeError(se) : [6, !1] : o;
1410
1407
  if (isChineseDangi(e)) {
1411
1408
  const r = ((e, t, o) => o[1] && ordinalMonthToMonthCode(e, t, o[0] + 1) !== createMonthCode(...o) ? [o[0], !1] : o)(e, t, o);
1412
- return o !== r && "reject" === n ? throwRangeError(me) : r;
1409
+ return o !== r && "reject" === n ? throwRangeError(se) : r;
1413
1410
  }
1414
1411
  return o;
1415
1412
  }
@@ -1433,11 +1430,11 @@ function isChineseDangi(e) {
1433
1430
  }
1434
1431
  function constrainDay(e, t, o, n, r) {
1435
1432
  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));
1436
- return n !== a && "reject" === r ? throwRangeError(me) : a;
1433
+ return n !== a && "reject" === r ? throwRangeError(se) : a;
1437
1434
  }
1438
1435
  function constrainMonth(e, t, o, n) {
1439
1436
  const r = isChineseDangi(e) ? ((e, t, o) => isWithin(o, 1, 12) ? o : clamp(o, 1, monthsInYear(e, t)))(e, t, o) : clamp(o, 1, "hebrew" === e && isLeapYear$2(t) || isCopticOrEthiopic(e) ? 13 : 12);
1440
- return r !== o && "reject" === n && throwRangeError(me), r;
1437
+ return r !== o && "reject" === n && throwRangeError(se), r;
1441
1438
  }
1442
1439
  function balanceNonIsoYearMonth(e, t, o) {
1443
1440
  if ("hebrew" === e) return ((e, t) => {
@@ -1474,7 +1471,7 @@ function parseMonthCode(e) {
1474
1471
  const t = toPrimitive(e);
1475
1472
  validateString(t);
1476
1473
  const o = t.match(/M(\d\d)(L?)/);
1477
- return o && "M00" !== t || throwRangeError(invalidMonthCode(t)), [Se(o[1]), !!o[2]];
1474
+ return o && "M00" !== t || throwRangeError(invalidMonthCode(t)), [Oe(o[1]), !!o[2]];
1478
1475
  }
1479
1476
  function createMonthCode(e, t = !1) {
1480
1477
  return `M${toZeroPaddedDecimalString(e, 2)}${t ? "L" : ""}`;
@@ -1485,16 +1482,16 @@ function prepareCalendarFields(e, t, o, n) {
1485
1482
  let a = !1;
1486
1483
  for (const e of o) {
1487
1484
  const o = t[e];
1488
- void 0 !== o ? (a = !0, r[e] = yt[e][0](o)) : n && (n.includes(e) && throwTypeError(missingField(e)), r[e] = yt[e][1]);
1485
+ void 0 !== o ? (a = !0, r[e] = St[e][0](o)) : n && (n.includes(e) && throwTypeError(missingField(e)), r[e] = St[e][1]);
1489
1486
  }
1490
- return n || a || throwTypeError(Ie), r;
1487
+ return n || a || throwTypeError(ge), r;
1491
1488
  }
1492
1489
  function calendarMergeFields(e, t, o) {
1493
1490
  const n = ((e, t) => {
1494
1491
  const o = [];
1495
- return void 0 !== t[Ft.u] && o.push(Ft.v), void 0 !== t[Ft.v] && o.push(Ft.u), !calendarSupportsEra(e) || void 0 === t[Ft.oe] && void 0 === t[Ft.ne] && void 0 === t[Ft.t] || o.push(Ft.oe, Ft.ne, Ft.t), !((e) => "japanese" === e)(e) || void 0 === t[Ft.T] && void 0 === t[Ft.u] && void 0 === t[Ft.v] || o.push(Ft.oe, Ft.ne), o;
1492
+ return void 0 !== t[Ot.u] && o.push(Ot.v), void 0 !== t[Ot.v] && o.push(Ot.u), !calendarSupportsEra(e) || void 0 === t[Ot.ne] && void 0 === t[Ot.re] && void 0 === t[Ot.t] || o.push(Ot.ne, Ot.re, Ot.t), !((e) => "japanese" === e)(e) || void 0 === t[Ot.T] && void 0 === t[Ot.u] && void 0 === t[Ot.v] || o.push(Ot.ne, Ot.re), o;
1496
1493
  })(e, o), r = createEmptyCalendarFieldsRecord();
1497
- for (const e of St) void 0 === t[e] || n.includes(e) || (r[e] = t[e]), void 0 !== o[e] && (r[e] = o[e]);
1494
+ for (const e of Ft) void 0 === t[e] || n.includes(e) || (r[e] = t[e]), void 0 !== o[e] && (r[e] = o[e]);
1498
1495
  return r;
1499
1496
  }
1500
1497
  function toTemporalCalendarIdentifier(e) {
@@ -1502,15 +1499,15 @@ function toTemporalCalendarIdentifier(e) {
1502
1499
  return t ? t.Y : (validateString(e), canonicalizeCalendar(((e) => {
1503
1500
  try {
1504
1501
  return parseIsoDateTime(e, [
1505
- Xe,
1502
+ Ge,
1503
+ Ke,
1506
1504
  Qe,
1507
1505
  et,
1508
1506
  tt,
1509
- ot,
1510
- nt
1507
+ ot
1511
1508
  ]).Y || "iso8601";
1512
1509
  } catch {
1513
- return it.test(e) || throwRangeError(le), e;
1510
+ return at.test(e) || throwRangeError(parseError(e)), e;
1514
1511
  }
1515
1512
  })(e)));
1516
1513
  }
@@ -1522,26 +1519,26 @@ function calendarDateFromFields(e, t, o) {
1522
1519
  return calendarResolveFields(e, t), validateIsoDate(calendarDateToIso(e, t, o));
1523
1520
  }
1524
1521
  function calendarYearMonthFromFields(e, t, o) {
1525
- return t.day = 1, calendarResolveFields(e, t, m), validateIsoYearMonth(calendarDateToIso(e, t, o));
1522
+ return t.day = 1, calendarResolveFields(e, t, d), validateIsoYearMonth(calendarDateToIso(e, t, o));
1526
1523
  }
1527
1524
  function calendarMonthDayFromFields(e, t, o) {
1528
- return calendarResolveFields(e, t, u), (function(e, t, o) {
1525
+ return calendarResolveFields(e, t, m), (function(e, t, o) {
1529
1526
  if (isIsoLikeCalendar(e)) return ((e, t, o) => {
1530
- const n = regulateIsoDate(e[Ft.t] ?? 1972, e[Ft.u], e[Ft.T], t);
1527
+ const n = regulateIsoDate(e[Ot.t] ?? 1972, e[Ot.u], e[Ot.T], t);
1531
1528
  return o || validateIsoDate(n), createIsoDateRecord(1972, n.u, n.T);
1532
1529
  })({
1533
1530
  ...t,
1534
1531
  year: mapUnlessUndefined(t.year, (t) => t + ("buddhist" === e ? -543 : "roc" === e ? 1911 : 0))
1535
1532
  }, o, "iso8601" === e);
1536
- const n = t[Ft.t];
1537
- let r = t[Ft.u], a = mapUnlessUndefined(t[Ft.v], parseMonthCode), i = t[Ft.T];
1533
+ const n = t[Ot.t];
1534
+ let r = t[Ot.u], a = mapUnlessUndefined(t[Ot.v], parseMonthCode), i = t[Ot.T];
1538
1535
  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) => {
1539
1536
  if (isChineseDangi(e) || "islamic-umalqura" === e || "persian" === e) {
1540
1537
  const r = clamp(o, 1, "persian" === e && t[0] <= 6 ? 31 : 30);
1541
- return o !== r && "reject" === n ? throwRangeError(me) : r;
1538
+ return o !== r && "reject" === n ? throwRangeError(se) : r;
1542
1539
  }
1543
1540
  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);
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) => {
1541
+ })(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(se), 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) => {
1545
1542
  if (12 === e && 30 === t) {
1546
1543
  for (let o = 1350;; o--) if (isLeapYear(o)) return calendarIntegersToEpochDays(o, e, t);
1547
1544
  }
@@ -1579,7 +1576,7 @@ function calendarMonthDayFromFields(e, t, o) {
1579
1576
  })(e, t, o);
1580
1577
  }
1581
1578
  function formatCalendarAnnotation(e, t) {
1582
- return t === Y || t === $ && "iso8601" === e ? "" : `[${t === U ? "!" : ""}u-ca=${e}]`;
1579
+ return t === C || t === Z && "iso8601" === e ? "" : `[${t === Y ? "!" : ""}u-ca=${e}]`;
1583
1580
  }
1584
1581
  function calendarEquals(e, t) {
1585
1582
  return e === t;
@@ -1615,14 +1612,14 @@ function isoCalendarIsoToDate(e) {
1615
1612
  u: e.u,
1616
1613
  v: createMonthCode(e.u),
1617
1614
  T: e.T,
1618
- re: isoDayOfWeek(e),
1619
- ae: isoDayOfYear(e),
1620
- ie: isoWeekOfYear(e),
1621
- ce: 7,
1622
- le: isoDaysInMonth(e.t, e.u),
1623
- de: (t = e.t, 365 + mathematicalInLeapYear(t)),
1624
- me: 12,
1625
- ue: !!mathematicalInLeapYear(e.t)
1615
+ ae: isoDayOfWeek(e),
1616
+ ie: isoDayOfYear(e),
1617
+ ce: isoWeekOfYear(e),
1618
+ le: 7,
1619
+ de: isoDaysInMonth(e.t, e.u),
1620
+ me: (t = e.t, 365 + mathematicalInLeapYear(t)),
1621
+ ue: 12,
1622
+ Te: !!mathematicalInLeapYear(e.t)
1626
1623
  };
1627
1624
  var t;
1628
1625
  }
@@ -1633,30 +1630,30 @@ function calendarExtraFields(e, t) {
1633
1630
  return calendarSupportsEra(e) && t.includes("year") ? ["era", "eraYear"] : [];
1634
1631
  }
1635
1632
  function isoResolveFields(e, t) {
1636
- t !== u && void 0 === e[Ft.t] && throwTypeError(missingField(Ft.t)), t !== m && void 0 === e[Ft.T] && throwTypeError(missingField(Ft.T)), void 0 === e[Ft.v] && void 0 === e[Ft.u] && throwTypeError(missingField("month, monthCode"));
1637
- const o = mapUnlessUndefined(e[Ft.v], parseMonthCode);
1638
- o && ((o[0] > 12 || o[1] || void 0 !== e[Ft.u] && o[0] !== e[Ft.u]) && throwRangeError(ge), e[Ft.u] = o[0]);
1633
+ t !== m && void 0 === e[Ot.t] && throwTypeError(missingField(Ot.t)), t !== d && void 0 === e[Ot.T] && throwTypeError(missingField(Ot.T)), void 0 === e[Ot.v] && void 0 === e[Ot.u] && throwTypeError(missingField("month, monthCode"));
1634
+ const o = mapUnlessUndefined(e[Ot.v], parseMonthCode);
1635
+ o && ((o[0] > 12 || o[1] || void 0 !== e[Ot.u] && o[0] !== e[Ot.u]) && throwRangeError(he), e[Ot.u] = o[0]);
1639
1636
  }
1640
1637
  function calendarResolveFields(e, t, o = c) {
1641
1638
  "iso8601" === e ? isoResolveFields(t, o) : (function(e, t, o = c) {
1642
- const n = t[Ft.oe], r = t[Ft.ne];
1643
- let a = t[Ft.t];
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) {
1639
+ const n = t[Ot.ne], r = t[Ot.re];
1640
+ let a = t[Ot.t];
1641
+ const i = t[Ot.v], s = t[Ot.u], l = t[Ot.T];
1642
+ if (o === m && 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 !== d && void 0 === l && throwTypeError(missingField("day")), s === i && throwTypeError(missingField("month, monthCode")), calendarSupportsEraForNonIsoCalendars(e) && void 0 !== r) {
1646
1643
  const o = ((e, t, o) => {
1647
- const n = canonicalizeEraInCalendar(e, t), r = Ot[e].get(n);
1644
+ const n = canonicalizeEraInCalendar(e, t), r = It[e].get(n);
1648
1645
  return !1 === r ? 1 - o : r + o - 1;
1649
1646
  })(e, canonicalizeEraInCalendar(e, n), r);
1650
- void 0 !== a && a !== o && throwRangeError("mismatch of `year`, `era` and `eraYear`"), t[Ft.t] = o;
1647
+ void 0 !== a && a !== o && throwRangeError("mismatch of `year`, `era` and `eraYear`"), t[Ot.t] = o;
1651
1648
  }
1652
- if (t[Ft.oe] = t[Ft.ne] = void 0, isIsoLikeCalendar(e)) isoResolveFields(t, o);
1649
+ if (t[Ot.ne] = t[Ot.re] = void 0, isIsoLikeCalendar(e)) isoResolveFields(t, o);
1653
1650
  else if (i) {
1654
1651
  const o = parseMonthCode(i);
1655
1652
  ((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));
1656
- const n = t[Ft.t];
1653
+ const n = t[Ot.t];
1657
1654
  if (void 0 !== n) {
1658
- const r = monthCodeToOrdinal(e, n, constrainMonthCode(e, n, o, h));
1659
- void 0 !== s && s !== r && throwRangeError(ge), t[Ft.u] = r;
1655
+ const r = monthCodeToOrdinal(e, n, constrainMonthCode(e, n, o, D));
1656
+ void 0 !== s && s !== r && throwRangeError(he), t[Ot.u] = r;
1660
1657
  }
1661
1658
  }
1662
1659
  })(e, t, o);
@@ -1668,7 +1665,7 @@ function zeroDateDuration() {
1668
1665
  return createDateDurationRecord(0, 0, 0, 0);
1669
1666
  }
1670
1667
  function toInternalDurationRecord(e) {
1671
- return combineDateAndTimeDuration(createDateDurationRecord(e[_], e[K], e[X], e[Q]), timeDurationFromComponents(e[ee], e[te], e[oe], e[ne], e[re], e[ae]));
1668
+ return combineDateAndTimeDuration(createDateDurationRecord(e[_], e[X], e[G], e[K]), timeDurationFromComponents(e[Q], e[ee], e[te], e[oe], e[ne], e[re]));
1672
1669
  }
1673
1670
  function toInternalDurationRecordWith24HourDays([e, t, o, n, ...r]) {
1674
1671
  return combineDateAndTimeDuration(createDateDurationRecord(e, t, o, 0), add24HourDaysToTimeDuration(timeDurationFromComponents(...r), n));
@@ -1676,23 +1673,23 @@ function toInternalDurationRecordWith24HourDays([e, t, o, n, ...r]) {
1676
1673
  function temporalDurationFromInternal(e, t) {
1677
1674
  const [o, ...n] = balanceTimeDuration(e.p, t);
1678
1675
  return createTemporalDurationSlot([
1679
- e.A.ee,
1680
1676
  e.A.te,
1681
- e.A.X,
1682
- e.A.K + o,
1677
+ e.A.oe,
1678
+ e.A.ee,
1679
+ e.A.X + o,
1683
1680
  ...n
1684
1681
  ]);
1685
1682
  }
1686
1683
  function createDateDurationRecord(e, t, o, n) {
1687
1684
  return validateDuration(e, t, o, n, 0, 0, 0, 0, 0, 0), {
1688
- ee: e,
1689
- te: t,
1690
- X: o,
1691
- K: n
1685
+ te: e,
1686
+ oe: t,
1687
+ ee: o,
1688
+ X: n
1692
1689
  };
1693
1690
  }
1694
- function adjustDateDurationRecord(e, t, o = e.X, n = e.te) {
1695
- return createDateDurationRecord(e.ee, n, o, t);
1691
+ function adjustDateDurationRecord(e, t, o = e.ee, n = e.oe) {
1692
+ return createDateDurationRecord(e.te, n, o, t);
1696
1693
  }
1697
1694
  function combineDateAndTimeDuration(e, t) {
1698
1695
  return {
@@ -1701,9 +1698,9 @@ function combineDateAndTimeDuration(e, t) {
1701
1698
  };
1702
1699
  }
1703
1700
  function toTemporalDuration(e) {
1704
- return t = e, wt.has(t) ? getInternalSlotOrThrowForDuration(e) : isObject(e) ? createTemporalDurationSlot(toTemporalPartialDurationRecord(e).map((e) => e || 0)) : (validateString(e), ((e) => {
1701
+ return t = e, yt.has(t) ? getInternalSlotOrThrowForDuration(e) : isObject(e) ? createTemporalDurationSlot(toTemporalPartialDurationRecord(e).map((e) => e || 0)) : (validateString(e), ((e) => {
1705
1702
  const t = (e = asciiLowerCase(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)?)?$/);
1706
- t && !/[pt]$|[.,](\d{1,9})[hms]./.test(e) || throwRangeError(le);
1703
+ t && !/[pt]$|[.,](\d{1,9})[hms]./.test(e) || throwRangeError(parseError(e));
1707
1704
  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")));
1708
1705
  return applySignToDurationSlot(createTemporalDurationSlot([
1709
1706
  toIntegerWithTruncation(t[2] || ""),
@@ -1721,19 +1718,23 @@ function toTemporalDuration(e) {
1721
1718
  var t;
1722
1719
  }
1723
1720
  function durationSign(e) {
1724
- return sign(e.find((e) => 0 !== e) || 0);
1721
+ return sign(e.find((e) => e) || 0);
1725
1722
  }
1726
1723
  function dateDurationSign(e) {
1727
- return sign(e.ee || e.te || e.X || e.K);
1724
+ return sign(e.te || e.oe || e.ee || e.X);
1728
1725
  }
1729
1726
  function internalDurationSign(e) {
1730
- return dateDurationSign(e.A) || vt(e.p);
1727
+ return dateDurationSign(e.A) || wt(e.p);
1731
1728
  }
1732
1729
  function validateDuration(...e) {
1733
- e.some((e) => e < 0) && e.some((e) => e > 0) && throwRangeError("invalid duration"), e.every((e) => Math.abs(e) < 1e25) && Math.abs(e[_]) < 2 ** 32 && Math.abs(e[K]) < 2 ** 32 && Math.abs(e[X]) < 2 ** 32 || throwRangeError(ue), validateTimeDurationRange(timeDurationFromComponents(24 * e[Q] + e[ee], e[te], e[oe], e[ne], e[re], e[ae]));
1730
+ e.some((e) => e < 0) && e.some((e) => e > 0) && throwRangeError("invalid duration"), (e.some((e) => Math.abs(e) > 1e25) || [
1731
+ e[_],
1732
+ e[X],
1733
+ e[G]
1734
+ ].some((e) => Math.abs(e) >= 2 ** 32)) && throwRangeError(de), validateTimeDurationRange(timeDurationFromComponents(24 * e[K] + e[Q], e[ee], e[te], e[oe], e[ne], e[re]));
1734
1735
  }
1735
1736
  function defaultTemporalLargestUnit(e) {
1736
- return (e.findIndex((e) => 0 !== e) + 10) % 10;
1737
+ return (e.findIndex((e) => e) + 10) % 10;
1737
1738
  }
1738
1739
  function toTemporalPartialDurationRecord(e) {
1739
1740
  isObject(e) || throwTypeError(notObject(e));
@@ -1748,8 +1749,8 @@ function toTemporalPartialDurationRecord(e) {
1748
1749
  6,
1749
1750
  2,
1750
1751
  0
1751
- ].map((t) => mapUnlessUndefined(e[se[t]], toIntegerIfIntegral));
1752
- return t.every((e) => void 0 === e) && throwTypeError(Ie), [
1752
+ ].map((t) => mapUnlessUndefined(e[ie[t]], toIntegerIfIntegral));
1753
+ return t.some((e) => void 0 !== e) || throwTypeError(ge), [
1753
1754
  9,
1754
1755
  5,
1755
1756
  8,
@@ -1765,12 +1766,11 @@ function toTemporalPartialDurationRecord(e) {
1765
1766
  function createTemporalDurationSlot(e) {
1766
1767
  return validateDuration(...e), e;
1767
1768
  }
1768
- function createTemporalDuration(e, t = Object.create(Et.prototype)) {
1769
- return wt.set(t, e), t;
1769
+ function createTemporalDuration(e, t = Object.create(vt.prototype)) {
1770
+ return yt.set(t, e), t;
1770
1771
  }
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)));
1773
- var l, d, m;
1772
+ function timeDurationFromComponents(e, t, o, n, r, a) {
1773
+ return addTimeDuration(addTimeDuration(addTimeDuration(createTimeDurationFromUnit(3600 * e + 60 * t + o, 1e9), createTimeDurationFromUnit(n, 1e6)), createTimeDurationFromUnit(r, 1e3)), createTimeDurationFromUnit(a, 1));
1774
1774
  }
1775
1775
  function add24HourDaysToTimeDuration(e, t) {
1776
1776
  return validateTimeDurationRange(((e, t) => normalize(e[0] + t, e[1]))(e, t));
@@ -1779,11 +1779,11 @@ function timeDurationFromEpochNanosecondsDifference(e, t) {
1779
1779
  return differenceEpochNanoseconds(t, e);
1780
1780
  }
1781
1781
  function roundTimeDurationToIncrement(e, t, o) {
1782
- return validateTimeDurationRange(((e, t, o) => normalize(2 * divTrunc(e[0], 2), roundNumberToIncrement(e[1] + e[0] % 2 * i, t, o)))(e, t, o));
1782
+ return validateTimeDurationRange(((e, t, o) => normalize(2 * divTrunc(e[0], 2), roundNumberToIncrement(e[1] + e[0] % 2 * a, t, o)))(e, t, o));
1783
1783
  }
1784
1784
  function dateDurationDays(e, t) {
1785
1785
  const o = adjustDateDurationRecord(e, 0);
1786
- return dateDurationSign(e) ? e.K + isoDateRecordToEpochDays(calendarDateAdd(t.Y, t.o, o, h)) - isoDateRecordToEpochDays(t.o) : e.K;
1786
+ return dateDurationSign(e) ? e.X + isoDateRecordToEpochDays(calendarDateAdd(t.Y, t.o, o, D)) - isoDateRecordToEpochDays(t.o) : e.X;
1787
1787
  }
1788
1788
  function roundTimeDuration(e, t, o, n) {
1789
1789
  return roundTimeDurationToIncrement(e, nanosecondsForTimeUnit(o) * t, n);
@@ -1791,102 +1791,101 @@ function roundTimeDuration(e, t, o, n) {
1791
1791
  function totalTimeDuration(e, t) {
1792
1792
  return divideTimeDurationToFloatingPoint(e, nanosecondsForTimeUnit(t));
1793
1793
  }
1794
- function computeNudgeWindow(e, t, o, n, r, a, i, s, c) {
1794
+ function computeNudgeWindow(e, t, o, n, r, a, i, c, s) {
1795
1795
  let l, d, m, u, T;
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) {
1799
- const o = calendarDateAdd(a, n.o, adjustDateDurationRecord(t.A, 0, 0), h);
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);
1801
- } else l = roundNumberToIncrement(t.A.K, i, M), d = l + i * e, m = adjustDateDurationRecord(t.A, l), u = adjustDateDurationRecord(t.A, d);
1802
- if (0 === l) T = o;
1803
- else {
1804
- const e = combineIsoDateAndTimeRecord(calendarDateAdd(a, n.o, m, h), n.p);
1805
- T = r ? getEpochNanosecondsFor(r, e, g) : getUtcEpochNanoseconds(e);
1806
- }
1807
- const D = combineIsoDateAndTimeRecord(calendarDateAdd(a, n.o, u, h), n.p);
1796
+ if (c === k) l = roundNumberToIncrement(t.A.te, i, E) + (s ? i * e : 0), d = l + i * e, m = createDateDurationRecord(l, 0, 0, 0), u = createDateDurationRecord(d, 0, 0, 0);
1797
+ else if (c === z) l = roundNumberToIncrement(t.A.oe, i, E) + (s ? i * e : 0), d = l + i * e, m = adjustDateDurationRecord(t.A, 0, 0, l), u = adjustDateDurationRecord(t.A, 0, 0, d);
1798
+ else if (c === V) {
1799
+ const o = calendarDateAdd(a, n.o, adjustDateDurationRecord(t.A, 0, 0), D);
1800
+ l = roundNumberToIncrement(t.A.ee + calendarDateUntil(a, o, addDaysToIsoDate(o, t.A.X), V).ee, i, E), d = l + i * e, m = adjustDateDurationRecord(t.A, 0, l), u = adjustDateDurationRecord(t.A, 0, d);
1801
+ } else l = roundNumberToIncrement(t.A.X, i, E), d = l + i * e, m = adjustDateDurationRecord(t.A, l), u = adjustDateDurationRecord(t.A, d);
1802
+ if (dateDurationSign(m)) {
1803
+ const e = combineIsoDateAndTimeRecord(calendarDateAdd(a, n.o, m, D), n.p);
1804
+ T = r ? getEpochNanosecondsFor(r, e, p) : getUtcEpochNanoseconds(e);
1805
+ } else T = o;
1806
+ const h = combineIsoDateAndTimeRecord(calendarDateAdd(a, n.o, u, D), n.p);
1808
1807
  return {
1809
1808
  he: l,
1810
- De: d,
1811
- pe: T,
1812
- ge: r ? getEpochNanosecondsFor(r, D, g) : getUtcEpochNanoseconds(D),
1813
- fe: m,
1814
- Ie: u
1809
+ pe: d,
1810
+ ge: T,
1811
+ fe: r ? getEpochNanosecondsFor(r, h, p) : getUtcEpochNanoseconds(h),
1812
+ Ie: m,
1813
+ Oe: u
1815
1814
  };
1816
1815
  }
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);
1820
- const u = differenceEpochNanoseconds(m.pe, n), T = differenceEpochNanoseconds(m.pe, m.ge);
1821
- let D = m.fe, h = m.pe;
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), {
1823
- Oe: {
1824
- Fe: combineDateAndTimeDuration(D, createTimeDurationFromSeconds(0)),
1816
+ function nudgeToCalendarUnit(e, t, o, n, r, a, i, c, s, l) {
1817
+ let d = !1, m = computeNudgeWindow(e, t, o, r, a, i, c, s, !1);
1818
+ compareEpochNanoseconds(m.ge, n) * compareEpochNanoseconds(m.fe, n) > 0 && (m = computeNudgeWindow(e, t, o, r, a, i, c, s, !0), d = !0);
1819
+ const u = differenceEpochNanoseconds(m.ge, n), T = differenceEpochNanoseconds(m.ge, m.fe);
1820
+ let D = m.Ie, h = m.ge;
1821
+ return roundNumberToIncrement(m.he + ((e, t, o) => signTimeDuration(e) ? we(e, t) ? we(addTimeDuration(e, e), t) * o / 5 + .5 : 1 : 0)(u, T, e) * c * e, c, l) === m.pe && (d = !0, D = m.Oe, h = m.fe), {
1822
+ Fe: {
1823
+ ye: combineDateAndTimeDuration(D, ye),
1825
1824
  Se: h,
1826
- ye: d
1825
+ we: d
1827
1826
  },
1828
- we: m.he + divideTimeDurationToFloatingPoint(u, 1e9) / divideTimeDurationToFloatingPoint(T, 1e9) * s * e
1827
+ $e: m.he + divideTimeDurationToFloatingPoint(u, 1e9) / divideTimeDurationToFloatingPoint(T, 1e9) * c * e
1829
1828
  };
1830
1829
  }
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);
1835
- const f = addTimeDuration(p, negateTimeDuration(T));
1830
+ function roundRelativeDuration(e, t, o, n, r, a, i, c, s, l) {
1831
+ const d = internalDurationSign(e) || 1, m = isCalendarUnit(s) || r && s === x ? nudgeToCalendarUnit(d, e, t, o, n, r, a, c, s, l).Fe : r ? ((e, t, o, n, r, a, i, c) => {
1832
+ const s = calendarDateAdd(r, o.o, t.A, D), l = combineIsoDateAndTimeRecord(s, o.p), d = combineIsoDateAndTimeRecord(addDaysToIsoDate(s, e), o.p), m = getEpochNanosecondsFor(n, l, p), u = getEpochNanosecondsFor(n, d, p), T = timeDurationFromEpochNanosecondsDifference(u, m), h = nanosecondsForTimeUnit(i);
1833
+ let g = roundTimeDurationToIncrement(t.p, a * h, c);
1834
+ const f = addTimeDuration(g, negateTimeDuration(T));
1836
1835
  let I, O = !1, F = 0;
1837
- return vt(f) !== -e ? (O = !0, F = e, p = roundTimeDurationToIncrement(f, a * D, s), I = addTimeDurationToEpochNanoseconds(u, p)) : I = addTimeDurationToEpochNanoseconds(u, p), {
1838
- Fe: combineDateAndTimeDuration(adjustDateDurationRecord(t.A, t.A.K + F), p),
1836
+ return wt(f) !== -e ? (O = !0, F = e, g = roundTimeDurationToIncrement(f, a * h, c), I = addTimeDurationToEpochNanoseconds(u, g)) : I = addTimeDurationToEpochNanoseconds(u, g), {
1837
+ ye: combineDateAndTimeDuration(adjustDateDurationRecord(t.A, t.A.X + F), g),
1839
1838
  Se: I,
1840
- ye: O
1839
+ we: O
1841
1840
  };
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];
1841
+ })(d, e, n, r, a, c, s, l) : (function(e, t, o, n, r, a) {
1842
+ const i = add24HourDaysToTimeDuration(e.p, e.A.X), c = r === x ? 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];
1844
1843
  return {
1845
- Fe: combineDateAndTimeDuration(adjustDateDurationRecord(e.A, l), d),
1846
- Se: addTimeDurationToEpochNanoseconds(t, addTimeDuration(s, negateTimeDuration(i))),
1847
- ye: sign(c - i[0]) === vt(i)
1844
+ ye: combineDateAndTimeDuration(adjustDateDurationRecord(e.A, l), d),
1845
+ Se: addTimeDurationToEpochNanoseconds(t, addTimeDuration(c, negateTimeDuration(i))),
1846
+ we: sign(s - i[0]) === wt(i)
1848
1847
  };
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;
1848
+ })(e, o, i, c, s, l);
1849
+ return m.we && s !== V ? ((e, t, o, n, r, a, i, c) => {
1850
+ if (c === i) return t;
1851
+ const s = i;
1853
1852
  let l;
1854
- for (let i = s - 1; i >= c; i--) if (i !== X || c === X) {
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);
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;
1858
- t = combineDateAndTimeDuration(l, createTimeDurationFromSeconds(0));
1853
+ for (let i = c - 1; i >= s; i--) if (i !== G || s === G) {
1854
+ l = i === _ ? createDateDurationRecord(t.A.te + e, 0, 0, 0) : i === X ? adjustDateDurationRecord(t.A, 0, 0, t.A.oe + e) : adjustDateDurationRecord(t.A, 0, t.A.ee + e);
1855
+ const c = combineIsoDateAndTimeRecord(calendarDateAdd(a, n.o, l, D), n.p);
1856
+ if (wt(differenceEpochNanoseconds(r ? getEpochNanosecondsFor(r, c, "compatible") : getUtcEpochNanoseconds(c), o)) === -e) break;
1857
+ t = combineDateAndTimeDuration(l, ye);
1859
1858
  }
1860
1859
  return t;
1861
- })(d, m.Fe, m.Se, n, r, a, i, largerOfTwoTemporalUnits(c, H)) : m.Fe;
1860
+ })(d, m.ye, m.Se, n, r, a, i, largerOfTwoTemporalUnits(s, x)) : m.ye;
1862
1861
  }
1863
1862
  function totalRelativeDuration(e, t, o, n, r, a, i) {
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
+ return isCalendarUnit(i) || r && i === x ? nudgeToCalendarUnit(internalDurationSign(e) || 1, e, t, o, n, r, a, 1, i, E).$e : totalTimeDuration(add24HourDaysToTimeDuration(e.p, e.A.X), i);
1865
1864
  }
1866
1865
  function temporalDurationToString(e, 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
+ const o = durationSign(e), n = timeDurationFromComponents(0, 0, (e = applySignToDurationSlot(e, o))[te], e[oe], e[ne], e[re]), [, , , r, a, i, c] = balanceTimeDuration(n, B), [s, l, d, m, u, T] = [
1868
1867
  "Y",
1869
1868
  "M",
1870
1869
  "W",
1871
1870
  "D",
1872
1871
  "H",
1873
1872
  "M"
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}`}`;
1873
+ ].map((t, o) => e[o] ? `${e[o]}${t}` : ""), D = `${u}${T}${wt(n) || defaultTemporalLargestUnit(e) >= B || void 0 !== t ? `${toString(r)}${formatFractionalSeconds(1e6 * a + 1e3 * i + c, t)}S` : ""}`;
1874
+ return `${o < 0 ? "-" : ""}P${s}${l}${d}${m}${D && `T${D}`}`;
1876
1875
  }
1877
1876
  function addDurations(e, t, o) {
1878
1877
  const n = applySignToDurationSlot(toTemporalDuration(o), e), r = largerOfTwoTemporalUnits(defaultTemporalLargestUnit(t), defaultTemporalLargestUnit(n));
1879
1878
  return isCalendarUnit(r) && throwRangeError(durationWithDateUnit(r)), createTemporalDuration(temporalDurationFromInternal(combineDateAndTimeDuration(zeroDateDuration(), addTimeDuration(toInternalDurationRecordWith24HourDays(t).p, toInternalDurationRecordWith24HourDays(n).p)), r));
1880
1879
  }
1881
1880
  function getInternalSlotOrThrowForDuration(e) {
1882
- const t = wt.get(e);
1883
- return t || throwTypeError(he), t;
1881
+ const t = yt.get(e);
1882
+ return t || throwTypeError(Te), t;
1884
1883
  }
1885
1884
  function applySignToDurationSlot(e, t) {
1886
1885
  return createTemporalDurationSlot(e.map((e) => e * t + 0));
1887
1886
  }
1888
1887
  function validateTimeDurationRange(e) {
1889
- return ((e) => ve(absTimeDuration(e), createTimeDurationFromSeconds(2 ** 53)) < 0)(e) || throwRangeError(ue), e;
1888
+ return ((e) => we(absTimeDuration(e), createTimeDurationFromUnit(2 ** 53, 1e9)) < 0)(e) || throwRangeError(de), e;
1890
1889
  }
1891
1890
  function balanceTimeDuration(e, t) {
1892
1891
  const o = clamp(t, 3, 9);
@@ -1898,8 +1897,8 @@ function balanceTimeDuration(e, t) {
1898
1897
  0,
1899
1898
  0,
1900
1899
  0
1901
- ].slice(0, o - Q),
1902
- o > oe ? timeDurationToSubsecondsNumber(e, 18 - 3 * o) : divTrunc((r = e, r[0] * n + divTrunc(r[1], 1e9)), ce[o - Q] / 1e9),
1900
+ ].slice(0, o - K),
1901
+ o > te ? timeDurationToSubsecondsNumber(e, 18 - 3 * o) : divTrunc((r = e, r[0] * n + divTrunc(r[1], 1e9)), ce[o - K] / 1e9),
1903
1902
  ...[
1904
1903
  0,
1905
1904
  1,
@@ -1907,7 +1906,7 @@ function balanceTimeDuration(e, t) {
1907
1906
  3,
1908
1907
  4,
1909
1908
  5
1910
- ].map((t) => divTrunc(e[1], ce[t + 1]) % (ce[t] / ce[t + 1]) + 0).slice(o - Q)
1909
+ ].map((t) => divTrunc(e[1], ce[t + 1]) % (ce[t] / ce[t + 1]) + 0).slice(o - K)
1911
1910
  ];
1912
1911
  var r;
1913
1912
  }
@@ -1928,7 +1927,7 @@ function roundHalfEven(e) {
1928
1927
  }
1929
1928
  function isoDateToEpochDays(e, t, o) {
1930
1929
  const n = balanceIsoYearMonth(e, t + 1);
1931
- return Date.UTC(n.t % 400 - 400, n.u - 1, 0) / r + (divTrunc(n.t, 400) + 1) * s + o;
1930
+ return Date.UTC(n.t % 400 - 400, n.u - 1, 0) / r + (divTrunc(n.t, 400) + 1) * i + o;
1932
1931
  }
1933
1932
  function isoDateRecordToEpochDays(e) {
1934
1933
  return isoDateToEpochDays(e.t, e.u - 1, e.T);
@@ -1937,110 +1936,109 @@ function mathematicalInLeapYear(e) {
1937
1936
  return +!(e % (e % 25 ? 4 : 16));
1938
1937
  }
1939
1938
  function getTemporalOverflowOption(e) {
1940
- return getOption(e, "overflow", [h, p], h);
1939
+ return getOption(e, "overflow", [D, h], D);
1941
1940
  }
1942
1941
  function getTemporalDisambiguationOption(e) {
1943
1942
  return getOption(e, "disambiguation", [
1944
- g,
1943
+ p,
1945
1944
  "earlier",
1946
- f,
1945
+ g,
1947
1946
  "reject"
1948
- ], g);
1947
+ ], p);
1949
1948
  }
1950
1949
  function negateRoundingMode(e) {
1951
- return "ceil" === e ? v : "floor" === e ? w : "halfCeil" === e ? P : "halfFloor" === e ? b : e;
1950
+ return "ceil" === e ? w : "floor" === e ? y : "halfCeil" === e ? b : "halfFloor" === e ? M : e;
1952
1951
  }
1953
1952
  function getTemporalOffsetOption(e, t) {
1954
1953
  return getOption(e, "offset", [
1955
- I,
1954
+ f,
1956
1955
  "use",
1957
1956
  "ignore",
1958
- O
1957
+ I
1959
1958
  ], t);
1960
1959
  }
1961
1960
  function getTemporalShowCalendarNameOption(e) {
1962
1961
  return getOption(e, "calendarName", [
1962
+ Z,
1963
1963
  $,
1964
1964
  C,
1965
- Y,
1966
- U
1967
- ], $);
1965
+ Y
1966
+ ], Z);
1968
1967
  }
1969
1968
  function validateTemporalRoundingIncrement(e, t, o) {
1970
- (e > (o ? t : t - 1) || t % e !== 0) && throwRangeError(invalidField("roundingIncrement"));
1969
+ (e > (o ? t : t - 1) || t % e) && throwRangeError(invalidField("roundingIncrement"));
1971
1970
  }
1972
1971
  function getTemporalFractionalSecondDigitsOption(e) {
1973
1972
  const t = "fractionalSecondDigits", o = e[t];
1974
- if (void 0 === o) return;
1975
- if ("number" != typeof o) return void ("auto" !== toString(o) && throwRangeError(invalidField(t)));
1976
- !isNaN(o) && isFinite(o) || throwRangeError(invalidField(t));
1977
- const n = Math.floor(o);
1978
- return isWithin(n, 0, 9) || throwRangeError(invalidField(t)), n;
1973
+ if (void 0 !== o) {
1974
+ if ("number" == typeof o) return isWithin(Math.floor(o), 0, 9) || throwRangeError(invalidField(t)), 0 | o;
1975
+ "auto" !== toString(o) && throwRangeError(invalidField(t));
1976
+ }
1979
1977
  }
1980
1978
  function toSecondsStringPrecisionRecord(e, t) {
1981
1979
  return e ? {
1982
- $e: e === B ? D : 3 * (e - 6),
1980
+ Ee: e === q ? T : 3 * (e - 6),
1983
1981
  ve: e,
1984
- Ee: 1
1982
+ Me: 1
1985
1983
  } : {
1986
- $e: t,
1984
+ Ee: t,
1987
1985
  ve: divFloor((t ?? 9) - 1, 3) + 7,
1988
- Ee: 10 ** ((9 - (t ?? 9)) % 3)
1986
+ Me: 10 ** ((9 - (t ?? 9)) % 3)
1989
1987
  };
1990
1988
  }
1991
1989
  function getTemporalUnitValuedOption(e, t, o) {
1992
1990
  return mapUnlessUndefined(getOption(e, t, [
1991
+ ...ae,
1993
1992
  ...ie,
1994
- ...se,
1995
1993
  "auto"
1996
1994
  ], o), (e) => {
1997
- return "auto" === e ? "auto" : (t = e.replace(/s$/, ""), ie.indexOf(t));
1995
+ return "auto" === e ? "auto" : (t = e.replace(/s$/, ""), ae.indexOf(t));
1998
1996
  var t;
1999
1997
  });
2000
1998
  }
2001
1999
  function validateTemporalUnitValue(e, t, o = []) {
2002
- void 0 === e || o.includes(e) || ("auto" === e && throwRangeError(disallowedUnit(e)), (e <= H && t === l || e > H && t === c) && throwRangeError(disallowedUnit(e)));
2000
+ void 0 === e || o.includes(e) || ("auto" === e && throwRangeError(disallowedUnit(e)), (e <= x && t === s || e > x && t === c) && throwRangeError(disallowedUnit(e)));
2003
2001
  }
2004
2002
  function getTemporalRelativeToOption(e) {
2005
2003
  const t = e.relativeTo;
2006
2004
  if (void 0 === t) return createNullPrototypeObject();
2007
- let o, n, r, a, i, s = !0, c = F;
2005
+ let o, n, r, a, i, c = !0, s = O;
2008
2006
  if (isObject(t)) {
2009
- if (isZonedDateTime(t)) return createNullPrototypeObject({ Me: getInternalSlotOrThrowForZonedDateTime(t) });
2010
- if (isPlainDate(t)) return createNullPrototypeObject({ be: getInternalSlotOrThrowForPlainDate(t) });
2007
+ if (isZonedDateTime(t)) return createNullPrototypeObject({ be: getInternalSlotOrThrowForZonedDateTime(t) });
2008
+ if (isPlainDate(t)) return createNullPrototypeObject({ Pe: getInternalSlotOrThrowForPlainDate(t) });
2011
2009
  const e = getInternalSlotForPlainDateTime(t);
2012
- if (e) return createNullPrototypeObject({ be: getInternalSlotOrThrowForPlainDate(createTemporalDate(e._.o, e.Y)) });
2010
+ if (e) return createNullPrototypeObject({ Pe: getInternalSlotOrThrowForPlainDate(createTemporalDate(e.K.o, e.Y)) });
2013
2011
  r = getTemporalCalendarIdentifierWithIsoDefault(t);
2014
- const s = prepareCalendarFields(r, t, [
2015
- Ft.t,
2016
- Ft.u,
2017
- Ft.v,
2018
- Ft.T,
2019
- Ft.D,
2020
- Ft.I,
2021
- Ft.O,
2022
- Ft.F,
2023
- Ft.S,
2024
- Ft.$,
2025
- Ft.M,
2026
- Ft.P
2027
- ], []), l = interpretTemporalDateTimeFields(r, s, h);
2028
- a = l.o, i = l.p, o = s.timeZone, n = s.offset, c = n ? F : y;
2012
+ const c = prepareCalendarFields(r, t, [
2013
+ Ot.t,
2014
+ Ot.u,
2015
+ Ot.v,
2016
+ Ot.T,
2017
+ Ot.D,
2018
+ Ot.I,
2019
+ Ot.O,
2020
+ Ot.F,
2021
+ Ot.S,
2022
+ Ot.$,
2023
+ Ot.M,
2024
+ Ot.P
2025
+ ], []), l = interpretTemporalDateTimeFields(r, c, D);
2026
+ a = l.o, i = l.p, o = c.timeZone, n = c.offset, s = n ? O : S;
2029
2027
  } else {
2030
2028
  validateString(t);
2031
- const e = parseIsoDateTime(t, [Xe, Qe]);
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;
2029
+ const e = parseIsoDateTime(t, [Ge, Ke]);
2030
+ n = e.P.N, e.P.R ? (o = toTemporalTimeZoneIdentifier(e.P.R), s = e.P.Z ? F : n ? O : S, 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;
2033
2031
  }
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)) });
2032
+ return createNullPrototypeObject(o ? { be: getInternalSlotOrThrowForZonedDateTime(createTemporalZonedDateTime(interpretISODateTimeOffset(a, i, s, s === O ? parseDateTimeUtcOffset(n) : 0, o, p, I, c), o, r)) } : { Pe: getInternalSlotOrThrowForPlainDate(createTemporalDate(a, r)) });
2035
2033
  }
2036
2034
  function largerOfTwoTemporalUnits(e, t) {
2037
2035
  return e < t ? e : t;
2038
2036
  }
2039
2037
  function isCalendarUnit(e) {
2040
- return e < H;
2038
+ return e < x;
2041
2039
  }
2042
2040
  function isDateUnit(e) {
2043
- return e <= H;
2041
+ return e <= x;
2044
2042
  }
2045
2043
  function maximumTemporalDurationRoundingIncrement(e) {
2046
2044
  return [
@@ -2054,16 +2052,17 @@ function validatePartialTemporalObject(e) {
2054
2052
  }
2055
2053
  function formatFractionalSeconds(e, t) {
2056
2054
  const o = toZeroPaddedDecimalString(e, 9);
2057
- return void 0 === t ? 0 === e ? "" : `.${o.replace(/0*$/, "")}` : 0 === t ? "" : `.${o.slice(0, t)}`;
2055
+ return void 0 === t ? e ? `.${o.replace(/0*$/, "")}` : "" : t ? `.${o.slice(0, t)}` : "";
2058
2056
  }
2059
2057
  function formatTimeString(e, t, o, n, r) {
2060
- return `${toZeroPaddedDecimalString(e, 2)}:${toZeroPaddedDecimalString(t, 2)}${r === D ? "" : `:${toZeroPaddedDecimalString(o, 2)}${formatFractionalSeconds(n, r)}`}`;
2058
+ return `${toZeroPaddedDecimalString(e, 2)}:${toZeroPaddedDecimalString(t, 2)}${r === T ? "" : `:${toZeroPaddedDecimalString(o, 2)}${formatFractionalSeconds(n, r)}`}`;
2061
2059
  }
2062
2060
  function roundNumberToIncrement(e, t, o) {
2063
- return Mt[o](e / t) * t;
2061
+ return Et[o](e / t) * t;
2064
2062
  }
2065
2063
  function getRoundingModeOption(e, t) {
2066
2064
  return getOption(e, "roundingMode", [
2065
+ y,
2067
2066
  w,
2068
2067
  v,
2069
2068
  E,
@@ -2071,39 +2070,38 @@ function getRoundingModeOption(e, t) {
2071
2070
  b,
2072
2071
  P,
2073
2072
  R,
2074
- N,
2075
- Z
2073
+ N
2076
2074
  ], t);
2077
2075
  }
2078
2076
  function getRoundingIncrementOption(e) {
2079
2077
  const t = "roundingIncrement", o = mapUnlessUndefined(e[t], toIntegerWithTruncation) ?? 1;
2080
- return (o < 1 || o > 1e9) && throwRangeError(invalidField(t)), o;
2078
+ return isWithin(o, 1, 1e9) || throwRangeError(invalidField(t)), o;
2081
2079
  }
2082
2080
  function isoDateToFields(e, t, o) {
2083
2081
  const n = calendarIsoToDate(e, t);
2084
2082
  return createNullPrototypeObject({
2085
- [Ft.t]: o === u ? void 0 : n.t,
2086
- [Ft.v]: n.v,
2087
- [Ft.T]: o === m ? void 0 : n.T
2083
+ [Ot.t]: o === m ? void 0 : n.t,
2084
+ [Ot.v]: n.v,
2085
+ [Ot.T]: o === d ? void 0 : n.T
2088
2086
  });
2089
2087
  }
2090
2088
  function getDifferenceSettings(e, t, o, n, r, a) {
2091
2089
  let i = getTemporalUnitValuedOption(t, "largestUnit", void 0) ?? "auto";
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), {
2090
+ const c = getRoundingIncrementOption(t), s = getRoundingModeOption(t, E), 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(De), isDateUnit(l) || validateTemporalRoundingIncrement(c, maximumTemporalDurationRoundingIncrement(l), !1), {
2094
2092
  H: l,
2095
2093
  L: i,
2096
- q: -1 === e ? negateRoundingMode(c) : c,
2097
- V: s
2094
+ q: -1 === e ? negateRoundingMode(s) : s,
2095
+ V: c
2098
2096
  };
2099
2097
  }
2100
2098
  function getUtcEpochNanoseconds(e) {
2101
2099
  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.$);
2102
2100
  }
2103
2101
  function epochDaysToIsoDate(e) {
2104
- const t = new Date(modFloor(e, s) * r);
2102
+ const t = new Date(modFloor(e, i) * r);
2105
2103
  return {
2106
- t: t.getUTCFullYear() + 400 * divFloor(e, s),
2104
+ t: t.getUTCFullYear() + 400 * divFloor(e, i),
2107
2105
  u: t.getUTCMonth() + 1,
2108
2106
  T: t.getUTCDate()
2109
2107
  };
@@ -2111,17 +2109,17 @@ function epochDaysToIsoDate(e) {
2111
2109
  function isoDateTimeToFields(e, t) {
2112
2110
  return createNullPrototypeObject({
2113
2111
  ...isoDateToFields(e, t.o, c),
2114
- [Ft.D]: t.p.D,
2115
- [Ft.I]: t.p.I,
2116
- [Ft.O]: t.p.O,
2117
- [Ft.F]: t.p.F,
2118
- [Ft.S]: t.p.S,
2119
- [Ft.$]: t.p.$
2112
+ [Ot.D]: t.p.D,
2113
+ [Ot.I]: t.p.I,
2114
+ [Ot.O]: t.p.O,
2115
+ [Ot.F]: t.p.F,
2116
+ [Ot.S]: t.p.S,
2117
+ [Ot.$]: t.p.$
2120
2118
  });
2121
2119
  }
2122
2120
  function getInternalSlotOrThrowForDateTimeFormat(e) {
2123
- const t = Rt.get(e);
2124
- return t || throwTypeError(he), t;
2121
+ const t = Pt.get(e);
2122
+ return t || throwTypeError(Te), t;
2125
2123
  }
2126
2124
  function formatDateTime(e, t) {
2127
2125
  const [o, n] = handleDateTimeValue(getInternalSlotOrThrowForDateTimeFormat(e), t);
@@ -2135,19 +2133,19 @@ function dateStyleToMonthStyle(e) {
2135
2133
  }
2136
2134
  function amendOptionsForPlainDate(e) {
2137
2135
  const t = createNullPrototypeObject(e);
2138
- return hasAnyOptions(e, Nt) || (hasAnyOptions(e, Zt) && throwTypeError(Te), t.year = t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [...Zt, "timeZoneName"]), t.timeZone = "UTC", t;
2136
+ return hasAnyOptions(e, Rt) || (hasAnyOptions(e, Nt) && throwTypeError(me), t.year = t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [...Nt, "timeZoneName"]), t.timeZone = "UTC", t;
2139
2137
  }
2140
2138
  function amendOptionsForPlainTime(e) {
2141
2139
  const t = createNullPrototypeObject(e);
2142
- return hasAnyOptions(e, Zt) || (hasAnyOptions(e, Nt) && throwTypeError(Te), 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, [
2143
- ...Nt,
2140
+ return hasAnyOptions(e, Nt) || (hasAnyOptions(e, Rt) && throwTypeError(me), 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, [
2141
+ ...Rt,
2144
2142
  "era",
2145
2143
  "timeZoneName"
2146
2144
  ]), t.timeZone = "UTC", t;
2147
2145
  }
2148
2146
  function amendOptionsForPlainDateTime(e) {
2149
2147
  const t = createNullPrototypeObject(e);
2150
- 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, [...Nt, ...Zt]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), removeDateTimeFormatOptions(t, ["timeZoneName"]), t.timeZone = "UTC", t;
2148
+ 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, [...Rt, ...Nt]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), removeDateTimeFormatOptions(t, ["timeZoneName"]), t.timeZone = "UTC", t;
2151
2149
  }
2152
2150
  function amendOptionsForPlainYearMonth(e) {
2153
2151
  const t = createNullPrototypeObject(e);
@@ -2155,8 +2153,8 @@ function amendOptionsForPlainYearMonth(e) {
2155
2153
  "year",
2156
2154
  "month",
2157
2155
  "dateStyle"
2158
- ]) || (hasAnyOptions(e, [...Nt, ...Zt]) && throwTypeError(Te), t.year = t.month = "numeric"), removeDateTimeFormatOptions(t, [
2159
- ...Zt,
2156
+ ]) || (hasAnyOptions(e, [...Rt, ...Nt]) && throwTypeError(me), t.year = t.month = "numeric"), removeDateTimeFormatOptions(t, [
2157
+ ...Nt,
2160
2158
  "day",
2161
2159
  "weekday",
2162
2160
  "timeZoneName"
@@ -2168,8 +2166,8 @@ function amendOptionsForPlainMonthDay(e) {
2168
2166
  "month",
2169
2167
  "day",
2170
2168
  "dateStyle"
2171
- ]) || (hasAnyOptions(e, [...Nt, ...Zt]) && throwTypeError(Te), t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [
2172
- ...Zt,
2169
+ ]) || (hasAnyOptions(e, [...Rt, ...Nt]) && throwTypeError(me), t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [
2170
+ ...Nt,
2173
2171
  "era",
2174
2172
  "year",
2175
2173
  "weekday",
@@ -2178,26 +2176,26 @@ function amendOptionsForPlainMonthDay(e) {
2178
2176
  }
2179
2177
  function amendOptionsForInstant(e) {
2180
2178
  const t = createNullPrototypeObject(e);
2181
- return hasAnyOptions(e, [...Nt, ...Zt]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), t;
2179
+ return hasAnyOptions(e, [...Rt, ...Nt]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), t;
2182
2180
  }
2183
2181
  function hasAnyOptions(e, t) {
2184
2182
  return t.some((t) => void 0 !== e[t]);
2185
2183
  }
2186
- function createDateTimeFormat(e, t = createNullPrototypeObject(), o, n, r = Object.create(Ct.prototype)) {
2187
- null === t && throwTypeError(Te);
2184
+ function createDateTimeFormat(e, t = createNullPrototypeObject(), o, n, r = Object.create($t.prototype)) {
2185
+ null === t && throwTypeError(me);
2188
2186
  const a = createNullPrototypeObject();
2189
- let i = new Pt(e, new Proxy(Object(t), { get(e, t) {
2190
- const o = e[t];
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);
2187
+ let i = new bt(e, new Proxy({}, { get(e, o) {
2188
+ const r = t[o];
2189
+ return "timeZone" === o && void 0 !== n ? (void 0 !== r && throwTypeError("disallowed field: timeZone"), a[o] = n) : void 0 === r ? r : a[o] = "hour12" === o ? ((e) => !!e)(r) : "fractionalSecondDigits" === o ? Oe(r) : toString(r);
2192
2190
  } }));
2193
- return (o === c && a.timeStyle || o === l && a.dateStyle) && throwTypeError(Te), a.calendar = i.resolvedOptions().calendar, void 0 === n || hasAnyOptions(a, [
2191
+ return (o === c && a.timeStyle || o === s && a.dateStyle) && throwTypeError(me), a.calendar = i.resolvedOptions().calendar, void 0 === n || hasAnyOptions(a, [
2192
+ ...Rt,
2194
2193
  ...Nt,
2195
- ...Zt,
2196
2194
  "timeZoneName"
2197
- ]) || (a.timeZoneName = "short", i = new Pt(i.resolvedOptions().locale, a)), Rt.set(r, createNullPrototypeObject({
2198
- Pe: i,
2199
- Re: a,
2200
- Ne: i.resolvedOptions().locale
2195
+ ]) || (a.timeZoneName = "short", i = new bt(i.resolvedOptions().locale, a)), Pt.set(r, createNullPrototypeObject({
2196
+ Re: i,
2197
+ Ne: a,
2198
+ Ze: i.resolvedOptions().locale
2201
2199
  })), r;
2202
2200
  }
2203
2201
  function validateSameTemporalType(e, t) {
@@ -2212,17 +2210,17 @@ function validateSameTemporalType(e, t) {
2212
2210
  ].some((o) => o(e) !== o(t)) && throwTypeError("Temporal type mismatch");
2213
2211
  }
2214
2212
  function toDateTimeFormattable(e) {
2215
- return ((e) => isObject(e) && (isPlainDate(e) || isPlainTime(e) || isPlainDateTime(e) || isZonedDateTime(e) || isPlainYearMonth(e) || isPlainMonthDay(e) || isInstant(e)))(e) ? e : Se(e);
2213
+ return ((e) => isObject(e) && (isPlainDate(e) || isPlainTime(e) || isPlainDateTime(e) || isZonedDateTime(e) || isPlainYearMonth(e) || isPlainMonthDay(e) || isInstant(e)))(e) ? e : Oe(e);
2216
2214
  }
2217
2215
  function handleDateTimeValue(e, t) {
2218
2216
  const o = getInternalSlotForPlainDate(t), n = getInternalSlotForPlainDateTime(t), r = getInternalSlotForPlainYearMonth(t), a = getInternalSlotForPlainMonthDay(t);
2219
- return isPlainTime(t) ? [e.Ze ||= new Pt(e.Ne, amendOptionsForPlainTime(e.Re)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(createIsoDateRecord(1970, 1, 1), getInternalSlotOrThrowForPlainTime(t))))] : o ? (o.Y !== e.Re.calendar && "iso8601" !== o.Y && throwRangeError(De), [e.Ye ||= new Pt(e.Ne, amendOptionsForPlainDate(e.Re)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(o.o, midnightTimeRecord())))]) : n ? (n.Y !== e.Re.calendar && "iso8601" !== n.Y && throwRangeError(De), [e.Ce ||= new Pt(e.Ne, amendOptionsForPlainDateTime(e.Re)), epochMilliseconds(getUtcEpochNanoseconds(n._))]) : r ? (r.Y !== e.Re.calendar && throwRangeError(De), [e.Ue ||= new Pt(e.Ne, amendOptionsForPlainYearMonth(e.Re)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(r.o, midnightTimeRecord())))]) : a ? (a.Y !== e.Re.calendar && throwRangeError(De), [e.je ||= new Pt(e.Ne, amendOptionsForPlainMonthDay(e.Re)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(a.o, midnightTimeRecord())))]) : isInstant(t) ? [e.We ||= new Pt(e.Ne, amendOptionsForInstant(e.Re)), epochMilliseconds(getInternalSlotOrThrowForInstant(t).U)] : (isZonedDateTime(t) && throwTypeError(fe), [e.Pe, t]);
2217
+ return isPlainTime(t) ? [e.Ye ||= new bt(e.Ze, amendOptionsForPlainTime(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(createIsoDateRecord(1970, 1, 1), getInternalSlotOrThrowForPlainTime(t))))] : o ? (o.Y !== e.Ne.calendar && "iso8601" !== o.Y && throwRangeError(ue), [e.Ce ||= new bt(e.Ze, amendOptionsForPlainDate(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(o.o, midnightTimeRecord())))]) : n ? (n.Y !== e.Ne.calendar && "iso8601" !== n.Y && throwRangeError(ue), [e.Ue ||= new bt(e.Ze, amendOptionsForPlainDateTime(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(n.K))]) : r ? (r.Y !== e.Ne.calendar && throwRangeError(ue), [e.je ||= new bt(e.Ze, amendOptionsForPlainYearMonth(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(r.o, midnightTimeRecord())))]) : a ? (a.Y !== e.Ne.calendar && throwRangeError(ue), [e.We ||= new bt(e.Ze, amendOptionsForPlainMonthDay(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(a.o, midnightTimeRecord())))]) : isInstant(t) ? [e.Ae ||= new bt(e.Ze, amendOptionsForInstant(e.Ne)), epochMilliseconds(getInternalSlotOrThrowForInstant(t).U)] : (isZonedDateTime(t) && throwTypeError(pe), [e.Re, t]);
2220
2218
  }
2221
2219
  function DateTimeFormat(e, t) {
2222
- return new Ct(e, t);
2220
+ return new $t(e, t);
2223
2221
  }
2224
- function createTemporalInstant(e, t = Object.create(Wt.prototype)) {
2225
- return jt.set(t, { U: e }), t;
2222
+ function createTemporalInstant(e, t = Object.create(jt.prototype)) {
2223
+ return Ut.set(t, { U: e }), t;
2226
2224
  }
2227
2225
  function toTemporalInstant$1(e) {
2228
2226
  if (isObject(e)) {
@@ -2231,7 +2229,7 @@ function toTemporalInstant$1(e) {
2231
2229
  e = toPrimitive(e);
2232
2230
  }
2233
2231
  validateString(e);
2234
- const t = parseIsoDateTime(e, [et]), o = t.P.Z ? 0 : parseDateTimeUtcOffset(t.P.N), n = t.p;
2232
+ const t = parseIsoDateTime(e, [Qe]), o = t.P.Z ? 0 : parseDateTimeUtcOffset(t.P.N), n = t.p;
2235
2233
  return createTemporalInstant(validateEpochNanoseconds(getUtcEpochNanoseconds(balanceIsoDateTime(t.t, t.u, t.T, n.D, n.I, n.O, n.F, n.S, n.$ - o))));
2236
2234
  }
2237
2235
  function addInstant(e, t) {
@@ -2242,15 +2240,15 @@ function differenceInstant(e, t, o, n, r) {
2242
2240
  }
2243
2241
  function roundTemporalInstant(e, t, o, n) {
2244
2242
  return (function(e, t, o) {
2245
- return normalizeEpochNanoseconds(e[0], ((e, t, o) => bt[o](e / t) * t)(e[1], t, o));
2243
+ return normalizeEpochNanoseconds(e[0], ((e, t, o) => Mt[o](e / t) * t)(e[1], t, o));
2246
2244
  })(e, t * nanosecondsForTimeUnit(o), n);
2247
2245
  }
2248
2246
  function temporalInstantToString(e, t, o) {
2249
2247
  const n = getOffsetNanosecondsFor(t || "UTC", e);
2250
- return `${isoDateTimeToString(getIsoDateTimeFromOffsetNanoseconds(e, n), "iso8601", o, Y)}${t ? formatDateTimeUtcOffsetRounded(n) : "Z"}`;
2248
+ return `${isoDateTimeToString(getIsoDateTimeFromOffsetNanoseconds(e, n), "iso8601", o, C)}${t ? formatDateTimeUtcOffsetRounded(n) : "Z"}`;
2251
2249
  }
2252
2250
  function differenceTemporalInstant(e, t, o, n) {
2253
- const r = getInternalSlotOrThrowForInstant(toTemporalInstant$1(o)), a = getDifferenceSettings(e, getOptionsObject(n), l, [], G, J);
2251
+ const r = getInternalSlotOrThrowForInstant(toTemporalInstant$1(o)), a = getDifferenceSettings(e, getOptionsObject(n), s, [], J, B);
2254
2252
  return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differenceInstant(t.U, r.U, a.V, a.H, a.q), a.L), e));
2255
2253
  }
2256
2254
  function addDurationToInstant(e, t, o) {
@@ -2258,26 +2256,26 @@ function addDurationToInstant(e, t, o) {
2258
2256
  return isDateUnit(defaultTemporalLargestUnit(n)) && throwRangeError(durationWithDateUnit(defaultTemporalLargestUnit(n))), createTemporalInstant(addInstant(t.U, toInternalDurationRecordWith24HourDays(n).p));
2259
2257
  }
2260
2258
  function validateEpochNanoseconds(e) {
2261
- return ((e) => compareEpochNanoseconds(ye, e) * compareEpochNanoseconds(we, e) <= 0)(e) || throwRangeError(me), e;
2259
+ return ((e) => compareEpochNanoseconds(Fe, e) * compareEpochNanoseconds(Se, e) <= 0)(e) || throwRangeError(le), e;
2262
2260
  }
2263
2261
  function getInternalSlotForInstant(e) {
2264
- return jt.get(e);
2262
+ return Ut.get(e);
2265
2263
  }
2266
2264
  function getInternalSlotOrThrowForInstant(e) {
2267
2265
  const t = getInternalSlotForInstant(e);
2268
- return t || throwTypeError(he), t;
2266
+ return t || throwTypeError(Te), t;
2269
2267
  }
2270
2268
  function isInstant(e) {
2271
- return jt.has(e);
2269
+ return Ut.has(e);
2272
2270
  }
2273
2271
  function clampEpochNanoseconds(e) {
2274
- return compareEpochNanoseconds(e, we) > 0 ? we : compareEpochNanoseconds(e, ye) < 0 ? ye : e;
2272
+ return compareEpochNanoseconds(e, Se) > 0 ? Se : compareEpochNanoseconds(e, Fe) < 0 ? Fe : e;
2275
2273
  }
2276
2274
  function systemTimeZoneIdentifier() {
2277
- return Vt && xt + Vt > Date.now() && zt ? zt : (xt = Date.now(), zt = new Pt().resolvedOptions().timeZone);
2275
+ return zt && Vt + zt > Date.now() && kt ? kt : (Vt = Date.now(), kt = new bt().resolvedOptions().timeZone);
2278
2276
  }
2279
2277
  function setSystemTimeZoneIdCacheTtl(e) {
2280
- Vt = e, e || (zt = void 0, xt = -Infinity);
2278
+ zt = e, e || (kt = void 0, Vt = -Infinity);
2281
2279
  }
2282
2280
  function systemUtcEpochNanoseconds() {
2283
2281
  return createEpochNanosecondsFromEpochMilliseconds(Date.now());
@@ -2285,7 +2283,7 @@ function systemUtcEpochNanoseconds() {
2285
2283
  function systemDateTime(e = systemTimeZoneIdentifier()) {
2286
2284
  return getIsoDateTimeForZonedDateTimeSlot(createZonedDateTimeSlot(systemUtcEpochNanoseconds(), toTemporalTimeZoneIdentifier(e), "iso8601"));
2287
2285
  }
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 = [
2286
+ const e = 1e6, t = 6e10, o = 36e11, n = 86400, r = 864e5, a = 864e11, i = 146097, c = Symbol(), s = Symbol(), l = Symbol(), d = Symbol(), m = Symbol(), u = Symbol(), T = Symbol(), D = "constrain", h = "reject", p = "compatible", g = "later", f = "prefer", I = "reject", O = Symbol(), F = Symbol(), S = Symbol(), y = "ceil", w = "floor", v = "expand", E = "trunc", M = "halfCeil", b = "halfFloor", P = "halfExpand", R = "halfTrunc", N = "halfEven", Z = "auto", $ = "always", C = "never", Y = "critical", U = "auto", j = "never", W = "auto", A = "never", L = "critical", k = 0, z = 1, V = 2, x = 3, H = 4, q = 5, B = 6, J = 9, _ = 0, X = 1, G = 2, K = 3, Q = 4, ee = 5, te = 6, oe = 7, ne = 8, re = 9, ae = [
2289
2287
  "year",
2290
2288
  "month",
2291
2289
  "week",
@@ -2296,20 +2294,20 @@ const e = 1e6, t = 6e10, o = 36e11, n = 86400, r = 864e5, a = 864e8, i = 864e11,
2296
2294
  "millisecond",
2297
2295
  "microsecond",
2298
2296
  "nanosecond"
2299
- ], se = ie.map((e) => `${e}s`), ce = [
2300
- i,
2297
+ ], ie = ae.map((e) => `${e}s`), ce = [
2298
+ a,
2301
2299
  o,
2302
2300
  t,
2303
2301
  1e9,
2304
2302
  1e6,
2305
2303
  1e3,
2306
2304
  1
2307
- ], missingField = (e) => `missing field: ${e}`, invalidField = (e) => `invalid field: ${e}`, le = "parse error", de = "invalid date / time", me = "out-of-bounds date", ue = "out-of-bounds duration", Te = "invalid formatting options", De = "calendar mismatch", disallowedUnit = (e) => `disallowed unit: ${"auto" === e ? e : getNameFromUnit(e)}`, invalidNumber = (e) => `invalid number: ${e}`, invalidTimeZone = (e) => `invalid time zone: ${e}`, he = "invalid method call", invalidMonthCode = (e) => `invalid month code:${e}`, durationWithDateUnit = (e) => `duration has a date unit: ${getNameFromUnit(e)}`, pe = "invalid `largestUnit` and `smallestUnit` options", ge = "mismatch of `month` and `monthCode`", fe = "value is not formattable", notObject = (e) => `not object: ${e}`, Ie = "empty fields", Oe = "can't convert Temporal classes to number", Fe = "argument is undefined", Se = Math.max, ye = createEpochNanosecondsFromEpochMilliseconds(-864e13), we = createEpochNanosecondsFromEpochMilliseconds(864e13), ve = compareEpochNanoseconds, Ee = /* @__PURE__ */ new WeakMap();
2308
- var Me = class {
2305
+ ], missingField = (e) => `missing field: ${e}`, invalidField = (e) => `invalid field: ${e}`, parseError = (e) => `parse error: ${e}`, se = "invalid date / time", le = "out-of-bounds date", de = "out-of-bounds duration", me = "invalid formatting options", ue = "calendar mismatch", disallowedUnit = (e) => `disallowed unit: ${"auto" === e ? e : getNameFromUnit(e)}`, invalidNumber = (e) => `invalid number: ${e}`, invalidTimeZone = (e) => `invalid time zone: ${e}`, Te = "invalid method call", invalidMonthCode = (e) => `invalid month code:${e}`, durationWithDateUnit = (e) => `duration has a date unit: ${getNameFromUnit(e)}`, De = "invalid `largestUnit` and `smallestUnit` options", he = "mismatch of `month` and `monthCode`", pe = "value is not formattable", notObject = (e) => `not object: ${e}`, ge = "empty fields", fe = "can't convert Temporal classes to number", Ie = "argument is undefined", Oe = Math.max, Fe = createEpochNanosecondsFromEpochMilliseconds(-864e13), Se = createEpochNanosecondsFromEpochMilliseconds(864e13), ye = [0, 0], we = compareEpochNanoseconds, ve = /* @__PURE__ */ new WeakMap();
2306
+ var Ee = class {
2309
2307
  constructor(e, t, o = "iso8601") {
2310
2308
  const n = validateEpochNanoseconds(createEpochNanosecondsFromBigInt(toBigInt(e)));
2311
2309
  validateString(t);
2312
- const r = parseTimeZoneIdentifier(t), a = r.J ? getAvailableNamedTimeZoneIdentifier(r.J) : formatOffsetTimeZoneIdentifier(r.G);
2310
+ const r = parseTimeZoneIdentifier(t), a = r._ ? getAvailableNamedTimeZoneIdentifier(r._) : formatOffsetTimeZoneIdentifier(r.G);
2313
2311
  validateString(o), createTemporalZonedDateTime(n, a, canonicalizeCalendar(o), this);
2314
2312
  }
2315
2313
  static from(e, t = void 0) {
@@ -2325,10 +2323,10 @@ var Me = class {
2325
2323
  return getInternalSlotOrThrowForZonedDateTime(this).P;
2326
2324
  }
2327
2325
  get era() {
2328
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).oe;
2326
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ne;
2329
2327
  }
2330
2328
  get eraYear() {
2331
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ne;
2329
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).re;
2332
2330
  }
2333
2331
  get year() {
2334
2332
  return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).t;
@@ -2367,35 +2365,35 @@ var Me = class {
2367
2365
  return convertEpochNanosecondsToBigInt(getInternalSlotOrThrowForZonedDateTime(this).U);
2368
2366
  }
2369
2367
  get dayOfWeek() {
2370
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).re;
2368
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ae;
2371
2369
  }
2372
2370
  get dayOfYear() {
2373
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ae;
2371
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ie;
2374
2372
  }
2375
2373
  get weekOfYear() {
2376
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ie.se;
2374
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ce.se;
2377
2375
  }
2378
2376
  get yearOfWeek() {
2379
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ie.t;
2377
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ce.t;
2380
2378
  }
2381
2379
  get hoursInDay() {
2382
2380
  const e = getInternalSlotOrThrowForZonedDateTime(this), t = getIsoDateTimeForZonedDateTimeSlot(e).o;
2383
2381
  return timeDurationToSubsecondsNumber(differenceEpochNanoseconds(getStartOfDay(e.P, t), getStartOfDay(e.P, addDaysToIsoDate(t, 1))), -9) / o;
2384
2382
  }
2385
2383
  get daysInWeek() {
2386
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ce;
2384
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).le;
2387
2385
  }
2388
2386
  get daysInMonth() {
2389
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).le;
2387
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).de;
2390
2388
  }
2391
2389
  get daysInYear() {
2392
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).de;
2390
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).me;
2393
2391
  }
2394
2392
  get monthsInYear() {
2395
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).me;
2393
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ue;
2396
2394
  }
2397
2395
  get inLeapYear() {
2398
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ue;
2396
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).Te;
2399
2397
  }
2400
2398
  get offsetNanoseconds() {
2401
2399
  return getOffsetNanosecondsForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this));
@@ -2408,25 +2406,25 @@ var Me = class {
2408
2406
  validatePartialTemporalObject(e);
2409
2407
  const n = getOffsetNanosecondsForZonedDateTimeSlot(o), r = getIsoDateTimeForZonedDateTimeSlot(o), a = calendarMergeFields(o.Y, createNullPrototypeObject({
2410
2408
  ...isoDateTimeToFields(o.Y, r),
2411
- [Ft.M]: formatUtcOffsetNanoseconds(n)
2409
+ [Ot.M]: formatUtcOffsetNanoseconds(n)
2412
2410
  }), prepareCalendarFields(o.Y, e, [
2413
- Ft.t,
2414
- Ft.u,
2415
- Ft.v,
2416
- Ft.T,
2417
- Ft.D,
2418
- Ft.I,
2419
- Ft.O,
2420
- Ft.F,
2421
- Ft.S,
2422
- Ft.$,
2423
- Ft.M
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);
2411
+ Ot.t,
2412
+ Ot.u,
2413
+ Ot.v,
2414
+ Ot.T,
2415
+ Ot.D,
2416
+ Ot.I,
2417
+ Ot.O,
2418
+ Ot.F,
2419
+ Ot.S,
2420
+ Ot.$,
2421
+ Ot.M
2422
+ ])), i = getOptionsObject(t), c = getTemporalDisambiguationOption(i), s = getTemporalOffsetOption(i, f), l = getTemporalOverflowOption(i), d = interpretTemporalDateTimeFields(o.Y, a, l);
2423
+ return createTemporalZonedDateTime(interpretISODateTimeOffset(d.o, d.p, O, parseDateTimeUtcOffset(a[Ot.M]), o.P, c, s, !0), o.P, o.Y);
2426
2424
  }
2427
2425
  withPlainTime(e = void 0) {
2428
2426
  const t = getInternalSlotOrThrowForZonedDateTime(this), o = getIsoDateTimeForZonedDateTimeSlot(t);
2429
- return createTemporalZonedDateTime(void 0 === e ? getStartOfDay(t.P, o.o) : getEpochNanosecondsFor(t.P, combineIsoDateAndTimeRecord(o.o, toTemporalTime(e)), g), t.P, t.Y);
2427
+ return createTemporalZonedDateTime(void 0 === e ? getStartOfDay(t.P, o.o) : getEpochNanosecondsFor(t.P, combineIsoDateAndTimeRecord(o.o, toTemporalTime(e)), p), t.P, t.Y);
2430
2428
  }
2431
2429
  withTimeZone(e) {
2432
2430
  const t = getInternalSlotOrThrowForZonedDateTime(this);
@@ -2449,39 +2447,39 @@ var Me = class {
2449
2447
  return differenceTemporalZonedDateTime(-1, getInternalSlotOrThrowForZonedDateTime(this), e, t);
2450
2448
  }
2451
2449
  round(e) {
2452
- const t = getInternalSlotOrThrowForZonedDateTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, "halfExpand"), a = getTemporalUnitValuedOption(o, "smallestUnit", T);
2453
- if (validateTemporalUnitValue(a, l, [H]), validateTemporalRoundingIncrement(n, a === H ? 1 : maximumTemporalDurationRoundingIncrement(a), a === H), a === G && 1 === n) return createTemporalZonedDateTimeFromSlot(t);
2450
+ const t = getInternalSlotOrThrowForZonedDateTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, "halfExpand"), a = getTemporalUnitValuedOption(o, "smallestUnit", u);
2451
+ if (validateTemporalUnitValue(a, s, [x]), validateTemporalRoundingIncrement(n, a === x ? 1 : maximumTemporalDurationRoundingIncrement(a), a === x), a === J && 1 === n) return createTemporalZonedDateTimeFromSlot(t);
2454
2452
  const i = getIsoDateTimeForZonedDateTimeSlot(t);
2455
- if (a === H) {
2453
+ if (a === x) {
2456
2454
  const e = getStartOfDay(t.P, i.o), o = getStartOfDay(t.P, addDaysToIsoDate(i.o, 1));
2457
- return createTemporalZonedDateTime(addNanosecondsToEpochSeconds(e, roundNumberToIncrement(timeDurationToSubsecondsNumber(differenceEpochNanoseconds(e, t.U), -9), timeDurationToSubsecondsNumber(differenceEpochNanoseconds(e, o), -9), r)), t.P, t.Y);
2455
+ return createTemporalZonedDateTime(addNanosecondsToEpochSeconds(e, roundNumberToIncrement(timeDurationToSubsecondsNumber(differenceEpochNanoseconds(e, 1 !== compareEpochNanoseconds(o, t.U) ? addNanosecondsToEpochSeconds(o, -1) : t.U), -9), timeDurationToSubsecondsNumber(differenceEpochNanoseconds(e, o), -9), r)), t.P, t.Y);
2458
2456
  }
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);
2457
+ const c = roundIsoDateTime(i, n, a, r), l = getOffsetNanosecondsForZonedDateTimeSlot(t);
2458
+ return createTemporalZonedDateTime(interpretISODateTimeOffset(c.o, c.p, O, l, t.P, p, f, !0), t.P, t.Y);
2461
2459
  }
2462
2460
  equals(e) {
2463
2461
  const t = getInternalSlotOrThrowForZonedDateTime(this), o = toTemporalZonedDateTime(e);
2464
2462
  return !compareEpochNanoseconds(t.U, o.U) && timeZoneEquals(t.P, o.P) && calendarEquals(t.Y, o.Y);
2465
2463
  }
2466
2464
  toString(e = void 0) {
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", [
2465
+ const t = getInternalSlotOrThrowForZonedDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = ((e) => getOption(e, "offset", [U, j], U))(o), i = getRoundingModeOption(o, E), c = getTemporalUnitValuedOption(o, "smallestUnit", void 0), l = ((e) => getOption(e, "timeZoneName", [
2466
+ W,
2468
2467
  A,
2469
- L,
2470
- k
2471
- ], A))(o);
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);
2468
+ L
2469
+ ], W))(o);
2470
+ validateTemporalUnitValue(c, s), c === H && throwRangeError(invalidField("smallestUnit"));
2471
+ const d = toSecondsStringPrecisionRecord(c, r);
2472
+ return temporalZonedDateTimeToString(t, d.Ee, n, l, a, d.Me, d.ve, i);
2475
2473
  }
2476
2474
  toLocaleString(e = void 0, t = void 0) {
2477
- const o = getInternalSlotOrThrowForZonedDateTime(this), n = createDateTimeFormat(e, t, d, o.P), r = getInternalSlotOrThrowForDateTimeFormat(n);
2478
- return "iso8601" === o.Y || calendarEquals(o.Y, r.Re.calendar) || throwRangeError(De), formatDateTime(n, createTemporalInstant(o.U));
2475
+ const o = getInternalSlotOrThrowForZonedDateTime(this), n = createDateTimeFormat(e, t, l, o.P), r = getInternalSlotOrThrowForDateTimeFormat(n);
2476
+ return "iso8601" === o.Y || calendarEquals(o.Y, r.Ne.calendar) || throwRangeError(ue), formatDateTime(n, createTemporalInstant(o.U));
2479
2477
  }
2480
2478
  toJSON() {
2481
- return temporalZonedDateTimeToString(getInternalSlotOrThrowForZonedDateTime(this), void 0, $, A, j);
2479
+ return temporalZonedDateTimeToString(getInternalSlotOrThrowForZonedDateTime(this), void 0, Z, W, U);
2482
2480
  }
2483
2481
  valueOf() {
2484
- throwTypeError(Oe);
2482
+ throwTypeError(fe);
2485
2483
  }
2486
2484
  startOfDay() {
2487
2485
  const e = getInternalSlotOrThrowForZonedDateTime(this);
@@ -2489,8 +2487,8 @@ var Me = class {
2489
2487
  }
2490
2488
  getTimeZoneTransition(e) {
2491
2489
  const t = getInternalSlotOrThrowForZonedDateTime(this);
2492
- void 0 === e && throwTypeError(Fe);
2493
- const o = getOption("string" == typeof e ? { direction: e } : getOptionsObject(e), "direction", ["next", "previous"], T), n = ((e, t, o) => {
2490
+ void 0 === e && throwTypeError(Ie);
2491
+ const o = getOption("string" == typeof e ? { direction: e } : getOptionsObject(e), "direction", ["next", "previous"], u), n = ((e, t, o) => {
2494
2492
  if ("UTC" === e || isOffsetTimeZoneIdentifier(e)) return null;
2495
2493
  const n = -4e9, r = Math.floor((Date.now() + 31536e7) / 1e3), a = clamp(epochSeconds(addNanosecondsToEpochSeconds(t, o > 0 ? 0 : -1)), n, Infinity);
2496
2494
  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);
@@ -2512,10 +2510,10 @@ var Me = class {
2512
2510
  return createTemporalDateTime(getIsoDateTimeForZonedDateTimeSlot(e), e.Y);
2513
2511
  }
2514
2512
  };
2515
- defineStringTag(Me.prototype, "Temporal.ZonedDateTime"), renameFunction(Me, "ZonedDateTime");
2516
- const be = createNullPrototypeObject(), Pe = createNullPrototypeObject(), Re = /* @__PURE__ */ new WeakMap();
2517
- var Ne = class {
2518
- constructor(e, t, o, n = 0, r = 0, a = 0, i = 0, s = 0, c = 0, l = "iso8601") {
2513
+ defineStringTag(Ee.prototype, "Temporal.ZonedDateTime"), renameFunction(Ee, "ZonedDateTime");
2514
+ const Me = createNullPrototypeObject(), be = createNullPrototypeObject(), Pe = /* @__PURE__ */ new WeakMap();
2515
+ var Re = class {
2516
+ constructor(e, t, o, n = 0, r = 0, a = 0, i = 0, c = 0, s = 0, l = "iso8601") {
2519
2517
  const d = [
2520
2518
  e,
2521
2519
  t,
@@ -2525,123 +2523,108 @@ var Ne = class {
2525
2523
  r,
2526
2524
  a,
2527
2525
  i,
2528
- s,
2529
- c
2526
+ c,
2527
+ s
2530
2528
  ].map(toIntegerWithTruncation);
2531
2529
  validateString(l);
2532
2530
  const u = canonicalizeCalendar(l);
2533
- isValidIsoDate(...d) && isValidTime(...m) || throwRangeError(de), createTemporalDateTime(combineIsoDateAndTimeRecord(createIsoDateRecord(...d), createTimeRecord(...m)), u, this);
2531
+ isValidIsoDate(...d) && isValidTime(...m) || throwRangeError(se), createTemporalDateTime(combineIsoDateAndTimeRecord(createIsoDateRecord(...d), createTimeRecord(...m)), u, this);
2534
2532
  }
2535
2533
  static from(e, t = void 0) {
2536
2534
  return toTemporalDateTime(e, t);
2537
2535
  }
2538
2536
  static compare(e, t) {
2539
- return compareIsoDateTime(getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(e))._, getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(t))._);
2537
+ return compareIsoDateTime(getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(e)).K, getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(t)).K);
2540
2538
  }
2541
2539
  get calendarId() {
2542
2540
  return getInternalSlotOrThrowForPlainDateTime(this).Y;
2543
2541
  }
2544
2542
  get era() {
2545
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2546
- return calendarIsoToDate(e.Y, e._.o).oe;
2543
+ return calendarDateForPlainDateTime(this).ne;
2547
2544
  }
2548
2545
  get eraYear() {
2549
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2550
- return calendarIsoToDate(e.Y, e._.o).ne;
2546
+ return calendarDateForPlainDateTime(this).re;
2551
2547
  }
2552
2548
  get year() {
2553
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2554
- return calendarIsoToDate(e.Y, e._.o).t;
2549
+ return calendarDateForPlainDateTime(this).t;
2555
2550
  }
2556
2551
  get month() {
2557
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2558
- return calendarIsoToDate(e.Y, e._.o).u;
2552
+ return calendarDateForPlainDateTime(this).u;
2559
2553
  }
2560
2554
  get monthCode() {
2561
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2562
- return calendarIsoToDate(e.Y, e._.o).v;
2555
+ return calendarDateForPlainDateTime(this).v;
2563
2556
  }
2564
2557
  get day() {
2565
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2566
- return calendarIsoToDate(e.Y, e._.o).T;
2558
+ return calendarDateForPlainDateTime(this).T;
2567
2559
  }
2568
2560
  get hour() {
2569
- return getInternalSlotOrThrowForPlainDateTime(this)._.p.D;
2561
+ return getInternalSlotOrThrowForPlainDateTime(this).K.p.D;
2570
2562
  }
2571
2563
  get minute() {
2572
- return getInternalSlotOrThrowForPlainDateTime(this)._.p.I;
2564
+ return getInternalSlotOrThrowForPlainDateTime(this).K.p.I;
2573
2565
  }
2574
2566
  get second() {
2575
- return getInternalSlotOrThrowForPlainDateTime(this)._.p.O;
2567
+ return getInternalSlotOrThrowForPlainDateTime(this).K.p.O;
2576
2568
  }
2577
2569
  get millisecond() {
2578
- return getInternalSlotOrThrowForPlainDateTime(this)._.p.F;
2570
+ return getInternalSlotOrThrowForPlainDateTime(this).K.p.F;
2579
2571
  }
2580
2572
  get microsecond() {
2581
- return getInternalSlotOrThrowForPlainDateTime(this)._.p.S;
2573
+ return getInternalSlotOrThrowForPlainDateTime(this).K.p.S;
2582
2574
  }
2583
2575
  get nanosecond() {
2584
- return getInternalSlotOrThrowForPlainDateTime(this)._.p.$;
2576
+ return getInternalSlotOrThrowForPlainDateTime(this).K.p.$;
2585
2577
  }
2586
2578
  get dayOfWeek() {
2587
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2588
- return calendarIsoToDate(e.Y, e._.o).re;
2579
+ return calendarDateForPlainDateTime(this).ae;
2589
2580
  }
2590
2581
  get dayOfYear() {
2591
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2592
- return calendarIsoToDate(e.Y, e._.o).ae;
2582
+ return calendarDateForPlainDateTime(this).ie;
2593
2583
  }
2594
2584
  get weekOfYear() {
2595
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2596
- return calendarIsoToDate(e.Y, e._.o).ie.se;
2585
+ return calendarDateForPlainDateTime(this).ce.se;
2597
2586
  }
2598
2587
  get yearOfWeek() {
2599
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2600
- return calendarIsoToDate(e.Y, e._.o).ie.t;
2588
+ return calendarDateForPlainDateTime(this).ce.t;
2601
2589
  }
2602
2590
  get daysInWeek() {
2603
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2604
- return calendarIsoToDate(e.Y, e._.o).ce;
2591
+ return calendarDateForPlainDateTime(this).le;
2605
2592
  }
2606
2593
  get daysInMonth() {
2607
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2608
- return calendarIsoToDate(e.Y, e._.o).le;
2594
+ return calendarDateForPlainDateTime(this).de;
2609
2595
  }
2610
2596
  get daysInYear() {
2611
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2612
- return calendarIsoToDate(e.Y, e._.o).de;
2597
+ return calendarDateForPlainDateTime(this).me;
2613
2598
  }
2614
2599
  get monthsInYear() {
2615
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2616
- return calendarIsoToDate(e.Y, e._.o).me;
2600
+ return calendarDateForPlainDateTime(this).ue;
2617
2601
  }
2618
2602
  get inLeapYear() {
2619
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2620
- return calendarIsoToDate(e.Y, e._.o).ue;
2603
+ return calendarDateForPlainDateTime(this).Te;
2621
2604
  }
2622
2605
  with(e, t = void 0) {
2623
2606
  const o = getInternalSlotOrThrowForPlainDateTime(this);
2624
2607
  validatePartialTemporalObject(e);
2625
- const n = calendarMergeFields(o.Y, isoDateTimeToFields(o.Y, o._), prepareCalendarFields(o.Y, e, [
2626
- Ft.t,
2627
- Ft.u,
2628
- Ft.v,
2629
- Ft.T,
2630
- Ft.D,
2631
- Ft.I,
2632
- Ft.O,
2633
- Ft.F,
2634
- Ft.S,
2635
- Ft.$
2608
+ const n = calendarMergeFields(o.Y, isoDateTimeToFields(o.Y, o.K), prepareCalendarFields(o.Y, e, [
2609
+ Ot.t,
2610
+ Ot.u,
2611
+ Ot.v,
2612
+ Ot.T,
2613
+ Ot.D,
2614
+ Ot.I,
2615
+ Ot.O,
2616
+ Ot.F,
2617
+ Ot.S,
2618
+ Ot.$
2636
2619
  ]));
2637
2620
  return createTemporalDateTime(interpretTemporalDateTimeFields(o.Y, n, getTemporalOverflowOption(getOptionsObject(t))), o.Y);
2638
2621
  }
2639
2622
  withPlainTime(e = void 0) {
2640
2623
  const t = getInternalSlotOrThrowForPlainDateTime(this);
2641
- return createTemporalDateTime(combineIsoDateAndTimeRecord(t._.o, toTimeRecordOrMidnight(e)), t.Y);
2624
+ return createTemporalDateTime(combineIsoDateAndTimeRecord(t.K.o, toTimeRecordOrMidnight(e)), t.Y);
2642
2625
  }
2643
2626
  withCalendar(e) {
2644
- return createTemporalDateTime(getInternalSlotOrThrowForPlainDateTime(this)._, toTemporalCalendarIdentifier(e));
2627
+ return createTemporalDateTime(getInternalSlotOrThrowForPlainDateTime(this).K, toTemporalCalendarIdentifier(e));
2645
2628
  }
2646
2629
  add(e, t = void 0) {
2647
2630
  return addDurationToDateTime(1, getInternalSlotOrThrowForPlainDateTime(this), e, t);
@@ -2656,44 +2639,44 @@ var Ne = class {
2656
2639
  return differenceTemporalPlainDateTime(-1, getInternalSlotOrThrowForPlainDateTime(this), e, t);
2657
2640
  }
2658
2641
  round(e) {
2659
- const t = getInternalSlotOrThrowForPlainDateTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, "halfExpand"), a = getTemporalUnitValuedOption(o, "smallestUnit", T);
2660
- return validateTemporalUnitValue(a, l, [H]), validateTemporalRoundingIncrement(n, a === H ? 1 : maximumTemporalDurationRoundingIncrement(a), a === H), createTemporalDateTime(roundIsoDateTime(t._, n, a, r), t.Y);
2642
+ const t = getInternalSlotOrThrowForPlainDateTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, "halfExpand"), a = getTemporalUnitValuedOption(o, "smallestUnit", u);
2643
+ return validateTemporalUnitValue(a, s, [x]), validateTemporalRoundingIncrement(n, a === x ? 1 : maximumTemporalDurationRoundingIncrement(a), a === x), createTemporalDateTime(roundIsoDateTime(t.K, n, a, r), t.Y);
2661
2644
  }
2662
2645
  equals(e) {
2663
2646
  const t = getInternalSlotOrThrowForPlainDateTime(this), o = getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(e));
2664
- return !compareIsoDateTime(t._, o._) && calendarEquals(t.Y, o.Y);
2647
+ return !compareIsoDateTime(t.K, o.K) && calendarEquals(t.Y, o.Y);
2665
2648
  }
2666
2649
  toString(e = void 0) {
2667
- const t = getInternalSlotOrThrowForPlainDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = getRoundingModeOption(o, M), i = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2668
- validateTemporalUnitValue(i, l), i === q && throwRangeError(invalidField("smallestUnit"));
2669
- const s = toSecondsStringPrecisionRecord(i, r);
2670
- return isoDateTimeToString(validateIsoDateTime(roundIsoDateTime(t._, s.Ee, s.ve, a)), t.Y, s.$e, n);
2650
+ const t = getInternalSlotOrThrowForPlainDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = getRoundingModeOption(o, E), i = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2651
+ validateTemporalUnitValue(i, s), i === H && throwRangeError(invalidField("smallestUnit"));
2652
+ const c = toSecondsStringPrecisionRecord(i, r);
2653
+ return isoDateTimeToString(validateIsoDateTime(roundIsoDateTime(t.K, c.Me, c.ve, a)), t.Y, c.Ee, n);
2671
2654
  }
2672
2655
  toLocaleString(e = void 0, t = void 0) {
2673
- return getInternalSlotOrThrowForPlainDateTime(this), formatDateTime(createDateTimeFormat(e, t, d), this);
2656
+ return getInternalSlotOrThrowForPlainDateTime(this), formatDateTime(createDateTimeFormat(e, t, l), this);
2674
2657
  }
2675
2658
  toJSON() {
2676
2659
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2677
- return isoDateTimeToString(e._, e.Y, void 0, $);
2660
+ return isoDateTimeToString(e.K, e.Y, void 0, Z);
2678
2661
  }
2679
2662
  valueOf() {
2680
- throwTypeError(Oe);
2663
+ throwTypeError(fe);
2681
2664
  }
2682
2665
  toZonedDateTime(e, t = void 0) {
2683
2666
  const o = getInternalSlotOrThrowForPlainDateTime(this), n = toTemporalTimeZoneIdentifier(e), r = getTemporalDisambiguationOption(getOptionsObject(t));
2684
- return createTemporalZonedDateTime(getEpochNanosecondsFor(n, o._, r), n, o.Y);
2667
+ return createTemporalZonedDateTime(getEpochNanosecondsFor(n, o.K, r), n, o.Y);
2685
2668
  }
2686
2669
  toPlainDate() {
2687
2670
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2688
- return createTemporalDate(e._.o, e.Y);
2671
+ return createTemporalDate(e.K.o, e.Y);
2689
2672
  }
2690
2673
  toPlainTime() {
2691
- return createTemporalTime(getInternalSlotOrThrowForPlainDateTime(this)._.p);
2674
+ return createTemporalTime(getInternalSlotOrThrowForPlainDateTime(this).K.p);
2692
2675
  }
2693
2676
  };
2694
- defineStringTag(Ne.prototype, "Temporal.PlainDateTime"), renameFunction(Ne, "PlainDateTime");
2695
- const Ze = /* @__PURE__ */ new WeakMap();
2696
- var $e = class {
2677
+ defineStringTag(Re.prototype, "Temporal.PlainDateTime"), renameFunction(Re, "PlainDateTime");
2678
+ const Ne = /* @__PURE__ */ new WeakMap();
2679
+ var Ze = class {
2697
2680
  constructor(e = 0, t = 0, o = 0, n = 0, r = 0, a = 0) {
2698
2681
  const i = [
2699
2682
  e,
@@ -2703,7 +2686,7 @@ var $e = class {
2703
2686
  r,
2704
2687
  a
2705
2688
  ].map(toIntegerWithTruncation);
2706
- isValidTime(...i) || throwRangeError(de), createTemporalTime(createTimeRecord(...i), this);
2689
+ isValidTime(...i) || throwRangeError(se), createTemporalTime(createTimeRecord(...i), this);
2707
2690
  }
2708
2691
  static from(e, t = void 0) {
2709
2692
  return createTemporalTime(toTemporalTime(e, t));
@@ -2753,54 +2736,54 @@ var $e = class {
2753
2736
  return differenceTemporalPlainTime(-1, getInternalSlotOrThrowForPlainTime(this), e, t);
2754
2737
  }
2755
2738
  round(e) {
2756
- const t = getInternalSlotOrThrowForPlainTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, R), a = getTemporalUnitValuedOption(o, "smallestUnit", T);
2757
- return validateTemporalUnitValue(a, l), validateTemporalRoundingIncrement(n, maximumTemporalDurationRoundingIncrement(a), !1), createTemporalTime(roundTime(t, n, a, r));
2739
+ const t = getInternalSlotOrThrowForPlainTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, P), a = getTemporalUnitValuedOption(o, "smallestUnit", u);
2740
+ return validateTemporalUnitValue(a, s), validateTemporalRoundingIncrement(n, maximumTemporalDurationRoundingIncrement(a), !1), createTemporalTime(roundTime(t, n, a, r));
2758
2741
  }
2759
2742
  equals(e) {
2760
2743
  return !compareTimeRecord(getInternalSlotOrThrowForPlainTime(this), toTemporalTime(e));
2761
2744
  }
2762
2745
  toString(e = void 0) {
2763
- const t = getInternalSlotOrThrowForPlainTime(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, M), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2764
- validateTemporalUnitValue(a, l), a === q && throwRangeError(invalidField("smallestUnit"));
2746
+ const t = getInternalSlotOrThrowForPlainTime(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, E), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2747
+ validateTemporalUnitValue(a, s), a === H && throwRangeError(invalidField("smallestUnit"));
2765
2748
  const i = toSecondsStringPrecisionRecord(a, n);
2766
- return timeRecordToString(roundTime(t, i.Ee, i.ve, r), i.$e);
2749
+ return timeRecordToString(roundTime(t, i.Me, i.ve, r), i.Ee);
2767
2750
  }
2768
2751
  toLocaleString(e = void 0, t = void 0) {
2769
- return getInternalSlotOrThrowForPlainTime(this), formatDateTime(createDateTimeFormat(e, t, l), this);
2752
+ return getInternalSlotOrThrowForPlainTime(this), formatDateTime(createDateTimeFormat(e, t, s), this);
2770
2753
  }
2771
2754
  toJSON() {
2772
2755
  return timeRecordToString(getInternalSlotOrThrowForPlainTime(this));
2773
2756
  }
2774
2757
  valueOf() {
2775
- throwTypeError(Oe);
2758
+ throwTypeError(fe);
2776
2759
  }
2777
2760
  };
2778
- defineStringTag($e.prototype, "Temporal.PlainTime"), renameFunction($e, "PlainTime");
2779
- const Ce = "\\d{4}|[-+]\\d{6}", Ye = "0[1-9]|1[0-2]", Ue = "0[1-9]|[12]\\d|30|31", je = "[01]\\d|2[0-3]", We = "[0-5]\\d", Ae = `(?<a>${Ce})(?<x>-?)(?<b>${Ye})\\k<x>(?<c>${Ue})`, Le = optionalChain([
2780
- `(?<d>${je})`,
2781
- `(?<y>:?)(?<e>${We})`,
2761
+ defineStringTag(Ze.prototype, "Temporal.PlainTime"), renameFunction(Ze, "PlainTime");
2762
+ const $e = "\\d{4}|[-+]\\d{6}", Ce = "0[1-9]|1[0-2]", Ye = "0[1-9]|[12]\\d|30|31", Ue = "[01]\\d|2[0-3]", je = "[0-5]\\d", We = `(?<a>${$e})(?<x>-?)(?<b>${Ce})\\k<x>(?<c>${Ye})`, Ae = optionalChain([
2763
+ `(?<d>${Ue})`,
2764
+ `(?<y>:?)(?<e>${je})`,
2782
2765
  "\\k<y>(?<f>[0-5]\\d|60)",
2783
2766
  "[.,](?<g>\\d{1,9})"
2784
- ]), ke = optionalChain([
2785
- `([+-])(${je})`,
2786
- `(?<z>:?)(${We})`,
2787
- `\\k<z>(${We})`,
2767
+ ]), Le = optionalChain([
2768
+ `([+-])(${Ue})`,
2769
+ `(?<z>:?)(${je})`,
2770
+ `\\k<z>(${je})`,
2788
2771
  "[.,](\\d{1,9})"
2789
- ]), ze = optionalChain([
2790
- Ae,
2791
- `[ tT]${Le}`,
2792
- `(?<h>${ke})`
2793
- ]), Ve = `(?<l>${Ce})-?(?<m>${Ye})`, xe = `(?:--)?(?<m>${Ye})-?(?<n>${Ue})`, He = `(?<h>${ke})|(?<i>[zZ])`, qe = `([+-])(${je})(?::?(${We}))?|${join("[a-zA-Z._][a-zA-Z._+-\\d]*", "\\/")}`, Be = `\\[!?(?<j>${qe})\\]`, Je = join("[a-zA-Z\\d]+", "-"), Ge = `\\[(!)?([a-z_][a-z\\d_-]*)=(${Je})\\]`, _e = `(?<k>(${Ge})*)`, Ke = RegExp(Ge, "g"), Xe = createRegExp(`${optionalChain([
2794
- Ae,
2795
- `[ tT]${Le}`,
2796
- He
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();
2798
- var lt = class {
2772
+ ]), ke = optionalChain([
2773
+ We,
2774
+ `[ tT]${Ae}`,
2775
+ `(?<h>${Le})`
2776
+ ]), ze = `(?<l>${$e})-?(?<m>${Ce})`, Ve = `(?:--)?(?<m>${Ce})-?(?<n>${Ye})`, xe = `(?<h>${Le})|(?<i>[zZ])`, He = `([+-])(${Ue})(?::?(${je}))?|${join("[a-zA-Z._][a-zA-Z._+-\\d]*", "\\/")}`, qe = `\\[!?(?<j>${He})\\]`, Be = join("[a-zA-Z\\d]+", "-"), Je = `\\[(!)?([a-z_][a-z\\d_-]*)=(${Be})\\]`, _e = `(?<k>(${Je})*)`, Xe = RegExp(Je, "g"), Ge = createRegExp(`${optionalChain([
2777
+ We,
2778
+ `[ tT]${Ae}`,
2779
+ xe
2780
+ ])}${qe}${_e}`), Ke = createRegExp(`${ke}(?:${qe})?${_e}`), Qe = createRegExp(`${We}[ tT]${Ae}(?:${xe})(?:${qe})?${_e}`), et = createRegExp(`(${We}[ tT]|[tT]?)${Ae}(?<h>${Le})?(?:${qe})?${_e}`), tt = createRegExp(`(${ke}|${Ve})(?:${qe})?${_e}`), ot = createRegExp(`(${ke}|${ze})(?:${qe})?${_e}`), nt = [createRegExp(`${Ve}(${qe})?(${Je})*`), createRegExp(`${ze}(${qe})?(${Je})*`)], rt = createRegExp(He), at = createRegExp(Be), it = createRegExp(Le), ct = /* @__PURE__ */ new WeakMap();
2781
+ var st = class {
2799
2782
  constructor(e, t, o = "iso8601", n = 1972) {
2800
2783
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t);
2801
2784
  validateString(o);
2802
- const i = canonicalizeCalendar(o), s = toIntegerWithTruncation(n);
2803
- isValidIsoDate(s, r, a) || throwRangeError(de), createTemporalMonthDay(createIsoDateRecord(s, r, a), i, this);
2785
+ const i = canonicalizeCalendar(o), c = toIntegerWithTruncation(n);
2786
+ isValidIsoDate(c, r, a) || throwRangeError(se), createTemporalMonthDay(createIsoDateRecord(c, r, a), i, this);
2804
2787
  }
2805
2788
  static from(e, t = void 0) {
2806
2789
  return toTemporalMonthDay(e, t);
@@ -2818,16 +2801,16 @@ var lt = class {
2818
2801
  }
2819
2802
  with(e, t = void 0) {
2820
2803
  const o = getInternalSlotOrThrowForPlainMonthDay(this);
2821
- return validatePartialTemporalObject(e), createTemporalMonthDay(calendarMonthDayFromFields(o.Y, calendarMergeFields(o.Y, isoDateToFields(o.Y, o.o, u), prepareCalendarFields(o.Y, e, [
2822
- Ft.t,
2823
- Ft.u,
2824
- Ft.v,
2825
- Ft.T
2804
+ return validatePartialTemporalObject(e), createTemporalMonthDay(calendarMonthDayFromFields(o.Y, calendarMergeFields(o.Y, isoDateToFields(o.Y, o.o, m), prepareCalendarFields(o.Y, e, [
2805
+ Ot.t,
2806
+ Ot.u,
2807
+ Ot.v,
2808
+ Ot.T
2826
2809
  ])), getTemporalOverflowOption(getOptionsObject(t))), o.Y);
2827
2810
  }
2828
2811
  equals(e) {
2829
2812
  const t = getInternalSlotOrThrowForPlainMonthDay(this), o = getInternalSlotOrThrowForPlainMonthDay(toTemporalMonthDay(e));
2830
- return 0 === compareIsoDate(t.o, o.o) && calendarEquals(t.Y, o.Y);
2813
+ return !compareIsoDate(t.o, o.o) && calendarEquals(t.Y, o.Y);
2831
2814
  }
2832
2815
  toString(e = void 0) {
2833
2816
  return temporalMonthDayToString(getInternalSlotOrThrowForPlainMonthDay(this), getTemporalShowCalendarNameOption(getOptionsObject(e)));
@@ -2836,24 +2819,24 @@ var lt = class {
2836
2819
  return getInternalSlotOrThrowForPlainMonthDay(this), formatDateTime(createDateTimeFormat(e, t, c), this);
2837
2820
  }
2838
2821
  toJSON() {
2839
- return temporalMonthDayToString(getInternalSlotOrThrowForPlainMonthDay(this), $);
2822
+ return temporalMonthDayToString(getInternalSlotOrThrowForPlainMonthDay(this), Z);
2840
2823
  }
2841
2824
  valueOf() {
2842
- throwTypeError(Oe);
2825
+ throwTypeError(fe);
2843
2826
  }
2844
2827
  toPlainDate(e) {
2845
2828
  const t = getInternalSlotOrThrowForPlainMonthDay(this);
2846
- return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.Y, calendarMergeFields(t.Y, isoDateToFields(t.Y, t.o, u), prepareCalendarFields(t.Y, e, [Ft.t], [])), h), t.Y);
2829
+ return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.Y, calendarMergeFields(t.Y, isoDateToFields(t.Y, t.o, m), prepareCalendarFields(t.Y, e, [Ot.t], [])), D), t.Y);
2847
2830
  }
2848
2831
  };
2849
- defineStringTag(lt.prototype, "Temporal.PlainMonthDay"), renameFunction(lt, "PlainMonthDay");
2850
- const dt = /* @__PURE__ */ new WeakMap();
2851
- var mt = class {
2832
+ defineStringTag(st.prototype, "Temporal.PlainMonthDay"), renameFunction(st, "PlainMonthDay");
2833
+ const lt = /* @__PURE__ */ new WeakMap();
2834
+ var dt = class {
2852
2835
  constructor(e, t, o = "iso8601", n = 1) {
2853
2836
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t);
2854
2837
  validateString(o);
2855
- const i = canonicalizeCalendar(o), s = toIntegerWithTruncation(n);
2856
- isValidIsoDate(r, a, s) || throwRangeError(de), createTemporalYearMonth(createIsoDateRecord(r, a, s), i, this);
2838
+ const i = canonicalizeCalendar(o), c = toIntegerWithTruncation(n);
2839
+ isValidIsoDate(r, a, c) || throwRangeError(se), createTemporalYearMonth(createIsoDateRecord(r, a, c), i, this);
2857
2840
  }
2858
2841
  static from(e, t = void 0) {
2859
2842
  return toTemporalYearMonth(e, t);
@@ -2865,48 +2848,39 @@ var mt = class {
2865
2848
  return getInternalSlotOrThrowForPlainYearMonth(this).Y;
2866
2849
  }
2867
2850
  get era() {
2868
- const e = getInternalSlotOrThrowForPlainYearMonth(this);
2869
- return calendarIsoToDate(e.Y, e.o).oe;
2851
+ return calendarDateForPlainYearMonth(this).ne;
2870
2852
  }
2871
2853
  get eraYear() {
2872
- const e = getInternalSlotOrThrowForPlainYearMonth(this);
2873
- return calendarIsoToDate(e.Y, e.o).ne;
2854
+ return calendarDateForPlainYearMonth(this).re;
2874
2855
  }
2875
2856
  get year() {
2876
- const e = getInternalSlotOrThrowForPlainYearMonth(this);
2877
- return calendarIsoToDate(e.Y, e.o).t;
2857
+ return calendarDateForPlainYearMonth(this).t;
2878
2858
  }
2879
2859
  get month() {
2880
- const e = getInternalSlotOrThrowForPlainYearMonth(this);
2881
- return calendarIsoToDate(e.Y, e.o).u;
2860
+ return calendarDateForPlainYearMonth(this).u;
2882
2861
  }
2883
2862
  get monthCode() {
2884
- const e = getInternalSlotOrThrowForPlainYearMonth(this);
2885
- return calendarIsoToDate(e.Y, e.o).v;
2863
+ return calendarDateForPlainYearMonth(this).v;
2886
2864
  }
2887
2865
  get daysInYear() {
2888
- const e = getInternalSlotOrThrowForPlainYearMonth(this);
2889
- return calendarIsoToDate(e.Y, e.o).de;
2866
+ return calendarDateForPlainYearMonth(this).me;
2890
2867
  }
2891
2868
  get daysInMonth() {
2892
- const e = getInternalSlotOrThrowForPlainYearMonth(this);
2893
- return calendarIsoToDate(e.Y, e.o).le;
2869
+ return calendarDateForPlainYearMonth(this).de;
2894
2870
  }
2895
2871
  get monthsInYear() {
2896
- const e = getInternalSlotOrThrowForPlainYearMonth(this);
2897
- return calendarIsoToDate(e.Y, e.o).me;
2872
+ return calendarDateForPlainYearMonth(this).ue;
2898
2873
  }
2899
2874
  get inLeapYear() {
2900
- const e = getInternalSlotOrThrowForPlainYearMonth(this);
2901
- return calendarIsoToDate(e.Y, e.o).ue;
2875
+ return calendarDateForPlainYearMonth(this).Te;
2902
2876
  }
2903
2877
  with(e, t = void 0) {
2904
2878
  const o = getInternalSlotOrThrowForPlainYearMonth(this);
2905
2879
  validatePartialTemporalObject(e);
2906
- const n = calendarMergeFields(o.Y, isoDateToFields(o.Y, o.o, m), prepareCalendarFields(o.Y, e, [
2907
- Ft.t,
2908
- Ft.u,
2909
- Ft.v
2880
+ const n = calendarMergeFields(o.Y, isoDateToFields(o.Y, o.o, d), prepareCalendarFields(o.Y, e, [
2881
+ Ot.t,
2882
+ Ot.u,
2883
+ Ot.v
2910
2884
  ]));
2911
2885
  return createTemporalYearMonth(calendarYearMonthFromFields(o.Y, n, getTemporalOverflowOption(getOptionsObject(t))), o.Y);
2912
2886
  }
@@ -2924,7 +2898,7 @@ var mt = class {
2924
2898
  }
2925
2899
  equals(e) {
2926
2900
  const t = getInternalSlotOrThrowForPlainYearMonth(this), o = getInternalSlotOrThrowForPlainYearMonth(toTemporalYearMonth(e));
2927
- return 0 === compareIsoDate(t.o, o.o) && t.Y === o.Y;
2901
+ return !compareIsoDate(t.o, o.o) && t.Y === o.Y;
2928
2902
  }
2929
2903
  toString(e = void 0) {
2930
2904
  return temporalYearMonthToString(getInternalSlotOrThrowForPlainYearMonth(this), getTemporalShowCalendarNameOption(getOptionsObject(e)));
@@ -2933,24 +2907,24 @@ var mt = class {
2933
2907
  return getInternalSlotOrThrowForPlainYearMonth(this), formatDateTime(createDateTimeFormat(e, t, c), this);
2934
2908
  }
2935
2909
  toJSON() {
2936
- return temporalYearMonthToString(getInternalSlotOrThrowForPlainYearMonth(this), $);
2910
+ return temporalYearMonthToString(getInternalSlotOrThrowForPlainYearMonth(this), Z);
2937
2911
  }
2938
2912
  valueOf() {
2939
- throwTypeError(Oe);
2913
+ throwTypeError(fe);
2940
2914
  }
2941
2915
  toPlainDate(e) {
2942
2916
  const t = getInternalSlotOrThrowForPlainYearMonth(this);
2943
- return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.Y, calendarMergeFields(t.Y, isoDateToFields(t.Y, t.o, m), prepareCalendarFields(t.Y, e, [Ft.T], [])), h), t.Y);
2917
+ return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.Y, calendarMergeFields(t.Y, isoDateToFields(t.Y, t.o, d), prepareCalendarFields(t.Y, e, [Ot.T], [])), D), t.Y);
2944
2918
  }
2945
2919
  };
2946
- defineStringTag(mt.prototype, "Temporal.PlainYearMonth"), renameFunction(mt, "PlainYearMonth");
2947
- const ut = /* @__PURE__ */ new WeakMap();
2948
- var Tt = class {
2920
+ defineStringTag(dt.prototype, "Temporal.PlainYearMonth"), renameFunction(dt, "PlainYearMonth");
2921
+ const mt = /* @__PURE__ */ new WeakMap();
2922
+ var ut = class {
2949
2923
  constructor(e, t, o, n = "iso8601") {
2950
2924
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t), i = toIntegerWithTruncation(o);
2951
2925
  validateString(n);
2952
- const s = canonicalizeCalendar(n);
2953
- isValidIsoDate(r, a, i) || throwRangeError(de), createTemporalDate(createIsoDateRecord(r, a, i), s, this);
2926
+ const c = canonicalizeCalendar(n);
2927
+ isValidIsoDate(r, a, i) || throwRangeError(se), createTemporalDate(createIsoDateRecord(r, a, i), c, this);
2954
2928
  }
2955
2929
  static from(e, t = void 0) {
2956
2930
  return toTemporalDate(e, t);
@@ -2962,72 +2936,57 @@ var Tt = class {
2962
2936
  return getInternalSlotOrThrowForPlainDate(this).Y;
2963
2937
  }
2964
2938
  get era() {
2965
- const e = getInternalSlotOrThrowForPlainDate(this);
2966
- return calendarIsoToDate(e.Y, e.o).oe;
2939
+ return calendarDateForPlainDate(this).ne;
2967
2940
  }
2968
2941
  get eraYear() {
2969
- const e = getInternalSlotOrThrowForPlainDate(this);
2970
- return calendarIsoToDate(e.Y, e.o).ne;
2942
+ return calendarDateForPlainDate(this).re;
2971
2943
  }
2972
2944
  get year() {
2973
- const e = getInternalSlotOrThrowForPlainDate(this);
2974
- return calendarIsoToDate(e.Y, e.o).t;
2945
+ return calendarDateForPlainDate(this).t;
2975
2946
  }
2976
2947
  get month() {
2977
- const e = getInternalSlotOrThrowForPlainDate(this);
2978
- return calendarIsoToDate(e.Y, e.o).u;
2948
+ return calendarDateForPlainDate(this).u;
2979
2949
  }
2980
2950
  get monthCode() {
2981
- const e = getInternalSlotOrThrowForPlainDate(this);
2982
- return calendarIsoToDate(e.Y, e.o).v;
2951
+ return calendarDateForPlainDate(this).v;
2983
2952
  }
2984
2953
  get day() {
2985
- const e = getInternalSlotOrThrowForPlainDate(this);
2986
- return calendarIsoToDate(e.Y, e.o).T;
2954
+ return calendarDateForPlainDate(this).T;
2987
2955
  }
2988
2956
  get dayOfWeek() {
2989
- const e = getInternalSlotOrThrowForPlainDate(this);
2990
- return calendarIsoToDate(e.Y, e.o).re;
2957
+ return calendarDateForPlainDate(this).ae;
2991
2958
  }
2992
2959
  get dayOfYear() {
2993
- const e = getInternalSlotOrThrowForPlainDate(this);
2994
- return calendarIsoToDate(e.Y, e.o).ae;
2960
+ return calendarDateForPlainDate(this).ie;
2995
2961
  }
2996
2962
  get weekOfYear() {
2997
- const e = getInternalSlotOrThrowForPlainDate(this);
2998
- return calendarIsoToDate(e.Y, e.o).ie.se;
2963
+ return calendarDateForPlainDate(this).ce.se;
2999
2964
  }
3000
2965
  get yearOfWeek() {
3001
- const e = getInternalSlotOrThrowForPlainDate(this);
3002
- return calendarIsoToDate(e.Y, e.o).ie.t;
2966
+ return calendarDateForPlainDate(this).ce.t;
3003
2967
  }
3004
2968
  get daysInWeek() {
3005
- const e = getInternalSlotOrThrowForPlainDate(this);
3006
- return calendarIsoToDate(e.Y, e.o).ce;
2969
+ return calendarDateForPlainDate(this).le;
3007
2970
  }
3008
2971
  get daysInMonth() {
3009
- const e = getInternalSlotOrThrowForPlainDate(this);
3010
- return calendarIsoToDate(e.Y, e.o).le;
2972
+ return calendarDateForPlainDate(this).de;
3011
2973
  }
3012
2974
  get daysInYear() {
3013
- const e = getInternalSlotOrThrowForPlainDate(this);
3014
- return calendarIsoToDate(e.Y, e.o).de;
2975
+ return calendarDateForPlainDate(this).me;
3015
2976
  }
3016
2977
  get monthsInYear() {
3017
- const e = getInternalSlotOrThrowForPlainDate(this);
3018
- return calendarIsoToDate(e.Y, e.o).me;
2978
+ return calendarDateForPlainDate(this).ue;
3019
2979
  }
3020
2980
  get inLeapYear() {
3021
- const e = getInternalSlotOrThrowForPlainDate(this);
3022
- return calendarIsoToDate(e.Y, e.o).ue;
2981
+ return calendarDateForPlainDate(this).Te;
3023
2982
  }
3024
2983
  toPlainYearMonth() {
3025
2984
  const e = getInternalSlotOrThrowForPlainDate(this);
3026
- return createTemporalYearMonth(calendarYearMonthFromFields(e.Y, isoDateToFields(e.Y, e.o, c), h), e.Y);
2985
+ return createTemporalYearMonth(calendarYearMonthFromFields(e.Y, isoDateToFields(e.Y, e.o, c), D), e.Y);
3027
2986
  }
3028
2987
  toPlainMonthDay() {
3029
2988
  const e = getInternalSlotOrThrowForPlainDate(this);
3030
- return createTemporalMonthDay(calendarMonthDayFromFields(e.Y, isoDateToFields(e.Y, e.o, c), h), e.Y);
2989
+ return createTemporalMonthDay(calendarMonthDayFromFields(e.Y, isoDateToFields(e.Y, e.o, c), D), e.Y);
3031
2990
  }
3032
2991
  add(e, t = void 0) {
3033
2992
  return addDurationToDate(1, getInternalSlotOrThrowForPlainDate(this), e, t);
@@ -3039,10 +2998,10 @@ var Tt = class {
3039
2998
  const o = getInternalSlotOrThrowForPlainDate(this);
3040
2999
  validatePartialTemporalObject(e);
3041
3000
  const n = calendarMergeFields(o.Y, isoDateToFields(o.Y, o.o, c), prepareCalendarFields(o.Y, e, [
3042
- Ft.t,
3043
- Ft.u,
3044
- Ft.v,
3045
- Ft.T
3001
+ Ot.t,
3002
+ Ot.u,
3003
+ Ot.v,
3004
+ Ot.T
3046
3005
  ])), r = getTemporalOverflowOption(getOptionsObject(t));
3047
3006
  return createTemporalDate(calendarDateFromFields(o.Y, n, r), o.Y);
3048
3007
  }
@@ -3070,7 +3029,7 @@ var Tt = class {
3070
3029
  const t = e.timeZone;
3071
3030
  void 0 === t ? n = toTemporalTimeZoneIdentifier(e) : (n = toTemporalTimeZoneIdentifier(t), o = e.plainTime);
3072
3031
  } else n = toTemporalTimeZoneIdentifier(e);
3073
- return createTemporalZonedDateTime(void 0 === o ? getStartOfDay(n, t.o) : getEpochNanosecondsFor(n, validateIsoDateTime(combineIsoDateAndTimeRecord(t.o, toTemporalTime(o))), g), n, t.Y);
3032
+ return createTemporalZonedDateTime(void 0 === o ? getStartOfDay(n, t.o) : getEpochNanosecondsFor(n, validateIsoDateTime(combineIsoDateAndTimeRecord(t.o, toTemporalTime(o))), p), n, t.Y);
3074
3033
  }
3075
3034
  toString(e = void 0) {
3076
3035
  return temporalDateToString(getInternalSlotOrThrowForPlainDate(this), getTemporalShowCalendarNameOption(getOptionsObject(e)));
@@ -3079,20 +3038,20 @@ var Tt = class {
3079
3038
  return getInternalSlotOrThrowForPlainDate(this), formatDateTime(createDateTimeFormat(e, t, c), this);
3080
3039
  }
3081
3040
  toJSON() {
3082
- return temporalDateToString(getInternalSlotOrThrowForPlainDate(this), $);
3041
+ return temporalDateToString(getInternalSlotOrThrowForPlainDate(this), Z);
3083
3042
  }
3084
3043
  valueOf() {
3085
- throwTypeError(Oe);
3044
+ throwTypeError(fe);
3086
3045
  }
3087
3046
  };
3088
- defineStringTag(Tt.prototype, "Temporal.PlainDate"), renameFunction(Tt, "PlainDate");
3089
- const Dt = createNullPrototypeObject(), ht = {
3047
+ defineStringTag(ut.prototype, "Temporal.PlainDate"), renameFunction(ut, "PlainDate");
3048
+ const Tt = createNullPrototypeObject(), Dt = {
3090
3049
  chinese: createLruCache(2e3),
3091
3050
  dangi: createLruCache(2e3)
3092
- }, pt = {
3051
+ }, ht = {
3093
3052
  chinese: createLruCache(1e4),
3094
3053
  dangi: createLruCache(1e4)
3095
- }, gt = createLruCache(5e3), ft = createLruCache(1e3), It = new Map([["ah", 1], ["bh", !1]]), Ot = createNullPrototypeObject({
3054
+ }, pt = createLruCache(5e3), gt = createLruCache(1e3), ft = new Map([["ah", 1], ["bh", !1]]), It = createNullPrototypeObject({
3096
3055
  iso8601: /* @__PURE__ */ new Map(),
3097
3056
  buddhist: new Map([["be", 1]]),
3098
3057
  chinese: /* @__PURE__ */ new Map(),
@@ -3103,9 +3062,9 @@ const Dt = createNullPrototypeObject(), ht = {
3103
3062
  gregory: new Map([["ce", 1], ["bce", !1]]),
3104
3063
  hebrew: new Map([["am", 1]]),
3105
3064
  indian: new Map([["shaka", 1]]),
3106
- "islamic-civil": It,
3107
- "islamic-tbla": It,
3108
- "islamic-umalqura": It,
3065
+ "islamic-civil": ft,
3066
+ "islamic-tbla": ft,
3067
+ "islamic-umalqura": ft,
3109
3068
  japanese: new Map([
3110
3069
  ["reiwa", 2019],
3111
3070
  ["heisei", 1989],
@@ -3117,9 +3076,9 @@ const Dt = createNullPrototypeObject(), ht = {
3117
3076
  ]),
3118
3077
  persian: new Map([["ap", 1]]),
3119
3078
  roc: new Map([["roc", 1], ["broc", !1]])
3120
- }), Ft = {
3121
- oe: "era",
3122
- ne: "eraYear",
3079
+ }), Ot = {
3080
+ ne: "era",
3081
+ re: "eraYear",
3123
3082
  t: "year",
3124
3083
  u: "month",
3125
3084
  v: "monthCode",
@@ -3132,42 +3091,42 @@ const Dt = createNullPrototypeObject(), ht = {
3132
3091
  $: "nanosecond",
3133
3092
  M: "offset",
3134
3093
  P: "timeZone"
3135
- }, St = [
3136
- Ft.oe,
3137
- Ft.ne,
3138
- Ft.t,
3139
- Ft.u,
3140
- Ft.v,
3141
- Ft.T,
3142
- Ft.D,
3143
- Ft.I,
3144
- Ft.O,
3145
- Ft.F,
3146
- Ft.S,
3147
- Ft.$,
3148
- Ft.M,
3149
- Ft.P
3150
- ], yt = {
3151
- [Ft.oe]: [toString],
3152
- [Ft.ne]: [toIntegerWithTruncation],
3153
- [Ft.t]: [toIntegerWithTruncation],
3154
- [Ft.u]: [toPositiveIntegerWithTruncation],
3155
- [Ft.v]: [(e) => createMonthCode(...parseMonthCode(e))],
3156
- [Ft.T]: [toPositiveIntegerWithTruncation],
3157
- [Ft.D]: [toIntegerWithTruncation, 0],
3158
- [Ft.I]: [toIntegerWithTruncation, 0],
3159
- [Ft.O]: [toIntegerWithTruncation, 0],
3160
- [Ft.F]: [toIntegerWithTruncation, 0],
3161
- [Ft.S]: [toIntegerWithTruncation, 0],
3162
- [Ft.$]: [toIntegerWithTruncation, 0],
3163
- [Ft.M]: [(e) => {
3094
+ }, Ft = [
3095
+ Ot.ne,
3096
+ Ot.re,
3097
+ Ot.t,
3098
+ Ot.u,
3099
+ Ot.v,
3100
+ Ot.T,
3101
+ Ot.D,
3102
+ Ot.I,
3103
+ Ot.O,
3104
+ Ot.F,
3105
+ Ot.S,
3106
+ Ot.$,
3107
+ Ot.M,
3108
+ Ot.P
3109
+ ], St = {
3110
+ [Ot.ne]: [toString],
3111
+ [Ot.re]: [toIntegerWithTruncation],
3112
+ [Ot.t]: [toIntegerWithTruncation],
3113
+ [Ot.u]: [toPositiveIntegerWithTruncation],
3114
+ [Ot.v]: [(e) => createMonthCode(...parseMonthCode(e))],
3115
+ [Ot.T]: [toPositiveIntegerWithTruncation],
3116
+ [Ot.D]: [toIntegerWithTruncation, 0],
3117
+ [Ot.I]: [toIntegerWithTruncation, 0],
3118
+ [Ot.O]: [toIntegerWithTruncation, 0],
3119
+ [Ot.F]: [toIntegerWithTruncation, 0],
3120
+ [Ot.S]: [toIntegerWithTruncation, 0],
3121
+ [Ot.$]: [toIntegerWithTruncation, 0],
3122
+ [Ot.M]: [(e) => {
3164
3123
  const t = toPrimitive(e);
3165
3124
  return validateString(t), parseDateTimeUtcOffset(t), t;
3166
3125
  }],
3167
- [Ft.P]: [toTemporalTimeZoneIdentifier]
3168
- }, wt = /* @__PURE__ */ new WeakMap(), vt = signTimeDuration;
3169
- var Et = class {
3170
- constructor(e = 0, t = 0, o = 0, n = 0, r = 0, a = 0, i = 0, s = 0, c = 0, l = 0) {
3126
+ [Ot.P]: [toTemporalTimeZoneIdentifier]
3127
+ }, yt = /* @__PURE__ */ new WeakMap(), wt = signTimeDuration;
3128
+ var vt = class {
3129
+ constructor(e = 0, t = 0, o = 0, n = 0, r = 0, a = 0, i = 0, c = 0, s = 0, l = 0) {
3171
3130
  createTemporalDuration(createTemporalDurationSlot([
3172
3131
  e,
3173
3132
  t,
@@ -3176,8 +3135,8 @@ var Et = class {
3176
3135
  r,
3177
3136
  a,
3178
3137
  i,
3179
- s,
3180
3138
  c,
3139
+ s,
3181
3140
  l
3182
3141
  ].map(toIntegerIfIntegral)), this);
3183
3142
  }
@@ -3186,46 +3145,46 @@ var Et = class {
3186
3145
  }
3187
3146
  static compare(e, t, o = void 0) {
3188
3147
  const n = toTemporalDuration(e), r = toTemporalDuration(t), a = getTemporalRelativeToOption(getOptionsObject(o));
3189
- if (n.every((e, t) => r[t] === e)) return 0;
3190
- const i = defaultTemporalLargestUnit(n), s = defaultTemporalLargestUnit(r), c = toInternalDurationRecord(n), l = toInternalDurationRecord(r);
3148
+ if (!n.some((e, t) => r[t] !== e)) return 0;
3149
+ const i = defaultTemporalLargestUnit(n), c = defaultTemporalLargestUnit(r), s = toInternalDurationRecord(n), l = toInternalDurationRecord(r);
3191
3150
  let d, 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)));
3151
+ return a.be && (isDateUnit(i) || isDateUnit(c)) ? compareEpochNanoseconds(addZonedDateTime(a.be, s, D), addZonedDateTime(a.be, l, D)) : (isCalendarUnit(i) || isCalendarUnit(c) ? (a.Pe || throwRangeError(missingField("relativeTo")), d = dateDurationDays(s.A, a.Pe), m = dateDurationDays(l.A, a.Pe)) : (d = n[K], m = r[K]), we(add24HourDaysToTimeDuration(s.p, d), add24HourDaysToTimeDuration(l.p, m)));
3193
3152
  }
3194
3153
  get years() {
3195
3154
  return getInternalSlotOrThrowForDuration(this)[_];
3196
3155
  }
3197
3156
  get months() {
3198
- return getInternalSlotOrThrowForDuration(this)[K];
3157
+ return getInternalSlotOrThrowForDuration(this)[X];
3199
3158
  }
3200
3159
  get weeks() {
3201
- return getInternalSlotOrThrowForDuration(this)[X];
3160
+ return getInternalSlotOrThrowForDuration(this)[G];
3202
3161
  }
3203
3162
  get days() {
3204
- return getInternalSlotOrThrowForDuration(this)[Q];
3163
+ return getInternalSlotOrThrowForDuration(this)[K];
3205
3164
  }
3206
3165
  get hours() {
3207
- return getInternalSlotOrThrowForDuration(this)[ee];
3166
+ return getInternalSlotOrThrowForDuration(this)[Q];
3208
3167
  }
3209
3168
  get minutes() {
3210
- return getInternalSlotOrThrowForDuration(this)[te];
3169
+ return getInternalSlotOrThrowForDuration(this)[ee];
3211
3170
  }
3212
3171
  get seconds() {
3213
- return getInternalSlotOrThrowForDuration(this)[oe];
3172
+ return getInternalSlotOrThrowForDuration(this)[te];
3214
3173
  }
3215
3174
  get milliseconds() {
3216
- return getInternalSlotOrThrowForDuration(this)[ne];
3175
+ return getInternalSlotOrThrowForDuration(this)[oe];
3217
3176
  }
3218
3177
  get microseconds() {
3219
- return getInternalSlotOrThrowForDuration(this)[re];
3178
+ return getInternalSlotOrThrowForDuration(this)[ne];
3220
3179
  }
3221
3180
  get nanoseconds() {
3222
- return getInternalSlotOrThrowForDuration(this)[ae];
3181
+ return getInternalSlotOrThrowForDuration(this)[re];
3223
3182
  }
3224
3183
  get sign() {
3225
3184
  return durationSign(getInternalSlotOrThrowForDuration(this));
3226
3185
  }
3227
3186
  get blank() {
3228
- return 0 === durationSign(getInternalSlotOrThrowForDuration(this));
3187
+ return !durationSign(getInternalSlotOrThrowForDuration(this));
3229
3188
  }
3230
3189
  with(e) {
3231
3190
  const t = getInternalSlotOrThrowForDuration(this);
@@ -3246,81 +3205,81 @@ var Et = class {
3246
3205
  round(e) {
3247
3206
  const t = getInternalSlotOrThrowForDuration(this), o = getRoundToOptionsObject(e);
3248
3207
  let n = getTemporalUnitValuedOption(o, "largestUnit", void 0);
3249
- const r = getTemporalRelativeToOption(o), a = getRoundingIncrementOption(o), i = getRoundingModeOption(o, R);
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));
3256
- if (r.be) {
3208
+ const r = getTemporalRelativeToOption(o), a = getRoundingIncrementOption(o), i = getRoundingModeOption(o, P);
3209
+ let c = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
3210
+ validateTemporalUnitValue(c, l);
3211
+ const s = void 0 !== c;
3212
+ c ??= J;
3213
+ const d = defaultTemporalLargestUnit(t), m = largerOfTwoTemporalUnits(d, c), u = void 0 !== n;
3214
+ if (void 0 !== n && "auto" !== n || (n = m), (!s && !u || n > c) && throwRangeError(De), isDateUnit(c) || validateTemporalRoundingIncrement(a, maximumTemporalDurationRoundingIncrement(c), !1), a > 1 && n !== c && isDateUnit(c) && throwRangeError(De), r.be) return createTemporalDuration(temporalDurationFromInternal(differenceZonedDateTimeWithRounding(r.be, createZonedDateTimeSlot(addZonedDateTime(r.be, toInternalDurationRecord(t), D), r.be.P, r.be.Y), n, a, c, i), isDateUnit(n) ? H : n));
3215
+ if (r.Pe) {
3257
3216
  const e = toInternalDurationRecordWith24HourDays(t), o = addTime(midnightTimeRecord(), e.p);
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));
3217
+ return createTemporalDuration(temporalDurationFromInternal(differencePlainDateTimeWithRounding(combineIsoDateAndTimeRecord(r.Pe.o, midnightTimeRecord()), combineIsoDateAndTimeRecord(calendarDateAdd(r.Pe.Y, r.Pe.o, adjustDateDurationRecord(e.A, o.X), D), o), r.Pe.Y, n, a, c, i), n));
3259
3218
  }
3260
- (isCalendarUnit(l) || isCalendarUnit(n)) && throwRangeError(missingField("relativeTo"));
3219
+ (isCalendarUnit(d) || isCalendarUnit(n)) && throwRangeError(missingField("relativeTo"));
3261
3220
  const T = toInternalDurationRecordWith24HourDays(t);
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));
3221
+ return createTemporalDuration(temporalDurationFromInternal(c === x ? combineDateAndTimeDuration(createDateDurationRecord(0, 0, 0, roundTimeDurationByDays(T.p, a, i)[0]), ye) : combineDateAndTimeDuration(zeroDateDuration(), roundTimeDuration(T.p, a, c, i)), n));
3263
3222
  }
3264
3223
  total(e) {
3265
3224
  const t = getInternalSlotOrThrowForDuration(this);
3266
- void 0 === e && throwTypeError(Fe);
3267
- const o = "string" == typeof e ? createNullPrototypeObject({ unit: e }) : getOptionsObject(e), n = getTemporalRelativeToOption(o), r = getTemporalUnitValuedOption(o, "unit", T);
3268
- if (validateTemporalUnitValue(r, d), n.Me) return ((e, t, o) => isDateUnit(o) ? totalRelativeDuration(differenceZonedDateTime(e, t, o), e.U, t.U, getIsoDateTimeForZonedDateTimeSlot(e), e.P, e.Y, o) : totalTimeDuration(timeDurationFromEpochNanosecondsDifference(t.U, e.U), o))(n.Me, createZonedDateTimeSlot(addZonedDateTime(n.Me, toInternalDurationRecord(t), h), n.Me.P, n.Me.Y), r);
3269
- if (n.be) {
3225
+ void 0 === e && throwTypeError(Ie);
3226
+ const o = "string" == typeof e ? createNullPrototypeObject({ unit: e }) : getOptionsObject(e), n = getTemporalRelativeToOption(o), r = getTemporalUnitValuedOption(o, "unit", u);
3227
+ if (validateTemporalUnitValue(r, l), n.be) return ((e, t, o) => isDateUnit(o) ? totalRelativeDuration(differenceZonedDateTime(e, t, o), e.U, t.U, getIsoDateTimeForZonedDateTimeSlot(e), e.P, e.Y, o) : totalTimeDuration(timeDurationFromEpochNanosecondsDifference(t.U, e.U), o))(n.be, createZonedDateTimeSlot(addZonedDateTime(n.be, toInternalDurationRecord(t), D), n.be.P, n.be.Y), r);
3228
+ if (n.Pe) {
3270
3229
  const e = toInternalDurationRecordWith24HourDays(t), o = addTime(midnightTimeRecord(), e.p);
3271
- return ((e, t, o, n) => compareIsoDateTime(e, t) ? (validateIsoDateTime(e), validateIsoDateTime(t), totalRelativeDuration(differenceISODateTime(e, t, o, n), getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(t), e, void 0, o, n)) : 0)(combineIsoDateAndTimeRecord(n.be.o, midnightTimeRecord()), combineIsoDateAndTimeRecord(calendarDateAdd(n.be.Y, n.be.o, adjustDateDurationRecord(e.A, o.K), h), o), n.be.Y, r);
3230
+ return ((e, t, o, n) => compareIsoDateTime(e, t) ? (validateIsoDateTime(e), validateIsoDateTime(t), totalRelativeDuration(differenceISODateTime(e, t, o, n), getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(t), e, void 0, o, n)) : 0)(combineIsoDateAndTimeRecord(n.Pe.o, midnightTimeRecord()), combineIsoDateAndTimeRecord(calendarDateAdd(n.Pe.Y, n.Pe.o, adjustDateDurationRecord(e.A, o.X), D), o), n.Pe.Y, r);
3272
3231
  }
3273
3232
  return (isCalendarUnit(defaultTemporalLargestUnit(t)) || isCalendarUnit(r)) && throwRangeError(missingField("relativeTo")), totalTimeDuration(toInternalDurationRecordWith24HourDays(t).p, r);
3274
3233
  }
3275
3234
  toString(e = void 0) {
3276
- const t = getInternalSlotOrThrowForDuration(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, M), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
3277
- validateTemporalUnitValue(a, l), a !== q && a !== B || throwRangeError(disallowedUnit(a));
3235
+ const t = getInternalSlotOrThrowForDuration(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, E), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
3236
+ validateTemporalUnitValue(a, s), a !== H && a !== q || throwRangeError(disallowedUnit(a));
3278
3237
  const i = toSecondsStringPrecisionRecord(a, n);
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);
3238
+ if (i.ve === J && 1 === i.Me) return temporalDurationToString(t, i.Ee);
3239
+ const c = toInternalDurationRecord(t);
3240
+ return temporalDurationToString(temporalDurationFromInternal(combineDateAndTimeDuration(c.A, roundTimeDuration(c.p, i.Me, i.ve, r)), largerOfTwoTemporalUnits(defaultTemporalLargestUnit(t), B)), i.Ee);
3282
3241
  }
3283
3242
  toJSON() {
3284
3243
  return temporalDurationToString(getInternalSlotOrThrowForDuration(this));
3285
3244
  }
3286
3245
  toLocaleString(e = void 0, t = void 0) {
3287
3246
  const o = getInternalSlotOrThrowForDuration(this), n = createNullPrototypeObject();
3288
- return se.map((e, t) => {
3247
+ return ie.map((e, t) => {
3289
3248
  n[e] = o[t];
3290
3249
  }), new Intl.DurationFormat(e, t).format(n);
3291
3250
  }
3292
3251
  valueOf() {
3293
- throwTypeError(Oe);
3252
+ throwTypeError(fe);
3294
3253
  }
3295
3254
  };
3296
- defineStringTag(Et.prototype, "Temporal.Duration"), renameFunction(Et, "Duration");
3297
- const Mt = {
3298
- [w]: Math.ceil,
3299
- [v]: Math.floor,
3300
- [E]: roundExpand,
3301
- [M]: Math.trunc,
3302
- [b]: roundHalfCeil,
3303
- [P]: roundHalfFloor,
3304
- [R]: (e) => (isIntegerAndHalf(e) ? roundExpand(e) : Math.round(e)) + 0,
3305
- [N]: (e) => (isIntegerAndHalf(e) ? Math.trunc(e) : Math.round(e)) + 0,
3306
- [Z]: roundHalfEven
3307
- }, bt = {
3308
- [w]: Math.ceil,
3309
- [v]: Math.floor,
3310
- [E]: Math.ceil,
3311
- [M]: Math.floor,
3312
- [b]: roundHalfCeil,
3313
- [P]: roundHalfFloor,
3314
- [R]: roundHalfCeil,
3315
- [N]: roundHalfFloor,
3316
- [Z]: roundHalfEven
3317
- }, Pt = globalThis.Intl.DateTimeFormat, Rt = /* @__PURE__ */ new WeakMap(), Nt = [
3255
+ defineStringTag(vt.prototype, "Temporal.Duration"), renameFunction(vt, "Duration");
3256
+ const Et = {
3257
+ [y]: Math.ceil,
3258
+ [w]: Math.floor,
3259
+ [v]: roundExpand,
3260
+ [E]: Math.trunc,
3261
+ [M]: roundHalfCeil,
3262
+ [b]: roundHalfFloor,
3263
+ [P]: (e) => (isIntegerAndHalf(e) ? roundExpand(e) : Math.round(e)) + 0,
3264
+ [R]: (e) => (isIntegerAndHalf(e) ? Math.trunc(e) : Math.round(e)) + 0,
3265
+ [N]: roundHalfEven
3266
+ }, Mt = {
3267
+ [y]: Math.ceil,
3268
+ [w]: Math.floor,
3269
+ [v]: Math.ceil,
3270
+ [E]: Math.floor,
3271
+ [M]: roundHalfCeil,
3272
+ [b]: roundHalfFloor,
3273
+ [P]: roundHalfCeil,
3274
+ [R]: roundHalfFloor,
3275
+ [N]: roundHalfEven
3276
+ }, bt = globalThis.Intl.DateTimeFormat, Pt = /* @__PURE__ */ new WeakMap(), Rt = [
3318
3277
  "year",
3319
3278
  "month",
3320
3279
  "day",
3321
3280
  "weekday",
3322
3281
  "dateStyle"
3323
- ], Zt = [
3282
+ ], Nt = [
3324
3283
  "hour",
3325
3284
  "minute",
3326
3285
  "second",
@@ -3328,16 +3287,16 @@ const Mt = {
3328
3287
  "dayPeriod",
3329
3288
  "timeStyle"
3330
3289
  ];
3331
- var $t = class {
3332
- Ae(e) {
3290
+ var Zt = class {
3291
+ ke(e) {
3333
3292
  return formatDateTime(this, e);
3334
3293
  }
3335
- }, Ct = class {
3294
+ }, $t = class {
3336
3295
  constructor(e, t) {
3337
- createDateTimeFormat(e, t, d, void 0, this);
3296
+ createDateTimeFormat(e, t, l, void 0, this);
3338
3297
  }
3339
3298
  get format() {
3340
- return Object.defineProperty(getInternalSlotOrThrowForDateTimeFormat(this).ke ||= $t.prototype.Ae.bind(this), "name", { value: "" });
3299
+ return Object.defineProperty(getInternalSlotOrThrowForDateTimeFormat(this).Le ||= Zt.prototype.ke.bind(this), "name", { value: "" });
3341
3300
  }
3342
3301
  formatToParts(e) {
3343
3302
  return ((e, t) => {
@@ -3346,7 +3305,7 @@ var $t = class {
3346
3305
  })(this, e);
3347
3306
  }
3348
3307
  formatRange(e, t) {
3349
- return void 0 !== e && void 0 !== t || throwTypeError(fe), ((e, t, o) => {
3308
+ return void 0 !== e && void 0 !== t || throwTypeError(pe), ((e, t, o) => {
3350
3309
  const n = getInternalSlotOrThrowForDateTimeFormat(e);
3351
3310
  validateSameTemporalType(t, o);
3352
3311
  const [r, a] = handleDateTimeValue(n, t);
@@ -3354,7 +3313,7 @@ var $t = class {
3354
3313
  })(this, toDateTimeFormattable(e), toDateTimeFormattable(t));
3355
3314
  }
3356
3315
  formatRangeToParts(e, t) {
3357
- return void 0 !== e && void 0 !== t || throwTypeError(fe), ((e, t, o) => {
3316
+ return void 0 !== e && void 0 !== t || throwTypeError(pe), ((e, t, o) => {
3358
3317
  const n = getInternalSlotOrThrowForDateTimeFormat(e);
3359
3318
  validateSameTemporalType(t, o);
3360
3319
  const [r, a] = handleDateTimeValue(n, t);
@@ -3362,15 +3321,15 @@ var $t = class {
3362
3321
  })(this, toDateTimeFormattable(e), toDateTimeFormattable(t));
3363
3322
  }
3364
3323
  resolvedOptions() {
3365
- return getInternalSlotOrThrowForDateTimeFormat(this).Pe.resolvedOptions();
3324
+ return getInternalSlotOrThrowForDateTimeFormat(this).Re.resolvedOptions();
3366
3325
  }
3367
3326
  };
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 {
3327
+ const Ct = Object.getOwnPropertyDescriptors(bt), Yt = $t.prototype;
3328
+ Ct.prototype.value = Yt;
3329
+ for (const e of ["formatRange", "formatRangeToParts"]) bt.prototype[e] || delete Yt[e];
3330
+ Object.defineProperties(DateTimeFormat, Ct), DateTimeFormat.prototype.constructor = DateTimeFormat, defineStringTag(DateTimeFormat.prototype, "Intl.DateTimeFormat");
3331
+ const Ut = /* @__PURE__ */ new WeakMap();
3332
+ var jt = class {
3374
3333
  constructor(e) {
3375
3334
  createTemporalInstant(validateEpochNanoseconds(createEpochNanosecondsFromBigInt(toBigInt(e))), this);
3376
3335
  }
@@ -3405,43 +3364,43 @@ var Wt = class {
3405
3364
  return differenceTemporalInstant(-1, getInternalSlotOrThrowForInstant(this), e, t);
3406
3365
  }
3407
3366
  round(e) {
3408
- const t = getInternalSlotOrThrowForInstant(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, R), a = getTemporalUnitValuedOption(o, "smallestUnit", T);
3409
- return validateTemporalUnitValue(a, l), validateTemporalRoundingIncrement(n, i / nanosecondsForTimeUnit(a), !0), createTemporalInstant(roundTemporalInstant(t.U, n, a, r));
3367
+ const t = getInternalSlotOrThrowForInstant(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, P), i = getTemporalUnitValuedOption(o, "smallestUnit", u);
3368
+ return validateTemporalUnitValue(i, s), validateTemporalRoundingIncrement(n, a / nanosecondsForTimeUnit(i), !0), createTemporalInstant(roundTemporalInstant(t.U, n, i, r));
3410
3369
  }
3411
3370
  equals(e) {
3412
3371
  return !compareEpochNanoseconds(getInternalSlotOrThrowForInstant(this).U, getInternalSlotOrThrowForInstant(toTemporalInstant$1(e)).U);
3413
3372
  }
3414
3373
  toString(e = void 0) {
3415
- const t = getInternalSlotOrThrowForInstant(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, M), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0), i = o.timeZone;
3416
- validateTemporalUnitValue(a, l), a === q && throwRangeError(invalidField("smallestUnit"));
3417
- const s = mapUnlessUndefined(i, toTemporalTimeZoneIdentifier), c = toSecondsStringPrecisionRecord(a, n);
3418
- return temporalInstantToString(roundTemporalInstant(t.U, c.Ee, c.ve, r), s, c.$e);
3374
+ const t = getInternalSlotOrThrowForInstant(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, E), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0), i = o.timeZone;
3375
+ validateTemporalUnitValue(a, s), a === H && throwRangeError(invalidField("smallestUnit"));
3376
+ const c = mapUnlessUndefined(i, toTemporalTimeZoneIdentifier), l = toSecondsStringPrecisionRecord(a, n);
3377
+ return temporalInstantToString(roundTemporalInstant(t.U, l.Me, l.ve, r), c, l.Ee);
3419
3378
  }
3420
3379
  toLocaleString(e = void 0, t = void 0) {
3421
- return getInternalSlotOrThrowForInstant(this), formatDateTime(createDateTimeFormat(e, t, d), this);
3380
+ return getInternalSlotOrThrowForInstant(this), formatDateTime(createDateTimeFormat(e, t, l), this);
3422
3381
  }
3423
3382
  toJSON() {
3424
3383
  return temporalInstantToString(getInternalSlotOrThrowForInstant(this).U);
3425
3384
  }
3426
3385
  valueOf() {
3427
- throwTypeError(Oe);
3386
+ throwTypeError(fe);
3428
3387
  }
3429
3388
  toZonedDateTimeISO(e) {
3430
3389
  return createTemporalZonedDateTime(getInternalSlotOrThrowForInstant(this).U, toTemporalTimeZoneIdentifier(e), "iso8601");
3431
3390
  }
3432
3391
  };
3433
- defineStringTag(Wt.prototype, "Temporal.Instant"), renameFunction(Wt, "Instant");
3434
- const At = class {
3392
+ defineStringTag(jt.prototype, "Temporal.Instant"), renameFunction(jt, "Instant");
3393
+ const Wt = class {
3435
3394
  toTemporalInstant() {
3436
3395
  const e = Date.prototype.valueOf.call(this);
3437
- return isNaN(e) && throwRangeError("invalid date"), createTemporalInstant(createEpochNanosecondsFromEpochMilliseconds(e));
3438
- }
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 = {
3396
+ return e != e && throwRangeError("invalid date"), createTemporalInstant(createEpochNanosecondsFromEpochMilliseconds(e));
3397
+ }
3398
+ }.prototype.toTemporalInstant, At = Object.getOwnPropertyDescriptors(globalThis.Intl);
3399
+ At.DateTimeFormat.value = DateTimeFormat;
3400
+ const Lt = {};
3401
+ Object.defineProperties(Lt, At);
3402
+ let kt, zt = 0, Vt = -Infinity;
3403
+ const xt = {
3445
3404
  timeZoneId: () => systemTimeZoneIdentifier(),
3446
3405
  instant: () => createTemporalInstant(systemUtcEpochNanoseconds()),
3447
3406
  plainDateTimeISO: (e = void 0) => createTemporalDateTime(systemDateTime(e), "iso8601"),
@@ -3449,17 +3408,17 @@ const Ht = {
3449
3408
  plainDateISO: (e = void 0) => createTemporalDate(systemDateTime(e).o, "iso8601"),
3450
3409
  plainTimeISO: (e = void 0) => createTemporalTime(systemDateTime(e).p)
3451
3410
  };
3452
- defineStringTag(Ht, "Temporal.Now"), makePropertiesNonEnumerable(Ht);
3453
- const qt = {
3454
- Instant: Wt,
3455
- PlainDateTime: Ne,
3456
- PlainDate: Tt,
3457
- PlainTime: $e,
3458
- PlainYearMonth: mt,
3459
- PlainMonthDay: lt,
3460
- Duration: Et,
3461
- ZonedDateTime: Me,
3462
- Now: Ht
3411
+ defineStringTag(xt, "Temporal.Now"), makePropertiesNonEnumerable(xt);
3412
+ const Ht = {
3413
+ Instant: jt,
3414
+ PlainDateTime: Re,
3415
+ PlainDate: ut,
3416
+ PlainTime: Ze,
3417
+ PlainYearMonth: dt,
3418
+ PlainMonthDay: st,
3419
+ Duration: vt,
3420
+ ZonedDateTime: Ee,
3421
+ Now: xt
3463
3422
  };
3464
- defineStringTag(qt, "Temporal"), makePropertiesNonEnumerable(qt);
3465
- export { defineNonEnumerableProperty as a, At as i, setSystemTimeZoneIdCacheTtl as n, kt as r, qt as t };
3423
+ defineStringTag(Ht, "Temporal"), makePropertiesNonEnumerable(Ht);
3424
+ export { defineNonEnumerableProperty as a, Wt as i, setSystemTimeZoneIdCacheTtl as n, Lt as r, Ht as t };