@rikdotcodes/temporal-polyfill 0.3.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.
- package/LICENSE +21 -0
- package/README.md +214 -0
- package/chunks/classApi.cjs +587 -0
- package/chunks/classApi.js +582 -0
- package/chunks/internal.cjs +3076 -0
- package/chunks/internal.js +3280 -0
- package/global.cjs +11 -0
- package/global.d.cts +1 -0
- package/global.d.ts +1 -0
- package/global.esm.js +11 -0
- package/global.js +3422 -0
- package/global.min.js +1 -0
- package/impl.cjs +5 -0
- package/impl.d.cts +1 -0
- package/impl.d.ts +1 -0
- package/impl.js +1 -0
- package/index.cjs +5 -0
- package/index.d.cts +1 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/package.json +65 -0
|
@@ -0,0 +1,3280 @@
|
|
|
1
|
+
function clampProp(e, n, t, o, r) {
|
|
2
|
+
return clampEntity(n, ((e, n) => {
|
|
3
|
+
const t = e[n];
|
|
4
|
+
if (void 0 === t) {
|
|
5
|
+
throw new TypeError(missingField(n));
|
|
6
|
+
}
|
|
7
|
+
return t;
|
|
8
|
+
})(e, n), t, o, r);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
function clampEntity(e, n, t, o, r, i) {
|
|
12
|
+
const a = clampNumber(n, t, o);
|
|
13
|
+
if (r && n !== a) {
|
|
14
|
+
throw new RangeError(numberOutOfRange(e, n, t, o, i));
|
|
15
|
+
}
|
|
16
|
+
return a;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function s(e) {
|
|
20
|
+
return null !== e && /object|function/.test(typeof e);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function on(e, n = Map) {
|
|
24
|
+
const t = new n;
|
|
25
|
+
return (n, ...o) => {
|
|
26
|
+
if (t.has(n)) {
|
|
27
|
+
return t.get(n);
|
|
28
|
+
}
|
|
29
|
+
const r = e(n, ...o);
|
|
30
|
+
return t.set(n, r), r;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function r(e) {
|
|
35
|
+
return n({
|
|
36
|
+
name: e
|
|
37
|
+
}, 1);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function n(n, t) {
|
|
41
|
+
return e((e => ({
|
|
42
|
+
value: e,
|
|
43
|
+
configurable: 1,
|
|
44
|
+
writable: !t
|
|
45
|
+
})), n);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function t(n) {
|
|
49
|
+
return e((e => ({
|
|
50
|
+
get: e,
|
|
51
|
+
configurable: 1
|
|
52
|
+
})), n);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
function o(e) {
|
|
56
|
+
return {
|
|
57
|
+
[Symbol.toStringTag]: {
|
|
58
|
+
value: e,
|
|
59
|
+
configurable: 1
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function zipProps(e, n) {
|
|
65
|
+
const t = {};
|
|
66
|
+
let o = e.length;
|
|
67
|
+
for (const r of n) {
|
|
68
|
+
t[e[--o]] = r;
|
|
69
|
+
}
|
|
70
|
+
return t;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function e(e, n, t) {
|
|
74
|
+
const o = {};
|
|
75
|
+
for (const r in n) {
|
|
76
|
+
o[r] = e(n[r], r, t);
|
|
77
|
+
}
|
|
78
|
+
return o;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function g(e, n, t) {
|
|
82
|
+
const o = {};
|
|
83
|
+
for (let r = 0; r < n.length; r++) {
|
|
84
|
+
const i = n[r];
|
|
85
|
+
o[i] = e(i, r, t);
|
|
86
|
+
}
|
|
87
|
+
return o;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
function remapProps(e, n, t) {
|
|
91
|
+
const o = {};
|
|
92
|
+
for (let r = 0; r < e.length; r++) {
|
|
93
|
+
o[n[r]] = t[e[r]];
|
|
94
|
+
}
|
|
95
|
+
return o;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
function nn(e, n) {
|
|
99
|
+
const t = Object.create(null);
|
|
100
|
+
for (const o of e) {
|
|
101
|
+
t[o] = n[o];
|
|
102
|
+
}
|
|
103
|
+
return t;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
function hasAnyPropsByName(e, n) {
|
|
107
|
+
for (const t of n) {
|
|
108
|
+
if (t in e) {
|
|
109
|
+
return 1;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
return 0;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
function allPropsEqual(e, n, t) {
|
|
116
|
+
for (const o of e) {
|
|
117
|
+
if (n[o] !== t[o]) {
|
|
118
|
+
return 0;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
return 1;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
function zeroOutProps(e, n, t) {
|
|
125
|
+
const o = {
|
|
126
|
+
...t
|
|
127
|
+
};
|
|
128
|
+
for (let t = 0; t < n; t++) {
|
|
129
|
+
o[e[t]] = 0;
|
|
130
|
+
}
|
|
131
|
+
return o;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
function Pt(e, ...n) {
|
|
135
|
+
return (...t) => e(...n, ...t);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
function capitalize(e) {
|
|
139
|
+
return e[0].toUpperCase() + e.substring(1);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
function sortStrings(e) {
|
|
143
|
+
return e.slice().sort();
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
function padNumber(e, n) {
|
|
147
|
+
return String(n).padStart(e, "0");
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
function compareNumbers(e, n) {
|
|
151
|
+
return Math.sign(e - n);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
function clampNumber(e, n, t) {
|
|
155
|
+
return Math.min(Math.max(e, n), t);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
function divModFloor(e, n) {
|
|
159
|
+
return [ Math.floor(e / n), modFloor(e, n) ];
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
function modFloor(e, n) {
|
|
163
|
+
return (e % n + n) % n;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
function divModTrunc(e, n) {
|
|
167
|
+
return [ divTrunc(e, n), modTrunc(e, n) ];
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
function divTrunc(e, n) {
|
|
171
|
+
return Math.trunc(e / n) || 0;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
function modTrunc(e, n) {
|
|
175
|
+
return e % n || 0;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
function hasHalf(e) {
|
|
179
|
+
return .5 === Math.abs(e % 1);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
function givenFieldsToBigNano(e, n, t) {
|
|
183
|
+
let o = 0, r = 0;
|
|
184
|
+
for (let i = 0; i <= n; i++) {
|
|
185
|
+
const n = e[t[i]], a = Ao[i], s = Uo / a, [c, u] = divModTrunc(n, s);
|
|
186
|
+
o += u * a, r += c;
|
|
187
|
+
}
|
|
188
|
+
const [i, a] = divModTrunc(o, Uo);
|
|
189
|
+
return [ r + i, a ];
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
function nanoToGivenFields(e, n, t) {
|
|
193
|
+
const o = {};
|
|
194
|
+
for (let r = n; r >= 0; r--) {
|
|
195
|
+
const n = Ao[r];
|
|
196
|
+
o[t[r]] = divTrunc(e, n), e = modTrunc(e, n);
|
|
197
|
+
}
|
|
198
|
+
return o;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
function d(e) {
|
|
202
|
+
if (void 0 !== e) {
|
|
203
|
+
return m(e);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
function P(e) {
|
|
208
|
+
if (void 0 !== e) {
|
|
209
|
+
return h(e);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
function S(e) {
|
|
214
|
+
if (void 0 !== e) {
|
|
215
|
+
return T(e);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
function h(e) {
|
|
220
|
+
return requireNumberIsPositive(T(e));
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
function T(e) {
|
|
224
|
+
return ze(cr(e));
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
function requirePropDefined(e, n) {
|
|
228
|
+
if (null == n) {
|
|
229
|
+
throw new RangeError(missingField(e));
|
|
230
|
+
}
|
|
231
|
+
return n;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
function requireObjectLike(e) {
|
|
235
|
+
if (!s(e)) {
|
|
236
|
+
throw new TypeError(oo);
|
|
237
|
+
}
|
|
238
|
+
return e;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
function requireType(e, n, t = e) {
|
|
242
|
+
if (typeof n !== e) {
|
|
243
|
+
throw new TypeError(invalidEntity(t, n));
|
|
244
|
+
}
|
|
245
|
+
return n;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
function ze(e, n = "number") {
|
|
249
|
+
if (!Number.isInteger(e)) {
|
|
250
|
+
throw new RangeError(expectedInteger(n, e));
|
|
251
|
+
}
|
|
252
|
+
return e || 0;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
function requireNumberIsPositive(e, n = "number") {
|
|
256
|
+
if (e <= 0) {
|
|
257
|
+
throw new RangeError(expectedPositive(n, e));
|
|
258
|
+
}
|
|
259
|
+
return e;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
function toString(e) {
|
|
263
|
+
if ("symbol" == typeof e) {
|
|
264
|
+
throw new TypeError(no);
|
|
265
|
+
}
|
|
266
|
+
return String(e);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
function toStringViaPrimitive(e, n) {
|
|
270
|
+
return s(e) ? String(e) : m(e, n);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
function toBigInt(e) {
|
|
274
|
+
if ("string" == typeof e) {
|
|
275
|
+
return BigInt(e);
|
|
276
|
+
}
|
|
277
|
+
if ("bigint" != typeof e) {
|
|
278
|
+
throw new TypeError(invalidBigInt(e));
|
|
279
|
+
}
|
|
280
|
+
return e;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
function toNumber(e, n = "number") {
|
|
284
|
+
if ("bigint" == typeof e) {
|
|
285
|
+
throw new TypeError(forbiddenBigIntToNumber(n));
|
|
286
|
+
}
|
|
287
|
+
if (e = Number(e), !Number.isFinite(e)) {
|
|
288
|
+
throw new RangeError(expectedFinite(n, e));
|
|
289
|
+
}
|
|
290
|
+
return e;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
function toInteger(e, n) {
|
|
294
|
+
return Math.trunc(toNumber(e, n)) || 0;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
function toStrictInteger(e, n) {
|
|
298
|
+
return ze(toNumber(e, n), n);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
function toPositiveInteger(e, n) {
|
|
302
|
+
return requireNumberIsPositive(toInteger(e, n), n);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
function createBigNano(e, n) {
|
|
306
|
+
let [t, o] = divModTrunc(n, Uo), r = e + t;
|
|
307
|
+
const i = Math.sign(r);
|
|
308
|
+
return i && i === -Math.sign(o) && (r -= i, o += i * Uo), [ r, o ];
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
function addBigNanos(e, n, t = 1) {
|
|
312
|
+
return createBigNano(e[0] + n[0] * t, e[1] + n[1] * t);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
function moveBigNano(e, n) {
|
|
316
|
+
return createBigNano(e[0], e[1] + n);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
function diffBigNanos(e, n) {
|
|
320
|
+
return addBigNanos(n, e, -1);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
function compareBigNanos(e, n) {
|
|
324
|
+
return compareNumbers(e[0], n[0]) || compareNumbers(e[1], n[1]);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
function bigNanoOutside(e, n, t) {
|
|
328
|
+
return -1 === compareBigNanos(e, n) || 1 === compareBigNanos(e, t);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
function bigIntToBigNano(e, n = 1) {
|
|
332
|
+
const t = BigInt(Uo / n);
|
|
333
|
+
return [ Number(e / t), Number(e % t) * n ];
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
function Ge(e, n = 1) {
|
|
337
|
+
const t = Uo / n, [o, r] = divModTrunc(e, t);
|
|
338
|
+
return [ o, r * n ];
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
function bigNanoToNumber(e, n = 1, t) {
|
|
342
|
+
const [o, r] = e, [i, a] = divModTrunc(r, n);
|
|
343
|
+
return o * (Uo / n) + (i + (t ? a / n : 0));
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
function divModBigNano(e, n, t = divModFloor) {
|
|
347
|
+
const [o, r] = e, [i, a] = t(r, n);
|
|
348
|
+
return [ o * (Uo / n) + i, a ];
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
function checkIsoYearMonthInBounds(e) {
|
|
352
|
+
return clampProp(e, "isoYear", wr, Fr, 1), e.isoYear === wr ? clampProp(e, "isoMonth", 4, 12, 1) : e.isoYear === Fr && clampProp(e, "isoMonth", 1, 9, 1),
|
|
353
|
+
e;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
function checkIsoDateInBounds(e) {
|
|
357
|
+
return checkIsoDateTimeInBounds({
|
|
358
|
+
...e,
|
|
359
|
+
...Nt,
|
|
360
|
+
isoHour: 12
|
|
361
|
+
}), e;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
function checkIsoDateTimeInBounds(e) {
|
|
365
|
+
const n = clampProp(e, "isoYear", wr, Fr, 1), t = n === wr ? 1 : n === Fr ? -1 : 0;
|
|
366
|
+
return t && checkEpochNanoInBounds(isoToEpochNano({
|
|
367
|
+
...e,
|
|
368
|
+
isoDay: e.isoDay + t,
|
|
369
|
+
isoNanosecond: e.isoNanosecond - t
|
|
370
|
+
})), e;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
function checkEpochNanoInBounds(e) {
|
|
374
|
+
if (!e || bigNanoOutside(e, Sr, Er)) {
|
|
375
|
+
throw new RangeError(Io);
|
|
376
|
+
}
|
|
377
|
+
return e;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
function isoTimeFieldsToNano(e) {
|
|
381
|
+
return givenFieldsToBigNano(e, 5, w)[1];
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
function nanoToIsoTimeAndDay(e) {
|
|
385
|
+
const [n, t] = divModFloor(e, Uo);
|
|
386
|
+
return [ nanoToGivenFields(t, 5, w), n ];
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
function epochNanoToSecMod(e) {
|
|
390
|
+
return divModBigNano(e, Ro);
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
function isoToEpochMilli(e) {
|
|
394
|
+
return isoArgsToEpochMilli(e.isoYear, e.isoMonth, e.isoDay, e.isoHour, e.isoMinute, e.isoSecond, e.isoMillisecond);
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
function isoToEpochNano(e) {
|
|
398
|
+
const n = isoToEpochMilli(e);
|
|
399
|
+
if (void 0 !== n) {
|
|
400
|
+
const [t, o] = divModTrunc(n, ko);
|
|
401
|
+
return [ t, o * Qe + (e.isoMicrosecond || 0) * Yo + (e.isoNanosecond || 0) ];
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
function isoToEpochNanoWithOffset(e, n) {
|
|
406
|
+
const [t, o] = nanoToIsoTimeAndDay(isoTimeFieldsToNano(e) - n);
|
|
407
|
+
return checkEpochNanoInBounds(isoToEpochNano({
|
|
408
|
+
...e,
|
|
409
|
+
isoDay: e.isoDay + o,
|
|
410
|
+
...t
|
|
411
|
+
}));
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
function isoArgsToEpochSec(...e) {
|
|
415
|
+
return isoArgsToEpochMilli(...e) / Co;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
function isoArgsToEpochMilli(...e) {
|
|
419
|
+
const [n, t] = isoToLegacyDate(...e), o = n.valueOf();
|
|
420
|
+
if (!isNaN(o)) {
|
|
421
|
+
return o - t * ko;
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
function isoToLegacyDate(e, n = 1, t = 1, o = 0, r = 0, i = 0, a = 0) {
|
|
426
|
+
const s = e === wr ? 1 : e === Fr ? -1 : 0, c = new Date(0);
|
|
427
|
+
return c.setUTCHours(o, r, i, a), c.setUTCFullYear(e, n - 1, t + s), [ c, s ];
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
function epochNanoToIso(e, n) {
|
|
431
|
+
let [t, o] = moveBigNano(e, n);
|
|
432
|
+
o < 0 && (o += Uo, t -= 1);
|
|
433
|
+
const [r, i] = divModFloor(o, Qe), [a, s] = divModFloor(i, Yo);
|
|
434
|
+
return epochMilliToIso(t * ko + r, a, s);
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
function epochMilliToIso(e, n = 0, t = 0) {
|
|
438
|
+
const o = Math.ceil(Math.max(0, Math.abs(e) - Pr) / ko) * Math.sign(e), r = new Date(e - o * ko);
|
|
439
|
+
return zipProps(Tr, [ r.getUTCFullYear(), r.getUTCMonth() + 1, r.getUTCDate() + o, r.getUTCHours(), r.getUTCMinutes(), r.getUTCSeconds(), r.getUTCMilliseconds(), n, t ]);
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
function hashIntlFormatParts(e, n) {
|
|
443
|
+
if (n < -Pr) {
|
|
444
|
+
throw new RangeError(Io);
|
|
445
|
+
}
|
|
446
|
+
const t = e.formatToParts(n), o = {};
|
|
447
|
+
for (const e of t) {
|
|
448
|
+
o[e.type] = e.value;
|
|
449
|
+
}
|
|
450
|
+
return o;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
function computeIsoDateParts(e) {
|
|
454
|
+
return [ e.isoYear, e.isoMonth, e.isoDay ];
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
function computeIsoMonthCodeParts(e, n) {
|
|
458
|
+
return [ n, 0 ];
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
function computeIsoMonthsInYear() {
|
|
462
|
+
return kr;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
function computeIsoDaysInMonth(e, n) {
|
|
466
|
+
switch (n) {
|
|
467
|
+
case 2:
|
|
468
|
+
return computeIsoInLeapYear(e) ? 29 : 28;
|
|
469
|
+
|
|
470
|
+
case 4:
|
|
471
|
+
case 6:
|
|
472
|
+
case 9:
|
|
473
|
+
case 11:
|
|
474
|
+
return 30;
|
|
475
|
+
}
|
|
476
|
+
return 31;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
function computeIsoDaysInYear(e) {
|
|
480
|
+
return computeIsoInLeapYear(e) ? 366 : 365;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
function computeIsoInLeapYear(e) {
|
|
484
|
+
return e % 4 == 0 && (e % 100 != 0 || e % 400 == 0);
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
function computeIsoDayOfWeek(e) {
|
|
488
|
+
const [n, t] = isoToLegacyDate(e.isoYear, e.isoMonth, e.isoDay);
|
|
489
|
+
return modFloor(n.getUTCDay() - t, 7) || 7;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
function computeIsoEraParts(e) {
|
|
493
|
+
return this.id === or ? (({isoYear: e}) => e < 1 ? [ "gregory-inverse", 1 - e ] : [ "gregory", e ])(e) : this.id === rr ? Yr(e) : [];
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
function computeJapaneseEraParts(e) {
|
|
497
|
+
const n = isoToEpochMilli(e);
|
|
498
|
+
if (n < Cr) {
|
|
499
|
+
const {isoYear: n} = e;
|
|
500
|
+
return n < 1 ? [ "japanese-inverse", 1 - n ] : [ "japanese", n ];
|
|
501
|
+
}
|
|
502
|
+
const t = hashIntlFormatParts(Ci(rr), n), {era: o, eraYear: r} = parseIntlYear(t, rr);
|
|
503
|
+
return [ o, r ];
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
function checkIsoDateTimeFields(e) {
|
|
507
|
+
return checkIsoDateFields(e), constrainIsoTimeFields(e, 1), e;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
function checkIsoDateFields(e) {
|
|
511
|
+
return constrainIsoDateFields(e, 1), e;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
function isIsoDateFieldsValid(e) {
|
|
515
|
+
return allPropsEqual(Dr, e, constrainIsoDateFields(e));
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
function constrainIsoDateFields(e, n) {
|
|
519
|
+
const {isoYear: t} = e, o = clampProp(e, "isoMonth", 1, computeIsoMonthsInYear(), n);
|
|
520
|
+
return {
|
|
521
|
+
isoYear: t,
|
|
522
|
+
isoMonth: o,
|
|
523
|
+
isoDay: clampProp(e, "isoDay", 1, computeIsoDaysInMonth(t, o), n)
|
|
524
|
+
};
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
function constrainIsoTimeFields(e, n) {
|
|
528
|
+
return zipProps(w, [ clampProp(e, "isoHour", 0, 23, n), clampProp(e, "isoMinute", 0, 59, n), clampProp(e, "isoSecond", 0, 59, n), clampProp(e, "isoMillisecond", 0, 999, n), clampProp(e, "isoMicrosecond", 0, 999, n), clampProp(e, "isoNanosecond", 0, 999, n) ]);
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
function mt(e) {
|
|
532
|
+
return void 0 === e ? 0 : Xr(requireObjectLike(e));
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
function je(e, n = 0) {
|
|
536
|
+
e = normalizeOptions(e);
|
|
537
|
+
const t = ei(e), o = ni(e, n);
|
|
538
|
+
return [ Xr(e), o, t ];
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
function refineDiffOptions(e, n, t, o = 9, r = 0, i = 4) {
|
|
542
|
+
n = normalizeOptions(n);
|
|
543
|
+
let a = Kr(n, o, r), s = parseRoundingIncInteger(n), c = ii(n, i);
|
|
544
|
+
const u = Jr(n, o, r, 1);
|
|
545
|
+
return null == a ? a = Math.max(t, u) : checkLargestSmallestUnit(a, u), s = refineRoundingInc(s, u, 1),
|
|
546
|
+
e && (c = (e => e < 4 ? (e + 2) % 4 : e)(c)), [ a, u, s, c ];
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
function refineRoundingOptions(e, n = 6, t) {
|
|
550
|
+
let o = parseRoundingIncInteger(e = normalizeOptionsOrString(e, Rr));
|
|
551
|
+
const r = ii(e, 7);
|
|
552
|
+
let i = Jr(e, n);
|
|
553
|
+
return i = requirePropDefined(Rr, i), o = refineRoundingInc(o, i, void 0, t), [ i, o, r ];
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
function refineDateDisplayOptions(e) {
|
|
557
|
+
return ti(normalizeOptions(e));
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
function refineTimeDisplayOptions(e, n) {
|
|
561
|
+
return refineTimeDisplayTuple(normalizeOptions(e), n);
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
function Me(e) {
|
|
565
|
+
const n = normalizeOptionsOrString(e, qr), t = refineChoiceOption(qr, _r, n, 0);
|
|
566
|
+
if (!t) {
|
|
567
|
+
throw new RangeError(invalidEntity(qr, t));
|
|
568
|
+
}
|
|
569
|
+
return t;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
function refineTimeDisplayTuple(e, n = 4) {
|
|
573
|
+
const t = refineSubsecDigits(e);
|
|
574
|
+
return [ ii(e, 4), ...refineSmallestUnitAndSubsecDigits(Jr(e, n), t) ];
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
function refineSmallestUnitAndSubsecDigits(e, n) {
|
|
578
|
+
return null != e ? [ Ao[e], e < 4 ? 9 - 3 * e : -1 ] : [ void 0 === n ? 1 : 10 ** (9 - n), n ];
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
function parseRoundingIncInteger(e) {
|
|
582
|
+
const n = e[zr];
|
|
583
|
+
return void 0 === n ? 1 : toInteger(n, zr);
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
function refineRoundingInc(e, n, t, o) {
|
|
587
|
+
const r = o ? Uo : Ao[n + 1];
|
|
588
|
+
if (r) {
|
|
589
|
+
const t = Ao[n];
|
|
590
|
+
if (r % ((e = clampEntity(zr, e, 1, r / t - (o ? 0 : 1), 1)) * t)) {
|
|
591
|
+
throw new RangeError(invalidEntity(zr, e));
|
|
592
|
+
}
|
|
593
|
+
} else {
|
|
594
|
+
e = clampEntity(zr, e, 1, t ? 10 ** 9 : 1, 1);
|
|
595
|
+
}
|
|
596
|
+
return e;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
function refineSubsecDigits(e) {
|
|
600
|
+
let n = e[Ur];
|
|
601
|
+
if (void 0 !== n) {
|
|
602
|
+
if ("number" != typeof n) {
|
|
603
|
+
if ("auto" === toString(n)) {
|
|
604
|
+
return;
|
|
605
|
+
}
|
|
606
|
+
throw new RangeError(invalidEntity(Ur, n));
|
|
607
|
+
}
|
|
608
|
+
n = clampEntity(Ur, Math.floor(n), 0, 9, 1);
|
|
609
|
+
}
|
|
610
|
+
return n;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
function normalizeOptions(e) {
|
|
614
|
+
return void 0 === e ? {} : requireObjectLike(e);
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
function normalizeOptionsOrString(e, n) {
|
|
618
|
+
return "string" == typeof e ? {
|
|
619
|
+
[n]: e
|
|
620
|
+
} : requireObjectLike(e);
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
function fabricateOverflowOptions(e) {
|
|
624
|
+
return {
|
|
625
|
+
overflow: jr[e]
|
|
626
|
+
};
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
function refineUnitOption(e, n, t = 9, o = 0, r) {
|
|
630
|
+
let i = n[e];
|
|
631
|
+
if (void 0 === i) {
|
|
632
|
+
return r ? o : void 0;
|
|
633
|
+
}
|
|
634
|
+
if (i = toString(i), "auto" === i) {
|
|
635
|
+
return r ? o : null;
|
|
636
|
+
}
|
|
637
|
+
let a = Oo[i];
|
|
638
|
+
if (void 0 === a && (a = mr[i]), void 0 === a) {
|
|
639
|
+
throw new RangeError(invalidChoice(e, i, Oo));
|
|
640
|
+
}
|
|
641
|
+
return clampEntity(e, a, o, t, 1, Bo), a;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
function refineChoiceOption(e, n, t, o = 0) {
|
|
645
|
+
const r = t[e];
|
|
646
|
+
if (void 0 === r) {
|
|
647
|
+
return o;
|
|
648
|
+
}
|
|
649
|
+
const i = toString(r), a = n[i];
|
|
650
|
+
if (void 0 === a) {
|
|
651
|
+
throw new RangeError(invalidChoice(e, i, n));
|
|
652
|
+
}
|
|
653
|
+
return a;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
function checkLargestSmallestUnit(e, n) {
|
|
657
|
+
if (n > e) {
|
|
658
|
+
throw new RangeError(Eo);
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
function xe(e) {
|
|
663
|
+
return {
|
|
664
|
+
branding: Re,
|
|
665
|
+
epochNanoseconds: e
|
|
666
|
+
};
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
function _e(e, n, t) {
|
|
670
|
+
return {
|
|
671
|
+
branding: z,
|
|
672
|
+
calendar: t,
|
|
673
|
+
timeZone: n,
|
|
674
|
+
epochNanoseconds: e
|
|
675
|
+
};
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
function jt(e, n = e.calendar) {
|
|
679
|
+
return {
|
|
680
|
+
branding: x,
|
|
681
|
+
calendar: n,
|
|
682
|
+
...nn(Nr, e)
|
|
683
|
+
};
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
function W(e, n = e.calendar) {
|
|
687
|
+
return {
|
|
688
|
+
branding: G,
|
|
689
|
+
calendar: n,
|
|
690
|
+
...nn(Ir, e)
|
|
691
|
+
};
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
function createPlainYearMonthSlots(e, n = e.calendar) {
|
|
695
|
+
return {
|
|
696
|
+
branding: Ut,
|
|
697
|
+
calendar: n,
|
|
698
|
+
...nn(Ir, e)
|
|
699
|
+
};
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
function createPlainMonthDaySlots(e, n = e.calendar) {
|
|
703
|
+
return {
|
|
704
|
+
branding: qt,
|
|
705
|
+
calendar: n,
|
|
706
|
+
...nn(Ir, e)
|
|
707
|
+
};
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
function St(e) {
|
|
711
|
+
return {
|
|
712
|
+
branding: ft,
|
|
713
|
+
...nn(Mr, e)
|
|
714
|
+
};
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
function Oe(e) {
|
|
718
|
+
return {
|
|
719
|
+
branding: N,
|
|
720
|
+
sign: computeDurationSign(e),
|
|
721
|
+
...nn(ur, e)
|
|
722
|
+
};
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
function I(e) {
|
|
726
|
+
return divModBigNano(e.epochNanoseconds, Qe)[0];
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
function v(e) {
|
|
730
|
+
return ((e, n = 1) => {
|
|
731
|
+
const [t, o] = e, r = Math.floor(o / n), i = Uo / n;
|
|
732
|
+
return BigInt(t) * BigInt(i) + BigInt(r);
|
|
733
|
+
})(e.epochNanoseconds);
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
function extractEpochNano(e) {
|
|
737
|
+
return e.epochNanoseconds;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
function J(e, n, t, o, r) {
|
|
741
|
+
const i = getMaxDurationUnit(o), [a, s] = ((e, n) => {
|
|
742
|
+
const t = n((e = normalizeOptionsOrString(e, Zr))[Ar]);
|
|
743
|
+
let o = Qr(e);
|
|
744
|
+
return o = requirePropDefined(Zr, o), [ o, t ];
|
|
745
|
+
})(r, e), c = Math.max(a, i);
|
|
746
|
+
if (!s && isUniformUnit(c, s)) {
|
|
747
|
+
return totalDayTimeDuration(o, a);
|
|
748
|
+
}
|
|
749
|
+
if (!s) {
|
|
750
|
+
throw new RangeError(yo);
|
|
751
|
+
}
|
|
752
|
+
if (!o.sign) {
|
|
753
|
+
return 0;
|
|
754
|
+
}
|
|
755
|
+
const [u, f, l] = createMarkerSystem(n, t, s), d = createMarkerToEpochNano(l), m = createMoveMarker(l), h = createDiffMarkers(l), g = m(f, u, o);
|
|
756
|
+
isZonedEpochSlots(s) || (checkIsoDateTimeInBounds(u), checkIsoDateTimeInBounds(g));
|
|
757
|
+
const D = h(f, u, g, a);
|
|
758
|
+
return isUniformUnit(a, s) ? totalDayTimeDuration(D, a) : ((e, n, t, o, r, i, a) => {
|
|
759
|
+
const s = computeDurationSign(e), [c, u] = clampRelativeDuration(o, gr(t, e), t, s, r, i, a), f = computeEpochNanoFrac(n, c, u);
|
|
760
|
+
return e[p[t]] + f * s;
|
|
761
|
+
})(D, d(g), a, f, u, d, m);
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
function totalDayTimeDuration(e, n) {
|
|
765
|
+
return bigNanoToNumber(durationFieldsToBigNano(e), Ao[n], 1);
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
function clampRelativeDuration(e, n, t, o, r, i, a) {
|
|
769
|
+
const s = p[t], c = {
|
|
770
|
+
...n,
|
|
771
|
+
[s]: n[s] + o
|
|
772
|
+
}, u = a(e, r, n), f = a(e, r, c);
|
|
773
|
+
return [ i(u), i(f) ];
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
function computeEpochNanoFrac(e, n, t) {
|
|
777
|
+
const o = bigNanoToNumber(diffBigNanos(n, t));
|
|
778
|
+
if (!o) {
|
|
779
|
+
throw new RangeError(fo);
|
|
780
|
+
}
|
|
781
|
+
return bigNanoToNumber(diffBigNanos(n, e)) / o;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
function Le(e, n) {
|
|
785
|
+
const [t, o, r] = refineRoundingOptions(n, 5, 1);
|
|
786
|
+
return xe(roundBigNano(e.epochNanoseconds, t, o, r, 1));
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
function Ie(e, n, t) {
|
|
790
|
+
let {epochNanoseconds: o, timeZone: r, calendar: i} = n;
|
|
791
|
+
const [a, s, c] = refineRoundingOptions(t);
|
|
792
|
+
if (0 === a && 1 === s) {
|
|
793
|
+
return n;
|
|
794
|
+
}
|
|
795
|
+
const u = e(r);
|
|
796
|
+
if (6 === a) {
|
|
797
|
+
o = ((e, n, t, o) => {
|
|
798
|
+
const r = he(t, n), [i, a] = e(r), s = t.epochNanoseconds, c = getStartOfDayInstantFor(n, i), u = getStartOfDayInstantFor(n, a);
|
|
799
|
+
if (bigNanoOutside(s, c, u)) {
|
|
800
|
+
throw new RangeError(fo);
|
|
801
|
+
}
|
|
802
|
+
return roundWithMode(computeEpochNanoFrac(s, c, u), o) ? u : c;
|
|
803
|
+
})(computeDayInterval, u, n, c);
|
|
804
|
+
} else {
|
|
805
|
+
const e = u.u(o);
|
|
806
|
+
o = getMatchingInstantFor(u, roundDateTime(epochNanoToIso(o, e), a, s, c), e, 2, 0, 1);
|
|
807
|
+
}
|
|
808
|
+
return _e(o, r, i);
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
function vt(e, n) {
|
|
812
|
+
return jt(roundDateTime(e, ...refineRoundingOptions(n)), e.calendar);
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
function lt(e, n) {
|
|
816
|
+
const [t, o, r] = refineRoundingOptions(n, 5);
|
|
817
|
+
var i;
|
|
818
|
+
return St((i = r, roundTimeToNano(e, computeNanoInc(t, o), i)[0]));
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
function Te(e, n) {
|
|
822
|
+
const t = e(n.timeZone), o = he(n, t), [r, i] = computeDayInterval(o), a = bigNanoToNumber(diffBigNanos(getStartOfDayInstantFor(t, r), getStartOfDayInstantFor(t, i)), zo, 1);
|
|
823
|
+
if (a <= 0) {
|
|
824
|
+
throw new RangeError(fo);
|
|
825
|
+
}
|
|
826
|
+
return a;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
function ve(e, n) {
|
|
830
|
+
const {timeZone: t, calendar: o} = n, r = ((e, n, t) => getStartOfDayInstantFor(n, e(he(t, n))))(computeDayFloor, e(t), n);
|
|
831
|
+
return _e(r, t, o);
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
function roundDateTime(e, n, t, o) {
|
|
835
|
+
return roundDateTimeToNano(e, computeNanoInc(n, t), o);
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
function roundDateTimeToNano(e, n, t) {
|
|
839
|
+
const [o, r] = roundTimeToNano(e, n, t);
|
|
840
|
+
return checkIsoDateTimeInBounds({
|
|
841
|
+
...moveByDays(e, r),
|
|
842
|
+
...o
|
|
843
|
+
});
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
function roundTimeToNano(e, n, t) {
|
|
847
|
+
return nanoToIsoTimeAndDay(roundByInc(isoTimeFieldsToNano(e), n, t));
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
function roundToMinute(e) {
|
|
851
|
+
return roundByInc(e, Zo, 7);
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
function computeNanoInc(e, n) {
|
|
855
|
+
return Ao[e] * n;
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
function computeDayInterval(e) {
|
|
859
|
+
const n = computeDayFloor(e);
|
|
860
|
+
return [ n, moveByDays(n, 1) ];
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
function computeDayFloor(e) {
|
|
864
|
+
return yr(6, e);
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
function roundDayTimeDurationByInc(e, n, t) {
|
|
868
|
+
const o = Math.min(getMaxDurationUnit(e), 6);
|
|
869
|
+
return nanoToDurationDayTimeFields(roundBigNanoByInc(durationFieldsToBigNano(e, o), n, t), o);
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
function roundRelativeDuration(e, n, t, o, r, i, a, s, c, u) {
|
|
873
|
+
if (0 === o && 1 === r) {
|
|
874
|
+
return e;
|
|
875
|
+
}
|
|
876
|
+
const f = isUniformUnit(o, s) ? isZonedEpochSlots(s) && o < 6 && t >= 6 ? nudgeZonedTimeDuration : nudgeDayTimeDuration : nudgeRelativeDuration;
|
|
877
|
+
let [l, d, m] = f(e, n, t, o, r, i, a, s, c, u);
|
|
878
|
+
return m && 7 !== o && (l = ((e, n, t, o, r, i, a, s) => {
|
|
879
|
+
const c = computeDurationSign(e);
|
|
880
|
+
for (let u = o + 1; u <= t; u++) {
|
|
881
|
+
if (7 === u && 7 !== t) {
|
|
882
|
+
continue;
|
|
883
|
+
}
|
|
884
|
+
const o = gr(u, e);
|
|
885
|
+
o[p[u]] += c;
|
|
886
|
+
const f = bigNanoToNumber(diffBigNanos(a(s(r, i, o)), n));
|
|
887
|
+
if (f && Math.sign(f) !== c) {
|
|
888
|
+
break;
|
|
889
|
+
}
|
|
890
|
+
e = o;
|
|
891
|
+
}
|
|
892
|
+
return e;
|
|
893
|
+
})(l, d, t, Math.max(6, o), a, s, c, u)), l;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
function roundBigNano(e, n, t, o, r) {
|
|
897
|
+
if (6 === n) {
|
|
898
|
+
const n = (e => e[0] + e[1] / Uo)(e);
|
|
899
|
+
return [ roundByInc(n, t, o), 0 ];
|
|
900
|
+
}
|
|
901
|
+
return roundBigNanoByInc(e, computeNanoInc(n, t), o, r);
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
function roundBigNanoByInc(e, n, t, o) {
|
|
905
|
+
let [r, i] = e;
|
|
906
|
+
o && i < 0 && (i += Uo, r -= 1);
|
|
907
|
+
const [a, s] = divModFloor(roundByInc(i, n, t), Uo);
|
|
908
|
+
return createBigNano(r + a, s);
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
function roundByInc(e, n, t) {
|
|
912
|
+
return roundWithMode(e / n, t) * n;
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
function roundWithMode(e, n) {
|
|
916
|
+
return ai[n](e);
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
function nudgeDayTimeDuration(e, n, t, o, r, i) {
|
|
920
|
+
const a = computeDurationSign(e), s = durationFieldsToBigNano(e), c = roundBigNano(s, o, r, i), u = diffBigNanos(s, c), f = Math.sign(c[0] - s[0]) === a, l = nanoToDurationDayTimeFields(c, Math.min(t, 6));
|
|
921
|
+
return [ {
|
|
922
|
+
...e,
|
|
923
|
+
...l
|
|
924
|
+
}, addBigNanos(n, u), f ];
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
function nudgeZonedTimeDuration(e, n, t, o, r, i, a, s, c, u) {
|
|
928
|
+
const f = computeDurationSign(e) || 1, l = bigNanoToNumber(durationFieldsToBigNano(e, 5)), d = computeNanoInc(o, r);
|
|
929
|
+
let m = roundByInc(l, d, i);
|
|
930
|
+
const [p, h] = clampRelativeDuration(a, {
|
|
931
|
+
...e,
|
|
932
|
+
...hr
|
|
933
|
+
}, 6, f, s, c, u), g = m - bigNanoToNumber(diffBigNanos(p, h));
|
|
934
|
+
let D = 0;
|
|
935
|
+
g && Math.sign(g) !== f ? n = moveBigNano(p, m) : (D += f, m = roundByInc(g, d, i),
|
|
936
|
+
n = moveBigNano(h, m));
|
|
937
|
+
const T = nanoToDurationTimeFields(m);
|
|
938
|
+
return [ {
|
|
939
|
+
...e,
|
|
940
|
+
...T,
|
|
941
|
+
days: e.days + D
|
|
942
|
+
}, n, Boolean(D) ];
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
function nudgeRelativeDuration(e, n, t, o, r, i, a, s, c, u) {
|
|
946
|
+
const f = computeDurationSign(e), l = p[o], d = gr(o, e);
|
|
947
|
+
7 === o && (e = {
|
|
948
|
+
...e,
|
|
949
|
+
weeks: e.weeks + Math.trunc(e.days / 7)
|
|
950
|
+
});
|
|
951
|
+
const m = divTrunc(e[l], r) * r;
|
|
952
|
+
d[l] = m;
|
|
953
|
+
const [h, g] = clampRelativeDuration(a, d, o, r * f, s, c, u), D = m + computeEpochNanoFrac(n, h, g) * f * r, T = roundByInc(D, r, i), I = Math.sign(T - D) === f;
|
|
954
|
+
return d[l] = T, [ d, I ? g : h, I ];
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
function ke(e, n, t, o) {
|
|
958
|
+
const [r, i, a, s] = (e => {
|
|
959
|
+
const n = refineTimeDisplayTuple(e = normalizeOptions(e));
|
|
960
|
+
return [ e.timeZone, ...n ];
|
|
961
|
+
})(o), c = void 0 !== r;
|
|
962
|
+
return ((e, n, t, o, r, i) => {
|
|
963
|
+
t = roundBigNanoByInc(t, r, o, 1);
|
|
964
|
+
const a = n.u(t);
|
|
965
|
+
return formatIsoDateTimeFields(epochNanoToIso(t, a), i) + (e ? Se(roundToMinute(a)) : "Z");
|
|
966
|
+
})(c, n(c ? e(r) : si), t.epochNanoseconds, i, a, s);
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
function Fe(e, n, t) {
|
|
970
|
+
const [o, r, i, a, s, c] = (e => {
|
|
971
|
+
e = normalizeOptions(e);
|
|
972
|
+
const n = ti(e), t = refineSubsecDigits(e), o = ri(e), r = ii(e, 4), i = Jr(e, 4);
|
|
973
|
+
return [ n, oi(e), o, r, ...refineSmallestUnitAndSubsecDigits(i, t) ];
|
|
974
|
+
})(t);
|
|
975
|
+
return ((e, n, t, o, r, i, a, s, c, u) => {
|
|
976
|
+
o = roundBigNanoByInc(o, c, s, 1);
|
|
977
|
+
const f = e(t).u(o);
|
|
978
|
+
return formatIsoDateTimeFields(epochNanoToIso(o, f), u) + Se(roundToMinute(f), a) + ((e, n) => 1 !== n ? "[" + (2 === n ? "!" : "") + e + "]" : "")(t, i) + formatCalendar(n, r);
|
|
979
|
+
})(e, n.calendar, n.timeZone, n.epochNanoseconds, o, r, i, a, s, c);
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
function Ft(e, n) {
|
|
983
|
+
const [t, o, r, i] = (e => (e = normalizeOptions(e), [ ti(e), ...refineTimeDisplayTuple(e) ]))(n);
|
|
984
|
+
return a = e.calendar, s = t, c = i, formatIsoDateTimeFields(roundDateTimeToNano(e, r, o), c) + formatCalendar(a, s);
|
|
985
|
+
var a, s, c;
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
function ce(e, n) {
|
|
989
|
+
return t = e.calendar, o = e, r = refineDateDisplayOptions(n), formatIsoDateFields(o) + formatCalendar(t, r);
|
|
990
|
+
var t, o, r;
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
function Kt(e, n) {
|
|
994
|
+
return formatDateLikeIso(e.calendar, formatIsoYearMonthFields, e, refineDateDisplayOptions(n));
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
function Jt(e, n) {
|
|
998
|
+
return formatDateLikeIso(e.calendar, formatIsoMonthDayFields, e, refineDateDisplayOptions(n));
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
function ct(e, n) {
|
|
1002
|
+
const [t, o, r] = refineTimeDisplayOptions(n);
|
|
1003
|
+
return i = r, formatIsoTimeFields(roundTimeToNano(e, o, t)[0], i);
|
|
1004
|
+
var i;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
function k(e, n) {
|
|
1008
|
+
const [t, o, r] = refineTimeDisplayOptions(n, 3);
|
|
1009
|
+
return o > 1 && checkDurationUnits(e = {
|
|
1010
|
+
...e,
|
|
1011
|
+
...roundDayTimeDurationByInc(e, o, t)
|
|
1012
|
+
}), ((e, n) => {
|
|
1013
|
+
const {sign: t} = e, o = -1 === t ? negateDurationFields(e) : e, {hours: r, minutes: i} = o, [a, s] = divModBigNano(durationFieldsToBigNano(o, 3), Ro, divModTrunc);
|
|
1014
|
+
checkDurationTimeUnit(a);
|
|
1015
|
+
const c = formatSubsecNano(s, n), u = n >= 0 || !t || c;
|
|
1016
|
+
return (t < 0 ? "-" : "") + "P" + formatDurationFragments({
|
|
1017
|
+
Y: formatDurationNumber(o.years),
|
|
1018
|
+
M: formatDurationNumber(o.months),
|
|
1019
|
+
W: formatDurationNumber(o.weeks),
|
|
1020
|
+
D: formatDurationNumber(o.days)
|
|
1021
|
+
}) + (r || i || a || u ? "T" + formatDurationFragments({
|
|
1022
|
+
H: formatDurationNumber(r),
|
|
1023
|
+
M: formatDurationNumber(i),
|
|
1024
|
+
S: formatDurationNumber(a, u) + c
|
|
1025
|
+
}) : "");
|
|
1026
|
+
})(e, r);
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
function formatDateLikeIso(e, n, t, o) {
|
|
1030
|
+
const r = o > 1 || 0 === o && e !== l;
|
|
1031
|
+
return 1 === o ? e === l ? n(t) : formatIsoDateFields(t) : r ? formatIsoDateFields(t) + formatCalendarId(e, 2 === o) : n(t);
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
function formatDurationFragments(e) {
|
|
1035
|
+
const n = [];
|
|
1036
|
+
for (const t in e) {
|
|
1037
|
+
const o = e[t];
|
|
1038
|
+
o && n.push(o, t);
|
|
1039
|
+
}
|
|
1040
|
+
return n.join("");
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
function formatIsoDateTimeFields(e, n) {
|
|
1044
|
+
return formatIsoDateFields(e) + "T" + formatIsoTimeFields(e, n);
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
function formatIsoDateFields(e) {
|
|
1048
|
+
return formatIsoYearMonthFields(e) + "-" + bo(e.isoDay);
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
function formatIsoYearMonthFields(e) {
|
|
1052
|
+
const {isoYear: n} = e;
|
|
1053
|
+
return (n < 0 || n > 9999 ? getSignStr(n) + padNumber(6, Math.abs(n)) : padNumber(4, n)) + "-" + bo(e.isoMonth);
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
function formatIsoMonthDayFields(e) {
|
|
1057
|
+
return bo(e.isoMonth) + "-" + bo(e.isoDay);
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
function formatIsoTimeFields(e, n) {
|
|
1061
|
+
const t = [ bo(e.isoHour), bo(e.isoMinute) ];
|
|
1062
|
+
return -1 !== n && t.push(bo(e.isoSecond) + ((e, n, t, o) => formatSubsecNano(e * Qe + n * Yo + t, o))(e.isoMillisecond, e.isoMicrosecond, e.isoNanosecond, n)),
|
|
1063
|
+
t.join(":");
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
function Se(e, n = 0) {
|
|
1067
|
+
if (1 === n) {
|
|
1068
|
+
return "";
|
|
1069
|
+
}
|
|
1070
|
+
const [t, o] = divModFloor(Math.abs(e), zo), [r, i] = divModFloor(o, Zo), [a, s] = divModFloor(i, Ro);
|
|
1071
|
+
return getSignStr(e) + bo(t) + ":" + bo(r) + (a || s ? ":" + bo(a) + formatSubsecNano(s) : "");
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
function formatCalendar(e, n) {
|
|
1075
|
+
return 1 !== n && (n > 1 || 0 === n && e !== l) ? formatCalendarId(e, 2 === n) : "";
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
function formatCalendarId(e, n) {
|
|
1079
|
+
return "[" + (n ? "!" : "") + "u-ca=" + e + "]";
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
function formatSubsecNano(e, n) {
|
|
1083
|
+
let t = padNumber(9, e);
|
|
1084
|
+
return t = void 0 === n ? t.replace(li, "") : t.slice(0, n), t ? "." + t : "";
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
function getSignStr(e) {
|
|
1088
|
+
return e < 0 ? "-" : "+";
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
function formatDurationNumber(e, n) {
|
|
1092
|
+
return e || n ? e.toLocaleString("fullwide", {
|
|
1093
|
+
useGrouping: 0
|
|
1094
|
+
}) : "";
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
function _zonedEpochSlotsToIso(e, n) {
|
|
1098
|
+
const {epochNanoseconds: t} = e, o = (n.u ? n : n(e.timeZone)).u(t), r = epochNanoToIso(t, o);
|
|
1099
|
+
return {
|
|
1100
|
+
calendar: e.calendar,
|
|
1101
|
+
...r,
|
|
1102
|
+
offsetNanoseconds: o
|
|
1103
|
+
};
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
function getMatchingInstantFor(e, n, t, o = 0, r = 0, i, a) {
|
|
1107
|
+
if (void 0 !== t && 1 === o && (1 === o || a)) {
|
|
1108
|
+
return isoToEpochNanoWithOffset(n, t);
|
|
1109
|
+
}
|
|
1110
|
+
const s = e.l(n);
|
|
1111
|
+
if (void 0 !== t && 3 !== o) {
|
|
1112
|
+
const e = ((e, n, t, o) => {
|
|
1113
|
+
const r = isoToEpochNano(n);
|
|
1114
|
+
o && (t = roundToMinute(t));
|
|
1115
|
+
for (const n of e) {
|
|
1116
|
+
let e = bigNanoToNumber(diffBigNanos(n, r));
|
|
1117
|
+
if (o && (e = roundToMinute(e)), e === t) {
|
|
1118
|
+
return n;
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
})(s, n, t, i);
|
|
1122
|
+
if (void 0 !== e) {
|
|
1123
|
+
return e;
|
|
1124
|
+
}
|
|
1125
|
+
if (0 === o) {
|
|
1126
|
+
throw new RangeError(Do);
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
return a ? isoToEpochNano(n) : getSingleInstantFor(e, n, r, s);
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
function getSingleInstantFor(e, n, t = 0, o = e.l(n)) {
|
|
1133
|
+
if (1 === o.length) {
|
|
1134
|
+
return o[0];
|
|
1135
|
+
}
|
|
1136
|
+
if (1 === t) {
|
|
1137
|
+
throw new RangeError(To);
|
|
1138
|
+
}
|
|
1139
|
+
if (o.length) {
|
|
1140
|
+
return o[3 === t ? 1 : 0];
|
|
1141
|
+
}
|
|
1142
|
+
const r = isoToEpochNano(n), i = ((e, n) => {
|
|
1143
|
+
const t = e.u(moveBigNano(n, -Uo));
|
|
1144
|
+
return (e => {
|
|
1145
|
+
if (e > Uo) {
|
|
1146
|
+
throw new RangeError(go);
|
|
1147
|
+
}
|
|
1148
|
+
return e;
|
|
1149
|
+
})(e.u(moveBigNano(n, Uo)) - t);
|
|
1150
|
+
})(e, r), a = i * (2 === t ? -1 : 1);
|
|
1151
|
+
return (o = e.l(epochNanoToIso(r, a)))[2 === t ? 0 : o.length - 1];
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
function getStartOfDayInstantFor(e, n) {
|
|
1155
|
+
const t = e.l(n);
|
|
1156
|
+
if (t.length) {
|
|
1157
|
+
return t[0];
|
|
1158
|
+
}
|
|
1159
|
+
const o = moveBigNano(isoToEpochNano(n), -Uo);
|
|
1160
|
+
return e.i(o, 1);
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
function Ye(e, n, t) {
|
|
1164
|
+
return xe(checkEpochNanoInBounds(addBigNanos(n.epochNanoseconds, (e => {
|
|
1165
|
+
if (durationHasDateParts(e)) {
|
|
1166
|
+
throw new RangeError(vo);
|
|
1167
|
+
}
|
|
1168
|
+
return durationFieldsToBigNano(e, 5);
|
|
1169
|
+
})(e ? negateDurationFields(t) : t))));
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
function pe(e, n, t, o, r, i = Object.create(null)) {
|
|
1173
|
+
const a = n(o.timeZone), s = e(o.calendar);
|
|
1174
|
+
return {
|
|
1175
|
+
...o,
|
|
1176
|
+
...moveZonedEpochs(a, s, o, t ? negateDurationFields(r) : r, i)
|
|
1177
|
+
};
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
function wt(e, n, t, o, r = Object.create(null)) {
|
|
1181
|
+
const {calendar: i} = t;
|
|
1182
|
+
return jt(moveDateTime(e(i), t, n ? negateDurationFields(o) : o, r), i);
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
function ne(e, n, t, o, r) {
|
|
1186
|
+
const {calendar: i} = t;
|
|
1187
|
+
return W(moveDate(e(i), t, n ? negateDurationFields(o) : o, r), i);
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
function Gt(e, n, t, o, r) {
|
|
1191
|
+
const i = t.calendar, a = e(i);
|
|
1192
|
+
let s = checkIsoDateInBounds(moveToDayOfMonthUnsafe(a, t));
|
|
1193
|
+
n && (o = B(o)), o.sign < 0 && (s = a.m(s, {
|
|
1194
|
+
...pr,
|
|
1195
|
+
months: 1
|
|
1196
|
+
}), s = moveByDays(s, -1));
|
|
1197
|
+
const c = a.m(s, o, r);
|
|
1198
|
+
return createPlainYearMonthSlots(moveToDayOfMonthUnsafe(a, c), i);
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
function at(e, n, t) {
|
|
1202
|
+
return St(moveTime(n, e ? negateDurationFields(t) : t)[0]);
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
function moveZonedEpochs(e, n, t, o, r) {
|
|
1206
|
+
const i = durationFieldsToBigNano(o, 5);
|
|
1207
|
+
let a = t.epochNanoseconds;
|
|
1208
|
+
if (durationHasDateParts(o)) {
|
|
1209
|
+
const s = he(t, e);
|
|
1210
|
+
a = addBigNanos(getSingleInstantFor(e, {
|
|
1211
|
+
...moveDate(n, s, {
|
|
1212
|
+
...o,
|
|
1213
|
+
...hr
|
|
1214
|
+
}, r),
|
|
1215
|
+
...nn(w, s)
|
|
1216
|
+
}), i);
|
|
1217
|
+
} else {
|
|
1218
|
+
a = addBigNanos(a, i), mt(r);
|
|
1219
|
+
}
|
|
1220
|
+
return {
|
|
1221
|
+
epochNanoseconds: checkEpochNanoInBounds(a)
|
|
1222
|
+
};
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
function moveDateTime(e, n, t, o) {
|
|
1226
|
+
const [r, i] = moveTime(n, t);
|
|
1227
|
+
return checkIsoDateTimeInBounds({
|
|
1228
|
+
...moveDate(e, n, {
|
|
1229
|
+
...t,
|
|
1230
|
+
...hr,
|
|
1231
|
+
days: t.days + i
|
|
1232
|
+
}, o),
|
|
1233
|
+
...r
|
|
1234
|
+
});
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
function moveDate(e, n, t, o) {
|
|
1238
|
+
if (t.years || t.months || t.weeks) {
|
|
1239
|
+
return e.m(n, t, o);
|
|
1240
|
+
}
|
|
1241
|
+
mt(o);
|
|
1242
|
+
const r = t.days + durationFieldsToBigNano(t, 5)[0];
|
|
1243
|
+
return r ? checkIsoDateInBounds(moveByDays(n, r)) : n;
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
function moveToDayOfMonthUnsafe(e, n, t = 1) {
|
|
1247
|
+
return moveByDays(n, t - e.day(n));
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
function moveTime(e, n) {
|
|
1251
|
+
const [t, o] = durationFieldsToBigNano(n, 5), [r, i] = nanoToIsoTimeAndDay(isoTimeFieldsToNano(e) + o);
|
|
1252
|
+
return [ r, t + i ];
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
function moveByDays(e, n) {
|
|
1256
|
+
return n ? {
|
|
1257
|
+
...e,
|
|
1258
|
+
...epochMilliToIso(isoToEpochMilli(e) + n * ko)
|
|
1259
|
+
} : e;
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
function createMarkerSystem(e, n, t) {
|
|
1263
|
+
const o = e(t.calendar);
|
|
1264
|
+
return isZonedEpochSlots(t) ? [ t, o, n(t.timeZone) ] : [ {
|
|
1265
|
+
...t,
|
|
1266
|
+
...Nt
|
|
1267
|
+
}, o ];
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
function createMarkerToEpochNano(e) {
|
|
1271
|
+
return e ? extractEpochNano : isoToEpochNano;
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
function createMoveMarker(e) {
|
|
1275
|
+
return e ? Pt(moveZonedEpochs, e) : moveDateTime;
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
function createDiffMarkers(e) {
|
|
1279
|
+
return e ? Pt(diffZonedEpochsExact, e) : diffDateTimesExact;
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
function isZonedEpochSlots(e) {
|
|
1283
|
+
return e && e.epochNanoseconds;
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
function isUniformUnit(e, n) {
|
|
1287
|
+
return e <= 6 - (isZonedEpochSlots(n) ? 1 : 0);
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
function E(e, n, t, o, r, i, a) {
|
|
1291
|
+
const s = e(normalizeOptions(a).relativeTo), c = Math.max(getMaxDurationUnit(r), getMaxDurationUnit(i));
|
|
1292
|
+
if (isUniformUnit(c, s)) {
|
|
1293
|
+
return Oe(checkDurationUnits(((e, n, t, o) => {
|
|
1294
|
+
const r = addBigNanos(durationFieldsToBigNano(e), durationFieldsToBigNano(n), o ? -1 : 1);
|
|
1295
|
+
if (!Number.isFinite(r[0])) {
|
|
1296
|
+
throw new RangeError(Io);
|
|
1297
|
+
}
|
|
1298
|
+
return {
|
|
1299
|
+
...pr,
|
|
1300
|
+
...nanoToDurationDayTimeFields(r, t)
|
|
1301
|
+
};
|
|
1302
|
+
})(r, i, c, o)));
|
|
1303
|
+
}
|
|
1304
|
+
if (!s) {
|
|
1305
|
+
throw new RangeError(yo);
|
|
1306
|
+
}
|
|
1307
|
+
o && (i = negateDurationFields(i));
|
|
1308
|
+
const [u, f, l] = createMarkerSystem(n, t, s), d = createMoveMarker(l), m = createDiffMarkers(l), p = d(f, u, r);
|
|
1309
|
+
return Oe(m(f, u, d(f, p, i), c));
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
function V(e, n, t, o, r) {
|
|
1313
|
+
const i = getMaxDurationUnit(o), [a, s, c, u, f] = ((e, n, t) => {
|
|
1314
|
+
e = normalizeOptionsOrString(e, Rr);
|
|
1315
|
+
let o = Kr(e);
|
|
1316
|
+
const r = t(e[Ar]);
|
|
1317
|
+
let i = parseRoundingIncInteger(e);
|
|
1318
|
+
const a = ii(e, 7);
|
|
1319
|
+
let s = Jr(e);
|
|
1320
|
+
if (void 0 === o && void 0 === s) {
|
|
1321
|
+
throw new RangeError(Po);
|
|
1322
|
+
}
|
|
1323
|
+
if (null == s && (s = 0), null == o && (o = Math.max(s, n)), checkLargestSmallestUnit(o, s),
|
|
1324
|
+
i = refineRoundingInc(i, s, 1), i > 1 && s > 5 && o !== s) {
|
|
1325
|
+
throw new RangeError("For calendar units with roundingIncrement > 1, use largestUnit = smallestUnit");
|
|
1326
|
+
}
|
|
1327
|
+
return [ o, s, i, a, r ];
|
|
1328
|
+
})(r, i, e), l = Math.max(i, a);
|
|
1329
|
+
if (!f && l <= 6) {
|
|
1330
|
+
return Oe(checkDurationUnits(((e, n, t, o, r) => {
|
|
1331
|
+
const i = roundBigNano(durationFieldsToBigNano(e), t, o, r);
|
|
1332
|
+
return {
|
|
1333
|
+
...pr,
|
|
1334
|
+
...nanoToDurationDayTimeFields(i, n)
|
|
1335
|
+
};
|
|
1336
|
+
})(o, a, s, c, u)));
|
|
1337
|
+
}
|
|
1338
|
+
if (!isZonedEpochSlots(f) && !o.sign) {
|
|
1339
|
+
return o;
|
|
1340
|
+
}
|
|
1341
|
+
if (!f) {
|
|
1342
|
+
throw new RangeError(yo);
|
|
1343
|
+
}
|
|
1344
|
+
const [d, m, p] = createMarkerSystem(n, t, f), h = createMarkerToEpochNano(p), g = createMoveMarker(p), D = createDiffMarkers(p), T = g(m, d, o);
|
|
1345
|
+
isZonedEpochSlots(f) || (checkIsoDateTimeInBounds(d), checkIsoDateTimeInBounds(T));
|
|
1346
|
+
let I = D(m, d, T, a);
|
|
1347
|
+
const M = o.sign, N = computeDurationSign(I);
|
|
1348
|
+
if (M && N && M !== N) {
|
|
1349
|
+
throw new RangeError(fo);
|
|
1350
|
+
}
|
|
1351
|
+
return I = roundRelativeDuration(I, h(T), a, s, c, u, m, d, h, g), Oe(I);
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
function Y(e) {
|
|
1355
|
+
return -1 === e.sign ? B(e) : e;
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
function B(e) {
|
|
1359
|
+
return Oe(negateDurationFields(e));
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
function negateDurationFields(e) {
|
|
1363
|
+
const n = {};
|
|
1364
|
+
for (const t of p) {
|
|
1365
|
+
n[t] = -1 * e[t] || 0;
|
|
1366
|
+
}
|
|
1367
|
+
return n;
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
function y(e) {
|
|
1371
|
+
return !e.sign;
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
function computeDurationSign(e, n = p) {
|
|
1375
|
+
let t = 0;
|
|
1376
|
+
for (const o of n) {
|
|
1377
|
+
const n = Math.sign(e[o]);
|
|
1378
|
+
if (n) {
|
|
1379
|
+
if (t && t !== n) {
|
|
1380
|
+
throw new RangeError(No);
|
|
1381
|
+
}
|
|
1382
|
+
t = n;
|
|
1383
|
+
}
|
|
1384
|
+
}
|
|
1385
|
+
return t;
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
function checkDurationUnits(e) {
|
|
1389
|
+
for (const n of dr) {
|
|
1390
|
+
clampEntity(n, e[n], -di, di, 1);
|
|
1391
|
+
}
|
|
1392
|
+
return checkDurationTimeUnit(bigNanoToNumber(durationFieldsToBigNano(e), Ro)), e;
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
function checkDurationTimeUnit(e) {
|
|
1396
|
+
if (!Number.isSafeInteger(e)) {
|
|
1397
|
+
throw new RangeError(Mo);
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
function durationFieldsToBigNano(e, n = 6) {
|
|
1402
|
+
return givenFieldsToBigNano(e, n, p);
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
function nanoToDurationDayTimeFields(e, n = 6) {
|
|
1406
|
+
const [t, o] = e, r = nanoToGivenFields(o, n, p);
|
|
1407
|
+
if (r[p[n]] += t * (Uo / Ao[n]), !Number.isFinite(r[p[n]])) {
|
|
1408
|
+
throw new RangeError(Io);
|
|
1409
|
+
}
|
|
1410
|
+
return r;
|
|
1411
|
+
}
|
|
1412
|
+
|
|
1413
|
+
function nanoToDurationTimeFields(e, n = 5) {
|
|
1414
|
+
return nanoToGivenFields(e, n, p);
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
function durationHasDateParts(e) {
|
|
1418
|
+
return Boolean(computeDurationSign(e, lr));
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1421
|
+
function getMaxDurationUnit(e) {
|
|
1422
|
+
let n = 9;
|
|
1423
|
+
for (;n > 0 && !e[p[n]]; n--) {}
|
|
1424
|
+
return n;
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1427
|
+
function createSplitTuple(e, n) {
|
|
1428
|
+
return [ e, n ];
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1431
|
+
function computePeriod(e) {
|
|
1432
|
+
const n = Math.floor(e / ci) * ci;
|
|
1433
|
+
return [ n, n + ci ];
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
function We(e) {
|
|
1437
|
+
const n = parseDateTimeLike(e = toStringViaPrimitive(e));
|
|
1438
|
+
if (!n) {
|
|
1439
|
+
throw new RangeError(failedParse(e));
|
|
1440
|
+
}
|
|
1441
|
+
let t;
|
|
1442
|
+
if (n.p) {
|
|
1443
|
+
t = 0;
|
|
1444
|
+
} else {
|
|
1445
|
+
if (!n.offset) {
|
|
1446
|
+
throw new RangeError(failedParse(e));
|
|
1447
|
+
}
|
|
1448
|
+
t = parseOffsetNano(n.offset);
|
|
1449
|
+
}
|
|
1450
|
+
return n.timeZone && parseOffsetNanoMaybe(n.timeZone, 1), xe(isoToEpochNanoWithOffset(checkIsoDateTimeFields(n), t));
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
function H(e) {
|
|
1454
|
+
const n = parseDateTimeLike(m(e));
|
|
1455
|
+
if (!n) {
|
|
1456
|
+
throw new RangeError(failedParse(e));
|
|
1457
|
+
}
|
|
1458
|
+
if (n.timeZone) {
|
|
1459
|
+
return finalizeZonedDateTime(n, n.offset ? parseOffsetNano(n.offset) : void 0);
|
|
1460
|
+
}
|
|
1461
|
+
if (n.p) {
|
|
1462
|
+
throw new RangeError(failedParse(e));
|
|
1463
|
+
}
|
|
1464
|
+
return finalizeDate(n);
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
function Ae(e, n) {
|
|
1468
|
+
const t = parseDateTimeLike(m(e));
|
|
1469
|
+
if (!t || !t.timeZone) {
|
|
1470
|
+
throw new RangeError(failedParse(e));
|
|
1471
|
+
}
|
|
1472
|
+
const {offset: o} = t, r = o ? parseOffsetNano(o) : void 0, [, i, a] = je(n);
|
|
1473
|
+
return finalizeZonedDateTime(t, r, i, a);
|
|
1474
|
+
}
|
|
1475
|
+
|
|
1476
|
+
function parseOffsetNano(e) {
|
|
1477
|
+
const n = parseOffsetNanoMaybe(e);
|
|
1478
|
+
if (void 0 === n) {
|
|
1479
|
+
throw new RangeError(failedParse(e));
|
|
1480
|
+
}
|
|
1481
|
+
return n;
|
|
1482
|
+
}
|
|
1483
|
+
|
|
1484
|
+
function Bt(e) {
|
|
1485
|
+
const n = parseDateTimeLike(m(e));
|
|
1486
|
+
if (!n || n.p) {
|
|
1487
|
+
throw new RangeError(failedParse(e));
|
|
1488
|
+
}
|
|
1489
|
+
return jt(finalizeDateTime(n));
|
|
1490
|
+
}
|
|
1491
|
+
|
|
1492
|
+
function de(e, n, t) {
|
|
1493
|
+
let o = parseDateTimeLike(m(e));
|
|
1494
|
+
if (!o || o.p) {
|
|
1495
|
+
throw new RangeError(failedParse(e));
|
|
1496
|
+
}
|
|
1497
|
+
return n ? o.calendar === l && (o = -271821 === o.isoYear && 4 === o.isoMonth ? {
|
|
1498
|
+
...o,
|
|
1499
|
+
isoDay: 20,
|
|
1500
|
+
...Nt
|
|
1501
|
+
} : {
|
|
1502
|
+
...o,
|
|
1503
|
+
isoDay: 1,
|
|
1504
|
+
...Nt
|
|
1505
|
+
}) : t && o.calendar === l && (o = {
|
|
1506
|
+
...o,
|
|
1507
|
+
isoYear: Br
|
|
1508
|
+
}), W(o.h ? finalizeDateTime(o) : finalizeDate(o));
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1511
|
+
function _t(e, n) {
|
|
1512
|
+
const t = parseYearMonthOnly(m(n));
|
|
1513
|
+
if (t) {
|
|
1514
|
+
return requireIsoCalendar(t), createPlainYearMonthSlots(checkIsoYearMonthInBounds(checkIsoDateFields(t)));
|
|
1515
|
+
}
|
|
1516
|
+
const o = de(n, 1);
|
|
1517
|
+
return createPlainYearMonthSlots(moveToDayOfMonthUnsafe(e(o.calendar), o));
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
function requireIsoCalendar(e) {
|
|
1521
|
+
if (e.calendar !== l) {
|
|
1522
|
+
throw new RangeError(invalidSubstring(e.calendar));
|
|
1523
|
+
}
|
|
1524
|
+
}
|
|
1525
|
+
|
|
1526
|
+
function xt(e, n) {
|
|
1527
|
+
const t = parseMonthDayOnly(m(n));
|
|
1528
|
+
if (t) {
|
|
1529
|
+
return requireIsoCalendar(t), createPlainMonthDaySlots(checkIsoDateFields(t));
|
|
1530
|
+
}
|
|
1531
|
+
const o = de(n, 0, 1), {calendar: r} = o, i = e(r), [a, s, c] = i.I(o), [u, f] = i.N(a, s), [l, d] = i.v(u, f, c);
|
|
1532
|
+
return createPlainMonthDaySlots(checkIsoDateInBounds(i.P(l, d, c)), r);
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1535
|
+
function ht(e) {
|
|
1536
|
+
let n, t = (e => {
|
|
1537
|
+
const n = Pi.exec(e);
|
|
1538
|
+
return n ? (organizeAnnotationParts(n[10]), organizeTimeParts(n)) : void 0;
|
|
1539
|
+
})(m(e));
|
|
1540
|
+
if (!t) {
|
|
1541
|
+
if (t = parseDateTimeLike(e), !t) {
|
|
1542
|
+
throw new RangeError(failedParse(e));
|
|
1543
|
+
}
|
|
1544
|
+
if (!t.h) {
|
|
1545
|
+
throw new RangeError(failedParse(e));
|
|
1546
|
+
}
|
|
1547
|
+
if (t.p) {
|
|
1548
|
+
throw new RangeError(invalidSubstring("Z"));
|
|
1549
|
+
}
|
|
1550
|
+
requireIsoCalendar(t);
|
|
1551
|
+
}
|
|
1552
|
+
if ((n = parseYearMonthOnly(e)) && isIsoDateFieldsValid(n)) {
|
|
1553
|
+
throw new RangeError(failedParse(e));
|
|
1554
|
+
}
|
|
1555
|
+
if ((n = parseMonthDayOnly(e)) && isIsoDateFieldsValid(n)) {
|
|
1556
|
+
throw new RangeError(failedParse(e));
|
|
1557
|
+
}
|
|
1558
|
+
return St(constrainIsoTimeFields(t, 1));
|
|
1559
|
+
}
|
|
1560
|
+
|
|
1561
|
+
function R(e) {
|
|
1562
|
+
const n = (e => {
|
|
1563
|
+
const n = Fi.exec(e);
|
|
1564
|
+
return n ? (e => {
|
|
1565
|
+
function parseUnit(e, r, i) {
|
|
1566
|
+
let a = 0, s = 0;
|
|
1567
|
+
if (i && ([a, o] = divModFloor(o, Ao[i])), void 0 !== e) {
|
|
1568
|
+
if (t) {
|
|
1569
|
+
throw new RangeError(invalidSubstring(e));
|
|
1570
|
+
}
|
|
1571
|
+
s = (e => {
|
|
1572
|
+
const n = parseInt(e);
|
|
1573
|
+
if (!Number.isFinite(n)) {
|
|
1574
|
+
throw new RangeError(invalidSubstring(e));
|
|
1575
|
+
}
|
|
1576
|
+
return n;
|
|
1577
|
+
})(e), n = 1, r && (o = parseSubsecNano(r) * (Ao[i] / Ro), t = 1);
|
|
1578
|
+
}
|
|
1579
|
+
return a + s;
|
|
1580
|
+
}
|
|
1581
|
+
let n = 0, t = 0, o = 0, r = {
|
|
1582
|
+
...zipProps(p, [ parseUnit(e[2]), parseUnit(e[3]), parseUnit(e[4]), parseUnit(e[5]), parseUnit(e[6], e[7], 5), parseUnit(e[8], e[9], 4), parseUnit(e[10], e[11], 3) ]),
|
|
1583
|
+
...nanoToGivenFields(o, 2, p)
|
|
1584
|
+
};
|
|
1585
|
+
if (!n) {
|
|
1586
|
+
throw new RangeError(noValidFields(p));
|
|
1587
|
+
}
|
|
1588
|
+
return parseSign(e[1]) < 0 && (r = negateDurationFields(r)), r;
|
|
1589
|
+
})(n) : void 0;
|
|
1590
|
+
})(m(e));
|
|
1591
|
+
if (!n) {
|
|
1592
|
+
throw new RangeError(failedParse(e));
|
|
1593
|
+
}
|
|
1594
|
+
return Oe(checkDurationUnits(n));
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
function f(e) {
|
|
1598
|
+
const n = parseDateTimeLike(e) || parseYearMonthOnly(e) || parseMonthDayOnly(e);
|
|
1599
|
+
return n ? n.calendar : e;
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1602
|
+
function Z(e) {
|
|
1603
|
+
const n = parseDateTimeLike(e);
|
|
1604
|
+
return n && (n.timeZone || n.p && si || n.offset) || e;
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
function finalizeZonedDateTime(e, n, t = 0, o = 0) {
|
|
1608
|
+
const r = M(e.timeZone), i = L(r);
|
|
1609
|
+
let a;
|
|
1610
|
+
return checkIsoDateTimeFields(e), a = e.h ? getMatchingInstantFor(i, e, n, t, o, !i.F, e.p) : getStartOfDayInstantFor(i, e),
|
|
1611
|
+
_e(a, r, u(e.calendar));
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
function finalizeDateTime(e) {
|
|
1615
|
+
return resolveSlotsCalendar(checkIsoDateTimeInBounds(checkIsoDateTimeFields(e)));
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
function finalizeDate(e) {
|
|
1619
|
+
return resolveSlotsCalendar(checkIsoDateInBounds(checkIsoDateFields(e)));
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
function resolveSlotsCalendar(e) {
|
|
1623
|
+
return {
|
|
1624
|
+
...e,
|
|
1625
|
+
calendar: u(e.calendar)
|
|
1626
|
+
};
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
function parseDateTimeLike(e) {
|
|
1630
|
+
const n = vi.exec(e);
|
|
1631
|
+
return n ? (e => {
|
|
1632
|
+
const n = e[10], t = "Z" === (n || "").toUpperCase();
|
|
1633
|
+
return {
|
|
1634
|
+
isoYear: organizeIsoYearParts(e),
|
|
1635
|
+
isoMonth: parseInt(e[4]),
|
|
1636
|
+
isoDay: parseInt(e[5]),
|
|
1637
|
+
...organizeTimeParts(e.slice(5)),
|
|
1638
|
+
...organizeAnnotationParts(e[16]),
|
|
1639
|
+
h: Boolean(e[6]),
|
|
1640
|
+
p: t,
|
|
1641
|
+
offset: t ? void 0 : n
|
|
1642
|
+
};
|
|
1643
|
+
})(n) : void 0;
|
|
1644
|
+
}
|
|
1645
|
+
|
|
1646
|
+
function parseYearMonthOnly(e) {
|
|
1647
|
+
const n = Ni.exec(e);
|
|
1648
|
+
return n ? (e => ({
|
|
1649
|
+
isoYear: organizeIsoYearParts(e),
|
|
1650
|
+
isoMonth: parseInt(e[4]),
|
|
1651
|
+
isoDay: 1,
|
|
1652
|
+
...organizeAnnotationParts(e[5])
|
|
1653
|
+
}))(n) : void 0;
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1656
|
+
function parseMonthDayOnly(e) {
|
|
1657
|
+
const n = yi.exec(e);
|
|
1658
|
+
return n ? (e => ({
|
|
1659
|
+
isoYear: Br,
|
|
1660
|
+
isoMonth: parseInt(e[1]),
|
|
1661
|
+
isoDay: parseInt(e[2]),
|
|
1662
|
+
...organizeAnnotationParts(e[3])
|
|
1663
|
+
}))(n) : void 0;
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1666
|
+
function parseOffsetNanoMaybe(e, n) {
|
|
1667
|
+
const t = Ei.exec(e);
|
|
1668
|
+
return t ? ((e, n) => {
|
|
1669
|
+
const t = e[4] || e[5];
|
|
1670
|
+
if (n && t) {
|
|
1671
|
+
throw new RangeError(invalidSubstring(t));
|
|
1672
|
+
}
|
|
1673
|
+
return (e => {
|
|
1674
|
+
if (Math.abs(e) >= Uo) {
|
|
1675
|
+
throw new RangeError(ho);
|
|
1676
|
+
}
|
|
1677
|
+
return e;
|
|
1678
|
+
})((parseInt0(e[2]) * zo + parseInt0(e[3]) * Zo + parseInt0(e[4]) * Ro + parseSubsecNano(e[5] || "")) * parseSign(e[1]));
|
|
1679
|
+
})(t, n) : void 0;
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1682
|
+
function organizeIsoYearParts(e) {
|
|
1683
|
+
const n = parseSign(e[1]), t = parseInt(e[2] || e[3]);
|
|
1684
|
+
if (n < 0 && !t) {
|
|
1685
|
+
throw new RangeError(invalidSubstring(-0));
|
|
1686
|
+
}
|
|
1687
|
+
return n * t;
|
|
1688
|
+
}
|
|
1689
|
+
|
|
1690
|
+
function organizeTimeParts(e) {
|
|
1691
|
+
const n = parseInt0(e[3]);
|
|
1692
|
+
return {
|
|
1693
|
+
...nanoToIsoTimeAndDay(parseSubsecNano(e[4] || ""))[0],
|
|
1694
|
+
isoHour: parseInt0(e[1]),
|
|
1695
|
+
isoMinute: parseInt0(e[2]),
|
|
1696
|
+
isoSecond: 60 === n ? 59 : n
|
|
1697
|
+
};
|
|
1698
|
+
}
|
|
1699
|
+
|
|
1700
|
+
function organizeAnnotationParts(e) {
|
|
1701
|
+
let n, t;
|
|
1702
|
+
const o = [];
|
|
1703
|
+
if (e.replace(Si, ((e, r, i) => {
|
|
1704
|
+
const a = Boolean(r), [s, c] = i.split("=").reverse();
|
|
1705
|
+
if (c) {
|
|
1706
|
+
if ("u-ca" === c) {
|
|
1707
|
+
o.push(s), n || (n = a);
|
|
1708
|
+
} else if (a || /[A-Z]/.test(c)) {
|
|
1709
|
+
throw new RangeError(invalidSubstring(e));
|
|
1710
|
+
}
|
|
1711
|
+
} else {
|
|
1712
|
+
if (t) {
|
|
1713
|
+
throw new RangeError(invalidSubstring(e));
|
|
1714
|
+
}
|
|
1715
|
+
t = s;
|
|
1716
|
+
}
|
|
1717
|
+
return "";
|
|
1718
|
+
})), o.length > 1 && n) {
|
|
1719
|
+
throw new RangeError(invalidSubstring(e));
|
|
1720
|
+
}
|
|
1721
|
+
return {
|
|
1722
|
+
timeZone: t,
|
|
1723
|
+
calendar: o[0] || l
|
|
1724
|
+
};
|
|
1725
|
+
}
|
|
1726
|
+
|
|
1727
|
+
function parseSubsecNano(e) {
|
|
1728
|
+
return parseInt(e.padEnd(9, "0"));
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
function createRegExp(e) {
|
|
1732
|
+
return new RegExp(`^${e}$`, "i");
|
|
1733
|
+
}
|
|
1734
|
+
|
|
1735
|
+
function parseSign(e) {
|
|
1736
|
+
return e && "+" !== e ? -1 : 1;
|
|
1737
|
+
}
|
|
1738
|
+
|
|
1739
|
+
function parseInt0(e) {
|
|
1740
|
+
return void 0 === e ? 0 : parseInt(e);
|
|
1741
|
+
}
|
|
1742
|
+
|
|
1743
|
+
function Ze(e) {
|
|
1744
|
+
return M(m(e));
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1747
|
+
function M(e) {
|
|
1748
|
+
const n = getTimeZoneEssence(e);
|
|
1749
|
+
return "number" == typeof n ? Se(n) : n ? (e => {
|
|
1750
|
+
if (Oi.test(e)) {
|
|
1751
|
+
throw new RangeError(F(e));
|
|
1752
|
+
}
|
|
1753
|
+
if (bi.test(e)) {
|
|
1754
|
+
throw new RangeError(po);
|
|
1755
|
+
}
|
|
1756
|
+
return e.toLowerCase().split("/").map(((e, n) => (e.length <= 3 || /\d/.test(e)) && !/etc|yap/.test(e) ? e.toUpperCase() : e.replace(/baja|dumont|[a-z]+/g, ((e, t) => e.length <= 2 && !n || "in" === e || "chat" === e ? e.toUpperCase() : e.length > 2 || !t ? capitalize(e).replace(/island|noronha|murdo|rivadavia|urville/, capitalize) : e)))).join("/");
|
|
1757
|
+
})(e) : si;
|
|
1758
|
+
}
|
|
1759
|
+
|
|
1760
|
+
function getTimeZoneAtomic(e) {
|
|
1761
|
+
const n = getTimeZoneEssence(e);
|
|
1762
|
+
return "number" == typeof n ? n : n ? n.resolvedOptions().timeZone : si;
|
|
1763
|
+
}
|
|
1764
|
+
|
|
1765
|
+
function getTimeZoneEssence(e) {
|
|
1766
|
+
const n = parseOffsetNanoMaybe(e = e.toUpperCase(), 1);
|
|
1767
|
+
return void 0 !== n ? n : e !== si ? wi(e) : void 0;
|
|
1768
|
+
}
|
|
1769
|
+
|
|
1770
|
+
function Ke(e, n) {
|
|
1771
|
+
return compareBigNanos(e.epochNanoseconds, n.epochNanoseconds);
|
|
1772
|
+
}
|
|
1773
|
+
|
|
1774
|
+
function Be(e, n) {
|
|
1775
|
+
return compareBigNanos(e.epochNanoseconds, n.epochNanoseconds);
|
|
1776
|
+
}
|
|
1777
|
+
|
|
1778
|
+
function K(e, n, t, o, r, i) {
|
|
1779
|
+
const a = e(normalizeOptions(i).relativeTo), s = Math.max(getMaxDurationUnit(o), getMaxDurationUnit(r));
|
|
1780
|
+
if (allPropsEqual(p, o, r)) {
|
|
1781
|
+
return 0;
|
|
1782
|
+
}
|
|
1783
|
+
if (isUniformUnit(s, a)) {
|
|
1784
|
+
return compareBigNanos(durationFieldsToBigNano(o), durationFieldsToBigNano(r));
|
|
1785
|
+
}
|
|
1786
|
+
if (!a) {
|
|
1787
|
+
throw new RangeError(yo);
|
|
1788
|
+
}
|
|
1789
|
+
const [c, u, f] = createMarkerSystem(n, t, a), l = createMarkerToEpochNano(f), d = createMoveMarker(f);
|
|
1790
|
+
return compareBigNanos(l(d(u, c, o)), l(d(u, c, r)));
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1793
|
+
function Yt(e, n) {
|
|
1794
|
+
return te(e, n) || Dt(e, n);
|
|
1795
|
+
}
|
|
1796
|
+
|
|
1797
|
+
function te(e, n) {
|
|
1798
|
+
return compareNumbers(isoToEpochMilli(e), isoToEpochMilli(n));
|
|
1799
|
+
}
|
|
1800
|
+
|
|
1801
|
+
function Dt(e, n) {
|
|
1802
|
+
return compareNumbers(isoTimeFieldsToNano(e), isoTimeFieldsToNano(n));
|
|
1803
|
+
}
|
|
1804
|
+
|
|
1805
|
+
function Ve(e, n) {
|
|
1806
|
+
return !Ke(e, n);
|
|
1807
|
+
}
|
|
1808
|
+
|
|
1809
|
+
function Ce(e, n) {
|
|
1810
|
+
return !Be(e, n) && !!isTimeZoneIdsEqual(e.timeZone, n.timeZone) && e.calendar === n.calendar;
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
function Ct(e, n) {
|
|
1814
|
+
return !Yt(e, n) && e.calendar === n.calendar;
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1817
|
+
function re(e, n) {
|
|
1818
|
+
return !te(e, n) && e.calendar === n.calendar;
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
function $t(e, n) {
|
|
1822
|
+
return !te(e, n) && e.calendar === n.calendar;
|
|
1823
|
+
}
|
|
1824
|
+
|
|
1825
|
+
function Lt(e, n) {
|
|
1826
|
+
return !te(e, n) && e.calendar === n.calendar;
|
|
1827
|
+
}
|
|
1828
|
+
|
|
1829
|
+
function st(e, n) {
|
|
1830
|
+
return !Dt(e, n);
|
|
1831
|
+
}
|
|
1832
|
+
|
|
1833
|
+
function isTimeZoneIdsEqual(e, n) {
|
|
1834
|
+
if (e === n) {
|
|
1835
|
+
return 1;
|
|
1836
|
+
}
|
|
1837
|
+
try {
|
|
1838
|
+
return getTimeZoneAtomic(e) === getTimeZoneAtomic(n);
|
|
1839
|
+
} catch (e) {}
|
|
1840
|
+
}
|
|
1841
|
+
|
|
1842
|
+
function Ee(e, n, t, o) {
|
|
1843
|
+
const r = refineDiffOptions(e, o, 3, 5), i = diffEpochNanos(n.epochNanoseconds, t.epochNanoseconds, ...r);
|
|
1844
|
+
return Oe(e ? negateDurationFields(i) : i);
|
|
1845
|
+
}
|
|
1846
|
+
|
|
1847
|
+
function we(e, n, t, o, r, i) {
|
|
1848
|
+
const a = getCommonCalendarId(o.calendar, r.calendar), [s, c, u, f] = refineDiffOptions(t, i, 5), l = o.epochNanoseconds, d = r.epochNanoseconds, m = compareBigNanos(d, l);
|
|
1849
|
+
let p;
|
|
1850
|
+
if (m) {
|
|
1851
|
+
if (s < 6) {
|
|
1852
|
+
p = diffEpochNanos(l, d, s, c, u, f);
|
|
1853
|
+
} else {
|
|
1854
|
+
const t = n(((e, n) => {
|
|
1855
|
+
if (!isTimeZoneIdsEqual(e, n)) {
|
|
1856
|
+
throw new RangeError(mo);
|
|
1857
|
+
}
|
|
1858
|
+
return e;
|
|
1859
|
+
})(o.timeZone, r.timeZone)), l = e(a);
|
|
1860
|
+
p = diffZonedEpochsBig(l, t, o, r, m, s, i), p = roundRelativeDuration(p, d, s, c, u, f, l, o, extractEpochNano, Pt(moveZonedEpochs, t));
|
|
1861
|
+
}
|
|
1862
|
+
} else {
|
|
1863
|
+
p = pr;
|
|
1864
|
+
}
|
|
1865
|
+
return Oe(t ? negateDurationFields(p) : p);
|
|
1866
|
+
}
|
|
1867
|
+
|
|
1868
|
+
function It(e, n, t, o, r) {
|
|
1869
|
+
const i = getCommonCalendarId(t.calendar, o.calendar), [a, s, c, u] = refineDiffOptions(n, r, 6), f = isoToEpochNano(t), l = isoToEpochNano(o), d = compareBigNanos(l, f);
|
|
1870
|
+
let m;
|
|
1871
|
+
if (d) {
|
|
1872
|
+
if (a <= 6) {
|
|
1873
|
+
m = diffEpochNanos(f, l, a, s, c, u);
|
|
1874
|
+
} else {
|
|
1875
|
+
const n = e(i);
|
|
1876
|
+
m = diffDateTimesBig(n, t, o, d, a, r), m = roundRelativeDuration(m, l, a, s, c, u, n, t, isoToEpochNano, moveDateTime);
|
|
1877
|
+
}
|
|
1878
|
+
} else {
|
|
1879
|
+
m = pr;
|
|
1880
|
+
}
|
|
1881
|
+
return Oe(n ? negateDurationFields(m) : m);
|
|
1882
|
+
}
|
|
1883
|
+
|
|
1884
|
+
function oe(e, n, t, o, r) {
|
|
1885
|
+
const i = getCommonCalendarId(t.calendar, o.calendar);
|
|
1886
|
+
return diffDateLike(n, (() => e(i)), t, o, ...refineDiffOptions(n, r, 6, 9, 6));
|
|
1887
|
+
}
|
|
1888
|
+
|
|
1889
|
+
function zt(e, n, t, o, r) {
|
|
1890
|
+
const i = getCommonCalendarId(t.calendar, o.calendar), a = refineDiffOptions(n, r, 9, 9, 8), s = e(i), c = moveToDayOfMonthUnsafe(s, t), u = moveToDayOfMonthUnsafe(s, o);
|
|
1891
|
+
return c.isoYear === u.isoYear && c.isoMonth === u.isoMonth && c.isoDay === u.isoDay ? Oe(pr) : diffDateLike(n, (() => s), checkIsoDateInBounds(c), checkIsoDateInBounds(u), ...a, 8);
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
function diffDateLike(e, n, t, o, r, i, a, s, c = 6) {
|
|
1895
|
+
const u = isoToEpochNano(t), f = isoToEpochNano(o);
|
|
1896
|
+
if (void 0 === u || void 0 === f) {
|
|
1897
|
+
throw new RangeError(Io);
|
|
1898
|
+
}
|
|
1899
|
+
let l;
|
|
1900
|
+
if (compareBigNanos(f, u)) {
|
|
1901
|
+
if (6 === r) {
|
|
1902
|
+
l = diffEpochNanos(u, f, r, i, a, s);
|
|
1903
|
+
} else {
|
|
1904
|
+
const e = n();
|
|
1905
|
+
l = e.O(t, o, r), i === c && 1 === a || (l = roundRelativeDuration(l, f, r, i, a, s, e, t, isoToEpochNano, moveDate));
|
|
1906
|
+
}
|
|
1907
|
+
} else {
|
|
1908
|
+
l = pr;
|
|
1909
|
+
}
|
|
1910
|
+
return Oe(e ? negateDurationFields(l) : l);
|
|
1911
|
+
}
|
|
1912
|
+
|
|
1913
|
+
function it(e, n, t, o) {
|
|
1914
|
+
const [r, i, a, s] = refineDiffOptions(e, o, 5, 5), c = roundByInc(diffTimes(n, t), computeNanoInc(i, a), s), u = {
|
|
1915
|
+
...pr,
|
|
1916
|
+
...nanoToDurationTimeFields(c, r)
|
|
1917
|
+
};
|
|
1918
|
+
return Oe(e ? negateDurationFields(u) : u);
|
|
1919
|
+
}
|
|
1920
|
+
|
|
1921
|
+
function diffZonedEpochsExact(e, n, t, o, r, i) {
|
|
1922
|
+
const a = compareBigNanos(o.epochNanoseconds, t.epochNanoseconds);
|
|
1923
|
+
return a ? r < 6 ? diffEpochNanosExact(t.epochNanoseconds, o.epochNanoseconds, r) : diffZonedEpochsBig(n, e, t, o, a, r, i) : pr;
|
|
1924
|
+
}
|
|
1925
|
+
|
|
1926
|
+
function diffDateTimesExact(e, n, t, o, r) {
|
|
1927
|
+
const i = isoToEpochNano(n), a = isoToEpochNano(t), s = compareBigNanos(a, i);
|
|
1928
|
+
return s ? o <= 6 ? diffEpochNanosExact(i, a, o) : diffDateTimesBig(e, n, t, s, o, r) : pr;
|
|
1929
|
+
}
|
|
1930
|
+
|
|
1931
|
+
function diffZonedEpochsBig(e, n, t, o, r, i, a) {
|
|
1932
|
+
const [s, c, u] = ((e, n, t, o) => {
|
|
1933
|
+
function updateMid() {
|
|
1934
|
+
return f = {
|
|
1935
|
+
...moveByDays(a, c++ * -o),
|
|
1936
|
+
...i
|
|
1937
|
+
}, l = getSingleInstantFor(e, f), compareBigNanos(s, l) === -o;
|
|
1938
|
+
}
|
|
1939
|
+
const r = he(n, e), i = nn(w, r), a = he(t, e), s = t.epochNanoseconds;
|
|
1940
|
+
let c = 0;
|
|
1941
|
+
const u = diffTimes(r, a);
|
|
1942
|
+
let f, l;
|
|
1943
|
+
if (Math.sign(u) === -o && c++, updateMid() && (-1 === o || updateMid())) {
|
|
1944
|
+
throw new RangeError(fo);
|
|
1945
|
+
}
|
|
1946
|
+
const d = bigNanoToNumber(diffBigNanos(l, s));
|
|
1947
|
+
return [ r, f, d ];
|
|
1948
|
+
})(n, t, o, r);
|
|
1949
|
+
var f, l;
|
|
1950
|
+
return {
|
|
1951
|
+
...6 === i ? (f = s, l = c, {
|
|
1952
|
+
...pr,
|
|
1953
|
+
days: diffDays(f, l)
|
|
1954
|
+
}) : e.O(s, c, i, a),
|
|
1955
|
+
...nanoToDurationTimeFields(u)
|
|
1956
|
+
};
|
|
1957
|
+
}
|
|
1958
|
+
|
|
1959
|
+
function diffDateTimesBig(e, n, t, o, r, i) {
|
|
1960
|
+
const [a, s, c] = ((e, n, t) => {
|
|
1961
|
+
let o = n, r = diffTimes(e, n);
|
|
1962
|
+
return Math.sign(r) === -t && (o = moveByDays(n, -t), r += Uo * t), [ e, o, r ];
|
|
1963
|
+
})(n, t, o);
|
|
1964
|
+
return {
|
|
1965
|
+
...e.O(a, s, r, i),
|
|
1966
|
+
...nanoToDurationTimeFields(c)
|
|
1967
|
+
};
|
|
1968
|
+
}
|
|
1969
|
+
|
|
1970
|
+
function diffEpochNanos(e, n, t, o, r, i) {
|
|
1971
|
+
return {
|
|
1972
|
+
...pr,
|
|
1973
|
+
...nanoToDurationDayTimeFields(roundBigNano(diffBigNanos(e, n), o, r, i), t)
|
|
1974
|
+
};
|
|
1975
|
+
}
|
|
1976
|
+
|
|
1977
|
+
function diffEpochNanosExact(e, n, t) {
|
|
1978
|
+
return {
|
|
1979
|
+
...pr,
|
|
1980
|
+
...nanoToDurationDayTimeFields(diffBigNanos(e, n), t)
|
|
1981
|
+
};
|
|
1982
|
+
}
|
|
1983
|
+
|
|
1984
|
+
function diffDays(e, n) {
|
|
1985
|
+
return diffEpochMilliByDay(isoToEpochMilli(e), isoToEpochMilli(n));
|
|
1986
|
+
}
|
|
1987
|
+
|
|
1988
|
+
function diffEpochMilliByDay(e, n) {
|
|
1989
|
+
return Math.trunc((n - e) / ko);
|
|
1990
|
+
}
|
|
1991
|
+
|
|
1992
|
+
function diffTimes(e, n) {
|
|
1993
|
+
return isoTimeFieldsToNano(n) - isoTimeFieldsToNano(e);
|
|
1994
|
+
}
|
|
1995
|
+
|
|
1996
|
+
function getCommonCalendarId(e, n) {
|
|
1997
|
+
if (e !== n) {
|
|
1998
|
+
throw new RangeError(lo);
|
|
1999
|
+
}
|
|
2000
|
+
return e;
|
|
2001
|
+
}
|
|
2002
|
+
|
|
2003
|
+
function computeNativeWeekOfYear(e) {
|
|
2004
|
+
return this.B(e)[0];
|
|
2005
|
+
}
|
|
2006
|
+
|
|
2007
|
+
function computeNativeYearOfWeek(e) {
|
|
2008
|
+
return this.B(e)[1];
|
|
2009
|
+
}
|
|
2010
|
+
|
|
2011
|
+
function computeNativeDayOfYear(e) {
|
|
2012
|
+
const [n] = this.I(e);
|
|
2013
|
+
return diffEpochMilliByDay(this.k(n), isoToEpochMilli(e)) + 1;
|
|
2014
|
+
}
|
|
2015
|
+
|
|
2016
|
+
function parseMonthCode(e) {
|
|
2017
|
+
const n = Bi.exec(e);
|
|
2018
|
+
if (!n) {
|
|
2019
|
+
throw new RangeError(invalidMonthCode(e));
|
|
2020
|
+
}
|
|
2021
|
+
return [ parseInt(n[1]), Boolean(n[2]) ];
|
|
2022
|
+
}
|
|
2023
|
+
|
|
2024
|
+
function formatMonthCode(e, n) {
|
|
2025
|
+
return "M" + bo(e) + (n ? "L" : "");
|
|
2026
|
+
}
|
|
2027
|
+
|
|
2028
|
+
function monthCodeNumberToMonth(e, n, t) {
|
|
2029
|
+
return e + (n || t && e >= t ? 1 : 0);
|
|
2030
|
+
}
|
|
2031
|
+
|
|
2032
|
+
function monthToMonthCodeNumber(e, n) {
|
|
2033
|
+
return e - (n && e >= n ? 1 : 0);
|
|
2034
|
+
}
|
|
2035
|
+
|
|
2036
|
+
function eraYearToYear(e, n) {
|
|
2037
|
+
return (n + e) * (Math.sign(n) || 1) || 0;
|
|
2038
|
+
}
|
|
2039
|
+
|
|
2040
|
+
function getCalendarEraOrigins(e) {
|
|
2041
|
+
return ir[getCalendarIdBase(e)];
|
|
2042
|
+
}
|
|
2043
|
+
|
|
2044
|
+
function getCalendarLeapMonthMeta(e) {
|
|
2045
|
+
return sr[getCalendarIdBase(e)];
|
|
2046
|
+
}
|
|
2047
|
+
|
|
2048
|
+
function getCalendarIdBase(e) {
|
|
2049
|
+
return computeCalendarIdBase(e.id || l);
|
|
2050
|
+
}
|
|
2051
|
+
|
|
2052
|
+
function createIntlCalendar(e) {
|
|
2053
|
+
function epochMilliToIntlFields(e) {
|
|
2054
|
+
return ((e, n) => ({
|
|
2055
|
+
...parseIntlYear(e, n),
|
|
2056
|
+
C: e.month,
|
|
2057
|
+
day: parseInt(e.day)
|
|
2058
|
+
}))(hashIntlFormatParts(n, e), t);
|
|
2059
|
+
}
|
|
2060
|
+
const n = Ci(e), t = computeCalendarIdBase(e);
|
|
2061
|
+
return {
|
|
2062
|
+
id: e,
|
|
2063
|
+
R: createIntlFieldCache(epochMilliToIntlFields),
|
|
2064
|
+
U: createIntlYearDataCache(epochMilliToIntlFields)
|
|
2065
|
+
};
|
|
2066
|
+
}
|
|
2067
|
+
|
|
2068
|
+
function createIntlFieldCache(e) {
|
|
2069
|
+
return on((n => {
|
|
2070
|
+
const t = isoToEpochMilli(n);
|
|
2071
|
+
return e(t);
|
|
2072
|
+
}), WeakMap);
|
|
2073
|
+
}
|
|
2074
|
+
|
|
2075
|
+
function createIntlYearDataCache(e) {
|
|
2076
|
+
const n = e(0).year - Or;
|
|
2077
|
+
return on((t => {
|
|
2078
|
+
let o, r = isoArgsToEpochMilli(t - n), i = 0;
|
|
2079
|
+
const a = [], s = [];
|
|
2080
|
+
do {
|
|
2081
|
+
r += 400 * ko;
|
|
2082
|
+
} while ((o = e(r)).year <= t);
|
|
2083
|
+
do {
|
|
2084
|
+
if (r += (1 - o.day) * ko, o.year === t && (a.push(r), s.push(o.C)), r -= ko, ++i > 100 || r < -Pr) {
|
|
2085
|
+
throw new RangeError(fo);
|
|
2086
|
+
}
|
|
2087
|
+
} while ((o = e(r)).year >= t);
|
|
2088
|
+
return {
|
|
2089
|
+
q: a.reverse(),
|
|
2090
|
+
j: Fo(s.reverse())
|
|
2091
|
+
};
|
|
2092
|
+
}));
|
|
2093
|
+
}
|
|
2094
|
+
|
|
2095
|
+
function parseIntlYear(e, n) {
|
|
2096
|
+
let t, o, r = parseIntlPartsYear(e);
|
|
2097
|
+
if (e.era) {
|
|
2098
|
+
const i = ir[n], a = ar[n] || {};
|
|
2099
|
+
void 0 !== i && (t = "islamic" === n ? "ah" : e.era.normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g, ""),
|
|
2100
|
+
"bc" === t || "b" === t ? t = "bce" : "ad" === t || "a" === t ? t = "ce" : "beforeroc" === t && (t = "broc"),
|
|
2101
|
+
t = a[t] || t, o = r, r = eraYearToYear(o, i[t] || 0));
|
|
2102
|
+
}
|
|
2103
|
+
return {
|
|
2104
|
+
era: t,
|
|
2105
|
+
eraYear: o,
|
|
2106
|
+
year: r
|
|
2107
|
+
};
|
|
2108
|
+
}
|
|
2109
|
+
|
|
2110
|
+
function parseIntlPartsYear(e) {
|
|
2111
|
+
return parseInt(e.relatedYear || e.year);
|
|
2112
|
+
}
|
|
2113
|
+
|
|
2114
|
+
function computeIntlDateParts(e) {
|
|
2115
|
+
const {year: n, C: t, day: o} = this.R(e), {j: r} = this.U(n);
|
|
2116
|
+
return [ n, r[t] + 1, o ];
|
|
2117
|
+
}
|
|
2118
|
+
|
|
2119
|
+
function computeIntlEpochMilli(e, n = 1, t = 1) {
|
|
2120
|
+
return this.U(e).q[n - 1] + (t - 1) * ko;
|
|
2121
|
+
}
|
|
2122
|
+
|
|
2123
|
+
function computeIntlMonthCodeParts(e, n) {
|
|
2124
|
+
const t = computeIntlLeapMonth.call(this, e);
|
|
2125
|
+
return [ monthToMonthCodeNumber(n, t), t === n ];
|
|
2126
|
+
}
|
|
2127
|
+
|
|
2128
|
+
function computeIntlLeapMonth(e) {
|
|
2129
|
+
const n = queryMonthStrings(this, e), t = queryMonthStrings(this, e - 1), o = n.length;
|
|
2130
|
+
if (o > t.length) {
|
|
2131
|
+
const e = getCalendarLeapMonthMeta(this);
|
|
2132
|
+
if (e < 0) {
|
|
2133
|
+
return -e;
|
|
2134
|
+
}
|
|
2135
|
+
for (let e = 0; e < o; e++) {
|
|
2136
|
+
if (n[e] !== t[e]) {
|
|
2137
|
+
return e + 1;
|
|
2138
|
+
}
|
|
2139
|
+
}
|
|
2140
|
+
}
|
|
2141
|
+
}
|
|
2142
|
+
|
|
2143
|
+
function computeIntlDaysInYear(e) {
|
|
2144
|
+
return diffEpochMilliByDay(computeIntlEpochMilli.call(this, e), computeIntlEpochMilli.call(this, e + 1));
|
|
2145
|
+
}
|
|
2146
|
+
|
|
2147
|
+
function computeIntlDaysInMonth(e, n) {
|
|
2148
|
+
const {q: t} = this.U(e);
|
|
2149
|
+
let o = n + 1, r = t;
|
|
2150
|
+
return o > t.length && (o = 1, r = this.U(e + 1).q), diffEpochMilliByDay(t[n - 1], r[o - 1]);
|
|
2151
|
+
}
|
|
2152
|
+
|
|
2153
|
+
function computeIntlMonthsInYear(e) {
|
|
2154
|
+
return this.U(e).q.length;
|
|
2155
|
+
}
|
|
2156
|
+
|
|
2157
|
+
function computeIntlEraParts(e) {
|
|
2158
|
+
const n = this.R(e);
|
|
2159
|
+
return [ n.era, n.eraYear ];
|
|
2160
|
+
}
|
|
2161
|
+
|
|
2162
|
+
function queryMonthStrings(e, n) {
|
|
2163
|
+
return Object.keys(e.U(n).j);
|
|
2164
|
+
}
|
|
2165
|
+
|
|
2166
|
+
function Mt(e) {
|
|
2167
|
+
return u(m(e));
|
|
2168
|
+
}
|
|
2169
|
+
|
|
2170
|
+
function u(e) {
|
|
2171
|
+
if ((e = e.toLowerCase()) !== l && e !== or) {
|
|
2172
|
+
const n = Ci(e).resolvedOptions().calendar;
|
|
2173
|
+
if (computeCalendarIdBase(e) !== computeCalendarIdBase(n)) {
|
|
2174
|
+
throw new RangeError(c(e));
|
|
2175
|
+
}
|
|
2176
|
+
return n;
|
|
2177
|
+
}
|
|
2178
|
+
return e;
|
|
2179
|
+
}
|
|
2180
|
+
|
|
2181
|
+
function computeCalendarIdBase(e) {
|
|
2182
|
+
return "islamicc" === e && (e = "islamic"), e.split("-")[0];
|
|
2183
|
+
}
|
|
2184
|
+
|
|
2185
|
+
function createNativeOpsCreator(e, n) {
|
|
2186
|
+
return t => t === l ? e : t === or || t === rr ? Object.assign(Object.create(e), {
|
|
2187
|
+
id: t
|
|
2188
|
+
}) : Object.assign(Object.create(n), ki(t));
|
|
2189
|
+
}
|
|
2190
|
+
|
|
2191
|
+
function $(e, n, t, o) {
|
|
2192
|
+
const r = refineCalendarFields(t, o, Xo, [], xo);
|
|
2193
|
+
if (void 0 !== r.timeZone) {
|
|
2194
|
+
const o = t.L(r), i = refineTimeBag(r), a = e(r.timeZone);
|
|
2195
|
+
return {
|
|
2196
|
+
epochNanoseconds: getMatchingInstantFor(n(a), {
|
|
2197
|
+
...o,
|
|
2198
|
+
...i
|
|
2199
|
+
}, void 0 !== r.offset ? parseOffsetNano(r.offset) : void 0),
|
|
2200
|
+
timeZone: a
|
|
2201
|
+
};
|
|
2202
|
+
}
|
|
2203
|
+
return {
|
|
2204
|
+
...t.L(r),
|
|
2205
|
+
...Nt
|
|
2206
|
+
};
|
|
2207
|
+
}
|
|
2208
|
+
|
|
2209
|
+
function Ne(e, n, t, o, r, i) {
|
|
2210
|
+
const a = refineCalendarFields(t, r, Xo, jo, xo), s = e(a.timeZone), [c, u, f] = je(i), l = t.L(a, fabricateOverflowOptions(c)), d = refineTimeBag(a, c);
|
|
2211
|
+
return _e(getMatchingInstantFor(n(s), {
|
|
2212
|
+
...l,
|
|
2213
|
+
...d
|
|
2214
|
+
}, void 0 !== a.offset ? parseOffsetNano(a.offset) : void 0, u, f), s, o);
|
|
2215
|
+
}
|
|
2216
|
+
|
|
2217
|
+
function At(e, n, t) {
|
|
2218
|
+
const o = refineCalendarFields(e, n, Xo, [], O), r = mt(t);
|
|
2219
|
+
return jt(checkIsoDateTimeInBounds({
|
|
2220
|
+
...e.L(o, fabricateOverflowOptions(r)),
|
|
2221
|
+
...refineTimeBag(o, r)
|
|
2222
|
+
}));
|
|
2223
|
+
}
|
|
2224
|
+
|
|
2225
|
+
function me(e, n, t, o = []) {
|
|
2226
|
+
const r = refineCalendarFields(e, n, Xo, o);
|
|
2227
|
+
return e.L(r, t);
|
|
2228
|
+
}
|
|
2229
|
+
|
|
2230
|
+
function Xt(e, n, t, o) {
|
|
2231
|
+
const r = refineCalendarFields(e, n, Ko, o);
|
|
2232
|
+
return e.$(r, t);
|
|
2233
|
+
}
|
|
2234
|
+
|
|
2235
|
+
function Rt(e, n, t, o) {
|
|
2236
|
+
const r = refineCalendarFields(e, t, Xo, Jo);
|
|
2237
|
+
return n && void 0 !== r.month && void 0 === r.monthCode && void 0 === r.year && (r.year = Br),
|
|
2238
|
+
e.G(r, o);
|
|
2239
|
+
}
|
|
2240
|
+
|
|
2241
|
+
function Tt(e, n) {
|
|
2242
|
+
return St(refineTimeBag(refineFields(e, qo, [], 1), mt(n)));
|
|
2243
|
+
}
|
|
2244
|
+
|
|
2245
|
+
function q(e) {
|
|
2246
|
+
const n = refineFields(e, ur);
|
|
2247
|
+
return Oe(checkDurationUnits({
|
|
2248
|
+
...pr,
|
|
2249
|
+
...n
|
|
2250
|
+
}));
|
|
2251
|
+
}
|
|
2252
|
+
|
|
2253
|
+
function refineCalendarFields(e, n, t, o = [], r = []) {
|
|
2254
|
+
return refineFields(n, [ ...e.fields(t), ...r ].sort(), o);
|
|
2255
|
+
}
|
|
2256
|
+
|
|
2257
|
+
function refineFields(e, n, t, o = !t) {
|
|
2258
|
+
const r = {};
|
|
2259
|
+
let i, a = 0;
|
|
2260
|
+
for (const o of n) {
|
|
2261
|
+
if (o === i) {
|
|
2262
|
+
throw new RangeError(duplicateFields(o));
|
|
2263
|
+
}
|
|
2264
|
+
if ("constructor" === o || "__proto__" === o) {
|
|
2265
|
+
throw new RangeError(forbiddenField(o));
|
|
2266
|
+
}
|
|
2267
|
+
let n = e[o];
|
|
2268
|
+
if (void 0 !== n) {
|
|
2269
|
+
a = 1, Li[o] && (n = Li[o](n, o)), r[o] = n;
|
|
2270
|
+
} else if (t) {
|
|
2271
|
+
if (t.includes(o)) {
|
|
2272
|
+
throw new TypeError(missingField(o));
|
|
2273
|
+
}
|
|
2274
|
+
r[o] = tr[o];
|
|
2275
|
+
}
|
|
2276
|
+
i = o;
|
|
2277
|
+
}
|
|
2278
|
+
if (o && !a) {
|
|
2279
|
+
throw new TypeError(noValidFields(n));
|
|
2280
|
+
}
|
|
2281
|
+
return r;
|
|
2282
|
+
}
|
|
2283
|
+
|
|
2284
|
+
function refineTimeBag(e, n) {
|
|
2285
|
+
return constrainIsoTimeFields(xi({
|
|
2286
|
+
...tr,
|
|
2287
|
+
...e
|
|
2288
|
+
}), n);
|
|
2289
|
+
}
|
|
2290
|
+
|
|
2291
|
+
function De(e, n, t, o, r) {
|
|
2292
|
+
const {calendar: i, timeZone: a} = t, s = e(i), c = n(a), u = [ ...s.fields(Xo), ...Lo ].sort(), f = (e => {
|
|
2293
|
+
const n = he(e, L), t = Se(n.offsetNanoseconds), o = ji(e.calendar), [r, i, a] = o.I(n), [s, c] = o.N(r, i), u = formatMonthCode(s, c);
|
|
2294
|
+
return {
|
|
2295
|
+
...$i(n),
|
|
2296
|
+
year: r,
|
|
2297
|
+
monthCode: u,
|
|
2298
|
+
day: a,
|
|
2299
|
+
offset: t
|
|
2300
|
+
};
|
|
2301
|
+
})(t), l = refineFields(o, u), d = s.V(f, l), m = {
|
|
2302
|
+
...f,
|
|
2303
|
+
...l
|
|
2304
|
+
}, [p, h, g] = je(r, 2);
|
|
2305
|
+
return _e(getMatchingInstantFor(c, {
|
|
2306
|
+
...s.L(d, fabricateOverflowOptions(p)),
|
|
2307
|
+
...constrainIsoTimeFields(xi(m), p)
|
|
2308
|
+
}, parseOffsetNano(m.offset), h, g), a, i);
|
|
2309
|
+
}
|
|
2310
|
+
|
|
2311
|
+
function gt(e, n, t, o) {
|
|
2312
|
+
const r = e(n.calendar), i = [ ...r.fields(Xo), ...O ].sort(), a = {
|
|
2313
|
+
...computeDateEssentials(s = n),
|
|
2314
|
+
hour: s.isoHour,
|
|
2315
|
+
minute: s.isoMinute,
|
|
2316
|
+
second: s.isoSecond,
|
|
2317
|
+
millisecond: s.isoMillisecond,
|
|
2318
|
+
microsecond: s.isoMicrosecond,
|
|
2319
|
+
nanosecond: s.isoNanosecond
|
|
2320
|
+
};
|
|
2321
|
+
var s;
|
|
2322
|
+
const c = refineFields(t, i), u = mt(o), f = r.V(a, c), l = {
|
|
2323
|
+
...a,
|
|
2324
|
+
...c
|
|
2325
|
+
};
|
|
2326
|
+
return jt(checkIsoDateTimeInBounds({
|
|
2327
|
+
...r.L(f, fabricateOverflowOptions(u)),
|
|
2328
|
+
...constrainIsoTimeFields(xi(l), u)
|
|
2329
|
+
}));
|
|
2330
|
+
}
|
|
2331
|
+
|
|
2332
|
+
function ee(e, n, t, o) {
|
|
2333
|
+
const r = e(n.calendar), i = r.fields(Xo).sort(), a = computeDateEssentials(n), s = refineFields(t, i), c = r.V(a, s);
|
|
2334
|
+
return r.L(c, o);
|
|
2335
|
+
}
|
|
2336
|
+
|
|
2337
|
+
function Wt(e, n, t, o) {
|
|
2338
|
+
const r = e(n.calendar), i = r.fields(Ko).sort(), a = (e => {
|
|
2339
|
+
const n = ji(e.calendar), [t, o] = n.I(e), [r, i] = n.N(t, o);
|
|
2340
|
+
return {
|
|
2341
|
+
year: t,
|
|
2342
|
+
monthCode: formatMonthCode(r, i)
|
|
2343
|
+
};
|
|
2344
|
+
})(n), s = refineFields(t, i), c = r.V(a, s);
|
|
2345
|
+
return r.$(c, o);
|
|
2346
|
+
}
|
|
2347
|
+
|
|
2348
|
+
function Et(e, n, t, o) {
|
|
2349
|
+
const r = e(n.calendar), i = r.fields(Xo).sort(), a = (e => {
|
|
2350
|
+
const n = ji(e.calendar), [t, o, r] = n.I(e), [i, a] = n.N(t, o);
|
|
2351
|
+
return {
|
|
2352
|
+
monthCode: formatMonthCode(i, a),
|
|
2353
|
+
day: r
|
|
2354
|
+
};
|
|
2355
|
+
})(n), s = refineFields(t, i), c = r.V(a, s);
|
|
2356
|
+
return r.G(c, o);
|
|
2357
|
+
}
|
|
2358
|
+
|
|
2359
|
+
function rt(e, n, t) {
|
|
2360
|
+
return St(((e, n, t) => refineTimeBag({
|
|
2361
|
+
...nn(qo, e),
|
|
2362
|
+
...refineFields(n, qo)
|
|
2363
|
+
}, mt(t)))(e, n, t));
|
|
2364
|
+
}
|
|
2365
|
+
|
|
2366
|
+
function A(e, n) {
|
|
2367
|
+
return Oe((t = e, o = n, checkDurationUnits({
|
|
2368
|
+
...t,
|
|
2369
|
+
...refineFields(o, ur)
|
|
2370
|
+
})));
|
|
2371
|
+
var t, o;
|
|
2372
|
+
}
|
|
2373
|
+
|
|
2374
|
+
function convertToIso(e, n, t, o, r) {
|
|
2375
|
+
n = nn(t = e.fields(t), n), o = refineFields(o, r = e.fields(r), []);
|
|
2376
|
+
let i = e.V(n, o);
|
|
2377
|
+
return i = refineFields(i, [ ...t, ...r ].sort(), []), e.L(i);
|
|
2378
|
+
}
|
|
2379
|
+
|
|
2380
|
+
function refineYear(e, n) {
|
|
2381
|
+
const t = getCalendarEraOrigins(e), o = ar[e.id || ""] || {};
|
|
2382
|
+
let {era: r, eraYear: i, year: a} = n;
|
|
2383
|
+
if (void 0 !== r || void 0 !== i) {
|
|
2384
|
+
if (void 0 === r || void 0 === i) {
|
|
2385
|
+
throw new TypeError(io);
|
|
2386
|
+
}
|
|
2387
|
+
if (!t) {
|
|
2388
|
+
throw new RangeError(ro);
|
|
2389
|
+
}
|
|
2390
|
+
const e = t[o[r] || r];
|
|
2391
|
+
if (void 0 === e) {
|
|
2392
|
+
throw new RangeError(invalidEra(r));
|
|
2393
|
+
}
|
|
2394
|
+
const n = eraYearToYear(i, e);
|
|
2395
|
+
if (void 0 !== a && a !== n) {
|
|
2396
|
+
throw new RangeError(ao);
|
|
2397
|
+
}
|
|
2398
|
+
a = n;
|
|
2399
|
+
} else if (void 0 === a) {
|
|
2400
|
+
throw new TypeError(missingYear(t));
|
|
2401
|
+
}
|
|
2402
|
+
return a;
|
|
2403
|
+
}
|
|
2404
|
+
|
|
2405
|
+
function refineMonth(e, n, t, o) {
|
|
2406
|
+
let {month: r, monthCode: i} = n;
|
|
2407
|
+
if (void 0 !== i) {
|
|
2408
|
+
const n = ((e, n, t, o) => {
|
|
2409
|
+
const r = e._(t), [i, a] = parseMonthCode(n);
|
|
2410
|
+
let s = monthCodeNumberToMonth(i, a, r);
|
|
2411
|
+
if (a) {
|
|
2412
|
+
const n = getCalendarLeapMonthMeta(e);
|
|
2413
|
+
if (void 0 === n) {
|
|
2414
|
+
throw new RangeError(uo);
|
|
2415
|
+
}
|
|
2416
|
+
if (n > 0) {
|
|
2417
|
+
if (s > n) {
|
|
2418
|
+
throw new RangeError(uo);
|
|
2419
|
+
}
|
|
2420
|
+
if (void 0 === r) {
|
|
2421
|
+
if (1 === o) {
|
|
2422
|
+
throw new RangeError(uo);
|
|
2423
|
+
}
|
|
2424
|
+
s--;
|
|
2425
|
+
}
|
|
2426
|
+
} else {
|
|
2427
|
+
if (s !== -n) {
|
|
2428
|
+
throw new RangeError(uo);
|
|
2429
|
+
}
|
|
2430
|
+
if (void 0 === r && 1 === o) {
|
|
2431
|
+
throw new RangeError(uo);
|
|
2432
|
+
}
|
|
2433
|
+
}
|
|
2434
|
+
}
|
|
2435
|
+
return s;
|
|
2436
|
+
})(e, i, t, o);
|
|
2437
|
+
if (void 0 !== r && r !== n) {
|
|
2438
|
+
throw new RangeError(so);
|
|
2439
|
+
}
|
|
2440
|
+
r = n, o = 1;
|
|
2441
|
+
} else if (void 0 === r) {
|
|
2442
|
+
throw new TypeError(co);
|
|
2443
|
+
}
|
|
2444
|
+
return clampEntity("month", r, 1, e.J(t), o);
|
|
2445
|
+
}
|
|
2446
|
+
|
|
2447
|
+
function refineDay(e, n, t, o, r) {
|
|
2448
|
+
return clampProp(n, "day", 1, e.K(o, t), r);
|
|
2449
|
+
}
|
|
2450
|
+
|
|
2451
|
+
function spliceFields(e, n, t, o) {
|
|
2452
|
+
let r = 0;
|
|
2453
|
+
const i = [];
|
|
2454
|
+
for (const e of t) {
|
|
2455
|
+
void 0 !== n[e] ? r = 1 : i.push(e);
|
|
2456
|
+
}
|
|
2457
|
+
if (Object.assign(e, n), r) {
|
|
2458
|
+
for (const n of o || i) {
|
|
2459
|
+
delete e[n];
|
|
2460
|
+
}
|
|
2461
|
+
}
|
|
2462
|
+
}
|
|
2463
|
+
|
|
2464
|
+
function computeDateEssentials(e) {
|
|
2465
|
+
const n = ji(e.calendar), [t, o, r] = n.I(e), [i, a] = n.N(t, o);
|
|
2466
|
+
return {
|
|
2467
|
+
year: t,
|
|
2468
|
+
monthCode: formatMonthCode(i, a),
|
|
2469
|
+
day: r
|
|
2470
|
+
};
|
|
2471
|
+
}
|
|
2472
|
+
|
|
2473
|
+
function qe(e) {
|
|
2474
|
+
return xe(checkEpochNanoInBounds(bigIntToBigNano(toBigInt(e))));
|
|
2475
|
+
}
|
|
2476
|
+
|
|
2477
|
+
function ye(e, n, t, o, r = l) {
|
|
2478
|
+
return _e(checkEpochNanoInBounds(bigIntToBigNano(toBigInt(t))), n(o), e(r));
|
|
2479
|
+
}
|
|
2480
|
+
|
|
2481
|
+
function Zt(n, t, o, r, i = 0, a = 0, s = 0, c = 0, u = 0, f = 0, d = l) {
|
|
2482
|
+
return jt(checkIsoDateTimeInBounds(checkIsoDateTimeFields(e(toInteger, zipProps(Tr, [ t, o, r, i, a, s, c, u, f ])))), n(d));
|
|
2483
|
+
}
|
|
2484
|
+
|
|
2485
|
+
function ue(n, t, o, r, i = l) {
|
|
2486
|
+
return W(checkIsoDateInBounds(checkIsoDateFields(e(toInteger, {
|
|
2487
|
+
isoYear: t,
|
|
2488
|
+
isoMonth: o,
|
|
2489
|
+
isoDay: r
|
|
2490
|
+
}))), n(i));
|
|
2491
|
+
}
|
|
2492
|
+
|
|
2493
|
+
function Qt(e, n, t, o = l, r = 1) {
|
|
2494
|
+
const i = toInteger(n), a = toInteger(t), s = e(o);
|
|
2495
|
+
return createPlainYearMonthSlots(checkIsoYearMonthInBounds(checkIsoDateFields({
|
|
2496
|
+
isoYear: i,
|
|
2497
|
+
isoMonth: a,
|
|
2498
|
+
isoDay: toInteger(r)
|
|
2499
|
+
})), s);
|
|
2500
|
+
}
|
|
2501
|
+
|
|
2502
|
+
function kt(e, n, t, o = l, r = Br) {
|
|
2503
|
+
const i = toInteger(n), a = toInteger(t), s = e(o);
|
|
2504
|
+
return createPlainMonthDaySlots(checkIsoDateInBounds(checkIsoDateFields({
|
|
2505
|
+
isoYear: toInteger(r),
|
|
2506
|
+
isoMonth: i,
|
|
2507
|
+
isoDay: a
|
|
2508
|
+
})), s);
|
|
2509
|
+
}
|
|
2510
|
+
|
|
2511
|
+
function ut(n = 0, t = 0, o = 0, r = 0, i = 0, a = 0) {
|
|
2512
|
+
return St(constrainIsoTimeFields(e(toInteger, zipProps(w, [ n, t, o, r, i, a ])), 1));
|
|
2513
|
+
}
|
|
2514
|
+
|
|
2515
|
+
function j(n = 0, t = 0, o = 0, r = 0, i = 0, a = 0, s = 0, c = 0, u = 0, f = 0) {
|
|
2516
|
+
return Oe(checkDurationUnits(e(toStrictInteger, zipProps(p, [ n, t, o, r, i, a, s, c, u, f ]))));
|
|
2517
|
+
}
|
|
2518
|
+
|
|
2519
|
+
function Je(e, n, t = l) {
|
|
2520
|
+
return _e(e.epochNanoseconds, n, t);
|
|
2521
|
+
}
|
|
2522
|
+
|
|
2523
|
+
function be(e) {
|
|
2524
|
+
return xe(e.epochNanoseconds);
|
|
2525
|
+
}
|
|
2526
|
+
|
|
2527
|
+
function yt(e, n) {
|
|
2528
|
+
return jt(he(n, e));
|
|
2529
|
+
}
|
|
2530
|
+
|
|
2531
|
+
function fe(e, n) {
|
|
2532
|
+
return W(he(n, e));
|
|
2533
|
+
}
|
|
2534
|
+
|
|
2535
|
+
function dt(e, n) {
|
|
2536
|
+
return St(he(n, e));
|
|
2537
|
+
}
|
|
2538
|
+
|
|
2539
|
+
function bt(e, n, t, o) {
|
|
2540
|
+
const r = ((e, n, t, o) => {
|
|
2541
|
+
const r = (e => ei(normalizeOptions(e)))(o);
|
|
2542
|
+
return getSingleInstantFor(e(n), t, r);
|
|
2543
|
+
})(e, t, n, o);
|
|
2544
|
+
return _e(checkEpochNanoInBounds(r), t, n.calendar);
|
|
2545
|
+
}
|
|
2546
|
+
|
|
2547
|
+
function ae(e, n, t, o, r) {
|
|
2548
|
+
const i = e(r.timeZone), a = r.plainTime, s = void 0 !== a ? n(a) : void 0, c = t(i);
|
|
2549
|
+
let u;
|
|
2550
|
+
return u = s ? getSingleInstantFor(c, {
|
|
2551
|
+
...o,
|
|
2552
|
+
...s
|
|
2553
|
+
}) : getStartOfDayInstantFor(c, {
|
|
2554
|
+
...o,
|
|
2555
|
+
...Nt
|
|
2556
|
+
}), _e(u, i, o.calendar);
|
|
2557
|
+
}
|
|
2558
|
+
|
|
2559
|
+
function ie(e, n = Nt) {
|
|
2560
|
+
return jt(checkIsoDateTimeInBounds({
|
|
2561
|
+
...e,
|
|
2562
|
+
...n
|
|
2563
|
+
}));
|
|
2564
|
+
}
|
|
2565
|
+
|
|
2566
|
+
function le(e, n, t) {
|
|
2567
|
+
return ((e, n) => {
|
|
2568
|
+
const t = refineCalendarFields(e, n, Qo);
|
|
2569
|
+
return e.$(t, void 0);
|
|
2570
|
+
})(e(n.calendar), t);
|
|
2571
|
+
}
|
|
2572
|
+
|
|
2573
|
+
function se(e, n, t) {
|
|
2574
|
+
return ((e, n) => {
|
|
2575
|
+
const t = refineCalendarFields(e, n, nr);
|
|
2576
|
+
return e.G(t);
|
|
2577
|
+
})(e(n.calendar), t);
|
|
2578
|
+
}
|
|
2579
|
+
|
|
2580
|
+
function Ht(e, n, t, o) {
|
|
2581
|
+
return ((e, n, t) => convertToIso(e, n, Qo, requireObjectLike(t), Jo))(e(n.calendar), t, o);
|
|
2582
|
+
}
|
|
2583
|
+
|
|
2584
|
+
function Vt(e, n, t, o) {
|
|
2585
|
+
return ((e, n, t) => convertToIso(e, n, nr, requireObjectLike(t), Go))(e(n.calendar), t, o);
|
|
2586
|
+
}
|
|
2587
|
+
|
|
2588
|
+
function $e(e) {
|
|
2589
|
+
return xe(checkEpochNanoInBounds(Ge(toStrictInteger(e), Qe)));
|
|
2590
|
+
}
|
|
2591
|
+
|
|
2592
|
+
function He(e) {
|
|
2593
|
+
return xe(checkEpochNanoInBounds(bigIntToBigNano(toBigInt(e))));
|
|
2594
|
+
}
|
|
2595
|
+
|
|
2596
|
+
function createOptionsTransformer(e, n, t) {
|
|
2597
|
+
const o = new Set(t);
|
|
2598
|
+
return (r, i) => {
|
|
2599
|
+
const a = t && hasAnyPropsByName(r, t);
|
|
2600
|
+
if (!hasAnyPropsByName(r = ((e, n) => {
|
|
2601
|
+
const t = {};
|
|
2602
|
+
for (const o in n) {
|
|
2603
|
+
e.has(o) || (t[o] = n[o]);
|
|
2604
|
+
}
|
|
2605
|
+
return t;
|
|
2606
|
+
})(o, r), e)) {
|
|
2607
|
+
if (i && a) {
|
|
2608
|
+
throw new TypeError("Invalid formatting options");
|
|
2609
|
+
}
|
|
2610
|
+
r = {
|
|
2611
|
+
...n,
|
|
2612
|
+
...r
|
|
2613
|
+
};
|
|
2614
|
+
}
|
|
2615
|
+
return t && (r.timeZone = si, [ "full", "long" ].includes(r.X) && (r.X = "medium")),
|
|
2616
|
+
r;
|
|
2617
|
+
};
|
|
2618
|
+
}
|
|
2619
|
+
|
|
2620
|
+
function Q(e, n = an, t = 0) {
|
|
2621
|
+
const [o, , , r] = e;
|
|
2622
|
+
return (i, a = Na, ...s) => {
|
|
2623
|
+
const c = n(r && r(...s), i, a, o, t), u = c.resolvedOptions();
|
|
2624
|
+
return [ c, ...toEpochMillis(e, u, s) ];
|
|
2625
|
+
};
|
|
2626
|
+
}
|
|
2627
|
+
|
|
2628
|
+
function an(e, n, t, o, r) {
|
|
2629
|
+
if (t = o(t, r), e) {
|
|
2630
|
+
if (void 0 !== t.timeZone) {
|
|
2631
|
+
throw new TypeError(So);
|
|
2632
|
+
}
|
|
2633
|
+
t.timeZone = e;
|
|
2634
|
+
}
|
|
2635
|
+
return new en(n, t);
|
|
2636
|
+
}
|
|
2637
|
+
|
|
2638
|
+
function toEpochMillis(e, n, t) {
|
|
2639
|
+
const [, o, r] = e;
|
|
2640
|
+
return t.map((e => (e.calendar && ((e, n, t) => {
|
|
2641
|
+
if ((t || e !== l) && e !== n) {
|
|
2642
|
+
throw new RangeError(lo);
|
|
2643
|
+
}
|
|
2644
|
+
})(e.calendar, n.calendar, r), o(e, n))));
|
|
2645
|
+
}
|
|
2646
|
+
|
|
2647
|
+
function ge(e, n, t) {
|
|
2648
|
+
const o = n.timeZone, r = e(o), i = {
|
|
2649
|
+
...he(n, r),
|
|
2650
|
+
...t || Nt
|
|
2651
|
+
};
|
|
2652
|
+
let a;
|
|
2653
|
+
return a = t ? getMatchingInstantFor(r, i, i.offsetNanoseconds, 2) : getStartOfDayInstantFor(r, i),
|
|
2654
|
+
_e(a, o, n.calendar);
|
|
2655
|
+
}
|
|
2656
|
+
|
|
2657
|
+
function Ot(e, n = Nt) {
|
|
2658
|
+
return jt(checkIsoDateTimeInBounds({
|
|
2659
|
+
...e,
|
|
2660
|
+
...n
|
|
2661
|
+
}));
|
|
2662
|
+
}
|
|
2663
|
+
|
|
2664
|
+
function pt(e, n) {
|
|
2665
|
+
return {
|
|
2666
|
+
...e,
|
|
2667
|
+
calendar: n
|
|
2668
|
+
};
|
|
2669
|
+
}
|
|
2670
|
+
|
|
2671
|
+
function Pe(e, n) {
|
|
2672
|
+
return {
|
|
2673
|
+
...e,
|
|
2674
|
+
timeZone: n
|
|
2675
|
+
};
|
|
2676
|
+
}
|
|
2677
|
+
|
|
2678
|
+
function tn(e) {
|
|
2679
|
+
const n = Xe();
|
|
2680
|
+
return epochNanoToIso(n, e.u(n));
|
|
2681
|
+
}
|
|
2682
|
+
|
|
2683
|
+
function Xe() {
|
|
2684
|
+
return Ge(Date.now(), Qe);
|
|
2685
|
+
}
|
|
2686
|
+
|
|
2687
|
+
function Ue() {
|
|
2688
|
+
return va || (va = (new en).resolvedOptions().timeZone);
|
|
2689
|
+
}
|
|
2690
|
+
|
|
2691
|
+
const expectedInteger = (e, n) => `Non-integer ${e}: ${n}`, expectedPositive = (e, n) => `Non-positive ${e}: ${n}`, expectedFinite = (e, n) => `Non-finite ${e}: ${n}`, forbiddenBigIntToNumber = e => `Cannot convert bigint to ${e}`, invalidBigInt = e => `Invalid bigint: ${e}`, no = "Cannot convert Symbol to string", oo = "Invalid object", numberOutOfRange = (e, n, t, o, r) => r ? numberOutOfRange(e, r[n], r[t], r[o]) : invalidEntity(e, n) + `; must be between ${t}-${o}`, invalidEntity = (e, n) => `Invalid ${e}: ${n}`, missingField = e => `Missing ${e}`, forbiddenField = e => `Invalid field ${e}`, duplicateFields = e => `Duplicate field ${e}`, noValidFields = e => "No valid fields: " + e.join(), i = "Invalid bag", invalidChoice = (e, n, t) => invalidEntity(e, n) + "; must be " + Object.keys(t).join(), b = "Cannot use valueOf", a = "Invalid calling context", ro = "Forbidden era/eraYear", io = "Mismatching era/eraYear", ao = "Mismatching year/eraYear", invalidEra = e => `Invalid era: ${e}`, missingYear = e => "Missing year" + (e ? "/era/eraYear" : ""), invalidMonthCode = e => `Invalid monthCode: ${e}`, so = "Mismatching month/monthCode", co = "Missing month/monthCode", uo = "Invalid leap month", fo = "Invalid protocol results", c = e => invalidEntity("Calendar", e), lo = "Mismatching Calendars", F = e => invalidEntity("TimeZone", e), mo = "Mismatching TimeZones", po = "Forbidden ICU TimeZone", ho = "Out-of-bounds offset", go = "Out-of-bounds TimeZone gap", Do = "Invalid TimeZone offset", To = "Ambiguous offset", Io = "Out-of-bounds date", Mo = "Out-of-bounds duration", No = "Cannot mix duration signs", yo = "Missing relativeTo", vo = "Cannot use large units", Po = "Required smallestUnit or largestUnit", Eo = "smallestUnit > largestUnit", failedParse = e => `Cannot parse: ${e}`, invalidSubstring = e => `Invalid substring: ${e}`, rn = e => `Cannot format ${e}`, ln = "Mismatching types for formatting", So = "Cannot specify TimeZone", Fo = /*@__PURE__*/ Pt(g, ((e, n) => n)), wo = /*@__PURE__*/ Pt(g, ((e, n, t) => t)), bo = /*@__PURE__*/ Pt(padNumber, 2), Oo = {
|
|
2692
|
+
nanosecond: 0,
|
|
2693
|
+
microsecond: 1,
|
|
2694
|
+
millisecond: 2,
|
|
2695
|
+
second: 3,
|
|
2696
|
+
minute: 4,
|
|
2697
|
+
hour: 5,
|
|
2698
|
+
day: 6,
|
|
2699
|
+
week: 7,
|
|
2700
|
+
month: 8,
|
|
2701
|
+
year: 9
|
|
2702
|
+
}, Bo = /*@__PURE__*/ Object.keys(Oo), ko = 864e5, Co = 1e3, Yo = 1e3, Qe = 1e6, Ro = 1e9, Zo = 6e10, zo = 36e11, Uo = 864e11, Ao = [ 1, Yo, Qe, Ro, Zo, zo, Uo ], O = /*@__PURE__*/ Bo.slice(0, 6), qo = /*@__PURE__*/ sortStrings(O), Wo = [ "offset" ], jo = [ "timeZone" ], Lo = /*@__PURE__*/ O.concat(Wo), xo = /*@__PURE__*/ Lo.concat(jo), $o = [ "era", "eraYear" ], Ho = /*@__PURE__*/ $o.concat([ "year" ]), Go = [ "year" ], Vo = [ "monthCode" ], _o = /*@__PURE__*/ [ "month" ].concat(Vo), Jo = [ "day" ], Ko = /*@__PURE__*/ _o.concat(Go), Qo = /*@__PURE__*/ Vo.concat(Go), Xo = /*@__PURE__*/ Jo.concat(Ko), er = /*@__PURE__*/ Jo.concat(_o), nr = /*@__PURE__*/ Jo.concat(Vo), tr = /*@__PURE__*/ wo(O, 0), l = "iso8601", or = "gregory", rr = "japanese", ir = {
|
|
2703
|
+
[or]: {
|
|
2704
|
+
"gregory-inverse": -1,
|
|
2705
|
+
gregory: 0
|
|
2706
|
+
},
|
|
2707
|
+
[rr]: {
|
|
2708
|
+
"japanese-inverse": -1,
|
|
2709
|
+
japanese: 0,
|
|
2710
|
+
meiji: 1867,
|
|
2711
|
+
taisho: 1911,
|
|
2712
|
+
showa: 1925,
|
|
2713
|
+
heisei: 1988,
|
|
2714
|
+
reiwa: 2018
|
|
2715
|
+
},
|
|
2716
|
+
ethiopic: {
|
|
2717
|
+
ethioaa: 0,
|
|
2718
|
+
ethiopic: 5500
|
|
2719
|
+
},
|
|
2720
|
+
coptic: {
|
|
2721
|
+
"coptic-inverse": -1,
|
|
2722
|
+
coptic: 0
|
|
2723
|
+
},
|
|
2724
|
+
roc: {
|
|
2725
|
+
"roc-inverse": -1,
|
|
2726
|
+
roc: 0
|
|
2727
|
+
},
|
|
2728
|
+
buddhist: {
|
|
2729
|
+
be: 0
|
|
2730
|
+
},
|
|
2731
|
+
islamic: {
|
|
2732
|
+
ah: 0
|
|
2733
|
+
},
|
|
2734
|
+
indian: {
|
|
2735
|
+
saka: 0
|
|
2736
|
+
},
|
|
2737
|
+
persian: {
|
|
2738
|
+
ap: 0
|
|
2739
|
+
}
|
|
2740
|
+
}, ar = {
|
|
2741
|
+
[or]: {
|
|
2742
|
+
bce: "gregory-inverse",
|
|
2743
|
+
ce: "gregory"
|
|
2744
|
+
},
|
|
2745
|
+
[rr]: {
|
|
2746
|
+
bce: "japanese-inverse",
|
|
2747
|
+
ce: "japanese"
|
|
2748
|
+
},
|
|
2749
|
+
ethiopic: {
|
|
2750
|
+
era0: "ethioaa",
|
|
2751
|
+
era1: "ethiopic"
|
|
2752
|
+
},
|
|
2753
|
+
coptic: {
|
|
2754
|
+
era0: "coptic-inverse",
|
|
2755
|
+
era1: "coptic"
|
|
2756
|
+
},
|
|
2757
|
+
roc: {
|
|
2758
|
+
broc: "roc-inverse",
|
|
2759
|
+
minguo: "roc"
|
|
2760
|
+
}
|
|
2761
|
+
}, sr = {
|
|
2762
|
+
chinese: 13,
|
|
2763
|
+
dangi: 13,
|
|
2764
|
+
hebrew: -6
|
|
2765
|
+
}, m = /*@__PURE__*/ Pt(requireType, "string"), D = /*@__PURE__*/ Pt(requireType, "boolean"), cr = /*@__PURE__*/ Pt(requireType, "number"), p = /*@__PURE__*/ Bo.map((e => e + "s")), ur = /*@__PURE__*/ sortStrings(p), fr = /*@__PURE__*/ p.slice(0, 6), lr = /*@__PURE__*/ p.slice(6), dr = /*@__PURE__*/ lr.slice(1), mr = /*@__PURE__*/ Fo(p), pr = /*@__PURE__*/ wo(p, 0), hr = /*@__PURE__*/ wo(fr, 0), gr = /*@__PURE__*/ Pt(zeroOutProps, p), w = [ "isoNanosecond", "isoMicrosecond", "isoMillisecond", "isoSecond", "isoMinute", "isoHour" ], Dr = [ "isoDay", "isoMonth", "isoYear" ], Tr = /*@__PURE__*/ w.concat(Dr), Ir = /*@__PURE__*/ sortStrings(Dr), Mr = /*@__PURE__*/ sortStrings(w), Nr = /*@__PURE__*/ sortStrings(Tr), Nt = /*@__PURE__*/ wo(Mr, 0), yr = /*@__PURE__*/ Pt(zeroOutProps, Tr), vr = 1e8, Pr = vr * ko, Er = [ vr, 0 ], Sr = [ -vr, 0 ], Fr = 275760, wr = -271821, en = Intl.DateTimeFormat, br = "en-GB", Or = 1970, Br = 1972, kr = 12, Cr = /*@__PURE__*/ isoArgsToEpochMilli(1868, 9, 8), Yr = /*@__PURE__*/ on(computeJapaneseEraParts, WeakMap), Rr = "smallestUnit", Zr = "unit", zr = "roundingIncrement", Ur = "fractionalSecondDigits", Ar = "relativeTo", qr = "direction", Wr = {
|
|
2766
|
+
constrain: 0,
|
|
2767
|
+
reject: 1
|
|
2768
|
+
}, jr = /*@__PURE__*/ Object.keys(Wr), Lr = {
|
|
2769
|
+
compatible: 0,
|
|
2770
|
+
reject: 1,
|
|
2771
|
+
earlier: 2,
|
|
2772
|
+
later: 3
|
|
2773
|
+
}, xr = {
|
|
2774
|
+
reject: 0,
|
|
2775
|
+
use: 1,
|
|
2776
|
+
prefer: 2,
|
|
2777
|
+
ignore: 3
|
|
2778
|
+
}, $r = {
|
|
2779
|
+
auto: 0,
|
|
2780
|
+
never: 1,
|
|
2781
|
+
critical: 2,
|
|
2782
|
+
always: 3
|
|
2783
|
+
}, Hr = {
|
|
2784
|
+
auto: 0,
|
|
2785
|
+
never: 1,
|
|
2786
|
+
critical: 2
|
|
2787
|
+
}, Gr = {
|
|
2788
|
+
auto: 0,
|
|
2789
|
+
never: 1
|
|
2790
|
+
}, Vr = {
|
|
2791
|
+
floor: 0,
|
|
2792
|
+
halfFloor: 1,
|
|
2793
|
+
ceil: 2,
|
|
2794
|
+
halfCeil: 3,
|
|
2795
|
+
trunc: 4,
|
|
2796
|
+
halfTrunc: 5,
|
|
2797
|
+
expand: 6,
|
|
2798
|
+
halfExpand: 7,
|
|
2799
|
+
halfEven: 8
|
|
2800
|
+
}, _r = {
|
|
2801
|
+
previous: -1,
|
|
2802
|
+
next: 1
|
|
2803
|
+
}, Jr = /*@__PURE__*/ Pt(refineUnitOption, Rr), Kr = /*@__PURE__*/ Pt(refineUnitOption, "largestUnit"), Qr = /*@__PURE__*/ Pt(refineUnitOption, Zr), Xr = /*@__PURE__*/ Pt(refineChoiceOption, "overflow", Wr), ei = /*@__PURE__*/ Pt(refineChoiceOption, "disambiguation", Lr), ni = /*@__PURE__*/ Pt(refineChoiceOption, "offset", xr), ti = /*@__PURE__*/ Pt(refineChoiceOption, "calendarName", $r), oi = /*@__PURE__*/ Pt(refineChoiceOption, "timeZoneName", Hr), ri = /*@__PURE__*/ Pt(refineChoiceOption, "offset", Gr), ii = /*@__PURE__*/ Pt(refineChoiceOption, "roundingMode", Vr), Ut = "PlainYearMonth", qt = "PlainMonthDay", G = "PlainDate", x = "PlainDateTime", ft = "PlainTime", z = "ZonedDateTime", Re = "Instant", N = "Duration", ai = [ Math.floor, e => hasHalf(e) ? Math.floor(e) : Math.round(e), Math.ceil, e => hasHalf(e) ? Math.ceil(e) : Math.round(e), Math.trunc, e => hasHalf(e) ? Math.trunc(e) || 0 : Math.round(e), e => e < 0 ? Math.floor(e) : Math.ceil(e), e => Math.sign(e) * Math.round(Math.abs(e)) || 0, e => hasHalf(e) ? (e = Math.trunc(e) || 0) + e % 2 : Math.round(e) ], si = "UTC", ci = 5184e3, ui = /*@__PURE__*/ isoArgsToEpochSec(1847), fi = /*@__PURE__*/ isoArgsToEpochSec(/*@__PURE__*/ /*@__PURE__*/ new Date(0).getUTCFullYear() + 10), li = /0+$/, he = /*@__PURE__*/ on(_zonedEpochSlotsToIso, WeakMap), di = 2 ** 32 - 1, L = /*@__PURE__*/ on((e => {
|
|
2804
|
+
const n = getTimeZoneEssence(e);
|
|
2805
|
+
return "object" == typeof n ? new IntlTimeZone(n) : new FixedTimeZone(n || 0);
|
|
2806
|
+
}));
|
|
2807
|
+
|
|
2808
|
+
class FixedTimeZone {
|
|
2809
|
+
constructor(e) {
|
|
2810
|
+
this.F = e;
|
|
2811
|
+
}
|
|
2812
|
+
u() {
|
|
2813
|
+
return this.F;
|
|
2814
|
+
}
|
|
2815
|
+
l(e) {
|
|
2816
|
+
return (e => {
|
|
2817
|
+
const n = isoToEpochNano({
|
|
2818
|
+
...e,
|
|
2819
|
+
...Nt
|
|
2820
|
+
});
|
|
2821
|
+
if (!n || Math.abs(n[0]) > 1e8) {
|
|
2822
|
+
throw new RangeError(Io);
|
|
2823
|
+
}
|
|
2824
|
+
})(e), [ isoToEpochNanoWithOffset(e, this.F) ];
|
|
2825
|
+
}
|
|
2826
|
+
i() {}
|
|
2827
|
+
}
|
|
2828
|
+
|
|
2829
|
+
class IntlTimeZone {
|
|
2830
|
+
constructor(e) {
|
|
2831
|
+
this.ee = (e => {
|
|
2832
|
+
function getOffsetSec(e) {
|
|
2833
|
+
const i = clampNumber(e, o, r), [a, s] = computePeriod(i), c = n(a), u = n(s);
|
|
2834
|
+
return c === u ? c : pinch(t(a, s), c, u, e);
|
|
2835
|
+
}
|
|
2836
|
+
function pinch(n, t, o, r) {
|
|
2837
|
+
let i, a;
|
|
2838
|
+
for (;(void 0 === r || void 0 === (i = r < n[0] ? t : r >= n[1] ? o : void 0)) && (a = n[1] - n[0]); ) {
|
|
2839
|
+
const t = n[0] + Math.floor(a / 2);
|
|
2840
|
+
e(t) === o ? n[1] = t : n[0] = t + 1;
|
|
2841
|
+
}
|
|
2842
|
+
return i;
|
|
2843
|
+
}
|
|
2844
|
+
const n = on(e), t = on(createSplitTuple);
|
|
2845
|
+
let o = ui, r = fi;
|
|
2846
|
+
return {
|
|
2847
|
+
ne(e) {
|
|
2848
|
+
const n = getOffsetSec(e - 86400), t = getOffsetSec(e + 86400), o = e - n, r = e - t;
|
|
2849
|
+
if (n === t) {
|
|
2850
|
+
return [ o ];
|
|
2851
|
+
}
|
|
2852
|
+
const i = getOffsetSec(o);
|
|
2853
|
+
return i === getOffsetSec(r) ? [ e - i ] : n > t ? [ o, r ] : [];
|
|
2854
|
+
},
|
|
2855
|
+
te: getOffsetSec,
|
|
2856
|
+
i(e, i) {
|
|
2857
|
+
const a = clampNumber(e, o, r);
|
|
2858
|
+
let [s, c] = computePeriod(a);
|
|
2859
|
+
const u = ci * i, f = i < 0 ? () => c > o || (o = a, 0) : () => s < r || (r = a,
|
|
2860
|
+
0);
|
|
2861
|
+
for (;f(); ) {
|
|
2862
|
+
const o = n(s), r = n(c);
|
|
2863
|
+
if (o !== r) {
|
|
2864
|
+
const n = t(s, c);
|
|
2865
|
+
pinch(n, o, r);
|
|
2866
|
+
const a = n[0];
|
|
2867
|
+
if ((compareNumbers(a, e) || 1) === i) {
|
|
2868
|
+
return a;
|
|
2869
|
+
}
|
|
2870
|
+
}
|
|
2871
|
+
s += u, c += u;
|
|
2872
|
+
}
|
|
2873
|
+
}
|
|
2874
|
+
};
|
|
2875
|
+
})((e => n => {
|
|
2876
|
+
const t = hashIntlFormatParts(e, n * Co);
|
|
2877
|
+
return isoArgsToEpochSec(parseIntlPartsYear(t), parseInt(t.month), parseInt(t.day), parseInt(t.hour), parseInt(t.minute), parseInt(t.second)) - n;
|
|
2878
|
+
})(e));
|
|
2879
|
+
}
|
|
2880
|
+
u(e) {
|
|
2881
|
+
return this.ee.te((e => epochNanoToSecMod(e)[0])(e)) * Ro;
|
|
2882
|
+
}
|
|
2883
|
+
l(e) {
|
|
2884
|
+
const [n, t] = [ isoArgsToEpochSec((o = e).isoYear, o.isoMonth, o.isoDay, o.isoHour, o.isoMinute, o.isoSecond), o.isoMillisecond * Qe + o.isoMicrosecond * Yo + o.isoNanosecond ];
|
|
2885
|
+
var o;
|
|
2886
|
+
return this.ee.ne(n).map((e => checkEpochNanoInBounds(moveBigNano(Ge(e, Ro), t))));
|
|
2887
|
+
}
|
|
2888
|
+
i(e, n) {
|
|
2889
|
+
const [t, o] = epochNanoToSecMod(e), r = this.ee.i(t + (n > 0 || o ? 1 : 0), n);
|
|
2890
|
+
if (void 0 !== r) {
|
|
2891
|
+
return Ge(r, Ro);
|
|
2892
|
+
}
|
|
2893
|
+
}
|
|
2894
|
+
}
|
|
2895
|
+
|
|
2896
|
+
const mi = "([+-])", pi = "(?:[.,](\\d{1,9}))?", hi = `(?:(?:${mi}(\\d{6}))|(\\d{4}))-?(\\d{2})`, gi = "(\\d{2})(?::?(\\d{2})(?::?(\\d{2})" + pi + ")?)?", Di = mi + gi, Ti = hi + "-?(\\d{2})(?:[T ]" + gi + "(Z|" + Di + ")?)?", Ii = "\\[(!?)([^\\]]*)\\]", Mi = `((?:${Ii}){0,9})`, Ni = /*@__PURE__*/ createRegExp(hi + Mi), yi = /*@__PURE__*/ createRegExp("(?:--)?(\\d{2})-?(\\d{2})" + Mi), vi = /*@__PURE__*/ createRegExp(Ti + Mi), Pi = /*@__PURE__*/ createRegExp("T?" + gi + "(?:" + Di + ")?" + Mi), Ei = /*@__PURE__*/ createRegExp(Di), Si = /*@__PURE__*/ new RegExp(Ii, "g"), Fi = /*@__PURE__*/ createRegExp(`${mi}?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?:(\\d+)${pi}H)?(?:(\\d+)${pi}M)?(?:(\\d+)${pi}S)?)?`), wi = /*@__PURE__*/ on((e => new en(br, {
|
|
2897
|
+
timeZone: e,
|
|
2898
|
+
era: "short",
|
|
2899
|
+
year: "numeric",
|
|
2900
|
+
month: "numeric",
|
|
2901
|
+
day: "numeric",
|
|
2902
|
+
hour: "numeric",
|
|
2903
|
+
minute: "numeric",
|
|
2904
|
+
second: "numeric"
|
|
2905
|
+
}))), bi = /^(AC|AE|AG|AR|AS|BE|BS|CA|CN|CS|CT|EA|EC|IE|IS|JS|MI|NE|NS|PL|PN|PR|PS|SS|VS)T$/, Oi = /[^\w\/:+-]+/, Bi = /^M(\d{2})(L?)$/, ki = /*@__PURE__*/ on(createIntlCalendar), Ci = /*@__PURE__*/ on((e => new en(br, {
|
|
2906
|
+
calendar: e,
|
|
2907
|
+
timeZone: si,
|
|
2908
|
+
era: "short",
|
|
2909
|
+
year: "numeric",
|
|
2910
|
+
month: "short",
|
|
2911
|
+
day: "numeric"
|
|
2912
|
+
}))), Yi = {
|
|
2913
|
+
m(e, n, t) {
|
|
2914
|
+
const o = mt(t);
|
|
2915
|
+
let r, {years: i, months: a, weeks: s, days: c} = n;
|
|
2916
|
+
if (c += durationFieldsToBigNano(n, 5)[0], i || a) {
|
|
2917
|
+
r = ((e, n, t, o, r) => {
|
|
2918
|
+
let [i, a, s] = e.I(n);
|
|
2919
|
+
if (t) {
|
|
2920
|
+
const [n, o] = e.N(i, a);
|
|
2921
|
+
i += t, a = monthCodeNumberToMonth(n, o, e._(i)), a = clampEntity("month", a, 1, e.J(i), r);
|
|
2922
|
+
}
|
|
2923
|
+
return o && ([i, a] = e.oe(i, a, o)), s = clampEntity("day", s, 1, e.K(i, a), r),
|
|
2924
|
+
e.k(i, a, s);
|
|
2925
|
+
})(this, e, i, a, o);
|
|
2926
|
+
} else {
|
|
2927
|
+
if (!s && !c) {
|
|
2928
|
+
return e;
|
|
2929
|
+
}
|
|
2930
|
+
r = isoToEpochMilli(e);
|
|
2931
|
+
}
|
|
2932
|
+
if (void 0 === r) {
|
|
2933
|
+
throw new RangeError(Io);
|
|
2934
|
+
}
|
|
2935
|
+
return r += (7 * s + c) * ko, checkIsoDateInBounds(epochMilliToIso(r));
|
|
2936
|
+
},
|
|
2937
|
+
O(e, n, t) {
|
|
2938
|
+
if (t <= 7) {
|
|
2939
|
+
let o = 0, r = diffDays({
|
|
2940
|
+
...e,
|
|
2941
|
+
...Nt
|
|
2942
|
+
}, {
|
|
2943
|
+
...n,
|
|
2944
|
+
...Nt
|
|
2945
|
+
});
|
|
2946
|
+
return 7 === t && ([o, r] = divModTrunc(r, 7)), {
|
|
2947
|
+
...pr,
|
|
2948
|
+
weeks: o,
|
|
2949
|
+
days: r
|
|
2950
|
+
};
|
|
2951
|
+
}
|
|
2952
|
+
const o = this.I(e), r = this.I(n);
|
|
2953
|
+
let [i, a, s] = ((e, n, t, o, r, i, a) => {
|
|
2954
|
+
let s = r - n, c = i - t, u = a - o;
|
|
2955
|
+
if (s || c) {
|
|
2956
|
+
const f = Math.sign(s || c);
|
|
2957
|
+
let l = e.K(r, i), d = 0;
|
|
2958
|
+
if (Math.sign(u) === -f) {
|
|
2959
|
+
const o = l;
|
|
2960
|
+
[r, i] = e.oe(r, i, -f), s = r - n, c = i - t, l = e.K(r, i), d = f < 0 ? -o : l;
|
|
2961
|
+
}
|
|
2962
|
+
if (u = a - Math.min(o, l) + d, s) {
|
|
2963
|
+
const [o, a] = e.N(n, t), [u, l] = e.N(r, i);
|
|
2964
|
+
if (c = u - o || Number(l) - Number(a), Math.sign(c) === -f) {
|
|
2965
|
+
const t = f < 0 && -e.J(r);
|
|
2966
|
+
s = (r -= f) - n, c = i - monthCodeNumberToMonth(o, a, e._(r)) + (t || e.J(r));
|
|
2967
|
+
}
|
|
2968
|
+
}
|
|
2969
|
+
}
|
|
2970
|
+
return [ s, c, u ];
|
|
2971
|
+
})(this, ...o, ...r);
|
|
2972
|
+
return 8 === t && (a += this.re(i, o[0]), i = 0), {
|
|
2973
|
+
...pr,
|
|
2974
|
+
years: i,
|
|
2975
|
+
months: a,
|
|
2976
|
+
days: s
|
|
2977
|
+
};
|
|
2978
|
+
},
|
|
2979
|
+
L(e, n) {
|
|
2980
|
+
const t = mt(n), o = refineYear(this, e), r = refineMonth(this, e, o, t), i = refineDay(this, e, r, o, t);
|
|
2981
|
+
return W(checkIsoDateInBounds(this.P(o, r, i)), this.id || l);
|
|
2982
|
+
},
|
|
2983
|
+
$(e, n) {
|
|
2984
|
+
const t = mt(n), o = refineYear(this, e), r = refineMonth(this, e, o, t);
|
|
2985
|
+
return createPlainYearMonthSlots(checkIsoYearMonthInBounds(this.P(o, r, 1)), this.id || l);
|
|
2986
|
+
},
|
|
2987
|
+
G(e, n) {
|
|
2988
|
+
const t = mt(n);
|
|
2989
|
+
let o, r, i, a = void 0 !== e.eraYear || void 0 !== e.year ? refineYear(this, e) : void 0;
|
|
2990
|
+
const s = !this.id;
|
|
2991
|
+
if (void 0 === a && s && (a = Br), void 0 !== a) {
|
|
2992
|
+
const n = refineMonth(this, e, a, t);
|
|
2993
|
+
o = refineDay(this, e, n, a, t);
|
|
2994
|
+
const s = this._(a);
|
|
2995
|
+
r = monthToMonthCodeNumber(n, s), i = n === s;
|
|
2996
|
+
} else {
|
|
2997
|
+
if (void 0 === e.monthCode) {
|
|
2998
|
+
throw new TypeError(co);
|
|
2999
|
+
}
|
|
3000
|
+
if ([r, i] = parseMonthCode(e.monthCode), this.id && this.id !== or && this.id !== rr) {
|
|
3001
|
+
if (this.id && "coptic" === computeCalendarIdBase(this.id) && 0 === t) {
|
|
3002
|
+
const n = i || 13 !== r ? 30 : 6;
|
|
3003
|
+
o = e.day, o = clampNumber(o, 1, n);
|
|
3004
|
+
} else if (this.id && "chinese" === computeCalendarIdBase(this.id) && 0 === t) {
|
|
3005
|
+
const n = !i || 1 !== r && 9 !== r && 10 !== r && 11 !== r && 12 !== r ? 30 : 29;
|
|
3006
|
+
o = e.day, o = clampNumber(o, 1, n);
|
|
3007
|
+
} else {
|
|
3008
|
+
o = e.day;
|
|
3009
|
+
}
|
|
3010
|
+
} else {
|
|
3011
|
+
o = refineDay(this, e, refineMonth(this, e, Br, t), Br, t);
|
|
3012
|
+
}
|
|
3013
|
+
}
|
|
3014
|
+
const c = this.v(r, i, o);
|
|
3015
|
+
if (!c) {
|
|
3016
|
+
throw new RangeError("Cannot guess year");
|
|
3017
|
+
}
|
|
3018
|
+
const [u, f] = c;
|
|
3019
|
+
return createPlainMonthDaySlots(checkIsoDateInBounds(this.P(u, f, o)), this.id || l);
|
|
3020
|
+
},
|
|
3021
|
+
fields(e) {
|
|
3022
|
+
return getCalendarEraOrigins(this) && e.includes("year") ? [ ...e, ...$o ] : e;
|
|
3023
|
+
},
|
|
3024
|
+
V(e, n) {
|
|
3025
|
+
const t = Object.assign(Object.create(null), e);
|
|
3026
|
+
return spliceFields(t, n, _o), getCalendarEraOrigins(this) && (spliceFields(t, n, Ho),
|
|
3027
|
+
this.id === rr && spliceFields(t, n, er, $o)), t;
|
|
3028
|
+
},
|
|
3029
|
+
inLeapYear(e) {
|
|
3030
|
+
const [n] = this.I(e);
|
|
3031
|
+
return this.ie(n);
|
|
3032
|
+
},
|
|
3033
|
+
monthsInYear(e) {
|
|
3034
|
+
const [n] = this.I(e);
|
|
3035
|
+
return this.J(n);
|
|
3036
|
+
},
|
|
3037
|
+
daysInMonth(e) {
|
|
3038
|
+
const [n, t] = this.I(e);
|
|
3039
|
+
return this.K(n, t);
|
|
3040
|
+
},
|
|
3041
|
+
daysInYear(e) {
|
|
3042
|
+
const [n] = this.I(e);
|
|
3043
|
+
return this.ae(n);
|
|
3044
|
+
},
|
|
3045
|
+
dayOfYear: computeNativeDayOfYear,
|
|
3046
|
+
era(e) {
|
|
3047
|
+
return this.se(e)[0];
|
|
3048
|
+
},
|
|
3049
|
+
eraYear(e) {
|
|
3050
|
+
return this.se(e)[1];
|
|
3051
|
+
},
|
|
3052
|
+
monthCode(e) {
|
|
3053
|
+
const [n, t] = this.I(e), [o, r] = this.N(n, t);
|
|
3054
|
+
return formatMonthCode(o, r);
|
|
3055
|
+
},
|
|
3056
|
+
dayOfWeek: computeIsoDayOfWeek,
|
|
3057
|
+
daysInWeek() {
|
|
3058
|
+
return 7;
|
|
3059
|
+
}
|
|
3060
|
+
}, Ri = {
|
|
3061
|
+
I: computeIsoDateParts,
|
|
3062
|
+
se: computeIsoEraParts,
|
|
3063
|
+
N: computeIsoMonthCodeParts
|
|
3064
|
+
}, Zi = {
|
|
3065
|
+
dayOfYear: computeNativeDayOfYear,
|
|
3066
|
+
I: computeIsoDateParts,
|
|
3067
|
+
k: isoArgsToEpochMilli
|
|
3068
|
+
}, zi = /*@__PURE__*/ Object.assign({}, Zi, {
|
|
3069
|
+
weekOfYear: computeNativeWeekOfYear,
|
|
3070
|
+
yearOfWeek: computeNativeYearOfWeek,
|
|
3071
|
+
B(e) {
|
|
3072
|
+
function computeWeekShift(e) {
|
|
3073
|
+
return (7 - e < n ? 7 : 0) - e;
|
|
3074
|
+
}
|
|
3075
|
+
function computeWeeksInYear(e) {
|
|
3076
|
+
const n = computeIsoDaysInYear(f + e), t = e || 1, o = computeWeekShift(modFloor(a + n * t, 7));
|
|
3077
|
+
return c = (n + (o - s) * t) / 7;
|
|
3078
|
+
}
|
|
3079
|
+
const n = this.id ? 1 : 4, t = computeIsoDayOfWeek(e), o = this.dayOfYear(e), r = modFloor(t - 1, 7), i = o - 1, a = modFloor(r - i, 7), s = computeWeekShift(a);
|
|
3080
|
+
let c, u = Math.floor((i - s) / 7) + 1, f = e.isoYear;
|
|
3081
|
+
return u ? u > computeWeeksInYear(0) && (u = 1, f++) : (u = computeWeeksInYear(-1),
|
|
3082
|
+
f--), [ u, f, c ];
|
|
3083
|
+
}
|
|
3084
|
+
}), Ui = /*@__PURE__*/ Object.assign({}, Yi, zi, {
|
|
3085
|
+
I: computeIsoDateParts,
|
|
3086
|
+
se: computeIsoEraParts,
|
|
3087
|
+
N: computeIsoMonthCodeParts,
|
|
3088
|
+
v(e, n) {
|
|
3089
|
+
if (!n) {
|
|
3090
|
+
return [ Br, e ];
|
|
3091
|
+
}
|
|
3092
|
+
},
|
|
3093
|
+
ie: computeIsoInLeapYear,
|
|
3094
|
+
_() {},
|
|
3095
|
+
J: computeIsoMonthsInYear,
|
|
3096
|
+
re: e => e * kr,
|
|
3097
|
+
K: computeIsoDaysInMonth,
|
|
3098
|
+
ae: computeIsoDaysInYear,
|
|
3099
|
+
P: (e, n, t) => ({
|
|
3100
|
+
isoYear: e,
|
|
3101
|
+
isoMonth: n,
|
|
3102
|
+
isoDay: t
|
|
3103
|
+
}),
|
|
3104
|
+
k: isoArgsToEpochMilli,
|
|
3105
|
+
oe: (e, n, t) => (e += divTrunc(t, kr), (n += modTrunc(t, kr)) < 1 ? (e--, n += kr) : n > kr && (e++,
|
|
3106
|
+
n -= kr), [ e, n ]),
|
|
3107
|
+
year(e) {
|
|
3108
|
+
return e.isoYear;
|
|
3109
|
+
},
|
|
3110
|
+
month(e) {
|
|
3111
|
+
return e.isoMonth;
|
|
3112
|
+
},
|
|
3113
|
+
day: e => e.isoDay
|
|
3114
|
+
}), Ai = {
|
|
3115
|
+
I: computeIntlDateParts,
|
|
3116
|
+
se: computeIntlEraParts,
|
|
3117
|
+
N: computeIntlMonthCodeParts
|
|
3118
|
+
}, qi = {
|
|
3119
|
+
dayOfYear: computeNativeDayOfYear,
|
|
3120
|
+
I: computeIntlDateParts,
|
|
3121
|
+
k: computeIntlEpochMilli,
|
|
3122
|
+
weekOfYear: computeNativeWeekOfYear,
|
|
3123
|
+
yearOfWeek: computeNativeYearOfWeek,
|
|
3124
|
+
B() {
|
|
3125
|
+
return [];
|
|
3126
|
+
}
|
|
3127
|
+
}, Wi = /*@__PURE__*/ Object.assign({}, Yi, qi, {
|
|
3128
|
+
I: computeIntlDateParts,
|
|
3129
|
+
se: computeIntlEraParts,
|
|
3130
|
+
N: computeIntlMonthCodeParts,
|
|
3131
|
+
v(e, n, t) {
|
|
3132
|
+
const o = this.id && "chinese" === computeCalendarIdBase(this.id) ? ((e, n, t) => {
|
|
3133
|
+
if (n) {
|
|
3134
|
+
switch (e) {
|
|
3135
|
+
case 1:
|
|
3136
|
+
return 1651;
|
|
3137
|
+
|
|
3138
|
+
case 2:
|
|
3139
|
+
return t < 30 ? 1947 : 1765;
|
|
3140
|
+
|
|
3141
|
+
case 3:
|
|
3142
|
+
return t < 30 ? 1966 : 1955;
|
|
3143
|
+
|
|
3144
|
+
case 4:
|
|
3145
|
+
return t < 30 ? 1963 : 1944;
|
|
3146
|
+
|
|
3147
|
+
case 5:
|
|
3148
|
+
return t < 30 ? 1971 : 1952;
|
|
3149
|
+
|
|
3150
|
+
case 6:
|
|
3151
|
+
return t < 30 ? 1960 : 1941;
|
|
3152
|
+
|
|
3153
|
+
case 7:
|
|
3154
|
+
return t < 30 ? 1968 : 1938;
|
|
3155
|
+
|
|
3156
|
+
case 8:
|
|
3157
|
+
return t < 30 ? 1957 : 1718;
|
|
3158
|
+
|
|
3159
|
+
case 9:
|
|
3160
|
+
return 1832;
|
|
3161
|
+
|
|
3162
|
+
case 10:
|
|
3163
|
+
return 1870;
|
|
3164
|
+
|
|
3165
|
+
case 11:
|
|
3166
|
+
return 1814;
|
|
3167
|
+
|
|
3168
|
+
case 12:
|
|
3169
|
+
return 1890;
|
|
3170
|
+
}
|
|
3171
|
+
}
|
|
3172
|
+
return 1972;
|
|
3173
|
+
})(e, n, t) : Br;
|
|
3174
|
+
let [r, i, a] = computeIntlDateParts.call(this, {
|
|
3175
|
+
isoYear: o,
|
|
3176
|
+
isoMonth: kr,
|
|
3177
|
+
isoDay: 31
|
|
3178
|
+
});
|
|
3179
|
+
const s = computeIntlLeapMonth.call(this, r), c = i === s;
|
|
3180
|
+
1 === (compareNumbers(e, monthToMonthCodeNumber(i, s)) || compareNumbers(Number(n), Number(c)) || compareNumbers(t, a)) && r--;
|
|
3181
|
+
for (let o = 0; o < 100; o++) {
|
|
3182
|
+
const i = r - o, a = computeIntlLeapMonth.call(this, i), s = monthCodeNumberToMonth(e, n, a);
|
|
3183
|
+
if (n === (s === a) && t <= computeIntlDaysInMonth.call(this, i, s)) {
|
|
3184
|
+
return [ i, s ];
|
|
3185
|
+
}
|
|
3186
|
+
}
|
|
3187
|
+
},
|
|
3188
|
+
ie(e) {
|
|
3189
|
+
const n = computeIntlDaysInYear.call(this, e);
|
|
3190
|
+
return n > computeIntlDaysInYear.call(this, e - 1) && n > computeIntlDaysInYear.call(this, e + 1);
|
|
3191
|
+
},
|
|
3192
|
+
_: computeIntlLeapMonth,
|
|
3193
|
+
J: computeIntlMonthsInYear,
|
|
3194
|
+
re(e, n) {
|
|
3195
|
+
const t = n + e, o = Math.sign(e), r = o < 0 ? -1 : 0;
|
|
3196
|
+
let i = 0;
|
|
3197
|
+
for (let e = n; e !== t; e += o) {
|
|
3198
|
+
i += computeIntlMonthsInYear.call(this, e + r);
|
|
3199
|
+
}
|
|
3200
|
+
return i;
|
|
3201
|
+
},
|
|
3202
|
+
K: computeIntlDaysInMonth,
|
|
3203
|
+
ae: computeIntlDaysInYear,
|
|
3204
|
+
P(e, n, t) {
|
|
3205
|
+
return epochMilliToIso(computeIntlEpochMilli.call(this, e, n, t));
|
|
3206
|
+
},
|
|
3207
|
+
k: computeIntlEpochMilli,
|
|
3208
|
+
oe(e, n, t) {
|
|
3209
|
+
if (t) {
|
|
3210
|
+
if (n += t, !Number.isSafeInteger(n)) {
|
|
3211
|
+
throw new RangeError(Io);
|
|
3212
|
+
}
|
|
3213
|
+
if (t < 0) {
|
|
3214
|
+
for (;n < 1; ) {
|
|
3215
|
+
n += computeIntlMonthsInYear.call(this, --e);
|
|
3216
|
+
}
|
|
3217
|
+
} else {
|
|
3218
|
+
let t;
|
|
3219
|
+
for (;n > (t = computeIntlMonthsInYear.call(this, e)); ) {
|
|
3220
|
+
n -= t, e++;
|
|
3221
|
+
}
|
|
3222
|
+
}
|
|
3223
|
+
}
|
|
3224
|
+
return [ e, n ];
|
|
3225
|
+
},
|
|
3226
|
+
year(e) {
|
|
3227
|
+
return this.R(e).year;
|
|
3228
|
+
},
|
|
3229
|
+
month(e) {
|
|
3230
|
+
const {year: n, C: t} = this.R(e), {j: o} = this.U(n);
|
|
3231
|
+
return o[t] + 1;
|
|
3232
|
+
},
|
|
3233
|
+
day(e) {
|
|
3234
|
+
return this.R(e).day;
|
|
3235
|
+
}
|
|
3236
|
+
}), ji = /*@__PURE__*/ createNativeOpsCreator(Ri, Ai), C = /*@__PURE__*/ createNativeOpsCreator(Ui, Wi), Li = {
|
|
3237
|
+
...{
|
|
3238
|
+
era: toStringViaPrimitive,
|
|
3239
|
+
eraYear: toInteger,
|
|
3240
|
+
year: toInteger,
|
|
3241
|
+
month: toPositiveInteger,
|
|
3242
|
+
monthCode(e) {
|
|
3243
|
+
const n = toStringViaPrimitive(e);
|
|
3244
|
+
return parseMonthCode(n), n;
|
|
3245
|
+
},
|
|
3246
|
+
day: toPositiveInteger
|
|
3247
|
+
},
|
|
3248
|
+
.../*@__PURE__*/ wo(O, toInteger),
|
|
3249
|
+
.../*@__PURE__*/ wo(p, toStrictInteger),
|
|
3250
|
+
offset(e) {
|
|
3251
|
+
const n = toStringViaPrimitive(e);
|
|
3252
|
+
return parseOffsetNano(n), n;
|
|
3253
|
+
}
|
|
3254
|
+
}, xi = /*@__PURE__*/ Pt(remapProps, O, w), $i = /*@__PURE__*/ Pt(remapProps, w, O), Hi = "numeric", Gi = [ "timeZoneName" ], Vi = {
|
|
3255
|
+
month: Hi,
|
|
3256
|
+
day: Hi
|
|
3257
|
+
}, _i = {
|
|
3258
|
+
year: Hi,
|
|
3259
|
+
month: Hi
|
|
3260
|
+
}, Ji = /*@__PURE__*/ Object.assign({}, _i, {
|
|
3261
|
+
day: Hi
|
|
3262
|
+
}), Ki = {
|
|
3263
|
+
hour: Hi,
|
|
3264
|
+
minute: Hi,
|
|
3265
|
+
second: Hi
|
|
3266
|
+
}, Qi = /*@__PURE__*/ Object.assign({}, Ji, Ki), Xi = /*@__PURE__*/ Object.assign({}, Qi, {
|
|
3267
|
+
timeZoneName: "short"
|
|
3268
|
+
}), ea = /*@__PURE__*/ Object.keys(_i), na = /*@__PURE__*/ Object.keys(Vi), ta = /*@__PURE__*/ Object.keys(Ji), oa = /*@__PURE__*/ Object.keys(Ki), ra = [ "dateStyle" ], ia = /*@__PURE__*/ ea.concat(ra), aa = /*@__PURE__*/ na.concat(ra), sa = /*@__PURE__*/ ta.concat(ra, [ "weekday" ]), ca = /*@__PURE__*/ oa.concat([ "dayPeriod", "timeStyle", "fractionalSecondDigits" ]), ua = /*@__PURE__*/ sa.concat(ca), fa = /*@__PURE__*/ Gi.concat(ca), la = /*@__PURE__*/ Gi.concat(sa), da = /*@__PURE__*/ Gi.concat([ "day", "weekday" ], ca), ma = /*@__PURE__*/ Gi.concat([ "year", "weekday" ], ca), pa = /*@__PURE__*/ createOptionsTransformer(ua, Qi), ha = /*@__PURE__*/ createOptionsTransformer(ua, Xi), ga = /*@__PURE__*/ createOptionsTransformer(ua, Qi, Gi), Da = /*@__PURE__*/ createOptionsTransformer(sa, Ji, fa), Ta = /*@__PURE__*/ createOptionsTransformer(ca, Ki, la), Ia = /*@__PURE__*/ createOptionsTransformer(ia, _i, da), Ma = /*@__PURE__*/ createOptionsTransformer(aa, Vi, ma), Na = {}, ya = /*@__PURE__*/ new en(void 0, {
|
|
3269
|
+
calendar: l
|
|
3270
|
+
}).resolvedOptions().calendar === l, U = [ pa, I ], ot = [ ha, I, 0, (e, n) => {
|
|
3271
|
+
const t = e.timeZone;
|
|
3272
|
+
if (n && n.timeZone !== t) {
|
|
3273
|
+
throw new RangeError(mo);
|
|
3274
|
+
}
|
|
3275
|
+
return t;
|
|
3276
|
+
} ], X = [ ga, isoToEpochMilli ], _ = [ Da, isoToEpochMilli ], tt = [ Ta, e => isoTimeFieldsToNano(e) / Qe ], et = [ Ia, isoToEpochMilli, ya ], nt = [ Ma, isoToEpochMilli, ya ];
|
|
3277
|
+
|
|
3278
|
+
let va;
|
|
3279
|
+
|
|
3280
|
+
export { N as DurationBranding, Re as InstantBranding, G as PlainDateBranding, x as PlainDateTimeBranding, qt as PlainMonthDayBranding, ft as PlainTimeBranding, Ut as PlainYearMonthBranding, en as RawDateTimeFormat, z as ZonedDateTimeBranding, Y as absDuration, E as addDurations, Pt as bindArgs, K as compareDurations, Ke as compareInstants, te as compareIsoDateFields, Yt as compareIsoDateTimeFields, Dt as compareIsoTimeFields, Be as compareZonedDateTimes, Te as computeZonedHoursInDay, ve as computeZonedStartOfDay, j as constructDurationSlots, qe as constructInstantSlots, ue as constructPlainDateSlots, Zt as constructPlainDateTimeSlots, kt as constructPlainMonthDaySlots, ut as constructPlainTimeSlots, Qt as constructPlainYearMonthSlots, ye as constructZonedDateTimeSlots, Oe as createDurationSlots, an as createFormatForPrep, Q as createFormatPrepper, t as createGetterDescriptors, xe as createInstantSlots, r as createNameDescriptors, C as createNativeStandardOps, W as createPlainDateSlots, jt as createPlainDateTimeSlots, St as createPlainTimeSlots, n as createPropDescriptors, o as createStringTagDescriptors, _e as createZonedDateTimeSlots, _ as dateConfig, X as dateTimeConfig, Ee as diffInstants, It as diffPlainDateTimes, oe as diffPlainDates, it as diffPlainTimes, zt as diffPlainYearMonth, we as diffZonedDateTimes, p as durationFieldNamesAsc, A as durationWithFields, $e as epochMilliToInstant, He as epochNanoToInstant, b as forbiddenValueOf, k as formatDurationIso, ke as formatInstantIso, Se as formatOffsetNano, ce as formatPlainDateIso, Ft as formatPlainDateTimeIso, Jt as formatPlainMonthDayIso, ct as formatPlainTimeIso, Kt as formatPlainYearMonthIso, Fe as formatZonedDateTimeIso, Xe as getCurrentEpochNano, tn as getCurrentIsoDateTime, Ue as getCurrentTimeZoneId, y as getDurationBlank, I as getEpochMilli, v as getEpochNano, U as instantConfig, Je as instantToZonedDateTime, Ve as instantsEqual, i as invalidBag, c as invalidCalendar, a as invalidCallingContext, rn as invalidFormatType, F as invalidTimeZone, s as isObjectLike, l as isoCalendarId, Nt as isoTimeFieldDefaults, w as isoTimeFieldNamesAsc, g as mapPropNames, e as mapProps, on as memoize, ln as mismatchingFormatTypes, nt as monthDayConfig, Ye as moveInstant, ne as movePlainDate, wt as movePlainDateTime, at as movePlainTime, Gt as movePlainYearMonth, pe as moveZonedDateTime, Qe as nanoInMilli, B as negateDuration, Ge as numberToBigNano, f as parseCalendarId, R as parseDuration, We as parseInstant, de as parsePlainDate, Bt as parsePlainDateTime, xt as parsePlainMonthDay, ht as parsePlainTime, _t as parsePlainYearMonth, H as parseRelativeToSlots, Z as parseTimeZoneId, Ae as parseZonedDateTime, bt as plainDateTimeToZonedDateTime, gt as plainDateTimeWithFields, Ot as plainDateTimeWithPlainTime, Ct as plainDateTimesEqual, ie as plainDateToPlainDateTime, se as plainDateToPlainMonthDay, le as plainDateToPlainYearMonth, ae as plainDateToZonedDateTime, ee as plainDateWithFields, re as plainDatesEqual, Vt as plainMonthDayToPlainDate, Et as plainMonthDayWithFields, Lt as plainMonthDaysEqual, rt as plainTimeWithFields, st as plainTimesEqual, Ht as plainYearMonthToPlainDate, Wt as plainYearMonthWithFields, $t as plainYearMonthsEqual, nn as pluckProps, L as queryNativeTimeZone, Mt as refineCalendarId, Me as refineDirectionOptions, q as refineDurationBag, $ as refineMaybeZonedDateTimeBag, mt as refineOverflowOptions, me as refinePlainDateBag, At as refinePlainDateTimeBag, Rt as refinePlainMonthDayBag, Tt as refinePlainTimeBag, Xt as refinePlainYearMonthBag, Ze as refineTimeZoneId, Ne as refineZonedDateTimeBag, je as refineZonedFieldOptions, D as requireBoolean, T as requireInteger, S as requireIntegerOrUndefined, ze as requireNumberIsInteger, h as requirePositiveInteger, P as requirePositiveIntegerOrUndefined, m as requireString, d as requireStringOrUndefined, u as resolveCalendarId, M as resolveTimeZoneId, V as roundDuration, Le as roundInstant, vt as roundPlainDateTime, lt as roundPlainTime, Ie as roundZonedDateTime, pt as slotsWithCalendarId, Pe as slotsWithTimeZoneId, tt as timeConfig, O as timeFieldNamesAsc, J as totalDuration, et as yearMonthConfig, ot as zonedConfig, be as zonedDateTimeToInstant, fe as zonedDateTimeToPlainDate, yt as zonedDateTimeToPlainDateTime, dt as zonedDateTimeToPlainTime, De as zonedDateTimeWithFields, ge as zonedDateTimeWithPlainTime, Ce as zonedDateTimesEqual, he as zonedEpochSlotsToIso };
|