@konnectio/core 4.1.3 → 4.1.5

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 (60) hide show
  1. package/dist/{ActionField-CRqgWSz1.js → ActionField-ChprjIX4.js} +3 -3
  2. package/dist/ActionField-ChprjIX4.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-DVrVFhw4.js → AvailabilitySkeleton-mvINfZn2.js} +110 -110
  4. package/dist/AvailabilitySkeleton-mvINfZn2.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Bqb9v7l8.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-CxfZdZ85.js} +336 -336
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-CxfZdZ85.js.br +0 -0
  7. package/dist/{CheckoutWindow-DrZnthDH.js → CheckoutWindow-CLNkZ6L5.js} +185 -185
  8. package/dist/CheckoutWindow-CLNkZ6L5.js.br +0 -0
  9. package/dist/{ErrorMessage-b0lY3zUM.js → ErrorMessage-B2bEzPe8.js} +4 -4
  10. package/dist/ErrorMessage-B2bEzPe8.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-BPkfZcYX.js → EventAvailabilityForm-lyhGlFEw.js} +10 -10
  12. package/dist/EventAvailabilityForm-lyhGlFEw.js.br +0 -0
  13. package/dist/{Field-DnS91ODQ.js → Field-e-9M8dvO.js} +4 -4
  14. package/dist/Field-e-9M8dvO.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-CW-XSJQB.js → Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-DnfMKN_W.js} +3 -3
  16. package/dist/{SelectField.vue_vue_type_style_index_0_lang-CZYWu7x-.js → SelectField.vue_vue_type_style_index_0_lang-B8pRSFGj.js} +3149 -2797
  17. package/dist/SelectField.vue_vue_type_style_index_0_lang-B8pRSFGj.js.br +0 -0
  18. package/dist/{TermsOfService-B2ELKRPq.js → TermsOfService-DjvTX3TY.js} +4 -4
  19. package/dist/_-AlqhOnLa.js +5 -0
  20. package/dist/{_.vue_vue_type_style_index_0_lang-DKkrP6vk.js → _.vue_vue_type_style_index_0_lang-z6uaEvdu.js} +3 -3
  21. package/dist/availability.js +16 -16
  22. package/dist/availability.js.br +0 -0
  23. package/dist/cancel-reservation.js +14 -14
  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/deep-link.js +13 -13
  28. package/dist/deep-link.js.br +0 -0
  29. package/dist/event.js +447 -445
  30. package/dist/event.js.br +0 -0
  31. package/dist/gift-card-validation.js +24 -24
  32. package/dist/gift-card-validation.js.br +0 -0
  33. package/dist/gift-card.js +56 -56
  34. package/dist/gift-card.js.br +0 -0
  35. package/dist/{giftCard-BsWa3VEY.js → giftCard-DqnhA4rm.js} +26 -26
  36. package/dist/giftCard-DqnhA4rm.js.br +0 -0
  37. package/dist/hotel.js +16 -16
  38. package/dist/hotel.js.br +0 -0
  39. package/dist/{masonry.plugin-By72FzQ9.js → masonry.plugin-DvmJbfT_.js} +306 -304
  40. package/dist/masonry.plugin-DvmJbfT_.js.br +0 -0
  41. package/dist/{mitt-Dh_4vPVI.js → mitt-CFrRmK9k.js} +30 -30
  42. package/dist/mitt-CFrRmK9k.js.br +0 -0
  43. package/dist/polyfill.js +1 -1
  44. package/dist/polyfill.js.br +0 -0
  45. package/dist/{style-CXMzdeVK.js → style-CLWqMWeG.js} +59 -59
  46. package/dist/style-CLWqMWeG.js.br +0 -0
  47. package/package.json +6 -5
  48. package/dist/ActionField-CRqgWSz1.js.br +0 -0
  49. package/dist/AvailabilitySkeleton-DVrVFhw4.js.br +0 -0
  50. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Bqb9v7l8.js.br +0 -0
  51. package/dist/CheckoutWindow-DrZnthDH.js.br +0 -0
  52. package/dist/ErrorMessage-b0lY3zUM.js.br +0 -0
  53. package/dist/EventAvailabilityForm-BPkfZcYX.js.br +0 -0
  54. package/dist/Field-DnS91ODQ.js.br +0 -0
  55. package/dist/SelectField.vue_vue_type_style_index_0_lang-CZYWu7x-.js.br +0 -0
  56. package/dist/_-DkNAaEsV.js +0 -5
  57. package/dist/giftCard-BsWa3VEY.js.br +0 -0
  58. package/dist/masonry.plugin-By72FzQ9.js.br +0 -0
  59. package/dist/mitt-Dh_4vPVI.js.br +0 -0
  60. package/dist/style-CXMzdeVK.js.br +0 -0
