@konnectio/core 4.1.34 → 4.1.36

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.
Files changed (52) hide show
  1. package/dist/{ActionField-D-bwkZqS.js → ActionField-CM_eIH-u.js} +2 -2
  2. package/dist/ActionField-CM_eIH-u.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-bmkoN-Ew.js → AvailabilitySkeleton-mOPtdEua.js} +5 -5
  4. package/dist/AvailabilitySkeleton-mOPtdEua.js.br +0 -0
  5. package/dist/{DateField.vue_vue_type_style_index_0_lang-DpjnY-88.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-BWlCmScQ.js} +335 -335
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-BWlCmScQ.js.br +0 -0
  7. package/dist/{CheckoutWindow-CWp6qya9.js → CheckoutWindow-4LoybYx-.js} +2 -2
  8. package/dist/CheckoutWindow-4LoybYx-.js.br +0 -0
  9. package/dist/{ErrorMessage-DtebSSZs.js → ErrorMessage-CVDnPnhY.js} +20 -19
  10. package/dist/ErrorMessage-CVDnPnhY.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-FBjvf2N_.js → EventAvailabilityForm-DgFRSrYa.js} +3 -3
  12. package/dist/EventAvailabilityForm-DgFRSrYa.js.br +0 -0
  13. package/dist/{Field-BH_KOHBy.js → Field-DBqC56Xw.js} +3 -3
  14. package/dist/Field-DBqC56Xw.js.br +0 -0
  15. package/dist/{_-CytwLqKs.js → Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-D9OQFBqg.js} +2 -2
  16. package/dist/{SelectField.vue_vue_type_style_index_0_lang-wNS7NzHK.js → SelectField.vue_vue_type_style_index_0_lang-DC-fdW47.js} +3200 -3360
  17. package/dist/SelectField.vue_vue_type_style_index_0_lang-DC-fdW47.js.br +0 -0
  18. package/dist/{TermsOfService-DMx7_Y_p.js → TermsOfService-Bm_2I5fh.js} +3 -3
  19. package/dist/_-DENv9RUa.js +5 -0
  20. package/dist/{_.vue_vue_type_style_index_0_lang-BvfLw2Rn.js → _.vue_vue_type_style_index_0_lang-BdYTkih2.js} +2 -2
  21. package/dist/availability.js +5 -5
  22. package/dist/availability.js.br +0 -0
  23. package/dist/cancel-reservation.js +3 -3
  24. package/dist/cancel-reservation.js.br +0 -0
  25. package/dist/core.css +1 -1
  26. package/dist/core.css.br +0 -0
  27. package/dist/event.js +8 -7
  28. package/dist/event.js.br +0 -0
  29. package/dist/gift-card-validation.js +7 -7
  30. package/dist/gift-card-validation.js.br +0 -0
  31. package/dist/gift-card.js +8 -8
  32. package/dist/gift-card.js.br +0 -0
  33. package/dist/{giftCard-COjQYE4s.js → giftCard-C5zC8GfX.js} +2 -2
  34. package/dist/giftCard-C5zC8GfX.js.br +0 -0
  35. package/dist/hotel.js +8 -8
  36. package/dist/hotel.js.br +0 -0
  37. package/dist/{masonry.plugin-EDUgJoMr.js → masonry.plugin-Cvx1ZGAd.js} +82 -82
  38. package/dist/masonry.plugin-Cvx1ZGAd.js.br +0 -0
  39. package/dist/polyfill.js +4772 -4696
  40. package/dist/polyfill.js.br +0 -0
  41. package/package.json +15 -15
  42. package/dist/ActionField-D-bwkZqS.js.br +0 -0
  43. package/dist/AvailabilitySkeleton-bmkoN-Ew.js.br +0 -0
  44. package/dist/CheckoutWindow-CWp6qya9.js.br +0 -0
  45. package/dist/DateField.vue_vue_type_style_index_0_lang-DpjnY-88.js.br +0 -0
  46. package/dist/ErrorMessage-DtebSSZs.js.br +0 -0
  47. package/dist/EventAvailabilityForm-FBjvf2N_.js.br +0 -0
  48. package/dist/Field-BH_KOHBy.js.br +0 -0
  49. package/dist/SelectField.vue_vue_type_style_index_0_lang-wNS7NzHK.js.br +0 -0
  50. package/dist/_-BbrqMy7r.js +0 -5
  51. package/dist/giftCard-COjQYE4s.js.br +0 -0
  52. package/dist/masonry.plugin-EDUgJoMr.js.br +0 -0
@@ -1,6 +1,192 @@
1
1
  import { $ as Da, r as X, d as tt, y as Jt, a3 as ga, o as at, Q as vt, a0 as ma, D as yt, c as z, h as q, f as dt, a as $e, A as ot, v as Ee, g as u, J as Ze, z as Cn, a4 as Je, a5 as ut, a6 as Ia, M as Gr, n as Me, X as Zr, W as Jr, a7 as Rn, q as ue, i as K, e as he, j as wa, F as De, K as pt, t as lt, w as we, a8 as el, a9 as tl, b as $, x as It, aa as al, ab as nl, ac as rl, E as Ya, G as Ca, T as va, ad as ll } from "./mitt-CgrYtI2g.js";
