@oneclick.dev/cms-core-modules 0.0.82 → 0.0.83
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/dist/{ContentEditor-4e80zFyn.js → ContentEditor-CRFkD4tE.js} +33 -33
- package/dist/{ContentEditor-Dk-iDEjl.mjs → ContentEditor-CxKirDdL.mjs} +2861 -2854
- package/dist/{Create-DtFzwxn_.mjs → Create-CsqVYhPO.mjs} +1 -1
- package/dist/{Create-CRn2sMHp.js → Create-ip0MnS0o.js} +1 -1
- package/dist/{DateFormatter-DfIwyrnF.mjs → DateFormatter-CvOfaUnU.mjs} +137 -134
- package/dist/DateFormatter-ls6HfWpS.js +1 -0
- package/dist/{Detail-BwDnY42G.mjs → Detail-CbLk1v37.mjs} +1 -1
- package/dist/{Detail-Bxi7lG9x.js → Detail-RMXFuSRQ.js} +1 -1
- package/dist/{NewReservationDialog.vue_vue_type_script_setup_true_lang-Ds7z0qeH.mjs → NewReservationDialog.vue_vue_type_script_setup_true_lang-CDc8MIq2.mjs} +1 -1
- package/dist/{NewReservationDialog.vue_vue_type_script_setup_true_lang-C5YczjNb.js → NewReservationDialog.vue_vue_type_script_setup_true_lang-StaNp-3y.js} +1 -1
- package/dist/{Overview-pCO_47Zt.js → Overview-B2bFNGhH.js} +1 -1
- package/dist/{Overview-CuCQgqVp.mjs → Overview-Cczt_dcE.mjs} +1 -1
- package/dist/{SeoHealth-EZzDmPDM.js → SeoHealth-DFZ0LLBH.js} +1 -1
- package/dist/{SeoHealth-CC0rW1AG.mjs → SeoHealth-ZpvB7CS2.mjs} +1 -1
- package/dist/{TableView-DRQvOW85.mjs → TableView-BUPPcHUW.mjs} +28920 -28605
- package/dist/{TableView-Ce8H65pL.js → TableView-CksiPsTL.js} +152 -152
- package/dist/{agenda-XqvbrU72.mjs → agenda-Cl3s_FIE.mjs} +2 -2
- package/dist/{agenda-wNFDKn0G.js → agenda-rlFma_wn.js} +1 -1
- package/dist/{exceptions-wEQEVzIs.js → exceptions-BA3PsW4n.js} +1 -1
- package/dist/{exceptions-CLgeeUSy.mjs → exceptions-DQPSFSj7.mjs} +1 -1
- package/dist/floating-ui.dom-B9WYoHj2.js +1 -0
- package/dist/{floating-ui.dom-BO2Hr6mz.mjs → floating-ui.dom-fpIfhXTZ.mjs} +400 -401
- package/dist/{index-DTzdHh6g.js → index-CBC9dWZ9.js} +1 -1
- package/dist/{index-DYpruS-A-D38FBcI3.mjs → index-DYpruS-A-Cw57iwdY.mjs} +2 -3
- package/dist/{index-DYpruS-A-CA2jEOA3.js → index-DYpruS-A-DwDXo9Tq.js} +5 -5
- package/dist/{index-N0NoDEsI.mjs → index-YOOlBEZB.mjs} +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.mjs +38 -24
- package/dist/orders-DZzdsHOW.mjs +397 -0
- package/dist/orders-tP4WdF5q.js +1 -0
- package/dist/server-handlers.cjs.js +1 -1
- package/dist/server-handlers.mjs +334 -293
- package/dist/src/contentManager/config.d.ts +28 -0
- package/dist/src/contentManager/index.d.ts +28 -0
- package/dist/src/contentManager/server.d.ts +7 -0
- package/dist/src/server-handlers.d.ts +1 -0
- package/package.json +2 -2
- package/dist/DateFormatter-C9qfmQnP.js +0 -1
- package/dist/floating-ui.dom-CAr9LGoC.js +0 -1
- package/dist/orders-Bqa3Z3tH.mjs +0 -356
- package/dist/orders-D5GJOZXN.js +0 -1
|
@@ -13,14 +13,14 @@ function R(e) {
|
|
|
13
13
|
function J(e, t) {
|
|
14
14
|
return e === "BC" ? 1 - t : t;
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function pe(e) {
|
|
17
17
|
let t = "AD";
|
|
18
18
|
return e <= 0 && (t = "BC", e = 1 - e), [
|
|
19
19
|
t,
|
|
20
20
|
e
|
|
21
21
|
];
|
|
22
22
|
}
|
|
23
|
-
const
|
|
23
|
+
const ge = {
|
|
24
24
|
standard: [
|
|
25
25
|
31,
|
|
26
26
|
28,
|
|
@@ -52,16 +52,16 @@ const pe = {
|
|
|
52
52
|
};
|
|
53
53
|
class w {
|
|
54
54
|
fromJulianDay(t) {
|
|
55
|
-
let r = t, n = r - te, a = Math.floor(n / 146097), o = U(n, 146097), i = Math.floor(o / 36524), c = U(o, 36524), s = Math.floor(c / 1461), h = U(c, 1461), M = Math.floor(h / 365), p = a * 400 + i * 100 + s * 4 + M + (i !== 4 && M !== 4 ? 1 : 0), [g, m] =
|
|
55
|
+
let r = t, n = r - te, a = Math.floor(n / 146097), o = U(n, 146097), i = Math.floor(o / 36524), c = U(o, 36524), s = Math.floor(c / 1461), h = U(c, 1461), M = Math.floor(h / 365), p = a * 400 + i * 100 + s * 4 + M + (i !== 4 && M !== 4 ? 1 : 0), [g, m] = pe(p), y = r - C(g, m, 1, 1), T = 2;
|
|
56
56
|
r < C(g, m, 3, 1) ? T = 0 : R(m) && (T = 1);
|
|
57
|
-
let G = Math.floor(((y + T) * 12 + 373) / 367),
|
|
58
|
-
return new I(g, m, G,
|
|
57
|
+
let G = Math.floor(((y + T) * 12 + 373) / 367), Me = r - C(g, m, G, 1) + 1;
|
|
58
|
+
return new I(g, m, G, Me);
|
|
59
59
|
}
|
|
60
60
|
toJulianDay(t) {
|
|
61
61
|
return C(t.era, t.year, t.month, t.day);
|
|
62
62
|
}
|
|
63
63
|
getDaysInMonth(t) {
|
|
64
|
-
return
|
|
64
|
+
return ge[R(t.year) ? "leapyear" : "standard"][t.month - 1];
|
|
65
65
|
}
|
|
66
66
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
67
67
|
getMonthsInYear(t) {
|
|
@@ -96,7 +96,7 @@ class w {
|
|
|
96
96
|
this.identifier = "gregory";
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
const
|
|
99
|
+
const we = {
|
|
100
100
|
"001": 1,
|
|
101
101
|
AD: 1,
|
|
102
102
|
AE: 6,
|
|
@@ -196,21 +196,21 @@ const ge = {
|
|
|
196
196
|
function re(e, t) {
|
|
197
197
|
return t = l(t, e.calendar), e.era === t.era && e.year === t.year && e.month === t.month && e.day === t.day;
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function ve(e, t) {
|
|
200
200
|
return t = l(t, e.calendar), e = z(e), t = z(t), e.era === t.era && e.year === t.year && e.month === t.month;
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function rt(e, t) {
|
|
203
203
|
return j(e.calendar, t.calendar) && re(e, t);
|
|
204
204
|
}
|
|
205
|
-
function
|
|
206
|
-
return j(e.calendar, t.calendar) &&
|
|
205
|
+
function nt(e, t) {
|
|
206
|
+
return j(e.calendar, t.calendar) && ve(e, t);
|
|
207
207
|
}
|
|
208
208
|
function j(e, t) {
|
|
209
209
|
var r, n, a, o;
|
|
210
210
|
return (o = (a = (r = e.isEqual) === null || r === void 0 ? void 0 : r.call(e, t)) !== null && a !== void 0 ? a : (n = t.isEqual) === null || n === void 0 ? void 0 : n.call(t, e)) !== null && o !== void 0 ? o : e.identifier === t.identifier;
|
|
211
211
|
}
|
|
212
|
-
function
|
|
213
|
-
return re(e,
|
|
212
|
+
function at(e, t) {
|
|
213
|
+
return re(e, xe(t));
|
|
214
214
|
}
|
|
215
215
|
const De = {
|
|
216
216
|
sun: 0,
|
|
@@ -221,41 +221,44 @@ const De = {
|
|
|
221
221
|
fri: 5,
|
|
222
222
|
sat: 6
|
|
223
223
|
};
|
|
224
|
-
function
|
|
225
|
-
let n = e.calendar.toJulianDay(e), a = r ? De[r] :
|
|
224
|
+
function ot(e, t, r) {
|
|
225
|
+
let n = e.calendar.toJulianDay(e), a = r ? De[r] : Ae(t), o = Math.ceil(n + 1 - a) % 7;
|
|
226
226
|
return o < 0 && (o += 7), o;
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function Ie(e) {
|
|
229
229
|
return d(Date.now(), e);
|
|
230
230
|
}
|
|
231
|
-
function
|
|
232
|
-
return
|
|
231
|
+
function xe(e) {
|
|
232
|
+
return Be(Ie(e));
|
|
233
233
|
}
|
|
234
234
|
function ne(e, t) {
|
|
235
235
|
return e.calendar.toJulianDay(e) - t.calendar.toJulianDay(t);
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function Ee(e, t) {
|
|
238
238
|
return _(e) - _(t);
|
|
239
239
|
}
|
|
240
240
|
function _(e) {
|
|
241
241
|
return e.hour * 36e5 + e.minute * 6e4 + e.second * 1e3 + e.millisecond;
|
|
242
242
|
}
|
|
243
|
-
let k = null;
|
|
243
|
+
let k = null, Se = !1;
|
|
244
244
|
function ae() {
|
|
245
245
|
return k == null && (k = new Intl.DateTimeFormat().resolvedOptions().timeZone), k;
|
|
246
246
|
}
|
|
247
|
+
function oe() {
|
|
248
|
+
return Se;
|
|
249
|
+
}
|
|
247
250
|
function z(e) {
|
|
248
251
|
return e.subtract({
|
|
249
252
|
days: e.day - 1
|
|
250
253
|
});
|
|
251
254
|
}
|
|
252
|
-
function
|
|
255
|
+
function it(e) {
|
|
253
256
|
return e.add({
|
|
254
257
|
days: e.calendar.getDaysInMonth(e) - e.day
|
|
255
258
|
});
|
|
256
259
|
}
|
|
257
260
|
const Q = /* @__PURE__ */ new Map(), O = /* @__PURE__ */ new Map();
|
|
258
|
-
function
|
|
261
|
+
function Ce(e) {
|
|
259
262
|
if (Intl.Locale) {
|
|
260
263
|
let r = Q.get(e);
|
|
261
264
|
return r || (r = new Intl.Locale(e).maximize().region, r && Q.set(e, r)), r;
|
|
@@ -263,7 +266,7 @@ function Ee(e) {
|
|
|
263
266
|
let t = e.split("-")[1];
|
|
264
267
|
return t === "u" ? void 0 : t;
|
|
265
268
|
}
|
|
266
|
-
function
|
|
269
|
+
function Ae(e) {
|
|
267
270
|
let t = O.get(e);
|
|
268
271
|
if (!t) {
|
|
269
272
|
if (Intl.Locale) {
|
|
@@ -271,7 +274,7 @@ function Se(e) {
|
|
|
271
274
|
if ("getWeekInfo" in n && (t = n.getWeekInfo(), t))
|
|
272
275
|
return O.set(e, t), t.firstDay;
|
|
273
276
|
}
|
|
274
|
-
let r =
|
|
277
|
+
let r = Ce(e);
|
|
275
278
|
if (e.includes("-fw-")) {
|
|
276
279
|
let n = e.split("-fw-")[1].split("-")[0];
|
|
277
280
|
n === "mon" ? t = {
|
|
@@ -292,29 +295,29 @@ function Se(e) {
|
|
|
292
295
|
} else e.includes("-ca-iso8601") ? t = {
|
|
293
296
|
firstDay: 1
|
|
294
297
|
} : t = {
|
|
295
|
-
firstDay: r &&
|
|
298
|
+
firstDay: r && we[r] || 0
|
|
296
299
|
};
|
|
297
300
|
O.set(e, t);
|
|
298
301
|
}
|
|
299
302
|
return t.firstDay;
|
|
300
303
|
}
|
|
301
|
-
function
|
|
304
|
+
function v(e) {
|
|
302
305
|
e = l(e, new w());
|
|
303
306
|
let t = J(e.era, e.year);
|
|
304
|
-
return
|
|
307
|
+
return ie(t, e.month, e.day, e.hour, e.minute, e.second, e.millisecond);
|
|
305
308
|
}
|
|
306
|
-
function
|
|
309
|
+
function ie(e, t, r, n, a, o, i) {
|
|
307
310
|
let c = /* @__PURE__ */ new Date();
|
|
308
311
|
return c.setUTCHours(n, a, o, i), c.setUTCFullYear(e, t - 1, r), c.getTime();
|
|
309
312
|
}
|
|
310
313
|
function F(e, t) {
|
|
311
314
|
if (t === "UTC") return 0;
|
|
312
|
-
if (e > 0 && t === ae()) return new Date(e).getTimezoneOffset() * -6e4;
|
|
313
|
-
let { year: r, month: n, day: a, hour: o, minute: i, second: c } =
|
|
314
|
-
return
|
|
315
|
+
if (e > 0 && t === ae() && !oe()) return new Date(e).getTimezoneOffset() * -6e4;
|
|
316
|
+
let { year: r, month: n, day: a, hour: o, minute: i, second: c } = ce(e, t);
|
|
317
|
+
return ie(r, n, a, o, i, c, 0) - Math.floor(e / 1e3) * 1e3;
|
|
315
318
|
}
|
|
316
319
|
const X = /* @__PURE__ */ new Map();
|
|
317
|
-
function
|
|
320
|
+
function ce(e, t) {
|
|
318
321
|
let r = X.get(t);
|
|
319
322
|
r || (r = new Intl.DateTimeFormat("en-US", {
|
|
320
323
|
timeZone: t,
|
|
@@ -340,27 +343,27 @@ function ie(e, t) {
|
|
|
340
343
|
};
|
|
341
344
|
}
|
|
342
345
|
const ee = 864e5;
|
|
343
|
-
function
|
|
346
|
+
function Re(e, t, r, n) {
|
|
344
347
|
return (r === n ? [
|
|
345
348
|
r
|
|
346
349
|
] : [
|
|
347
350
|
r,
|
|
348
351
|
n
|
|
349
|
-
]).filter((o) =>
|
|
352
|
+
]).filter((o) => Ye(e, t, o));
|
|
350
353
|
}
|
|
351
|
-
function
|
|
352
|
-
let n =
|
|
354
|
+
function Ye(e, t, r) {
|
|
355
|
+
let n = ce(r, t);
|
|
353
356
|
return e.year === n.year && e.month === n.month && e.day === n.day && e.hour === n.hour && e.minute === n.minute && e.second === n.second;
|
|
354
357
|
}
|
|
355
358
|
function u(e, t, r = "compatible") {
|
|
356
|
-
let n =
|
|
357
|
-
if (t === "UTC") return
|
|
358
|
-
if (t === ae() && r === "compatible") {
|
|
359
|
+
let n = D(e);
|
|
360
|
+
if (t === "UTC") return v(n);
|
|
361
|
+
if (t === ae() && r === "compatible" && !oe()) {
|
|
359
362
|
n = l(n, new w());
|
|
360
363
|
let s = /* @__PURE__ */ new Date(), h = J(n.era, n.year);
|
|
361
364
|
return s.setFullYear(h, n.month - 1, n.day), s.setHours(n.hour, n.minute, n.second, n.millisecond), s.getTime();
|
|
362
365
|
}
|
|
363
|
-
let a =
|
|
366
|
+
let a = v(n), o = F(a - ee, t), i = F(a + ee, t), c = Re(n, t, a - o, a - i);
|
|
364
367
|
if (c.length === 1) return c[0];
|
|
365
368
|
if (c.length > 1) switch (r) {
|
|
366
369
|
// 'compatible' means 'earlier' for "fall back" transitions
|
|
@@ -383,17 +386,17 @@ function u(e, t, r = "compatible") {
|
|
|
383
386
|
throw new RangeError("No such absolute time found");
|
|
384
387
|
}
|
|
385
388
|
}
|
|
386
|
-
function
|
|
389
|
+
function se(e, t, r = "compatible") {
|
|
387
390
|
return new Date(u(e, t, r));
|
|
388
391
|
}
|
|
389
392
|
function d(e, t) {
|
|
390
393
|
let r = F(e, t), n = new Date(e + r), a = n.getUTCFullYear(), o = n.getUTCMonth() + 1, i = n.getUTCDate(), c = n.getUTCHours(), s = n.getUTCMinutes(), h = n.getUTCSeconds(), M = n.getUTCMilliseconds();
|
|
391
394
|
return new S(a < 1 ? "BC" : "AD", a < 1 ? -a + 1 : a, o, i, t, r, c, s, h, M);
|
|
392
395
|
}
|
|
393
|
-
function
|
|
396
|
+
function Be(e) {
|
|
394
397
|
return new I(e.calendar, e.era, e.year, e.month, e.day);
|
|
395
398
|
}
|
|
396
|
-
function
|
|
399
|
+
function D(e, t) {
|
|
397
400
|
let r = 0, n = 0, a = 0, o = 0;
|
|
398
401
|
if ("timeZone" in e) ({ hour: r, minute: n, second: a, millisecond: o } = e);
|
|
399
402
|
else if ("hour" in e && !t) return e;
|
|
@@ -404,24 +407,24 @@ function l(e, t) {
|
|
|
404
407
|
let r = t.fromJulianDay(e.calendar.toJulianDay(e)), n = e.copy();
|
|
405
408
|
return n.calendar = t, n.era = r.era, n.year = r.year, n.month = r.month, n.day = r.day, b(n), n;
|
|
406
409
|
}
|
|
407
|
-
function
|
|
410
|
+
function Te(e, t, r) {
|
|
408
411
|
if (e instanceof S)
|
|
409
|
-
return e.timeZone === t ? e :
|
|
412
|
+
return e.timeZone === t ? e : ke(e, t);
|
|
410
413
|
let n = u(e, t, r);
|
|
411
414
|
return d(n, t);
|
|
412
415
|
}
|
|
413
|
-
function
|
|
414
|
-
let t =
|
|
416
|
+
function Ue(e) {
|
|
417
|
+
let t = v(e) - e.offset;
|
|
415
418
|
return new Date(t);
|
|
416
419
|
}
|
|
417
|
-
function
|
|
418
|
-
let r =
|
|
420
|
+
function ke(e, t) {
|
|
421
|
+
let r = v(e) - e.offset;
|
|
419
422
|
return l(d(r, t), e.calendar);
|
|
420
423
|
}
|
|
421
424
|
const x = 36e5;
|
|
422
425
|
function B(e, t) {
|
|
423
|
-
let r = e.copy(), n = "hour" in r ?
|
|
424
|
-
L(r, t.years || 0), r.calendar.balanceYearMonth && r.calendar.balanceYearMonth(r, e), r.month += t.months || 0, N(r),
|
|
426
|
+
let r = e.copy(), n = "hour" in r ? He(r, t) : 0;
|
|
427
|
+
L(r, t.years || 0), r.calendar.balanceYearMonth && r.calendar.balanceYearMonth(r, e), r.month += t.months || 0, N(r), le(r), r.day += (t.weeks || 0) * 7, r.day += t.days || 0, r.day += n, Oe(r), r.calendar.balanceDate && r.calendar.balanceDate(r), r.year < 1 && (r.year = 1, r.month = 1, r.day = 1);
|
|
425
428
|
let a = r.calendar.getYearsInEra(r);
|
|
426
429
|
if (r.year > a) {
|
|
427
430
|
var o, i;
|
|
@@ -443,25 +446,25 @@ function N(e) {
|
|
|
443
446
|
for (; e.month > (t = e.calendar.getMonthsInYear(e)); )
|
|
444
447
|
e.month -= t, L(e, 1);
|
|
445
448
|
}
|
|
446
|
-
function
|
|
449
|
+
function Oe(e) {
|
|
447
450
|
for (; e.day < 1; )
|
|
448
451
|
e.month--, N(e), e.day += e.calendar.getDaysInMonth(e);
|
|
449
452
|
for (; e.day > e.calendar.getDaysInMonth(e); )
|
|
450
453
|
e.day -= e.calendar.getDaysInMonth(e), e.month++, N(e);
|
|
451
454
|
}
|
|
452
|
-
function
|
|
455
|
+
function le(e) {
|
|
453
456
|
e.month = Math.max(1, Math.min(e.calendar.getMonthsInYear(e), e.month)), e.day = Math.max(1, Math.min(e.calendar.getDaysInMonth(e), e.day));
|
|
454
457
|
}
|
|
455
458
|
function b(e) {
|
|
456
|
-
e.calendar.constrainDate && e.calendar.constrainDate(e), e.year = Math.max(1, Math.min(e.calendar.getYearsInEra(e), e.year)),
|
|
459
|
+
e.calendar.constrainDate && e.calendar.constrainDate(e), e.year = Math.max(1, Math.min(e.calendar.getYearsInEra(e), e.year)), le(e);
|
|
457
460
|
}
|
|
458
|
-
function
|
|
461
|
+
function fe(e) {
|
|
459
462
|
let t = {};
|
|
460
463
|
for (let r in e) typeof e[r] == "number" && (t[r] = -e[r]);
|
|
461
464
|
return t;
|
|
462
465
|
}
|
|
463
|
-
function
|
|
464
|
-
return B(e,
|
|
466
|
+
function he(e, t) {
|
|
467
|
+
return B(e, fe(t));
|
|
465
468
|
}
|
|
466
469
|
function q(e, t) {
|
|
467
470
|
let r = e.copy();
|
|
@@ -469,22 +472,22 @@ function q(e, t) {
|
|
|
469
472
|
}
|
|
470
473
|
function Y(e, t) {
|
|
471
474
|
let r = e.copy();
|
|
472
|
-
return t.hour != null && (r.hour = t.hour), t.minute != null && (r.minute = t.minute), t.second != null && (r.second = t.second), t.millisecond != null && (r.millisecond = t.millisecond),
|
|
475
|
+
return t.hour != null && (r.hour = t.hour), t.minute != null && (r.minute = t.minute), t.second != null && (r.second = t.second), t.millisecond != null && (r.millisecond = t.millisecond), Pe(r), r;
|
|
473
476
|
}
|
|
474
|
-
function
|
|
477
|
+
function Ze(e) {
|
|
475
478
|
e.second += Math.floor(e.millisecond / 1e3), e.millisecond = A(e.millisecond, 1e3), e.minute += Math.floor(e.second / 60), e.second = A(e.second, 60), e.hour += Math.floor(e.minute / 60), e.minute = A(e.minute, 60);
|
|
476
479
|
let t = Math.floor(e.hour / 24);
|
|
477
480
|
return e.hour = A(e.hour, 24), t;
|
|
478
481
|
}
|
|
479
|
-
function
|
|
482
|
+
function Pe(e) {
|
|
480
483
|
e.millisecond = Math.max(0, Math.min(e.millisecond, 1e3)), e.second = Math.max(0, Math.min(e.second, 59)), e.minute = Math.max(0, Math.min(e.minute, 59)), e.hour = Math.max(0, Math.min(e.hour, 23));
|
|
481
484
|
}
|
|
482
485
|
function A(e, t) {
|
|
483
486
|
let r = e % t;
|
|
484
487
|
return r < 0 && (r += t), r;
|
|
485
488
|
}
|
|
486
|
-
function
|
|
487
|
-
return e.hour += t.hours || 0, e.minute += t.minutes || 0, e.second += t.seconds || 0, e.millisecond += t.milliseconds || 0,
|
|
489
|
+
function He(e, t) {
|
|
490
|
+
return e.hour += t.hours || 0, e.minute += t.minutes || 0, e.second += t.seconds || 0, e.millisecond += t.milliseconds || 0, Ze(e);
|
|
488
491
|
}
|
|
489
492
|
function W(e, t, r, n) {
|
|
490
493
|
let a = e.copy();
|
|
@@ -510,7 +513,7 @@ function W(e, t, r, n) {
|
|
|
510
513
|
}
|
|
511
514
|
return e.calendar.balanceDate && e.calendar.balanceDate(a), b(a), a;
|
|
512
515
|
}
|
|
513
|
-
function
|
|
516
|
+
function ue(e, t, r, n) {
|
|
514
517
|
let a = e.copy();
|
|
515
518
|
switch (t) {
|
|
516
519
|
case "hour": {
|
|
@@ -545,10 +548,10 @@ function $(e, t, r, n, a = !1) {
|
|
|
545
548
|
e += t, e < r ? e = n - (r - e - 1) : e > n && (e = r + (e - n - 1));
|
|
546
549
|
return e;
|
|
547
550
|
}
|
|
548
|
-
function
|
|
551
|
+
function de(e, t) {
|
|
549
552
|
let r;
|
|
550
553
|
if (t.years != null && t.years !== 0 || t.months != null && t.months !== 0 || t.weeks != null && t.weeks !== 0 || t.days != null && t.days !== 0) {
|
|
551
|
-
let a = B(
|
|
554
|
+
let a = B(D(e), {
|
|
552
555
|
years: t.years,
|
|
553
556
|
months: t.months,
|
|
554
557
|
weeks: t.weeks,
|
|
@@ -556,15 +559,15 @@ function ue(e, t) {
|
|
|
556
559
|
});
|
|
557
560
|
r = u(a, e.timeZone);
|
|
558
561
|
} else
|
|
559
|
-
r =
|
|
562
|
+
r = v(e) - e.offset;
|
|
560
563
|
r += t.milliseconds || 0, r += (t.seconds || 0) * 1e3, r += (t.minutes || 0) * 6e4, r += (t.hours || 0) * 36e5;
|
|
561
564
|
let n = d(r, e.timeZone);
|
|
562
565
|
return l(n, e.calendar);
|
|
563
566
|
}
|
|
564
|
-
function
|
|
565
|
-
return
|
|
567
|
+
function Fe(e, t) {
|
|
568
|
+
return de(e, fe(t));
|
|
566
569
|
}
|
|
567
|
-
function
|
|
570
|
+
function Le(e, t, r, n) {
|
|
568
571
|
switch (t) {
|
|
569
572
|
case "hour": {
|
|
570
573
|
let a = 0, o = 23;
|
|
@@ -572,7 +575,7 @@ function He(e, t, r, n) {
|
|
|
572
575
|
let y = e.hour >= 12;
|
|
573
576
|
a = y ? 12 : 0, o = y ? 23 : 11;
|
|
574
577
|
}
|
|
575
|
-
let i =
|
|
578
|
+
let i = D(e), c = l(Y(i, {
|
|
576
579
|
hour: a
|
|
577
580
|
}), new w()), s = [
|
|
578
581
|
u(c, e.timeZone, "earlier"),
|
|
@@ -582,42 +585,42 @@ function He(e, t, r, n) {
|
|
|
582
585
|
}), new w()), M = [
|
|
583
586
|
u(h, e.timeZone, "earlier"),
|
|
584
587
|
u(h, e.timeZone, "later")
|
|
585
|
-
].filter((y) => d(y, e.timeZone).day === h.day).pop(), p =
|
|
588
|
+
].filter((y) => d(y, e.timeZone).day === h.day).pop(), p = v(e) - e.offset, g = Math.floor(p / x), m = p % x;
|
|
586
589
|
return p = $(g, r, Math.floor(s / x), Math.floor(M / x), n?.round) * x + m, l(d(p, e.timeZone), e.calendar);
|
|
587
590
|
}
|
|
588
591
|
case "minute":
|
|
589
592
|
case "second":
|
|
590
593
|
case "millisecond":
|
|
591
|
-
return
|
|
594
|
+
return ue(e, t, r, n);
|
|
592
595
|
case "era":
|
|
593
596
|
case "year":
|
|
594
597
|
case "month":
|
|
595
598
|
case "day": {
|
|
596
|
-
let a = W(
|
|
599
|
+
let a = W(D(e), t, r, n), o = u(a, e.timeZone);
|
|
597
600
|
return l(d(o, e.timeZone), e.calendar);
|
|
598
601
|
}
|
|
599
602
|
default:
|
|
600
603
|
throw new Error("Unsupported field " + t);
|
|
601
604
|
}
|
|
602
605
|
}
|
|
603
|
-
function
|
|
604
|
-
let n =
|
|
606
|
+
function Ne(e, t, r) {
|
|
607
|
+
let n = D(e), a = Y(q(n, t), t);
|
|
605
608
|
if (a.compare(n) === 0) return e;
|
|
606
609
|
let o = u(a, e.timeZone, r);
|
|
607
610
|
return l(d(o, e.timeZone), e.calendar);
|
|
608
611
|
}
|
|
609
|
-
const
|
|
610
|
-
function
|
|
611
|
-
let t = e.match(
|
|
612
|
+
const Je = /^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/, je = /^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/, $e = /^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;
|
|
613
|
+
function ct(e) {
|
|
614
|
+
let t = e.match(Je);
|
|
612
615
|
if (!t)
|
|
613
|
-
throw
|
|
616
|
+
throw $e.test(e) ? new Error(`Invalid ISO 8601 date string: ${e}. Use parseAbsolute() instead.`) : new Error("Invalid ISO 8601 date string: " + e);
|
|
614
617
|
let r = new I(f(t[1], 0, 9999), f(t[2], 1, 12), 1);
|
|
615
618
|
return r.day = f(t[3], 1, r.calendar.getDaysInMonth(r)), r;
|
|
616
619
|
}
|
|
617
|
-
function
|
|
618
|
-
let t = e.match(
|
|
620
|
+
function st(e) {
|
|
621
|
+
let t = e.match(je);
|
|
619
622
|
if (!t)
|
|
620
|
-
throw
|
|
623
|
+
throw $e.test(e) ? new Error(`Invalid ISO 8601 date time string: ${e}. Use parseAbsolute() instead.`) : new Error("Invalid ISO 8601 date time string: " + e);
|
|
621
624
|
let r = f(t[1], -9999, 9999), n = r < 1 ? "BC" : "AD", a = new E(n, r < 1 ? -r + 1 : r, f(t[2], 1, 12), 1, t[4] ? f(t[4], 0, 23) : 0, t[5] ? f(t[5], 0, 59) : 0, t[6] ? f(t[6], 0, 59) : 0, t[7] ? f(t[7], 0, 1 / 0) * 1e3 : 0);
|
|
622
625
|
return a.day = f(t[3], 0, a.calendar.getDaysInMonth(a)), a;
|
|
623
626
|
}
|
|
@@ -626,31 +629,31 @@ function f(e, t, r) {
|
|
|
626
629
|
if (n < t || n > r) throw new RangeError(`Value out of range: ${t} <= ${n} <= ${r}`);
|
|
627
630
|
return n;
|
|
628
631
|
}
|
|
629
|
-
function
|
|
632
|
+
function qe(e) {
|
|
630
633
|
return `${String(e.hour).padStart(2, "0")}:${String(e.minute).padStart(2, "0")}:${String(e.second).padStart(2, "0")}${e.millisecond ? String(e.millisecond / 1e3).slice(1) : ""}`;
|
|
631
634
|
}
|
|
632
|
-
function
|
|
635
|
+
function ye(e) {
|
|
633
636
|
let t = l(e, new w()), r;
|
|
634
637
|
return t.era === "BC" ? r = t.year === 1 ? "0000" : "-" + String(Math.abs(1 - t.year)).padStart(6, "00") : r = String(t.year).padStart(4, "0"), `${r}-${String(t.month).padStart(2, "0")}-${String(t.day).padStart(2, "0")}`;
|
|
635
638
|
}
|
|
636
|
-
function
|
|
637
|
-
return `${
|
|
639
|
+
function me(e) {
|
|
640
|
+
return `${ye(e)}T${qe(e)}`;
|
|
638
641
|
}
|
|
639
|
-
function
|
|
642
|
+
function We(e) {
|
|
640
643
|
let t = Math.sign(e) < 0 ? "-" : "+";
|
|
641
644
|
e = Math.abs(e);
|
|
642
645
|
let r = Math.floor(e / 36e5), n = Math.floor(e % 36e5 / 6e4), a = Math.floor(e % 36e5 % 6e4 / 1e3), o = `${t}${String(r).padStart(2, "0")}:${String(n).padStart(2, "0")}`;
|
|
643
646
|
return a !== 0 && (o += `:${String(a).padStart(2, "0")}`), o;
|
|
644
647
|
}
|
|
645
|
-
function
|
|
646
|
-
return `${
|
|
648
|
+
function Ke(e) {
|
|
649
|
+
return `${me(e)}${We(e.offset)}[${e.timeZone}]`;
|
|
647
650
|
}
|
|
648
|
-
function
|
|
651
|
+
function Ve(e, t) {
|
|
649
652
|
if (t.has(e))
|
|
650
653
|
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
651
654
|
}
|
|
652
655
|
function K(e, t, r) {
|
|
653
|
-
|
|
656
|
+
Ve(e, t), t.set(e, r);
|
|
654
657
|
}
|
|
655
658
|
function V(e) {
|
|
656
659
|
let t = typeof e[0] == "object" ? e.shift() : new w(), r;
|
|
@@ -668,7 +671,7 @@ function V(e) {
|
|
|
668
671
|
o
|
|
669
672
|
];
|
|
670
673
|
}
|
|
671
|
-
var
|
|
674
|
+
var Ge = /* @__PURE__ */ new WeakMap();
|
|
672
675
|
class I {
|
|
673
676
|
/** Returns a copy of this date. */
|
|
674
677
|
copy() {
|
|
@@ -680,7 +683,7 @@ class I {
|
|
|
680
683
|
}
|
|
681
684
|
/** Returns a new `CalendarDate` with the given duration subtracted from it. */
|
|
682
685
|
subtract(t) {
|
|
683
|
-
return
|
|
686
|
+
return he(this, t);
|
|
684
687
|
}
|
|
685
688
|
/** Returns a new `CalendarDate` with the given fields set to the provided values. Other fields will be constrained accordingly. */
|
|
686
689
|
set(t) {
|
|
@@ -695,18 +698,18 @@ class I {
|
|
|
695
698
|
}
|
|
696
699
|
/** Converts the date to a native JavaScript Date object, with the time set to midnight in the given time zone. */
|
|
697
700
|
toDate(t) {
|
|
698
|
-
return
|
|
701
|
+
return se(this, t);
|
|
699
702
|
}
|
|
700
703
|
/** Converts the date to an ISO 8601 formatted string. */
|
|
701
704
|
toString() {
|
|
702
|
-
return
|
|
705
|
+
return ye(this);
|
|
703
706
|
}
|
|
704
707
|
/** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */
|
|
705
708
|
compare(t) {
|
|
706
709
|
return ne(this, t);
|
|
707
710
|
}
|
|
708
711
|
constructor(...t) {
|
|
709
|
-
K(this,
|
|
712
|
+
K(this, Ge, {
|
|
710
713
|
writable: !0,
|
|
711
714
|
value: void 0
|
|
712
715
|
});
|
|
@@ -714,7 +717,7 @@ class I {
|
|
|
714
717
|
this.calendar = r, this.era = n, this.year = a, this.month = o, this.day = i, b(this);
|
|
715
718
|
}
|
|
716
719
|
}
|
|
717
|
-
var
|
|
720
|
+
var _e = /* @__PURE__ */ new WeakMap();
|
|
718
721
|
class E {
|
|
719
722
|
/** Returns a copy of this date. */
|
|
720
723
|
copy() {
|
|
@@ -726,7 +729,7 @@ class E {
|
|
|
726
729
|
}
|
|
727
730
|
/** Returns a new `CalendarDateTime` with the given duration subtracted from it. */
|
|
728
731
|
subtract(t) {
|
|
729
|
-
return
|
|
732
|
+
return he(this, t);
|
|
730
733
|
}
|
|
731
734
|
/** Returns a new `CalendarDateTime` with the given fields set to the provided values. Other fields will be constrained accordingly. */
|
|
732
735
|
set(t) {
|
|
@@ -744,24 +747,24 @@ class E {
|
|
|
744
747
|
case "day":
|
|
745
748
|
return W(this, t, r, n);
|
|
746
749
|
default:
|
|
747
|
-
return
|
|
750
|
+
return ue(this, t, r, n);
|
|
748
751
|
}
|
|
749
752
|
}
|
|
750
753
|
/** Converts the date to a native JavaScript Date object in the given time zone. */
|
|
751
754
|
toDate(t, r) {
|
|
752
|
-
return
|
|
755
|
+
return se(this, t, r);
|
|
753
756
|
}
|
|
754
757
|
/** Converts the date to an ISO 8601 formatted string. */
|
|
755
758
|
toString() {
|
|
756
|
-
return
|
|
759
|
+
return me(this);
|
|
757
760
|
}
|
|
758
761
|
/** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */
|
|
759
762
|
compare(t) {
|
|
760
763
|
let r = ne(this, t);
|
|
761
|
-
return r === 0 ?
|
|
764
|
+
return r === 0 ? Ee(this, D(t)) : r;
|
|
762
765
|
}
|
|
763
766
|
constructor(...t) {
|
|
764
|
-
K(this,
|
|
767
|
+
K(this, _e, {
|
|
765
768
|
writable: !0,
|
|
766
769
|
value: void 0
|
|
767
770
|
});
|
|
@@ -769,7 +772,7 @@ class E {
|
|
|
769
772
|
this.calendar = r, this.era = n, this.year = a, this.month = o, this.day = i, this.hour = t.shift() || 0, this.minute = t.shift() || 0, this.second = t.shift() || 0, this.millisecond = t.shift() || 0, b(this);
|
|
770
773
|
}
|
|
771
774
|
}
|
|
772
|
-
var
|
|
775
|
+
var ze = /* @__PURE__ */ new WeakMap();
|
|
773
776
|
class S {
|
|
774
777
|
/** Returns a copy of this date. */
|
|
775
778
|
copy() {
|
|
@@ -777,30 +780,30 @@ class S {
|
|
|
777
780
|
}
|
|
778
781
|
/** Returns a new `ZonedDateTime` with the given duration added to it. */
|
|
779
782
|
add(t) {
|
|
780
|
-
return
|
|
783
|
+
return de(this, t);
|
|
781
784
|
}
|
|
782
785
|
/** Returns a new `ZonedDateTime` with the given duration subtracted from it. */
|
|
783
786
|
subtract(t) {
|
|
784
|
-
return
|
|
787
|
+
return Fe(this, t);
|
|
785
788
|
}
|
|
786
789
|
/** Returns a new `ZonedDateTime` with the given fields set to the provided values. Other fields will be constrained accordingly. */
|
|
787
790
|
set(t, r) {
|
|
788
|
-
return
|
|
791
|
+
return Ne(this, t, r);
|
|
789
792
|
}
|
|
790
793
|
/**
|
|
791
794
|
* Returns a new `ZonedDateTime` with the given field adjusted by a specified amount.
|
|
792
795
|
* When the resulting value reaches the limits of the field, it wraps around.
|
|
793
796
|
*/
|
|
794
797
|
cycle(t, r, n) {
|
|
795
|
-
return
|
|
798
|
+
return Le(this, t, r, n);
|
|
796
799
|
}
|
|
797
800
|
/** Converts the date to a native JavaScript Date object. */
|
|
798
801
|
toDate() {
|
|
799
|
-
return
|
|
802
|
+
return Ue(this);
|
|
800
803
|
}
|
|
801
804
|
/** Converts the date to an ISO 8601 formatted string, including the UTC offset and time zone identifier. */
|
|
802
805
|
toString() {
|
|
803
|
-
return
|
|
806
|
+
return Ke(this);
|
|
804
807
|
}
|
|
805
808
|
/** Converts the date to an ISO 8601 formatted string in UTC. */
|
|
806
809
|
toAbsoluteString() {
|
|
@@ -808,10 +811,10 @@ class S {
|
|
|
808
811
|
}
|
|
809
812
|
/** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */
|
|
810
813
|
compare(t) {
|
|
811
|
-
return this.toDate().getTime() -
|
|
814
|
+
return this.toDate().getTime() - Te(t, this.timeZone).toDate().getTime();
|
|
812
815
|
}
|
|
813
816
|
constructor(...t) {
|
|
814
|
-
K(this,
|
|
817
|
+
K(this, ze, {
|
|
815
818
|
writable: !0,
|
|
816
819
|
value: void 0
|
|
817
820
|
});
|
|
@@ -820,7 +823,7 @@ class S {
|
|
|
820
823
|
}
|
|
821
824
|
}
|
|
822
825
|
let Z = /* @__PURE__ */ new Map();
|
|
823
|
-
class
|
|
826
|
+
class lt {
|
|
824
827
|
/** Formats a date as a string according to the locale and format options passed to the constructor. */
|
|
825
828
|
format(t) {
|
|
826
829
|
return this.formatter.format(t);
|
|
@@ -861,25 +864,25 @@ class ct {
|
|
|
861
864
|
/** Returns the resolved formatting options based on the values passed to the constructor. */
|
|
862
865
|
resolvedOptions() {
|
|
863
866
|
let t = this.formatter.resolvedOptions();
|
|
864
|
-
return
|
|
867
|
+
return et() && (this.resolvedHourCycle || (this.resolvedHourCycle = tt(t.locale, this.options)), t.hourCycle = this.resolvedHourCycle, t.hour12 = this.resolvedHourCycle === "h11" || this.resolvedHourCycle === "h12"), t.calendar === "ethiopic-amete-alem" && (t.calendar = "ethioaa"), t;
|
|
865
868
|
}
|
|
866
869
|
constructor(t, r = {}) {
|
|
867
|
-
this.formatter =
|
|
870
|
+
this.formatter = be(t, r), this.options = r;
|
|
868
871
|
}
|
|
869
872
|
}
|
|
870
|
-
const
|
|
873
|
+
const Qe = {
|
|
871
874
|
true: {
|
|
872
875
|
// Only Japanese uses the h11 style for 12 hour time. All others use h12.
|
|
873
876
|
ja: "h11"
|
|
874
877
|
},
|
|
875
878
|
false: {}
|
|
876
879
|
};
|
|
877
|
-
function
|
|
878
|
-
if (typeof t.hour12 == "boolean" &&
|
|
880
|
+
function be(e, t = {}) {
|
|
881
|
+
if (typeof t.hour12 == "boolean" && Xe()) {
|
|
879
882
|
t = {
|
|
880
883
|
...t
|
|
881
884
|
};
|
|
882
|
-
let a =
|
|
885
|
+
let a = Qe[String(t.hour12)][e.split("-")[0]], o = t.hour12 ? "h12" : "h23";
|
|
883
886
|
t.hourCycle = a ?? o, delete t.hour12;
|
|
884
887
|
}
|
|
885
888
|
let r = e + (t ? Object.entries(t).sort((a, o) => a[0] < o[0] ? -1 : 1).join() : "");
|
|
@@ -888,23 +891,23 @@ function me(e, t = {}) {
|
|
|
888
891
|
return Z.set(r, n), n;
|
|
889
892
|
}
|
|
890
893
|
let P = null;
|
|
891
|
-
function
|
|
894
|
+
function Xe() {
|
|
892
895
|
return P == null && (P = new Intl.DateTimeFormat("en-US", {
|
|
893
896
|
hour: "numeric",
|
|
894
897
|
hour12: !1
|
|
895
898
|
}).format(new Date(2020, 2, 3, 0)) === "24"), P;
|
|
896
899
|
}
|
|
897
900
|
let H = null;
|
|
898
|
-
function
|
|
901
|
+
function et() {
|
|
899
902
|
return H == null && (H = new Intl.DateTimeFormat("fr", {
|
|
900
903
|
hour: "numeric",
|
|
901
904
|
hour12: !1
|
|
902
905
|
}).resolvedOptions().hourCycle === "h12"), H;
|
|
903
906
|
}
|
|
904
|
-
function
|
|
907
|
+
function tt(e, t) {
|
|
905
908
|
if (!t.timeStyle && !t.hour) return;
|
|
906
909
|
e = e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/, ""), e += (e.includes("-u-") ? "" : "-u") + "-nu-latn";
|
|
907
|
-
let r =
|
|
910
|
+
let r = be(e, {
|
|
908
911
|
...t,
|
|
909
912
|
timeZone: void 0
|
|
910
913
|
// use local timezone
|
|
@@ -919,24 +922,24 @@ export {
|
|
|
919
922
|
w as $,
|
|
920
923
|
I as a,
|
|
921
924
|
J as b,
|
|
922
|
-
|
|
925
|
+
pe as c,
|
|
923
926
|
U as d,
|
|
924
927
|
C as e,
|
|
925
928
|
R as f,
|
|
926
929
|
ae as g,
|
|
927
|
-
|
|
930
|
+
lt as h,
|
|
928
931
|
l as i,
|
|
929
932
|
E as j,
|
|
930
933
|
S as k,
|
|
931
|
-
|
|
934
|
+
ot as l,
|
|
932
935
|
z as m,
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
936
|
+
it as n,
|
|
937
|
+
xe as o,
|
|
938
|
+
nt as p,
|
|
939
|
+
ve as q,
|
|
937
940
|
re as r,
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
941
|
+
rt as s,
|
|
942
|
+
at as t,
|
|
943
|
+
st as u,
|
|
944
|
+
ct as v
|
|
942
945
|
};
|