@@ -1,192 +1,6 @@
1
- import { P as ka, r as G, d as Ge, y as Qt, a3 as ya, o as Ze, N as dt, U as _a, E as vt, c as z, a as x, g as U, f as it, z as nt, A as Ne, w as be, v as de, a4 as Qe, a5 as ot, i as u, a6 as Ke, B as Sn, b as Ae, T as ua, j as X, a7 as Ia, a8 as Kr, n as De, e as ge, F as _e, a0 as mt, h as ha, t as at, O as Gr, V as Yn, a9 as Jr, x as Yt, aa as Zr, ab as el, G as Oa, H as Ca, ac as tl, ad as al, ae as nl } from "./mitt-Dh_4vPVI.js";
2
- import { H as rl, x as ll, w as ol } from "./SelectField.vue_vue_type_style_index_0_lang-CZYWu7x-.js";
3
- const er = 6048e5, il = 864e5, sl = 6e4, tr = 36e5, ul = 1e3, Zu = 525600, ed = 43200, td = 1440, Rn = Symbol.for("constructDateFrom");
4
- function Ce(e, t) {
5
- return typeof e == "function" ? e(t) : e && typeof e == "object" && Rn in e ? e[Rn](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
6
- }
7
- function ye(e, t) {
8
- return Ce(t || e, e);
9
- }
10
- function ct(e, t, n) {
11
- const a = ye(e, n?.in);
12
- return isNaN(t) ? Ce(n?.in || e, NaN) : (t && a.setDate(a.getDate() + t), a);
13
- }
14
- function gt(e, t, n) {
15
- const a = ye(e, n?.in);
16
- if (isNaN(t)) return Ce(e, NaN);
17
- if (!t)
18
- return a;
19
- const r = a.getDate(), o = Ce(e, a.getTime());
20
- o.setMonth(a.getMonth() + t + 1, 0);
21
- const i = o.getDate();
22
- return r >= i ? 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: i = 0,
34
- hours: m = 0,
35
- minutes: d = 0,
36
- seconds: M = 0
37
- } = t, c = ye(e, n?.in), v = r || a ? gt(c, r + a * 12) : c, p = i || o ? ct(v, i + o * 7) : v, _ = d + m * 60, A = (M + _ * 60) * 1e3;
38
- return Ce(e, +p + A);
39
- }
40
- function dl(e, t, n) {
41
- return Ce(e, +ye(e) + t);
42
- }
43
- function cl(e, t, n) {
44
- return dl(e, t * tr);
45
- }
46
- let ml = {};
47
- function Kt() {
48
- return ml;
49
- }
50
- function wt(e, t) {
51
- const n = Kt(), a = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, r = ye(e, t?.in), o = r.getDay(), i = (o < a ? 7 : 0) + o - a;
52
- return r.setDate(r.getDate() - i), r.setHours(0, 0, 0, 0), r;
53
- }
54
- function na(e, t) {
55
- return wt(e, { ...t, weekStartsOn: 1 });
56
- }
57
- function nr(e, t) {
58
- const n = ye(e, t?.in), a = n.getFullYear(), r = Ce(n, 0);
59
- r.setFullYear(a + 1, 0, 4), r.setHours(0, 0, 0, 0);
60
- const o = na(r), i = Ce(n, 0);
61
- i.setFullYear(a, 0, 4), i.setHours(0, 0, 0, 0);
62
- const m = na(i);
63
- return n.getTime() >= o.getTime() ? a + 1 : n.getTime() >= m.getTime() ? a : a - 1;
64
- }
65
- function Sa(e) {
66
- const t = ye(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 Da(e, ...t) {
80
- const n = Ce.bind(
81
- null,
82
- e || t.find((a) => typeof a == "object")
83
- );
84
- return t.map(n);
85
- }
86
- function In(e, t) {
87
- const n = ye(e, t?.in);
88
- return n.setHours(0, 0, 0, 0), n;
89
- }
90
- function rr(e, t, n) {
91
- const [a, r] = Da(
92
- n?.in,
93
- e,
94
- t
95
- ), o = In(a), i = In(r), m = +o - Sa(o), d = +i - Sa(i);
96
- return Math.round((m - d) / il);
97
- }
98
- function vl(e, t) {
99
- const n = nr(e, t), a = Ce(e, 0);
100
- return a.setFullYear(n, 0, 4), a.setHours(0, 0, 0, 0), na(a);
101
- }
102
- function pl(e, t, n) {
103
- return gt(e, t * 3, n);
104
- }
105
- function vn(e, t, n) {
106
- return gt(e, t * 12, n);
107
- }
108
- function Nn(e, t) {
109
- const n = +ye(e) - +ye(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 pa(e) {
116
- return !(!lr(e) && typeof e != "number" || isNaN(+ye(e)));
117
- }
118
- function Wn(e, t) {
119
- const n = ye(e, t?.in);
120
- return Math.trunc(n.getMonth() / 3) + 1;
121
- }
122
- function fl(e, t, n) {
123
- const [a, r] = Da(
124
- n?.in,
125
- e,
126
- t
127
- );
128
- return a.getFullYear() - r.getFullYear();
129
- }
130
- function yl(e, t, n) {
131
- const [a, r] = Da(
132
- n?.in,
133
- e,
134
- t
135
- ), o = Nn(a, r), i = Math.abs(fl(a, r));
136
- a.setFullYear(1584), r.setFullYear(1584);
137
- const m = Nn(a, r) === -o, d = o * (i - +m);
138
- return d === 0 ? 0 : d;
139
- }
140
- function or(e, t) {
141
- const [n, a] = Da(e, t.start, t.end);
142
- return { start: n, end: a };
143
- }
144
- function ir(e, t) {
145
- const { start: n, end: a } = or(t?.in, e);
146
- let r = +n > +a;
147
- const o = r ? +n : +a, i = r ? a : n;
148
- i.setHours(0, 0, 0, 0);
149
- let m = 1;
150
- const d = [];
151
- for (; +i <= o; )
152
- d.push(Ce(n, i)), i.setDate(i.getDate() + m), i.setHours(0, 0, 0, 0);
153
- return r ? d.reverse() : d;
154
- }
155
- function zt(e, t) {
156
- const n = ye(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 hl(e, t) {
160
- const { start: n, end: a } = or(t?.in, e);
161
- let r = +n > +a;
162
- const o = r ? +zt(n) : +zt(a);
163
- let i = zt(r ? a : n), m = 1;
164
- const d = [];
165
- for (; +i <= o; )
166
- d.push(Ce(n, i)), i = pl(i, m);
167
- return r ? d.reverse() : d;
168
- }
169
- function gl(e, t) {
170
- const n = ye(e, t?.in);
171
- return n.setDate(1), n.setHours(0, 0, 0, 0), n;
172
- }
173
- function sr(e, t) {
174
- const n = ye(e, t?.in), a = n.getFullYear();
175
- return n.setFullYear(a + 1, 0, 0), n.setHours(23, 59, 59, 999), n;
176
- }
177
- function ga(e, t) {
178
- const n = ye(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 = Kt(), a = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, r = ye(e, t?.in), o = r.getDay(), i = (o < a ? -7 : 0) + 6 - (o - a);
183
- return r.setDate(r.getDate() + i), r.setHours(23, 59, 59, 999), r;
184
- }
185
- function En(e, t) {
186
- const n = ye(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 wl = {
1
+ import { O as ka, r as G, d as Ge, x as Qt, a3 as ya, o as Ze, M as dt, R as _a, D as vt, c as z, a as x, g as U, f as it, y as nt, z as Ne, w as be, q as de, a4 as Qe, a5 as ot, i as u, a6 as Ke, A as Sn, b as Ae, T as ua, j as X, a7 as Ia, a8 as Kr, n as De, e as ge, F as _e, a0 as mt, h as ha, t as at, N as Gr, U as Yn, a9 as Jr, v as Yt, aa as Zr, ab as el, E as Oa, G as Ca, ac as tl, ad as al, ae as nl } from "./mitt-CFrRmK9k.js";
2
+ import { H as rl, x as ll, w as ol } from "./SelectField.vue_vue_type_style_index_0_lang-B8pRSFGj.js";
3
+ const il = {
190
4
  lessThanXSeconds: {
191
5
  one: "less than a second",
192
6
  other: "less than {{count}} seconds"
@@ -248,9 +62,9 @@ const wl = {
248
62
  one: "almost 1 year",
249
63
  other: "almost {{count}} years"
250
64
  }
251
- }, dr = (e, t, n) => {
65
+ }, er = (e, t, n) => {
252
66
  let a;
253
- const r = wl[e];
67
+ const r = il[e];
254
68
  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;
255
69
  };
256
70
  function St(e) {
@@ -259,42 +73,42 @@ function St(e) {
259
73
  return e.formats[n] || e.formats[e.defaultWidth];
260
74
  };
261
75
  }
262
- const bl = {
76
+ const sl = {
263
77
  full: "EEEE, MMMM do, y",
264
78
  long: "MMMM do, y",
265
79
  medium: "MMM d, y",
266
80
  short: "MM/dd/yyyy"
267
- }, kl = {
81
+ }, ul = {
268
82
  full: "h:mm:ss a zzzz",
269
83
  long: "h:mm:ss a z",
270
84
  medium: "h:mm:ss a",
271
85
  short: "h:mm a"
272
- }, _l = {
86
+ }, dl = {
273
87
  full: "{{date}} 'at' {{time}}",
274
88
  long: "{{date}} 'at' {{time}}",
275
89
  medium: "{{date}}, {{time}}",
276
90
  short: "{{date}}, {{time}}"
277
- }, Dl = {
91
+ }, cl = {
278
92
  date: St({
279
- formats: bl,
93
+ formats: sl,
280
94
  defaultWidth: "full"
281
95
  }),
282
96
  time: St({
283
- formats: kl,
97
+ formats: ul,
284
98
  defaultWidth: "full"
285
99
  }),
286
100
  dateTime: St({
287
- formats: _l,
101
+ formats: dl,
288
102
  defaultWidth: "full"
289
103
  })
290
- }, Ml = {
104
+ }, ml = {
291
105
  lastWeek: "'last' eeee 'at' p",
292
106
  yesterday: "'yesterday at' p",
293
107
  today: "'today at' p",
294
108
  tomorrow: "'tomorrow at' p",
295
109
  nextWeek: "eeee 'at' p",
296
110
  other: "P"
297
- }, cr = (e, t, n, a) => Ml[e];
111
+ }, tr = (e, t, n, a) => ml[e];
298
112
  function Dt(e) {
299
113
  return (t, n) => {
300
114
  const a = n?.context ? String(n.context) : "standalone";
@@ -310,15 +124,15 @@ function Dt(e) {
310
124
  return r[o];
311
125
  };
312
126
  }
313
- const xl = {
127
+ const vl = {
314
128
  narrow: ["B", "A"],
315
129
  abbreviated: ["BC", "AD"],
316
130
  wide: ["Before Christ", "Anno Domini"]
317
- }, Pl = {
131
+ }, pl = {
318
132
  narrow: ["1", "2", "3", "4"],
319
133
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
320
134
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
321
- }, Tl = {
135
+ }, fl = {
322
136
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
323
137
  abbreviated: [
324
138
  "Jan",
@@ -348,7 +162,7 @@ const xl = {
348
162
  "November",
349
163
  "December"
350
164
  ]
351
- }, Al = {
165
+ }, yl = {
352
166
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
353
167
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
354
168
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
@@ -361,7 +175,7 @@ const xl = {
361
175
  "Friday",
362
176
  "Saturday"
363
177
  ]
364
- }, $l = {
178
+ }, hl = {
365
179
  narrow: {
366
180
  am: "a",
367
181
  pm: "p",
@@ -392,7 +206,7 @@ const xl = {
392
206
  evening: "evening",
393
207
  night: "night"
394
208
  }
395
- }, Ol = {
209
+ }, gl = {
396
210
  narrow: {
397
211
  am: "a",
398
212
  pm: "p",
@@ -423,7 +237,7 @@ const xl = {
423
237
  evening: "in the evening",
424
238
  night: "at night"
425
239
  }
426
- }, Cl = (e, t) => {
240
+ }, wl = (e, t) => {
427
241
  const n = Number(e), a = n % 100;
428
242
  if (a > 20 || a < 10)
429
243
  switch (a % 10) {
@@ -435,29 +249,29 @@ const xl = {
435
249
  return n + "rd";
436
250
  }
437
251
  return n + "th";
438
- }, mr = {
439
- ordinalNumber: Cl,
252
+ }, ar = {
253
+ ordinalNumber: wl,
440
254
  era: Dt({
441
- values: xl,
255
+ values: vl,
442
256
  defaultWidth: "wide"
443
257
  }),
444
258
  quarter: Dt({
445
- values: Pl,
259
+ values: pl,
446
260
  defaultWidth: "wide",
447
261
  argumentCallback: (e) => e - 1
448
262
  }),
449
263
  month: Dt({
450
- values: Tl,
264
+ values: fl,
451
265
  defaultWidth: "wide"
452
266
  }),
453
267
  day: Dt({
454
- values: Al,
268
+ values: yl,
455
269
  defaultWidth: "wide"
456
270
  }),
457
271
  dayPeriod: Dt({
458
- values: $l,
272
+ values: hl,
459
273
  defaultWidth: "wide",
460
- formattingValues: Ol,
274
+ formattingValues: gl,
461
275
  defaultFormattingWidth: "wide"
462
276
  })
463
277
  };
@@ -466,9 +280,9 @@ function Mt(e) {
466
280
  const a = n.width, r = a && e.matchPatterns[a] || e.matchPatterns[e.defaultMatchWidth], o = t.match(r);
467
281
  if (!o)
468
282
  return null;
469
- const i = o[0], m = a && e.parsePatterns[a] || e.parsePatterns[e.defaultParseWidth], d = Array.isArray(m) ? Yl(m, (v) => v.test(i)) : (
283
+ const i = o[0], m = a && e.parsePatterns[a] || e.parsePatterns[e.defaultParseWidth], d = Array.isArray(m) ? kl(m, (v) => v.test(i)) : (
470
284
  // [TODO] -- I challenge you to fix the type
471
- Sl(m, (v) => v.test(i))
285
+ bl(m, (v) => v.test(i))
472
286
  );
473
287
  let M;
474
288
  M = e.valueCallback ? e.valueCallback(d) : d, M = n.valueCallback ? (
@@ -479,17 +293,17 @@ function Mt(e) {
479
293
  return { value: M, rest: c };
480
294
  };
481
295
  }
482
- function Sl(e, t) {
296
+ function bl(e, t) {
483
297
  for (const n in e)
484
298
  if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
485
299
  return n;
486
300
  }
487
- function Yl(e, t) {
301
+ function kl(e, t) {
488
302
  for (let n = 0; n < e.length; n++)
489
303
  if (t(e[n]))
490
304
  return n;
491
305
  }
492
- function vr(e) {
306
+ function nr(e) {
493
307
  return (t, n = {}) => {
494
308
  const a = t.match(e.matchPattern);
495
309
  if (!a) return null;
@@ -501,23 +315,23 @@ function vr(e) {
501
315
  return { value: i, rest: m };
502
316
  };
503
317
  }
504
- const Rl = /^(\d+)(th|st|nd|rd)?/i, Il = /\d+/i, Nl = {
318
+ const _l = /^(\d+)(th|st|nd|rd)?/i, Dl = /\d+/i, Ml = {
505
319
  narrow: /^(b|a)/i,
506
320
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
507
321
  wide: /^(before christ|before common era|anno domini|common era)/i
508
- }, Wl = {
322
+ }, xl = {
509
323
  any: [/^b/i, /^(a|c)/i]
510
- }, El = {
324
+ }, Pl = {
511
325
  narrow: /^[1234]/i,
512
326
  abbreviated: /^q[1234]/i,
513
327
  wide: /^[1234](th|st|nd|rd)? quarter/i
514
- }, Hl = {
328
+ }, Tl = {
515
329
  any: [/1/i, /2/i, /3/i, /4/i]
516
- }, Vl = {
330
+ }, Al = {
517
331
  narrow: /^[jfmasond]/i,
518
332
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
519
333
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
520
- }, Bl = {
334
+ }, $l = {
521
335
  narrow: [
522
336
  /^j/i,
523
337
  /^f/i,
@@ -546,18 +360,18 @@ const Rl = /^(\d+)(th|st|nd|rd)?/i, Il = /\d+/i, Nl = {
546
360
  /^n/i,
547
361
  /^d/i
548
362
  ]
549
- }, Ll = {
363
+ }, Ol = {
550
364
  narrow: /^[smtwf]/i,
551
365
  short: /^(su|mo|tu|we|th|fr|sa)/i,
552
366
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
553
367
  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
554
- }, Fl = {
368
+ }, Cl = {
555
369
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
556
370
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
557
- }, ql = {
371
+ }, Sl = {
558
372
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
559
373
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
560
- }, zl = {
374
+ }, Yl = {
561
375
  any: {
562
376
  am: /^a/i,
563
377
  pm: /^p/i,
@@ -568,64 +382,131 @@ const Rl = /^(\d+)(th|st|nd|rd)?/i, Il = /\d+/i, Nl = {
568
382
  evening: /evening/i,
569
383
  night: /night/i
570
384
  }
571
- }, pr = {
572
- ordinalNumber: vr({
573
- matchPattern: Rl,
574
- parsePattern: Il,
385
+ }, rr = {
386
+ ordinalNumber: nr({
387
+ matchPattern: _l,
388
+ parsePattern: Dl,
575
389
  valueCallback: (e) => parseInt(e, 10)
576
390
  }),
577
391
  era: Mt({
578
- matchPatterns: Nl,
392
+ matchPatterns: Ml,
579
393
  defaultMatchWidth: "wide",
580
- parsePatterns: Wl,
394
+ parsePatterns: xl,
581
395
  defaultParseWidth: "any"
582
396
  }),
583
397
  quarter: Mt({
584
- matchPatterns: El,
398
+ matchPatterns: Pl,
585
399
  defaultMatchWidth: "wide",
586
- parsePatterns: Hl,
400
+ parsePatterns: Tl,
587
401
  defaultParseWidth: "any",
588
402
  valueCallback: (e) => e + 1
589
403
  }),
590
404
  month: Mt({
591
- matchPatterns: Vl,
405
+ matchPatterns: Al,
592
406
  defaultMatchWidth: "wide",
593
- parsePatterns: Bl,
407
+ parsePatterns: $l,
594
408
  defaultParseWidth: "any"
595
409
  }),
596
410
  day: Mt({
597
- matchPatterns: Ll,
411
+ matchPatterns: Ol,
598
412
  defaultMatchWidth: "wide",
599
- parsePatterns: Fl,
413
+ parsePatterns: Cl,
600
414
  defaultParseWidth: "any"
601
415
  }),
602
416
  dayPeriod: Mt({
603
- matchPatterns: ql,
417
+ matchPatterns: Sl,
604
418
  defaultMatchWidth: "any",
605
- parsePatterns: zl,
419
+ parsePatterns: Yl,
606
420
  defaultParseWidth: "any"
607
421
  })
608
- }, fr = {
422
+ }, lr = {
609
423
  code: "en-US",
610
- formatDistance: dr,
611
- formatLong: Dl,
612
- formatRelative: cr,
613
- localize: mr,
614
- match: pr,
424
+ formatDistance: er,
425
+ formatLong: cl,
426
+ formatRelative: tr,
427
+ localize: ar,
428
+ match: rr,
615
429
  options: {
616
430
  weekStartsOn: 0,
617
431
  firstWeekContainsDate: 1
618
432
  }
619
433
  };
620
- function Ul(e, t) {
434
+ let Rl = {};
435
+ function Kt() {
436
+ return Rl;
437
+ }
438
+ const or = 6048e5, Il = 864e5, Nl = 6e4, ir = 36e5, Wl = 1e3, Zu = 525600, ed = 43200, td = 1440, Rn = Symbol.for("constructDateFrom");
439
+ function Ce(e, t) {
440
+ return typeof e == "function" ? e(t) : e && typeof e == "object" && Rn in e ? e[Rn](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
441
+ }
442
+ function ye(e, t) {
443
+ return Ce(t || e, e);
444
+ }
445
+ function Sa(e) {
446
+ const t = ye(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 Da(e, ...t) {
460
+ const n = Ce.bind(
461
+ null,
462
+ e || t.find((a) => typeof a == "object")
463
+ );
464
+ return t.map(n);
465
+ }
466
+ function In(e, t) {
621
467
  const n = ye(e, t?.in);
622
- return rr(n, ga(n)) + 1;
468
+ return n.setHours(0, 0, 0, 0), n;
623
469
  }
624
- function pn(e, t) {
625
- const n = ye(e, t?.in), a = +na(n) - +vl(n);
626
- return Math.round(a / er) + 1;
470
+ function sr(e, t, n) {
471
+ const [a, r] = Da(
472
+ n?.in,
473
+ e,
474
+ t
475
+ ), o = In(a), i = In(r), m = +o - Sa(o), d = +i - Sa(i);
476
+ return Math.round((m - d) / Il);
627
477
  }
628
- function fn(e, t) {
478
+ function ga(e, t) {
479
+ const n = ye(e, t?.in);
480
+ return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
481
+ }
482
+ function El(e, t) {
483
+ const n = ye(e, t?.in);
484
+ return sr(n, ga(n)) + 1;
485
+ }
486
+ function wt(e, t) {
487
+ const n = Kt(), a = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, r = ye(e, t?.in), o = r.getDay(), i = (o < a ? 7 : 0) + o - a;
488
+ return r.setDate(r.getDate() - i), r.setHours(0, 0, 0, 0), r;
489
+ }
490
+ function na(e, t) {
491
+ return wt(e, { ...t, weekStartsOn: 1 });
492
+ }
493
+ function ur(e, t) {
494
+ const n = ye(e, t?.in), a = n.getFullYear(), r = Ce(n, 0);
495
+ r.setFullYear(a + 1, 0, 4), r.setHours(0, 0, 0, 0);
496
+ const o = na(r), i = Ce(n, 0);
497
+ i.setFullYear(a, 0, 4), i.setHours(0, 0, 0, 0);
498
+ const m = na(i);
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 = Ce(e, 0);
503
+ return a.setFullYear(n, 0, 4), a.setHours(0, 0, 0, 0), na(a);
504
+ }
505
+ function vn(e, t) {
506
+ const n = ye(e, t?.in), a = +na(n) - +Hl(n);
507
+ return Math.round(a / or) + 1;
508
+ }
509
+ function pn(e, t) {
629
510
  const n = ye(e, t?.in), a = n.getFullYear(), r = Kt(), o = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, i = Ce(t?.in || e, 0);
630
511
  i.setFullYear(a + 1, 0, o), i.setHours(0, 0, 0, 0);
631
512
  const m = wt(i, t), d = Ce(t?.in || e, 0);
@@ -633,13 +514,13 @@ function fn(e, t) {
633
514
  const M = wt(d, t);
634
515
  return +n >= +m ? a + 1 : +n >= +M ? a : a - 1;
635
516
  }
636
- function jl(e, t) {
637
- const n = Kt(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, r = fn(e, t), o = Ce(t?.in || e, 0);
517
+ function Vl(e, t) {
518
+ const n = Kt(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, r = pn(e, t), o = Ce(t?.in || e, 0);
638
519
  return o.setFullYear(r, 0, a), o.setHours(0, 0, 0, 0), wt(o, t);
639
520
  }
640
- function yn(e, t) {
641
- const n = ye(e, t?.in), a = +wt(n, t) - +jl(n, t);
642
- return Math.round(a / er) + 1;
521
+ function fn(e, t) {
522
+ const n = ye(e, t?.in), a = +wt(n, t) - +Vl(n, t);
523
+ return Math.round(a / or) + 1;
643
524
  }
644
525
  function Oe(e, t) {
645
526
  const n = e < 0 ? "-" : "", a = Math.abs(e).toString().padStart(t, "0");
@@ -708,7 +589,7 @@ const Nt = {
708
589
  afternoon: "afternoon",
709
590
  evening: "evening",
710
591
  night: "night"
711
- }, Hn = {
592
+ }, Nn = {
712
593
  // Era
713
594
  G: function(e, t, n) {
714
595
  const a = e.getFullYear() > 0 ? 1 : 0;
@@ -737,7 +618,7 @@ const Nt = {
737
618
  },
738
619
  // Local week-numbering year
739
620
  Y: function(e, t, n, a) {
740
- const r = fn(e, a), o = r > 0 ? r : 1 - r;
621
+ const r = pn(e, a), o = r > 0 ? r : 1 - r;
741
622
  if (t === "YY") {
742
623
  const i = o % 100;
743
624
  return Oe(i, 2);
@@ -746,7 +627,7 @@ const Nt = {
746
627
  },
747
628
  // ISO week-numbering year
748
629
  R: function(e, t) {
749
- const n = nr(e);
630
+ const n = ur(e);
750
631
  return Oe(n, t.length);
751
632
  },
752
633
  // Extended year. This is a single number designating the year of this calendar system.
@@ -891,12 +772,12 @@ const Nt = {
891
772
  },
892
773
  // Local week of year
893
774
  w: function(e, t, n, a) {
894
- const r = yn(e, a);
775
+ const r = fn(e, a);
895
776
  return t === "wo" ? n.ordinalNumber(r, { unit: "week" }) : Oe(r, t.length);
896
777
  },
897
778
  // ISO week of year
898
779
  I: function(e, t, n) {
899
- const a = pn(e);
780
+ const a = vn(e);
900
781
  return t === "Io" ? n.ordinalNumber(a, { unit: "week" }) : Oe(a, t.length);
901
782
  },
902
783
  // Day of the month
@@ -905,7 +786,7 @@ const Nt = {
905
786
  },
906
787
  // Day of year
907
788
  D: function(e, t, n) {
908
- const a = Ul(e);
789
+ const a = El(e);
909
790
  return t === "Do" ? n.ordinalNumber(a, { unit: "dayOfYear" }) : Oe(a, t.length);
910
791
  },
911
792
  // Day of week
@@ -1183,7 +1064,7 @@ const Nt = {
1183
1064
  switch (t) {
1184
1065
  // Hours and optional minutes
1185
1066
  case "X":
1186
- return Bn(a);
1067
+ return En(a);
1187
1068
  // Hours, minutes and optional seconds without `:` delimiter
1188
1069
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1189
1070
  // so this token always has the same output as `XX`
@@ -1206,7 +1087,7 @@ const Nt = {
1206
1087
  switch (t) {
1207
1088
  // Hours and optional minutes
1208
1089
  case "x":
1209
- return Bn(a);
1090
+ return En(a);
1210
1091
  // Hours, minutes and optional seconds without `:` delimiter
1211
1092
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1212
1093
  // so this token always has the same output as `xx`
@@ -1231,7 +1112,7 @@ const Nt = {
1231
1112
  case "O":
1232
1113
  case "OO":
1233
1114
  case "OOO":
1234
- return "GMT" + Vn(a, ":");
1115
+ return "GMT" + Wn(a, ":");
1235
1116
  // Long
1236
1117
  case "OOOO":
1237
1118
  default:
@@ -1246,7 +1127,7 @@ const Nt = {
1246
1127
  case "z":
1247
1128
  case "zz":
1248
1129
  case "zzz":
1249
- return "GMT" + Vn(a, ":");
1130
+ return "GMT" + Wn(a, ":");
1250
1131
  // Long
1251
1132
  case "zzzz":
1252
1133
  default:
@@ -1263,18 +1144,18 @@ const Nt = {
1263
1144
  return Oe(+e, t.length);
1264
1145
  }
1265
1146
  };
1266
- function Vn(e, t = "") {
1147
+ function Wn(e, t = "") {
1267
1148
  const n = e > 0 ? "-" : "+", a = Math.abs(e), r = Math.trunc(a / 60), o = a % 60;
1268
1149
  return o === 0 ? n + String(r) : n + String(r) + t + Oe(o, 2);
1269
1150
  }
1270
- function Bn(e, t) {
1151
+ function En(e, t) {
1271
1152
  return e % 60 === 0 ? (e > 0 ? "-" : "+") + Oe(Math.abs(e) / 60, 2) : qt(e, t);
1272
1153
  }
1273
1154
  function qt(e, t = "") {
1274
1155
  const n = e > 0 ? "-" : "+", a = Math.abs(e), r = Oe(Math.trunc(a / 60), 2), o = Oe(a % 60, 2);
1275
1156
  return n + r + t + o;
1276
1157
  }
1277
- const Ln = (e, t) => {
1158
+ const Hn = (e, t) => {
1278
1159
  switch (e) {
1279
1160
  case "P":
1280
1161
  return t.date({ width: "short" });
@@ -1286,7 +1167,7 @@ const Ln = (e, t) => {
1286
1167
  default:
1287
1168
  return t.date({ width: "full" });
1288
1169
  }
1289
- }, yr = (e, t) => {
1170
+ }, dr = (e, t) => {
1290
1171
  switch (e) {
1291
1172
  case "p":
1292
1173
  return t.time({ width: "short" });
@@ -1298,10 +1179,10 @@ const Ln = (e, t) => {
1298
1179
  default:
1299
1180
  return t.time({ width: "full" });
1300
1181
  }
1301
- }, Xl = (e, t) => {
1182
+ }, Bl = (e, t) => {
1302
1183
  const n = e.match(/(P+)(p+)?/) || [], a = n[1], r = n[2];
1303
1184
  if (!r)
1304
- return Ln(e, t);
1185
+ return Hn(e, t);
1305
1186
  let o;
1306
1187
  switch (a) {
1307
1188
  case "P":
@@ -1318,46 +1199,52 @@ const Ln = (e, t) => {
1318
1199
  o = t.dateTime({ width: "full" });
1319
1200
  break;
1320
1201
  }
1321
- return o.replace("{{date}}", Ln(a, t)).replace("{{time}}", yr(r, t));
1202
+ return o.replace("{{date}}", Hn(a, t)).replace("{{time}}", dr(r, t));
1322
1203
  }, ln = {
1323
- p: yr,
1324
- P: Xl
1325
- }, Ql = /^D+$/, Kl = /^Y+$/, Gl = ["D", "DD", "YY", "YYYY"];
1326
- function hr(e) {
1327
- return Ql.test(e);
1204
+ p: dr,
1205
+ P: Bl
1206
+ }, Ll = /^D+$/, Fl = /^Y+$/, ql = ["D", "DD", "YY", "YYYY"];
1207
+ function cr(e) {
1208
+ return Ll.test(e);
1328
1209
  }
1329
- function gr(e) {
1330
- return Kl.test(e);
1210
+ function mr(e) {
1211
+ return Fl.test(e);
1331
1212
  }
1332
1213
  function on(e, t, n) {
1333
- const a = Jl(e, t, n);
1334
- if (console.warn(a), Gl.includes(e)) throw new RangeError(a);
1214
+ const a = zl(e, t, n);
1215
+ if (console.warn(a), ql.includes(e)) throw new RangeError(a);
1335
1216
  }
1336
- function Jl(e, t, n) {
1217
+ function zl(e, t, n) {
1337
1218
  const a = e[0] === "Y" ? "years" : "days of the month";
1338
1219
  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`;
1339
1220
  }
1340
- const Zl = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, eo = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, to = /^'([^]*?)'?$/, ao = /''/g, no = /[a-zA-Z]/;
1221
+ function vr(e) {
1222
+ return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
1223
+ }
1224
+ function pa(e) {
1225
+ return !(!vr(e) && typeof e != "number" || isNaN(+ye(e)));
1226
+ }
1227
+ const Ul = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, jl = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Xl = /^'([^]*?)'?$/, Ql = /''/g, Kl = /[a-zA-Z]/;
1341
1228
  function At(e, t, n) {
1342
- const a = Kt(), r = n?.locale ?? a.locale ?? fr, o = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, i = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0, m = ye(e, n?.in);
1229
+ const a = Kt(), r = n?.locale ?? a.locale ?? lr, o = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, i = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0, m = ye(e, n?.in);
1343
1230
  if (!pa(m))
1344
1231
  throw new RangeError("Invalid time value");
1345
- let d = t.match(eo).map((c) => {
1232
+ let d = t.match(jl).map((c) => {
1346
1233
  const v = c[0];
1347
1234
  if (v === "p" || v === "P") {
1348
1235
  const p = ln[v];
1349
1236
  return p(c, r.formatLong);
1350
1237
  }
1351
1238
  return c;
1352
- }).join("").match(Zl).map((c) => {
1239
+ }).join("").match(Ul).map((c) => {
1353
1240
  if (c === "''")
1354
1241
  return { isToken: !1, value: "'" };
1355
1242
  const v = c[0];
1356
1243
  if (v === "'")
1357
- return { isToken: !1, value: ro(c) };
1358
- if (Hn[v])
1244
+ return { isToken: !1, value: Gl(c) };
1245
+ if (Nn[v])
1359
1246
  return { isToken: !0, value: c };
1360
- if (v.match(no))
1247
+ if (v.match(Kl))
1361
1248
  throw new RangeError(
1362
1249
  "Format string contains an unescaped latin alphabet character `" + v + "`"
1363
1250
  );
@@ -1372,14 +1259,127 @@ function At(e, t, n) {
1372
1259
  return d.map((c) => {
1373
1260
  if (!c.isToken) return c.value;
1374
1261
  const v = c.value;
1375
- (!n?.useAdditionalWeekYearTokens && gr(v) || !n?.useAdditionalDayOfYearTokens && hr(v)) && on(v, t, String(e));
1376
- const p = Hn[v[0]];
1262
+ (!n?.useAdditionalWeekYearTokens && mr(v) || !n?.useAdditionalDayOfYearTokens && cr(v)) && on(v, t, String(e));
1263
+ const p = Nn[v[0]];
1377
1264
  return p(m, v, r.localize, M);
1378
1265
  }).join("");
1379
1266
  }
1380
- function ro(e) {
1381
- const t = e.match(to);
1382
- return t ? t[1].replace(ao, "'") : e;
1267
+ function Gl(e) {
1268
+ const t = e.match(Xl);
1269
+ return t ? t[1].replace(Ql, "'") : e;
1270
+ }
1271
+ function ct(e, t, n) {
1272
+ const a = ye(e, n?.in);
1273
+ return isNaN(t) ? Ce(n?.in || e, NaN) : (t && a.setDate(a.getDate() + t), a);
1274
+ }
1275
+ function gt(e, t, n) {
1276
+ const a = ye(e, n?.in);
1277
+ if (isNaN(t)) return Ce(e, NaN);
1278
+ if (!t)
1279
+ return a;
1280
+ const r = a.getDate(), o = Ce(e, a.getTime());
1281
+ o.setMonth(a.getMonth() + t + 1, 0);
1282
+ const i = o.getDate();
1283
+ return r >= i ? o : (a.setFullYear(
1284
+ o.getFullYear(),
1285
+ o.getMonth(),
1286
+ r
1287
+ ), a);
1288
+ }
1289
+ function pr(e, t, n) {
1290
+ const {
1291
+ years: a = 0,
1292
+ months: r = 0,
1293
+ weeks: o = 0,
1294
+ days: i = 0,
1295
+ hours: m = 0,
1296
+ minutes: d = 0,
1297
+ seconds: M = 0
1298
+ } = t, c = ye(e, n?.in), v = r || a ? gt(c, r + a * 12) : c, p = i || o ? ct(v, i + o * 7) : v, _ = d + m * 60, A = (M + _ * 60) * 1e3;
1299
+ return Ce(e, +p + A);
1300
+ }
1301
+ function Jl(e, t, n) {
1302
+ return Ce(e, +ye(e) + t);
1303
+ }
1304
+ function Zl(e, t, n) {
1305
+ return Jl(e, t * ir);
1306
+ }
1307
+ function eo(e, t, n) {
1308
+ return gt(e, t * 3, n);
1309
+ }
1310
+ function yn(e, t, n) {
1311
+ return gt(e, t * 12, n);
1312
+ }
1313
+ function Vn(e, t) {
1314
+ const n = +ye(e) - +ye(t);
1315
+ return n < 0 ? -1 : n > 0 ? 1 : n;
1316
+ }
1317
+ function Bn(e, t) {
1318
+ const n = ye(e, t?.in);
1319
+ return Math.trunc(n.getMonth() / 3) + 1;
1320
+ }
1321
+ function to(e, t, n) {
1322
+ const [a, r] = Da(
1323
+ n?.in,
1324
+ e,
1325
+ t
1326
+ );
1327
+ return a.getFullYear() - r.getFullYear();
1328
+ }
1329
+ function ao(e, t, n) {
1330
+ const [a, r] = Da(
1331
+ n?.in,
1332
+ e,
1333
+ t
1334
+ ), o = Vn(a, r), i = Math.abs(to(a, r));
1335
+ a.setFullYear(1584), r.setFullYear(1584);
1336
+ const m = Vn(a, r) === -o, d = o * (i - +m);
1337
+ return d === 0 ? 0 : d;
1338
+ }
1339
+ function fr(e, t) {
1340
+ const [n, a] = Da(e, t.start, t.end);
1341
+ return { start: n, end: a };
1342
+ }
1343
+ function yr(e, t) {
1344
+ const { start: n, end: a } = fr(t?.in, e);
1345
+ let r = +n > +a;
1346
+ const o = r ? +n : +a, i = r ? a : n;
1347
+ i.setHours(0, 0, 0, 0);
1348
+ let m = 1;
1349
+ const d = [];
1350
+ for (; +i <= o; )
1351
+ d.push(Ce(n, i)), i.setDate(i.getDate() + m), i.setHours(0, 0, 0, 0);
1352
+ return r ? d.reverse() : d;
1353
+ }
1354
+ function zt(e, t) {
1355
+ const n = ye(e, t?.in), a = n.getMonth(), r = a - a % 3;
1356
+ return n.setMonth(r, 1), n.setHours(0, 0, 0, 0), n;
1357
+ }
1358
+ function no(e, t) {
1359
+ const { start: n, end: a } = fr(t?.in, e);
1360
+ let r = +n > +a;
1361
+ const o = r ? +zt(n) : +zt(a);
1362
+ let i = zt(r ? a : n), m = 1;
1363
+ const d = [];
1364
+ for (; +i <= o; )
1365
+ d.push(Ce(n, i)), i = eo(i, m);
1366
+ return r ? d.reverse() : d;
1367
+ }
1368
+ function ro(e, t) {
1369
+ const n = ye(e, t?.in);
1370
+ return n.setDate(1), n.setHours(0, 0, 0, 0), n;
1371
+ }
1372
+ function hr(e, t) {
1373
+ const n = ye(e, t?.in), a = n.getFullYear();
1374
+ return n.setFullYear(a + 1, 0, 0), n.setHours(23, 59, 59, 999), n;
1375
+ }
1376
+ function gr(e, t) {
1377
+ const n = Kt(), a = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, r = ye(e, t?.in), o = r.getDay(), i = (o < a ? -7 : 0) + 6 - (o - a);
1378
+ return r.setDate(r.getDate() + i), r.setHours(23, 59, 59, 999), r;
1379
+ }
1380
+ function Ln(e, t) {
1381
+ const n = ye(e, t?.in), a = n.getMonth(), r = a - a % 3 + 3;
1382
+ return n.setMonth(r, 0), n.setHours(23, 59, 59, 999), n;
1383
1383
  }
1384
1384
  function lo(e, t) {
1385
1385
  return ye(e, t?.in).getDay();
@@ -1569,7 +1569,7 @@ function Pt(e, t) {
1569
1569
  };
1570
1570
  const a = n[1] === "+" ? 1 : -1, r = n[2] ? parseInt(n[2], 10) : 0, o = n[3] ? parseInt(n[3], 10) : 0, i = n[5] ? parseInt(n[5], 10) : 0;
1571
1571
  return {
1572
- value: a * (r * tr + o * sl + i * ul),
1572
+ value: a * (r * ir + o * Nl + i * Wl),
1573
1573
  rest: t.slice(n[0].length)
1574
1574
  };
1575
1575
  }
@@ -1698,7 +1698,7 @@ class ho extends $e {
1698
1698
  return n.isTwoDigitYear || n.year > 0;
1699
1699
  }
1700
1700
  set(t, n, a, r) {
1701
- const o = fn(t, r);
1701
+ const o = pn(t, r);
1702
1702
  if (a.isTwoDigitYear) {
1703
1703
  const m = kr(
1704
1704
  a.year,
@@ -2025,7 +2025,7 @@ class Do extends $e {
2025
2025
  ];
2026
2026
  }
2027
2027
  function Mo(e, t, n) {
2028
- const a = ye(e, n?.in), r = yn(a, n) - t;
2028
+ const a = ye(e, n?.in), r = fn(a, n) - t;
2029
2029
  return a.setDate(a.getDate() - r * 7), ye(a, n?.in);
2030
2030
  }
2031
2031
  class xo extends $e {
@@ -2063,7 +2063,7 @@ class xo extends $e {
2063
2063
  ];
2064
2064
  }
2065
2065
  function Po(e, t, n) {
2066
- const a = ye(e, n?.in), r = pn(a, n) - t;
2066
+ const a = ye(e, n?.in), r = vn(a, n) - t;
2067
2067
  return a.setDate(a.getDate() - r * 7), a;
2068
2068
  }
2069
2069
  class To extends $e {
@@ -2833,7 +2833,7 @@ const Go = {
2833
2833
  T: new Ko()
2834
2834
  }, Jo = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Zo = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ei = /^'([^]*?)'?$/, ti = /''/g, ai = /\S/, ni = /[a-zA-Z]/;
2835
2835
  function sn(e, t, n, a) {
2836
- const r = () => Ce(a?.in || n, NaN), o = io(), i = a?.locale ?? o.locale ?? fr, 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;
2836
+ const r = () => Ce(a?.in || n, NaN), o = io(), i = 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;
2837
2837
  if (!t)
2838
2838
  return e ? r() : ye(n, a?.in);
2839
2839
  const M = {
@@ -2849,7 +2849,7 @@ function sn(e, t, n, a) {
2849
2849
  return $;
2850
2850
  }).join("").match(Jo), p = [];
2851
2851
  for (let $ of v) {
2852
- !a?.useAdditionalWeekYearTokens && gr($) && on($, t, e), !a?.useAdditionalDayOfYearTokens && hr($) && on($, t, e);
2852
+ !a?.useAdditionalWeekYearTokens && mr($) && on($, t, e), !a?.useAdditionalDayOfYearTokens && cr($) && on($, t, e);
2853
2853
  const h = $[0], V = Go[h];
2854
2854
  if (V) {
2855
2855
  const { incompatibleTokens: S } = V;
@@ -2962,7 +2962,7 @@ function ii(e, t, n) {
2962
2962
  return Ce(e, +v - f);
2963
2963
  }
2964
2964
  function Tr(e, t, n) {
2965
- return vn(e, -t, n);
2965
+ return yn(e, -t, n);
2966
2966
  }
2967
2967
  function da() {
2968
2968
  const e = Jr();
@@ -3257,7 +3257,7 @@ const dn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
3257
3257
  if (a) return a(e);
3258
3258
  }, bi = () => "ontouchstart" in window || navigator.maxTouchPoints > 0, ki = (e, t) => e ? aa.MONTH_AND_YEAR : t ? aa.YEAR : aa.DATE, Yr = (e) => e < 10 ? `0${e}` : e, jn = (e, t, n, a, r, o) => {
3259
3259
  const i = sn(e, t.slice(0, e.length), /* @__PURE__ */ new Date(), { locale: o });
3260
- return pa(i) && lr(i) ? a || r ? i : Se(i, {
3260
+ return pa(i) && vr(i) ? a || r ? i : Se(i, {
3261
3261
  hours: +n.hours,
3262
3262
  minutes: +n?.minutes,
3263
3263
  seconds: +n?.seconds,
@@ -3291,7 +3291,7 @@ const dn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
3291
3291
  return new Date(a).toISOString();
3292
3292
  }, Je = (e, t) => {
3293
3293
  const n = j(JSON.parse(JSON.stringify(e))), a = Se(n, { hours: 0, minutes: 0, seconds: 0, milliseconds: 0 });
3294
- return t ? gl(a) : a;
3294
+ return t ? ro(a) : a;
3295
3295
  }, Vt = (e, t, n, a) => {
3296
3296
  let r = e ? j(e) : j();
3297
3297
  return (t || t === 0) && (r = li(r, +t)), (n || n === 0) && (r = oi(r, +n)), (a || a === 0) && (r = Pr(r, +a)), xr(r, 0);
@@ -3323,12 +3323,12 @@ const dn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
3323
3323
  if (e) return we(j(e));
3324
3324
  }, Nr = (e, t) => {
3325
3325
  const n = Le(e, t) ? t : e, a = Le(t, e) ? t : e;
3326
- return ir({ start: n, end: a });
3326
+ return yr({ start: n, end: a });
3327
3327
  }, Mi = (e) => {
3328
3328
  const t = gt(e, 1);
3329
3329
  return { month: Pe(t), year: we(t) };
3330
3330
  }, Ot = (e, t) => {
3331
- const n = wt(e, { weekStartsOn: +t }), a = ur(e, { weekStartsOn: +t });
3331
+ const n = wt(e, { weekStartsOn: +t }), a = gr(e, { weekStartsOn: +t });
3332
3332
  return [n, a];
3333
3333
  }, Wr = (e, t) => {
3334
3334
  const n = {
@@ -3678,7 +3678,7 @@ const dn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
3678
3678
  const p = (l) => i.value.timezone && i.value.convertModel ? st(l, i.value.timezone) : l, _ = (l) => {
3679
3679
  if (i.value.timezone && i.value.convertModel) {
3680
3680
  const C = di(i.value.timezone, l);
3681
- return cl(l, C);
3681
+ return Zl(l, C);
3682
3682
  }
3683
3683
  return l;
3684
3684
  }, f = (l, C, le = !1) => Hr(
@@ -3798,7 +3798,7 @@ const dn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
3798
3798
  return n.value.months.includes(Pe(p)) ? (p = v ? gt(c, 1) : oa(c, 1), o(p, v)) : p;
3799
3799
  }, i = (c, v) => {
3800
3800
  let p = c;
3801
- return n.value.years.includes(we(p)) ? (p = v ? vn(c, 1) : Tr(c, 1), i(p, v)) : p;
3801
+ return n.value.years.includes(we(p)) ? (p = v ? yn(c, 1) : Tr(c, 1), i(p, v)) : p;
3802
3802
  }, m = (c, v = !1) => {
3803
3803
  const p = Se(j(), { month: e.month, year: e.year });
3804
3804
  let _ = c ? gt(p, 1) : oa(p, 1);
@@ -4475,7 +4475,7 @@ const dn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4475
4475
  const ce = Se(ht(/* @__PURE__ */ new Date()), {
4476
4476
  month: M.value(N),
4477
4477
  year: d.value(N)
4478
- }), he = ue ? sr(ce) : ga(ce);
4478
+ }), he = ue ? hr(ce) : ga(ce);
4479
4479
  return Er(
4480
4480
  he,
4481
4481
  a.value.maxDate,
@@ -4494,14 +4494,14 @@ const dn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4494
4494
  };
4495
4495
  else {
4496
4496
  const ue = Se(j(), r.value[N - 1]);
4497
- r.value[N] = { month: Pe(ue), year: we(vn(ue, 1)) };
4497
+ r.value[N] = { month: Pe(ue), year: we(yn(ue, 1)) };
4498
4498
  }
4499
4499
  }, $ = (N) => {
4500
4500
  if (!N) return A();
4501
4501
  const ue = Se(j(), r.value[N]);
4502
4502
  return r.value[0].year = we(Tr(ue, e.value.count - 1)), A();
4503
4503
  }, h = (N, ue) => {
4504
- const ce = yl(ue, N);
4504
+ const ce = ao(ue, N);
4505
4505
  return t.value.showLastInRange && ce > 1 ? ue : N;
4506
4506
  }, V = (N) => i.focusStartDate || e.value.solo ? N[0] : N[1] ? h(N[0], N[1]) : N[0], S = () => {
4507
4507
  if (o.value) {
@@ -4921,7 +4921,7 @@ const dn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
4921
4921
  return !r.validateTime(s, te);
4922
4922
  }
4923
4923
  return !1;
4924
- }, N = z(() => (s) => !T(+r[s] + +r[`${s}Increment`], s) || F(s, !0)), ue = z(() => (s) => !T(+r[s] - +r[`${s}Increment`], s) || F(s, !1)), ce = (s, ee) => ar(Se(j(), s), ee), he = (s, ee) => ii(Se(j(), s), ee), y = z(
4924
+ }, N = z(() => (s) => !T(+r[s] + +r[`${s}Increment`], s) || F(s, !0)), ue = z(() => (s) => !T(+r[s] - +r[`${s}Increment`], s) || F(s, !1)), ce = (s, ee) => pr(Se(j(), s), ee), he = (s, ee) => ii(Se(j(), s), ee), y = z(
4925
4925
  () => ({
4926
4926
  dp__time_col: !0,
4927
4927
  dp__time_col_block: !r.timePickerInline,
@@ -5913,7 +5913,7 @@ const dn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
5913
5913
  O && (Array.isArray(A.value[ke]) ? A.value[ke][q] = O : A.value[ke] = [O]), r.arrowNavigation && o(A.value, "calendar");
5914
5914
  }, I = (O) => {
5915
5915
  r.monthChangeOnScroll && (O.preventDefault(), a("handle-scroll", O));
5916
- }, Q = (O) => c.value.type === "local" ? yn(O.value, { weekStartsOn: +r.weekStart }) : c.value.type === "iso" ? pn(O.value) : typeof c.value.type == "function" ? c.value.type(O.value) : "", l = (O) => {
5916
+ }, Q = (O) => c.value.type === "local" ? fn(O.value, { weekStartsOn: +r.weekStart }) : c.value.type === "iso" ? vn(O.value) : typeof c.value.type == "function" ? c.value.type(O.value) : "", l = (O) => {
5917
5917
  const ke = O[0];
5918
5918
  return c.value.hideOnOffsetDates ? O.some((q) => q.current) ? Q(ke) : "" : Q(ke);
5919
5919
  }, C = (O, ke, q = !0) => {
@@ -6103,7 +6103,7 @@ const dn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6103
6103
  }, L = () => Array.isArray(d.value) && f.value.enabled ? Pe(d.value[0]) === Pe(d.value[1] ?? d.value[0]) : !1, b = (w = /* @__PURE__ */ new Date(), Z = !1) => {
6104
6104
  if ((!p.value.count || !p.value.static || Z) && g(0, Pe(w), we(w)), p.value.count && (!d.value || L() || !p.value.solo) && (!p.value.solo || Z))
6105
6105
  for (let fe = 1; fe < p.value.count; fe++) {
6106
- const R = Se(j(), { month: he.value(fe - 1), year: y.value(fe - 1) }), re = ar(R, { months: 1 });
6106
+ const R = Se(j(), { month: he.value(fe - 1), year: y.value(fe - 1) }), re = pr(R, { months: 1 });
6107
6107
  M.value[fe] = { month: Pe(re), year: we(re) };
6108
6108
  }
6109
6109
  }, T = (w, Z) => {
@@ -6405,7 +6405,7 @@ const dn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6405
6405
  }, C = (q, ne) => {
6406
6406
  var s;
6407
6407
  if (!r.range) {
6408
- const ee = d.value ? d.value : v, ie = ne ? new Date(ne) : ee, te = q ? wt(ie, { weekStartsOn: 1 }) : ur(ie, { weekStartsOn: 1 });
6408
+ const ee = d.value ? d.value : v, ie = ne ? new Date(ne) : ee, te = q ? wt(ie, { weekStartsOn: 1 }) : gr(ie, { weekStartsOn: 1 });
6409
6409
  V({
6410
6410
  value: te,
6411
6411
  current: Pe(ie) === i.value(0),
@@ -6567,13 +6567,13 @@ const dn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6567
6567
  return !1;
6568
6568
  }
6569
6569
  return !1;
6570
- }, F = (D, g) => D.quarter === Wn(g) && D.year === we(g), N = (D) => typeof o.value == "function" ? o.value({ quarter: Wn(D), year: we(D) }) : !!o.value.quarters.find((g) => F(g, D)), ue = z(() => (D) => {
6570
+ }, F = (D, g) => D.quarter === Bn(g) && D.year === we(g), N = (D) => typeof o.value == "function" ? o.value({ quarter: Bn(D), year: we(D) }) : !!o.value.quarters.find((g) => F(g, D)), ue = z(() => (D) => {
6571
6571
  const g = Se(/* @__PURE__ */ new Date(), { year: v.value(D) });
6572
- return hl({
6572
+ return no({
6573
6573
  start: ga(g),
6574
- end: sr(g)
6574
+ end: hr(g)
6575
6575
  }).map((B) => {
6576
- const ae = zt(B), H = En(B), oe = f(B), P = se(ae), L = N(ae);
6576
+ const ae = zt(B), H = Ln(B), oe = f(B), P = se(ae), L = N(ae);
6577
6577
  return {
6578
6578
  text: Y(ae, H),
6579
6579
  value: ae,
@@ -6605,7 +6605,7 @@ const dn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Sr = (e, t) =
6605
6605
  selectYear: A,
6606
6606
  selectQuarter: (D, g, B) => {
6607
6607
  if (!B)
6608
- return _.value[g].month = Pe(En(D)), M.value.enabled ? ce(D) : i.value.enabled ? he(D) : y(D);
6608
+ return _.value[g].month = Pe(Ln(D)), M.value.enabled ? ce(D) : i.value.enabled ? he(D) : y(D);
6609
6609
  },
6610
6610
  toggleYearPicker: S,
6611
6611
  handleYearSelect: W,
@@ -7442,7 +7442,7 @@ const Js = ({
7442
7442
  }, p = (y, D, g, B) => {
7443
7443
  let ae = !1;
7444
7444
  return B && (a.value.minDate || a.value.maxDate) ? a.value.minDate && a.value.maxDate ? ae = v(y, D, g) : (a.value.minDate && M(y, D) || a.value.maxDate && c(y, D)) && (ae = !0) : ae = !0, ae;
7445
- }, _ = (y) => Array.isArray(a.value.allowedDates) && !a.value.allowedDates.length ? !0 : a.value.allowedDates ? !Ra(y, a.value.allowedDates) : !1, f = (y) => !d(y), A = (y) => n.value.noDisabledRange ? !ir({ start: y[0], end: y[1] }).some((D) => f(D)) : !0, $ = (y) => {
7445
+ }, _ = (y) => Array.isArray(a.value.allowedDates) && !a.value.allowedDates.length ? !0 : a.value.allowedDates ? !Ra(y, a.value.allowedDates) : !1, f = (y) => !d(y), A = (y) => n.value.noDisabledRange ? !yr({ start: y[0], end: y[1] }).some((D) => f(D)) : !0, $ = (y) => {
7446
7446
  if (y) {
7447
7447
  const D = we(y);
7448
7448
  return D >= +e.yearRange[0] && D <= e.yearRange[1];
@@ -7450,7 +7450,7 @@ const Js = ({
7450
7450
  return !0;
7451
7451
  }, h = (y, D) => !!(Array.isArray(y) && y[D] && (n.value.maxRange || n.value.minRange) && $(y[D])), V = (y, D, g = 0) => {
7452
7452
  if (h(D, g) && $(y)) {
7453
- const B = rr(y, D[g]), ae = Nr(D[g], y), H = ae.length === 1 ? 0 : ae.filter((P) => f(P)).length, oe = Math.abs(B) - (n.value.minMaxRawRange ? 0 : H);
7453
+ const B = sr(y, D[g]), ae = Nr(D[g], y), H = ae.length === 1 ? 0 : ae.filter((P) => f(P)).length, oe = Math.abs(B) - (n.value.minMaxRawRange ? 0 : H);
7454
7454
  if (n.value.minRange && n.value.maxRange)
7455
7455
  return oe >= +n.value.minRange && oe <= +n.value.maxRange;
7456
7456
  if (n.value.minRange) return oe >= +n.value.minRange;
@@ -8371,7 +8371,7 @@ const fu = {
8371
8371
  night: /nat/i
8372
8372
  }
8373
8373
  }, Fu = {
8374
- ordinalNumber: vr({
8374
+ ordinalNumber: nr({
8375
8375
  matchPattern: Cu,
8376
8376
  parsePattern: Su,
8377
8377
  valueCallback: (e) => parseInt(e, 10)
@@ -8448,11 +8448,11 @@ const fu = {
8448
8448
  })
8449
8449
  }, Qu = {
8450
8450
  code: "en-GB",
8451
- formatDistance: dr,
8451
+ formatDistance: er,
8452
8452
  formatLong: Xu,
8453
- formatRelative: cr,
8454
- localize: mr,
8455
- match: pr,
8453
+ formatRelative: tr,
8454
+ localize: ar,
8455
+ match: rr,
8456
8456
  options: {
8457
8457
  weekStartsOn: 1,
8458
8458
  firstWeekContainsDate: 4
@@ -8581,12 +8581,12 @@ export {
8581
8581
  ad as _,
8582
8582
  ed as a,
8583
8583
  Zu as b,
8584
- Nn as c,
8584
+ Vn as c,
8585
8585
  Kt as d,
8586
- fr as e,
8587
- sl as f,
8586
+ lr as e,
8587
+ Nl as f,
8588
8588
  Sa as g,
8589
8589
  td as m,
8590
8590
  Da as n
8591
8591
  };
8592
- //# sourceMappingURL=AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Bqb9v7l8.js.map
8592
+ //# sourceMappingURL=AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-CxfZdZ85.js.map