temporal-polyfill-lite 0.4.3 → 1.0.0
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.
- package/CHANGELOG.md +35 -24
- package/README.md +1 -1
- package/dist/calendars/global.js +1 -1
- package/dist/calendars/index.js +1 -2
- package/dist/calendars/shim.js +1 -1
- package/dist/calendars/{src-BU-7y4gA.js → src-CLej0F_-.js} +220 -232
- package/dist/global.js +1 -1
- package/dist/index.js +1 -2
- package/dist/shim.js +1 -1
- package/dist/{src-sQY-gZ2P.js → src-DYpWRzuf.js} +52 -63
- package/package.json +1 -1
|
@@ -213,19 +213,19 @@ function toTemporalZonedDateTime(e, t) {
|
|
|
213
213
|
}
|
|
214
214
|
i = getTemporalCalendarIdentifierWithIsoDefault(e);
|
|
215
215
|
const l = prepareCalendarFields(i, e, [
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
], [
|
|
216
|
+
wt.t,
|
|
217
|
+
wt.u,
|
|
218
|
+
wt.v,
|
|
219
|
+
wt.T,
|
|
220
|
+
wt.D,
|
|
221
|
+
wt.I,
|
|
222
|
+
wt.O,
|
|
223
|
+
wt.F,
|
|
224
|
+
wt.S,
|
|
225
|
+
wt.$,
|
|
226
|
+
wt.M,
|
|
227
|
+
wt.P
|
|
228
|
+
], [wt.P]);
|
|
229
229
|
o = l.timeZone, n = l.offset;
|
|
230
230
|
const d = getOptionsObject(t);
|
|
231
231
|
r = getTemporalDisambiguationOption(d), a = getTemporalOffsetOption(d, X);
|
|
@@ -267,7 +267,7 @@ function differenceZonedDateTime(e, t, o) {
|
|
|
267
267
|
const r = getIsoDateTimeForZonedDateTimeSlot(e), a = getIsoDateTimeForZonedDateTimeSlot(t);
|
|
268
268
|
if (!compareIsoDate(r.o, a.o)) return combineDateAndTimeDuration(zeroDateDuration(), timeDurationFromEpochNanosecondsDifference(t.U, e.U));
|
|
269
269
|
let i, c = differenceTime(r.p, a.p);
|
|
270
|
-
for (let o =
|
|
270
|
+
for (let o = bt(c) === n ? 1 : 0; o <= (3 - n) / 2 && (i = combineIsoDateAndTimeRecord(addDaysToIsoDate(a.o, o * n), r.p), c = timeDurationFromEpochNanosecondsDifference(t.U, getEpochNanosecondsFor(e.P, i, G)), bt(c) === n); o++);
|
|
271
271
|
return combineDateAndTimeDuration(calendarDateUntil(e.Y, r.o, i.o, largerOfTwoTemporalUnits(o, d)), c);
|
|
272
272
|
}
|
|
273
273
|
function differenceZonedDateTimeWithRounding(e, t, o, n, r, a) {
|
|
@@ -350,7 +350,7 @@ function getNamedTimeZoneOffsetNanosecondsForEpochSecond(t, o, n) {
|
|
|
350
350
|
return n || a.B(r, s), s;
|
|
351
351
|
}
|
|
352
352
|
function getFormatterForTimeZone(e) {
|
|
353
|
-
return Re[e] ||= new
|
|
353
|
+
return Re[e] ||= new Zt("en-u-hc-h23", {
|
|
354
354
|
timeZone: e,
|
|
355
355
|
year: "numeric",
|
|
356
356
|
month: "numeric",
|
|
@@ -444,10 +444,8 @@ function getNamedTimeZoneEpochCandidates(e, t) {
|
|
|
444
444
|
return n === r ? [a] : [a, i].sort(compareEpochNanoseconds);
|
|
445
445
|
}
|
|
446
446
|
function getIsoDateTimeFromOffsetNanoseconds(e, t) {
|
|
447
|
-
return ((e)
|
|
448
|
-
|
|
449
|
-
return combineIsoDateAndTimeRecord(epochDaysToIsoDate(t[0]), balanceTime(0, 0, 0, 0, 0, t[1]));
|
|
450
|
-
})(addNanosecondsToEpochSeconds(e, t));
|
|
447
|
+
return combineIsoDateAndTimeRecord(epochDaysToIsoDate((o = addNanosecondsToEpochSeconds(e, t))[0]), balanceTime(0, 0, 0, 0, 0, o[1]));
|
|
448
|
+
var o;
|
|
451
449
|
}
|
|
452
450
|
function combineIsoDateAndTimeRecord(e, t) {
|
|
453
451
|
return {
|
|
@@ -456,7 +454,7 @@ function combineIsoDateAndTimeRecord(e, t) {
|
|
|
456
454
|
};
|
|
457
455
|
}
|
|
458
456
|
function interpretTemporalDateTimeFields(e, t, o) {
|
|
459
|
-
return combineIsoDateAndTimeRecord(calendarDateFromFields(e, t, o), regulateTime(t[
|
|
457
|
+
return combineIsoDateAndTimeRecord(calendarDateFromFields(e, t, o), regulateTime(t[wt.D], t[wt.I], t[wt.O], t[wt.F], t[wt.S], t[wt.$], o));
|
|
460
458
|
}
|
|
461
459
|
function toTemporalDateTime(e, t) {
|
|
462
460
|
if (isObject(e)) {
|
|
@@ -476,16 +474,16 @@ function toTemporalDateTime(e, t) {
|
|
|
476
474
|
}
|
|
477
475
|
const o = getTemporalCalendarIdentifierWithIsoDefault(e);
|
|
478
476
|
return createTemporalDateTime(interpretTemporalDateTimeFields(o, prepareCalendarFields(o, e, [
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
477
|
+
wt.t,
|
|
478
|
+
wt.u,
|
|
479
|
+
wt.v,
|
|
480
|
+
wt.T,
|
|
481
|
+
wt.D,
|
|
482
|
+
wt.I,
|
|
483
|
+
wt.O,
|
|
484
|
+
wt.F,
|
|
485
|
+
wt.S,
|
|
486
|
+
wt.$
|
|
489
487
|
], []), getTemporalOverflowOption(getOptionsObject(t))), o);
|
|
490
488
|
}
|
|
491
489
|
validateString(e);
|
|
@@ -514,7 +512,7 @@ function roundIsoDateTime(e, t, o, n) {
|
|
|
514
512
|
}
|
|
515
513
|
function differenceISODateTime(e, t, o, n) {
|
|
516
514
|
let r = differenceTime(e.p, t.p);
|
|
517
|
-
const a =
|
|
515
|
+
const a = bt(r);
|
|
518
516
|
let i = t.o;
|
|
519
517
|
a === compareIsoDate(e.o, t.o) && (i = addDaysToIsoDate(i, a), r = add24HourDaysToTimeDuration(r, -a));
|
|
520
518
|
const c = largerOfTwoTemporalUnits(d, n), s = calendarDateUntil(o, e.o, i, c);
|
|
@@ -610,26 +608,22 @@ function createTemporalTime(e, t = Object.create(Ye.prototype)) {
|
|
|
610
608
|
return Ce.set(t, e), t;
|
|
611
609
|
}
|
|
612
610
|
function toTemporalTimeRecord(e, t = !1) {
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
const r = e[n];
|
|
623
|
-
return void 0 !== r ? (o = !0, toIntegerWithTruncation(r)) : t ? void 0 : 0;
|
|
624
|
-
});
|
|
625
|
-
return o || throwTypeError(U), [
|
|
611
|
+
const o = [
|
|
612
|
+
wt.D,
|
|
613
|
+
wt.S,
|
|
614
|
+
wt.F,
|
|
615
|
+
wt.I,
|
|
616
|
+
wt.$,
|
|
617
|
+
wt.O
|
|
618
|
+
].map((t) => mapUnlessUndefined(e[t], toIntegerWithTruncation));
|
|
619
|
+
return o.some((e) => void 0 !== e) || throwTypeError(U), [
|
|
626
620
|
0,
|
|
627
621
|
3,
|
|
628
622
|
5,
|
|
629
623
|
2,
|
|
630
624
|
1,
|
|
631
625
|
4
|
|
632
|
-
].map((e) =>
|
|
626
|
+
].map((e) => t ? o[e] : o[e] || 0);
|
|
633
627
|
}
|
|
634
628
|
function timeRecordToString(e, t) {
|
|
635
629
|
return formatTimeString(e.D, e.I, e.O, 1e6 * e.F + 1e3 * e.S + e.$, t);
|
|
@@ -638,8 +632,8 @@ function compareTimeRecord(e, t) {
|
|
|
638
632
|
return compare(e.D, t.D) || compare(e.I, t.I) || compare(e.O, t.O) || compare(e.F, t.F) || compare(e.S, t.S) || compare(e.$, t.$);
|
|
639
633
|
}
|
|
640
634
|
function addTime(e, t) {
|
|
641
|
-
const o =
|
|
642
|
-
return
|
|
635
|
+
const o = balanceTime(e.D, e.I, e.O, e.F, e.S, e.$ + t[1]);
|
|
636
|
+
return o.X += t[0], o;
|
|
643
637
|
}
|
|
644
638
|
function roundTime(e, n, r, a) {
|
|
645
639
|
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.$;
|
|
@@ -716,10 +710,10 @@ function toTemporalMonthDay(e, t) {
|
|
|
716
710
|
if (o) return getTemporalOverflowOption(getOptionsObject(t)), createTemporalMonthDay(o.o, o.Y);
|
|
717
711
|
const n = getTemporalCalendarIdentifierWithIsoDefault(e);
|
|
718
712
|
return createTemporalMonthDay(calendarMonthDayFromFields(n, prepareCalendarFields(n, e, [
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
713
|
+
wt.t,
|
|
714
|
+
wt.u,
|
|
715
|
+
wt.v,
|
|
716
|
+
wt.T
|
|
723
717
|
], []), getTemporalOverflowOption(getOptionsObject(t))), n);
|
|
724
718
|
}
|
|
725
719
|
validateString(e);
|
|
@@ -750,9 +744,9 @@ function toTemporalYearMonth(e, t) {
|
|
|
750
744
|
if (o) return getTemporalOverflowOption(getOptionsObject(t)), createTemporalYearMonth(o.o, o.Y);
|
|
751
745
|
const n = getTemporalCalendarIdentifierWithIsoDefault(e);
|
|
752
746
|
return createTemporalYearMonth(calendarYearMonthFromFields(n, prepareCalendarFields(n, e, [
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
747
|
+
wt.t,
|
|
748
|
+
wt.u,
|
|
749
|
+
wt.v
|
|
756
750
|
], []), getTemporalOverflowOption(getOptionsObject(t))), n);
|
|
757
751
|
}
|
|
758
752
|
validateString(e);
|
|
@@ -792,10 +786,10 @@ function differenceTemporalPlainYearMonth(e, t, o, n) {
|
|
|
792
786
|
]));
|
|
793
787
|
const i = calendarDateFromFields(t.Y, createNullPrototypeObject({
|
|
794
788
|
...isoDateToFields(t.Y, t.o, H),
|
|
795
|
-
[
|
|
789
|
+
[wt.T]: 1
|
|
796
790
|
}), _), m = calendarDateFromFields(t.Y, createNullPrototypeObject({
|
|
797
791
|
...isoDateToFields(t.Y, r.o, H),
|
|
798
|
-
[
|
|
792
|
+
[wt.T]: 1
|
|
799
793
|
}), _);
|
|
800
794
|
let u = combineDateAndTimeDuration(adjustDateDurationRecord(calendarDateUntil(t.Y, i, m, a.L), 0, 0), ve);
|
|
801
795
|
if (a.H !== s || 1 !== a.V) {
|
|
@@ -808,7 +802,7 @@ function addDurationToYearMonth(e, t, o, n) {
|
|
|
808
802
|
const r = toInternalDurationRecord(applySignToDurationSlot(toTemporalDuration(o), e)), a = getTemporalOverflowOption(getOptionsObject(n));
|
|
809
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({
|
|
810
804
|
...isoDateToFields(t.Y, t.o, H),
|
|
811
|
-
[
|
|
805
|
+
[wt.T]: 1
|
|
812
806
|
}), _), r.A, a), H), a), t.Y);
|
|
813
807
|
}
|
|
814
808
|
function validateIsoYearMonth(e) {
|
|
@@ -859,10 +853,10 @@ function toTemporalDate(e, t) {
|
|
|
859
853
|
}
|
|
860
854
|
const o = getTemporalCalendarIdentifierWithIsoDefault(e);
|
|
861
855
|
return createTemporalDate(calendarDateFromFields(o, prepareCalendarFields(o, e, [
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
856
|
+
wt.t,
|
|
857
|
+
wt.u,
|
|
858
|
+
wt.v,
|
|
859
|
+
wt.T
|
|
866
860
|
], []), getTemporalOverflowOption(getOptionsObject(t))), o);
|
|
867
861
|
}
|
|
868
862
|
validateString(e);
|
|
@@ -933,7 +927,7 @@ function calendarDateForPlainDate(e) {
|
|
|
933
927
|
return calendarIsoToDate(t.Y, t.o);
|
|
934
928
|
}
|
|
935
929
|
function formatToParts(e, t) {
|
|
936
|
-
return (pt[e] ||= new
|
|
930
|
+
return (pt[e] ||= new Zt("en", {
|
|
937
931
|
year: "numeric",
|
|
938
932
|
month: "numeric",
|
|
939
933
|
day: "numeric",
|
|
@@ -1158,7 +1152,7 @@ function daysInMonth(e, t) {
|
|
|
1158
1152
|
return t <= 6 ? 31 : 12 !== t || isLeapYear(e) ? 30 : 29;
|
|
1159
1153
|
}
|
|
1160
1154
|
function canonicalizeCalendar(e) {
|
|
1161
|
-
return "islamicc" === (e = asciiLowerCase(e)) ? "islamic-civil" : "ethiopic-amete-alem" === e ? "ethioaa" :
|
|
1155
|
+
return "islamicc" === (e = asciiLowerCase(e)) ? "islamic-civil" : "ethiopic-amete-alem" === e ? "ethioaa" : yt[e] ? e : throwRangeError(((e) => `unsupported calendar: ${e}`)(e));
|
|
1162
1156
|
}
|
|
1163
1157
|
function calendarDateAdd(e, t, o, n) {
|
|
1164
1158
|
if (isIsoLikeCalendar(e) || !o.te && !o.oe) return ((e, t, o) => {
|
|
@@ -1210,8 +1204,8 @@ function calendarDateUntil(e, t, o, n) {
|
|
|
1210
1204
|
return createDateDurationRecord(m, u, 0, isoDateRecordToEpochDays(o) - isoDateRecordToEpochDays(calendarIntegersToIso(e, h.t, h.u, constrainDay(e, h.t, h.u, a.T, _))));
|
|
1211
1205
|
}
|
|
1212
1206
|
function calendarDateToIso(e, t, o) {
|
|
1213
|
-
const n = t[
|
|
1214
|
-
if (isIsoLikeCalendar(e)) return ((e, t) => regulateIsoDate(e[
|
|
1207
|
+
const n = t[wt.t], r = t[wt.u], a = mapUnlessUndefined(t[wt.v], parseMonthCode), i = t[wt.T];
|
|
1208
|
+
if (isIsoLikeCalendar(e)) return ((e, t) => regulateIsoDate(e[wt.t], e[wt.u], e[wt.T], t))({
|
|
1215
1209
|
...t,
|
|
1216
1210
|
year: n + ("buddhist" === e ? -543 : "roc" === e ? 1911 : 0)
|
|
1217
1211
|
}, o);
|
|
@@ -1228,7 +1222,7 @@ function nonIsoCalendarIsoToDate(e, t) {
|
|
|
1228
1222
|
}
|
|
1229
1223
|
};
|
|
1230
1224
|
if ("japanese" === e) {
|
|
1231
|
-
const r = o >= 18017 ? "reiwa" : o >= 6947 ? "heisei" : o >= -15713 ? "showa" : o >= -20974 ? "taisho" : o >= -35428 ? "meiji" : t.t > 0 ? "ce" : "bce", a =
|
|
1225
|
+
const r = o >= 18017 ? "reiwa" : o >= 6947 ? "heisei" : o >= -15713 ? "showa" : o >= -20974 ? "taisho" : o >= -35428 ? "meiji" : t.t > 0 ? "ce" : "bce", a = yt[e].get(r);
|
|
1232
1226
|
return {
|
|
1233
1227
|
ne: r,
|
|
1234
1228
|
re: "bce" === r ? 1 - t.t : t.t - a + 1,
|
|
@@ -1400,19 +1394,18 @@ function nonIsoCalendarIsoToDate(e, t) {
|
|
|
1400
1394
|
})(o) : epochDaysToDate$2(e, o);
|
|
1401
1395
|
}
|
|
1402
1396
|
function calendarSupportsEra(e) {
|
|
1403
|
-
return !!
|
|
1397
|
+
return !!yt[e].size;
|
|
1404
1398
|
}
|
|
1405
1399
|
function canonicalizeEraInCalendar(e, t) {
|
|
1406
1400
|
const o = "ad" === t ? "ce" : "bc" === t ? "bce" : t;
|
|
1407
|
-
return
|
|
1401
|
+
return yt[e].has(o) ? o : throwRangeError(((e) => `invalid era: ${e}`)(t));
|
|
1408
1402
|
}
|
|
1409
1403
|
function constrainMonthCode(e, t, o, n) {
|
|
1410
|
-
if ("hebrew" === e) return o[1] && !isLeapYear$2(t) ? "reject" === n ? throwRangeError(b) : [6, !1] : o;
|
|
1411
1404
|
if (isChineseDangi(e)) {
|
|
1412
1405
|
const r = ((e, t, o) => o[1] && ordinalMonthToMonthCode(e, t, o[0] + 1) !== createMonthCode(...o) ? [o[0], !1] : o)(e, t, o);
|
|
1413
1406
|
return o !== r && "reject" === n ? throwRangeError(b) : r;
|
|
1414
1407
|
}
|
|
1415
|
-
return o;
|
|
1408
|
+
return "hebrew" === e && o[1] && !isLeapYear$2(t) ? "reject" === n ? throwRangeError(b) : [6, !1] : o;
|
|
1416
1409
|
}
|
|
1417
1410
|
function monthCodeToOrdinal(e, t, o) {
|
|
1418
1411
|
return "hebrew" === e ? ((e, t) => t[0] + +(isLeapYear$2(e) && t[0] + +t[1] >= 6))(t, o) : isChineseDangi(e) ? ((e, t, o) => o[1] || ordinalMonthToMonthCode(e, t, o[0]) !== createMonthCode(...o) ? o[0] + 1 : o[0])(e, t, o) : o[0];
|
|
@@ -1486,16 +1479,16 @@ function prepareCalendarFields(e, t, o, n) {
|
|
|
1486
1479
|
let a = !1;
|
|
1487
1480
|
for (const e of o) {
|
|
1488
1481
|
const o = t[e];
|
|
1489
|
-
void 0 !== o ? (a = !0, r[e] =
|
|
1482
|
+
void 0 !== o ? (a = !0, r[e] = Et[e][0](o)) : n && (n.includes(e) && throwTypeError(missingField(e)), r[e] = Et[e][1]);
|
|
1490
1483
|
}
|
|
1491
1484
|
return n || a || throwTypeError(U), r;
|
|
1492
1485
|
}
|
|
1493
1486
|
function calendarMergeFields(e, t, o) {
|
|
1494
1487
|
const n = ((e, t) => {
|
|
1495
1488
|
const o = [];
|
|
1496
|
-
return void 0 !== t[
|
|
1489
|
+
return void 0 !== t[wt.u] && o.push(wt.v), void 0 !== t[wt.v] && o.push(wt.u), !calendarSupportsEra(e) || void 0 === t[wt.ne] && void 0 === t[wt.re] && void 0 === t[wt.t] || o.push(wt.ne, wt.re, wt.t), !((e) => "japanese" === e)(e) || void 0 === t[wt.T] && void 0 === t[wt.u] && void 0 === t[wt.v] || o.push(wt.ne, wt.re), o;
|
|
1497
1490
|
})(e, o), r = createEmptyCalendarFieldsRecord();
|
|
1498
|
-
for (const e of
|
|
1491
|
+
for (const e of vt) void 0 === t[e] || n.includes(e) || (r[e] = t[e]), void 0 !== o[e] && (r[e] = o[e]);
|
|
1499
1492
|
return r;
|
|
1500
1493
|
}
|
|
1501
1494
|
function toTemporalCalendarIdentifier(e) {
|
|
@@ -1528,14 +1521,14 @@ function calendarYearMonthFromFields(e, t, o) {
|
|
|
1528
1521
|
function calendarMonthDayFromFields(e, t, o) {
|
|
1529
1522
|
return calendarResolveFields(e, t, q), (function(e, t, o) {
|
|
1530
1523
|
if (isIsoLikeCalendar(e)) return ((e, t, o) => {
|
|
1531
|
-
const n = regulateIsoDate(e[
|
|
1524
|
+
const n = regulateIsoDate(e[wt.t] ?? 1972, e[wt.u], e[wt.T], t);
|
|
1532
1525
|
return o || validateIsoDate(n), createIsoDateRecord(1972, n.u, n.T);
|
|
1533
1526
|
})({
|
|
1534
1527
|
...t,
|
|
1535
1528
|
year: mapUnlessUndefined(t.year, (t) => t + ("buddhist" === e ? -543 : "roc" === e ? 1911 : 0))
|
|
1536
1529
|
}, o, "iso8601" === e);
|
|
1537
|
-
const n = t[
|
|
1538
|
-
let r = t[
|
|
1530
|
+
const n = t[wt.t];
|
|
1531
|
+
let r = t[wt.u], a = mapUnlessUndefined(t[wt.v], parseMonthCode), i = t[wt.T];
|
|
1539
1532
|
return void 0 !== n ? (a || (r = constrainMonth(e, n, r, o)), a = a ? constrainMonthCode(e, n, a, o) : parseMonthCode(nonIsoCalendarIsoToDate(e, calendarIntegersToIso(e, n, r, 1)).v), i = constrainDay(e, n, r, i, o), validateIsoDate(calendarIntegersToIso(e, n, r, i))) : i = ((e, t, o, n) => {
|
|
1540
1533
|
if (isChineseDangi(e) || "islamic-umalqura" === e || "persian" === e) {
|
|
1541
1534
|
const r = clamp(o, 1, "persian" === e && t[0] <= 6 ? 31 : 30);
|
|
@@ -1634,30 +1627,30 @@ function calendarExtraFields(e, t) {
|
|
|
1634
1627
|
return calendarSupportsEra(e) && t.includes("year") ? ["era", "eraYear"] : [];
|
|
1635
1628
|
}
|
|
1636
1629
|
function isoResolveFields(e, t) {
|
|
1637
|
-
t !== q && void 0 === e[
|
|
1638
|
-
const o = mapUnlessUndefined(e[
|
|
1639
|
-
o && ((o[0] > 12 || o[1] || void 0 !== e[
|
|
1630
|
+
t !== q && void 0 === e[wt.t] && throwTypeError(missingField(wt.t)), t !== H && void 0 === e[wt.T] && throwTypeError(missingField(wt.T)), void 0 === e[wt.v] && void 0 === e[wt.u] && throwTypeError(missingField("month, monthCode"));
|
|
1631
|
+
const o = mapUnlessUndefined(e[wt.v], parseMonthCode);
|
|
1632
|
+
o && ((o[0] > 12 || o[1] || void 0 !== e[wt.u] && o[0] !== e[wt.u]) && throwRangeError(C), e[wt.u] = o[0]);
|
|
1640
1633
|
}
|
|
1641
1634
|
function calendarResolveFields(e, t, o = z) {
|
|
1642
1635
|
"iso8601" === e ? isoResolveFields(t, o) : (function(e, t, o = z) {
|
|
1643
|
-
const n = t[
|
|
1644
|
-
let a = t[
|
|
1645
|
-
const i = t[
|
|
1636
|
+
const n = t[wt.ne], r = t[wt.re];
|
|
1637
|
+
let a = t[wt.t];
|
|
1638
|
+
const i = t[wt.v], c = t[wt.u], s = t[wt.T];
|
|
1646
1639
|
if (o === q && void 0 !== i && void 0 === c || void 0 !== a || calendarSupportsEraForNonIsoCalendars(e) && void 0 !== n && void 0 !== r || throwTypeError(missingField("year, era, eraYear")), calendarSupportsEraForNonIsoCalendars(e) && void 0 === n != (void 0 === r) && throwTypeError(), o !== H && void 0 === s && throwTypeError(missingField("day")), c === i && throwTypeError(missingField("month, monthCode")), calendarSupportsEraForNonIsoCalendars(e) && void 0 !== r) {
|
|
1647
1640
|
const o = ((e, t, o) => {
|
|
1648
|
-
const n = canonicalizeEraInCalendar(e, t)
|
|
1649
|
-
return !1 ===
|
|
1641
|
+
const n = yt[e].get(canonicalizeEraInCalendar(e, t));
|
|
1642
|
+
return !1 === n ? 1 - o : n + o - 1;
|
|
1650
1643
|
})(e, canonicalizeEraInCalendar(e, n), r);
|
|
1651
|
-
void 0 !== a && a !== o && throwRangeError("mismatch of `year`, `era` and `eraYear`"), t[
|
|
1644
|
+
void 0 !== a && a !== o && throwRangeError("mismatch of `year`, `era` and `eraYear`"), t[wt.t] = o;
|
|
1652
1645
|
}
|
|
1653
|
-
if (t[
|
|
1646
|
+
if (t[wt.ne] = t[wt.re] = void 0, isIsoLikeCalendar(e)) isoResolveFields(t, o);
|
|
1654
1647
|
else if (i) {
|
|
1655
1648
|
const o = parseMonthCode(i);
|
|
1656
1649
|
((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));
|
|
1657
|
-
const n = t[
|
|
1650
|
+
const n = t[wt.t];
|
|
1658
1651
|
if (void 0 !== n) {
|
|
1659
1652
|
const r = monthCodeToOrdinal(e, n, constrainMonthCode(e, n, o, _));
|
|
1660
|
-
void 0 !== c && c !== r && throwRangeError(C), t[
|
|
1653
|
+
void 0 !== c && c !== r && throwRangeError(C), t[wt.u] = r;
|
|
1661
1654
|
}
|
|
1662
1655
|
}
|
|
1663
1656
|
})(e, t, o);
|
|
@@ -1702,7 +1695,7 @@ function combineDateAndTimeDuration(e, t) {
|
|
|
1702
1695
|
};
|
|
1703
1696
|
}
|
|
1704
1697
|
function toTemporalDuration(e) {
|
|
1705
|
-
return
|
|
1698
|
+
return Mt.get(e) || (isObject(e) ? createTemporalDurationSlot(toTemporalPartialDurationRecord(e).map((e) => e || 0)) : (validateString(e), ((e) => {
|
|
1706
1699
|
const t = e.match(/^([+-]?)p(?:(\d+)y)?(?:(\d+)m)?(?:(\d+)w)?(?:(\d+)d)?(?:t(?:(\d+)(?:[.,](\d{1,9}))?h)?(?:(\d+)(?:[.,](\d{1,9}))?m)?(?:(\d+)(?:[.,](\d{1,9}))?s)?)?$/i);
|
|
1707
1700
|
t && !/[pt]$|[.,](\d{1,9})[hms]./i.test(e) || throwRangeError(parseError(e));
|
|
1708
1701
|
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")));
|
|
@@ -1727,7 +1720,7 @@ function dateDurationSign(e) {
|
|
|
1727
1720
|
return sign(e.te || e.oe || e.ee || e.X);
|
|
1728
1721
|
}
|
|
1729
1722
|
function internalDurationSign(e) {
|
|
1730
|
-
return dateDurationSign(e.A) ||
|
|
1723
|
+
return dateDurationSign(e.A) || bt(e.p);
|
|
1731
1724
|
}
|
|
1732
1725
|
function validateDuration(...e) {
|
|
1733
1726
|
e.some((e) => e < 0) && e.some((e) => e > 0) && throwRangeError("invalid duration"), (e.some((e) => Math.abs(e) > 1e25) || [
|
|
@@ -1769,8 +1762,8 @@ function toTemporalPartialDurationRecord(e) {
|
|
|
1769
1762
|
function createTemporalDurationSlot(e) {
|
|
1770
1763
|
return validateDuration(...e), e;
|
|
1771
1764
|
}
|
|
1772
|
-
function createTemporalDuration(e, t = Object.create(
|
|
1773
|
-
return
|
|
1765
|
+
function createTemporalDuration(e, t = Object.create(Pt.prototype)) {
|
|
1766
|
+
return Mt.set(t, e), t;
|
|
1774
1767
|
}
|
|
1775
1768
|
function timeDurationFromComponents(e, t, o, n, r, a) {
|
|
1776
1769
|
return addTimeDuration(addTimeDuration(addTimeDuration(createTimeDurationFromUnit(3600 * e + 60 * t + o, 1e9), createTimeDurationFromUnit(n, 1e6)), createTimeDurationFromUnit(r, 1e3)), createTimeDurationFromUnit(a, 1));
|
|
@@ -1821,7 +1814,7 @@ function nudgeToCalendarUnit(e, t, o, n, r, a, i, c, s, l) {
|
|
|
1821
1814
|
compareEpochNanoseconds(m.ge, n) * compareEpochNanoseconds(m.fe, n) > 0 && (m = computeNudgeWindow(e, t, o, r, a, i, c, s, !0), d = !0);
|
|
1822
1815
|
const u = differenceEpochNanoseconds(m.ge, n), T = differenceEpochNanoseconds(m.ge, m.fe);
|
|
1823
1816
|
let D = m.Ie, h = m.ge;
|
|
1824
|
-
return roundNumberToIncrement(m.he + ((e, t, o) => signTimeDuration(e) ? Ee(e, t) ? Ee(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), {
|
|
1817
|
+
return roundNumberToIncrement(m.he + ((e, t, o) => signTimeDuration(e) ? Ee(e, t) ? Ee(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), signTimeDuration(T) || throwRangeError("internal error"), {
|
|
1825
1818
|
Fe: {
|
|
1826
1819
|
ye: combineDateAndTimeDuration(D, ve),
|
|
1827
1820
|
Se: h,
|
|
@@ -1836,7 +1829,7 @@ function roundRelativeDuration(e, t, o, n, r, a, i, c, s, m) {
|
|
|
1836
1829
|
let h = roundTimeDurationToIncrement(t.p, a * D, c);
|
|
1837
1830
|
const p = addTimeDuration(h, negateTimeDuration(T));
|
|
1838
1831
|
let g = !1, f = 0;
|
|
1839
|
-
return
|
|
1832
|
+
return bt(p) !== -e && (g = !0, f = e, h = roundTimeDurationToIncrement(p, a * D, c)), {
|
|
1840
1833
|
ye: combineDateAndTimeDuration(adjustDateDurationRecord(t.A, t.A.X + f), h),
|
|
1841
1834
|
Se: addTimeDurationToEpochNanoseconds(u, h),
|
|
1842
1835
|
we: g
|
|
@@ -1846,7 +1839,7 @@ function roundRelativeDuration(e, t, o, n, r, a, i, c, s, m) {
|
|
|
1846
1839
|
return {
|
|
1847
1840
|
ye: combineDateAndTimeDuration(adjustDateDurationRecord(e.A, isDateUnit(o) ? s : 0), isDateUnit(o) ? addTimeDuration(c, timeDurationFromComponents(24 * -s, 0, 0, 0, 0, 0)) : c),
|
|
1848
1841
|
Se: addTimeDurationToEpochNanoseconds(t, addTimeDuration(c, negateTimeDuration(i))),
|
|
1849
|
-
we: sign(s - i[0]) ===
|
|
1842
|
+
we: sign(s - i[0]) === bt(i)
|
|
1850
1843
|
};
|
|
1851
1844
|
})(e, o, i, c, s, m);
|
|
1852
1845
|
return T.we && s !== l ? ((e, t, o, n, r, a, i, c) => {
|
|
@@ -1856,7 +1849,7 @@ function roundRelativeDuration(e, t, o, n, r, a, i, c, s, m) {
|
|
|
1856
1849
|
for (let m = c - 1; m >= s; m--) if (m !== g || i === l) {
|
|
1857
1850
|
d = m === h ? createDateDurationRecord(t.A.te + e, 0, 0, 0) : m === p ? adjustDateDurationRecord(t.A, 0, 0, t.A.oe + e) : adjustDateDurationRecord(t.A, 0, t.A.ee + e);
|
|
1858
1851
|
const i = combineIsoDateAndTimeRecord(calendarDateAdd(a, n.o, d, _), n.p), c = r ? getEpochNanosecondsFor(r, i, G) : getUtcEpochNanoseconds(i);
|
|
1859
|
-
if (
|
|
1852
|
+
if (bt(differenceEpochNanoseconds(c, o)) === -e) break;
|
|
1860
1853
|
t = combineDateAndTimeDuration(d, ve);
|
|
1861
1854
|
}
|
|
1862
1855
|
return t;
|
|
@@ -1873,7 +1866,7 @@ function temporalDurationToString(e, t) {
|
|
|
1873
1866
|
"D",
|
|
1874
1867
|
"H",
|
|
1875
1868
|
"M"
|
|
1876
|
-
].map((t, o) => e[o] ? `${e[o]}${t}` : ""), h = `${u}${D}${
|
|
1869
|
+
].map((t, o) => e[o] ? `${e[o]}${t}` : ""), h = `${u}${D}${bt(n) || defaultTemporalLargestUnit(e) >= T || void 0 !== t ? `${toString(r)}${formatFractionalSeconds(1e6 * a + 1e3 * i + c, t)}S` : ""}`;
|
|
1877
1870
|
return `${o < 0 ? "-" : ""}P${s}${l}${d}${m}${h && `T${h}`}`;
|
|
1878
1871
|
}
|
|
1879
1872
|
function addDurations(e, t, o) {
|
|
@@ -1881,7 +1874,7 @@ function addDurations(e, t, o) {
|
|
|
1881
1874
|
return isCalendarUnit(r) && throwRangeError(durationWithDateUnit(r)), createTemporalDuration(temporalDurationFromInternal(combineDateAndTimeDuration(zeroDateDuration(), addTimeDuration(toInternalDurationRecordWith24HourDays(t).p, toInternalDurationRecordWith24HourDays(n).p)), r));
|
|
1882
1875
|
}
|
|
1883
1876
|
function getInternalSlotOrThrowForDuration(e) {
|
|
1884
|
-
return getInternalSlotOrThrow(
|
|
1877
|
+
return getInternalSlotOrThrow(Mt, e);
|
|
1885
1878
|
}
|
|
1886
1879
|
function applySignToDurationSlot(e, t) {
|
|
1887
1880
|
return createTemporalDurationSlot(e.map((e) => e * t + 0));
|
|
@@ -2012,18 +2005,18 @@ function getTemporalRelativeToOption(e) {
|
|
|
2012
2005
|
if (e) return createNullPrototypeObject({ Pe: getInternalSlotOrThrowForPlainDate(createTemporalDate(e.K.o, e.Y)) });
|
|
2013
2006
|
r = getTemporalCalendarIdentifierWithIsoDefault(t);
|
|
2014
2007
|
const c = prepareCalendarFields(r, t, [
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2008
|
+
wt.t,
|
|
2009
|
+
wt.u,
|
|
2010
|
+
wt.v,
|
|
2011
|
+
wt.T,
|
|
2012
|
+
wt.D,
|
|
2013
|
+
wt.I,
|
|
2014
|
+
wt.O,
|
|
2015
|
+
wt.F,
|
|
2016
|
+
wt.S,
|
|
2017
|
+
wt.$,
|
|
2018
|
+
wt.M,
|
|
2019
|
+
wt.P
|
|
2027
2020
|
], []), l = interpretTemporalDateTimeFields(r, c, _);
|
|
2028
2021
|
a = l.o, i = l.p, o = c.timeZone, n = c.offset, s = n ? te : ne;
|
|
2029
2022
|
} else {
|
|
@@ -2060,7 +2053,7 @@ function formatTimeString(e, t, o, n, r) {
|
|
|
2060
2053
|
return `${toZeroPaddedDecimalString(e, 2)}:${toZeroPaddedDecimalString(t, 2)}${r === J ? "" : `:${toZeroPaddedDecimalString(o, 2)}${formatFractionalSeconds(n, r)}`}`;
|
|
2061
2054
|
}
|
|
2062
2055
|
function roundNumberToIncrement(e, t, o) {
|
|
2063
|
-
return
|
|
2056
|
+
return Rt[o](e / t) * t;
|
|
2064
2057
|
}
|
|
2065
2058
|
function getRoundingModeOption(e, t) {
|
|
2066
2059
|
return getOption(e, "roundingMode", [
|
|
@@ -2082,9 +2075,9 @@ function getRoundingIncrementOption(e) {
|
|
|
2082
2075
|
function isoDateToFields(e, t, o) {
|
|
2083
2076
|
const n = calendarIsoToDate(e, t);
|
|
2084
2077
|
return createNullPrototypeObject({
|
|
2085
|
-
[
|
|
2086
|
-
[
|
|
2087
|
-
[
|
|
2078
|
+
[wt.t]: o === q ? void 0 : n.t,
|
|
2079
|
+
[wt.v]: n.v,
|
|
2080
|
+
[wt.T]: o === H ? void 0 : n.T
|
|
2088
2081
|
});
|
|
2089
2082
|
}
|
|
2090
2083
|
function getDifferenceSettings(e, t, o, n, r, a) {
|
|
@@ -2111,16 +2104,16 @@ function epochDaysToIsoDate(e) {
|
|
|
2111
2104
|
function isoDateTimeToFields(e, t) {
|
|
2112
2105
|
return createNullPrototypeObject({
|
|
2113
2106
|
...isoDateToFields(e, t.o, z),
|
|
2114
|
-
[
|
|
2115
|
-
[
|
|
2116
|
-
[
|
|
2117
|
-
[
|
|
2118
|
-
[
|
|
2119
|
-
[
|
|
2107
|
+
[wt.D]: t.p.D,
|
|
2108
|
+
[wt.I]: t.p.I,
|
|
2109
|
+
[wt.O]: t.p.O,
|
|
2110
|
+
[wt.F]: t.p.F,
|
|
2111
|
+
[wt.S]: t.p.S,
|
|
2112
|
+
[wt.$]: t.p.$
|
|
2120
2113
|
});
|
|
2121
2114
|
}
|
|
2122
2115
|
function getInternalSlotOrThrowForDateTimeFormat(e) {
|
|
2123
|
-
return getInternalSlotOrThrow(
|
|
2116
|
+
return getInternalSlotOrThrow($t, e);
|
|
2124
2117
|
}
|
|
2125
2118
|
function formatDateTime(e, t) {
|
|
2126
2119
|
const [o, n] = handleDateTimeValue(e, t);
|
|
@@ -2134,19 +2127,19 @@ function dateStyleToMonthStyle(e) {
|
|
|
2134
2127
|
}
|
|
2135
2128
|
function amendOptionsForPlainDate(e) {
|
|
2136
2129
|
const t = createNullPrototypeObject(e);
|
|
2137
|
-
return hasAnyOptions(e,
|
|
2130
|
+
return hasAnyOptions(e, Ct) || (hasAnyOptions(e, Yt) && throwTypeError(N), t.year = t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [...Yt, "timeZoneName"]), t.timeZone = "UTC", t;
|
|
2138
2131
|
}
|
|
2139
2132
|
function amendOptionsForPlainTime(e) {
|
|
2140
2133
|
const t = createNullPrototypeObject(e);
|
|
2141
|
-
return hasAnyOptions(e,
|
|
2142
|
-
|
|
2134
|
+
return hasAnyOptions(e, Yt) || (hasAnyOptions(e, Ct) && throwTypeError(N), t.hour = t.minute = t.second = "numeric"), "long" !== e.timeStyle && "full" !== e.timeStyle || (removeDateTimeFormatOptions(t, ["timeStyle"]), t.hour = t.minute = t.second = "numeric"), removeDateTimeFormatOptions(t, [
|
|
2135
|
+
...Ct,
|
|
2143
2136
|
"era",
|
|
2144
2137
|
"timeZoneName"
|
|
2145
2138
|
]), t.timeZone = "UTC", t;
|
|
2146
2139
|
}
|
|
2147
2140
|
function amendOptionsForPlainDateTime(e) {
|
|
2148
2141
|
const t = createNullPrototypeObject(e);
|
|
2149
|
-
return "long" !== e.timeStyle && "full" !== e.timeStyle || (removeDateTimeFormatOptions(t, ["timeStyle"]), t.hour = t.minute = t.second = "numeric", e.dateStyle && (removeDateTimeFormatOptions(t, ["dateStyle"]), t.year = t.day = "numeric", t.month = dateStyleToMonthStyle(e.dateStyle), t.weekday = "full" === e.dateStyle ? "long" : void 0)), hasAnyOptions(e, [
|
|
2142
|
+
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, [...Ct, ...Yt]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), removeDateTimeFormatOptions(t, ["timeZoneName"]), t.timeZone = "UTC", t;
|
|
2150
2143
|
}
|
|
2151
2144
|
function amendOptionsForPlainYearMonth(e) {
|
|
2152
2145
|
const t = createNullPrototypeObject(e);
|
|
@@ -2154,8 +2147,8 @@ function amendOptionsForPlainYearMonth(e) {
|
|
|
2154
2147
|
"year",
|
|
2155
2148
|
"month",
|
|
2156
2149
|
"dateStyle"
|
|
2157
|
-
]) || (hasAnyOptions(e, [
|
|
2158
|
-
...
|
|
2150
|
+
]) || (hasAnyOptions(e, [...Ct, ...Yt]) && throwTypeError(N), t.year = t.month = "numeric"), removeDateTimeFormatOptions(t, [
|
|
2151
|
+
...Yt,
|
|
2159
2152
|
"day",
|
|
2160
2153
|
"weekday",
|
|
2161
2154
|
"timeZoneName"
|
|
@@ -2167,8 +2160,8 @@ function amendOptionsForPlainMonthDay(e) {
|
|
|
2167
2160
|
"month",
|
|
2168
2161
|
"day",
|
|
2169
2162
|
"dateStyle"
|
|
2170
|
-
]) || (hasAnyOptions(e, [
|
|
2171
|
-
...
|
|
2163
|
+
]) || (hasAnyOptions(e, [...Ct, ...Yt]) && throwTypeError(N), t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [
|
|
2164
|
+
...Yt,
|
|
2172
2165
|
"era",
|
|
2173
2166
|
"year",
|
|
2174
2167
|
"weekday",
|
|
@@ -2177,7 +2170,7 @@ function amendOptionsForPlainMonthDay(e) {
|
|
|
2177
2170
|
}
|
|
2178
2171
|
function amendOptionsForInstant(e) {
|
|
2179
2172
|
const t = createNullPrototypeObject(e);
|
|
2180
|
-
return hasAnyOptions(e, [
|
|
2173
|
+
return hasAnyOptions(e, [...Ct, ...Yt]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), t;
|
|
2181
2174
|
}
|
|
2182
2175
|
function hasAnyOptions(e, t) {
|
|
2183
2176
|
return t.some((t) => void 0 !== e[t]);
|
|
@@ -2185,15 +2178,15 @@ function hasAnyOptions(e, t) {
|
|
|
2185
2178
|
function createDateTimeFormat(e, t = createNullPrototypeObject(), o, n) {
|
|
2186
2179
|
null === t && throwTypeError(N);
|
|
2187
2180
|
const r = createNullPrototypeObject();
|
|
2188
|
-
let a = new
|
|
2181
|
+
let a = new Zt(e, new Proxy({}, { get(e, o) {
|
|
2189
2182
|
const a = t[o];
|
|
2190
2183
|
return "timeZone" === o && void 0 !== n ? (void 0 !== a && throwTypeError("disallowed field: timeZone"), r[o] = n) : void 0 === a ? a : r[o] = "hour12" === o ? ((e) => !!e)(a) : "fractionalSecondDigits" === o ? Se(a) : toString(a);
|
|
2191
2184
|
} }));
|
|
2192
2185
|
return (o === z && r.timeStyle || o === V && r.dateStyle) && throwTypeError(N), r.calendar = a.resolvedOptions().calendar, void 0 === n || hasAnyOptions(r, [
|
|
2193
|
-
...$t,
|
|
2194
2186
|
...Ct,
|
|
2187
|
+
...Yt,
|
|
2195
2188
|
"timeZoneName"
|
|
2196
|
-
]) || (r.timeZoneName = "short", a = new
|
|
2189
|
+
]) || (r.timeZoneName = "short", a = new Zt(a.resolvedOptions().locale, r)), createNullPrototypeObject({
|
|
2197
2190
|
Re: a,
|
|
2198
2191
|
Ne: r,
|
|
2199
2192
|
Ze: a.resolvedOptions().locale
|
|
@@ -2215,7 +2208,7 @@ function toDateTimeFormattable(e) {
|
|
|
2215
2208
|
}
|
|
2216
2209
|
function handleDateTimeValue(e, t) {
|
|
2217
2210
|
const o = getInternalSlotForPlainDate(t), n = getInternalSlotForPlainDateTime(t), r = getInternalSlotForPlainYearMonth(t), a = getInternalSlotForPlainMonthDay(t);
|
|
2218
|
-
return isPlainTime(t) ? [e.Ye ||= new
|
|
2211
|
+
return isPlainTime(t) ? [e.Ye ||= new Zt(e.Ze, amendOptionsForPlainTime(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(createIsoDateRecord(1970, 1, 1), getInternalSlotOrThrowForPlainTime(t))))] : o ? (o.Y !== e.Ne.calendar && "iso8601" !== o.Y && throwRangeError(Z), [e.Ce ||= new Zt(e.Ze, amendOptionsForPlainDate(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(o.o, midnightTimeRecord())))]) : n ? (n.Y !== e.Ne.calendar && "iso8601" !== n.Y && throwRangeError(Z), [e.Ue ||= new Zt(e.Ze, amendOptionsForPlainDateTime(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(n.K))]) : r ? (r.Y !== e.Ne.calendar && throwRangeError(Z), [e.je ||= new Zt(e.Ze, amendOptionsForPlainYearMonth(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(r.o, midnightTimeRecord())))]) : a ? (a.Y !== e.Ne.calendar && throwRangeError(Z), [e.We ||= new Zt(e.Ze, amendOptionsForPlainMonthDay(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(a.o, midnightTimeRecord())))]) : isInstant(t) ? [e.ke ||= new Zt(e.Ze, amendOptionsForInstant(e.Ne)), epochMilliseconds(getInternalSlotOrThrowForInstant(t).U)] : (isZonedDateTime(t) && throwTypeError(Y), [e.Re, t]);
|
|
2219
2212
|
}
|
|
2220
2213
|
function DateTimeFormat(e, t) {
|
|
2221
2214
|
return new Ut(e, t);
|
|
@@ -2242,7 +2235,7 @@ function differenceInstant(e, t, o, n, r) {
|
|
|
2242
2235
|
}
|
|
2243
2236
|
function roundTemporalInstant(e, t, o, n) {
|
|
2244
2237
|
return (function(e, t, o) {
|
|
2245
|
-
return normalizeEpochNanoseconds(e[0], ((e, t, o) =>
|
|
2238
|
+
return normalizeEpochNanoseconds(e[0], ((e, t, o) => Nt[o](e / t) * t)(e[1], t, o));
|
|
2246
2239
|
})(e, t * nanosecondsForTimeUnit(o), n);
|
|
2247
2240
|
}
|
|
2248
2241
|
function temporalInstantToString(e, t, o) {
|
|
@@ -2270,7 +2263,7 @@ function clampEpochNanoseconds(e) {
|
|
|
2270
2263
|
return compareEpochNanoseconds(e, we) > 0 ? we : compareEpochNanoseconds(e, ye) < 0 ? ye : e;
|
|
2271
2264
|
}
|
|
2272
2265
|
function systemTimeZoneIdentifier() {
|
|
2273
|
-
return Ht && qt + Ht > Date.now() && xt ? xt : (qt = Date.now(), xt = new
|
|
2266
|
+
return Ht && qt + Ht > Date.now() && xt ? xt : (qt = Date.now(), xt = new Zt().resolvedOptions().timeZone);
|
|
2274
2267
|
}
|
|
2275
2268
|
function setSystemTimeZoneIdCacheTtl(e) {
|
|
2276
2269
|
Ht = e, e || (xt = void 0, qt = -1 / 0);
|
|
@@ -2423,21 +2416,21 @@ var be = class {
|
|
|
2423
2416
|
validatePartialTemporalObject(e);
|
|
2424
2417
|
const n = getOffsetNanosecondsForZonedDateTimeSlot(o), r = getIsoDateTimeForZonedDateTimeSlot(o), a = calendarMergeFields(o.Y, createNullPrototypeObject({
|
|
2425
2418
|
...isoDateTimeToFields(o.Y, r),
|
|
2426
|
-
[
|
|
2419
|
+
[wt.M]: formatUtcOffsetNanoseconds(n)
|
|
2427
2420
|
}), prepareCalendarFields(o.Y, e, [
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2421
|
+
wt.t,
|
|
2422
|
+
wt.u,
|
|
2423
|
+
wt.v,
|
|
2424
|
+
wt.T,
|
|
2425
|
+
wt.D,
|
|
2426
|
+
wt.I,
|
|
2427
|
+
wt.O,
|
|
2428
|
+
wt.F,
|
|
2429
|
+
wt.S,
|
|
2430
|
+
wt.$,
|
|
2431
|
+
wt.M
|
|
2439
2432
|
])), i = getOptionsObject(t), c = getTemporalDisambiguationOption(i), s = getTemporalOffsetOption(i, Q), l = getTemporalOverflowOption(i), d = interpretTemporalDateTimeFields(o.Y, a, l);
|
|
2440
|
-
return createTemporalZonedDateTime(interpretISODateTimeOffset(d.o, d.p, te, parseDateTimeUtcOffset(a[
|
|
2433
|
+
return createTemporalZonedDateTime(interpretISODateTimeOffset(d.o, d.p, te, parseDateTimeUtcOffset(a[wt.M]), o.P, c, s, !0), o.P, o.Y);
|
|
2441
2434
|
}
|
|
2442
2435
|
withPlainTime(e = void 0) {
|
|
2443
2436
|
const t = getInternalSlotOrThrowForZonedDateTime(this), o = getIsoDateTimeForZonedDateTimeSlot(t);
|
|
@@ -2506,9 +2499,8 @@ var be = class {
|
|
|
2506
2499
|
const t = getInternalSlotOrThrowForZonedDateTime(this);
|
|
2507
2500
|
void 0 === e && throwTypeError(W);
|
|
2508
2501
|
const o = getOption("string" == typeof e ? { direction: e } : getOptionsObject(e), "direction", ["next", "previous"], B), n = ((e, t, o) => {
|
|
2509
|
-
if ("UTC" === e || isOffsetTimeZoneIdentifier(e)) return null;
|
|
2510
2502
|
const n = -4e9, r = Math.floor((Date.now() + 31536e7) / 1e3), a = clamp(epochSeconds(addNanosecondsToEpochSeconds(t, o > 0 ? 0 : -1)), n, 1 / 0);
|
|
2511
|
-
return -1 === o ? a === n ? null : a > r ? searchTimeZoneTransition(e, a, a - 31536e3, o) || searchTimeZoneTransition(e, r, n, o) : searchTimeZoneTransition(e, a, n, o) : searchTimeZoneTransition(e, a, a
|
|
2503
|
+
return "UTC" === e || isOffsetTimeZoneIdentifier(e) ? null : -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, Math.max(a + 31536e3, r), o);
|
|
2512
2504
|
})(t.P, t.U, "next" === o ? 1 : -1);
|
|
2513
2505
|
return null === n ? null : createTemporalZonedDateTime(n, t.P, t.Y);
|
|
2514
2506
|
}
|
|
@@ -2623,16 +2615,16 @@ var $e = class {
|
|
|
2623
2615
|
const o = getInternalSlotOrThrowForPlainDateTime(this);
|
|
2624
2616
|
validatePartialTemporalObject(e);
|
|
2625
2617
|
const n = calendarMergeFields(o.Y, isoDateTimeToFields(o.Y, o.K), prepareCalendarFields(o.Y, e, [
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2618
|
+
wt.t,
|
|
2619
|
+
wt.u,
|
|
2620
|
+
wt.v,
|
|
2621
|
+
wt.T,
|
|
2622
|
+
wt.D,
|
|
2623
|
+
wt.I,
|
|
2624
|
+
wt.O,
|
|
2625
|
+
wt.F,
|
|
2626
|
+
wt.S,
|
|
2627
|
+
wt.$
|
|
2636
2628
|
]));
|
|
2637
2629
|
return createTemporalDateTime(interpretTemporalDateTimeFields(o.Y, n, getTemporalOverflowOption(getOptionsObject(t))), o.Y);
|
|
2638
2630
|
}
|
|
@@ -2818,10 +2810,10 @@ var mt = class {
|
|
|
2818
2810
|
with(e, t = void 0) {
|
|
2819
2811
|
const o = getInternalSlotOrThrowForPlainMonthDay(this);
|
|
2820
2812
|
return validatePartialTemporalObject(e), createTemporalMonthDay(calendarMonthDayFromFields(o.Y, calendarMergeFields(o.Y, isoDateToFields(o.Y, o.o, q), prepareCalendarFields(o.Y, e, [
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2813
|
+
wt.t,
|
|
2814
|
+
wt.u,
|
|
2815
|
+
wt.v,
|
|
2816
|
+
wt.T
|
|
2825
2817
|
])), getTemporalOverflowOption(getOptionsObject(t))), o.Y);
|
|
2826
2818
|
}
|
|
2827
2819
|
equals(e) {
|
|
@@ -2842,7 +2834,7 @@ var mt = class {
|
|
|
2842
2834
|
}
|
|
2843
2835
|
toPlainDate(e) {
|
|
2844
2836
|
const t = getInternalSlotOrThrowForPlainMonthDay(this);
|
|
2845
|
-
return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.Y, calendarMergeFields(t.Y, isoDateToFields(t.Y, t.o, q), prepareCalendarFields(t.Y, e, [
|
|
2837
|
+
return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.Y, calendarMergeFields(t.Y, isoDateToFields(t.Y, t.o, q), prepareCalendarFields(t.Y, e, [wt.t], [])), _), t.Y);
|
|
2846
2838
|
}
|
|
2847
2839
|
};
|
|
2848
2840
|
defineStringTag(mt.prototype, "Temporal.PlainMonthDay"), renameFunction(mt, "PlainMonthDay");
|
|
@@ -2894,9 +2886,9 @@ var Tt = class {
|
|
|
2894
2886
|
const o = getInternalSlotOrThrowForPlainYearMonth(this);
|
|
2895
2887
|
validatePartialTemporalObject(e);
|
|
2896
2888
|
const n = calendarMergeFields(o.Y, isoDateToFields(o.Y, o.o, H), prepareCalendarFields(o.Y, e, [
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2889
|
+
wt.t,
|
|
2890
|
+
wt.u,
|
|
2891
|
+
wt.v
|
|
2900
2892
|
]));
|
|
2901
2893
|
return createTemporalYearMonth(calendarYearMonthFromFields(o.Y, n, getTemporalOverflowOption(getOptionsObject(t))), o.Y);
|
|
2902
2894
|
}
|
|
@@ -2930,7 +2922,7 @@ var Tt = class {
|
|
|
2930
2922
|
}
|
|
2931
2923
|
toPlainDate(e) {
|
|
2932
2924
|
const t = getInternalSlotOrThrowForPlainYearMonth(this);
|
|
2933
|
-
return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.Y, calendarMergeFields(t.Y, isoDateToFields(t.Y, t.o, H), prepareCalendarFields(t.Y, e, [
|
|
2925
|
+
return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.Y, calendarMergeFields(t.Y, isoDateToFields(t.Y, t.o, H), prepareCalendarFields(t.Y, e, [wt.T], [])), _), t.Y);
|
|
2934
2926
|
}
|
|
2935
2927
|
};
|
|
2936
2928
|
defineStringTag(Tt.prototype, "Temporal.PlainYearMonth"), renameFunction(Tt, "PlainYearMonth");
|
|
@@ -3014,10 +3006,10 @@ var ht = class {
|
|
|
3014
3006
|
const o = getInternalSlotOrThrowForPlainDate(this);
|
|
3015
3007
|
validatePartialTemporalObject(e);
|
|
3016
3008
|
const n = calendarMergeFields(o.Y, isoDateToFields(o.Y, o.o, z), prepareCalendarFields(o.Y, e, [
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3009
|
+
wt.t,
|
|
3010
|
+
wt.u,
|
|
3011
|
+
wt.v,
|
|
3012
|
+
wt.T
|
|
3021
3013
|
])), r = getTemporalOverflowOption(getOptionsObject(t));
|
|
3022
3014
|
return createTemporalDate(calendarDateFromFields(o.Y, n, r), o.Y);
|
|
3023
3015
|
}
|
|
@@ -3067,12 +3059,12 @@ const pt = createNullPrototypeObject(), gt = {
|
|
|
3067
3059
|
}, ft = {
|
|
3068
3060
|
chinese: createLruCache(1e4),
|
|
3069
3061
|
dangi: createLruCache(1e4)
|
|
3070
|
-
}, It = createLruCache(5e3), Ot = createLruCache(1e3), Ft = /* @__PURE__ */ new Map([["ah", 1], ["bh", !1]]), St = createNullPrototypeObject({
|
|
3071
|
-
iso8601:
|
|
3062
|
+
}, It = createLruCache(5e3), Ot = createLruCache(1e3), Ft = /* @__PURE__ */ new Map([["ah", 1], ["bh", !1]]), St = /* @__PURE__ */ new Map(), yt = createNullPrototypeObject({
|
|
3063
|
+
iso8601: St,
|
|
3072
3064
|
buddhist: /* @__PURE__ */ new Map([["be", 1]]),
|
|
3073
|
-
chinese:
|
|
3065
|
+
chinese: St,
|
|
3074
3066
|
coptic: /* @__PURE__ */ new Map([["am", 1]]),
|
|
3075
|
-
dangi:
|
|
3067
|
+
dangi: St,
|
|
3076
3068
|
ethioaa: /* @__PURE__ */ new Map([["aa", 1]]),
|
|
3077
3069
|
ethiopic: /* @__PURE__ */ new Map([["am", 1], ["aa", -5499]]),
|
|
3078
3070
|
gregory: /* @__PURE__ */ new Map([["ce", 1], ["bce", !1]]),
|
|
@@ -3092,7 +3084,7 @@ const pt = createNullPrototypeObject(), gt = {
|
|
|
3092
3084
|
]),
|
|
3093
3085
|
persian: /* @__PURE__ */ new Map([["ap", 1]]),
|
|
3094
3086
|
roc: /* @__PURE__ */ new Map([["roc", 1], ["broc", !1]])
|
|
3095
|
-
}),
|
|
3087
|
+
}), wt = {
|
|
3096
3088
|
ne: "era",
|
|
3097
3089
|
re: "eraYear",
|
|
3098
3090
|
t: "year",
|
|
@@ -3107,41 +3099,41 @@ const pt = createNullPrototypeObject(), gt = {
|
|
|
3107
3099
|
$: "nanosecond",
|
|
3108
3100
|
M: "offset",
|
|
3109
3101
|
P: "timeZone"
|
|
3110
|
-
},
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
],
|
|
3126
|
-
[
|
|
3127
|
-
[
|
|
3128
|
-
[
|
|
3129
|
-
[
|
|
3130
|
-
[
|
|
3131
|
-
[
|
|
3132
|
-
[
|
|
3133
|
-
[
|
|
3134
|
-
[
|
|
3135
|
-
[
|
|
3136
|
-
[
|
|
3137
|
-
[
|
|
3138
|
-
[
|
|
3102
|
+
}, vt = [
|
|
3103
|
+
wt.ne,
|
|
3104
|
+
wt.re,
|
|
3105
|
+
wt.t,
|
|
3106
|
+
wt.u,
|
|
3107
|
+
wt.v,
|
|
3108
|
+
wt.T,
|
|
3109
|
+
wt.D,
|
|
3110
|
+
wt.I,
|
|
3111
|
+
wt.O,
|
|
3112
|
+
wt.F,
|
|
3113
|
+
wt.S,
|
|
3114
|
+
wt.$,
|
|
3115
|
+
wt.M,
|
|
3116
|
+
wt.P
|
|
3117
|
+
], Et = {
|
|
3118
|
+
[wt.ne]: [toString],
|
|
3119
|
+
[wt.re]: [toIntegerWithTruncation],
|
|
3120
|
+
[wt.t]: [toIntegerWithTruncation],
|
|
3121
|
+
[wt.u]: [toPositiveIntegerWithTruncation],
|
|
3122
|
+
[wt.v]: [(e) => createMonthCode(...parseMonthCode(e))],
|
|
3123
|
+
[wt.T]: [toPositiveIntegerWithTruncation],
|
|
3124
|
+
[wt.D]: [toIntegerWithTruncation, 0],
|
|
3125
|
+
[wt.I]: [toIntegerWithTruncation, 0],
|
|
3126
|
+
[wt.O]: [toIntegerWithTruncation, 0],
|
|
3127
|
+
[wt.F]: [toIntegerWithTruncation, 0],
|
|
3128
|
+
[wt.S]: [toIntegerWithTruncation, 0],
|
|
3129
|
+
[wt.$]: [toIntegerWithTruncation, 0],
|
|
3130
|
+
[wt.M]: [(e) => {
|
|
3139
3131
|
const t = toPrimitive(e);
|
|
3140
3132
|
return validateString(t), parseDateTimeUtcOffset(t), t;
|
|
3141
3133
|
}],
|
|
3142
|
-
[
|
|
3143
|
-
},
|
|
3144
|
-
var
|
|
3134
|
+
[wt.P]: [toTemporalTimeZoneIdentifier]
|
|
3135
|
+
}, Mt = /* @__PURE__ */ new WeakMap(), bt = signTimeDuration;
|
|
3136
|
+
var Pt = class {
|
|
3145
3137
|
constructor(e = 0, t = 0, o = 0, n = 0, r = 0, a = 0, i = 0, c = 0, s = 0, l = 0) {
|
|
3146
3138
|
createTemporalDuration(createTemporalDurationSlot([
|
|
3147
3139
|
e,
|
|
@@ -3263,8 +3255,8 @@ var bt = class {
|
|
|
3263
3255
|
throwTypeError(j);
|
|
3264
3256
|
}
|
|
3265
3257
|
};
|
|
3266
|
-
defineStringTag(
|
|
3267
|
-
const
|
|
3258
|
+
defineStringTag(Pt.prototype, "Temporal.Duration"), renameFunction(Pt, "Duration");
|
|
3259
|
+
const Rt = {
|
|
3268
3260
|
[re]: Math.ceil,
|
|
3269
3261
|
[ae]: Math.floor,
|
|
3270
3262
|
[ie]: roundExpand,
|
|
@@ -3274,7 +3266,7 @@ const Pt = {
|
|
|
3274
3266
|
[de]: (e) => (isIntegerAndHalf(e) ? roundExpand(e) : Math.round(e)) + 0,
|
|
3275
3267
|
[me]: (e) => (isIntegerAndHalf(e) ? Math.trunc(e) : Math.round(e)) + 0,
|
|
3276
3268
|
[ue]: roundHalfEven
|
|
3277
|
-
},
|
|
3269
|
+
}, Nt = {
|
|
3278
3270
|
[re]: Math.ceil,
|
|
3279
3271
|
[ae]: Math.floor,
|
|
3280
3272
|
[ie]: Math.ceil,
|
|
@@ -3284,13 +3276,13 @@ const Pt = {
|
|
|
3284
3276
|
[de]: roundHalfCeil,
|
|
3285
3277
|
[me]: roundHalfFloor,
|
|
3286
3278
|
[ue]: roundHalfEven
|
|
3287
|
-
},
|
|
3279
|
+
}, Zt = globalThis.Intl.DateTimeFormat, $t = /* @__PURE__ */ new WeakMap(), Ct = [
|
|
3288
3280
|
"year",
|
|
3289
3281
|
"month",
|
|
3290
3282
|
"day",
|
|
3291
3283
|
"weekday",
|
|
3292
3284
|
"dateStyle"
|
|
3293
|
-
],
|
|
3285
|
+
], Yt = [
|
|
3294
3286
|
"hour",
|
|
3295
3287
|
"minute",
|
|
3296
3288
|
"second",
|
|
@@ -3298,16 +3290,14 @@ const Pt = {
|
|
|
3298
3290
|
"dayPeriod",
|
|
3299
3291
|
"timeStyle"
|
|
3300
3292
|
];
|
|
3301
|
-
var
|
|
3302
|
-
Le(e) {
|
|
3303
|
-
return formatDateTime(getInternalSlotOrThrowForDateTimeFormat(this), e);
|
|
3304
|
-
}
|
|
3305
|
-
}, Ut = class {
|
|
3293
|
+
var Ut = class {
|
|
3306
3294
|
constructor(e, t) {
|
|
3307
|
-
|
|
3295
|
+
$t.set(this, createDateTimeFormat(e, t, x, void 0));
|
|
3308
3296
|
}
|
|
3309
3297
|
get format() {
|
|
3310
|
-
return Object.defineProperty(getInternalSlotOrThrowForDateTimeFormat(this).
|
|
3298
|
+
return Object.defineProperty(getInternalSlotOrThrowForDateTimeFormat(this).Le ||= { ze(e) {
|
|
3299
|
+
return formatDateTime(getInternalSlotOrThrowForDateTimeFormat(this), e);
|
|
3300
|
+
} }.ze.bind(this), "name", { value: "" });
|
|
3311
3301
|
}
|
|
3312
3302
|
formatToParts(e) {
|
|
3313
3303
|
return ((e, t) => {
|
|
@@ -3333,9 +3323,9 @@ var Yt = class {
|
|
|
3333
3323
|
return getInternalSlotOrThrowForDateTimeFormat(this).Re.resolvedOptions();
|
|
3334
3324
|
}
|
|
3335
3325
|
};
|
|
3336
|
-
const jt = Object.getOwnPropertyDescriptors(
|
|
3326
|
+
const jt = Object.getOwnPropertyDescriptors(Zt), Wt = Ut.prototype;
|
|
3337
3327
|
jt.prototype.value = Wt;
|
|
3338
|
-
for (const e of ["formatRange", "formatRangeToParts"])
|
|
3328
|
+
for (const e of ["formatRange", "formatRangeToParts"]) Zt.prototype[e] || delete Wt[e];
|
|
3339
3329
|
Object.defineProperties(DateTimeFormat, jt), DateTimeFormat.prototype.constructor = DateTimeFormat, defineStringTag(DateTimeFormat.prototype, "Intl.DateTimeFormat");
|
|
3340
3330
|
const At = /* @__PURE__ */ new WeakMap();
|
|
3341
3331
|
var Lt = class {
|
|
@@ -3399,12 +3389,10 @@ var Lt = class {
|
|
|
3399
3389
|
}
|
|
3400
3390
|
};
|
|
3401
3391
|
defineStringTag(Lt.prototype, "Temporal.Instant"), renameFunction(Lt, "Instant");
|
|
3402
|
-
const kt =
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
}
|
|
3407
|
-
}.prototype.toTemporalInstant, zt = {}, Vt = Object.getOwnPropertyDescriptors(globalThis.Intl);
|
|
3392
|
+
const kt = { toTemporalInstant() {
|
|
3393
|
+
const e = Date.prototype.valueOf.call(this);
|
|
3394
|
+
return e != e && throwRangeError("invalid date"), createTemporalInstant(createEpochNanosecondsFromEpochMilliseconds(e));
|
|
3395
|
+
} }.toTemporalInstant, zt = {}, Vt = Object.getOwnPropertyDescriptors(globalThis.Intl);
|
|
3408
3396
|
Vt.DateTimeFormat.value = DateTimeFormat, Vt.DurationFormat && (Vt.DurationFormat.value = k), Object.defineProperties(zt, Vt);
|
|
3409
3397
|
let xt, Ht = 0, qt = -1 / 0;
|
|
3410
3398
|
const Bt = {
|
|
@@ -3423,7 +3411,7 @@ const Jt = {
|
|
|
3423
3411
|
PlainTime: Ye,
|
|
3424
3412
|
PlainYearMonth: Tt,
|
|
3425
3413
|
PlainMonthDay: mt,
|
|
3426
|
-
Duration:
|
|
3414
|
+
Duration: Pt,
|
|
3427
3415
|
ZonedDateTime: be,
|
|
3428
3416
|
Now: Bt
|
|
3429
3417
|
};
|