2
- import { w as ol, J as sl, x as il } from "./SelectField.vue_vue_type_style_index_0_lang-wNS7NzHK.js";
3
- const ul = {
2
+ import { w as ol, J as sl, x as il } from "./SelectField.vue_vue_type_style_index_0_lang-DC-fdW47.js";
3
+ const er = 6048e5, ul = 864e5, dl = 6e4, tr = 36e5, cl = 1e3, ed = 525600, td = 43200, ad = 1440, Sn = Symbol.for("constructDateFrom");
4
+ function Se(e, t) {
5
+ return typeof e == "function" ? e(t) : e && typeof e == "object" && Sn in e ? e[Sn](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
6
+ }
7
+ function pe(e, t) {
8
+ return Se(t || e, e);
9
+ }
10
+ function ft(e, t, n) {
11
+ const a = pe(e, n?.in);
12
+ return isNaN(t) ? Se(n?.in || e, NaN) : (t && a.setDate(a.getDate() + t), a);
13
+ }
14
+ function bt(e, t, n) {
15
+ const a = pe(e, n?.in);
16
+ if (isNaN(t)) return Se(e, NaN);
17
+ if (!t)
18
+ return a;
19
+ const r = a.getDate(), o = Se(e, a.getTime());
20
+ o.setMonth(a.getMonth() + t + 1, 0);
21
+ const s = o.getDate();
22
+ return r >= s ? o : (a.setFullYear(
23
+ o.getFullYear(),
24
+ o.getMonth(),
25
+ r
26
+ ), a);
27
+ }
28
+ function ar(e, t, n) {
29
+ const {
30
+ years: a = 0,
31
+ months: r = 0,
32
+ weeks: o = 0,
33
+ days: s = 0,
34
+ hours: m = 0,
35
+ minutes: d = 0,
36
+ seconds: T = 0
37
+ } = t, c = pe(e, n?.in), v = r || a ? bt(c, r + a * 12) : c, y = s || o ? ft(v, s + o * 7) : v, M = d + m * 60, Y = (T + M * 60) * 1e3;
38
+ return Se(e, +y + Y);
39
+ }
40
+ function ml(e, t, n) {
41
+ return Se(e, +pe(e) + t);
42
+ }
43
+ function vl(e, t, n) {
44
+ return ml(e, t * tr);
45
+ }
46
+ let fl = {};
47
+ function ea() {
48
+ return fl;
49
+ }
50
+ function kt(e, t) {
51
+ const n = ea(), a = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, r = pe(e, t?.in), o = r.getDay(), s = (o < a ? 7 : 0) + o - a;
52
+ return r.setDate(r.getDate() - s), r.setHours(0, 0, 0, 0), r;
53
+ }
54
+ function oa(e, t) {
55
+ return kt(e, { ...t, weekStartsOn: 1 });
56
+ }
57
+ function nr(e, t) {
58
+ const n = pe(e, t?.in), a = n.getFullYear(), r = Se(n, 0);
59
+ r.setFullYear(a + 1, 0, 4), r.setHours(0, 0, 0, 0);
60
+ const o = oa(r), s = Se(n, 0);
61
+ s.setFullYear(a, 0, 4), s.setHours(0, 0, 0, 0);
62
+ const m = oa(s);
63
+ return n.getTime() >= o.getTime() ? a + 1 : n.getTime() >= m.getTime() ? a : a - 1;
64
+ }
65
+ function Ra(e) {
66
+ const t = pe(e), n = new Date(
67
+ Date.UTC(
68
+ t.getFullYear(),
69
+ t.getMonth(),
70
+ t.getDate(),
71
+ t.getHours(),
72
+ t.getMinutes(),
73
+ t.getSeconds(),
74
+ t.getMilliseconds()
75
+ )
76
+ );
77
+ return n.setUTCFullYear(t.getFullYear()), +e - +n;
78
+ }
79
+ function Ma(e, ...t) {
80
+ const n = Se.bind(
81
+ null,
82
+ t.find((a) => typeof a == "object")
83
+ );
84
+ return t.map(n);
85
+ }
86
+ function Nn(e, t) {
87
+ const n = pe(e, t?.in);
88
+ return n.setHours(0, 0, 0, 0), n;
89
+ }
90
+ function rr(e, t, n) {
91
+ const [a, r] = Ma(
92
+ n?.in,
93
+ e,
94
+ t
95
+ ), o = Nn(a), s = Nn(r), m = +o - Ra(o), d = +s - Ra(s);
96
+ return Math.round((m - d) / ul);
97
+ }
98
+ function pl(e, t) {
99
+ const n = nr(e, t), a = Se(e, 0);
100
+ return a.setFullYear(n, 0, 4), a.setHours(0, 0, 0, 0), oa(a);
101
+ }
102
+ function yl(e, t, n) {
103
+ return bt(e, t * 3, n);
104
+ }
105
+ function vn(e, t, n) {
106
+ return bt(e, t * 12, n);
107
+ }
108
+ function In(e, t) {
109
+ const n = +pe(e) - +pe(t);
110
+ return n < 0 ? -1 : n > 0 ? 1 : n;
111
+ }
112
+ function lr(e) {
113
+ return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
114
+ }
115
+ function ya(e) {
116
+ return !(!lr(e) && typeof e != "number" || isNaN(+pe(e)));
117
+ }
118
+ function Fn(e, t) {
119
+ const n = pe(e, t?.in);
120
+ return Math.trunc(n.getMonth() / 3) + 1;
121
+ }
122
+ function hl(e, t, n) {
123
+ const [a, r] = Ma(
124
+ n?.in,
125
+ e,
126
+ t
127
+ );
128
+ return a.getFullYear() - r.getFullYear();
129
+ }
130
+ function gl(e, t, n) {
131
+ const [a, r] = Ma(
132
+ n?.in,
133
+ e,
134
+ t
135
+ ), o = In(a, r), s = Math.abs(hl(a, r));
136
+ a.setFullYear(1584), r.setFullYear(1584);
137
+ const m = In(a, r) === -o, d = o * (s - +m);
138
+ return d === 0 ? 0 : d;
139
+ }
140
+ function or(e, t) {
141
+ const [n, a] = Ma(e, t.start, t.end);
142
+ return { start: n, end: a };
143
+ }
144
+ function sr(e, t) {
145
+ const { start: n, end: a } = or(t?.in, e);
146
+ let r = +n > +a;
147
+ const o = r ? +n : +a, s = r ? a : n;
148
+ s.setHours(0, 0, 0, 0);
149
+ let m = 1;
150
+ const d = [];
151
+ for (; +s <= o; )
152
+ d.push(Se(n, s)), s.setDate(s.getDate() + m), s.setHours(0, 0, 0, 0);
153
+ return r ? d.reverse() : d;
154
+ }
155
+ function Kt(e, t) {
156
+ const n = pe(e, t?.in), a = n.getMonth(), r = a - a % 3;
157
+ return n.setMonth(r, 1), n.setHours(0, 0, 0, 0), n;
158
+ }
159
+ function wl(e, t) {
160
+ const { start: n, end: a } = or(t?.in, e);
161
+ let r = +n > +a;
162
+ const o = r ? +Kt(n) : +Kt(a);
163
+ let s = Kt(r ? a : n), m = 1;
164
+ const d = [];
165
+ for (; +s <= o; )
166
+ d.push(Se(n, s)), s = yl(s, m);
167
+ return r ? d.reverse() : d;
168
+ }
169
+ function bl(e, t) {
170
+ const n = pe(e, t?.in);
171
+ return n.setDate(1), n.setHours(0, 0, 0, 0), n;
172
+ }
173
+ function ir(e, t) {
174
+ const n = pe(e, t?.in), a = n.getFullYear();
175
+ return n.setFullYear(a + 1, 0, 0), n.setHours(23, 59, 59, 999), n;
176
+ }
177
+ function ba(e, t) {
178
+ const n = pe(e, t?.in);
179
+ return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
180
+ }
181
+ function ur(e, t) {
182
+ const n = ea(), a = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, r = pe(e, t?.in), o = r.getDay(), s = (o < a ? -7 : 0) + 6 - (o - a);
183
+ return r.setDate(r.getDate() + s), r.setHours(23, 59, 59, 999), r;
184
+ }
185
+ function En(e, t) {
186
+ const n = pe(e, t?.in), a = n.getMonth(), r = a - a % 3 + 3;
187
+ return n.setMonth(r, 0), n.setHours(23, 59, 59, 999), n;
188
+ }
189
+ const kl = {
4
190
  lessThanXSeconds: {
5
191
  one: "less than a second",
6
192
  other: "less than {{count}} seconds"
@@ -62,9 +248,9 @@ const ul = {
62
248
  one: "almost 1 year",
63
249
  other: "almost {{count}} years"
64
250
  }
65
- }, er = (e, t, n) => {
251
+ }, dr = (e, t, n) => {
66
252
  let a;
67
- const r = ul[e];
253
+ const r = kl[e];
68
254
  return typeof r == "string" ? a = r : t === 1 ? a = r.one : a = r.other.replace("{{count}}", t.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + a : a + " ago" : a;
69
255
  };
70
256
  function Nt(e) {
@@ -73,42 +259,42 @@ function Nt(e) {
73
259
  return e.formats[n] || e.formats[e.defaultWidth];
74
260
  };
75
261
  }
76
- const dl = {
262
+ const _l = {
77
263
  full: "EEEE, MMMM do, y",
78
264
  long: "MMMM do, y",
79
265
  medium: "MMM d, y",
80
266
  short: "MM/dd/yyyy"
81
- }, cl = {
267
+ }, Dl = {
82
268
  full: "h:mm:ss a zzzz",
83
269
  long: "h:mm:ss a z",
84
270
  medium: "h:mm:ss a",
85
271
  short: "h:mm a"
86
- }, ml = {
272
+ }, Ml = {
87
273
  full: "{{date}} 'at' {{time}}",
88
274
  long: "{{date}} 'at' {{time}}",
89
275
  medium: "{{date}}, {{time}}",
90
276
  short: "{{date}}, {{time}}"
91
- }, vl = {
277
+ }, Pl = {
92
278
  date: Nt({
93
- formats: dl,
279
+ formats: _l,
94
280
  defaultWidth: "full"
95
281
  }),
96
282
  time: Nt({
97
- formats: cl,
283
+ formats: Dl,
98
284
  defaultWidth: "full"
99
285
  }),
100
286
  dateTime: Nt({
101
- formats: ml,
287
+ formats: Ml,
102
288
  defaultWidth: "full"
103
289
  })
104
- }, fl = {
290
+ }, xl = {
105
291
  lastWeek: "'last' eeee 'at' p",
106
292
  yesterday: "'yesterday at' p",
107
293
  today: "'today at' p",
108
294
  tomorrow: "'tomorrow at' p",
109
295
  nextWeek: "eeee 'at' p",
110
296
  other: "P"
111
- }, tr = (e, t, n, a) => fl[e];
297
+ }, cr = (e, t, n, a) => xl[e];
112
298
  function xt(e) {
113
299
  return (t, n) => {
114
300
  const a = n?.context ? String(n.context) : "standalone";
@@ -124,15 +310,15 @@ function xt(e) {
124
310
  return r[o];
125
311
  };
126
312
  }
127
- const pl = {
313
+ const Tl = {
128
314
  narrow: ["B", "A"],
129
315
  abbreviated: ["BC", "AD"],
130
316
  wide: ["Before Christ", "Anno Domini"]
131
- }, yl = {
317
+ }, $l = {
132
318
  narrow: ["1", "2", "3", "4"],
133
319
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
134
320
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
135
- }, hl = {
321
+ }, Ol = {
136
322
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
137
323
  abbreviated: [
138
324
  "Jan",
@@ -162,7 +348,7 @@ const pl = {
162
348
  "November",
163
349
  "December"
164
350
  ]
165
- }, gl = {
351
+ }, Al = {
166
352
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
167
353
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
168
354
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
@@ -175,7 +361,7 @@ const pl = {
175
361
  "Friday",
176
362
  "Saturday"
177
363
  ]
178
- }, wl = {
364
+ }, Yl = {
179
365
  narrow: {
180
366
  am: "a",
181
367
  pm: "p",
@@ -206,7 +392,7 @@ const pl = {
206
392
  evening: "evening",
207
393
  night: "night"
208
394
  }
209
- }, bl = {
395
+ }, Cl = {
210
396
  narrow: {
211
397
  am: "a",
212
398
  pm: "p",
@@ -237,7 +423,7 @@ const pl = {
237
423
  evening: "in the evening",
238
424
  night: "at night"
239
425
  }
240
- }, kl = (e, t) => {
426
+ }, Rl = (e, t) => {
241
427
  const n = Number(e), a = n % 100;
242
428
  if (a > 20 || a < 10)
243
429
  switch (a % 10) {
@@ -249,29 +435,29 @@ const pl = {
249
435
  return n + "rd";
250
436
  }
251
437
  return n + "th";
252
- }, ar = {
253
- ordinalNumber: kl,
438
+ }, mr = {
439
+ ordinalNumber: Rl,
254
440
  era: xt({
255
- values: pl,
441
+ values: Tl,
256
442
  defaultWidth: "wide"
257
443
  }),
258
444
  quarter: xt({
259
- values: yl,
445
+ values: $l,
260
446
  defaultWidth: "wide",
261
447
  argumentCallback: (e) => e - 1
262
448
  }),
263
449
  month: xt({
264
- values: hl,
450
+ values: Ol,
265
451
  defaultWidth: "wide"
266
452
  }),
267
453
  day: xt({
268
- values: gl,
454
+ values: Al,
269
455
  defaultWidth: "wide"
270
456
  }),
271
457
  dayPeriod: xt({
272
- values: wl,
458
+ values: Yl,
273
459
  defaultWidth: "wide",
274
- formattingValues: bl,
460
+ formattingValues: Cl,
275
461
  defaultFormattingWidth: "wide"
276
462
  })
277
463
  };
@@ -280,9 +466,9 @@ function Tt(e) {
280
466
  const a = n.width, r = a && e.matchPatterns[a] || e.matchPatterns[e.defaultMatchWidth], o = t.match(r);
281
467
  if (!o)
282
468
  return null;
283
- const s = o[0], m = a && e.parsePatterns[a] || e.parsePatterns[e.defaultParseWidth], d = Array.isArray(m) ? Dl(m, (v) => v.test(s)) : (
469
+ const s = o[0], m = a && e.parsePatterns[a] || e.parsePatterns[e.defaultParseWidth], d = Array.isArray(m) ? Nl(m, (v) => v.test(s)) : (
284
470
  // [TODO] -- I challenge you to fix the type
285
- _l(m, (v) => v.test(s))
471
+ Sl(m, (v) => v.test(s))
286
472
  );
287
473
  let T;
288
474
  T = e.valueCallback ? e.valueCallback(d) : d, T = n.valueCallback ? (
@@ -293,17 +479,17 @@ function Tt(e) {
293
479
  return { value: T, rest: c };
294
480
  };
295
481
  }
296
- function _l(e, t) {
482
+ function Sl(e, t) {
297
483
  for (const n in e)
298
484
  if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
299
485
  return n;
300
486
  }
301
- function Dl(e, t) {
487
+ function Nl(e, t) {
302
488
  for (let n = 0; n < e.length; n++)
303
489
  if (t(e[n]))
304
490
  return n;
305
491
  }
306
- function nr(e) {
492
+ function vr(e) {
307
493
  return (t, n = {}) => {
308
494
  const a = t.match(e.matchPattern);
309
495
  if (!a) return null;
@@ -315,23 +501,23 @@ function nr(e) {
315
501
  return { value: s, rest: m };
316
502
  };
317
503
  }
318
- const Ml = /^(\d+)(th|st|nd|rd)?/i, Pl = /\d+/i, xl = {
504
+ const Il = /^(\d+)(th|st|nd|rd)?/i, Fl = /\d+/i, El = {
319
505
  narrow: /^(b|a)/i,
320
506
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
321
507
  wide: /^(before christ|before common era|anno domini|common era)/i
322
- }, Tl = {
508
+ }, Bl = {
323
509
  any: [/^b/i, /^(a|c)/i]
324
- }, $l = {
510
+ }, Ll = {
325
511
  narrow: /^[1234]/i,
326
512
  abbreviated: /^q[1234]/i,
327
513
  wide: /^[1234](th|st|nd|rd)? quarter/i
328
- }, Ol = {
514
+ }, Hl = {
329
515
  any: [/1/i, /2/i, /3/i, /4/i]
330
- }, Al = {
516
+ }, Vl = {
331
517
  narrow: /^[jfmasond]/i,
332
518
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
333
519
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
334
- }, Yl = {
520
+ }, Wl = {
335
521
  narrow: [
336
522
  /^j/i,
337
523
  /^f/i,
@@ -360,18 +546,18 @@ const Ml = /^(\d+)(th|st|nd|rd)?/i, Pl = /\d+/i, xl = {
360
546
  /^n/i,
361
547
  /^d/i
362
548
  ]
363
- }, Cl = {
549
+ }, zl = {
364
550
  narrow: /^[smtwf]/i,
365
551
  short: /^(su|mo|tu|we|th|fr|sa)/i,
366
552
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
367
553
  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
368
- }, Rl = {
554
+ }, ql = {
369
555
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
370
556
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
371
- }, Sl = {
557
+ }, jl = {
372
558
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
373
559
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
374
- }, Nl = {
560
+ }, Ul = {
375
561
  any: {
376
562
  am: /^a/i,
377
563
  pm: /^p/i,
@@ -382,131 +568,64 @@ const Ml = /^(\d+)(th|st|nd|rd)?/i, Pl = /\d+/i, xl = {
382
568
  evening: /evening/i,
383
569
  night: /night/i
384
570
  }
385
- }, rr = {
386
- ordinalNumber: nr({
387
- matchPattern: Ml,
388
- parsePattern: Pl,
571
+ }, fr = {
572
+ ordinalNumber: vr({
573
+ matchPattern: Il,
574
+ parsePattern: Fl,
389
575
  valueCallback: (e) => parseInt(e, 10)
390
576
  }),
391
577
  era: Tt({
392
- matchPatterns: xl,
578
+ matchPatterns: El,
393
579
  defaultMatchWidth: "wide",
394
- parsePatterns: Tl,
580
+ parsePatterns: Bl,
395
581
  defaultParseWidth: "any"
396
582
  }),
397
583
  quarter: Tt({
398
- matchPatterns: $l,
584
+ matchPatterns: Ll,
399
585
  defaultMatchWidth: "wide",
400
- parsePatterns: Ol,
586
+ parsePatterns: Hl,
401
587
  defaultParseWidth: "any",
402
588
  valueCallback: (e) => e + 1
403
589
  }),
404
590
  month: Tt({
405
- matchPatterns: Al,
591
+ matchPatterns: Vl,
406
592
  defaultMatchWidth: "wide",
407
- parsePatterns: Yl,
593
+ parsePatterns: Wl,
408
594
  defaultParseWidth: "any"
409
595
  }),
410
596
  day: Tt({
411
- matchPatterns: Cl,
597
+ matchPatterns: zl,
412
598
  defaultMatchWidth: "wide",
413
- parsePatterns: Rl,
599
+ parsePatterns: ql,
414
600
  defaultParseWidth: "any"
415
601
  }),
416
602
  dayPeriod: Tt({
417
- matchPatterns: Sl,
603
+ matchPatterns: jl,
418
604
  defaultMatchWidth: "any",
419
- parsePatterns: Nl,
605
+ parsePatterns: Ul,
420
606
  defaultParseWidth: "any"
421
607
  })
422
- }, lr = {
608
+ }, pr = {
423
609
  code: "en-US",
424
- formatDistance: er,
425
- formatLong: vl,
426
- formatRelative: tr,
427
- localize: ar,
428
- match: rr,
610
+ formatDistance: dr,
611
+ formatLong: Pl,
612
+ formatRelative: cr,
613
+ localize: mr,
614
+ match: fr,
429
615
  options: {
430
616
  weekStartsOn: 0,
431
617
  firstWeekContainsDate: 1
432
618
  }
433
619
  };
434
- let Il = {};
435
- function ea() {
436
- return Il;
437
- }
438
- const or = 6048e5, Fl = 864e5, El = 6e4, sr = 36e5, Bl = 1e3, ed = 525600, td = 43200, ad = 1440, Sn = Symbol.for("constructDateFrom");
439
- function Se(e, t) {
440
- return typeof e == "function" ? e(t) : e && typeof e == "object" && Sn in e ? e[Sn](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
441
- }
442
- function pe(e, t) {
443
- return Se(t || e, e);
444
- }
445
- function Ra(e) {
446
- const t = pe(e), n = new Date(
447
- Date.UTC(
448
- t.getFullYear(),
449
- t.getMonth(),
450
- t.getDate(),
451
- t.getHours(),
452
- t.getMinutes(),
453
- t.getSeconds(),
454
- t.getMilliseconds()
455
- )
456
- );
457
- return n.setUTCFullYear(t.getFullYear()), +e - +n;
458
- }
459
- function Ma(e, ...t) {
460
- const n = Se.bind(
461
- null,
462
- t.find((a) => typeof a == "object")
463
- );
464
- return t.map(n);
465
- }
466
- function Nn(e, t) {
620
+ function Ql(e, t) {
467
621
  const n = pe(e, t?.in);
468
- return n.setHours(0, 0, 0, 0), n;
469
- }
470
- function ir(e, t, n) {
471
- const [a, r] = Ma(
472
- n?.in,
473
- e,
474
- t
475
- ), o = Nn(a), s = Nn(r), m = +o - Ra(o), d = +s - Ra(s);
476
- return Math.round((m - d) / Fl);
477
- }
478
- function ba(e, t) {
479
- const n = pe(e, t?.in);
480
- return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
481
- }
482
- function Ll(e, t) {
483
- const n = pe(e, t?.in);
484
- return ir(n, ba(n)) + 1;
485
- }
486
- function kt(e, t) {
487
- const n = ea(), a = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, r = pe(e, t?.in), o = r.getDay(), s = (o < a ? 7 : 0) + o - a;
488
- return r.setDate(r.getDate() - s), r.setHours(0, 0, 0, 0), r;
489
- }
490
- function oa(e, t) {
491
- return kt(e, { ...t, weekStartsOn: 1 });
492
- }
493
- function ur(e, t) {
494
- const n = pe(e, t?.in), a = n.getFullYear(), r = Se(n, 0);
495
- r.setFullYear(a + 1, 0, 4), r.setHours(0, 0, 0, 0);
496
- const o = oa(r), s = Se(n, 0);
497
- s.setFullYear(a, 0, 4), s.setHours(0, 0, 0, 0);
498
- const m = oa(s);
499
- return n.getTime() >= o.getTime() ? a + 1 : n.getTime() >= m.getTime() ? a : a - 1;
500
- }
501
- function Hl(e, t) {
502
- const n = ur(e, t), a = Se(e, 0);
503
- return a.setFullYear(n, 0, 4), a.setHours(0, 0, 0, 0), oa(a);
504
- }
505
- function vn(e, t) {
506
- const n = pe(e, t?.in), a = +oa(n) - +Hl(n);
507
- return Math.round(a / or) + 1;
622
+ return rr(n, ba(n)) + 1;
508
623
  }
509
624
  function fn(e, t) {
625
+ const n = pe(e, t?.in), a = +oa(n) - +pl(n);
626
+ return Math.round(a / er) + 1;
627
+ }
628
+ function pn(e, t) {
510
629
  const n = pe(e, t?.in), a = n.getFullYear(), r = ea(), o = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, s = Se(t?.in || e, 0);
511
630
  s.setFullYear(a + 1, 0, o), s.setHours(0, 0, 0, 0);
512
631
  const m = kt(s, t), d = Se(t?.in || e, 0);
@@ -514,13 +633,13 @@ function fn(e, t) {
514
633
  const T = kt(d, t);
515
634
  return +n >= +m ? a + 1 : +n >= +T ? a : a - 1;
516
635
  }
517
- function Vl(e, t) {
518
- const n = ea(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, r = fn(e, t), o = Se(t?.in || e, 0);
636
+ function Kl(e, t) {
637
+ const n = ea(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, r = pn(e, t), o = Se(t?.in || e, 0);
519
638
  return o.setFullYear(r, 0, a), o.setHours(0, 0, 0, 0), kt(o, t);
520
639
  }
521
- function pn(e, t) {
522
- const n = pe(e, t?.in), a = +kt(n, t) - +Vl(n, t);
523
- return Math.round(a / or) + 1;
640
+ function yn(e, t) {
641
+ const n = pe(e, t?.in), a = +kt(n, t) - +Kl(n, t);
642
+ return Math.round(a / er) + 1;
524
643
  }
525
644
  function Re(e, t) {
526
645
  const n = e < 0 ? "-" : "", a = Math.abs(e).toString().padStart(t, "0");
@@ -587,7 +706,7 @@ const Bt = {
587
706
  afternoon: "afternoon",
588
707
  evening: "evening",
589
708
  night: "night"
590
- }, In = {
709
+ }, Bn = {
591
710
  // Era
592
711
  G: function(e, t, n) {
593
712
  const a = e.getFullYear() > 0 ? 1 : 0;
@@ -616,7 +735,7 @@ const Bt = {
616
735
  },
617
736
  // Local week-numbering year
618
737
  Y: function(e, t, n, a) {
619
- const r = fn(e, a), o = r > 0 ? r : 1 - r;
738
+ const r = pn(e, a), o = r > 0 ? r : 1 - r;
620
739
  if (t === "YY") {
621
740
  const s = o % 100;
622
741
  return Re(s, 2);
@@ -625,7 +744,7 @@ const Bt = {
625
744
  },
626
745
  // ISO week-numbering year
627
746
  R: function(e, t) {
628
- const n = ur(e);
747
+ const n = nr(e);
629
748
  return Re(n, t.length);
630
749
  },
631
750
  // Extended year. This is a single number designating the year of this calendar system.
@@ -770,12 +889,12 @@ const Bt = {
770
889
  },
771
890
  // Local week of year
772
891
  w: function(e, t, n, a) {
773
- const r = pn(e, a);
892
+ const r = yn(e, a);
774
893
  return t === "wo" ? n.ordinalNumber(r, { unit: "week" }) : Re(r, t.length);
775
894
  },
776
895
  // ISO week of year
777
896
  I: function(e, t, n) {
778
- const a = vn(e);
897
+ const a = fn(e);
779
898
  return t === "Io" ? n.ordinalNumber(a, { unit: "week" }) : Re(a, t.length);
780
899
  },
781
900
  // Day of the month
@@ -784,7 +903,7 @@ const Bt = {
784
903
  },
785
904
  // Day of year
786
905
  D: function(e, t, n) {
787
- const a = Ll(e);
906
+ const a = Ql(e);
788
907
  return t === "Do" ? n.ordinalNumber(a, { unit: "dayOfYear" }) : Re(a, t.length);
789
908
  },
790
909
  // Day of week
@@ -1062,7 +1181,7 @@ const Bt = {
1062
1181
  switch (t) {
1063
1182
  // Hours and optional minutes
1064
1183
  case "X":
1065
- return En(a);
1184
+ return Hn(a);
1066
1185
  // Hours, minutes and optional seconds without `:` delimiter
1067
1186
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1068
1187
  // so this token always has the same output as `XX`
@@ -1085,7 +1204,7 @@ const Bt = {
1085
1204
  switch (t) {
1086
1205
  // Hours and optional minutes
1087
1206
  case "x":
1088
- return En(a);
1207
+ return Hn(a);
1089
1208
  // Hours, minutes and optional seconds without `:` delimiter
1090
1209
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1091
1210
  // so this token always has the same output as `xx`
@@ -1110,7 +1229,7 @@ const Bt = {
1110
1229
  case "O":
1111
1230
  case "OO":
1112
1231
  case "OOO":
1113
- return "GMT" + Fn(a, ":");
1232
+ return "GMT" + Ln(a, ":");
1114
1233
  // Long
1115
1234
  case "OOOO":
1116
1235
  default:
@@ -1125,7 +1244,7 @@ const Bt = {
1125
1244
  case "z":
1126
1245
  case "zz":
1127
1246
  case "zzz":
1128
- return "GMT" + Fn(a, ":");
1247
+ return "GMT" + Ln(a, ":");
1129
1248
  // Long
1130
1249
  case "zzzz":
1131
1250
  default:
@@ -1142,18 +1261,18 @@ const Bt = {
1142
1261
  return Re(+e, t.length);
1143
1262
  }
1144
1263
  };
1145
- function Fn(e, t = "") {
1264
+ function Ln(e, t = "") {
1146
1265
  const n = e > 0 ? "-" : "+", a = Math.abs(e), r = Math.trunc(a / 60), o = a % 60;
1147
1266
  return o === 0 ? n + String(r) : n + String(r) + t + Re(o, 2);
1148
1267
  }
1149
- function En(e, t) {
1268
+ function Hn(e, t) {
1150
1269
  return e % 60 === 0 ? (e > 0 ? "-" : "+") + Re(Math.abs(e) / 60, 2) : Qt(e, t);
1151
1270
  }
1152
1271
  function Qt(e, t = "") {
1153
1272
  const n = e > 0 ? "-" : "+", a = Math.abs(e), r = Re(Math.trunc(a / 60), 2), o = Re(a % 60, 2);
1154
1273
  return n + r + t + o;
1155
1274
  }
1156
- const Bn = (e, t) => {
1275
+ const Vn = (e, t) => {
1157
1276
  switch (e) {
1158
1277
  case "P":
1159
1278
  return t.date({ width: "short" });
@@ -1165,7 +1284,7 @@ const Bn = (e, t) => {
1165
1284
  default:
1166
1285
  return t.date({ width: "full" });
1167
1286
  }
1168
- }, dr = (e, t) => {
1287
+ }, yr = (e, t) => {
1169
1288
  switch (e) {
1170
1289
  case "p":
1171
1290
  return t.time({ width: "short" });
@@ -1177,10 +1296,10 @@ const Bn = (e, t) => {
1177
1296
  default:
1178
1297
  return t.time({ width: "full" });
1179
1298
  }
1180
- }, Wl = (e, t) => {
1299
+ }, Xl = (e, t) => {
1181
1300
  const n = e.match(/(P+)(p+)?/) || [], a = n[1], r = n[2];
1182
1301
  if (!r)
1183
- return Bn(e, t);
1302
+ return Vn(e, t);
1184
1303
  let o;
1185
1304
  switch (a) {
1186
1305
  case "P":
@@ -1197,52 +1316,46 @@ const Bn = (e, t) => {
1197
1316
  o = t.dateTime({ width: "full" });
1198
1317
  break;
1199
1318
  }
1200
- return o.replace("{{date}}", Bn(a, t)).replace("{{time}}", dr(r, t));
1319
+ return o.replace("{{date}}", Vn(a, t)).replace("{{time}}", yr(r, t));
1201
1320
  }, ln = {
1202
- p: dr,
1203
- P: Wl
1204
- }, zl = /^D+$/, ql = /^Y+$/, jl = ["D", "DD", "YY", "YYYY"];
1205
- function cr(e) {
1206
- return zl.test(e);
1321
+ p: yr,
1322
+ P: Xl
1323
+ }, Gl = /^D+$/, Zl = /^Y+$/, Jl = ["D", "DD", "YY", "YYYY"];
1324
+ function hr(e) {
1325
+ return Gl.test(e);
1207
1326
  }
1208
- function mr(e) {
1209
- return ql.test(e);
1327
+ function gr(e) {
1328
+ return Zl.test(e);
1210
1329
  }
1211
1330
  function on(e, t, n) {
1212
- const a = Ul(e, t, n);
1213
- if (console.warn(a), jl.includes(e)) throw new RangeError(a);
1331
+ const a = eo(e, t, n);
1332
+ if (console.warn(a), Jl.includes(e)) throw new RangeError(a);
1214
1333
  }
1215
- function Ul(e, t, n) {
1334
+ function eo(e, t, n) {
1216
1335
  const a = e[0] === "Y" ? "years" : "days of the month";
1217
1336
  return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${a} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
1218
1337
  }
1219
- function vr(e) {
1220
- return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
1221
- }
1222
- function ya(e) {
1223
- return !(!vr(e) && typeof e != "number" || isNaN(+pe(e)));
1224
- }
1225
- const Ql = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Kl = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Xl = /^'([^]*?)'?$/, Gl = /''/g, Zl = /[a-zA-Z]/;
1338
+ const to = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ao = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, no = /^'([^]*?)'?$/, ro = /''/g, lo = /[a-zA-Z]/;
1226
1339
  function Yt(e, t, n) {
1227
- const a = ea(), r = n?.locale ?? a.locale ?? lr, o = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, s = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0, m = pe(e, n?.in);
1340
+ const a = ea(), r = n?.locale ?? a.locale ?? pr, o = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, s = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0, m = pe(e, n?.in);
1228
1341
  if (!ya(m))
1229
1342
  throw new RangeError("Invalid time value");
1230
- let d = t.match(Kl).map((c) => {
1343
+ let d = t.match(ao).map((c) => {
1231
1344
  const v = c[0];
1232
1345
  if (v === "p" || v === "P") {
1233
1346
  const y = ln[v];
1234
1347
  return y(c, r.formatLong);
1235
1348
  }
1236
1349
  return c;
1237
- }).join("").match(Ql).map((c) => {
1350
+ }).join("").match(to).map((c) => {
1238
1351
  if (c === "''")
1239
1352
  return { isToken: !1, value: "'" };
1240
1353
  const v = c[0];
1241
1354
  if (v === "'")
1242
- return { isToken: !1, value: Jl(c) };
1243
- if (In[v])
1355
+ return { isToken: !1, value: oo(c) };
1356
+ if (Bn[v])
1244
1357
  return { isToken: !0, value: c };
1245
- if (v.match(Zl))
1358
+ if (v.match(lo))
1246
1359
  throw new RangeError(
1247
1360
  "Format string contains an unescaped latin alphabet character `" + v + "`"
1248
1361
  );
@@ -1257,127 +1370,14 @@ function Yt(e, t, n) {
1257
1370
  return d.map((c) => {
1258
1371
  if (!c.isToken) return c.value;
1259
1372
  const v = c.value;
1260
- (!n?.useAdditionalWeekYearTokens && mr(v) || !n?.useAdditionalDayOfYearTokens && cr(v)) && on(v, t, String(e));
1261
- const y = In[v[0]];
1373
+ (!n?.useAdditionalWeekYearTokens && gr(v) || !n?.useAdditionalDayOfYearTokens && hr(v)) && on(v, t, String(e));
1374
+ const y = Bn[v[0]];
1262
1375
  return y(m, v, r.localize, T);
1263
1376
  }).join("");
1264
1377
  }
1265
- function Jl(e) {
1266
- const t = e.match(Xl);
1267
- return t ? t[1].replace(Gl, "'") : e;
1268
- }
1269
- function ft(e, t, n) {
1270
- const a = pe(e, n?.in);
1271
- return isNaN(t) ? Se(n?.in || e, NaN) : (t && a.setDate(a.getDate() + t), a);
1272
- }
1273
- function bt(e, t, n) {
1274
- const a = pe(e, n?.in);
1275
- if (isNaN(t)) return Se(e, NaN);
1276
- if (!t)
1277
- return a;
1278
- const r = a.getDate(), o = Se(e, a.getTime());
1279
- o.setMonth(a.getMonth() + t + 1, 0);
1280
- const s = o.getDate();
1281
- return r >= s ? o : (a.setFullYear(
1282
- o.getFullYear(),
1283
- o.getMonth(),
1284
- r
1285
- ), a);
1286
- }
1287
- function fr(e, t, n) {
1288
- const {
1289
- years: a = 0,
1290
- months: r = 0,
1291
- weeks: o = 0,
1292
- days: s = 0,
1293
- hours: m = 0,
1294
- minutes: d = 0,
1295
- seconds: T = 0
1296
- } = t, c = pe(e, n?.in), v = r || a ? bt(c, r + a * 12) : c, y = s || o ? ft(v, s + o * 7) : v, M = d + m * 60, Y = (T + M * 60) * 1e3;
1297
- return Se(e, +y + Y);
1298
- }
1299
- function eo(e, t, n) {
1300
- return Se(e, +pe(e) + t);
1301
- }
1302
- function to(e, t, n) {
1303
- return eo(e, t * sr);
1304
- }
1305
- function ao(e, t, n) {
1306
- return bt(e, t * 3, n);
1307
- }
1308
- function yn(e, t, n) {
1309
- return bt(e, t * 12, n);
1310
- }
1311
- function Ln(e, t) {
1312
- const n = +pe(e) - +pe(t);
1313
- return n < 0 ? -1 : n > 0 ? 1 : n;
1314
- }
1315
- function Hn(e, t) {
1316
- const n = pe(e, t?.in);
1317
- return Math.trunc(n.getMonth() / 3) + 1;
1318
- }
1319
- function no(e, t, n) {
1320
- const [a, r] = Ma(
1321
- n?.in,
1322
- e,
1323
- t
1324
- );
1325
- return a.getFullYear() - r.getFullYear();
1326
- }
1327
- function ro(e, t, n) {
1328
- const [a, r] = Ma(
1329
- n?.in,
1330
- e,
1331
- t
1332
- ), o = Ln(a, r), s = Math.abs(no(a, r));
1333
- a.setFullYear(1584), r.setFullYear(1584);
1334
- const m = Ln(a, r) === -o, d = o * (s - +m);
1335
- return d === 0 ? 0 : d;
1336
- }
1337
- function pr(e, t) {
1338
- const [n, a] = Ma(e, t.start, t.end);
1339
- return { start: n, end: a };
1340
- }
1341
- function yr(e, t) {
1342
- const { start: n, end: a } = pr(t?.in, e);
1343
- let r = +n > +a;
1344
- const o = r ? +n : +a, s = r ? a : n;
1345
- s.setHours(0, 0, 0, 0);
1346
- let m = 1;
1347
- const d = [];
1348
- for (; +s <= o; )
1349
- d.push(Se(n, s)), s.setDate(s.getDate() + m), s.setHours(0, 0, 0, 0);
1350
- return r ? d.reverse() : d;
1351
- }
1352
- function Kt(e, t) {
1353
- const n = pe(e, t?.in), a = n.getMonth(), r = a - a % 3;
1354
- return n.setMonth(r, 1), n.setHours(0, 0, 0, 0), n;
1355
- }
1356
- function lo(e, t) {
1357
- const { start: n, end: a } = pr(t?.in, e);
1358
- let r = +n > +a;
1359
- const o = r ? +Kt(n) : +Kt(a);
1360
- let s = Kt(r ? a : n), m = 1;
1361
- const d = [];
1362
- for (; +s <= o; )
1363
- d.push(Se(n, s)), s = ao(s, m);
1364
- return r ? d.reverse() : d;
1365
- }
1366
- function oo(e, t) {
1367
- const n = pe(e, t?.in);
1368
- return n.setDate(1), n.setHours(0, 0, 0, 0), n;
1369
- }
1370
- function hr(e, t) {
1371
- const n = pe(e, t?.in), a = n.getFullYear();
1372
- return n.setFullYear(a + 1, 0, 0), n.setHours(23, 59, 59, 999), n;
1373
- }
1374
- function gr(e, t) {
1375
- const n = ea(), a = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, r = pe(e, t?.in), o = r.getDay(), s = (o < a ? -7 : 0) + 6 - (o - a);
1376
- return r.setDate(r.getDate() + s), r.setHours(23, 59, 59, 999), r;
1377
- }
1378
- function Vn(e, t) {
1379
- const n = pe(e, t?.in), a = n.getMonth(), r = a - a % 3 + 3;
1380
- return n.setMonth(r, 0), n.setHours(23, 59, 59, 999), n;
1378
+ function oo(e) {
1379
+ const t = e.match(no);
1380
+ return t ? t[1].replace(ro, "'") : e;
1381
1381
  }
1382
1382
  function so(e, t) {
1383
1383
  return pe(e, t?.in).getDay();
@@ -1567,7 +1567,7 @@ function Ot(e, t) {
1567
1567
  };
1568
1568
  const a = n[1] === "+" ? 1 : -1, r = n[2] ? parseInt(n[2], 10) : 0, o = n[3] ? parseInt(n[3], 10) : 0, s = n[5] ? parseInt(n[5], 10) : 0;
1569
1569
  return {
1570
- value: a * (r * sr + o * El + s * Bl),
1570
+ value: a * (r * tr + o * dl + s * cl),
1571
1571
  rest: t.slice(n[0].length)
1572
1572
  };
1573
1573
  }
@@ -1696,7 +1696,7 @@ class wo extends Ae {
1696
1696
  return n.isTwoDigitYear || n.year > 0;
1697
1697
  }
1698
1698
  set(t, n, a, r) {
1699
- const o = fn(t, r);
1699
+ const o = pn(t, r);
1700
1700
  if (a.isTwoDigitYear) {
1701
1701
  const m = kr(
1702
1702
  a.year,
@@ -2023,7 +2023,7 @@ class Po extends Ae {
2023
2023
  ];
2024
2024
  }
2025
2025
  function xo(e, t, n) {
2026
- const a = pe(e, n?.in), r = pn(a, n) - t;
2026
+ const a = pe(e, n?.in), r = yn(a, n) - t;
2027
2027
  return a.setDate(a.getDate() - r * 7), pe(a, n?.in);
2028
2028
  }
2029
2029
  class To extends Ae {
@@ -2061,7 +2061,7 @@ class To extends Ae {
2061
2061
  ];
2062
2062
  }
2063
2063
  function $o(e, t, n) {
2064
- const a = pe(e, n?.in), r = vn(a, n) - t;
2064
+ const a = pe(e, n?.in), r = fn(a, n) - t;
2065
2065
  return a.setDate(a.getDate() - r * 7), a;
2066
2066
  }
2067
2067
  class Oo extends Ae {
@@ -2831,7 +2831,7 @@ const Jo = {
2831
2831
  T: new Zo()
2832
2832
  }, es = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ts = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, as = /^'([^]*?)'?$/, ns = /''/g, rs = /\S/, ls = /[a-zA-Z]/;
2833
2833
  function sn(e, t, n, a) {
2834
- const r = () => Se(a?.in || n, NaN), o = uo(), s = a?.locale ?? o.locale ?? lr, m = a?.firstWeekContainsDate ?? a?.locale?.options?.firstWeekContainsDate ?? o.firstWeekContainsDate ?? o.locale?.options?.firstWeekContainsDate ?? 1, d = a?.weekStartsOn ?? a?.locale?.options?.weekStartsOn ?? o.weekStartsOn ?? o.locale?.options?.weekStartsOn ?? 0;
2834
+ const r = () => Se(a?.in || n, NaN), o = uo(), s = a?.locale ?? o.locale ?? pr, m = a?.firstWeekContainsDate ?? a?.locale?.options?.firstWeekContainsDate ?? o.firstWeekContainsDate ?? o.locale?.options?.firstWeekContainsDate ?? 1, d = a?.weekStartsOn ?? a?.locale?.options?.weekStartsOn ?? o.weekStartsOn ?? o.locale?.options?.weekStartsOn ?? 0;
2835
2835
  if (!t)
2836
2836
  return e ? r() : pe(n, a?.in);
2837
2837
  const T = {
@@ -2847,7 +2847,7 @@ function sn(e, t, n, a) {
2847
2847
  return D;
2848
2848
  }).join("").match(es), y = [];
2849
2849
  for (let D of v) {
2850
- !a?.useAdditionalWeekYearTokens && mr(D) && on(D, t, e), !a?.useAdditionalDayOfYearTokens && cr(D) && on(D, t, e);
2850
+ !a?.useAdditionalWeekYearTokens && gr(D) && on(D, t, e), !a?.useAdditionalDayOfYearTokens && hr(D) && on(D, t, e);
2851
2851
  const k = D[0], S = Jo[k];
2852
2852
  if (S) {
2853
2853
  const { incompatibleTokens: R } = S;
@@ -2960,7 +2960,7 @@ function us(e, t, n) {
2960
2960
  return Se(e, +v - p);
2961
2961
  }
2962
2962
  function Tr(e, t, n) {
2963
- return yn(e, -t, n);
2963
+ return vn(e, -t, n);
2964
2964
  }
2965
2965
  function fa() {
2966
2966
  const e = tl();
@@ -3261,7 +3261,7 @@ const dn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Cr = (e, t) =
3261
3261
  if (a) return a(e);
3262
3262
  }, _s = () => "ontouchstart" in window || navigator.maxTouchPoints > 0, Rr = (e, t) => e ? la.MONTH_AND_YEAR : t ? la.YEAR : la.DATE, Sr = (e) => e < 10 ? `0${e}` : e, Un = (e, t, n, a, r, o) => {
3263
3263
  const s = sn(e, t.slice(0, e.length), /* @__PURE__ */ new Date(), { locale: o });
3264
- return ya(s) && vr(s) ? a || r ? s : Ne(s, {
3264
+ return ya(s) && lr(s) ? a || r ? s : Ne(s, {
3265
3265
  hours: +n.hours,
3266
3266
  minutes: +n?.minutes,
3267
3267
  seconds: +n?.seconds,
@@ -3295,7 +3295,7 @@ const dn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Cr = (e, t) =
3295
3295
  return new Date(a).toISOString();
3296
3296
  }, et = (e, t) => {
3297
3297
  const n = j(JSON.parse(JSON.stringify(e))), a = Ne(n, { hours: 0, minutes: 0, seconds: 0, milliseconds: 0 });
3298
- return t ? oo(a) : a;
3298
+ return t ? bl(a) : a;
3299
3299
  }, Wt = (e, t, n, a) => {
3300
3300
  let r = e ? j(e) : j();
3301
3301
  return (t || t === 0) && (r = ss(r, +t)), (n || n === 0) && (r = is(r, +n)), (a || a === 0) && (r = xr(r, +a)), Pr(r, 0);
@@ -3327,12 +3327,12 @@ const dn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Cr = (e, t) =
3327
3327
  if (e) return ge(j(e));
3328
3328
  }, Fr = (e, t) => {
3329
3329
  const n = qe(e, t) ? t : e, a = qe(t, e) ? t : e;
3330
- return yr({ start: n, end: a });
3330
+ return sr({ start: n, end: a });
3331
3331
  }, Ps = (e) => {
3332
3332
  const t = bt(e, 1);
3333
3333
  return { month: xe(t), year: ge(t) };
3334
3334
  }, Rt = (e, t) => {
3335
- const n = kt(e, { weekStartsOn: +t }), a = gr(e, { weekStartsOn: +t });
3335
+ const n = kt(e, { weekStartsOn: +t }), a = ur(e, { weekStartsOn: +t });
3336
3336
  return [n, a];
3337
3337
  }, Er = (e, t) => {
3338
3338
  const n = {
@@ -3685,7 +3685,7 @@ const dn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Cr = (e, t) =
3685
3685
  const y = (l) => s.value.timezone && s.value.convertModel ? ct(l, s.value.timezone) : l, M = (l) => {
3686
3686
  if (s.value.timezone && s.value.convertModel) {
3687
3687
  const _ = ms(s.value.timezone, l);
3688
- return to(l, _);
3688
+ return vl(l, _);
3689
3689
  }
3690
3690
  return l;
3691
3691
  }, p = (l, _, oe = !1) => Lr(
@@ -3805,7 +3805,7 @@ const dn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Cr = (e, t) =
3805
3805
  return n.value.months.includes(xe(y)) ? (y = v ? bt(c, 1) : ua(c, 1), o(y, v)) : y;
3806
3806
  }, s = (c, v) => {
3807
3807
  let y = c;
3808
- return n.value.years.includes(ge(y)) ? (y = v ? yn(c, 1) : Tr(c, 1), s(y, v)) : y;
3808
+ return n.value.years.includes(ge(y)) ? (y = v ? vn(c, 1) : Tr(c, 1), s(y, v)) : y;
3809
3809
  }, m = (c, v = !1) => {
3810
3810
  const y = Ne(j(), { month: e.month, year: e.year });
3811
3811
  let M = c ? bt(y, 1) : ua(y, 1);
@@ -4482,7 +4482,7 @@ const dn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Cr = (e, t) =
4482
4482
  const ce = Ne(wt(/* @__PURE__ */ new Date()), {
4483
4483
  month: T.value(I),
4484
4484
  year: d.value(I)
4485
- }), ye = se ? hr(ce) : ba(ce);
4485
+ }), ye = se ? ir(ce) : ba(ce);
4486
4486
  return Br(
4487
4487
  ye,
4488
4488
  a.value.maxDate,
@@ -4501,14 +4501,14 @@ const dn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Cr = (e, t) =
4501
4501
  };
4502
4502
  else {
4503
4503
  const se = Ne(j(), r.value[I - 1]);
4504
- r.value[I] = { month: xe(se), year: ge(yn(se, 1)) };
4504
+ r.value[I] = { month: xe(se), year: ge(vn(se, 1)) };
4505
4505
  }
4506
4506
  }, D = (I) => {
4507
4507
  if (!I) return Y();
4508
4508
  const se = Ne(j(), r.value[I]);
4509
4509
  return r.value[0].year = ge(Tr(se, e.value.count - 1)), Y();
4510
4510
  }, k = (I, se) => {
4511
- const ce = ro(se, I);
4511
+ const ce = gl(se, I);
4512
4512
  return t.value.showLastInRange && ce > 1 ? se : I;
4513
4513
  }, S = (I) => s.focusStartDate || e.value.solo ? I[0] : I[1] ? k(I[0], I[1]) : I[0], R = () => {
4514
4514
  if (o.value) {
@@ -4928,7 +4928,7 @@ const dn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Cr = (e, t) =
4928
4928
  return !r.validateTime(i, ne);
4929
4929
  }
4930
4930
  return !1;
4931
- }, I = z(() => (i) => !P(+r[i] + +r[`${i}Increment`], i) || V(i, !0)), se = z(() => (i) => !P(+r[i] - +r[`${i}Increment`], i) || V(i, !1)), ce = (i, Z) => fr(Ne(j(), i), Z), ye = (i, Z) => us(Ne(j(), i), Z), h = z(
4931
+ }, I = z(() => (i) => !P(+r[i] + +r[`${i}Increment`], i) || V(i, !0)), se = z(() => (i) => !P(+r[i] - +r[`${i}Increment`], i) || V(i, !1)), ce = (i, Z) => ar(Ne(j(), i), Z), ye = (i, Z) => us(Ne(j(), i), Z), h = z(
4932
4932
  () => ({
4933
4933
  dp__time_col: !0,
4934
4934
  dp__time_col_block: !r.timePickerInline,
@@ -5922,7 +5922,7 @@ const dn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Cr = (e, t) =
5922
5922
  A && (Array.isArray(Y.value[be]) ? Y.value[be][Q] = A : Y.value[be] = [A]), r.arrowNavigation && o(Y.value, "calendar");
5923
5923
  }, E = (A) => {
5924
5924
  r.monthChangeOnScroll && (A.preventDefault(), a("handle-scroll", A));
5925
- }, W = (A) => c.value.type === "local" ? pn(A.value, { weekStartsOn: +r.weekStart }) : c.value.type === "iso" ? vn(A.value) : typeof c.value.type == "function" ? c.value.type(A.value) : "", l = (A) => {
5925
+ }, W = (A) => c.value.type === "local" ? yn(A.value, { weekStartsOn: +r.weekStart }) : c.value.type === "iso" ? fn(A.value) : typeof c.value.type == "function" ? c.value.type(A.value) : "", l = (A) => {
5926
5926
  const be = A[0];
5927
5927
  return c.value.hideOnOffsetDates ? A.some((Q) => Q.current) ? W(be) : "" : W(be);
5928
5928
  }, _ = (A, be, Q = !0) => {
@@ -6112,7 +6112,7 @@ const dn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Cr = (e, t) =
6112
6112
  }, de = () => Array.isArray(d.value) && p.value.enabled ? xe(d.value[0]) === xe(d.value[1] ?? d.value[0]) : !1, f = (b = /* @__PURE__ */ new Date(), G = !1) => {
6113
6113
  if ((!y.value.count || !y.value.static || G) && g(0, xe(b), ge(b)), y.value.count && (!d.value || de() || !y.value.solo) && (!y.value.solo || G))
6114
6114
  for (let fe = 1; fe < y.value.count; fe++) {
6115
- const _e = Ne(j(), { month: ye.value(fe - 1), year: h.value(fe - 1) }), B = fr(_e, { months: 1 });
6115
+ const _e = Ne(j(), { month: ye.value(fe - 1), year: h.value(fe - 1) }), B = ar(_e, { months: 1 });
6116
6116
  T.value[fe] = { month: xe(B), year: ge(B) };
6117
6117
  }
6118
6118
  }, P = (b, G) => {
@@ -6414,7 +6414,7 @@ const dn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Cr = (e, t) =
6414
6414
  }, _ = (Q, te) => {
6415
6415
  var i;
6416
6416
  if (!r.range) {
6417
- const Z = d.value ? d.value : v, ae = te ? new Date(te) : Z, ne = Q ? kt(ae, { weekStartsOn: 1 }) : gr(ae, { weekStartsOn: 1 });
6417
+ const Z = d.value ? d.value : v, ae = te ? new Date(te) : Z, ne = Q ? kt(ae, { weekStartsOn: 1 }) : ur(ae, { weekStartsOn: 1 });
6418
6418
  S({
6419
6419
  value: ne,
6420
6420
  current: xe(ae) === s.value(0),
@@ -6576,13 +6576,13 @@ const dn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Cr = (e, t) =
6576
6576
  return !1;
6577
6577
  }
6578
6578
  return !1;
6579
- }, V = (x, g) => x.quarter === Hn(g) && x.year === ge(g), I = (x) => typeof o.value == "function" ? o.value({ quarter: Hn(x), year: ge(x) }) : !!o.value.quarters.find((g) => V(g, x)), se = z(() => (x) => {
6579
+ }, V = (x, g) => x.quarter === Fn(g) && x.year === ge(g), I = (x) => typeof o.value == "function" ? o.value({ quarter: Fn(x), year: ge(x) }) : !!o.value.quarters.find((g) => V(g, x)), se = z(() => (x) => {
6580
6580
  const g = Ne(/* @__PURE__ */ new Date(), { year: v.value(x) });
6581
- return lo({
6581
+ return wl({
6582
6582
  start: ba(g),
6583
- end: hr(g)
6583
+ end: ir(g)
6584
6584
  }).map((H) => {
6585
- const J = Kt(H), F = Vn(H), ee = p(H), O = re(J), de = I(J);
6585
+ const J = Kt(H), F = En(H), ee = p(H), O = re(J), de = I(J);
6586
6586
  return {
6587
6587
  text: C(J, F),
6588
6588
  value: J,
@@ -6614,7 +6614,7 @@ const dn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Cr = (e, t) =
6614
6614
  selectYear: Y,
6615
6615
  selectQuarter: (x, g, H) => {
6616
6616
  if (!H)
6617
- return M.value[g].month = xe(Vn(x)), T.value.enabled ? ce(x) : s.value.enabled ? ye(x) : h(x);
6617
+ return M.value[g].month = xe(En(x)), T.value.enabled ? ce(x) : s.value.enabled ? ye(x) : h(x);
6618
6618
  },
6619
6619
  toggleYearPicker: R,
6620
6620
  handleYearSelect: L,
@@ -7450,7 +7450,7 @@ const Ji = ({
7450
7450
  }, y = (h, x, g, H) => {
7451
7451
  let J = !1;
7452
7452
  return H && (a.value.minDate || a.value.maxDate) ? a.value.minDate && a.value.maxDate ? J = v(h, x, g) : (a.value.minDate && T(h, x) || a.value.maxDate && c(h, x)) && (J = !0) : J = !0, J;
7453
- }, M = (h) => Array.isArray(a.value.allowedDates) && !a.value.allowedDates.length ? !0 : a.value.allowedDates ? !Na(h, a.value.allowedDates, Rr(e.monthPicker, e.yearPicker)) : !1, p = (h) => !d(h), Y = (h) => n.value.noDisabledRange ? !yr({ start: h[0], end: h[1] }).some((x) => p(x)) : !0, D = (h) => {
7453
+ }, M = (h) => Array.isArray(a.value.allowedDates) && !a.value.allowedDates.length ? !0 : a.value.allowedDates ? !Na(h, a.value.allowedDates, Rr(e.monthPicker, e.yearPicker)) : !1, p = (h) => !d(h), Y = (h) => n.value.noDisabledRange ? !sr({ start: h[0], end: h[1] }).some((x) => p(x)) : !0, D = (h) => {
7454
7454
  if (h) {
7455
7455
  const x = ge(h);
7456
7456
  return x >= +e.yearRange[0] && x <= e.yearRange[1];
@@ -7458,7 +7458,7 @@ const Ji = ({
7458
7458
  return !0;
7459
7459
  }, k = (h, x) => !!(Array.isArray(h) && h[x] && (n.value.maxRange || n.value.minRange) && D(h[x])), S = (h, x, g = 0) => {
7460
7460
  if (k(x, g) && D(h)) {
7461
- const H = ir(h, x[g]), J = Fr(x[g], h), F = J.length === 1 ? 0 : J.filter((O) => p(O)).length, ee = Math.abs(H) - (n.value.minMaxRawRange ? 0 : F);
7461
+ const H = rr(h, x[g]), J = Fr(x[g], h), F = J.length === 1 ? 0 : J.filter((O) => p(O)).length, ee = Math.abs(H) - (n.value.minMaxRawRange ? 0 : F);
7462
7462
  if (n.value.minRange && n.value.maxRange)
7463
7463
  return ee >= +n.value.minRange && ee <= +n.value.maxRange;
7464
7464
  if (n.value.minRange) return ee >= +n.value.minRange;
@@ -8380,7 +8380,7 @@ const yu = {
8380
8380
  night: /nat/i
8381
8381
  }
8382
8382
  }, zu = {
8383
- ordinalNumber: nr({
8383
+ ordinalNumber: vr({
8384
8384
  matchPattern: Cu,
8385
8385
  parsePattern: Ru,
8386
8386
  valueCallback: (e) => parseInt(e, 10)
@@ -8457,11 +8457,11 @@ const yu = {
8457
8457
  })
8458
8458
  }, Xu = {
8459
8459
  code: "en-GB",
8460
- formatDistance: er,
8460
+ formatDistance: dr,
8461
8461
  formatLong: Ku,
8462
- formatRelative: tr,
8463
- localize: ar,
8464
- match: rr,
8462
+ formatRelative: cr,
8463
+ localize: mr,
8464
+ match: fr,
8465
8465
  options: {
8466
8466
  weekStartsOn: 1,
8467
8467
  firstWeekContainsDate: 4
@@ -8590,12 +8590,12 @@ export {
8590
8590
  nd as _,
8591
8591
  Ra as a,
8592
8592
  td as b,
8593
- Ln as c,
8593
+ In as c,
8594
8594
  ed as d,
8595
- lr as e,
8596
- El as f,
8595
+ pr as e,
8596
+ dl as f,
8597
8597
  ea as g,
8598
8598
  ad as m,
8599
8599
  Ma as n
8600
8600
  };
8601
- //# sourceMappingURL=DateField.vue_vue_type_style_index_0_lang-DpjnY-88.js.map
8601
+ //# sourceMappingURL=AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-BWlCmScQ.js.map