@situaction/traq-ui-ste 1.2.32 → 1.2.34

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.
@@ -1,26 +1,26 @@
1
1
  import '../../styles/Input.css';var Ae = Object.defineProperty;
2
2
  var Be = (s, n, e) => n in s ? Ae(s, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[n] = e;
3
- var i = (s, n, e) => Be(s, typeof n != "symbol" ? n + "" : n, e);
3
+ var o = (s, n, e) => Be(s, typeof n != "symbol" ? n + "" : n, e);
4
4
  import { jsxs as ue, jsx as F, Fragment as ce } from "react/jsx-runtime";
5
5
  import { useState as le, useRef as U, useEffect as We, useMemo as de } from "react";
6
- import { i as xe, t as K, c as H, m as Ge, j as $e, k as Xe, l as je, f as ne, n as be, o as Ke, p as Ze, h as me, q as _e, r as Ve, u as fe, v as Fe, w as we, x as Ue, y as ke, g as Je } from "../../format-BQI_Gp2i.mjs";
7
- const Ce = "_fullWidth_mv9zl_143", Se = "_flexHorizontalBetween_mv9zl_147", et = "_flexHorizontal_mv9zl_147", P = {
8
- "input-style": "_input-style_mv9zl_30",
9
- "input-style-disabled": "_input-style-disabled_mv9zl_59",
10
- "input-style-focused": "_input-style-focused_mv9zl_70",
11
- "input-style-secondary": "_input-style-secondary_mv9zl_77",
12
- "input-style-ghost": "_input-style-ghost_mv9zl_91",
13
- "input-style-error": "_input-style-error_mv9zl_94",
14
- "input-container": "_input-container_mv9zl_104",
15
- "input-style-size-xl": "_input-style-size-xl_mv9zl_111",
16
- "input-style-size-l": "_input-style-size-l_mv9zl_118",
17
- "input-style-size-m": "_input-style-size-m_mv9zl_125",
18
- "input-style-size-s": "_input-style-size-s_mv9zl_132",
19
- "input-style-radius": "_input-style-radius_mv9zl_139",
6
+ import { i as xe, t as K, c as H, m as Ge, j as $e, k as Xe, l as je, f as ne, n as be, o as Ke, p as Ze, h as ge, q as me, r as Ve, u as fe, v as Fe, w as we, x as Ue, y as _e, g as Je } from "../../format-BQI_Gp2i.mjs";
7
+ const Ce = "_fullWidth_1gig4_144", Se = "_flexHorizontalBetween_1gig4_148", et = "_flexHorizontal_1gig4_148", P = {
8
+ "input-style": "_input-style_1gig4_30",
9
+ "input-style-disabled": "_input-style-disabled_1gig4_60",
10
+ "input-style-focused": "_input-style-focused_1gig4_71",
11
+ "input-style-secondary": "_input-style-secondary_1gig4_78",
12
+ "input-style-ghost": "_input-style-ghost_1gig4_92",
13
+ "input-style-error": "_input-style-error_1gig4_95",
14
+ "input-container": "_input-container_1gig4_105",
15
+ "input-style-size-xl": "_input-style-size-xl_1gig4_112",
16
+ "input-style-size-l": "_input-style-size-l_1gig4_119",
17
+ "input-style-size-m": "_input-style-size-m_1gig4_126",
18
+ "input-style-size-s": "_input-style-size-s_1gig4_133",
19
+ "input-style-radius": "_input-style-radius_1gig4_140",
20
20
  fullWidth: Ce,
21
21
  flexHorizontalBetween: Se,
22
22
  flexHorizontal: et,
23
- "input-time-placeholder": "_input-time-placeholder_mv9zl_161"
23
+ "input-time-placeholder": "_input-time-placeholder_1gig4_162"
24
24
  };
25
25
  function tt() {
26
26
  return Object.assign({}, xe());
@@ -43,17 +43,17 @@ function st(s, n) {
43
43
  ), e;
44
44
  }
45
45
  const nt = 10;
46
- class ge {
46
+ class ke {
47
47
  constructor() {
48
- i(this, "subPriority", 0);
48
+ o(this, "subPriority", 0);
49
49
  }
50
50
  validate(n, e) {
51
51
  return !0;
52
52
  }
53
53
  }
54
- class ot extends ge {
55
- constructor(n, e, r, t, o) {
56
- super(), this.value = n, this.validateValue = e, this.setValue = r, this.priority = t, o && (this.subPriority = o);
54
+ class it extends ke {
55
+ constructor(n, e, r, t, i) {
56
+ super(), this.value = n, this.validateValue = e, this.setValue = r, this.priority = t, i && (this.subPriority = i);
57
57
  }
58
58
  validate(n, e) {
59
59
  return this.validateValue(n, this.value, e);
@@ -62,11 +62,11 @@ class ot extends ge {
62
62
  return this.setValue(n, e, this.value, r);
63
63
  }
64
64
  }
65
- class it extends ge {
65
+ class ot extends ke {
66
66
  constructor() {
67
67
  super(...arguments);
68
- i(this, "priority", nt);
69
- i(this, "subPriority", -1);
68
+ o(this, "priority", nt);
69
+ o(this, "subPriority", -1);
70
70
  }
71
71
  set(e, r) {
72
72
  return r.timestampIsSet ? e : H(e, st(e, Date));
@@ -74,16 +74,16 @@ class it extends ge {
74
74
  }
75
75
  class f {
76
76
  run(n, e, r, t) {
77
- const o = this.parse(n, e, r, t);
78
- return o ? {
79
- setter: new ot(
80
- o.value,
77
+ const i = this.parse(n, e, r, t);
78
+ return i ? {
79
+ setter: new it(
80
+ i.value,
81
81
  this.validate,
82
82
  this.set,
83
83
  this.priority,
84
84
  this.subPriority
85
85
  ),
86
- rest: o.rest
86
+ rest: i.rest
87
87
  } : null;
88
88
  }
89
89
  validate(n, e, r) {
@@ -93,8 +93,8 @@ class f {
93
93
  class at extends f {
94
94
  constructor() {
95
95
  super(...arguments);
96
- i(this, "priority", 140);
97
- i(this, "incompatibleTokens", ["R", "u", "t", "T"]);
96
+ o(this, "priority", 140);
97
+ o(this, "incompatibleTokens", ["R", "u", "t", "T"]);
98
98
  }
99
99
  parse(e, r, t) {
100
100
  switch (r) {
@@ -151,14 +151,14 @@ const b = {
151
151
  // 0 to 999, -0 to -999
152
152
  fourDigitsSigned: /^-?\d{1,4}/
153
153
  // 0 to 9999, -0 to -9999
154
- }, q = {
154
+ }, N = {
155
155
  basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
156
156
  basic: /^([+-])(\d{2})(\d{2})|Z/,
157
157
  basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
158
158
  extended: /^([+-])(\d{2}):(\d{2})|Z/,
159
159
  extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/
160
160
  };
161
- function m(s, n) {
161
+ function g(s, n) {
162
162
  return s && {
163
163
  value: n(s.value),
164
164
  rest: s.rest
@@ -171,7 +171,7 @@ function y(s, n) {
171
171
  rest: n.slice(e[0].length)
172
172
  } : null;
173
173
  }
174
- function N(s, n) {
174
+ function v(s, n) {
175
175
  const e = n.match(s);
176
176
  if (!e)
177
177
  return null;
@@ -180,9 +180,9 @@ function N(s, n) {
180
180
  value: 0,
181
181
  rest: n.slice(1)
182
182
  };
183
- const r = e[1] === "+" ? 1 : -1, t = e[2] ? parseInt(e[2], 10) : 0, o = e[3] ? parseInt(e[3], 10) : 0, u = e[5] ? parseInt(e[5], 10) : 0;
183
+ const r = e[1] === "+" ? 1 : -1, t = e[2] ? parseInt(e[2], 10) : 0, i = e[3] ? parseInt(e[3], 10) : 0, u = e[5] ? parseInt(e[5], 10) : 0;
184
184
  return {
185
- value: r * (t * Ge + o * $e + u * Xe),
185
+ value: r * (t * Ge + i * $e + u * Xe),
186
186
  rest: n.slice(e[0].length)
187
187
  };
188
188
  }
@@ -217,7 +217,7 @@ function ee(s, n) {
217
217
  return y(new RegExp("^-?\\d{1," + s + "}"), n);
218
218
  }
219
219
  }
220
- function oe(s) {
220
+ function ie(s) {
221
221
  switch (s) {
222
222
  case "morning":
223
223
  return 4;
@@ -240,7 +240,7 @@ function Me(s, n) {
240
240
  if (r <= 50)
241
241
  t = s || 100;
242
242
  else {
243
- const o = r + 50, u = Math.trunc(o / 100) * 100, p = s >= o % 100;
243
+ const i = r + 50, u = Math.trunc(i / 100) * 100, p = s >= i % 100;
244
244
  t = s + u - (p ? 100 : 0);
245
245
  }
246
246
  return e ? t : 1 - t;
@@ -251,37 +251,37 @@ function Pe(s) {
251
251
  class ut extends f {
252
252
  constructor() {
253
253
  super(...arguments);
254
- i(this, "priority", 130);
255
- i(this, "incompatibleTokens", ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"]);
254
+ o(this, "priority", 130);
255
+ o(this, "incompatibleTokens", ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"]);
256
256
  }
257
257
  parse(e, r, t) {
258
- const o = (u) => ({
258
+ const i = (u) => ({
259
259
  year: u,
260
260
  isTwoDigitYear: r === "yy"
261
261
  });
262
262
  switch (r) {
263
263
  case "y":
264
- return m(x(4, e), o);
264
+ return g(x(4, e), i);
265
265
  case "yo":
266
- return m(
266
+ return g(
267
267
  t.ordinalNumber(e, {
268
268
  unit: "year"
269
269
  }),
270
- o
270
+ i
271
271
  );
272
272
  default:
273
- return m(x(r.length, e), o);
273
+ return g(x(r.length, e), i);
274
274
  }
275
275
  }
276
276
  validate(e, r) {
277
277
  return r.isTwoDigitYear || r.year > 0;
278
278
  }
279
279
  set(e, r, t) {
280
- const o = e.getFullYear();
280
+ const i = e.getFullYear();
281
281
  if (t.isTwoDigitYear) {
282
282
  const p = Me(
283
283
  t.year,
284
- o
284
+ i
285
285
  );
286
286
  return e.setFullYear(p, 0, 1), e.setHours(0, 0, 0, 0), e;
287
287
  }
@@ -292,8 +292,8 @@ class ut extends f {
292
292
  class ct extends f {
293
293
  constructor() {
294
294
  super(...arguments);
295
- i(this, "priority", 130);
296
- i(this, "incompatibleTokens", [
295
+ o(this, "priority", 130);
296
+ o(this, "incompatibleTokens", [
297
297
  "y",
298
298
  "R",
299
299
  "u",
@@ -310,49 +310,49 @@ class ct extends f {
310
310
  ]);
311
311
  }
312
312
  parse(e, r, t) {
313
- const o = (u) => ({
313
+ const i = (u) => ({
314
314
  year: u,
315
315
  isTwoDigitYear: r === "YY"
316
316
  });
317
317
  switch (r) {
318
318
  case "Y":
319
- return m(x(4, e), o);
319
+ return g(x(4, e), i);
320
320
  case "Yo":
321
- return m(
321
+ return g(
322
322
  t.ordinalNumber(e, {
323
323
  unit: "year"
324
324
  }),
325
- o
325
+ i
326
326
  );
327
327
  default:
328
- return m(x(r.length, e), o);
328
+ return g(x(r.length, e), i);
329
329
  }
330
330
  }
331
331
  validate(e, r) {
332
332
  return r.isTwoDigitYear || r.year > 0;
333
333
  }
334
- set(e, r, t, o) {
335
- const u = je(e, o);
334
+ set(e, r, t, i) {
335
+ const u = je(e, i);
336
336
  if (t.isTwoDigitYear) {
337
- const v = Me(
337
+ const T = Me(
338
338
  t.year,
339
339
  u
340
340
  );
341
341
  return e.setFullYear(
342
- v,
342
+ T,
343
343
  0,
344
- o.firstWeekContainsDate
345
- ), e.setHours(0, 0, 0, 0), ne(e, o);
344
+ i.firstWeekContainsDate
345
+ ), e.setHours(0, 0, 0, 0), ne(e, i);
346
346
  }
347
347
  const p = !("era" in r) || r.era === 1 ? t.year : 1 - t.year;
348
- return e.setFullYear(p, 0, o.firstWeekContainsDate), e.setHours(0, 0, 0, 0), ne(e, o);
348
+ return e.setFullYear(p, 0, i.firstWeekContainsDate), e.setHours(0, 0, 0, 0), ne(e, i);
349
349
  }
350
350
  }
351
351
  class lt extends f {
352
352
  constructor() {
353
353
  super(...arguments);
354
- i(this, "priority", 130);
355
- i(this, "incompatibleTokens", [
354
+ o(this, "priority", 130);
355
+ o(this, "incompatibleTokens", [
356
356
  "G",
357
357
  "y",
358
358
  "Y",
@@ -374,15 +374,15 @@ class lt extends f {
374
374
  return ee(r === "R" ? 4 : r.length, e);
375
375
  }
376
376
  set(e, r, t) {
377
- const o = H(e, 0);
378
- return o.setFullYear(t, 0, 4), o.setHours(0, 0, 0, 0), be(o);
377
+ const i = H(e, 0);
378
+ return i.setFullYear(t, 0, 4), i.setHours(0, 0, 0, 0), be(i);
379
379
  }
380
380
  }
381
381
  class dt extends f {
382
382
  constructor() {
383
383
  super(...arguments);
384
- i(this, "priority", 130);
385
- i(this, "incompatibleTokens", ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]);
384
+ o(this, "priority", 130);
385
+ o(this, "incompatibleTokens", ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]);
386
386
  }
387
387
  parse(e, r) {
388
388
  return ee(r === "u" ? 4 : r.length, e);
@@ -394,8 +394,8 @@ class dt extends f {
394
394
  class ft extends f {
395
395
  constructor() {
396
396
  super(...arguments);
397
- i(this, "priority", 120);
398
- i(this, "incompatibleTokens", [
397
+ o(this, "priority", 120);
398
+ o(this, "incompatibleTokens", [
399
399
  "Y",
400
400
  "R",
401
401
  "q",
@@ -456,8 +456,8 @@ class ft extends f {
456
456
  class wt extends f {
457
457
  constructor() {
458
458
  super(...arguments);
459
- i(this, "priority", 120);
460
- i(this, "incompatibleTokens", [
459
+ o(this, "priority", 120);
460
+ o(this, "incompatibleTokens", [
461
461
  "Y",
462
462
  "R",
463
463
  "Q",
@@ -518,7 +518,7 @@ class wt extends f {
518
518
  class pt extends f {
519
519
  constructor() {
520
520
  super(...arguments);
521
- i(this, "incompatibleTokens", [
521
+ o(this, "incompatibleTokens", [
522
522
  "Y",
523
523
  "R",
524
524
  "q",
@@ -533,24 +533,24 @@ class pt extends f {
533
533
  "t",
534
534
  "T"
535
535
  ]);
536
- i(this, "priority", 110);
536
+ o(this, "priority", 110);
537
537
  }
538
538
  parse(e, r, t) {
539
- const o = (u) => u - 1;
539
+ const i = (u) => u - 1;
540
540
  switch (r) {
541
541
  case "M":
542
- return m(
542
+ return g(
543
543
  y(b.month, e),
544
- o
544
+ i
545
545
  );
546
546
  case "MM":
547
- return m(x(2, e), o);
547
+ return g(x(2, e), i);
548
548
  case "Mo":
549
- return m(
549
+ return g(
550
550
  t.ordinalNumber(e, {
551
551
  unit: "month"
552
552
  }),
553
- o
553
+ i
554
554
  );
555
555
  case "MMM":
556
556
  return t.month(e, {
@@ -580,8 +580,8 @@ class pt extends f {
580
580
  class yt extends f {
581
581
  constructor() {
582
582
  super(...arguments);
583
- i(this, "priority", 110);
584
- i(this, "incompatibleTokens", [
583
+ o(this, "priority", 110);
584
+ o(this, "incompatibleTokens", [
585
585
  "Y",
586
586
  "R",
587
587
  "q",
@@ -598,21 +598,21 @@ class yt extends f {
598
598
  ]);
599
599
  }
600
600
  parse(e, r, t) {
601
- const o = (u) => u - 1;
601
+ const i = (u) => u - 1;
602
602
  switch (r) {
603
603
  case "L":
604
- return m(
604
+ return g(
605
605
  y(b.month, e),
606
- o
606
+ i
607
607
  );
608
608
  case "LL":
609
- return m(x(2, e), o);
609
+ return g(x(2, e), i);
610
610
  case "Lo":
611
- return m(
611
+ return g(
612
612
  t.ordinalNumber(e, {
613
613
  unit: "month"
614
614
  }),
615
- o
615
+ i
616
616
  );
617
617
  case "LLL":
618
618
  return t.month(e, {
@@ -646,8 +646,8 @@ function ht(s, n, e) {
646
646
  class xt extends f {
647
647
  constructor() {
648
648
  super(...arguments);
649
- i(this, "priority", 100);
650
- i(this, "incompatibleTokens", [
649
+ o(this, "priority", 100);
650
+ o(this, "incompatibleTokens", [
651
651
  "y",
652
652
  "R",
653
653
  "u",
@@ -676,19 +676,19 @@ class xt extends f {
676
676
  validate(e, r) {
677
677
  return r >= 1 && r <= 53;
678
678
  }
679
- set(e, r, t, o) {
680
- return ne(ht(e, t, o), o);
679
+ set(e, r, t, i) {
680
+ return ne(ht(e, t, i), i);
681
681
  }
682
682
  }
683
683
  function bt(s, n) {
684
684
  const e = K(s), r = Ze(e) - n;
685
685
  return e.setDate(e.getDate() - r * 7), e;
686
686
  }
687
- class mt extends f {
687
+ class gt extends f {
688
688
  constructor() {
689
689
  super(...arguments);
690
- i(this, "priority", 100);
691
- i(this, "incompatibleTokens", [
690
+ o(this, "priority", 100);
691
+ o(this, "incompatibleTokens", [
692
692
  "y",
693
693
  "Y",
694
694
  "u",
@@ -722,7 +722,7 @@ class mt extends f {
722
722
  return be(bt(e, t));
723
723
  }
724
724
  }
725
- const _t = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], kt = [
725
+ const mt = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], _t = [
726
726
  31,
727
727
  29,
728
728
  31,
@@ -736,12 +736,12 @@ const _t = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], kt = [
736
736
  30,
737
737
  31
738
738
  ];
739
- class gt extends f {
739
+ class kt extends f {
740
740
  constructor() {
741
741
  super(...arguments);
742
- i(this, "priority", 90);
743
- i(this, "subPriority", 1);
744
- i(this, "incompatibleTokens", [
742
+ o(this, "priority", 90);
743
+ o(this, "subPriority", 1);
744
+ o(this, "incompatibleTokens", [
745
745
  "Y",
746
746
  "R",
747
747
  "q",
@@ -767,8 +767,8 @@ class gt extends f {
767
767
  }
768
768
  }
769
769
  validate(e, r) {
770
- const t = e.getFullYear(), o = Pe(t), u = e.getMonth();
771
- return o ? r >= 1 && r <= kt[u] : r >= 1 && r <= _t[u];
770
+ const t = e.getFullYear(), i = Pe(t), u = e.getMonth();
771
+ return i ? r >= 1 && r <= _t[u] : r >= 1 && r <= mt[u];
772
772
  }
773
773
  set(e, r, t) {
774
774
  return e.setDate(t), e.setHours(0, 0, 0, 0), e;
@@ -777,9 +777,9 @@ class gt extends f {
777
777
  class Dt extends f {
778
778
  constructor() {
779
779
  super(...arguments);
780
- i(this, "priority", 90);
781
- i(this, "subpriority", 1);
782
- i(this, "incompatibleTokens", [
780
+ o(this, "priority", 90);
781
+ o(this, "subpriority", 1);
782
+ o(this, "incompatibleTokens", [
783
783
  "Y",
784
784
  "R",
785
785
  "q",
@@ -816,16 +816,16 @@ class Dt extends f {
816
816
  return e.setMonth(0, t), e.setHours(0, 0, 0, 0), e;
817
817
  }
818
818
  }
819
- function ie(s, n, e) {
820
- var c, Q, Y, X;
821
- const r = xe(), t = (e == null ? void 0 : e.weekStartsOn) ?? ((Q = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : Q.weekStartsOn) ?? r.weekStartsOn ?? ((X = (Y = r.locale) == null ? void 0 : Y.options) == null ? void 0 : X.weekStartsOn) ?? 0, o = K(s), u = o.getDay(), v = (n % 7 + 7) % 7, _ = 7 - t, l = n < 0 || n > 6 ? n - (u + _) % 7 : (v + _) % 7 - (u + _) % 7;
822
- return me(o, l);
819
+ function oe(s, n, e) {
820
+ var c, z, E, X;
821
+ const r = xe(), t = (e == null ? void 0 : e.weekStartsOn) ?? ((z = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : z.weekStartsOn) ?? r.weekStartsOn ?? ((X = (E = r.locale) == null ? void 0 : E.options) == null ? void 0 : X.weekStartsOn) ?? 0, i = K(s), u = i.getDay(), T = (n % 7 + 7) % 7, m = 7 - t, l = n < 0 || n > 6 ? n - (u + m) % 7 : (T + m) % 7 - (u + m) % 7;
822
+ return ge(i, l);
823
823
  }
824
824
  class Mt extends f {
825
825
  constructor() {
826
826
  super(...arguments);
827
- i(this, "priority", 90);
828
- i(this, "incompatibleTokens", ["D", "i", "e", "c", "t", "T"]);
827
+ o(this, "priority", 90);
828
+ o(this, "incompatibleTokens", ["D", "i", "e", "c", "t", "T"]);
829
829
  }
830
830
  parse(e, r, t) {
831
831
  switch (r) {
@@ -854,15 +854,15 @@ class Mt extends f {
854
854
  validate(e, r) {
855
855
  return r >= 0 && r <= 6;
856
856
  }
857
- set(e, r, t, o) {
858
- return e = ie(e, t, o), e.setHours(0, 0, 0, 0), e;
857
+ set(e, r, t, i) {
858
+ return e = oe(e, t, i), e.setHours(0, 0, 0, 0), e;
859
859
  }
860
860
  }
861
861
  class Pt extends f {
862
862
  constructor() {
863
863
  super(...arguments);
864
- i(this, "priority", 90);
865
- i(this, "incompatibleTokens", [
864
+ o(this, "priority", 90);
865
+ o(this, "incompatibleTokens", [
866
866
  "y",
867
867
  "R",
868
868
  "u",
@@ -880,17 +880,17 @@ class Pt extends f {
880
880
  "T"
881
881
  ]);
882
882
  }
883
- parse(e, r, t, o) {
883
+ parse(e, r, t, i) {
884
884
  const u = (p) => {
885
- const v = Math.floor((p - 1) / 7) * 7;
886
- return (p + o.weekStartsOn + 6) % 7 + v;
885
+ const T = Math.floor((p - 1) / 7) * 7;
886
+ return (p + i.weekStartsOn + 6) % 7 + T;
887
887
  };
888
888
  switch (r) {
889
889
  case "e":
890
890
  case "ee":
891
- return m(x(r.length, e), u);
891
+ return g(x(r.length, e), u);
892
892
  case "eo":
893
- return m(
893
+ return g(
894
894
  t.ordinalNumber(e, {
895
895
  unit: "day"
896
896
  }),
@@ -919,15 +919,15 @@ class Pt extends f {
919
919
  validate(e, r) {
920
920
  return r >= 0 && r <= 6;
921
921
  }
922
- set(e, r, t, o) {
923
- return e = ie(e, t, o), e.setHours(0, 0, 0, 0), e;
922
+ set(e, r, t, i) {
923
+ return e = oe(e, t, i), e.setHours(0, 0, 0, 0), e;
924
924
  }
925
925
  }
926
926
  class Ht extends f {
927
927
  constructor() {
928
928
  super(...arguments);
929
- i(this, "priority", 90);
930
- i(this, "incompatibleTokens", [
929
+ o(this, "priority", 90);
930
+ o(this, "incompatibleTokens", [
931
931
  "y",
932
932
  "R",
933
933
  "u",
@@ -945,17 +945,17 @@ class Ht extends f {
945
945
  "T"
946
946
  ]);
947
947
  }
948
- parse(e, r, t, o) {
948
+ parse(e, r, t, i) {
949
949
  const u = (p) => {
950
- const v = Math.floor((p - 1) / 7) * 7;
951
- return (p + o.weekStartsOn + 6) % 7 + v;
950
+ const T = Math.floor((p - 1) / 7) * 7;
951
+ return (p + i.weekStartsOn + 6) % 7 + T;
952
952
  };
953
953
  switch (r) {
954
954
  case "c":
955
955
  case "cc":
956
- return m(x(r.length, e), u);
956
+ return g(x(r.length, e), u);
957
957
  case "co":
958
- return m(
958
+ return g(
959
959
  t.ordinalNumber(e, {
960
960
  unit: "day"
961
961
  }),
@@ -984,19 +984,19 @@ class Ht extends f {
984
984
  validate(e, r) {
985
985
  return r >= 0 && r <= 6;
986
986
  }
987
- set(e, r, t, o) {
988
- return e = ie(e, t, o), e.setHours(0, 0, 0, 0), e;
987
+ set(e, r, t, i) {
988
+ return e = oe(e, t, i), e.setHours(0, 0, 0, 0), e;
989
989
  }
990
990
  }
991
- function vt(s, n) {
991
+ function Tt(s, n) {
992
992
  const e = K(s), r = rt(e), t = n - r;
993
- return me(e, t);
993
+ return ge(e, t);
994
994
  }
995
- class Tt extends f {
995
+ class Yt extends f {
996
996
  constructor() {
997
997
  super(...arguments);
998
- i(this, "priority", 90);
999
- i(this, "incompatibleTokens", [
998
+ o(this, "priority", 90);
999
+ o(this, "incompatibleTokens", [
1000
1000
  "y",
1001
1001
  "Y",
1002
1002
  "u",
@@ -1015,7 +1015,7 @@ class Tt extends f {
1015
1015
  ]);
1016
1016
  }
1017
1017
  parse(e, r, t) {
1018
- const o = (u) => u === 0 ? 7 : u;
1018
+ const i = (u) => u === 0 ? 7 : u;
1019
1019
  switch (r) {
1020
1020
  case "i":
1021
1021
  case "ii":
@@ -1023,7 +1023,7 @@ class Tt extends f {
1023
1023
  case "io":
1024
1024
  return t.ordinalNumber(e, { unit: "day" });
1025
1025
  case "iii":
1026
- return m(
1026
+ return g(
1027
1027
  t.day(e, {
1028
1028
  width: "abbreviated",
1029
1029
  context: "formatting"
@@ -1034,18 +1034,18 @@ class Tt extends f {
1034
1034
  width: "narrow",
1035
1035
  context: "formatting"
1036
1036
  }),
1037
- o
1037
+ i
1038
1038
  );
1039
1039
  case "iiiii":
1040
- return m(
1040
+ return g(
1041
1041
  t.day(e, {
1042
1042
  width: "narrow",
1043
1043
  context: "formatting"
1044
1044
  }),
1045
- o
1045
+ i
1046
1046
  );
1047
1047
  case "iiiiii":
1048
- return m(
1048
+ return g(
1049
1049
  t.day(e, {
1050
1050
  width: "short",
1051
1051
  context: "formatting"
@@ -1053,11 +1053,11 @@ class Tt extends f {
1053
1053
  width: "narrow",
1054
1054
  context: "formatting"
1055
1055
  }),
1056
- o
1056
+ i
1057
1057
  );
1058
1058
  case "iiii":
1059
1059
  default:
1060
- return m(
1060
+ return g(
1061
1061
  t.day(e, {
1062
1062
  width: "wide",
1063
1063
  context: "formatting"
@@ -1071,7 +1071,7 @@ class Tt extends f {
1071
1071
  width: "narrow",
1072
1072
  context: "formatting"
1073
1073
  }),
1074
- o
1074
+ i
1075
1075
  );
1076
1076
  }
1077
1077
  }
@@ -1079,14 +1079,14 @@ class Tt extends f {
1079
1079
  return r >= 1 && r <= 7;
1080
1080
  }
1081
1081
  set(e, r, t) {
1082
- return e = vt(e, t), e.setHours(0, 0, 0, 0), e;
1082
+ return e = Tt(e, t), e.setHours(0, 0, 0, 0), e;
1083
1083
  }
1084
1084
  }
1085
- class Yt extends f {
1085
+ class Et extends f {
1086
1086
  constructor() {
1087
1087
  super(...arguments);
1088
- i(this, "priority", 80);
1089
- i(this, "incompatibleTokens", ["b", "B", "H", "k", "t", "T"]);
1088
+ o(this, "priority", 80);
1089
+ o(this, "incompatibleTokens", ["b", "B", "H", "k", "t", "T"]);
1090
1090
  }
1091
1091
  parse(e, r, t) {
1092
1092
  switch (r) {
@@ -1120,14 +1120,14 @@ class Yt extends f {
1120
1120
  }
1121
1121
  }
1122
1122
  set(e, r, t) {
1123
- return e.setHours(oe(t), 0, 0, 0), e;
1123
+ return e.setHours(ie(t), 0, 0, 0), e;
1124
1124
  }
1125
1125
  }
1126
- class Et extends f {
1126
+ class It extends f {
1127
1127
  constructor() {
1128
1128
  super(...arguments);
1129
- i(this, "priority", 80);
1130
- i(this, "incompatibleTokens", ["a", "B", "H", "k", "t", "T"]);
1129
+ o(this, "priority", 80);
1130
+ o(this, "incompatibleTokens", ["a", "B", "H", "k", "t", "T"]);
1131
1131
  }
1132
1132
  parse(e, r, t) {
1133
1133
  switch (r) {
@@ -1161,14 +1161,14 @@ class Et extends f {
1161
1161
  }
1162
1162
  }
1163
1163
  set(e, r, t) {
1164
- return e.setHours(oe(t), 0, 0, 0), e;
1164
+ return e.setHours(ie(t), 0, 0, 0), e;
1165
1165
  }
1166
1166
  }
1167
- class It extends f {
1167
+ class Ot extends f {
1168
1168
  constructor() {
1169
1169
  super(...arguments);
1170
- i(this, "priority", 80);
1171
- i(this, "incompatibleTokens", ["a", "b", "t", "T"]);
1170
+ o(this, "priority", 80);
1171
+ o(this, "incompatibleTokens", ["a", "b", "t", "T"]);
1172
1172
  }
1173
1173
  parse(e, r, t) {
1174
1174
  switch (r) {
@@ -1202,14 +1202,14 @@ class It extends f {
1202
1202
  }
1203
1203
  }
1204
1204
  set(e, r, t) {
1205
- return e.setHours(oe(t), 0, 0, 0), e;
1205
+ return e.setHours(ie(t), 0, 0, 0), e;
1206
1206
  }
1207
1207
  }
1208
- class Ot extends f {
1208
+ class qt extends f {
1209
1209
  constructor() {
1210
1210
  super(...arguments);
1211
- i(this, "priority", 70);
1212
- i(this, "incompatibleTokens", ["H", "K", "k", "t", "T"]);
1211
+ o(this, "priority", 70);
1212
+ o(this, "incompatibleTokens", ["H", "K", "k", "t", "T"]);
1213
1213
  }
1214
1214
  parse(e, r, t) {
1215
1215
  switch (r) {
@@ -1225,15 +1225,15 @@ class Ot extends f {
1225
1225
  return r >= 1 && r <= 12;
1226
1226
  }
1227
1227
  set(e, r, t) {
1228
- const o = e.getHours() >= 12;
1229
- return o && t < 12 ? e.setHours(t + 12, 0, 0, 0) : !o && t === 12 ? e.setHours(0, 0, 0, 0) : e.setHours(t, 0, 0, 0), e;
1228
+ const i = e.getHours() >= 12;
1229
+ return i && t < 12 ? e.setHours(t + 12, 0, 0, 0) : !i && t === 12 ? e.setHours(0, 0, 0, 0) : e.setHours(t, 0, 0, 0), e;
1230
1230
  }
1231
1231
  }
1232
- class qt extends f {
1232
+ class Nt extends f {
1233
1233
  constructor() {
1234
1234
  super(...arguments);
1235
- i(this, "priority", 70);
1236
- i(this, "incompatibleTokens", ["a", "b", "h", "K", "k", "t", "T"]);
1235
+ o(this, "priority", 70);
1236
+ o(this, "incompatibleTokens", ["a", "b", "h", "K", "k", "t", "T"]);
1237
1237
  }
1238
1238
  parse(e, r, t) {
1239
1239
  switch (r) {
@@ -1252,11 +1252,11 @@ class qt extends f {
1252
1252
  return e.setHours(t, 0, 0, 0), e;
1253
1253
  }
1254
1254
  }
1255
- class Nt extends f {
1255
+ class vt extends f {
1256
1256
  constructor() {
1257
1257
  super(...arguments);
1258
- i(this, "priority", 70);
1259
- i(this, "incompatibleTokens", ["h", "H", "k", "t", "T"]);
1258
+ o(this, "priority", 70);
1259
+ o(this, "incompatibleTokens", ["h", "H", "k", "t", "T"]);
1260
1260
  }
1261
1261
  parse(e, r, t) {
1262
1262
  switch (r) {
@@ -1275,11 +1275,11 @@ class Nt extends f {
1275
1275
  return e.getHours() >= 12 && t < 12 ? e.setHours(t + 12, 0, 0, 0) : e.setHours(t, 0, 0, 0), e;
1276
1276
  }
1277
1277
  }
1278
- class zt extends f {
1278
+ class Lt extends f {
1279
1279
  constructor() {
1280
1280
  super(...arguments);
1281
- i(this, "priority", 70);
1282
- i(this, "incompatibleTokens", ["a", "b", "h", "H", "K", "t", "T"]);
1281
+ o(this, "priority", 70);
1282
+ o(this, "incompatibleTokens", ["a", "b", "h", "H", "K", "t", "T"]);
1283
1283
  }
1284
1284
  parse(e, r, t) {
1285
1285
  switch (r) {
@@ -1295,15 +1295,15 @@ class zt extends f {
1295
1295
  return r >= 1 && r <= 24;
1296
1296
  }
1297
1297
  set(e, r, t) {
1298
- const o = t <= 24 ? t % 24 : t;
1299
- return e.setHours(o, 0, 0, 0), e;
1298
+ const i = t <= 24 ? t % 24 : t;
1299
+ return e.setHours(i, 0, 0, 0), e;
1300
1300
  }
1301
1301
  }
1302
- class Lt extends f {
1302
+ class Rt extends f {
1303
1303
  constructor() {
1304
1304
  super(...arguments);
1305
- i(this, "priority", 60);
1306
- i(this, "incompatibleTokens", ["t", "T"]);
1305
+ o(this, "priority", 60);
1306
+ o(this, "incompatibleTokens", ["t", "T"]);
1307
1307
  }
1308
1308
  parse(e, r, t) {
1309
1309
  switch (r) {
@@ -1322,11 +1322,11 @@ class Lt extends f {
1322
1322
  return e.setMinutes(t, 0, 0), e;
1323
1323
  }
1324
1324
  }
1325
- class Rt extends f {
1325
+ class Qt extends f {
1326
1326
  constructor() {
1327
1327
  super(...arguments);
1328
- i(this, "priority", 50);
1329
- i(this, "incompatibleTokens", ["t", "T"]);
1328
+ o(this, "priority", 50);
1329
+ o(this, "incompatibleTokens", ["t", "T"]);
1330
1330
  }
1331
1331
  parse(e, r, t) {
1332
1332
  switch (r) {
@@ -1345,15 +1345,15 @@ class Rt extends f {
1345
1345
  return e.setSeconds(t, 0), e;
1346
1346
  }
1347
1347
  }
1348
- class Qt extends f {
1348
+ class zt extends f {
1349
1349
  constructor() {
1350
1350
  super(...arguments);
1351
- i(this, "priority", 30);
1352
- i(this, "incompatibleTokens", ["t", "T"]);
1351
+ o(this, "priority", 30);
1352
+ o(this, "incompatibleTokens", ["t", "T"]);
1353
1353
  }
1354
1354
  parse(e, r) {
1355
- const t = (o) => Math.trunc(o * Math.pow(10, -r.length + 3));
1356
- return m(x(r.length, e), t);
1355
+ const t = (i) => Math.trunc(i * Math.pow(10, -r.length + 3));
1356
+ return g(x(r.length, e), t);
1357
1357
  }
1358
1358
  set(e, r, t) {
1359
1359
  return e.setMilliseconds(t), e;
@@ -1362,82 +1362,82 @@ class Qt extends f {
1362
1362
  class At extends f {
1363
1363
  constructor() {
1364
1364
  super(...arguments);
1365
- i(this, "priority", 10);
1366
- i(this, "incompatibleTokens", ["t", "T", "x"]);
1365
+ o(this, "priority", 10);
1366
+ o(this, "incompatibleTokens", ["t", "T", "x"]);
1367
1367
  }
1368
1368
  parse(e, r) {
1369
1369
  switch (r) {
1370
1370
  case "X":
1371
- return N(
1372
- q.basicOptionalMinutes,
1371
+ return v(
1372
+ N.basicOptionalMinutes,
1373
1373
  e
1374
1374
  );
1375
1375
  case "XX":
1376
- return N(q.basic, e);
1376
+ return v(N.basic, e);
1377
1377
  case "XXXX":
1378
- return N(
1379
- q.basicOptionalSeconds,
1378
+ return v(
1379
+ N.basicOptionalSeconds,
1380
1380
  e
1381
1381
  );
1382
1382
  case "XXXXX":
1383
- return N(
1384
- q.extendedOptionalSeconds,
1383
+ return v(
1384
+ N.extendedOptionalSeconds,
1385
1385
  e
1386
1386
  );
1387
1387
  case "XXX":
1388
1388
  default:
1389
- return N(q.extended, e);
1389
+ return v(N.extended, e);
1390
1390
  }
1391
1391
  }
1392
1392
  set(e, r, t) {
1393
1393
  return r.timestampIsSet ? e : H(
1394
1394
  e,
1395
- e.getTime() - _e(e) - t
1395
+ e.getTime() - me(e) - t
1396
1396
  );
1397
1397
  }
1398
1398
  }
1399
1399
  class Bt extends f {
1400
1400
  constructor() {
1401
1401
  super(...arguments);
1402
- i(this, "priority", 10);
1403
- i(this, "incompatibleTokens", ["t", "T", "X"]);
1402
+ o(this, "priority", 10);
1403
+ o(this, "incompatibleTokens", ["t", "T", "X"]);
1404
1404
  }
1405
1405
  parse(e, r) {
1406
1406
  switch (r) {
1407
1407
  case "x":
1408
- return N(
1409
- q.basicOptionalMinutes,
1408
+ return v(
1409
+ N.basicOptionalMinutes,
1410
1410
  e
1411
1411
  );
1412
1412
  case "xx":
1413
- return N(q.basic, e);
1413
+ return v(N.basic, e);
1414
1414
  case "xxxx":
1415
- return N(
1416
- q.basicOptionalSeconds,
1415
+ return v(
1416
+ N.basicOptionalSeconds,
1417
1417
  e
1418
1418
  );
1419
1419
  case "xxxxx":
1420
- return N(
1421
- q.extendedOptionalSeconds,
1420
+ return v(
1421
+ N.extendedOptionalSeconds,
1422
1422
  e
1423
1423
  );
1424
1424
  case "xxx":
1425
1425
  default:
1426
- return N(q.extended, e);
1426
+ return v(N.extended, e);
1427
1427
  }
1428
1428
  }
1429
1429
  set(e, r, t) {
1430
1430
  return r.timestampIsSet ? e : H(
1431
1431
  e,
1432
- e.getTime() - _e(e) - t
1432
+ e.getTime() - me(e) - t
1433
1433
  );
1434
1434
  }
1435
1435
  }
1436
1436
  class Wt extends f {
1437
1437
  constructor() {
1438
1438
  super(...arguments);
1439
- i(this, "priority", 40);
1440
- i(this, "incompatibleTokens", "*");
1439
+ o(this, "priority", 40);
1440
+ o(this, "incompatibleTokens", "*");
1441
1441
  }
1442
1442
  parse(e) {
1443
1443
  return De(e);
@@ -1449,8 +1449,8 @@ class Wt extends f {
1449
1449
  class Gt extends f {
1450
1450
  constructor() {
1451
1451
  super(...arguments);
1452
- i(this, "priority", 20);
1453
- i(this, "incompatibleTokens", "*");
1452
+ o(this, "priority", 20);
1453
+ o(this, "incompatibleTokens", "*");
1454
1454
  }
1455
1455
  parse(e) {
1456
1456
  return De(e);
@@ -1470,23 +1470,23 @@ const $t = {
1470
1470
  M: new pt(),
1471
1471
  L: new yt(),
1472
1472
  w: new xt(),
1473
- I: new mt(),
1474
- d: new gt(),
1473
+ I: new gt(),
1474
+ d: new kt(),
1475
1475
  D: new Dt(),
1476
1476
  E: new Mt(),
1477
1477
  e: new Pt(),
1478
1478
  c: new Ht(),
1479
- i: new Tt(),
1480
- a: new Yt(),
1481
- b: new Et(),
1482
- B: new It(),
1483
- h: new Ot(),
1484
- H: new qt(),
1485
- K: new Nt(),
1486
- k: new zt(),
1487
- m: new Lt(),
1488
- s: new Rt(),
1489
- S: new Qt(),
1479
+ i: new Yt(),
1480
+ a: new Et(),
1481
+ b: new It(),
1482
+ B: new Ot(),
1483
+ h: new qt(),
1484
+ H: new Nt(),
1485
+ K: new vt(),
1486
+ k: new Lt(),
1487
+ m: new Rt(),
1488
+ s: new Qt(),
1489
+ S: new zt(),
1490
1490
  X: new At(),
1491
1491
  x: new Bt(),
1492
1492
  t: new Wt(),
@@ -1494,18 +1494,18 @@ const $t = {
1494
1494
  }, Xt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, jt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Kt = /^'([^]*?)'?$/, Zt = /''/g, Vt = /\S/, Ft = /[a-zA-Z]/;
1495
1495
  function He(s, n, e, r) {
1496
1496
  var Z, M, D, J;
1497
- const t = tt(), o = t.locale ?? Ve, u = t.firstWeekContainsDate ?? ((M = (Z = t.locale) == null ? void 0 : Z.options) == null ? void 0 : M.firstWeekContainsDate) ?? 1, p = t.weekStartsOn ?? ((J = (D = t.locale) == null ? void 0 : D.options) == null ? void 0 : J.weekStartsOn) ?? 0;
1497
+ const t = tt(), i = t.locale ?? Ve, u = t.firstWeekContainsDate ?? ((M = (Z = t.locale) == null ? void 0 : Z.options) == null ? void 0 : M.firstWeekContainsDate) ?? 1, p = t.weekStartsOn ?? ((J = (D = t.locale) == null ? void 0 : D.options) == null ? void 0 : J.weekStartsOn) ?? 0;
1498
1498
  if (n === "")
1499
1499
  return s === "" ? K(e) : H(e, NaN);
1500
- const v = {
1500
+ const T = {
1501
1501
  firstWeekContainsDate: u,
1502
1502
  weekStartsOn: p,
1503
- locale: o
1504
- }, _ = [new it()], l = n.match(jt).map((a) => {
1503
+ locale: i
1504
+ }, m = [new ot()], l = n.match(jt).map((a) => {
1505
1505
  const w = a[0];
1506
1506
  if (w in fe) {
1507
1507
  const h = fe[w];
1508
- return h(a, o.formatLong);
1508
+ return h(a, i.formatLong);
1509
1509
  }
1510
1510
  return a;
1511
1511
  }).join("").match(Xt), c = [];
@@ -1513,10 +1513,10 @@ function He(s, n, e, r) {
1513
1513
  Fe(a) && we(a, n, s), Ue(a) && we(a, n, s);
1514
1514
  const w = a[0], h = $t[w];
1515
1515
  if (h) {
1516
- const { incompatibleTokens: O } = h;
1517
- if (Array.isArray(O)) {
1516
+ const { incompatibleTokens: q } = h;
1517
+ if (Array.isArray(q)) {
1518
1518
  const C = c.find(
1519
- (B) => O.includes(B.token) || B.token === w
1519
+ (B) => q.includes(B.token) || B.token === w
1520
1520
  );
1521
1521
  if (C)
1522
1522
  throw new RangeError(
@@ -1530,12 +1530,12 @@ function He(s, n, e, r) {
1530
1530
  const A = h.run(
1531
1531
  s,
1532
1532
  a,
1533
- o.match,
1534
- v
1533
+ i.match,
1534
+ T
1535
1535
  );
1536
1536
  if (!A)
1537
1537
  return H(e, NaN);
1538
- _.push(A.setter), s = A.rest;
1538
+ m.push(A.setter), s = A.rest;
1539
1539
  } else {
1540
1540
  if (w.match(Ft))
1541
1541
  throw new RangeError(
@@ -1549,25 +1549,25 @@ function He(s, n, e, r) {
1549
1549
  }
1550
1550
  if (s.length > 0 && Vt.test(s))
1551
1551
  return H(e, NaN);
1552
- const Q = _.map((a) => a.priority).sort((a, w) => w - a).filter((a, w, h) => h.indexOf(a) === w).map(
1553
- (a) => _.filter((w) => w.priority === a).sort((w, h) => h.subPriority - w.subPriority)
1552
+ const z = m.map((a) => a.priority).sort((a, w) => w - a).filter((a, w, h) => h.indexOf(a) === w).map(
1553
+ (a) => m.filter((w) => w.priority === a).sort((w, h) => h.subPriority - w.subPriority)
1554
1554
  ).map((a) => a[0]);
1555
- let Y = K(e);
1556
- if (isNaN(Y.getTime()))
1555
+ let E = K(e);
1556
+ if (isNaN(E.getTime()))
1557
1557
  return H(e, NaN);
1558
1558
  const X = {};
1559
- for (const a of Q) {
1560
- if (!a.validate(Y, v))
1559
+ for (const a of z) {
1560
+ if (!a.validate(E, T))
1561
1561
  return H(e, NaN);
1562
- const w = a.set(Y, X, v);
1563
- Array.isArray(w) ? (Y = w[0], Object.assign(X, w[1])) : Y = w;
1562
+ const w = a.set(E, X, T);
1563
+ Array.isArray(w) ? (E = w[0], Object.assign(X, w[1])) : E = w;
1564
1564
  }
1565
- return H(e, Y);
1565
+ return H(e, E);
1566
1566
  }
1567
1567
  function Ut(s) {
1568
1568
  return s.match(Kt)[1].replace(Zt, "'");
1569
1569
  }
1570
- const R = (s) => (s ?? "").replace(/\D/g, ""), Jt = (s) => s === "HH:mm:ss" ? 6 : 4, ae = (s) => s === "HH:mm:ss" ? [
1570
+ const Q = (s) => (s ?? "").replace(/\D/g, ""), Jt = (s) => s === "HH:mm:ss" ? 6 : 4, ae = (s) => s === "HH:mm:ss" ? [
1571
1571
  { start: 0, end: 2, max: 23 },
1572
1572
  // HH
1573
1573
  { start: 3, end: 5, max: 59 },
@@ -1583,169 +1583,169 @@ const R = (s) => (s ?? "").replace(/\D/g, ""), Jt = (s) => s === "HH:mm:ss" ? 6
1583
1583
  const e = Number(s), r = Number.isFinite(e) ? Math.max(0, Math.min(n, e)) : 0;
1584
1584
  return String(r).padStart(2, "0");
1585
1585
  }, St = (s) => s === "HH:mm:ss" ? "--:--:--" : "--:--", G = (s, n) => {
1586
- const e = R(s), r = Jt(n), t = e.slice(0, r).padEnd(r, "0"), o = t.slice(0, 2), u = t.slice(2, 4), p = n === "HH:mm:ss" ? t.slice(4, 6) : "";
1587
- return n === "HH:mm:ss" ? `${o}:${u}:${p}` : `${o}:${u}`;
1586
+ const e = Q(s), r = Jt(n), t = e.slice(0, r).padEnd(r, "0"), i = t.slice(0, 2), u = t.slice(2, 4), p = n === "HH:mm:ss" ? t.slice(4, 6) : "";
1587
+ return n === "HH:mm:ss" ? `${i}:${u}:${p}` : `${i}:${u}`;
1588
1588
  }, pe = (s, n) => n === "HH:mm:ss" ? s <= 2 ? 0 : s <= 5 ? 1 : 2 : s <= 2 ? 0 : 1, S = (s, n, e, r) => {
1589
- const t = ae(e), o = t[Math.max(0, Math.min(n, t.length - 1))], u = Ct(r, o.max), p = s.split("");
1590
- return p[o.start] = u[0], p[o.start + 1] = u[1], p.join("");
1589
+ const t = ae(e), i = t[Math.max(0, Math.min(n, t.length - 1))], u = Ct(r, i.max), p = s.split("");
1590
+ return p[i.start] = u[0], p[i.start + 1] = u[1], p.join("");
1591
1591
  }, $ = (s, n, e) => {
1592
1592
  const r = ae(e), t = r[Math.max(0, Math.min(n, r.length - 1))];
1593
1593
  s.setSelectionRange(t.start, t.end);
1594
1594
  }, ye = (s, n) => {
1595
1595
  const e = He(s, n, /* @__PURE__ */ new Date(0));
1596
- return ke(e) ? Je(e, n) : null;
1596
+ return _e(e) ? Je(e, n) : null;
1597
1597
  }, he = (s, n) => {
1598
1598
  const e = He(s, n, /* @__PURE__ */ new Date(0));
1599
- return ke(e) ? e.getHours() * 36e5 + e.getMinutes() * 6e4 + e.getSeconds() * 1e3 : null;
1599
+ return _e(e) ? e.getHours() * 36e5 + e.getMinutes() * 6e4 + e.getSeconds() * 1e3 : null;
1600
1600
  }, nr = ({
1601
1601
  sizeStyle: s = "m",
1602
1602
  labelUnit: n,
1603
1603
  status: e = "default",
1604
1604
  childrenLeft: r,
1605
1605
  childrenRight: t,
1606
- round: o,
1606
+ round: i,
1607
1607
  disabled: u,
1608
1608
  defaultValue: p,
1609
- fullWidth: v = !1,
1610
- mode: _ = "default",
1609
+ fullWidth: T = !1,
1610
+ mode: m = "default",
1611
1611
  timeFormat: l = "HH:mm",
1612
1612
  onTimeChange: c,
1613
- placeholder: Q,
1614
- ...Y
1613
+ placeholder: z,
1614
+ ...E
1615
1615
  }) => {
1616
- const [X, Z] = le(!1), [M, D] = le(p || ""), J = U(null), a = U(null), w = U(0), h = U(""), O = U(!1);
1616
+ const [X, Z] = le(!1), [M, D] = le(p || ""), J = U(null), a = U(null), w = U(0), h = U(""), q = U(!1);
1617
1617
  We(() => {
1618
- D(p || ""), O.current = R(p || "").length > 0;
1618
+ D(p || ""), q.current = Q(p || "").length > 0;
1619
1619
  }, [p]);
1620
- const A = _ === "time" && R(M || "").length === 0, C = _ === "time" && A, B = (d) => {
1621
- if (R(d).length === 0) {
1620
+ const A = m === "time" && Q(M || "").length === 0, C = m === "time" && A, B = (d) => {
1621
+ if (Q(d).length === 0) {
1622
1622
  c == null || c(null);
1623
1623
  return;
1624
1624
  }
1625
- const k = ye(d, l);
1626
- if (!k) {
1625
+ const _ = ye(d, l);
1626
+ if (!_) {
1627
1627
  c == null || c(null);
1628
1628
  return;
1629
1629
  }
1630
- c == null || c(he(k, l));
1631
- }, ve = () => {
1632
- Z(!0), _ === "time" && requestAnimationFrame(() => {
1630
+ c == null || c(he(_, l));
1631
+ }, Te = () => {
1632
+ Z(!0), m === "time" && requestAnimationFrame(() => {
1633
1633
  a.current && (w.current = 0, h.current = "", $(a.current, 0, l));
1634
1634
  });
1635
- }, Te = () => {
1636
- if (Z(!1), _ !== "time") return;
1637
- if (!O.current && R(p || "").length === 0) {
1635
+ }, Ye = () => {
1636
+ if (Z(!1), m !== "time") return;
1637
+ if (!q.current && Q(p || "").length === 0) {
1638
1638
  D(""), c == null || c(null), h.current = "";
1639
1639
  return;
1640
1640
  }
1641
- if (R(M || "").length === 0) {
1641
+ if (Q(M || "").length === 0) {
1642
1642
  D(""), c == null || c(null), h.current = "";
1643
1643
  return;
1644
1644
  }
1645
- const d = G(M || "", l), k = ye(d, l);
1646
- if (!k) {
1645
+ const d = G(M || "", l), _ = ye(d, l);
1646
+ if (!_) {
1647
1647
  D(""), c == null || c(null), h.current = "";
1648
1648
  return;
1649
1649
  }
1650
- D(k), c == null || c(he(k, l)), h.current = "";
1651
- }, Ye = (d) => {
1652
- if (_ !== "time") {
1650
+ D(_), c == null || c(he(_, l)), h.current = "";
1651
+ }, Ee = (d) => {
1652
+ if (m !== "time") {
1653
1653
  D(d.target.value);
1654
1654
  return;
1655
1655
  }
1656
- const k = R(d.target.value);
1657
- if (k.length === 0) {
1656
+ const _ = Q(d.target.value);
1657
+ if (_.length === 0) {
1658
1658
  D(""), c == null || c(null);
1659
1659
  return;
1660
1660
  }
1661
- O.current = !0;
1662
- const E = G(k, l);
1663
- D(E), B(E), requestAnimationFrame(() => {
1661
+ q.current = !0;
1662
+ const I = G(_, l);
1663
+ D(I), B(I), requestAnimationFrame(() => {
1664
1664
  a.current && $(a.current, w.current, l);
1665
1665
  });
1666
- }, Ee = (d) => {
1667
- if (_ !== "time") return;
1668
- const k = d.currentTarget, E = k.selectionStart ?? 0, g = pe(E === 2 || E === 5 ? E + 1 : E, l);
1669
- w.current = g, h.current = "", $(k, g, l);
1670
1666
  }, Ie = (d) => {
1671
- if (_ !== "time" || !a.current) return;
1672
- const k = a.current, E = ae(l), g = w.current ?? 0, te = (I) => {
1673
- const T = Math.max(0, Math.min(I, E.length - 1));
1674
- w.current = T, h.current = "", requestAnimationFrame(() => $(k, T, l));
1667
+ if (m !== "time") return;
1668
+ const _ = d.currentTarget, I = _.selectionStart ?? 0, k = pe(I === 2 || I === 5 ? I + 1 : I, l);
1669
+ w.current = k, h.current = "", $(_, k, l);
1670
+ }, Oe = (d) => {
1671
+ if (m !== "time" || !a.current) return;
1672
+ const _ = a.current, I = ae(l), k = w.current ?? 0, te = (O) => {
1673
+ const Y = Math.max(0, Math.min(O, I.length - 1));
1674
+ w.current = Y, h.current = "", requestAnimationFrame(() => $(_, Y, l));
1675
1675
  };
1676
1676
  if (d.key !== "Tab") {
1677
1677
  if (d.key === "ArrowLeft") {
1678
- d.preventDefault(), te(g - 1);
1678
+ d.preventDefault(), te(k - 1);
1679
1679
  return;
1680
1680
  }
1681
1681
  if (d.key === "ArrowRight" || d.key === ":") {
1682
- d.preventDefault(), te(g + 1);
1682
+ d.preventDefault(), te(k + 1);
1683
1683
  return;
1684
1684
  }
1685
1685
  if (A && (d.key === "ArrowUp" || d.key === "ArrowDown")) {
1686
- d.preventDefault(), O.current = !0;
1687
- const I = G("", l), T = d.key === "ArrowUp" ? 1 : -1, z = E[g], L = I.slice(z.start, z.end), j = z.max, W = Number(L), re = ((Number.isFinite(W) ? W + T : 0) + (j + 1)) % (j + 1), se = String(re).padStart(2, "0"), V = S(I, g, l, se);
1688
- D(V), B(V), requestAnimationFrame(() => $(k, g, l));
1686
+ d.preventDefault(), q.current = !0;
1687
+ const O = G("", l), Y = d.key === "ArrowUp" ? 1 : -1, L = I[k], R = O.slice(L.start, L.end), j = L.max, W = Number(R), re = ((Number.isFinite(W) ? W + Y : 0) + (j + 1)) % (j + 1), se = String(re).padStart(2, "0"), V = S(O, k, l, se);
1688
+ D(V), B(V), requestAnimationFrame(() => $(_, k, l));
1689
1689
  return;
1690
1690
  }
1691
1691
  if (d.key === "ArrowUp" || d.key === "ArrowDown") {
1692
- d.preventDefault(), O.current = !0;
1693
- const I = d.key === "ArrowUp" ? 1 : -1, T = G(M || "", l), z = E[g], L = T.slice(z.start, z.end), j = z.max, W = Number(L), re = ((Number.isFinite(W) ? W + I : 0) + (j + 1)) % (j + 1), se = String(re).padStart(2, "0"), V = S(T, g, l, se);
1694
- D(V), B(V), requestAnimationFrame(() => $(k, g, l));
1692
+ d.preventDefault(), q.current = !0;
1693
+ const O = d.key === "ArrowUp" ? 1 : -1, Y = G(M || "", l), L = I[k], R = Y.slice(L.start, L.end), j = L.max, W = Number(R), re = ((Number.isFinite(W) ? W + O : 0) + (j + 1)) % (j + 1), se = String(re).padStart(2, "0"), V = S(Y, k, l, se);
1694
+ D(V), B(V), requestAnimationFrame(() => $(_, k, l));
1695
1695
  return;
1696
1696
  }
1697
1697
  if (d.key === "Backspace" || d.key === "Delete") {
1698
- if (d.preventDefault(), O.current = !0, R(M || "").length === 0) {
1698
+ if (d.preventDefault(), q.current = !0, Q(M || "").length === 0) {
1699
1699
  D(""), c == null || c(null), h.current = "";
1700
1700
  return;
1701
1701
  }
1702
- const I = G(M || "", l), T = S(I, g, l, "00");
1703
- D(T), B(T), h.current = "", requestAnimationFrame(() => $(k, g, l));
1702
+ const O = G(M || "", l), Y = S(O, k, l, "00");
1703
+ D(Y), B(Y), h.current = "", requestAnimationFrame(() => $(_, k, l));
1704
1704
  return;
1705
1705
  }
1706
1706
  if (/^\d$/.test(d.key)) {
1707
- d.preventDefault(), O.current = !0;
1708
- const I = R(M || "").length === 0 ? G("", l) : G(M || "", l), T = E[g], z = I.slice(T.start, T.end), L = (h.current + d.key).slice(0, 2);
1709
- h.current = L;
1710
- const j = L.length === 1 ? `${L}${z[1] ?? "0"}` : L, W = S(I, g, l, j);
1711
- D(W), B(W), L.length === 2 ? te(g + 1) : requestAnimationFrame(() => $(k, g, l));
1707
+ d.preventDefault(), q.current = !0;
1708
+ const O = Q(M || "").length === 0 ? G("", l) : G(M || "", l), Y = I[k], L = O.slice(Y.start, Y.end), R = (h.current + d.key).slice(0, 2);
1709
+ h.current = R;
1710
+ const j = R.length === 1 ? `${R}${L[1] ?? "0"}` : R, W = S(O, k, l, j);
1711
+ D(W), B(W), R.length === 2 ? te(k + 1) : requestAnimationFrame(() => $(_, k, l));
1712
1712
  return;
1713
1713
  }
1714
1714
  d.key.length === 1 && d.preventDefault();
1715
1715
  }
1716
- }, Oe = () => {
1716
+ }, qe = () => {
1717
1717
  a.current && a.current.focus();
1718
- }, qe = [
1718
+ }, Ne = [
1719
1719
  P["input-style"],
1720
1720
  P[`input-style-size-${s}`],
1721
- o && P["input-style-radius"],
1721
+ i && P["input-style-radius"],
1722
1722
  P.flexHorizontalBetween,
1723
- v && P.fullWidth,
1724
- _ === "time" && P["input-time"],
1723
+ T && P.fullWidth,
1724
+ m === "time" && P["input-time"],
1725
1725
  C && P["input-time-placeholder"]
1726
- ].filter(Boolean).join(" "), Ne = [
1726
+ ].filter(Boolean).join(" "), ve = [
1727
1727
  X && P["input-style-focused"],
1728
1728
  u && P["input-style-disabled"],
1729
1729
  e === "secondary" && P["input-style-secondary"],
1730
1730
  e === "ghost" && P["input-style-ghost"]
1731
- ].filter(Boolean).join(" "), ze = () => {
1731
+ ].filter(Boolean).join(" "), Le = () => {
1732
1732
  switch (e) {
1733
1733
  case "error":
1734
1734
  return P["input-style-error"];
1735
1735
  default:
1736
- return Ne;
1736
+ return ve;
1737
1737
  }
1738
- }, Le = de(() => {
1739
- if (Q !== void 0) return Q;
1740
- }, [Q]), Re = de(() => _ !== "time" ? M : A ? St(l) : G(M || "", l), [M, _, l, A]);
1738
+ }, Re = de(() => {
1739
+ if (z !== void 0) return z;
1740
+ }, [z]), Qe = de(() => m !== "time" ? M : A ? St(l) : G(M || "", l), [M, m, l, A]);
1741
1741
  return /* @__PURE__ */ ue(
1742
1742
  "div",
1743
1743
  {
1744
1744
  ref: J,
1745
- className: `${qe} ${ze()}`,
1746
- onFocus: ve,
1747
- onBlur: Te,
1748
- onClick: Oe,
1745
+ className: `${Ne} ${Le()}`,
1746
+ onFocus: Te,
1747
+ onBlur: Ye,
1748
+ onClick: qe,
1749
1749
  children: [
1750
1750
  r && /* @__PURE__ */ F(ce, { children: r }),
1751
1751
  /* @__PURE__ */ F("div", { className: P["input-container"], children: /* @__PURE__ */ F(
@@ -1753,14 +1753,14 @@ const R = (s) => (s ?? "").replace(/\D/g, ""), Jt = (s) => s === "HH:mm:ss" ? 6
1753
1753
  {
1754
1754
  autoCorrect: "off",
1755
1755
  disabled: u,
1756
- value: Re,
1757
- onChange: Ye,
1758
- onClick: Ee,
1759
- onKeyDown: Ie,
1756
+ value: Qe,
1757
+ onChange: Ee,
1758
+ onClick: Ie,
1759
+ onKeyDown: Oe,
1760
1760
  ref: a,
1761
- inputMode: _ === "time" ? "numeric" : Y.inputMode,
1762
- placeholder: Le,
1763
- ...Y
1761
+ inputMode: m === "time" ? "numeric" : E.inputMode,
1762
+ placeholder: Re,
1763
+ ...E
1764
1764
  }
1765
1765
  ) }),
1766
1766
  /* @__PURE__ */ ue(ce, { children: [