@ctlyst.id/utils 1.1.2 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,37 +1,37 @@
1
- import { useRef as Ae, useEffect as re, useCallback as we, useState as ie, useLayoutEffect as Tt, useId as Dt } from "react";
2
- const Pt = (o) => o != null && typeof o == "object" && "nodeType" in o && o.nodeType === Node.ELEMENT_NODE, at = (o) => Pt(o) ? o.ownerDocument ?? document : document, Oe = (o, a) => {
1
+ import { useRef as Ae, useEffect as ae, useCallback as pe, useState as ue, useLayoutEffect as Tt, useId as Dt } from "react";
2
+ const kt = (o) => o != null && typeof o == "object" && "nodeType" in o && o.nodeType === Node.ELEMENT_NODE, nt = (o) => kt(o) ? o.ownerDocument ?? document : document, Oe = (o, n) => {
3
3
  var r;
4
4
  const t = o.target;
5
- return o.button > 0 || t && !at(t).contains(t) ? !1 : !((r = a.current) != null && r.contains(t));
6
- }, Mt = () => !!(typeof window < "u" && window.document && window.document.createElement), kt = Mt(), Ct = (o, a = []) => {
5
+ return o.button > 0 || t && !nt(t).contains(t) ? !1 : !((r = n.current) != null && r.contains(t));
6
+ }, Pt = () => !!(typeof window < "u" && window.document && window.document.createElement), Mt = Pt(), Ct = (o, n = []) => {
7
7
  const t = Ae(o);
8
- return re(() => {
8
+ return ae(() => {
9
9
  t.current = o;
10
- }), we((...r) => {
10
+ }), pe((...r) => {
11
11
  var e;
12
12
  return (e = t.current) == null ? void 0 : e.call(t, ...r);
13
- }, a);
13
+ }, n);
14
14
  }, $e = Ct;
15
15
  var xt = function() {
16
16
  var o = document.getSelection();
17
17
  if (!o.rangeCount)
18
18
  return function() {
19
19
  };
20
- for (var a = document.activeElement, t = [], r = 0; r < o.rangeCount; r++)
20
+ for (var n = document.activeElement, t = [], r = 0; r < o.rangeCount; r++)
21
21
  t.push(o.getRangeAt(r));
22
- switch (a.tagName.toUpperCase()) {
22
+ switch (n.tagName.toUpperCase()) {
23
23
  case "INPUT":
24
24
  case "TEXTAREA":
25
- a.blur();
25
+ n.blur();
26
26
  break;
27
27
  default:
28
- a = null;
28
+ n = null;
29
29
  break;
30
30
  }
31
31
  return o.removeAllRanges(), function() {
32
32
  o.type === "Caret" && o.removeAllRanges(), o.rangeCount || t.forEach(function(e) {
33
33
  o.addRange(e);
34
- }), a && a.focus();
34
+ }), n && n.focus();
35
35
  };
36
36
  }, Ot = xt, Ve = {
37
37
  "text/plain": "Text",
@@ -39,85 +39,85 @@ var xt = function() {
39
39
  default: "Text"
40
40
  }, Et = "Copy to clipboard: #{key}, Enter";
41
41
  function Ut(o) {
42
- var a = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C";
43
- return o.replace(/#{\s*key\s*}/g, a);
42
+ var n = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C";
43
+ return o.replace(/#{\s*key\s*}/g, n);
44
44
  }
45
- function $t(o, a) {
46
- var t, r, e, i, n, u, s = !1;
47
- a || (a = {}), t = a.debug || !1;
45
+ function $t(o, n) {
46
+ var t, r, e, i, a, u, s = !1;
47
+ n || (n = {}), t = n.debug || !1;
48
48
  try {
49
- e = Ot(), i = document.createRange(), n = document.getSelection(), u = document.createElement("span"), u.textContent = o, u.ariaHidden = "true", u.style.all = "unset", u.style.position = "fixed", u.style.top = 0, u.style.clip = "rect(0, 0, 0, 0)", u.style.whiteSpace = "pre", u.style.webkitUserSelect = "text", u.style.MozUserSelect = "text", u.style.msUserSelect = "text", u.style.userSelect = "text", u.addEventListener("copy", function(d) {
50
- if (d.stopPropagation(), a.format)
51
- if (d.preventDefault(), typeof d.clipboardData > "u") {
49
+ e = Ot(), i = document.createRange(), a = document.getSelection(), u = document.createElement("span"), u.textContent = o, u.ariaHidden = "true", u.style.all = "unset", u.style.position = "fixed", u.style.top = 0, u.style.clip = "rect(0, 0, 0, 0)", u.style.whiteSpace = "pre", u.style.webkitUserSelect = "text", u.style.MozUserSelect = "text", u.style.msUserSelect = "text", u.style.userSelect = "text", u.addEventListener("copy", function(c) {
50
+ if (c.stopPropagation(), n.format)
51
+ if (c.preventDefault(), typeof c.clipboardData > "u") {
52
52
  t && console.warn("unable to use e.clipboardData"), t && console.warn("trying IE specific stuff"), window.clipboardData.clearData();
53
- var m = Ve[a.format] || Ve.default;
54
- window.clipboardData.setData(m, o);
53
+ var f = Ve[n.format] || Ve.default;
54
+ window.clipboardData.setData(f, o);
55
55
  } else
56
- d.clipboardData.clearData(), d.clipboardData.setData(a.format, o);
57
- a.onCopy && (d.preventDefault(), a.onCopy(d.clipboardData));
58
- }), document.body.appendChild(u), i.selectNodeContents(u), n.addRange(i);
56
+ c.clipboardData.clearData(), c.clipboardData.setData(n.format, o);
57
+ n.onCopy && (c.preventDefault(), n.onCopy(c.clipboardData));
58
+ }), document.body.appendChild(u), i.selectNodeContents(u), a.addRange(i);
59
59
  var l = document.execCommand("copy");
60
60
  if (!l)
61
61
  throw new Error("copy command was unsuccessful");
62
62
  s = !0;
63
- } catch (d) {
64
- t && console.error("unable to copy using execCommand: ", d), t && console.warn("trying IE specific stuff");
63
+ } catch (c) {
64
+ t && console.error("unable to copy using execCommand: ", c), t && console.warn("trying IE specific stuff");
65
65
  try {
66
- window.clipboardData.setData(a.format || "text", o), a.onCopy && a.onCopy(window.clipboardData), s = !0;
67
- } catch (m) {
68
- t && console.error("unable to copy using clipboardData: ", m), t && console.error("falling back to prompt"), r = Ut("message" in a ? a.message : Et), window.prompt(r, o);
66
+ window.clipboardData.setData(n.format || "text", o), n.onCopy && n.onCopy(window.clipboardData), s = !0;
67
+ } catch (f) {
68
+ t && console.error("unable to copy using clipboardData: ", f), t && console.error("falling back to prompt"), r = Ut("message" in n ? n.message : Et), window.prompt(r, o);
69
69
  }
70
70
  } finally {
71
- n && (typeof n.removeRange == "function" ? n.removeRange(i) : n.removeAllRanges()), u && document.body.removeChild(u), e();
71
+ a && (typeof a.removeRange == "function" ? a.removeRange(i) : a.removeAllRanges()), u && document.body.removeChild(u), e();
72
72
  }
73
73
  return s;
74
74
  }
75
75
  var Wt = $t;
76
- const Yt = ({ value: o = "", optionsOrTimeout: a = {} } = {}) => {
77
- const [t, r] = ie(!1), [e, i] = ie(o);
78
- re(() => i(o), [o]);
79
- const { timeout: n = 1500, ...u } = typeof a == "number" ? { timeout: a } : a, s = we(() => {
76
+ const Nt = ({ value: o = "", optionsOrTimeout: n = {} } = {}) => {
77
+ const [t, r] = ue(!1), [e, i] = ue(o);
78
+ ae(() => i(o), [o]);
79
+ const { timeout: a = 1500, ...u } = typeof n == "number" ? { timeout: n } : n, s = pe(() => {
80
80
  const l = Wt(e, u);
81
81
  r(l);
82
82
  }, [e, u]);
83
- return re(() => {
83
+ return ae(() => {
84
84
  let l = null;
85
85
  return t && (l = window.setTimeout(() => {
86
86
  r(!1);
87
- }, n)), () => {
87
+ }, a)), () => {
88
88
  l && window.clearTimeout(l);
89
89
  };
90
- }, [n, t]), {
90
+ }, [a, t]), {
91
91
  value: e,
92
92
  setValue: i,
93
93
  onCopy: s,
94
94
  hasCopied: t
95
95
  };
96
- }, In = Yt, Nt = ({ value: o, delay: a = 500 }) => {
97
- const [t, r] = ie(o);
98
- return re(() => {
99
- const e = setTimeout(() => r(o), a || 500);
96
+ }, Fa = Nt, Yt = ({ value: o, delay: n = 500 }) => {
97
+ const [t, r] = ue(o);
98
+ return ae(() => {
99
+ const e = setTimeout(() => r(o), n || 500);
100
100
  return () => {
101
101
  clearTimeout(e);
102
102
  };
103
- }, [o, a]), t;
104
- }, qn = Nt;
103
+ }, [o, n]), t;
104
+ }, Ba = Yt;
105
105
  var _t = process.env.NODE_ENV === "production", Ee = "Invariant failed";
106
- function Xe(o, a) {
106
+ function Xe(o, n) {
107
107
  if (!o) {
108
108
  if (_t)
109
109
  throw new Error(Ee);
110
- var t = typeof a == "function" ? a() : a, r = t ? "".concat(Ee, ": ").concat(t) : Ee;
110
+ var t = typeof n == "function" ? n() : n, r = t ? "".concat(Ee, ": ").concat(t) : Ee;
111
111
  throw new Error(r);
112
112
  }
113
113
  }
114
- var Te = function(a) {
115
- var t = a.top, r = a.right, e = a.bottom, i = a.left, n = r - i, u = e - t, s = {
114
+ var Te = function(n) {
115
+ var t = n.top, r = n.right, e = n.bottom, i = n.left, a = r - i, u = e - t, s = {
116
116
  top: t,
117
117
  right: r,
118
118
  bottom: e,
119
119
  left: i,
120
- width: n,
120
+ width: a,
121
121
  height: u,
122
122
  x: i,
123
123
  y: t,
@@ -127,338 +127,379 @@ var Te = function(a) {
127
127
  }
128
128
  };
129
129
  return s;
130
- }, At = function(a, t) {
130
+ }, At = function(n, t) {
131
131
  return {
132
- top: a.top - t.top,
133
- left: a.left - t.left,
134
- bottom: a.bottom + t.bottom,
135
- right: a.right + t.right
132
+ top: n.top - t.top,
133
+ left: n.left - t.left,
134
+ bottom: n.bottom + t.bottom,
135
+ right: n.right + t.right
136
136
  };
137
- }, Ge = function(a, t) {
137
+ }, Ge = function(n, t) {
138
138
  return {
139
- top: a.top + t.top,
140
- left: a.left + t.left,
141
- bottom: a.bottom - t.bottom,
142
- right: a.right - t.right
139
+ top: n.top + t.top,
140
+ left: n.left + t.left,
141
+ bottom: n.bottom - t.bottom,
142
+ right: n.right - t.right
143
143
  };
144
144
  }, Ue = {
145
145
  top: 0,
146
146
  right: 0,
147
147
  bottom: 0,
148
148
  left: 0
149
- }, Lt = function(a) {
150
- var t = a.borderBox, r = a.margin, e = r === void 0 ? Ue : r, i = a.border, n = i === void 0 ? Ue : i, u = a.padding, s = u === void 0 ? Ue : u, l = Te(At(t, e)), d = Te(Ge(t, n)), m = Te(Ge(d, s));
149
+ }, Lt = function(n) {
150
+ var t = n.borderBox, r = n.margin, e = r === void 0 ? Ue : r, i = n.border, a = i === void 0 ? Ue : i, u = n.padding, s = u === void 0 ? Ue : u, l = Te(At(t, e)), c = Te(Ge(t, a)), f = Te(Ge(c, s));
151
151
  return {
152
152
  marginBox: l,
153
153
  borderBox: Te(t),
154
- paddingBox: d,
155
- contentBox: m,
154
+ paddingBox: c,
155
+ contentBox: f,
156
156
  margin: e,
157
- border: n,
157
+ border: a,
158
158
  padding: s
159
159
  };
160
- }, q = function(a) {
161
- var t = a.slice(0, -2), r = a.slice(-2);
160
+ }, j = function(n) {
161
+ var t = n.slice(0, -2), r = n.slice(-2);
162
162
  if (r !== "px")
163
163
  return 0;
164
164
  var e = Number(t);
165
- return isNaN(e) && (process.env.NODE_ENV !== "production" ? Xe(!1, "Could not parse value [raw: " + a + ", without suffix: " + t + "]") : Xe(!1)), e;
166
- }, St = function(a, t) {
165
+ return isNaN(e) && (process.env.NODE_ENV !== "production" ? Xe(!1, "Could not parse value [raw: " + n + ", without suffix: " + t + "]") : Xe(!1)), e;
166
+ }, St = function(n, t) {
167
167
  var r = {
168
- top: q(t.marginTop),
169
- right: q(t.marginRight),
170
- bottom: q(t.marginBottom),
171
- left: q(t.marginLeft)
168
+ top: j(t.marginTop),
169
+ right: j(t.marginRight),
170
+ bottom: j(t.marginBottom),
171
+ left: j(t.marginLeft)
172
172
  }, e = {
173
- top: q(t.paddingTop),
174
- right: q(t.paddingRight),
175
- bottom: q(t.paddingBottom),
176
- left: q(t.paddingLeft)
173
+ top: j(t.paddingTop),
174
+ right: j(t.paddingRight),
175
+ bottom: j(t.paddingBottom),
176
+ left: j(t.paddingLeft)
177
177
  }, i = {
178
- top: q(t.borderTopWidth),
179
- right: q(t.borderRightWidth),
180
- bottom: q(t.borderBottomWidth),
181
- left: q(t.borderLeftWidth)
178
+ top: j(t.borderTopWidth),
179
+ right: j(t.borderRightWidth),
180
+ bottom: j(t.borderBottomWidth),
181
+ left: j(t.borderLeftWidth)
182
182
  };
183
183
  return Lt({
184
- borderBox: a,
184
+ borderBox: n,
185
185
  margin: r,
186
186
  padding: e,
187
187
  border: i
188
188
  });
189
- }, Ht = function(a) {
190
- var t = a.getBoundingClientRect(), r = window.getComputedStyle(a);
189
+ }, It = function(n) {
190
+ var t = n.getBoundingClientRect(), r = window.getComputedStyle(n);
191
191
  return St(t, r);
192
192
  };
193
- const Rt = kt ? Tt : re, It = Rt, qt = (o, a) => {
194
- const [t, r] = ie(null), e = Ae();
195
- return It(() => {
193
+ const Ht = Mt ? Tt : ae, Rt = Ht, qt = (o, n) => {
194
+ const [t, r] = ue(null), e = Ae();
195
+ return Rt(() => {
196
196
  const i = () => {
197
- const n = o.current;
198
- n && (e.current = requestAnimationFrame(() => {
199
- const u = Ht(n);
197
+ const a = o.current;
198
+ a && (e.current = requestAnimationFrame(() => {
199
+ const u = It(a);
200
200
  r(u);
201
201
  }));
202
202
  };
203
- return i(), a && (window.addEventListener("resize", i), window.addEventListener("scroll", i)), () => {
204
- a && (window.removeEventListener("resize", i), window.removeEventListener("scroll", i)), e.current && cancelAnimationFrame(e.current);
203
+ return i(), n && (window.addEventListener("resize", i), window.addEventListener("scroll", i)), () => {
204
+ n && (window.removeEventListener("resize", i), window.removeEventListener("scroll", i)), e.current && cancelAnimationFrame(e.current);
205
205
  };
206
- }, [a]), t;
207
- }, Fn = qt, Ft = ({
206
+ }, [n]), t;
207
+ }, Qa = qt, Ft = ({
208
208
  onClose: o,
209
- onOpen: a,
209
+ onOpen: n,
210
210
  isOpen: t,
211
211
  defaultIsOpen: r,
212
212
  id: e
213
213
  } = {}) => {
214
- const [i, n] = ie(r || !1), u = t !== void 0 ? t : i, s = t !== void 0, l = Dt(), d = e ?? `disclosure-${l}`, m = $e(a), h = $e(o), v = we(() => {
215
- s || n(!1), h == null || h();
216
- }, [s, h]), D = we(() => {
217
- s || n(!0), m == null || m();
218
- }, [s, m]), U = we(() => {
219
- u ? v() : D();
220
- }, [u, D, v]);
214
+ const [i, a] = ue(r || !1), u = t !== void 0 ? t : i, s = t !== void 0, l = Dt(), c = e ?? `disclosure-${l}`, f = $e(n), h = $e(o), v = pe(() => {
215
+ s || a(!1), h == null || h();
216
+ }, [s, h]), b = pe(() => {
217
+ s || a(!0), f == null || f();
218
+ }, [s, f]), C = pe(() => {
219
+ u ? v() : b();
220
+ }, [u, b, v]);
221
221
  return {
222
222
  onClose: v,
223
- onOpen: D,
224
- onToggle: U,
225
- getButtonProps: ({ onClick: W, ...H } = {}) => ({
226
- ...H,
223
+ onOpen: b,
224
+ onToggle: C,
225
+ getButtonProps: ({ onClick: N, ...I } = {}) => ({
226
+ ...I,
227
227
  "aria-expanded": u,
228
- "aria-controls": d,
229
- onClick(R) {
230
- W == null || W(R), U();
228
+ "aria-controls": c,
229
+ onClick(P) {
230
+ N == null || N(P), C();
231
231
  }
232
232
  }),
233
- getDisclosureProps: ({ ...W } = {}) => ({
234
- ...W,
233
+ getDisclosureProps: ({ ...N } = {}) => ({
234
+ ...N,
235
235
  hidden: !u,
236
- id: d
236
+ id: c
237
237
  }),
238
238
  isOpen: u
239
239
  };
240
- }, Qn = Ft, Qt = (o, a = {}) => {
241
- const { ssr: t = !0, fallback: r } = a, e = Array.isArray(o) ? o : [o];
240
+ }, ja = Ft, Bt = (o, n = {}) => {
241
+ const { ssr: t = !0, fallback: r } = n, e = Array.isArray(o) ? o : [o];
242
242
  let i = Array.isArray(r) ? r : [r];
243
243
  i = i.filter((s) => s != null);
244
- const [n, u] = ie(() => e.map((s, l) => ({
244
+ const [a, u] = ue(() => e.map((s, l) => ({
245
245
  media: s,
246
246
  matches: t ? !!i[l] : window.matchMedia(s).matches
247
247
  })));
248
- return re(() => {
248
+ return ae(() => {
249
249
  const s = window;
250
250
  u(
251
- e.map((m) => ({
252
- media: m,
253
- matches: s.matchMedia(m).matches
251
+ e.map((f) => ({
252
+ media: f,
253
+ matches: s.matchMedia(f).matches
254
254
  }))
255
255
  );
256
- const l = e.map((m) => s.matchMedia(m)), d = (m) => {
257
- u((h) => h.slice().map((v) => v.media === m.media ? { ...v, matches: m.matches } : v));
256
+ const l = e.map((f) => s.matchMedia(f)), c = (f) => {
257
+ u((h) => h.slice().map((v) => v.media === f.media ? { ...v, matches: f.matches } : v));
258
258
  };
259
- return l.forEach((m) => {
260
- m.addEventListener("change", d);
259
+ return l.forEach((f) => {
260
+ f.addEventListener("change", c);
261
261
  }), () => {
262
- l.forEach((m) => {
263
- m.removeEventListener("change", d);
262
+ l.forEach((f) => {
263
+ f.removeEventListener("change", c);
264
264
  });
265
265
  };
266
- }, [window]), n.map((s) => s.matches);
267
- }, Bn = Qt, Bt = ({
266
+ }, [window]), a.map((s) => s.matches);
267
+ }, Va = Bt, Qt = ({
268
268
  value: o,
269
- thousandSeparator: a = ".",
269
+ thousandSeparator: n = ".",
270
270
  decimalLength: t,
271
271
  decimalSeparator: r = ",",
272
272
  prefix: e = ""
273
273
  }) => {
274
- const n = ((u) => {
275
- const s = u.toString().split("."), l = s[0].replace(/\B(?=(\d{3})+(?!\d))/g, a);
276
- let d = "";
277
- return t !== void 0 ? s.length > 1 && t > 0 ? d = r + s[1].padEnd(t, "0").slice(0, t) : t > 0 && (d = r + "0".repeat(t)) : s.length > 1 && (d = r + s[1]), l + d;
274
+ const a = ((u) => {
275
+ const s = u.toString().split("."), l = s[0].replace(/\B(?=(\d{3})+(?!\d))/g, n);
276
+ let c = "";
277
+ return t !== void 0 ? s.length > 1 && t > 0 ? c = r + s[1].padEnd(t, "0").slice(0, t) : t > 0 && (c = r + "0".repeat(t)) : s.length > 1 && (c = r + s[1]), l + c;
278
278
  })(o);
279
- return n.charAt(0) === "-" ? n.replace(/^-/g, `-${e}`) : `${e}${n}`;
280
- }, ge = Bt, jt = () => {
281
- const [o, a] = ie(navigator.onLine);
282
- return re(() => {
283
- const t = () => a(navigator.onLine);
279
+ return a.charAt(0) === "-" ? a.replace(/^-/g, `-${e}`) : `${e}${a}`;
280
+ }, ge = Qt, jt = () => {
281
+ const [o, n] = ue(navigator.onLine);
282
+ return ae(() => {
283
+ const t = () => n(navigator.onLine);
284
284
  return window.addEventListener("online", t), window.addEventListener("offline", t), () => {
285
285
  window.removeEventListener("online", t), window.removeEventListener("offline", t);
286
286
  };
287
287
  }, []), { isOnline: o, isOffline: !o };
288
- }, jn = jt, Vt = ({ enabled: o = !0, ref: a, handler: t }) => {
288
+ }, Xa = jt, Vt = ({ enabled: o = !0, ref: n, handler: t }) => {
289
289
  const r = $e(t), i = Ae({
290
290
  isPointerDown: !1,
291
291
  ignoreEmulatedMouseEvents: !1
292
292
  }).current;
293
- re(() => {
293
+ ae(() => {
294
294
  if (!o)
295
295
  return;
296
- const n = (d) => {
297
- Oe(d, a) && (i.isPointerDown = !0);
298
- }, u = (d) => {
296
+ const a = (c) => {
297
+ Oe(c, n) && (i.isPointerDown = !0);
298
+ }, u = (c) => {
299
299
  if (i.ignoreEmulatedMouseEvents) {
300
300
  i.ignoreEmulatedMouseEvents = !1;
301
301
  return;
302
302
  }
303
- i.isPointerDown && t && Oe(d, a) && (i.isPointerDown = !1, r(d));
304
- }, s = (d) => {
305
- i.ignoreEmulatedMouseEvents = !0, t && i.isPointerDown && Oe(d, a) && (i.isPointerDown = !1, r(d));
306
- }, l = at(a.current);
307
- return l.addEventListener("mousedown", n, !0), l.addEventListener("mouseup", u, !0), l.addEventListener("touchstart", n, !0), l.addEventListener("touchend", s, !0), () => {
308
- l.removeEventListener("mousedown", n, !0), l.removeEventListener("mouseup", u, !0), l.removeEventListener("touchstart", n, !0), l.removeEventListener("touchend", s, !0);
303
+ i.isPointerDown && t && Oe(c, n) && (i.isPointerDown = !1, r(c));
304
+ }, s = (c) => {
305
+ i.ignoreEmulatedMouseEvents = !0, t && i.isPointerDown && Oe(c, n) && (i.isPointerDown = !1, r(c));
306
+ }, l = nt(n.current);
307
+ return l.addEventListener("mousedown", a, !0), l.addEventListener("mouseup", u, !0), l.addEventListener("touchstart", a, !0), l.addEventListener("touchend", s, !0), () => {
308
+ l.removeEventListener("mousedown", a, !0), l.removeEventListener("mouseup", u, !0), l.removeEventListener("touchstart", a, !0), l.removeEventListener("touchend", s, !0);
309
309
  };
310
- }, [t, a, r, i, o]);
311
- }, Vn = Vt;
312
- var G = /* @__PURE__ */ ((o) => (o.product = "Product", o.order = "Order", o.gift = "Gift", o.freeShipping = "Free Shipping", o.freeInsurance = "Free Insurance", o.bundling = "Bundling", o))(G || {}), We = /* @__PURE__ */ ((o) => (o.percentage = "percentage", o.amount = "amount", o))(We || {});
310
+ }, [t, n, r, i, o]);
311
+ }, Ga = Vt;
312
+ var V = /* @__PURE__ */ ((o) => (o.product = "Product", o.order = "Order", o.gift = "Gift", o.freeShipping = "Free Shipping", o.freeInsurance = "Free Insurance", o.bundling = "Bundling", o.payment = "Payment", o))(V || {}), We = /* @__PURE__ */ ((o) => (o.percentage = "percentage", o.amount = "amount", o))(We || {});
313
313
  function Xt(o) {
314
- let a = "";
315
- const { type: t, collections: r = [], brands: e = [], eligibilityType: i } = o;
316
- return t === G.product && (r.length > 0 ? a = `Voucher hanya berlaku untuk collection ${r.map((n) => n.name).join(", ")}.` : e.length > 0 ? a = `Voucher hanya berlaku untuk produk brand ${e.map((n) => n.name).join(", ")}.` : i === "selected_products" && (a = "Voucher hanya berlaku untuk produk tertentu.")), a;
317
- }
318
- function K(o) {
319
- return K = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(a) {
320
- return typeof a;
321
- } : function(a) {
322
- return a && typeof Symbol == "function" && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a;
323
- }, K(o);
324
- }
325
- function L(o) {
314
+ let n = "";
315
+ const { type: t, collections: r = [], brands: e = [], eligibilityType: i, payment: a } = o;
316
+ if (t === V.product)
317
+ r.length > 0 ? n = `Voucher hanya berlaku untuk collection ${r.map((u) => u.name).join(", ")}.` : e.length > 0 ? n = `Voucher hanya berlaku untuk produk brand ${e.map((u) => u.name).join(", ")}.` : i === "selected_products" && (n = "Voucher hanya berlaku untuk produk tertentu.");
318
+ else if (t === V.payment) {
319
+ const { bankName: u, paymentMethod: s, creditBinGroup: l, debitBinGroup: c } = a || {}, f = (s || []).some((P) => (P || "").includes("(Full Payment)")), h = (s || []).some((P) => (P || "").includes("(Cicilan 3x)")), v = (s || []).some((P) => (P || "").includes("(Cicilan 6x)")), b = (s || []).some((P) => (P || "").includes("(Cicilan 12x)")), C = h || v || b, O = f || C, N = [
320
+ ...(s || []).some((P) => (P || "").includes("Debit Card")) && (c || []).length > 0 ? ["Kartu Debit"] : [],
321
+ ...O && (l || []).length > 0 ? ["Kartu Kredit"] : []
322
+ ];
323
+ let I = "";
324
+ if (O) {
325
+ const P = [
326
+ ...f ? ["sistem pembayaran penuh"] : [],
327
+ ...C ? ["sistem cicilan"] : []
328
+ ], X = [
329
+ ...h ? ["3"] : [],
330
+ ...v ? ["6"] : [],
331
+ ...b ? ["12"] : []
332
+ ], E = X.join(", "), L = E.lastIndexOf(","), H = E.slice(0, L), R = E.slice(L + 1, E.length), F = X.length > 1 ? [H, R].join(" dan") : R;
333
+ I = [
334
+ "dengan",
335
+ P.join(" dan "),
336
+ ...C ? [`(${F} bulan)`] : []
337
+ ].join(" ");
338
+ }
339
+ N.length > 0 && (n = [
340
+ "Voucher berlaku untuk pembayaran menggunakan",
341
+ N.join(" dan "),
342
+ u,
343
+ I
344
+ ].join(" "));
345
+ }
346
+ return n;
347
+ }
348
+ function Gt(o) {
349
+ const { bankName: n, creditBinGroup: t, debitBinGroup: r } = o, e = (t || []).join(", "), i = (r || []).join(", ");
350
+ return [
351
+ ...n && e ? [
352
+ `Voucher berlaku untuk Kartu Kredit ${n} dengan 6-digit Bank Identification Number (BIN): ${e}.`
353
+ ] : [],
354
+ ...n && i ? [
355
+ `Voucher berlaku untuk Kartu Debit ${n} dengan 6-digit Bank Identification Number (BIN): ${i}.`
356
+ ] : []
357
+ ];
358
+ }
359
+ function Z(o) {
360
+ return Z = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
361
+ return typeof n;
362
+ } : function(n) {
363
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
364
+ }, Z(o);
365
+ }
366
+ function q(o) {
326
367
  if (o === null || o === !0 || o === !1)
327
368
  return NaN;
328
- var a = Number(o);
329
- return isNaN(a) ? a : a < 0 ? Math.ceil(a) : Math.floor(a);
369
+ var n = Number(o);
370
+ return isNaN(n) ? n : n < 0 ? Math.ceil(n) : Math.floor(n);
330
371
  }
331
- function O(o, a) {
332
- if (a.length < o)
333
- throw new TypeError(o + " argument" + (o > 1 ? "s" : "") + " required, but only " + a.length + " present");
372
+ function Y(o, n) {
373
+ if (n.length < o)
374
+ throw new TypeError(o + " argument" + (o > 1 ? "s" : "") + " required, but only " + n.length + " present");
334
375
  }
335
- function _(o) {
336
- O(1, arguments);
337
- var a = Object.prototype.toString.call(o);
338
- return o instanceof Date || K(o) === "object" && a === "[object Date]" ? new Date(o.getTime()) : typeof o == "number" || a === "[object Number]" ? new Date(o) : ((typeof o == "string" || a === "[object String]") && typeof console < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), new Date(NaN));
376
+ function S(o) {
377
+ Y(1, arguments);
378
+ var n = Object.prototype.toString.call(o);
379
+ return o instanceof Date || Z(o) === "object" && n === "[object Date]" ? new Date(o.getTime()) : typeof o == "number" || n === "[object Number]" ? new Date(o) : ((typeof o == "string" || n === "[object String]") && typeof console < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), new Date(NaN));
339
380
  }
340
- function Gt(o, a) {
341
- O(2, arguments);
342
- var t = _(o).getTime(), r = L(a);
381
+ function Kt(o, n) {
382
+ Y(2, arguments);
383
+ var t = S(o).getTime(), r = q(n);
343
384
  return new Date(t + r);
344
385
  }
345
- var Kt = {};
346
- function ce() {
347
- return Kt;
386
+ var Jt = {};
387
+ function fe() {
388
+ return Jt;
348
389
  }
349
- function nt(o) {
350
- var a = new Date(Date.UTC(o.getFullYear(), o.getMonth(), o.getDate(), o.getHours(), o.getMinutes(), o.getSeconds(), o.getMilliseconds()));
351
- return a.setUTCFullYear(o.getFullYear()), o.getTime() - a.getTime();
390
+ function at(o) {
391
+ var n = new Date(Date.UTC(o.getFullYear(), o.getMonth(), o.getDate(), o.getHours(), o.getMinutes(), o.getSeconds(), o.getMilliseconds()));
392
+ return n.setUTCFullYear(o.getFullYear()), o.getTime() - n.getTime();
352
393
  }
353
- var Jt = 6e4, zt = 36e5, Zt = 1e3;
354
- function er(o) {
355
- return O(1, arguments), o instanceof Date || K(o) === "object" && Object.prototype.toString.call(o) === "[object Date]";
394
+ var zt = 6e4, Zt = 36e5, er = 1e3;
395
+ function tr(o) {
396
+ return Y(1, arguments), o instanceof Date || Z(o) === "object" && Object.prototype.toString.call(o) === "[object Date]";
356
397
  }
357
- function Ye(o) {
358
- if (O(1, arguments), !er(o) && typeof o != "number")
398
+ function Ne(o) {
399
+ if (Y(1, arguments), !tr(o) && typeof o != "number")
359
400
  return !1;
360
- var a = _(o);
361
- return !isNaN(Number(a));
362
- }
363
- function it(o, a) {
364
- O(2, arguments);
365
- var t = L(a);
366
- return Gt(o, -t);
367
- }
368
- var tr = 864e5;
369
- function rr(o) {
370
- O(1, arguments);
371
- var a = _(o), t = a.getTime();
372
- a.setUTCMonth(0, 1), a.setUTCHours(0, 0, 0, 0);
373
- var r = a.getTime(), e = t - r;
374
- return Math.floor(e / tr) + 1;
375
- }
376
- function le(o) {
377
- O(1, arguments);
378
- var a = 1, t = _(o), r = t.getUTCDay(), e = (r < a ? 7 : 0) + r - a;
401
+ var n = S(o);
402
+ return !isNaN(Number(n));
403
+ }
404
+ function it(o, n) {
405
+ Y(2, arguments);
406
+ var t = q(n);
407
+ return Kt(o, -t);
408
+ }
409
+ var rr = 864e5;
410
+ function nr(o) {
411
+ Y(1, arguments);
412
+ var n = S(o), t = n.getTime();
413
+ n.setUTCMonth(0, 1), n.setUTCHours(0, 0, 0, 0);
414
+ var r = n.getTime(), e = t - r;
415
+ return Math.floor(e / rr) + 1;
416
+ }
417
+ function de(o) {
418
+ Y(1, arguments);
419
+ var n = 1, t = S(o), r = t.getUTCDay(), e = (r < n ? 7 : 0) + r - n;
379
420
  return t.setUTCDate(t.getUTCDate() - e), t.setUTCHours(0, 0, 0, 0), t;
380
421
  }
381
422
  function ot(o) {
382
- O(1, arguments);
383
- var a = _(o), t = a.getUTCFullYear(), r = new Date(0);
423
+ Y(1, arguments);
424
+ var n = S(o), t = n.getUTCFullYear(), r = new Date(0);
384
425
  r.setUTCFullYear(t + 1, 0, 4), r.setUTCHours(0, 0, 0, 0);
385
- var e = le(r), i = new Date(0);
426
+ var e = de(r), i = new Date(0);
386
427
  i.setUTCFullYear(t, 0, 4), i.setUTCHours(0, 0, 0, 0);
387
- var n = le(i);
388
- return a.getTime() >= e.getTime() ? t + 1 : a.getTime() >= n.getTime() ? t : t - 1;
428
+ var a = de(i);
429
+ return n.getTime() >= e.getTime() ? t + 1 : n.getTime() >= a.getTime() ? t : t - 1;
389
430
  }
390
431
  function ar(o) {
391
- O(1, arguments);
392
- var a = ot(o), t = new Date(0);
393
- t.setUTCFullYear(a, 0, 4), t.setUTCHours(0, 0, 0, 0);
394
- var r = le(t);
432
+ Y(1, arguments);
433
+ var n = ot(o), t = new Date(0);
434
+ t.setUTCFullYear(n, 0, 4), t.setUTCHours(0, 0, 0, 0);
435
+ var r = de(t);
395
436
  return r;
396
437
  }
397
- var nr = 6048e5;
438
+ var ir = 6048e5;
398
439
  function ut(o) {
399
- O(1, arguments);
400
- var a = _(o), t = le(a).getTime() - ar(a).getTime();
401
- return Math.round(t / nr) + 1;
402
- }
403
- function oe(o, a) {
404
- var t, r, e, i, n, u, s, l;
405
- O(1, arguments);
406
- var d = ce(), m = L((t = (r = (e = (i = a == null ? void 0 : a.weekStartsOn) !== null && i !== void 0 ? i : a == null || (n = a.locale) === null || n === void 0 || (u = n.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && e !== void 0 ? e : d.weekStartsOn) !== null && r !== void 0 ? r : (s = d.locale) === null || s === void 0 || (l = s.options) === null || l === void 0 ? void 0 : l.weekStartsOn) !== null && t !== void 0 ? t : 0);
407
- if (!(m >= 0 && m <= 6))
440
+ Y(1, arguments);
441
+ var n = S(o), t = de(n).getTime() - ar(n).getTime();
442
+ return Math.round(t / ir) + 1;
443
+ }
444
+ function se(o, n) {
445
+ var t, r, e, i, a, u, s, l;
446
+ Y(1, arguments);
447
+ var c = fe(), f = q((t = (r = (e = (i = n == null ? void 0 : n.weekStartsOn) !== null && i !== void 0 ? i : n == null || (a = n.locale) === null || a === void 0 || (u = a.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && e !== void 0 ? e : c.weekStartsOn) !== null && r !== void 0 ? r : (s = c.locale) === null || s === void 0 || (l = s.options) === null || l === void 0 ? void 0 : l.weekStartsOn) !== null && t !== void 0 ? t : 0);
448
+ if (!(f >= 0 && f <= 6))
408
449
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
409
- var h = _(o), v = h.getUTCDay(), D = (v < m ? 7 : 0) + v - m;
410
- return h.setUTCDate(h.getUTCDate() - D), h.setUTCHours(0, 0, 0, 0), h;
450
+ var h = S(o), v = h.getUTCDay(), b = (v < f ? 7 : 0) + v - f;
451
+ return h.setUTCDate(h.getUTCDate() - b), h.setUTCHours(0, 0, 0, 0), h;
411
452
  }
412
- function Le(o, a) {
413
- var t, r, e, i, n, u, s, l;
414
- O(1, arguments);
415
- var d = _(o), m = d.getUTCFullYear(), h = ce(), v = L((t = (r = (e = (i = a == null ? void 0 : a.firstWeekContainsDate) !== null && i !== void 0 ? i : a == null || (n = a.locale) === null || n === void 0 || (u = n.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && e !== void 0 ? e : h.firstWeekContainsDate) !== null && r !== void 0 ? r : (s = h.locale) === null || s === void 0 || (l = s.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && t !== void 0 ? t : 1);
453
+ function Le(o, n) {
454
+ var t, r, e, i, a, u, s, l;
455
+ Y(1, arguments);
456
+ var c = S(o), f = c.getUTCFullYear(), h = fe(), v = q((t = (r = (e = (i = n == null ? void 0 : n.firstWeekContainsDate) !== null && i !== void 0 ? i : n == null || (a = n.locale) === null || a === void 0 || (u = a.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && e !== void 0 ? e : h.firstWeekContainsDate) !== null && r !== void 0 ? r : (s = h.locale) === null || s === void 0 || (l = s.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && t !== void 0 ? t : 1);
416
457
  if (!(v >= 1 && v <= 7))
417
458
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
418
- var D = new Date(0);
419
- D.setUTCFullYear(m + 1, 0, v), D.setUTCHours(0, 0, 0, 0);
420
- var U = oe(D, a), $ = new Date(0);
421
- $.setUTCFullYear(m, 0, v), $.setUTCHours(0, 0, 0, 0);
422
- var E = oe($, a);
423
- return d.getTime() >= U.getTime() ? m + 1 : d.getTime() >= E.getTime() ? m : m - 1;
424
- }
425
- function ir(o, a) {
426
- var t, r, e, i, n, u, s, l;
427
- O(1, arguments);
428
- var d = ce(), m = L((t = (r = (e = (i = a == null ? void 0 : a.firstWeekContainsDate) !== null && i !== void 0 ? i : a == null || (n = a.locale) === null || n === void 0 || (u = n.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && e !== void 0 ? e : d.firstWeekContainsDate) !== null && r !== void 0 ? r : (s = d.locale) === null || s === void 0 || (l = s.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && t !== void 0 ? t : 1), h = Le(o, a), v = new Date(0);
429
- v.setUTCFullYear(h, 0, m), v.setUTCHours(0, 0, 0, 0);
430
- var D = oe(v, a);
431
- return D;
432
- }
433
- var or = 6048e5;
434
- function st(o, a) {
435
- O(1, arguments);
436
- var t = _(o), r = oe(t, a).getTime() - ir(t, a).getTime();
437
- return Math.round(r / or) + 1;
438
- }
439
- function T(o, a) {
440
- for (var t = o < 0 ? "-" : "", r = Math.abs(o).toString(); r.length < a; )
459
+ var b = new Date(0);
460
+ b.setUTCFullYear(f + 1, 0, v), b.setUTCHours(0, 0, 0, 0);
461
+ var C = se(b, n), O = new Date(0);
462
+ O.setUTCFullYear(f, 0, v), O.setUTCHours(0, 0, 0, 0);
463
+ var W = se(O, n);
464
+ return c.getTime() >= C.getTime() ? f + 1 : c.getTime() >= W.getTime() ? f : f - 1;
465
+ }
466
+ function or(o, n) {
467
+ var t, r, e, i, a, u, s, l;
468
+ Y(1, arguments);
469
+ var c = fe(), f = q((t = (r = (e = (i = n == null ? void 0 : n.firstWeekContainsDate) !== null && i !== void 0 ? i : n == null || (a = n.locale) === null || a === void 0 || (u = a.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && e !== void 0 ? e : c.firstWeekContainsDate) !== null && r !== void 0 ? r : (s = c.locale) === null || s === void 0 || (l = s.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && t !== void 0 ? t : 1), h = Le(o, n), v = new Date(0);
470
+ v.setUTCFullYear(h, 0, f), v.setUTCHours(0, 0, 0, 0);
471
+ var b = se(v, n);
472
+ return b;
473
+ }
474
+ var ur = 6048e5;
475
+ function st(o, n) {
476
+ Y(1, arguments);
477
+ var t = S(o), r = se(t, n).getTime() - or(t, n).getTime();
478
+ return Math.round(r / ur) + 1;
479
+ }
480
+ function D(o, n) {
481
+ for (var t = o < 0 ? "-" : "", r = Math.abs(o).toString(); r.length < n; )
441
482
  r = "0" + r;
442
483
  return t + r;
443
484
  }
444
- var ur = {
485
+ var sr = {
445
486
  // Year
446
- y: function(a, t) {
447
- var r = a.getUTCFullYear(), e = r > 0 ? r : 1 - r;
448
- return T(t === "yy" ? e % 100 : e, t.length);
487
+ y: function(n, t) {
488
+ var r = n.getUTCFullYear(), e = r > 0 ? r : 1 - r;
489
+ return D(t === "yy" ? e % 100 : e, t.length);
449
490
  },
450
491
  // Month
451
- M: function(a, t) {
452
- var r = a.getUTCMonth();
453
- return t === "M" ? String(r + 1) : T(r + 1, 2);
492
+ M: function(n, t) {
493
+ var r = n.getUTCMonth();
494
+ return t === "M" ? String(r + 1) : D(r + 1, 2);
454
495
  },
455
496
  // Day of the month
456
- d: function(a, t) {
457
- return T(a.getUTCDate(), t.length);
497
+ d: function(n, t) {
498
+ return D(n.getUTCDate(), t.length);
458
499
  },
459
500
  // AM or PM
460
- a: function(a, t) {
461
- var r = a.getUTCHours() / 12 >= 1 ? "pm" : "am";
501
+ a: function(n, t) {
502
+ var r = n.getUTCHours() / 12 >= 1 ? "pm" : "am";
462
503
  switch (t) {
463
504
  case "a":
464
505
  case "aa":
@@ -473,29 +514,29 @@ var ur = {
473
514
  }
474
515
  },
475
516
  // Hour [1-12]
476
- h: function(a, t) {
477
- return T(a.getUTCHours() % 12 || 12, t.length);
517
+ h: function(n, t) {
518
+ return D(n.getUTCHours() % 12 || 12, t.length);
478
519
  },
479
520
  // Hour [0-23]
480
- H: function(a, t) {
481
- return T(a.getUTCHours(), t.length);
521
+ H: function(n, t) {
522
+ return D(n.getUTCHours(), t.length);
482
523
  },
483
524
  // Minute
484
- m: function(a, t) {
485
- return T(a.getUTCMinutes(), t.length);
525
+ m: function(n, t) {
526
+ return D(n.getUTCMinutes(), t.length);
486
527
  },
487
528
  // Second
488
- s: function(a, t) {
489
- return T(a.getUTCSeconds(), t.length);
529
+ s: function(n, t) {
530
+ return D(n.getUTCSeconds(), t.length);
490
531
  },
491
532
  // Fraction of second
492
- S: function(a, t) {
493
- var r = t.length, e = a.getUTCMilliseconds(), i = Math.floor(e * Math.pow(10, r - 3));
494
- return T(i, t.length);
533
+ S: function(n, t) {
534
+ var r = t.length, e = n.getUTCMilliseconds(), i = Math.floor(e * Math.pow(10, r - 3));
535
+ return D(i, t.length);
495
536
  }
496
537
  };
497
- const Z = ur;
498
- var ue = {
538
+ const te = sr;
539
+ var le = {
499
540
  am: "am",
500
541
  pm: "pm",
501
542
  midnight: "midnight",
@@ -504,10 +545,10 @@ var ue = {
504
545
  afternoon: "afternoon",
505
546
  evening: "evening",
506
547
  night: "night"
507
- }, sr = {
548
+ }, lr = {
508
549
  // Era
509
- G: function(a, t, r) {
510
- var e = a.getUTCFullYear() > 0 ? 1 : 0;
550
+ G: function(n, t, r) {
551
+ var e = n.getUTCFullYear() > 0 ? 1 : 0;
511
552
  switch (t) {
512
553
  case "G":
513
554
  case "GG":
@@ -527,30 +568,30 @@ var ue = {
527
568
  }
528
569
  },
529
570
  // Year
530
- y: function(a, t, r) {
571
+ y: function(n, t, r) {
531
572
  if (t === "yo") {
532
- var e = a.getUTCFullYear(), i = e > 0 ? e : 1 - e;
573
+ var e = n.getUTCFullYear(), i = e > 0 ? e : 1 - e;
533
574
  return r.ordinalNumber(i, {
534
575
  unit: "year"
535
576
  });
536
577
  }
537
- return Z.y(a, t);
578
+ return te.y(n, t);
538
579
  },
539
580
  // Local week-numbering year
540
- Y: function(a, t, r, e) {
541
- var i = Le(a, e), n = i > 0 ? i : 1 - i;
581
+ Y: function(n, t, r, e) {
582
+ var i = Le(n, e), a = i > 0 ? i : 1 - i;
542
583
  if (t === "YY") {
543
- var u = n % 100;
544
- return T(u, 2);
584
+ var u = a % 100;
585
+ return D(u, 2);
545
586
  }
546
- return t === "Yo" ? r.ordinalNumber(n, {
587
+ return t === "Yo" ? r.ordinalNumber(a, {
547
588
  unit: "year"
548
- }) : T(n, t.length);
589
+ }) : D(a, t.length);
549
590
  },
550
591
  // ISO week-numbering year
551
- R: function(a, t) {
552
- var r = ot(a);
553
- return T(r, t.length);
592
+ R: function(n, t) {
593
+ var r = ot(n);
594
+ return D(r, t.length);
554
595
  },
555
596
  // Extended year. This is a single number designating the year of this calendar system.
556
597
  // The main difference between `y` and `u` localizers are B.C. years:
@@ -561,18 +602,18 @@ var ue = {
561
602
  // | BC 2 | 2 | -1 |
562
603
  // Also `yy` always returns the last two digits of a year,
563
604
  // while `uu` pads single digit years to 2 characters and returns other years unchanged.
564
- u: function(a, t) {
565
- var r = a.getUTCFullYear();
566
- return T(r, t.length);
605
+ u: function(n, t) {
606
+ var r = n.getUTCFullYear();
607
+ return D(r, t.length);
567
608
  },
568
609
  // Quarter
569
- Q: function(a, t, r) {
570
- var e = Math.ceil((a.getUTCMonth() + 1) / 3);
610
+ Q: function(n, t, r) {
611
+ var e = Math.ceil((n.getUTCMonth() + 1) / 3);
571
612
  switch (t) {
572
613
  case "Q":
573
614
  return String(e);
574
615
  case "QQ":
575
- return T(e, 2);
616
+ return D(e, 2);
576
617
  case "Qo":
577
618
  return r.ordinalNumber(e, {
578
619
  unit: "quarter"
@@ -596,13 +637,13 @@ var ue = {
596
637
  }
597
638
  },
598
639
  // Stand-alone quarter
599
- q: function(a, t, r) {
600
- var e = Math.ceil((a.getUTCMonth() + 1) / 3);
640
+ q: function(n, t, r) {
641
+ var e = Math.ceil((n.getUTCMonth() + 1) / 3);
601
642
  switch (t) {
602
643
  case "q":
603
644
  return String(e);
604
645
  case "qq":
605
- return T(e, 2);
646
+ return D(e, 2);
606
647
  case "qo":
607
648
  return r.ordinalNumber(e, {
608
649
  unit: "quarter"
@@ -626,12 +667,12 @@ var ue = {
626
667
  }
627
668
  },
628
669
  // Month
629
- M: function(a, t, r) {
630
- var e = a.getUTCMonth();
670
+ M: function(n, t, r) {
671
+ var e = n.getUTCMonth();
631
672
  switch (t) {
632
673
  case "M":
633
674
  case "MM":
634
- return Z.M(a, t);
675
+ return te.M(n, t);
635
676
  case "Mo":
636
677
  return r.ordinalNumber(e + 1, {
637
678
  unit: "month"
@@ -655,13 +696,13 @@ var ue = {
655
696
  }
656
697
  },
657
698
  // Stand-alone month
658
- L: function(a, t, r) {
659
- var e = a.getUTCMonth();
699
+ L: function(n, t, r) {
700
+ var e = n.getUTCMonth();
660
701
  switch (t) {
661
702
  case "L":
662
703
  return String(e + 1);
663
704
  case "LL":
664
- return T(e + 1, 2);
705
+ return D(e + 1, 2);
665
706
  case "Lo":
666
707
  return r.ordinalNumber(e + 1, {
667
708
  unit: "month"
@@ -685,35 +726,35 @@ var ue = {
685
726
  }
686
727
  },
687
728
  // Local week of year
688
- w: function(a, t, r, e) {
689
- var i = st(a, e);
729
+ w: function(n, t, r, e) {
730
+ var i = st(n, e);
690
731
  return t === "wo" ? r.ordinalNumber(i, {
691
732
  unit: "week"
692
- }) : T(i, t.length);
733
+ }) : D(i, t.length);
693
734
  },
694
735
  // ISO week of year
695
- I: function(a, t, r) {
696
- var e = ut(a);
736
+ I: function(n, t, r) {
737
+ var e = ut(n);
697
738
  return t === "Io" ? r.ordinalNumber(e, {
698
739
  unit: "week"
699
- }) : T(e, t.length);
740
+ }) : D(e, t.length);
700
741
  },
701
742
  // Day of the month
702
- d: function(a, t, r) {
703
- return t === "do" ? r.ordinalNumber(a.getUTCDate(), {
743
+ d: function(n, t, r) {
744
+ return t === "do" ? r.ordinalNumber(n.getUTCDate(), {
704
745
  unit: "date"
705
- }) : Z.d(a, t);
746
+ }) : te.d(n, t);
706
747
  },
707
748
  // Day of year
708
- D: function(a, t, r) {
709
- var e = rr(a);
749
+ D: function(n, t, r) {
750
+ var e = nr(n);
710
751
  return t === "Do" ? r.ordinalNumber(e, {
711
752
  unit: "dayOfYear"
712
- }) : T(e, t.length);
753
+ }) : D(e, t.length);
713
754
  },
714
755
  // Day of week
715
- E: function(a, t, r) {
716
- var e = a.getUTCDay();
756
+ E: function(n, t, r) {
757
+ var e = n.getUTCDay();
717
758
  switch (t) {
718
759
  case "E":
719
760
  case "EE":
@@ -741,15 +782,15 @@ var ue = {
741
782
  }
742
783
  },
743
784
  // Local day of week
744
- e: function(a, t, r, e) {
745
- var i = a.getUTCDay(), n = (i - e.weekStartsOn + 8) % 7 || 7;
785
+ e: function(n, t, r, e) {
786
+ var i = n.getUTCDay(), a = (i - e.weekStartsOn + 8) % 7 || 7;
746
787
  switch (t) {
747
788
  case "e":
748
- return String(n);
789
+ return String(a);
749
790
  case "ee":
750
- return T(n, 2);
791
+ return D(a, 2);
751
792
  case "eo":
752
- return r.ordinalNumber(n, {
793
+ return r.ordinalNumber(a, {
753
794
  unit: "day"
754
795
  });
755
796
  case "eee":
@@ -776,15 +817,15 @@ var ue = {
776
817
  }
777
818
  },
778
819
  // Stand-alone local day of week
779
- c: function(a, t, r, e) {
780
- var i = a.getUTCDay(), n = (i - e.weekStartsOn + 8) % 7 || 7;
820
+ c: function(n, t, r, e) {
821
+ var i = n.getUTCDay(), a = (i - e.weekStartsOn + 8) % 7 || 7;
781
822
  switch (t) {
782
823
  case "c":
783
- return String(n);
824
+ return String(a);
784
825
  case "cc":
785
- return T(n, t.length);
826
+ return D(a, t.length);
786
827
  case "co":
787
- return r.ordinalNumber(n, {
828
+ return r.ordinalNumber(a, {
788
829
  unit: "day"
789
830
  });
790
831
  case "ccc":
@@ -811,13 +852,13 @@ var ue = {
811
852
  }
812
853
  },
813
854
  // ISO day of week
814
- i: function(a, t, r) {
815
- var e = a.getUTCDay(), i = e === 0 ? 7 : e;
855
+ i: function(n, t, r) {
856
+ var e = n.getUTCDay(), i = e === 0 ? 7 : e;
816
857
  switch (t) {
817
858
  case "i":
818
859
  return String(i);
819
860
  case "ii":
820
- return T(i, t.length);
861
+ return D(i, t.length);
821
862
  case "io":
822
863
  return r.ordinalNumber(i, {
823
864
  unit: "day"
@@ -846,8 +887,8 @@ var ue = {
846
887
  }
847
888
  },
848
889
  // AM or PM
849
- a: function(a, t, r) {
850
- var e = a.getUTCHours(), i = e / 12 >= 1 ? "pm" : "am";
890
+ a: function(n, t, r) {
891
+ var e = n.getUTCHours(), i = e / 12 >= 1 ? "pm" : "am";
851
892
  switch (t) {
852
893
  case "a":
853
894
  case "aa":
@@ -874,9 +915,9 @@ var ue = {
874
915
  }
875
916
  },
876
917
  // AM, PM, midnight, noon
877
- b: function(a, t, r) {
878
- var e = a.getUTCHours(), i;
879
- switch (e === 12 ? i = ue.noon : e === 0 ? i = ue.midnight : i = e / 12 >= 1 ? "pm" : "am", t) {
918
+ b: function(n, t, r) {
919
+ var e = n.getUTCHours(), i;
920
+ switch (e === 12 ? i = le.noon : e === 0 ? i = le.midnight : i = e / 12 >= 1 ? "pm" : "am", t) {
880
921
  case "b":
881
922
  case "bb":
882
923
  return r.dayPeriod(i, {
@@ -902,9 +943,9 @@ var ue = {
902
943
  }
903
944
  },
904
945
  // in the morning, in the afternoon, in the evening, at night
905
- B: function(a, t, r) {
906
- var e = a.getUTCHours(), i;
907
- switch (e >= 17 ? i = ue.evening : e >= 12 ? i = ue.afternoon : e >= 4 ? i = ue.morning : i = ue.night, t) {
946
+ B: function(n, t, r) {
947
+ var e = n.getUTCHours(), i;
948
+ switch (e >= 17 ? i = le.evening : e >= 12 ? i = le.afternoon : e >= 4 ? i = le.morning : i = le.night, t) {
908
949
  case "B":
909
950
  case "BB":
910
951
  case "BBB":
@@ -926,141 +967,141 @@ var ue = {
926
967
  }
927
968
  },
928
969
  // Hour [1-12]
929
- h: function(a, t, r) {
970
+ h: function(n, t, r) {
930
971
  if (t === "ho") {
931
- var e = a.getUTCHours() % 12;
972
+ var e = n.getUTCHours() % 12;
932
973
  return e === 0 && (e = 12), r.ordinalNumber(e, {
933
974
  unit: "hour"
934
975
  });
935
976
  }
936
- return Z.h(a, t);
977
+ return te.h(n, t);
937
978
  },
938
979
  // Hour [0-23]
939
- H: function(a, t, r) {
940
- return t === "Ho" ? r.ordinalNumber(a.getUTCHours(), {
980
+ H: function(n, t, r) {
981
+ return t === "Ho" ? r.ordinalNumber(n.getUTCHours(), {
941
982
  unit: "hour"
942
- }) : Z.H(a, t);
983
+ }) : te.H(n, t);
943
984
  },
944
985
  // Hour [0-11]
945
- K: function(a, t, r) {
946
- var e = a.getUTCHours() % 12;
986
+ K: function(n, t, r) {
987
+ var e = n.getUTCHours() % 12;
947
988
  return t === "Ko" ? r.ordinalNumber(e, {
948
989
  unit: "hour"
949
- }) : T(e, t.length);
990
+ }) : D(e, t.length);
950
991
  },
951
992
  // Hour [1-24]
952
- k: function(a, t, r) {
953
- var e = a.getUTCHours();
993
+ k: function(n, t, r) {
994
+ var e = n.getUTCHours();
954
995
  return e === 0 && (e = 24), t === "ko" ? r.ordinalNumber(e, {
955
996
  unit: "hour"
956
- }) : T(e, t.length);
997
+ }) : D(e, t.length);
957
998
  },
958
999
  // Minute
959
- m: function(a, t, r) {
960
- return t === "mo" ? r.ordinalNumber(a.getUTCMinutes(), {
1000
+ m: function(n, t, r) {
1001
+ return t === "mo" ? r.ordinalNumber(n.getUTCMinutes(), {
961
1002
  unit: "minute"
962
- }) : Z.m(a, t);
1003
+ }) : te.m(n, t);
963
1004
  },
964
1005
  // Second
965
- s: function(a, t, r) {
966
- return t === "so" ? r.ordinalNumber(a.getUTCSeconds(), {
1006
+ s: function(n, t, r) {
1007
+ return t === "so" ? r.ordinalNumber(n.getUTCSeconds(), {
967
1008
  unit: "second"
968
- }) : Z.s(a, t);
1009
+ }) : te.s(n, t);
969
1010
  },
970
1011
  // Fraction of second
971
- S: function(a, t) {
972
- return Z.S(a, t);
1012
+ S: function(n, t) {
1013
+ return te.S(n, t);
973
1014
  },
974
1015
  // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
975
- X: function(a, t, r, e) {
976
- var i = e._originalDate || a, n = i.getTimezoneOffset();
977
- if (n === 0)
1016
+ X: function(n, t, r, e) {
1017
+ var i = e._originalDate || n, a = i.getTimezoneOffset();
1018
+ if (a === 0)
978
1019
  return "Z";
979
1020
  switch (t) {
980
1021
  case "X":
981
- return Je(n);
1022
+ return Je(a);
982
1023
  case "XXXX":
983
1024
  case "XX":
984
- return ne(n);
1025
+ return oe(a);
985
1026
  case "XXXXX":
986
1027
  case "XXX":
987
1028
  default:
988
- return ne(n, ":");
1029
+ return oe(a, ":");
989
1030
  }
990
1031
  },
991
1032
  // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
992
- x: function(a, t, r, e) {
993
- var i = e._originalDate || a, n = i.getTimezoneOffset();
1033
+ x: function(n, t, r, e) {
1034
+ var i = e._originalDate || n, a = i.getTimezoneOffset();
994
1035
  switch (t) {
995
1036
  case "x":
996
- return Je(n);
1037
+ return Je(a);
997
1038
  case "xxxx":
998
1039
  case "xx":
999
- return ne(n);
1040
+ return oe(a);
1000
1041
  case "xxxxx":
1001
1042
  case "xxx":
1002
1043
  default:
1003
- return ne(n, ":");
1044
+ return oe(a, ":");
1004
1045
  }
1005
1046
  },
1006
1047
  // Timezone (GMT)
1007
- O: function(a, t, r, e) {
1008
- var i = e._originalDate || a, n = i.getTimezoneOffset();
1048
+ O: function(n, t, r, e) {
1049
+ var i = e._originalDate || n, a = i.getTimezoneOffset();
1009
1050
  switch (t) {
1010
1051
  case "O":
1011
1052
  case "OO":
1012
1053
  case "OOO":
1013
- return "GMT" + Ke(n, ":");
1054
+ return "GMT" + Ke(a, ":");
1014
1055
  case "OOOO":
1015
1056
  default:
1016
- return "GMT" + ne(n, ":");
1057
+ return "GMT" + oe(a, ":");
1017
1058
  }
1018
1059
  },
1019
1060
  // Timezone (specific non-location)
1020
- z: function(a, t, r, e) {
1021
- var i = e._originalDate || a, n = i.getTimezoneOffset();
1061
+ z: function(n, t, r, e) {
1062
+ var i = e._originalDate || n, a = i.getTimezoneOffset();
1022
1063
  switch (t) {
1023
1064
  case "z":
1024
1065
  case "zz":
1025
1066
  case "zzz":
1026
- return "GMT" + Ke(n, ":");
1067
+ return "GMT" + Ke(a, ":");
1027
1068
  case "zzzz":
1028
1069
  default:
1029
- return "GMT" + ne(n, ":");
1070
+ return "GMT" + oe(a, ":");
1030
1071
  }
1031
1072
  },
1032
1073
  // Seconds timestamp
1033
- t: function(a, t, r, e) {
1034
- var i = e._originalDate || a, n = Math.floor(i.getTime() / 1e3);
1035
- return T(n, t.length);
1074
+ t: function(n, t, r, e) {
1075
+ var i = e._originalDate || n, a = Math.floor(i.getTime() / 1e3);
1076
+ return D(a, t.length);
1036
1077
  },
1037
1078
  // Milliseconds timestamp
1038
- T: function(a, t, r, e) {
1039
- var i = e._originalDate || a, n = i.getTime();
1040
- return T(n, t.length);
1079
+ T: function(n, t, r, e) {
1080
+ var i = e._originalDate || n, a = i.getTime();
1081
+ return D(a, t.length);
1041
1082
  }
1042
1083
  };
1043
- function Ke(o, a) {
1084
+ function Ke(o, n) {
1044
1085
  var t = o > 0 ? "-" : "+", r = Math.abs(o), e = Math.floor(r / 60), i = r % 60;
1045
1086
  if (i === 0)
1046
1087
  return t + String(e);
1047
- var n = a || "";
1048
- return t + String(e) + n + T(i, 2);
1088
+ var a = n || "";
1089
+ return t + String(e) + a + D(i, 2);
1049
1090
  }
1050
- function Je(o, a) {
1091
+ function Je(o, n) {
1051
1092
  if (o % 60 === 0) {
1052
1093
  var t = o > 0 ? "-" : "+";
1053
- return t + T(Math.abs(o) / 60, 2);
1094
+ return t + D(Math.abs(o) / 60, 2);
1054
1095
  }
1055
- return ne(o, a);
1096
+ return oe(o, n);
1056
1097
  }
1057
- function ne(o, a) {
1058
- var t = a || "", r = o > 0 ? "-" : "+", e = Math.abs(o), i = T(Math.floor(e / 60), 2), n = T(e % 60, 2);
1059
- return r + i + t + n;
1098
+ function oe(o, n) {
1099
+ var t = n || "", r = o > 0 ? "-" : "+", e = Math.abs(o), i = D(Math.floor(e / 60), 2), a = D(e % 60, 2);
1100
+ return r + i + t + a;
1060
1101
  }
1061
- const lr = sr;
1062
- var ze = function(a, t) {
1063
- switch (a) {
1102
+ const cr = lr;
1103
+ var ze = function(n, t) {
1104
+ switch (n) {
1064
1105
  case "P":
1065
1106
  return t.date({
1066
1107
  width: "short"
@@ -1079,8 +1120,8 @@ var ze = function(a, t) {
1079
1120
  width: "full"
1080
1121
  });
1081
1122
  }
1082
- }, lt = function(a, t) {
1083
- switch (a) {
1123
+ }, lt = function(n, t) {
1124
+ switch (n) {
1084
1125
  case "p":
1085
1126
  return t.time({
1086
1127
  width: "short"
@@ -1099,58 +1140,58 @@ var ze = function(a, t) {
1099
1140
  width: "full"
1100
1141
  });
1101
1142
  }
1102
- }, cr = function(a, t) {
1103
- var r = a.match(/(P+)(p+)?/) || [], e = r[1], i = r[2];
1143
+ }, dr = function(n, t) {
1144
+ var r = n.match(/(P+)(p+)?/) || [], e = r[1], i = r[2];
1104
1145
  if (!i)
1105
- return ze(a, t);
1106
- var n;
1146
+ return ze(n, t);
1147
+ var a;
1107
1148
  switch (e) {
1108
1149
  case "P":
1109
- n = t.dateTime({
1150
+ a = t.dateTime({
1110
1151
  width: "short"
1111
1152
  });
1112
1153
  break;
1113
1154
  case "PP":
1114
- n = t.dateTime({
1155
+ a = t.dateTime({
1115
1156
  width: "medium"
1116
1157
  });
1117
1158
  break;
1118
1159
  case "PPP":
1119
- n = t.dateTime({
1160
+ a = t.dateTime({
1120
1161
  width: "long"
1121
1162
  });
1122
1163
  break;
1123
1164
  case "PPPP":
1124
1165
  default:
1125
- n = t.dateTime({
1166
+ a = t.dateTime({
1126
1167
  width: "full"
1127
1168
  });
1128
1169
  break;
1129
1170
  }
1130
- return n.replace("{{date}}", ze(e, t)).replace("{{time}}", lt(i, t));
1131
- }, dr = {
1171
+ return a.replace("{{date}}", ze(e, t)).replace("{{time}}", lt(i, t));
1172
+ }, fr = {
1132
1173
  p: lt,
1133
- P: cr
1174
+ P: dr
1134
1175
  };
1135
- const Ne = dr;
1136
- var fr = ["D", "DD"], mr = ["YY", "YYYY"];
1176
+ const Ye = fr;
1177
+ var mr = ["D", "DD"], vr = ["YY", "YYYY"];
1137
1178
  function ct(o) {
1138
- return fr.indexOf(o) !== -1;
1179
+ return mr.indexOf(o) !== -1;
1139
1180
  }
1140
1181
  function dt(o) {
1141
- return mr.indexOf(o) !== -1;
1182
+ return vr.indexOf(o) !== -1;
1142
1183
  }
1143
- function De(o, a, t) {
1184
+ function De(o, n, t) {
1144
1185
  if (o === "YYYY")
1145
- throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(a, "`) for formatting years to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
1186
+ throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(n, "`) for formatting years to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
1146
1187
  if (o === "YY")
1147
- throw new RangeError("Use `yy` instead of `YY` (in `".concat(a, "`) for formatting years to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
1188
+ throw new RangeError("Use `yy` instead of `YY` (in `".concat(n, "`) for formatting years to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
1148
1189
  if (o === "D")
1149
- throw new RangeError("Use `d` instead of `D` (in `".concat(a, "`) for formatting days of the month to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
1190
+ throw new RangeError("Use `d` instead of `D` (in `".concat(n, "`) for formatting days of the month to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
1150
1191
  if (o === "DD")
1151
- throw new RangeError("Use `dd` instead of `DD` (in `".concat(a, "`) for formatting days of the month to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
1192
+ throw new RangeError("Use `dd` instead of `DD` (in `".concat(n, "`) for formatting days of the month to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
1152
1193
  }
1153
- var vr = {
1194
+ var hr = {
1154
1195
  lessThanXSeconds: {
1155
1196
  one: "less than a second",
1156
1197
  other: "less than {{count}} seconds"
@@ -1212,14 +1253,14 @@ var vr = {
1212
1253
  one: "almost 1 year",
1213
1254
  other: "almost {{count}} years"
1214
1255
  }
1215
- }, hr = function(a, t, r) {
1216
- var e, i = vr[a];
1256
+ }, gr = function(n, t, r) {
1257
+ var e, i = hr[n];
1217
1258
  return typeof i == "string" ? e = i : t === 1 ? e = i.one : e = i.other.replace("{{count}}", t.toString()), r != null && r.addSuffix ? r.comparison && r.comparison > 0 ? "in " + e : e + " ago" : e;
1218
1259
  };
1219
- const gr = hr;
1220
- function se(o) {
1260
+ const pr = gr;
1261
+ function ce(o) {
1221
1262
  return function() {
1222
- var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = a.width ? String(a.width) : o.defaultWidth, r = o.formats[t] || o.formats[o.defaultWidth];
1263
+ var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = n.width ? String(n.width) : o.defaultWidth, r = o.formats[t] || o.formats[o.defaultWidth];
1223
1264
  return r;
1224
1265
  };
1225
1266
  }
@@ -1228,74 +1269,74 @@ var wr = {
1228
1269
  long: "MMMM do, y",
1229
1270
  medium: "MMM d, y",
1230
1271
  short: "MM/dd/yyyy"
1231
- }, pr = {
1272
+ }, yr = {
1232
1273
  full: "h:mm:ss a zzzz",
1233
1274
  long: "h:mm:ss a z",
1234
1275
  medium: "h:mm:ss a",
1235
1276
  short: "h:mm a"
1236
- }, yr = {
1277
+ }, br = {
1237
1278
  full: "{{date}} 'at' {{time}}",
1238
1279
  long: "{{date}} 'at' {{time}}",
1239
1280
  medium: "{{date}}, {{time}}",
1240
1281
  short: "{{date}}, {{time}}"
1241
- }, br = {
1242
- date: se({
1282
+ }, Tr = {
1283
+ date: ce({
1243
1284
  formats: wr,
1244
1285
  defaultWidth: "full"
1245
1286
  }),
1246
- time: se({
1247
- formats: pr,
1287
+ time: ce({
1288
+ formats: yr,
1248
1289
  defaultWidth: "full"
1249
1290
  }),
1250
- dateTime: se({
1251
- formats: yr,
1291
+ dateTime: ce({
1292
+ formats: br,
1252
1293
  defaultWidth: "full"
1253
1294
  })
1254
1295
  };
1255
- const Tr = br;
1256
- var Dr = {
1296
+ const Dr = Tr;
1297
+ var kr = {
1257
1298
  lastWeek: "'last' eeee 'at' p",
1258
1299
  yesterday: "'yesterday at' p",
1259
1300
  today: "'today at' p",
1260
1301
  tomorrow: "'tomorrow at' p",
1261
1302
  nextWeek: "eeee 'at' p",
1262
1303
  other: "P"
1263
- }, Pr = function(a, t, r, e) {
1264
- return Dr[a];
1304
+ }, Pr = function(n, t, r, e) {
1305
+ return kr[n];
1265
1306
  };
1266
1307
  const Mr = Pr;
1267
- function Q(o) {
1268
- return function(a, t) {
1308
+ function G(o) {
1309
+ return function(n, t) {
1269
1310
  var r = t != null && t.context ? String(t.context) : "standalone", e;
1270
1311
  if (r === "formatting" && o.formattingValues) {
1271
- var i = o.defaultFormattingWidth || o.defaultWidth, n = t != null && t.width ? String(t.width) : i;
1272
- e = o.formattingValues[n] || o.formattingValues[i];
1312
+ var i = o.defaultFormattingWidth || o.defaultWidth, a = t != null && t.width ? String(t.width) : i;
1313
+ e = o.formattingValues[a] || o.formattingValues[i];
1273
1314
  } else {
1274
1315
  var u = o.defaultWidth, s = t != null && t.width ? String(t.width) : o.defaultWidth;
1275
1316
  e = o.values[s] || o.values[u];
1276
1317
  }
1277
- var l = o.argumentCallback ? o.argumentCallback(a) : a;
1318
+ var l = o.argumentCallback ? o.argumentCallback(n) : n;
1278
1319
  return e[l];
1279
1320
  };
1280
1321
  }
1281
- var kr = {
1322
+ var Cr = {
1282
1323
  narrow: ["B", "A"],
1283
1324
  abbreviated: ["BC", "AD"],
1284
1325
  wide: ["Before Christ", "Anno Domini"]
1285
- }, Cr = {
1326
+ }, xr = {
1286
1327
  narrow: ["1", "2", "3", "4"],
1287
1328
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
1288
1329
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
1289
- }, xr = {
1330
+ }, Or = {
1290
1331
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
1291
1332
  abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
1292
1333
  wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
1293
- }, Or = {
1334
+ }, Er = {
1294
1335
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
1295
1336
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
1296
1337
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
1297
1338
  wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
1298
- }, Er = {
1339
+ }, Ur = {
1299
1340
  narrow: {
1300
1341
  am: "a",
1301
1342
  pm: "p",
@@ -1326,7 +1367,7 @@ var kr = {
1326
1367
  evening: "evening",
1327
1368
  night: "night"
1328
1369
  }
1329
- }, Ur = {
1370
+ }, $r = {
1330
1371
  narrow: {
1331
1372
  am: "a",
1332
1373
  pm: "p",
@@ -1357,8 +1398,8 @@ var kr = {
1357
1398
  evening: "in the evening",
1358
1399
  night: "at night"
1359
1400
  }
1360
- }, $r = function(a, t) {
1361
- var r = Number(a), e = r % 100;
1401
+ }, Wr = function(n, t) {
1402
+ var r = Number(n), e = r % 100;
1362
1403
  if (e > 20 || e < 10)
1363
1404
  switch (e % 10) {
1364
1405
  case 1:
@@ -1369,81 +1410,81 @@ var kr = {
1369
1410
  return r + "rd";
1370
1411
  }
1371
1412
  return r + "th";
1372
- }, Wr = {
1373
- ordinalNumber: $r,
1374
- era: Q({
1375
- values: kr,
1413
+ }, Nr = {
1414
+ ordinalNumber: Wr,
1415
+ era: G({
1416
+ values: Cr,
1376
1417
  defaultWidth: "wide"
1377
1418
  }),
1378
- quarter: Q({
1379
- values: Cr,
1419
+ quarter: G({
1420
+ values: xr,
1380
1421
  defaultWidth: "wide",
1381
- argumentCallback: function(a) {
1382
- return a - 1;
1422
+ argumentCallback: function(n) {
1423
+ return n - 1;
1383
1424
  }
1384
1425
  }),
1385
- month: Q({
1386
- values: xr,
1387
- defaultWidth: "wide"
1388
- }),
1389
- day: Q({
1426
+ month: G({
1390
1427
  values: Or,
1391
1428
  defaultWidth: "wide"
1392
1429
  }),
1393
- dayPeriod: Q({
1430
+ day: G({
1394
1431
  values: Er,
1432
+ defaultWidth: "wide"
1433
+ }),
1434
+ dayPeriod: G({
1435
+ values: Ur,
1395
1436
  defaultWidth: "wide",
1396
- formattingValues: Ur,
1437
+ formattingValues: $r,
1397
1438
  defaultFormattingWidth: "wide"
1398
1439
  })
1399
1440
  };
1400
- const Yr = Wr;
1401
- function B(o) {
1402
- return function(a) {
1403
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = t.width, e = r && o.matchPatterns[r] || o.matchPatterns[o.defaultMatchWidth], i = a.match(e);
1441
+ const Yr = Nr;
1442
+ function K(o) {
1443
+ return function(n) {
1444
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = t.width, e = r && o.matchPatterns[r] || o.matchPatterns[o.defaultMatchWidth], i = n.match(e);
1404
1445
  if (!i)
1405
1446
  return null;
1406
- var n = i[0], u = r && o.parsePatterns[r] || o.parsePatterns[o.defaultParseWidth], s = Array.isArray(u) ? _r(u, function(m) {
1407
- return m.test(n);
1408
- }) : Nr(u, function(m) {
1409
- return m.test(n);
1447
+ var a = i[0], u = r && o.parsePatterns[r] || o.parsePatterns[o.defaultParseWidth], s = Array.isArray(u) ? Ar(u, function(f) {
1448
+ return f.test(a);
1449
+ }) : _r(u, function(f) {
1450
+ return f.test(a);
1410
1451
  }), l;
1411
1452
  l = o.valueCallback ? o.valueCallback(s) : s, l = t.valueCallback ? t.valueCallback(l) : l;
1412
- var d = a.slice(n.length);
1453
+ var c = n.slice(a.length);
1413
1454
  return {
1414
1455
  value: l,
1415
- rest: d
1456
+ rest: c
1416
1457
  };
1417
1458
  };
1418
1459
  }
1419
- function Nr(o, a) {
1460
+ function _r(o, n) {
1420
1461
  for (var t in o)
1421
- if (o.hasOwnProperty(t) && a(o[t]))
1462
+ if (o.hasOwnProperty(t) && n(o[t]))
1422
1463
  return t;
1423
1464
  }
1424
- function _r(o, a) {
1465
+ function Ar(o, n) {
1425
1466
  for (var t = 0; t < o.length; t++)
1426
- if (a(o[t]))
1467
+ if (n(o[t]))
1427
1468
  return t;
1428
1469
  }
1429
1470
  function ft(o) {
1430
- return function(a) {
1431
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = a.match(o.matchPattern);
1471
+ return function(n) {
1472
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = n.match(o.matchPattern);
1432
1473
  if (!r)
1433
1474
  return null;
1434
- var e = r[0], i = a.match(o.parsePattern);
1475
+ var e = r[0], i = n.match(o.parsePattern);
1435
1476
  if (!i)
1436
1477
  return null;
1437
- var n = o.valueCallback ? o.valueCallback(i[0]) : i[0];
1438
- n = t.valueCallback ? t.valueCallback(n) : n;
1439
- var u = a.slice(e.length);
1478
+ var a = o.valueCallback ? o.valueCallback(i[0]) : i[0];
1479
+ a = t.valueCallback ? t.valueCallback(a) : a;
1480
+ var u = n.slice(e.length);
1440
1481
  return {
1441
- value: n,
1482
+ value: a,
1442
1483
  rest: u
1443
1484
  };
1444
1485
  };
1445
1486
  }
1446
- var Ar = /^(\d+)(th|st|nd|rd)?/i, Lr = /\d+/i, Sr = {
1487
+ var Lr = /^(\d+)(th|st|nd|rd)?/i, Sr = /\d+/i, Ir = {
1447
1488
  narrow: /^(b|a)/i,
1448
1489
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
1449
1490
  wide: /^(before christ|before common era|anno domini|common era)/i
@@ -1453,13 +1494,13 @@ var Ar = /^(\d+)(th|st|nd|rd)?/i, Lr = /\d+/i, Sr = {
1453
1494
  narrow: /^[1234]/i,
1454
1495
  abbreviated: /^q[1234]/i,
1455
1496
  wide: /^[1234](th|st|nd|rd)? quarter/i
1456
- }, Ir = {
1457
- any: [/1/i, /2/i, /3/i, /4/i]
1458
1497
  }, qr = {
1498
+ any: [/1/i, /2/i, /3/i, /4/i]
1499
+ }, Fr = {
1459
1500
  narrow: /^[jfmasond]/i,
1460
1501
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
1461
1502
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
1462
- }, Fr = {
1503
+ }, Br = {
1463
1504
  narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
1464
1505
  any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
1465
1506
  }, Qr = {
@@ -1467,13 +1508,13 @@ var Ar = /^(\d+)(th|st|nd|rd)?/i, Lr = /\d+/i, Sr = {
1467
1508
  short: /^(su|mo|tu|we|th|fr|sa)/i,
1468
1509
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
1469
1510
  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
1470
- }, Br = {
1511
+ }, jr = {
1471
1512
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
1472
1513
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
1473
- }, jr = {
1514
+ }, Vr = {
1474
1515
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
1475
1516
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
1476
- }, Vr = {
1517
+ }, Xr = {
1477
1518
  any: {
1478
1519
  am: /^a/i,
1479
1520
  pm: /^p/i,
@@ -1484,138 +1525,138 @@ var Ar = /^(\d+)(th|st|nd|rd)?/i, Lr = /\d+/i, Sr = {
1484
1525
  evening: /evening/i,
1485
1526
  night: /night/i
1486
1527
  }
1487
- }, Xr = {
1528
+ }, Gr = {
1488
1529
  ordinalNumber: ft({
1489
- matchPattern: Ar,
1490
- parsePattern: Lr,
1491
- valueCallback: function(a) {
1492
- return parseInt(a, 10);
1530
+ matchPattern: Lr,
1531
+ parsePattern: Sr,
1532
+ valueCallback: function(n) {
1533
+ return parseInt(n, 10);
1493
1534
  }
1494
1535
  }),
1495
- era: B({
1496
- matchPatterns: Sr,
1536
+ era: K({
1537
+ matchPatterns: Ir,
1497
1538
  defaultMatchWidth: "wide",
1498
1539
  parsePatterns: Hr,
1499
1540
  defaultParseWidth: "any"
1500
1541
  }),
1501
- quarter: B({
1542
+ quarter: K({
1502
1543
  matchPatterns: Rr,
1503
1544
  defaultMatchWidth: "wide",
1504
- parsePatterns: Ir,
1545
+ parsePatterns: qr,
1505
1546
  defaultParseWidth: "any",
1506
- valueCallback: function(a) {
1507
- return a + 1;
1547
+ valueCallback: function(n) {
1548
+ return n + 1;
1508
1549
  }
1509
1550
  }),
1510
- month: B({
1511
- matchPatterns: qr,
1551
+ month: K({
1552
+ matchPatterns: Fr,
1512
1553
  defaultMatchWidth: "wide",
1513
- parsePatterns: Fr,
1554
+ parsePatterns: Br,
1514
1555
  defaultParseWidth: "any"
1515
1556
  }),
1516
- day: B({
1557
+ day: K({
1517
1558
  matchPatterns: Qr,
1518
1559
  defaultMatchWidth: "wide",
1519
- parsePatterns: Br,
1560
+ parsePatterns: jr,
1520
1561
  defaultParseWidth: "any"
1521
1562
  }),
1522
- dayPeriod: B({
1523
- matchPatterns: jr,
1563
+ dayPeriod: K({
1564
+ matchPatterns: Vr,
1524
1565
  defaultMatchWidth: "any",
1525
- parsePatterns: Vr,
1566
+ parsePatterns: Xr,
1526
1567
  defaultParseWidth: "any"
1527
1568
  })
1528
1569
  };
1529
- const Gr = Xr;
1530
- var Kr = {
1570
+ const Kr = Gr;
1571
+ var Jr = {
1531
1572
  code: "en-US",
1532
- formatDistance: gr,
1533
- formatLong: Tr,
1573
+ formatDistance: pr,
1574
+ formatLong: Dr,
1534
1575
  formatRelative: Mr,
1535
1576
  localize: Yr,
1536
- match: Gr,
1577
+ match: Kr,
1537
1578
  options: {
1538
1579
  weekStartsOn: 0,
1539
1580
  firstWeekContainsDate: 1
1540
1581
  }
1541
1582
  };
1542
- const mt = Kr;
1543
- var Jr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, zr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Zr = /^'([^]*?)'?$/, ea = /''/g, ta = /[a-zA-Z]/;
1544
- function ee(o, a, t) {
1545
- var r, e, i, n, u, s, l, d, m, h, v, D, U, $, E, W, H, R;
1546
- O(2, arguments);
1547
- var de = String(a), A = ce(), F = (r = (e = t == null ? void 0 : t.locale) !== null && e !== void 0 ? e : A.locale) !== null && r !== void 0 ? r : mt, X = L((i = (n = (u = (s = t == null ? void 0 : t.firstWeekContainsDate) !== null && s !== void 0 ? s : t == null || (l = t.locale) === null || l === void 0 || (d = l.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && u !== void 0 ? u : A.firstWeekContainsDate) !== null && n !== void 0 ? n : (m = A.locale) === null || m === void 0 || (h = m.options) === null || h === void 0 ? void 0 : h.firstWeekContainsDate) !== null && i !== void 0 ? i : 1);
1548
- if (!(X >= 1 && X <= 7))
1583
+ const mt = Jr;
1584
+ var zr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Zr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, en = /^'([^]*?)'?$/, tn = /''/g, rn = /[a-zA-Z]/;
1585
+ function re(o, n, t) {
1586
+ var r, e, i, a, u, s, l, c, f, h, v, b, C, O, W, N, I, P;
1587
+ Y(2, arguments);
1588
+ var X = String(n), E = fe(), L = (r = (e = t == null ? void 0 : t.locale) !== null && e !== void 0 ? e : E.locale) !== null && r !== void 0 ? r : mt, H = q((i = (a = (u = (s = t == null ? void 0 : t.firstWeekContainsDate) !== null && s !== void 0 ? s : t == null || (l = t.locale) === null || l === void 0 || (c = l.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && u !== void 0 ? u : E.firstWeekContainsDate) !== null && a !== void 0 ? a : (f = E.locale) === null || f === void 0 || (h = f.options) === null || h === void 0 ? void 0 : h.firstWeekContainsDate) !== null && i !== void 0 ? i : 1);
1589
+ if (!(H >= 1 && H <= 7))
1549
1590
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
1550
- var J = L((v = (D = (U = ($ = t == null ? void 0 : t.weekStartsOn) !== null && $ !== void 0 ? $ : t == null || (E = t.locale) === null || E === void 0 || (W = E.options) === null || W === void 0 ? void 0 : W.weekStartsOn) !== null && U !== void 0 ? U : A.weekStartsOn) !== null && D !== void 0 ? D : (H = A.locale) === null || H === void 0 || (R = H.options) === null || R === void 0 ? void 0 : R.weekStartsOn) !== null && v !== void 0 ? v : 0);
1551
- if (!(J >= 0 && J <= 6))
1591
+ var R = q((v = (b = (C = (O = t == null ? void 0 : t.weekStartsOn) !== null && O !== void 0 ? O : t == null || (W = t.locale) === null || W === void 0 || (N = W.options) === null || N === void 0 ? void 0 : N.weekStartsOn) !== null && C !== void 0 ? C : E.weekStartsOn) !== null && b !== void 0 ? b : (I = E.locale) === null || I === void 0 || (P = I.options) === null || P === void 0 ? void 0 : P.weekStartsOn) !== null && v !== void 0 ? v : 0);
1592
+ if (!(R >= 0 && R <= 6))
1552
1593
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
1553
- if (!F.localize)
1594
+ if (!L.localize)
1554
1595
  throw new RangeError("locale must contain localize property");
1555
- if (!F.formatLong)
1596
+ if (!L.formatLong)
1556
1597
  throw new RangeError("locale must contain formatLong property");
1557
- var z = _(o);
1558
- if (!Ye(z))
1598
+ var F = S(o);
1599
+ if (!Ne(F))
1559
1600
  throw new RangeError("Invalid time value");
1560
- var fe = nt(z), me = it(z, fe), ve = {
1561
- firstWeekContainsDate: X,
1562
- weekStartsOn: J,
1563
- locale: F,
1564
- _originalDate: z
1565
- }, ke = de.match(zr).map(function(N) {
1566
- var S = N[0];
1567
- if (S === "p" || S === "P") {
1568
- var ae = Ne[S];
1569
- return ae(N, F.formatLong);
1570
- }
1571
- return N;
1572
- }).join("").match(Jr).map(function(N) {
1573
- if (N === "''")
1601
+ var ee = at(F), me = it(F, ee), ve = {
1602
+ firstWeekContainsDate: H,
1603
+ weekStartsOn: R,
1604
+ locale: L,
1605
+ _originalDate: F
1606
+ }, Me = X.match(Zr).map(function(A) {
1607
+ var B = A[0];
1608
+ if (B === "p" || B === "P") {
1609
+ var ie = Ye[B];
1610
+ return ie(A, L.formatLong);
1611
+ }
1612
+ return A;
1613
+ }).join("").match(zr).map(function(A) {
1614
+ if (A === "''")
1574
1615
  return "'";
1575
- var S = N[0];
1576
- if (S === "'")
1577
- return ra(N);
1578
- var ae = lr[S];
1579
- if (ae)
1580
- return !(t != null && t.useAdditionalWeekYearTokens) && dt(N) && De(N, a, String(o)), !(t != null && t.useAdditionalDayOfYearTokens) && ct(N) && De(N, a, String(o)), ae(me, N, F.localize, ve);
1581
- if (S.match(ta))
1582
- throw new RangeError("Format string contains an unescaped latin alphabet character `" + S + "`");
1583
- return N;
1616
+ var B = A[0];
1617
+ if (B === "'")
1618
+ return nn(A);
1619
+ var ie = cr[B];
1620
+ if (ie)
1621
+ return !(t != null && t.useAdditionalWeekYearTokens) && dt(A) && De(A, n, String(o)), !(t != null && t.useAdditionalDayOfYearTokens) && ct(A) && De(A, n, String(o)), ie(me, A, L.localize, ve);
1622
+ if (B.match(rn))
1623
+ throw new RangeError("Format string contains an unescaped latin alphabet character `" + B + "`");
1624
+ return A;
1584
1625
  }).join("");
1585
- return ke;
1626
+ return Me;
1586
1627
  }
1587
- function ra(o) {
1588
- var a = o.match(Zr);
1589
- return a ? a[1].replace(ea, "'") : o;
1628
+ function nn(o) {
1629
+ var n = o.match(en);
1630
+ return n ? n[1].replace(tn, "'") : o;
1590
1631
  }
1591
- function aa(o, a) {
1632
+ function an(o, n) {
1592
1633
  if (o == null)
1593
1634
  throw new TypeError("assign requires that input parameter not be null or undefined");
1594
- for (var t in a)
1595
- Object.prototype.hasOwnProperty.call(a, t) && (o[t] = a[t]);
1635
+ for (var t in n)
1636
+ Object.prototype.hasOwnProperty.call(n, t) && (o[t] = n[t]);
1596
1637
  return o;
1597
1638
  }
1598
- function Ze(o, a) {
1599
- (a == null || a > o.length) && (a = o.length);
1600
- for (var t = 0, r = new Array(a); t < a; t++)
1639
+ function Ze(o, n) {
1640
+ (n == null || n > o.length) && (n = o.length);
1641
+ for (var t = 0, r = new Array(n); t < n; t++)
1601
1642
  r[t] = o[t];
1602
1643
  return r;
1603
1644
  }
1604
- function na(o, a) {
1645
+ function on(o, n) {
1605
1646
  if (o) {
1606
1647
  if (typeof o == "string")
1607
- return Ze(o, a);
1648
+ return Ze(o, n);
1608
1649
  var t = Object.prototype.toString.call(o).slice(8, -1);
1609
1650
  if (t === "Object" && o.constructor && (t = o.constructor.name), t === "Map" || t === "Set")
1610
1651
  return Array.from(o);
1611
1652
  if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
1612
- return Ze(o, a);
1653
+ return Ze(o, n);
1613
1654
  }
1614
1655
  }
1615
- function et(o, a) {
1656
+ function et(o, n) {
1616
1657
  var t = typeof Symbol < "u" && o[Symbol.iterator] || o["@@iterator"];
1617
1658
  if (!t) {
1618
- if (Array.isArray(o) || (t = na(o)) || a && o && typeof o.length == "number") {
1659
+ if (Array.isArray(o) || (t = on(o)) || n && o && typeof o.length == "number") {
1619
1660
  t && (o = t);
1620
1661
  var r = 0, e = function() {
1621
1662
  };
@@ -1638,7 +1679,7 @@ function et(o, a) {
1638
1679
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1639
1680
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1640
1681
  }
1641
- var i = !0, n = !1, u;
1682
+ var i = !0, a = !1, u;
1642
1683
  return {
1643
1684
  s: function() {
1644
1685
  t = t.call(o);
@@ -1648,32 +1689,32 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1648
1689
  return i = l.done, l;
1649
1690
  },
1650
1691
  e: function(l) {
1651
- n = !0, u = l;
1692
+ a = !0, u = l;
1652
1693
  },
1653
1694
  f: function() {
1654
1695
  try {
1655
1696
  !i && t.return != null && t.return();
1656
1697
  } finally {
1657
- if (n)
1698
+ if (a)
1658
1699
  throw u;
1659
1700
  }
1660
1701
  }
1661
1702
  };
1662
1703
  }
1663
- function f(o) {
1704
+ function m(o) {
1664
1705
  if (o === void 0)
1665
1706
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1666
1707
  return o;
1667
1708
  }
1668
- function _e(o, a) {
1709
+ function _e(o, n) {
1669
1710
  return _e = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, e) {
1670
1711
  return r.__proto__ = e, r;
1671
- }, _e(o, a);
1712
+ }, _e(o, n);
1672
1713
  }
1673
- function p(o, a) {
1674
- if (typeof a != "function" && a !== null)
1714
+ function w(o, n) {
1715
+ if (typeof n != "function" && n !== null)
1675
1716
  throw new TypeError("Super expression must either be null or a function");
1676
- o.prototype = Object.create(a && a.prototype, {
1717
+ o.prototype = Object.create(n && n.prototype, {
1677
1718
  constructor: {
1678
1719
  value: o,
1679
1720
  writable: !0,
@@ -1681,14 +1722,14 @@ function p(o, a) {
1681
1722
  }
1682
1723
  }), Object.defineProperty(o, "prototype", {
1683
1724
  writable: !1
1684
- }), a && _e(o, a);
1725
+ }), n && _e(o, n);
1685
1726
  }
1686
- function Pe(o) {
1687
- return Pe = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
1727
+ function ke(o) {
1728
+ return ke = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
1688
1729
  return t.__proto__ || Object.getPrototypeOf(t);
1689
- }, Pe(o);
1730
+ }, ke(o);
1690
1731
  }
1691
- function ia() {
1732
+ function un() {
1692
1733
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
1693
1734
  return !1;
1694
1735
  if (typeof Proxy == "function")
@@ -1700,122 +1741,122 @@ function ia() {
1700
1741
  return !1;
1701
1742
  }
1702
1743
  }
1703
- function oa(o, a) {
1704
- if (a && (K(a) === "object" || typeof a == "function"))
1705
- return a;
1706
- if (a !== void 0)
1744
+ function sn(o, n) {
1745
+ if (n && (Z(n) === "object" || typeof n == "function"))
1746
+ return n;
1747
+ if (n !== void 0)
1707
1748
  throw new TypeError("Derived constructors may only return object or undefined");
1708
- return f(o);
1749
+ return m(o);
1709
1750
  }
1710
1751
  function y(o) {
1711
- var a = ia();
1752
+ var n = un();
1712
1753
  return function() {
1713
- var r = Pe(o), e;
1714
- if (a) {
1715
- var i = Pe(this).constructor;
1754
+ var r = ke(o), e;
1755
+ if (n) {
1756
+ var i = ke(this).constructor;
1716
1757
  e = Reflect.construct(r, arguments, i);
1717
1758
  } else
1718
1759
  e = r.apply(this, arguments);
1719
- return oa(this, e);
1760
+ return sn(this, e);
1720
1761
  };
1721
1762
  }
1722
- function g(o, a) {
1723
- if (!(o instanceof a))
1763
+ function g(o, n) {
1764
+ if (!(o instanceof n))
1724
1765
  throw new TypeError("Cannot call a class as a function");
1725
1766
  }
1726
- function ua(o, a) {
1727
- if (K(o) !== "object" || o === null)
1767
+ function ln(o, n) {
1768
+ if (Z(o) !== "object" || o === null)
1728
1769
  return o;
1729
1770
  var t = o[Symbol.toPrimitive];
1730
1771
  if (t !== void 0) {
1731
- var r = t.call(o, a || "default");
1732
- if (K(r) !== "object")
1772
+ var r = t.call(o, n || "default");
1773
+ if (Z(r) !== "object")
1733
1774
  return r;
1734
1775
  throw new TypeError("@@toPrimitive must return a primitive value.");
1735
1776
  }
1736
- return (a === "string" ? String : Number)(o);
1777
+ return (n === "string" ? String : Number)(o);
1737
1778
  }
1738
1779
  function vt(o) {
1739
- var a = ua(o, "string");
1740
- return K(a) === "symbol" ? a : String(a);
1780
+ var n = ln(o, "string");
1781
+ return Z(n) === "symbol" ? n : String(n);
1741
1782
  }
1742
- function tt(o, a) {
1743
- for (var t = 0; t < a.length; t++) {
1744
- var r = a[t];
1783
+ function tt(o, n) {
1784
+ for (var t = 0; t < n.length; t++) {
1785
+ var r = n[t];
1745
1786
  r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(o, vt(r.key), r);
1746
1787
  }
1747
1788
  }
1748
- function w(o, a, t) {
1749
- return a && tt(o.prototype, a), t && tt(o, t), Object.defineProperty(o, "prototype", {
1789
+ function p(o, n, t) {
1790
+ return n && tt(o.prototype, n), t && tt(o, t), Object.defineProperty(o, "prototype", {
1750
1791
  writable: !1
1751
1792
  }), o;
1752
1793
  }
1753
- function c(o, a, t) {
1754
- return a = vt(a), a in o ? Object.defineProperty(o, a, {
1794
+ function d(o, n, t) {
1795
+ return n = vt(n), n in o ? Object.defineProperty(o, n, {
1755
1796
  value: t,
1756
1797
  enumerable: !0,
1757
1798
  configurable: !0,
1758
1799
  writable: !0
1759
- }) : o[a] = t, o;
1800
+ }) : o[n] = t, o;
1760
1801
  }
1761
- var sa = 10, ht = /* @__PURE__ */ function() {
1802
+ var cn = 10, ht = /* @__PURE__ */ function() {
1762
1803
  function o() {
1763
- g(this, o), c(this, "priority", void 0), c(this, "subPriority", 0);
1804
+ g(this, o), d(this, "priority", void 0), d(this, "subPriority", 0);
1764
1805
  }
1765
- return w(o, [{
1806
+ return p(o, [{
1766
1807
  key: "validate",
1767
1808
  value: function(t, r) {
1768
1809
  return !0;
1769
1810
  }
1770
1811
  }]), o;
1771
- }(), la = /* @__PURE__ */ function(o) {
1772
- p(t, o);
1773
- var a = y(t);
1774
- function t(r, e, i, n, u) {
1812
+ }(), dn = /* @__PURE__ */ function(o) {
1813
+ w(t, o);
1814
+ var n = y(t);
1815
+ function t(r, e, i, a, u) {
1775
1816
  var s;
1776
- return g(this, t), s = a.call(this), s.value = r, s.validateValue = e, s.setValue = i, s.priority = n, u && (s.subPriority = u), s;
1817
+ return g(this, t), s = n.call(this), s.value = r, s.validateValue = e, s.setValue = i, s.priority = a, u && (s.subPriority = u), s;
1777
1818
  }
1778
- return w(t, [{
1819
+ return p(t, [{
1779
1820
  key: "validate",
1780
1821
  value: function(e, i) {
1781
1822
  return this.validateValue(e, this.value, i);
1782
1823
  }
1783
1824
  }, {
1784
1825
  key: "set",
1785
- value: function(e, i, n) {
1786
- return this.setValue(e, i, this.value, n);
1826
+ value: function(e, i, a) {
1827
+ return this.setValue(e, i, this.value, a);
1787
1828
  }
1788
1829
  }]), t;
1789
- }(ht), ca = /* @__PURE__ */ function(o) {
1790
- p(t, o);
1791
- var a = y(t);
1830
+ }(ht), fn = /* @__PURE__ */ function(o) {
1831
+ w(t, o);
1832
+ var n = y(t);
1792
1833
  function t() {
1793
1834
  var r;
1794
1835
  g(this, t);
1795
- for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
1796
- i[n] = arguments[n];
1797
- return r = a.call.apply(a, [this].concat(i)), c(f(r), "priority", sa), c(f(r), "subPriority", -1), r;
1836
+ for (var e = arguments.length, i = new Array(e), a = 0; a < e; a++)
1837
+ i[a] = arguments[a];
1838
+ return r = n.call.apply(n, [this].concat(i)), d(m(r), "priority", cn), d(m(r), "subPriority", -1), r;
1798
1839
  }
1799
- return w(t, [{
1840
+ return p(t, [{
1800
1841
  key: "set",
1801
1842
  value: function(e, i) {
1802
1843
  if (i.timestampIsSet)
1803
1844
  return e;
1804
- var n = new Date(0);
1805
- return n.setFullYear(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate()), n.setHours(e.getUTCHours(), e.getUTCMinutes(), e.getUTCSeconds(), e.getUTCMilliseconds()), n;
1845
+ var a = new Date(0);
1846
+ return a.setFullYear(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate()), a.setHours(e.getUTCHours(), e.getUTCMinutes(), e.getUTCSeconds(), e.getUTCMilliseconds()), a;
1806
1847
  }
1807
1848
  }]), t;
1808
- }(ht), b = /* @__PURE__ */ function() {
1849
+ }(ht), T = /* @__PURE__ */ function() {
1809
1850
  function o() {
1810
- g(this, o), c(this, "incompatibleTokens", void 0), c(this, "priority", void 0), c(this, "subPriority", void 0);
1851
+ g(this, o), d(this, "incompatibleTokens", void 0), d(this, "priority", void 0), d(this, "subPriority", void 0);
1811
1852
  }
1812
- return w(o, [{
1853
+ return p(o, [{
1813
1854
  key: "run",
1814
1855
  value: function(t, r, e, i) {
1815
- var n = this.parse(t, r, e, i);
1816
- return n ? {
1817
- setter: new la(n.value, this.validate, this.set, this.priority, this.subPriority),
1818
- rest: n.rest
1856
+ var a = this.parse(t, r, e, i);
1857
+ return a ? {
1858
+ setter: new dn(a.value, this.validate, this.set, this.priority, this.subPriority),
1859
+ rest: a.rest
1819
1860
  } : null;
1820
1861
  }
1821
1862
  }, {
@@ -1824,50 +1865,50 @@ var sa = 10, ht = /* @__PURE__ */ function() {
1824
1865
  return !0;
1825
1866
  }
1826
1867
  }]), o;
1827
- }(), da = /* @__PURE__ */ function(o) {
1828
- p(t, o);
1829
- var a = y(t);
1868
+ }(), mn = /* @__PURE__ */ function(o) {
1869
+ w(t, o);
1870
+ var n = y(t);
1830
1871
  function t() {
1831
1872
  var r;
1832
1873
  g(this, t);
1833
- for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
1834
- i[n] = arguments[n];
1835
- return r = a.call.apply(a, [this].concat(i)), c(f(r), "priority", 140), c(f(r), "incompatibleTokens", ["R", "u", "t", "T"]), r;
1874
+ for (var e = arguments.length, i = new Array(e), a = 0; a < e; a++)
1875
+ i[a] = arguments[a];
1876
+ return r = n.call.apply(n, [this].concat(i)), d(m(r), "priority", 140), d(m(r), "incompatibleTokens", ["R", "u", "t", "T"]), r;
1836
1877
  }
1837
- return w(t, [{
1878
+ return p(t, [{
1838
1879
  key: "parse",
1839
- value: function(e, i, n) {
1880
+ value: function(e, i, a) {
1840
1881
  switch (i) {
1841
1882
  case "G":
1842
1883
  case "GG":
1843
1884
  case "GGG":
1844
- return n.era(e, {
1885
+ return a.era(e, {
1845
1886
  width: "abbreviated"
1846
- }) || n.era(e, {
1887
+ }) || a.era(e, {
1847
1888
  width: "narrow"
1848
1889
  });
1849
1890
  case "GGGGG":
1850
- return n.era(e, {
1891
+ return a.era(e, {
1851
1892
  width: "narrow"
1852
1893
  });
1853
1894
  case "GGGG":
1854
1895
  default:
1855
- return n.era(e, {
1896
+ return a.era(e, {
1856
1897
  width: "wide"
1857
- }) || n.era(e, {
1898
+ }) || a.era(e, {
1858
1899
  width: "abbreviated"
1859
- }) || n.era(e, {
1900
+ }) || a.era(e, {
1860
1901
  width: "narrow"
1861
1902
  });
1862
1903
  }
1863
1904
  }
1864
1905
  }, {
1865
1906
  key: "set",
1866
- value: function(e, i, n) {
1867
- return i.era = n, e.setUTCFullYear(n, 0, 1), e.setUTCHours(0, 0, 0, 0), e;
1907
+ value: function(e, i, a) {
1908
+ return i.era = a, e.setUTCFullYear(a, 0, 1), e.setUTCHours(0, 0, 0, 0), e;
1868
1909
  }
1869
1910
  }]), t;
1870
- }(b), C = {
1911
+ }(T), U = {
1871
1912
  month: /^(1[0-2]|0?\d)/,
1872
1913
  // 0 to 12
1873
1914
  date: /^(3[0-1]|[0-2]?\d)/,
@@ -1905,70 +1946,70 @@ var sa = 10, ht = /* @__PURE__ */ function() {
1905
1946
  // 0 to 999, -0 to -999
1906
1947
  fourDigitsSigned: /^-?\d{1,4}/
1907
1948
  // 0 to 9999, -0 to -9999
1908
- }, j = {
1949
+ }, J = {
1909
1950
  basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
1910
1951
  basic: /^([+-])(\d{2})(\d{2})|Z/,
1911
1952
  basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
1912
1953
  extended: /^([+-])(\d{2}):(\d{2})|Z/,
1913
1954
  extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/
1914
1955
  };
1915
- function x(o, a) {
1956
+ function $(o, n) {
1916
1957
  return o && {
1917
- value: a(o.value),
1958
+ value: n(o.value),
1918
1959
  rest: o.rest
1919
1960
  };
1920
1961
  }
1921
- function M(o, a) {
1922
- var t = a.match(o);
1962
+ function M(o, n) {
1963
+ var t = n.match(o);
1923
1964
  return t ? {
1924
1965
  value: parseInt(t[0], 10),
1925
- rest: a.slice(t[0].length)
1966
+ rest: n.slice(t[0].length)
1926
1967
  } : null;
1927
1968
  }
1928
- function V(o, a) {
1929
- var t = a.match(o);
1969
+ function z(o, n) {
1970
+ var t = n.match(o);
1930
1971
  if (!t)
1931
1972
  return null;
1932
1973
  if (t[0] === "Z")
1933
1974
  return {
1934
1975
  value: 0,
1935
- rest: a.slice(1)
1976
+ rest: n.slice(1)
1936
1977
  };
1937
- var r = t[1] === "+" ? 1 : -1, e = t[2] ? parseInt(t[2], 10) : 0, i = t[3] ? parseInt(t[3], 10) : 0, n = t[5] ? parseInt(t[5], 10) : 0;
1978
+ var r = t[1] === "+" ? 1 : -1, e = t[2] ? parseInt(t[2], 10) : 0, i = t[3] ? parseInt(t[3], 10) : 0, a = t[5] ? parseInt(t[5], 10) : 0;
1938
1979
  return {
1939
- value: r * (e * zt + i * Jt + n * Zt),
1940
- rest: a.slice(t[0].length)
1980
+ value: r * (e * Zt + i * zt + a * er),
1981
+ rest: n.slice(t[0].length)
1941
1982
  };
1942
1983
  }
1943
1984
  function gt(o) {
1944
- return M(C.anyDigitsSigned, o);
1985
+ return M(U.anyDigitsSigned, o);
1945
1986
  }
1946
- function k(o, a) {
1987
+ function x(o, n) {
1947
1988
  switch (o) {
1948
1989
  case 1:
1949
- return M(C.singleDigit, a);
1990
+ return M(U.singleDigit, n);
1950
1991
  case 2:
1951
- return M(C.twoDigits, a);
1992
+ return M(U.twoDigits, n);
1952
1993
  case 3:
1953
- return M(C.threeDigits, a);
1994
+ return M(U.threeDigits, n);
1954
1995
  case 4:
1955
- return M(C.fourDigits, a);
1996
+ return M(U.fourDigits, n);
1956
1997
  default:
1957
- return M(new RegExp("^\\d{1," + o + "}"), a);
1998
+ return M(new RegExp("^\\d{1," + o + "}"), n);
1958
1999
  }
1959
2000
  }
1960
- function Me(o, a) {
2001
+ function Pe(o, n) {
1961
2002
  switch (o) {
1962
2003
  case 1:
1963
- return M(C.singleDigitSigned, a);
2004
+ return M(U.singleDigitSigned, n);
1964
2005
  case 2:
1965
- return M(C.twoDigitsSigned, a);
2006
+ return M(U.twoDigitsSigned, n);
1966
2007
  case 3:
1967
- return M(C.threeDigitsSigned, a);
2008
+ return M(U.threeDigitsSigned, n);
1968
2009
  case 4:
1969
- return M(C.fourDigitsSigned, a);
2010
+ return M(U.fourDigitsSigned, n);
1970
2011
  default:
1971
- return M(new RegExp("^-?\\d{1," + o + "}"), a);
2012
+ return M(new RegExp("^-?\\d{1," + o + "}"), n);
1972
2013
  }
1973
2014
  }
1974
2015
  function Se(o) {
@@ -1988,32 +2029,32 @@ function Se(o) {
1988
2029
  return 0;
1989
2030
  }
1990
2031
  }
1991
- function wt(o, a) {
1992
- var t = a > 0, r = t ? a : 1 - a, e;
2032
+ function pt(o, n) {
2033
+ var t = n > 0, r = t ? n : 1 - n, e;
1993
2034
  if (r <= 50)
1994
2035
  e = o || 100;
1995
2036
  else {
1996
- var i = r + 50, n = Math.floor(i / 100) * 100, u = o >= i % 100;
1997
- e = o + n - (u ? 100 : 0);
2037
+ var i = r + 50, a = Math.floor(i / 100) * 100, u = o >= i % 100;
2038
+ e = o + a - (u ? 100 : 0);
1998
2039
  }
1999
2040
  return t ? e : 1 - e;
2000
2041
  }
2001
- function pt(o) {
2042
+ function wt(o) {
2002
2043
  return o % 400 === 0 || o % 4 === 0 && o % 100 !== 0;
2003
2044
  }
2004
- var fa = /* @__PURE__ */ function(o) {
2005
- p(t, o);
2006
- var a = y(t);
2045
+ var vn = /* @__PURE__ */ function(o) {
2046
+ w(t, o);
2047
+ var n = y(t);
2007
2048
  function t() {
2008
2049
  var r;
2009
2050
  g(this, t);
2010
- for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
2011
- i[n] = arguments[n];
2012
- return r = a.call.apply(a, [this].concat(i)), c(f(r), "priority", 130), c(f(r), "incompatibleTokens", ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"]), r;
2051
+ for (var e = arguments.length, i = new Array(e), a = 0; a < e; a++)
2052
+ i[a] = arguments[a];
2053
+ return r = n.call.apply(n, [this].concat(i)), d(m(r), "priority", 130), d(m(r), "incompatibleTokens", ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"]), r;
2013
2054
  }
2014
- return w(t, [{
2055
+ return p(t, [{
2015
2056
  key: "parse",
2016
- value: function(e, i, n) {
2057
+ value: function(e, i, a) {
2017
2058
  var u = function(l) {
2018
2059
  return {
2019
2060
  year: l,
@@ -2022,13 +2063,13 @@ var fa = /* @__PURE__ */ function(o) {
2022
2063
  };
2023
2064
  switch (i) {
2024
2065
  case "y":
2025
- return x(k(4, e), u);
2066
+ return $(x(4, e), u);
2026
2067
  case "yo":
2027
- return x(n.ordinalNumber(e, {
2068
+ return $(a.ordinalNumber(e, {
2028
2069
  unit: "year"
2029
2070
  }), u);
2030
2071
  default:
2031
- return x(k(i.length, e), u);
2072
+ return $(x(i.length, e), u);
2032
2073
  }
2033
2074
  }
2034
2075
  }, {
@@ -2038,29 +2079,29 @@ var fa = /* @__PURE__ */ function(o) {
2038
2079
  }
2039
2080
  }, {
2040
2081
  key: "set",
2041
- value: function(e, i, n) {
2082
+ value: function(e, i, a) {
2042
2083
  var u = e.getUTCFullYear();
2043
- if (n.isTwoDigitYear) {
2044
- var s = wt(n.year, u);
2084
+ if (a.isTwoDigitYear) {
2085
+ var s = pt(a.year, u);
2045
2086
  return e.setUTCFullYear(s, 0, 1), e.setUTCHours(0, 0, 0, 0), e;
2046
2087
  }
2047
- var l = !("era" in i) || i.era === 1 ? n.year : 1 - n.year;
2088
+ var l = !("era" in i) || i.era === 1 ? a.year : 1 - a.year;
2048
2089
  return e.setUTCFullYear(l, 0, 1), e.setUTCHours(0, 0, 0, 0), e;
2049
2090
  }
2050
2091
  }]), t;
2051
- }(b), ma = /* @__PURE__ */ function(o) {
2052
- p(t, o);
2053
- var a = y(t);
2092
+ }(T), hn = /* @__PURE__ */ function(o) {
2093
+ w(t, o);
2094
+ var n = y(t);
2054
2095
  function t() {
2055
2096
  var r;
2056
2097
  g(this, t);
2057
- for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
2058
- i[n] = arguments[n];
2059
- return r = a.call.apply(a, [this].concat(i)), c(f(r), "priority", 130), c(f(r), "incompatibleTokens", ["y", "R", "u", "Q", "q", "M", "L", "I", "d", "D", "i", "t", "T"]), r;
2098
+ for (var e = arguments.length, i = new Array(e), a = 0; a < e; a++)
2099
+ i[a] = arguments[a];
2100
+ return r = n.call.apply(n, [this].concat(i)), d(m(r), "priority", 130), d(m(r), "incompatibleTokens", ["y", "R", "u", "Q", "q", "M", "L", "I", "d", "D", "i", "t", "T"]), r;
2060
2101
  }
2061
- return w(t, [{
2102
+ return p(t, [{
2062
2103
  key: "parse",
2063
- value: function(e, i, n) {
2104
+ value: function(e, i, a) {
2064
2105
  var u = function(l) {
2065
2106
  return {
2066
2107
  year: l,
@@ -2069,13 +2110,13 @@ var fa = /* @__PURE__ */ function(o) {
2069
2110
  };
2070
2111
  switch (i) {
2071
2112
  case "Y":
2072
- return x(k(4, e), u);
2113
+ return $(x(4, e), u);
2073
2114
  case "Yo":
2074
- return x(n.ordinalNumber(e, {
2115
+ return $(a.ordinalNumber(e, {
2075
2116
  unit: "year"
2076
2117
  }), u);
2077
2118
  default:
2078
- return x(k(i.length, e), u);
2119
+ return $(x(i.length, e), u);
2079
2120
  }
2080
2121
  }
2081
2122
  }, {
@@ -2085,102 +2126,102 @@ var fa = /* @__PURE__ */ function(o) {
2085
2126
  }
2086
2127
  }, {
2087
2128
  key: "set",
2088
- value: function(e, i, n, u) {
2129
+ value: function(e, i, a, u) {
2089
2130
  var s = Le(e, u);
2090
- if (n.isTwoDigitYear) {
2091
- var l = wt(n.year, s);
2092
- return e.setUTCFullYear(l, 0, u.firstWeekContainsDate), e.setUTCHours(0, 0, 0, 0), oe(e, u);
2131
+ if (a.isTwoDigitYear) {
2132
+ var l = pt(a.year, s);
2133
+ return e.setUTCFullYear(l, 0, u.firstWeekContainsDate), e.setUTCHours(0, 0, 0, 0), se(e, u);
2093
2134
  }
2094
- var d = !("era" in i) || i.era === 1 ? n.year : 1 - n.year;
2095
- return e.setUTCFullYear(d, 0, u.firstWeekContainsDate), e.setUTCHours(0, 0, 0, 0), oe(e, u);
2135
+ var c = !("era" in i) || i.era === 1 ? a.year : 1 - a.year;
2136
+ return e.setUTCFullYear(c, 0, u.firstWeekContainsDate), e.setUTCHours(0, 0, 0, 0), se(e, u);
2096
2137
  }
2097
2138
  }]), t;
2098
- }(b), va = /* @__PURE__ */ function(o) {
2099
- p(t, o);
2100
- var a = y(t);
2139
+ }(T), gn = /* @__PURE__ */ function(o) {
2140
+ w(t, o);
2141
+ var n = y(t);
2101
2142
  function t() {
2102
2143
  var r;
2103
2144
  g(this, t);
2104
- for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
2105
- i[n] = arguments[n];
2106
- return r = a.call.apply(a, [this].concat(i)), c(f(r), "priority", 130), c(f(r), "incompatibleTokens", ["G", "y", "Y", "u", "Q", "q", "M", "L", "w", "d", "D", "e", "c", "t", "T"]), r;
2145
+ for (var e = arguments.length, i = new Array(e), a = 0; a < e; a++)
2146
+ i[a] = arguments[a];
2147
+ return r = n.call.apply(n, [this].concat(i)), d(m(r), "priority", 130), d(m(r), "incompatibleTokens", ["G", "y", "Y", "u", "Q", "q", "M", "L", "w", "d", "D", "e", "c", "t", "T"]), r;
2107
2148
  }
2108
- return w(t, [{
2149
+ return p(t, [{
2109
2150
  key: "parse",
2110
2151
  value: function(e, i) {
2111
- return Me(i === "R" ? 4 : i.length, e);
2152
+ return Pe(i === "R" ? 4 : i.length, e);
2112
2153
  }
2113
2154
  }, {
2114
2155
  key: "set",
2115
- value: function(e, i, n) {
2156
+ value: function(e, i, a) {
2116
2157
  var u = new Date(0);
2117
- return u.setUTCFullYear(n, 0, 4), u.setUTCHours(0, 0, 0, 0), le(u);
2158
+ return u.setUTCFullYear(a, 0, 4), u.setUTCHours(0, 0, 0, 0), de(u);
2118
2159
  }
2119
2160
  }]), t;
2120
- }(b), ha = /* @__PURE__ */ function(o) {
2121
- p(t, o);
2122
- var a = y(t);
2161
+ }(T), pn = /* @__PURE__ */ function(o) {
2162
+ w(t, o);
2163
+ var n = y(t);
2123
2164
  function t() {
2124
2165
  var r;
2125
2166
  g(this, t);
2126
- for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
2127
- i[n] = arguments[n];
2128
- return r = a.call.apply(a, [this].concat(i)), c(f(r), "priority", 130), c(f(r), "incompatibleTokens", ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]), r;
2167
+ for (var e = arguments.length, i = new Array(e), a = 0; a < e; a++)
2168
+ i[a] = arguments[a];
2169
+ return r = n.call.apply(n, [this].concat(i)), d(m(r), "priority", 130), d(m(r), "incompatibleTokens", ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]), r;
2129
2170
  }
2130
- return w(t, [{
2171
+ return p(t, [{
2131
2172
  key: "parse",
2132
2173
  value: function(e, i) {
2133
- return Me(i === "u" ? 4 : i.length, e);
2174
+ return Pe(i === "u" ? 4 : i.length, e);
2134
2175
  }
2135
2176
  }, {
2136
2177
  key: "set",
2137
- value: function(e, i, n) {
2138
- return e.setUTCFullYear(n, 0, 1), e.setUTCHours(0, 0, 0, 0), e;
2178
+ value: function(e, i, a) {
2179
+ return e.setUTCFullYear(a, 0, 1), e.setUTCHours(0, 0, 0, 0), e;
2139
2180
  }
2140
2181
  }]), t;
2141
- }(b), ga = /* @__PURE__ */ function(o) {
2142
- p(t, o);
2143
- var a = y(t);
2182
+ }(T), wn = /* @__PURE__ */ function(o) {
2183
+ w(t, o);
2184
+ var n = y(t);
2144
2185
  function t() {
2145
2186
  var r;
2146
2187
  g(this, t);
2147
- for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
2148
- i[n] = arguments[n];
2149
- return r = a.call.apply(a, [this].concat(i)), c(f(r), "priority", 120), c(f(r), "incompatibleTokens", ["Y", "R", "q", "M", "L", "w", "I", "d", "D", "i", "e", "c", "t", "T"]), r;
2188
+ for (var e = arguments.length, i = new Array(e), a = 0; a < e; a++)
2189
+ i[a] = arguments[a];
2190
+ return r = n.call.apply(n, [this].concat(i)), d(m(r), "priority", 120), d(m(r), "incompatibleTokens", ["Y", "R", "q", "M", "L", "w", "I", "d", "D", "i", "e", "c", "t", "T"]), r;
2150
2191
  }
2151
- return w(t, [{
2192
+ return p(t, [{
2152
2193
  key: "parse",
2153
- value: function(e, i, n) {
2194
+ value: function(e, i, a) {
2154
2195
  switch (i) {
2155
2196
  case "Q":
2156
2197
  case "QQ":
2157
- return k(i.length, e);
2198
+ return x(i.length, e);
2158
2199
  case "Qo":
2159
- return n.ordinalNumber(e, {
2200
+ return a.ordinalNumber(e, {
2160
2201
  unit: "quarter"
2161
2202
  });
2162
2203
  case "QQQ":
2163
- return n.quarter(e, {
2204
+ return a.quarter(e, {
2164
2205
  width: "abbreviated",
2165
2206
  context: "formatting"
2166
- }) || n.quarter(e, {
2207
+ }) || a.quarter(e, {
2167
2208
  width: "narrow",
2168
2209
  context: "formatting"
2169
2210
  });
2170
2211
  case "QQQQQ":
2171
- return n.quarter(e, {
2212
+ return a.quarter(e, {
2172
2213
  width: "narrow",
2173
2214
  context: "formatting"
2174
2215
  });
2175
2216
  case "QQQQ":
2176
2217
  default:
2177
- return n.quarter(e, {
2218
+ return a.quarter(e, {
2178
2219
  width: "wide",
2179
2220
  context: "formatting"
2180
- }) || n.quarter(e, {
2221
+ }) || a.quarter(e, {
2181
2222
  width: "abbreviated",
2182
2223
  context: "formatting"
2183
- }) || n.quarter(e, {
2224
+ }) || a.quarter(e, {
2184
2225
  width: "narrow",
2185
2226
  context: "formatting"
2186
2227
  });
@@ -2193,53 +2234,53 @@ var fa = /* @__PURE__ */ function(o) {
2193
2234
  }
2194
2235
  }, {
2195
2236
  key: "set",
2196
- value: function(e, i, n) {
2197
- return e.setUTCMonth((n - 1) * 3, 1), e.setUTCHours(0, 0, 0, 0), e;
2237
+ value: function(e, i, a) {
2238
+ return e.setUTCMonth((a - 1) * 3, 1), e.setUTCHours(0, 0, 0, 0), e;
2198
2239
  }
2199
2240
  }]), t;
2200
- }(b), wa = /* @__PURE__ */ function(o) {
2201
- p(t, o);
2202
- var a = y(t);
2241
+ }(T), yn = /* @__PURE__ */ function(o) {
2242
+ w(t, o);
2243
+ var n = y(t);
2203
2244
  function t() {
2204
2245
  var r;
2205
2246
  g(this, t);
2206
- for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
2207
- i[n] = arguments[n];
2208
- return r = a.call.apply(a, [this].concat(i)), c(f(r), "priority", 120), c(f(r), "incompatibleTokens", ["Y", "R", "Q", "M", "L", "w", "I", "d", "D", "i", "e", "c", "t", "T"]), r;
2247
+ for (var e = arguments.length, i = new Array(e), a = 0; a < e; a++)
2248
+ i[a] = arguments[a];
2249
+ return r = n.call.apply(n, [this].concat(i)), d(m(r), "priority", 120), d(m(r), "incompatibleTokens", ["Y", "R", "Q", "M", "L", "w", "I", "d", "D", "i", "e", "c", "t", "T"]), r;
2209
2250
  }
2210
- return w(t, [{
2251
+ return p(t, [{
2211
2252
  key: "parse",
2212
- value: function(e, i, n) {
2253
+ value: function(e, i, a) {
2213
2254
  switch (i) {
2214
2255
  case "q":
2215
2256
  case "qq":
2216
- return k(i.length, e);
2257
+ return x(i.length, e);
2217
2258
  case "qo":
2218
- return n.ordinalNumber(e, {
2259
+ return a.ordinalNumber(e, {
2219
2260
  unit: "quarter"
2220
2261
  });
2221
2262
  case "qqq":
2222
- return n.quarter(e, {
2263
+ return a.quarter(e, {
2223
2264
  width: "abbreviated",
2224
2265
  context: "standalone"
2225
- }) || n.quarter(e, {
2266
+ }) || a.quarter(e, {
2226
2267
  width: "narrow",
2227
2268
  context: "standalone"
2228
2269
  });
2229
2270
  case "qqqqq":
2230
- return n.quarter(e, {
2271
+ return a.quarter(e, {
2231
2272
  width: "narrow",
2232
2273
  context: "standalone"
2233
2274
  });
2234
2275
  case "qqqq":
2235
2276
  default:
2236
- return n.quarter(e, {
2277
+ return a.quarter(e, {
2237
2278
  width: "wide",
2238
2279
  context: "standalone"
2239
- }) || n.quarter(e, {
2280
+ }) || a.quarter(e, {
2240
2281
  width: "abbreviated",
2241
2282
  context: "standalone"
2242
- }) || n.quarter(e, {
2283
+ }) || a.quarter(e, {
2243
2284
  width: "narrow",
2244
2285
  context: "standalone"
2245
2286
  });
@@ -2252,57 +2293,57 @@ var fa = /* @__PURE__ */ function(o) {
2252
2293
  }
2253
2294
  }, {
2254
2295
  key: "set",
2255
- value: function(e, i, n) {
2256
- return e.setUTCMonth((n - 1) * 3, 1), e.setUTCHours(0, 0, 0, 0), e;
2296
+ value: function(e, i, a) {
2297
+ return e.setUTCMonth((a - 1) * 3, 1), e.setUTCHours(0, 0, 0, 0), e;
2257
2298
  }
2258
2299
  }]), t;
2259
- }(b), pa = /* @__PURE__ */ function(o) {
2260
- p(t, o);
2261
- var a = y(t);
2300
+ }(T), bn = /* @__PURE__ */ function(o) {
2301
+ w(t, o);
2302
+ var n = y(t);
2262
2303
  function t() {
2263
2304
  var r;
2264
2305
  g(this, t);
2265
- for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
2266
- i[n] = arguments[n];
2267
- return r = a.call.apply(a, [this].concat(i)), c(f(r), "incompatibleTokens", ["Y", "R", "q", "Q", "L", "w", "I", "D", "i", "e", "c", "t", "T"]), c(f(r), "priority", 110), r;
2306
+ for (var e = arguments.length, i = new Array(e), a = 0; a < e; a++)
2307
+ i[a] = arguments[a];
2308
+ return r = n.call.apply(n, [this].concat(i)), d(m(r), "incompatibleTokens", ["Y", "R", "q", "Q", "L", "w", "I", "D", "i", "e", "c", "t", "T"]), d(m(r), "priority", 110), r;
2268
2309
  }
2269
- return w(t, [{
2310
+ return p(t, [{
2270
2311
  key: "parse",
2271
- value: function(e, i, n) {
2312
+ value: function(e, i, a) {
2272
2313
  var u = function(l) {
2273
2314
  return l - 1;
2274
2315
  };
2275
2316
  switch (i) {
2276
2317
  case "M":
2277
- return x(M(C.month, e), u);
2318
+ return $(M(U.month, e), u);
2278
2319
  case "MM":
2279
- return x(k(2, e), u);
2320
+ return $(x(2, e), u);
2280
2321
  case "Mo":
2281
- return x(n.ordinalNumber(e, {
2322
+ return $(a.ordinalNumber(e, {
2282
2323
  unit: "month"
2283
2324
  }), u);
2284
2325
  case "MMM":
2285
- return n.month(e, {
2326
+ return a.month(e, {
2286
2327
  width: "abbreviated",
2287
2328
  context: "formatting"
2288
- }) || n.month(e, {
2329
+ }) || a.month(e, {
2289
2330
  width: "narrow",
2290
2331
  context: "formatting"
2291
2332
  });
2292
2333
  case "MMMMM":
2293
- return n.month(e, {
2334
+ return a.month(e, {
2294
2335
  width: "narrow",
2295
2336
  context: "formatting"
2296
2337
  });
2297
2338
  case "MMMM":
2298
2339
  default:
2299
- return n.month(e, {
2340
+ return a.month(e, {
2300
2341
  width: "wide",
2301
2342
  context: "formatting"
2302
- }) || n.month(e, {
2343
+ }) || a.month(e, {
2303
2344
  width: "abbreviated",
2304
2345
  context: "formatting"
2305
- }) || n.month(e, {
2346
+ }) || a.month(e, {
2306
2347
  width: "narrow",
2307
2348
  context: "formatting"
2308
2349
  });
@@ -2315,57 +2356,57 @@ var fa = /* @__PURE__ */ function(o) {
2315
2356
  }
2316
2357
  }, {
2317
2358
  key: "set",
2318
- value: function(e, i, n) {
2319
- return e.setUTCMonth(n, 1), e.setUTCHours(0, 0, 0, 0), e;
2359
+ value: function(e, i, a) {
2360
+ return e.setUTCMonth(a, 1), e.setUTCHours(0, 0, 0, 0), e;
2320
2361
  }
2321
2362
  }]), t;
2322
- }(b), ya = /* @__PURE__ */ function(o) {
2323
- p(t, o);
2324
- var a = y(t);
2363
+ }(T), Tn = /* @__PURE__ */ function(o) {
2364
+ w(t, o);
2365
+ var n = y(t);
2325
2366
  function t() {
2326
2367
  var r;
2327
2368
  g(this, t);
2328
- for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
2329
- i[n] = arguments[n];
2330
- return r = a.call.apply(a, [this].concat(i)), c(f(r), "priority", 110), c(f(r), "incompatibleTokens", ["Y", "R", "q", "Q", "M", "w", "I", "D", "i", "e", "c", "t", "T"]), r;
2369
+ for (var e = arguments.length, i = new Array(e), a = 0; a < e; a++)
2370
+ i[a] = arguments[a];
2371
+ return r = n.call.apply(n, [this].concat(i)), d(m(r), "priority", 110), d(m(r), "incompatibleTokens", ["Y", "R", "q", "Q", "M", "w", "I", "D", "i", "e", "c", "t", "T"]), r;
2331
2372
  }
2332
- return w(t, [{
2373
+ return p(t, [{
2333
2374
  key: "parse",
2334
- value: function(e, i, n) {
2375
+ value: function(e, i, a) {
2335
2376
  var u = function(l) {
2336
2377
  return l - 1;
2337
2378
  };
2338
2379
  switch (i) {
2339
2380
  case "L":
2340
- return x(M(C.month, e), u);
2381
+ return $(M(U.month, e), u);
2341
2382
  case "LL":
2342
- return x(k(2, e), u);
2383
+ return $(x(2, e), u);
2343
2384
  case "Lo":
2344
- return x(n.ordinalNumber(e, {
2385
+ return $(a.ordinalNumber(e, {
2345
2386
  unit: "month"
2346
2387
  }), u);
2347
2388
  case "LLL":
2348
- return n.month(e, {
2389
+ return a.month(e, {
2349
2390
  width: "abbreviated",
2350
2391
  context: "standalone"
2351
- }) || n.month(e, {
2392
+ }) || a.month(e, {
2352
2393
  width: "narrow",
2353
2394
  context: "standalone"
2354
2395
  });
2355
2396
  case "LLLLL":
2356
- return n.month(e, {
2397
+ return a.month(e, {
2357
2398
  width: "narrow",
2358
2399
  context: "standalone"
2359
2400
  });
2360
2401
  case "LLLL":
2361
2402
  default:
2362
- return n.month(e, {
2403
+ return a.month(e, {
2363
2404
  width: "wide",
2364
2405
  context: "standalone"
2365
- }) || n.month(e, {
2406
+ }) || a.month(e, {
2366
2407
  width: "abbreviated",
2367
2408
  context: "standalone"
2368
- }) || n.month(e, {
2409
+ }) || a.month(e, {
2369
2410
  width: "narrow",
2370
2411
  context: "standalone"
2371
2412
  });
@@ -2378,38 +2419,38 @@ var fa = /* @__PURE__ */ function(o) {
2378
2419
  }
2379
2420
  }, {
2380
2421
  key: "set",
2381
- value: function(e, i, n) {
2382
- return e.setUTCMonth(n, 1), e.setUTCHours(0, 0, 0, 0), e;
2422
+ value: function(e, i, a) {
2423
+ return e.setUTCMonth(a, 1), e.setUTCHours(0, 0, 0, 0), e;
2383
2424
  }
2384
2425
  }]), t;
2385
- }(b);
2386
- function ba(o, a, t) {
2387
- O(2, arguments);
2388
- var r = _(o), e = L(a), i = st(r, t) - e;
2426
+ }(T);
2427
+ function Dn(o, n, t) {
2428
+ Y(2, arguments);
2429
+ var r = S(o), e = q(n), i = st(r, t) - e;
2389
2430
  return r.setUTCDate(r.getUTCDate() - i * 7), r;
2390
2431
  }
2391
- var Ta = /* @__PURE__ */ function(o) {
2392
- p(t, o);
2393
- var a = y(t);
2432
+ var kn = /* @__PURE__ */ function(o) {
2433
+ w(t, o);
2434
+ var n = y(t);
2394
2435
  function t() {
2395
2436
  var r;
2396
2437
  g(this, t);
2397
- for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
2398
- i[n] = arguments[n];
2399
- return r = a.call.apply(a, [this].concat(i)), c(f(r), "priority", 100), c(f(r), "incompatibleTokens", ["y", "R", "u", "q", "Q", "M", "L", "I", "d", "D", "i", "t", "T"]), r;
2438
+ for (var e = arguments.length, i = new Array(e), a = 0; a < e; a++)
2439
+ i[a] = arguments[a];
2440
+ return r = n.call.apply(n, [this].concat(i)), d(m(r), "priority", 100), d(m(r), "incompatibleTokens", ["y", "R", "u", "q", "Q", "M", "L", "I", "d", "D", "i", "t", "T"]), r;
2400
2441
  }
2401
- return w(t, [{
2442
+ return p(t, [{
2402
2443
  key: "parse",
2403
- value: function(e, i, n) {
2444
+ value: function(e, i, a) {
2404
2445
  switch (i) {
2405
2446
  case "w":
2406
- return M(C.week, e);
2447
+ return M(U.week, e);
2407
2448
  case "wo":
2408
- return n.ordinalNumber(e, {
2449
+ return a.ordinalNumber(e, {
2409
2450
  unit: "week"
2410
2451
  });
2411
2452
  default:
2412
- return k(i.length, e);
2453
+ return x(i.length, e);
2413
2454
  }
2414
2455
  }
2415
2456
  }, {
@@ -2419,38 +2460,38 @@ var Ta = /* @__PURE__ */ function(o) {
2419
2460
  }
2420
2461
  }, {
2421
2462
  key: "set",
2422
- value: function(e, i, n, u) {
2423
- return oe(ba(e, n, u), u);
2463
+ value: function(e, i, a, u) {
2464
+ return se(Dn(e, a, u), u);
2424
2465
  }
2425
2466
  }]), t;
2426
- }(b);
2427
- function Da(o, a) {
2428
- O(2, arguments);
2429
- var t = _(o), r = L(a), e = ut(t) - r;
2467
+ }(T);
2468
+ function Pn(o, n) {
2469
+ Y(2, arguments);
2470
+ var t = S(o), r = q(n), e = ut(t) - r;
2430
2471
  return t.setUTCDate(t.getUTCDate() - e * 7), t;
2431
2472
  }
2432
- var Pa = /* @__PURE__ */ function(o) {
2433
- p(t, o);
2434
- var a = y(t);
2473
+ var Mn = /* @__PURE__ */ function(o) {
2474
+ w(t, o);
2475
+ var n = y(t);
2435
2476
  function t() {
2436
2477
  var r;
2437
2478
  g(this, t);
2438
- for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
2439
- i[n] = arguments[n];
2440
- return r = a.call.apply(a, [this].concat(i)), c(f(r), "priority", 100), c(f(r), "incompatibleTokens", ["y", "Y", "u", "q", "Q", "M", "L", "w", "d", "D", "e", "c", "t", "T"]), r;
2479
+ for (var e = arguments.length, i = new Array(e), a = 0; a < e; a++)
2480
+ i[a] = arguments[a];
2481
+ return r = n.call.apply(n, [this].concat(i)), d(m(r), "priority", 100), d(m(r), "incompatibleTokens", ["y", "Y", "u", "q", "Q", "M", "L", "w", "d", "D", "e", "c", "t", "T"]), r;
2441
2482
  }
2442
- return w(t, [{
2483
+ return p(t, [{
2443
2484
  key: "parse",
2444
- value: function(e, i, n) {
2485
+ value: function(e, i, a) {
2445
2486
  switch (i) {
2446
2487
  case "I":
2447
- return M(C.week, e);
2488
+ return M(U.week, e);
2448
2489
  case "Io":
2449
- return n.ordinalNumber(e, {
2490
+ return a.ordinalNumber(e, {
2450
2491
  unit: "week"
2451
2492
  });
2452
2493
  default:
2453
- return k(i.length, e);
2494
+ return x(i.length, e);
2454
2495
  }
2455
2496
  }
2456
2497
  }, {
@@ -2460,145 +2501,145 @@ var Pa = /* @__PURE__ */ function(o) {
2460
2501
  }
2461
2502
  }, {
2462
2503
  key: "set",
2463
- value: function(e, i, n) {
2464
- return le(Da(e, n));
2504
+ value: function(e, i, a) {
2505
+ return de(Pn(e, a));
2465
2506
  }
2466
2507
  }]), t;
2467
- }(b), Ma = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], ka = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Ca = /* @__PURE__ */ function(o) {
2468
- p(t, o);
2469
- var a = y(t);
2508
+ }(T), Cn = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], xn = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], On = /* @__PURE__ */ function(o) {
2509
+ w(t, o);
2510
+ var n = y(t);
2470
2511
  function t() {
2471
2512
  var r;
2472
2513
  g(this, t);
2473
- for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
2474
- i[n] = arguments[n];
2475
- return r = a.call.apply(a, [this].concat(i)), c(f(r), "priority", 90), c(f(r), "subPriority", 1), c(f(r), "incompatibleTokens", ["Y", "R", "q", "Q", "w", "I", "D", "i", "e", "c", "t", "T"]), r;
2514
+ for (var e = arguments.length, i = new Array(e), a = 0; a < e; a++)
2515
+ i[a] = arguments[a];
2516
+ return r = n.call.apply(n, [this].concat(i)), d(m(r), "priority", 90), d(m(r), "subPriority", 1), d(m(r), "incompatibleTokens", ["Y", "R", "q", "Q", "w", "I", "D", "i", "e", "c", "t", "T"]), r;
2476
2517
  }
2477
- return w(t, [{
2518
+ return p(t, [{
2478
2519
  key: "parse",
2479
- value: function(e, i, n) {
2520
+ value: function(e, i, a) {
2480
2521
  switch (i) {
2481
2522
  case "d":
2482
- return M(C.date, e);
2523
+ return M(U.date, e);
2483
2524
  case "do":
2484
- return n.ordinalNumber(e, {
2525
+ return a.ordinalNumber(e, {
2485
2526
  unit: "date"
2486
2527
  });
2487
2528
  default:
2488
- return k(i.length, e);
2529
+ return x(i.length, e);
2489
2530
  }
2490
2531
  }
2491
2532
  }, {
2492
2533
  key: "validate",
2493
2534
  value: function(e, i) {
2494
- var n = e.getUTCFullYear(), u = pt(n), s = e.getUTCMonth();
2495
- return u ? i >= 1 && i <= ka[s] : i >= 1 && i <= Ma[s];
2535
+ var a = e.getUTCFullYear(), u = wt(a), s = e.getUTCMonth();
2536
+ return u ? i >= 1 && i <= xn[s] : i >= 1 && i <= Cn[s];
2496
2537
  }
2497
2538
  }, {
2498
2539
  key: "set",
2499
- value: function(e, i, n) {
2500
- return e.setUTCDate(n), e.setUTCHours(0, 0, 0, 0), e;
2540
+ value: function(e, i, a) {
2541
+ return e.setUTCDate(a), e.setUTCHours(0, 0, 0, 0), e;
2501
2542
  }
2502
2543
  }]), t;
2503
- }(b), xa = /* @__PURE__ */ function(o) {
2504
- p(t, o);
2505
- var a = y(t);
2544
+ }(T), En = /* @__PURE__ */ function(o) {
2545
+ w(t, o);
2546
+ var n = y(t);
2506
2547
  function t() {
2507
2548
  var r;
2508
2549
  g(this, t);
2509
- for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
2510
- i[n] = arguments[n];
2511
- return r = a.call.apply(a, [this].concat(i)), c(f(r), "priority", 90), c(f(r), "subpriority", 1), c(f(r), "incompatibleTokens", ["Y", "R", "q", "Q", "M", "L", "w", "I", "d", "E", "i", "e", "c", "t", "T"]), r;
2550
+ for (var e = arguments.length, i = new Array(e), a = 0; a < e; a++)
2551
+ i[a] = arguments[a];
2552
+ return r = n.call.apply(n, [this].concat(i)), d(m(r), "priority", 90), d(m(r), "subpriority", 1), d(m(r), "incompatibleTokens", ["Y", "R", "q", "Q", "M", "L", "w", "I", "d", "E", "i", "e", "c", "t", "T"]), r;
2512
2553
  }
2513
- return w(t, [{
2554
+ return p(t, [{
2514
2555
  key: "parse",
2515
- value: function(e, i, n) {
2556
+ value: function(e, i, a) {
2516
2557
  switch (i) {
2517
2558
  case "D":
2518
2559
  case "DD":
2519
- return M(C.dayOfYear, e);
2560
+ return M(U.dayOfYear, e);
2520
2561
  case "Do":
2521
- return n.ordinalNumber(e, {
2562
+ return a.ordinalNumber(e, {
2522
2563
  unit: "date"
2523
2564
  });
2524
2565
  default:
2525
- return k(i.length, e);
2566
+ return x(i.length, e);
2526
2567
  }
2527
2568
  }
2528
2569
  }, {
2529
2570
  key: "validate",
2530
2571
  value: function(e, i) {
2531
- var n = e.getUTCFullYear(), u = pt(n);
2572
+ var a = e.getUTCFullYear(), u = wt(a);
2532
2573
  return u ? i >= 1 && i <= 366 : i >= 1 && i <= 365;
2533
2574
  }
2534
2575
  }, {
2535
2576
  key: "set",
2536
- value: function(e, i, n) {
2537
- return e.setUTCMonth(0, n), e.setUTCHours(0, 0, 0, 0), e;
2577
+ value: function(e, i, a) {
2578
+ return e.setUTCMonth(0, a), e.setUTCHours(0, 0, 0, 0), e;
2538
2579
  }
2539
2580
  }]), t;
2540
- }(b);
2541
- function He(o, a, t) {
2542
- var r, e, i, n, u, s, l, d;
2543
- O(2, arguments);
2544
- var m = ce(), h = L((r = (e = (i = (n = t == null ? void 0 : t.weekStartsOn) !== null && n !== void 0 ? n : t == null || (u = t.locale) === null || u === void 0 || (s = u.options) === null || s === void 0 ? void 0 : s.weekStartsOn) !== null && i !== void 0 ? i : m.weekStartsOn) !== null && e !== void 0 ? e : (l = m.locale) === null || l === void 0 || (d = l.options) === null || d === void 0 ? void 0 : d.weekStartsOn) !== null && r !== void 0 ? r : 0);
2581
+ }(T);
2582
+ function Ie(o, n, t) {
2583
+ var r, e, i, a, u, s, l, c;
2584
+ Y(2, arguments);
2585
+ var f = fe(), h = q((r = (e = (i = (a = t == null ? void 0 : t.weekStartsOn) !== null && a !== void 0 ? a : t == null || (u = t.locale) === null || u === void 0 || (s = u.options) === null || s === void 0 ? void 0 : s.weekStartsOn) !== null && i !== void 0 ? i : f.weekStartsOn) !== null && e !== void 0 ? e : (l = f.locale) === null || l === void 0 || (c = l.options) === null || c === void 0 ? void 0 : c.weekStartsOn) !== null && r !== void 0 ? r : 0);
2545
2586
  if (!(h >= 0 && h <= 6))
2546
2587
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
2547
- var v = _(o), D = L(a), U = v.getUTCDay(), $ = D % 7, E = ($ + 7) % 7, W = (E < h ? 7 : 0) + D - U;
2548
- return v.setUTCDate(v.getUTCDate() + W), v;
2588
+ var v = S(o), b = q(n), C = v.getUTCDay(), O = b % 7, W = (O + 7) % 7, N = (W < h ? 7 : 0) + b - C;
2589
+ return v.setUTCDate(v.getUTCDate() + N), v;
2549
2590
  }
2550
- var Oa = /* @__PURE__ */ function(o) {
2551
- p(t, o);
2552
- var a = y(t);
2591
+ var Un = /* @__PURE__ */ function(o) {
2592
+ w(t, o);
2593
+ var n = y(t);
2553
2594
  function t() {
2554
2595
  var r;
2555
2596
  g(this, t);
2556
- for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
2557
- i[n] = arguments[n];
2558
- return r = a.call.apply(a, [this].concat(i)), c(f(r), "priority", 90), c(f(r), "incompatibleTokens", ["D", "i", "e", "c", "t", "T"]), r;
2597
+ for (var e = arguments.length, i = new Array(e), a = 0; a < e; a++)
2598
+ i[a] = arguments[a];
2599
+ return r = n.call.apply(n, [this].concat(i)), d(m(r), "priority", 90), d(m(r), "incompatibleTokens", ["D", "i", "e", "c", "t", "T"]), r;
2559
2600
  }
2560
- return w(t, [{
2601
+ return p(t, [{
2561
2602
  key: "parse",
2562
- value: function(e, i, n) {
2603
+ value: function(e, i, a) {
2563
2604
  switch (i) {
2564
2605
  case "E":
2565
2606
  case "EE":
2566
2607
  case "EEE":
2567
- return n.day(e, {
2608
+ return a.day(e, {
2568
2609
  width: "abbreviated",
2569
2610
  context: "formatting"
2570
- }) || n.day(e, {
2611
+ }) || a.day(e, {
2571
2612
  width: "short",
2572
2613
  context: "formatting"
2573
- }) || n.day(e, {
2614
+ }) || a.day(e, {
2574
2615
  width: "narrow",
2575
2616
  context: "formatting"
2576
2617
  });
2577
2618
  case "EEEEE":
2578
- return n.day(e, {
2619
+ return a.day(e, {
2579
2620
  width: "narrow",
2580
2621
  context: "formatting"
2581
2622
  });
2582
2623
  case "EEEEEE":
2583
- return n.day(e, {
2624
+ return a.day(e, {
2584
2625
  width: "short",
2585
2626
  context: "formatting"
2586
- }) || n.day(e, {
2627
+ }) || a.day(e, {
2587
2628
  width: "narrow",
2588
2629
  context: "formatting"
2589
2630
  });
2590
2631
  case "EEEE":
2591
2632
  default:
2592
- return n.day(e, {
2633
+ return a.day(e, {
2593
2634
  width: "wide",
2594
2635
  context: "formatting"
2595
- }) || n.day(e, {
2636
+ }) || a.day(e, {
2596
2637
  width: "abbreviated",
2597
2638
  context: "formatting"
2598
- }) || n.day(e, {
2639
+ }) || a.day(e, {
2599
2640
  width: "short",
2600
2641
  context: "formatting"
2601
- }) || n.day(e, {
2642
+ }) || a.day(e, {
2602
2643
  width: "narrow",
2603
2644
  context: "formatting"
2604
2645
  });
@@ -2611,71 +2652,71 @@ var Oa = /* @__PURE__ */ function(o) {
2611
2652
  }
2612
2653
  }, {
2613
2654
  key: "set",
2614
- value: function(e, i, n, u) {
2615
- return e = He(e, n, u), e.setUTCHours(0, 0, 0, 0), e;
2655
+ value: function(e, i, a, u) {
2656
+ return e = Ie(e, a, u), e.setUTCHours(0, 0, 0, 0), e;
2616
2657
  }
2617
2658
  }]), t;
2618
- }(b), Ea = /* @__PURE__ */ function(o) {
2619
- p(t, o);
2620
- var a = y(t);
2659
+ }(T), $n = /* @__PURE__ */ function(o) {
2660
+ w(t, o);
2661
+ var n = y(t);
2621
2662
  function t() {
2622
2663
  var r;
2623
2664
  g(this, t);
2624
- for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
2625
- i[n] = arguments[n];
2626
- return r = a.call.apply(a, [this].concat(i)), c(f(r), "priority", 90), c(f(r), "incompatibleTokens", ["y", "R", "u", "q", "Q", "M", "L", "I", "d", "D", "E", "i", "c", "t", "T"]), r;
2665
+ for (var e = arguments.length, i = new Array(e), a = 0; a < e; a++)
2666
+ i[a] = arguments[a];
2667
+ return r = n.call.apply(n, [this].concat(i)), d(m(r), "priority", 90), d(m(r), "incompatibleTokens", ["y", "R", "u", "q", "Q", "M", "L", "I", "d", "D", "E", "i", "c", "t", "T"]), r;
2627
2668
  }
2628
- return w(t, [{
2669
+ return p(t, [{
2629
2670
  key: "parse",
2630
- value: function(e, i, n, u) {
2631
- var s = function(d) {
2632
- var m = Math.floor((d - 1) / 7) * 7;
2633
- return (d + u.weekStartsOn + 6) % 7 + m;
2671
+ value: function(e, i, a, u) {
2672
+ var s = function(c) {
2673
+ var f = Math.floor((c - 1) / 7) * 7;
2674
+ return (c + u.weekStartsOn + 6) % 7 + f;
2634
2675
  };
2635
2676
  switch (i) {
2636
2677
  case "e":
2637
2678
  case "ee":
2638
- return x(k(i.length, e), s);
2679
+ return $(x(i.length, e), s);
2639
2680
  case "eo":
2640
- return x(n.ordinalNumber(e, {
2681
+ return $(a.ordinalNumber(e, {
2641
2682
  unit: "day"
2642
2683
  }), s);
2643
2684
  case "eee":
2644
- return n.day(e, {
2685
+ return a.day(e, {
2645
2686
  width: "abbreviated",
2646
2687
  context: "formatting"
2647
- }) || n.day(e, {
2688
+ }) || a.day(e, {
2648
2689
  width: "short",
2649
2690
  context: "formatting"
2650
- }) || n.day(e, {
2691
+ }) || a.day(e, {
2651
2692
  width: "narrow",
2652
2693
  context: "formatting"
2653
2694
  });
2654
2695
  case "eeeee":
2655
- return n.day(e, {
2696
+ return a.day(e, {
2656
2697
  width: "narrow",
2657
2698
  context: "formatting"
2658
2699
  });
2659
2700
  case "eeeeee":
2660
- return n.day(e, {
2701
+ return a.day(e, {
2661
2702
  width: "short",
2662
2703
  context: "formatting"
2663
- }) || n.day(e, {
2704
+ }) || a.day(e, {
2664
2705
  width: "narrow",
2665
2706
  context: "formatting"
2666
2707
  });
2667
2708
  case "eeee":
2668
2709
  default:
2669
- return n.day(e, {
2710
+ return a.day(e, {
2670
2711
  width: "wide",
2671
2712
  context: "formatting"
2672
- }) || n.day(e, {
2713
+ }) || a.day(e, {
2673
2714
  width: "abbreviated",
2674
2715
  context: "formatting"
2675
- }) || n.day(e, {
2716
+ }) || a.day(e, {
2676
2717
  width: "short",
2677
2718
  context: "formatting"
2678
- }) || n.day(e, {
2719
+ }) || a.day(e, {
2679
2720
  width: "narrow",
2680
2721
  context: "formatting"
2681
2722
  });
@@ -2688,71 +2729,71 @@ var Oa = /* @__PURE__ */ function(o) {
2688
2729
  }
2689
2730
  }, {
2690
2731
  key: "set",
2691
- value: function(e, i, n, u) {
2692
- return e = He(e, n, u), e.setUTCHours(0, 0, 0, 0), e;
2732
+ value: function(e, i, a, u) {
2733
+ return e = Ie(e, a, u), e.setUTCHours(0, 0, 0, 0), e;
2693
2734
  }
2694
2735
  }]), t;
2695
- }(b), Ua = /* @__PURE__ */ function(o) {
2696
- p(t, o);
2697
- var a = y(t);
2736
+ }(T), Wn = /* @__PURE__ */ function(o) {
2737
+ w(t, o);
2738
+ var n = y(t);
2698
2739
  function t() {
2699
2740
  var r;
2700
2741
  g(this, t);
2701
- for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
2702
- i[n] = arguments[n];
2703
- return r = a.call.apply(a, [this].concat(i)), c(f(r), "priority", 90), c(f(r), "incompatibleTokens", ["y", "R", "u", "q", "Q", "M", "L", "I", "d", "D", "E", "i", "e", "t", "T"]), r;
2742
+ for (var e = arguments.length, i = new Array(e), a = 0; a < e; a++)
2743
+ i[a] = arguments[a];
2744
+ return r = n.call.apply(n, [this].concat(i)), d(m(r), "priority", 90), d(m(r), "incompatibleTokens", ["y", "R", "u", "q", "Q", "M", "L", "I", "d", "D", "E", "i", "e", "t", "T"]), r;
2704
2745
  }
2705
- return w(t, [{
2746
+ return p(t, [{
2706
2747
  key: "parse",
2707
- value: function(e, i, n, u) {
2708
- var s = function(d) {
2709
- var m = Math.floor((d - 1) / 7) * 7;
2710
- return (d + u.weekStartsOn + 6) % 7 + m;
2748
+ value: function(e, i, a, u) {
2749
+ var s = function(c) {
2750
+ var f = Math.floor((c - 1) / 7) * 7;
2751
+ return (c + u.weekStartsOn + 6) % 7 + f;
2711
2752
  };
2712
2753
  switch (i) {
2713
2754
  case "c":
2714
2755
  case "cc":
2715
- return x(k(i.length, e), s);
2756
+ return $(x(i.length, e), s);
2716
2757
  case "co":
2717
- return x(n.ordinalNumber(e, {
2758
+ return $(a.ordinalNumber(e, {
2718
2759
  unit: "day"
2719
2760
  }), s);
2720
2761
  case "ccc":
2721
- return n.day(e, {
2762
+ return a.day(e, {
2722
2763
  width: "abbreviated",
2723
2764
  context: "standalone"
2724
- }) || n.day(e, {
2765
+ }) || a.day(e, {
2725
2766
  width: "short",
2726
2767
  context: "standalone"
2727
- }) || n.day(e, {
2768
+ }) || a.day(e, {
2728
2769
  width: "narrow",
2729
2770
  context: "standalone"
2730
2771
  });
2731
2772
  case "ccccc":
2732
- return n.day(e, {
2773
+ return a.day(e, {
2733
2774
  width: "narrow",
2734
2775
  context: "standalone"
2735
2776
  });
2736
2777
  case "cccccc":
2737
- return n.day(e, {
2778
+ return a.day(e, {
2738
2779
  width: "short",
2739
2780
  context: "standalone"
2740
- }) || n.day(e, {
2781
+ }) || a.day(e, {
2741
2782
  width: "narrow",
2742
2783
  context: "standalone"
2743
2784
  });
2744
2785
  case "cccc":
2745
2786
  default:
2746
- return n.day(e, {
2787
+ return a.day(e, {
2747
2788
  width: "wide",
2748
2789
  context: "standalone"
2749
- }) || n.day(e, {
2790
+ }) || a.day(e, {
2750
2791
  width: "abbreviated",
2751
2792
  context: "standalone"
2752
- }) || n.day(e, {
2793
+ }) || a.day(e, {
2753
2794
  width: "short",
2754
2795
  context: "standalone"
2755
- }) || n.day(e, {
2796
+ }) || a.day(e, {
2756
2797
  width: "narrow",
2757
2798
  context: "standalone"
2758
2799
  });
@@ -2765,78 +2806,78 @@ var Oa = /* @__PURE__ */ function(o) {
2765
2806
  }
2766
2807
  }, {
2767
2808
  key: "set",
2768
- value: function(e, i, n, u) {
2769
- return e = He(e, n, u), e.setUTCHours(0, 0, 0, 0), e;
2809
+ value: function(e, i, a, u) {
2810
+ return e = Ie(e, a, u), e.setUTCHours(0, 0, 0, 0), e;
2770
2811
  }
2771
2812
  }]), t;
2772
- }(b);
2773
- function $a(o, a) {
2774
- O(2, arguments);
2775
- var t = L(a);
2813
+ }(T);
2814
+ function Nn(o, n) {
2815
+ Y(2, arguments);
2816
+ var t = q(n);
2776
2817
  t % 7 === 0 && (t = t - 7);
2777
- var r = 1, e = _(o), i = e.getUTCDay(), n = t % 7, u = (n + 7) % 7, s = (u < r ? 7 : 0) + t - i;
2818
+ var r = 1, e = S(o), i = e.getUTCDay(), a = t % 7, u = (a + 7) % 7, s = (u < r ? 7 : 0) + t - i;
2778
2819
  return e.setUTCDate(e.getUTCDate() + s), e;
2779
2820
  }
2780
- var Wa = /* @__PURE__ */ function(o) {
2781
- p(t, o);
2782
- var a = y(t);
2821
+ var Yn = /* @__PURE__ */ function(o) {
2822
+ w(t, o);
2823
+ var n = y(t);
2783
2824
  function t() {
2784
2825
  var r;
2785
2826
  g(this, t);
2786
- for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
2787
- i[n] = arguments[n];
2788
- return r = a.call.apply(a, [this].concat(i)), c(f(r), "priority", 90), c(f(r), "incompatibleTokens", ["y", "Y", "u", "q", "Q", "M", "L", "w", "d", "D", "E", "e", "c", "t", "T"]), r;
2827
+ for (var e = arguments.length, i = new Array(e), a = 0; a < e; a++)
2828
+ i[a] = arguments[a];
2829
+ return r = n.call.apply(n, [this].concat(i)), d(m(r), "priority", 90), d(m(r), "incompatibleTokens", ["y", "Y", "u", "q", "Q", "M", "L", "w", "d", "D", "E", "e", "c", "t", "T"]), r;
2789
2830
  }
2790
- return w(t, [{
2831
+ return p(t, [{
2791
2832
  key: "parse",
2792
- value: function(e, i, n) {
2833
+ value: function(e, i, a) {
2793
2834
  var u = function(l) {
2794
2835
  return l === 0 ? 7 : l;
2795
2836
  };
2796
2837
  switch (i) {
2797
2838
  case "i":
2798
2839
  case "ii":
2799
- return k(i.length, e);
2840
+ return x(i.length, e);
2800
2841
  case "io":
2801
- return n.ordinalNumber(e, {
2842
+ return a.ordinalNumber(e, {
2802
2843
  unit: "day"
2803
2844
  });
2804
2845
  case "iii":
2805
- return x(n.day(e, {
2846
+ return $(a.day(e, {
2806
2847
  width: "abbreviated",
2807
2848
  context: "formatting"
2808
- }) || n.day(e, {
2849
+ }) || a.day(e, {
2809
2850
  width: "short",
2810
2851
  context: "formatting"
2811
- }) || n.day(e, {
2852
+ }) || a.day(e, {
2812
2853
  width: "narrow",
2813
2854
  context: "formatting"
2814
2855
  }), u);
2815
2856
  case "iiiii":
2816
- return x(n.day(e, {
2857
+ return $(a.day(e, {
2817
2858
  width: "narrow",
2818
2859
  context: "formatting"
2819
2860
  }), u);
2820
2861
  case "iiiiii":
2821
- return x(n.day(e, {
2862
+ return $(a.day(e, {
2822
2863
  width: "short",
2823
2864
  context: "formatting"
2824
- }) || n.day(e, {
2865
+ }) || a.day(e, {
2825
2866
  width: "narrow",
2826
2867
  context: "formatting"
2827
2868
  }), u);
2828
2869
  case "iiii":
2829
2870
  default:
2830
- return x(n.day(e, {
2871
+ return $(a.day(e, {
2831
2872
  width: "wide",
2832
2873
  context: "formatting"
2833
- }) || n.day(e, {
2874
+ }) || a.day(e, {
2834
2875
  width: "abbreviated",
2835
2876
  context: "formatting"
2836
- }) || n.day(e, {
2877
+ }) || a.day(e, {
2837
2878
  width: "short",
2838
2879
  context: "formatting"
2839
- }) || n.day(e, {
2880
+ }) || a.day(e, {
2840
2881
  width: "narrow",
2841
2882
  context: "formatting"
2842
2883
  }), u);
@@ -2849,48 +2890,48 @@ var Wa = /* @__PURE__ */ function(o) {
2849
2890
  }
2850
2891
  }, {
2851
2892
  key: "set",
2852
- value: function(e, i, n) {
2853
- return e = $a(e, n), e.setUTCHours(0, 0, 0, 0), e;
2893
+ value: function(e, i, a) {
2894
+ return e = Nn(e, a), e.setUTCHours(0, 0, 0, 0), e;
2854
2895
  }
2855
2896
  }]), t;
2856
- }(b), Ya = /* @__PURE__ */ function(o) {
2857
- p(t, o);
2858
- var a = y(t);
2897
+ }(T), _n = /* @__PURE__ */ function(o) {
2898
+ w(t, o);
2899
+ var n = y(t);
2859
2900
  function t() {
2860
2901
  var r;
2861
2902
  g(this, t);
2862
- for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
2863
- i[n] = arguments[n];
2864
- return r = a.call.apply(a, [this].concat(i)), c(f(r), "priority", 80), c(f(r), "incompatibleTokens", ["b", "B", "H", "k", "t", "T"]), r;
2903
+ for (var e = arguments.length, i = new Array(e), a = 0; a < e; a++)
2904
+ i[a] = arguments[a];
2905
+ return r = n.call.apply(n, [this].concat(i)), d(m(r), "priority", 80), d(m(r), "incompatibleTokens", ["b", "B", "H", "k", "t", "T"]), r;
2865
2906
  }
2866
- return w(t, [{
2907
+ return p(t, [{
2867
2908
  key: "parse",
2868
- value: function(e, i, n) {
2909
+ value: function(e, i, a) {
2869
2910
  switch (i) {
2870
2911
  case "a":
2871
2912
  case "aa":
2872
2913
  case "aaa":
2873
- return n.dayPeriod(e, {
2914
+ return a.dayPeriod(e, {
2874
2915
  width: "abbreviated",
2875
2916
  context: "formatting"
2876
- }) || n.dayPeriod(e, {
2917
+ }) || a.dayPeriod(e, {
2877
2918
  width: "narrow",
2878
2919
  context: "formatting"
2879
2920
  });
2880
2921
  case "aaaaa":
2881
- return n.dayPeriod(e, {
2922
+ return a.dayPeriod(e, {
2882
2923
  width: "narrow",
2883
2924
  context: "formatting"
2884
2925
  });
2885
2926
  case "aaaa":
2886
2927
  default:
2887
- return n.dayPeriod(e, {
2928
+ return a.dayPeriod(e, {
2888
2929
  width: "wide",
2889
2930
  context: "formatting"
2890
- }) || n.dayPeriod(e, {
2931
+ }) || a.dayPeriod(e, {
2891
2932
  width: "abbreviated",
2892
2933
  context: "formatting"
2893
- }) || n.dayPeriod(e, {
2934
+ }) || a.dayPeriod(e, {
2894
2935
  width: "narrow",
2895
2936
  context: "formatting"
2896
2937
  });
@@ -2898,48 +2939,48 @@ var Wa = /* @__PURE__ */ function(o) {
2898
2939
  }
2899
2940
  }, {
2900
2941
  key: "set",
2901
- value: function(e, i, n) {
2902
- return e.setUTCHours(Se(n), 0, 0, 0), e;
2942
+ value: function(e, i, a) {
2943
+ return e.setUTCHours(Se(a), 0, 0, 0), e;
2903
2944
  }
2904
2945
  }]), t;
2905
- }(b), Na = /* @__PURE__ */ function(o) {
2906
- p(t, o);
2907
- var a = y(t);
2946
+ }(T), An = /* @__PURE__ */ function(o) {
2947
+ w(t, o);
2948
+ var n = y(t);
2908
2949
  function t() {
2909
2950
  var r;
2910
2951
  g(this, t);
2911
- for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
2912
- i[n] = arguments[n];
2913
- return r = a.call.apply(a, [this].concat(i)), c(f(r), "priority", 80), c(f(r), "incompatibleTokens", ["a", "B", "H", "k", "t", "T"]), r;
2952
+ for (var e = arguments.length, i = new Array(e), a = 0; a < e; a++)
2953
+ i[a] = arguments[a];
2954
+ return r = n.call.apply(n, [this].concat(i)), d(m(r), "priority", 80), d(m(r), "incompatibleTokens", ["a", "B", "H", "k", "t", "T"]), r;
2914
2955
  }
2915
- return w(t, [{
2956
+ return p(t, [{
2916
2957
  key: "parse",
2917
- value: function(e, i, n) {
2958
+ value: function(e, i, a) {
2918
2959
  switch (i) {
2919
2960
  case "b":
2920
2961
  case "bb":
2921
2962
  case "bbb":
2922
- return n.dayPeriod(e, {
2963
+ return a.dayPeriod(e, {
2923
2964
  width: "abbreviated",
2924
2965
  context: "formatting"
2925
- }) || n.dayPeriod(e, {
2966
+ }) || a.dayPeriod(e, {
2926
2967
  width: "narrow",
2927
2968
  context: "formatting"
2928
2969
  });
2929
2970
  case "bbbbb":
2930
- return n.dayPeriod(e, {
2971
+ return a.dayPeriod(e, {
2931
2972
  width: "narrow",
2932
2973
  context: "formatting"
2933
2974
  });
2934
2975
  case "bbbb":
2935
2976
  default:
2936
- return n.dayPeriod(e, {
2977
+ return a.dayPeriod(e, {
2937
2978
  width: "wide",
2938
2979
  context: "formatting"
2939
- }) || n.dayPeriod(e, {
2980
+ }) || a.dayPeriod(e, {
2940
2981
  width: "abbreviated",
2941
2982
  context: "formatting"
2942
- }) || n.dayPeriod(e, {
2983
+ }) || a.dayPeriod(e, {
2943
2984
  width: "narrow",
2944
2985
  context: "formatting"
2945
2986
  });
@@ -2947,48 +2988,48 @@ var Wa = /* @__PURE__ */ function(o) {
2947
2988
  }
2948
2989
  }, {
2949
2990
  key: "set",
2950
- value: function(e, i, n) {
2951
- return e.setUTCHours(Se(n), 0, 0, 0), e;
2991
+ value: function(e, i, a) {
2992
+ return e.setUTCHours(Se(a), 0, 0, 0), e;
2952
2993
  }
2953
2994
  }]), t;
2954
- }(b), _a = /* @__PURE__ */ function(o) {
2955
- p(t, o);
2956
- var a = y(t);
2995
+ }(T), Ln = /* @__PURE__ */ function(o) {
2996
+ w(t, o);
2997
+ var n = y(t);
2957
2998
  function t() {
2958
2999
  var r;
2959
3000
  g(this, t);
2960
- for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
2961
- i[n] = arguments[n];
2962
- return r = a.call.apply(a, [this].concat(i)), c(f(r), "priority", 80), c(f(r), "incompatibleTokens", ["a", "b", "t", "T"]), r;
3001
+ for (var e = arguments.length, i = new Array(e), a = 0; a < e; a++)
3002
+ i[a] = arguments[a];
3003
+ return r = n.call.apply(n, [this].concat(i)), d(m(r), "priority", 80), d(m(r), "incompatibleTokens", ["a", "b", "t", "T"]), r;
2963
3004
  }
2964
- return w(t, [{
3005
+ return p(t, [{
2965
3006
  key: "parse",
2966
- value: function(e, i, n) {
3007
+ value: function(e, i, a) {
2967
3008
  switch (i) {
2968
3009
  case "B":
2969
3010
  case "BB":
2970
3011
  case "BBB":
2971
- return n.dayPeriod(e, {
3012
+ return a.dayPeriod(e, {
2972
3013
  width: "abbreviated",
2973
3014
  context: "formatting"
2974
- }) || n.dayPeriod(e, {
3015
+ }) || a.dayPeriod(e, {
2975
3016
  width: "narrow",
2976
3017
  context: "formatting"
2977
3018
  });
2978
3019
  case "BBBBB":
2979
- return n.dayPeriod(e, {
3020
+ return a.dayPeriod(e, {
2980
3021
  width: "narrow",
2981
3022
  context: "formatting"
2982
3023
  });
2983
3024
  case "BBBB":
2984
3025
  default:
2985
- return n.dayPeriod(e, {
3026
+ return a.dayPeriod(e, {
2986
3027
  width: "wide",
2987
3028
  context: "formatting"
2988
- }) || n.dayPeriod(e, {
3029
+ }) || a.dayPeriod(e, {
2989
3030
  width: "abbreviated",
2990
3031
  context: "formatting"
2991
- }) || n.dayPeriod(e, {
3032
+ }) || a.dayPeriod(e, {
2992
3033
  width: "narrow",
2993
3034
  context: "formatting"
2994
3035
  });
@@ -2996,32 +3037,32 @@ var Wa = /* @__PURE__ */ function(o) {
2996
3037
  }
2997
3038
  }, {
2998
3039
  key: "set",
2999
- value: function(e, i, n) {
3000
- return e.setUTCHours(Se(n), 0, 0, 0), e;
3040
+ value: function(e, i, a) {
3041
+ return e.setUTCHours(Se(a), 0, 0, 0), e;
3001
3042
  }
3002
3043
  }]), t;
3003
- }(b), Aa = /* @__PURE__ */ function(o) {
3004
- p(t, o);
3005
- var a = y(t);
3044
+ }(T), Sn = /* @__PURE__ */ function(o) {
3045
+ w(t, o);
3046
+ var n = y(t);
3006
3047
  function t() {
3007
3048
  var r;
3008
3049
  g(this, t);
3009
- for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
3010
- i[n] = arguments[n];
3011
- return r = a.call.apply(a, [this].concat(i)), c(f(r), "priority", 70), c(f(r), "incompatibleTokens", ["H", "K", "k", "t", "T"]), r;
3050
+ for (var e = arguments.length, i = new Array(e), a = 0; a < e; a++)
3051
+ i[a] = arguments[a];
3052
+ return r = n.call.apply(n, [this].concat(i)), d(m(r), "priority", 70), d(m(r), "incompatibleTokens", ["H", "K", "k", "t", "T"]), r;
3012
3053
  }
3013
- return w(t, [{
3054
+ return p(t, [{
3014
3055
  key: "parse",
3015
- value: function(e, i, n) {
3056
+ value: function(e, i, a) {
3016
3057
  switch (i) {
3017
3058
  case "h":
3018
- return M(C.hour12h, e);
3059
+ return M(U.hour12h, e);
3019
3060
  case "ho":
3020
- return n.ordinalNumber(e, {
3061
+ return a.ordinalNumber(e, {
3021
3062
  unit: "hour"
3022
3063
  });
3023
3064
  default:
3024
- return k(i.length, e);
3065
+ return x(i.length, e);
3025
3066
  }
3026
3067
  }
3027
3068
  }, {
@@ -3031,33 +3072,33 @@ var Wa = /* @__PURE__ */ function(o) {
3031
3072
  }
3032
3073
  }, {
3033
3074
  key: "set",
3034
- value: function(e, i, n) {
3075
+ value: function(e, i, a) {
3035
3076
  var u = e.getUTCHours() >= 12;
3036
- return u && n < 12 ? e.setUTCHours(n + 12, 0, 0, 0) : !u && n === 12 ? e.setUTCHours(0, 0, 0, 0) : e.setUTCHours(n, 0, 0, 0), e;
3077
+ return u && a < 12 ? e.setUTCHours(a + 12, 0, 0, 0) : !u && a === 12 ? e.setUTCHours(0, 0, 0, 0) : e.setUTCHours(a, 0, 0, 0), e;
3037
3078
  }
3038
3079
  }]), t;
3039
- }(b), La = /* @__PURE__ */ function(o) {
3040
- p(t, o);
3041
- var a = y(t);
3080
+ }(T), In = /* @__PURE__ */ function(o) {
3081
+ w(t, o);
3082
+ var n = y(t);
3042
3083
  function t() {
3043
3084
  var r;
3044
3085
  g(this, t);
3045
- for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
3046
- i[n] = arguments[n];
3047
- return r = a.call.apply(a, [this].concat(i)), c(f(r), "priority", 70), c(f(r), "incompatibleTokens", ["a", "b", "h", "K", "k", "t", "T"]), r;
3086
+ for (var e = arguments.length, i = new Array(e), a = 0; a < e; a++)
3087
+ i[a] = arguments[a];
3088
+ return r = n.call.apply(n, [this].concat(i)), d(m(r), "priority", 70), d(m(r), "incompatibleTokens", ["a", "b", "h", "K", "k", "t", "T"]), r;
3048
3089
  }
3049
- return w(t, [{
3090
+ return p(t, [{
3050
3091
  key: "parse",
3051
- value: function(e, i, n) {
3092
+ value: function(e, i, a) {
3052
3093
  switch (i) {
3053
3094
  case "H":
3054
- return M(C.hour23h, e);
3095
+ return M(U.hour23h, e);
3055
3096
  case "Ho":
3056
- return n.ordinalNumber(e, {
3097
+ return a.ordinalNumber(e, {
3057
3098
  unit: "hour"
3058
3099
  });
3059
3100
  default:
3060
- return k(i.length, e);
3101
+ return x(i.length, e);
3061
3102
  }
3062
3103
  }
3063
3104
  }, {
@@ -3067,32 +3108,32 @@ var Wa = /* @__PURE__ */ function(o) {
3067
3108
  }
3068
3109
  }, {
3069
3110
  key: "set",
3070
- value: function(e, i, n) {
3071
- return e.setUTCHours(n, 0, 0, 0), e;
3111
+ value: function(e, i, a) {
3112
+ return e.setUTCHours(a, 0, 0, 0), e;
3072
3113
  }
3073
3114
  }]), t;
3074
- }(b), Sa = /* @__PURE__ */ function(o) {
3075
- p(t, o);
3076
- var a = y(t);
3115
+ }(T), Hn = /* @__PURE__ */ function(o) {
3116
+ w(t, o);
3117
+ var n = y(t);
3077
3118
  function t() {
3078
3119
  var r;
3079
3120
  g(this, t);
3080
- for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
3081
- i[n] = arguments[n];
3082
- return r = a.call.apply(a, [this].concat(i)), c(f(r), "priority", 70), c(f(r), "incompatibleTokens", ["h", "H", "k", "t", "T"]), r;
3121
+ for (var e = arguments.length, i = new Array(e), a = 0; a < e; a++)
3122
+ i[a] = arguments[a];
3123
+ return r = n.call.apply(n, [this].concat(i)), d(m(r), "priority", 70), d(m(r), "incompatibleTokens", ["h", "H", "k", "t", "T"]), r;
3083
3124
  }
3084
- return w(t, [{
3125
+ return p(t, [{
3085
3126
  key: "parse",
3086
- value: function(e, i, n) {
3127
+ value: function(e, i, a) {
3087
3128
  switch (i) {
3088
3129
  case "K":
3089
- return M(C.hour11h, e);
3130
+ return M(U.hour11h, e);
3090
3131
  case "Ko":
3091
- return n.ordinalNumber(e, {
3132
+ return a.ordinalNumber(e, {
3092
3133
  unit: "hour"
3093
3134
  });
3094
3135
  default:
3095
- return k(i.length, e);
3136
+ return x(i.length, e);
3096
3137
  }
3097
3138
  }
3098
3139
  }, {
@@ -3102,33 +3143,33 @@ var Wa = /* @__PURE__ */ function(o) {
3102
3143
  }
3103
3144
  }, {
3104
3145
  key: "set",
3105
- value: function(e, i, n) {
3146
+ value: function(e, i, a) {
3106
3147
  var u = e.getUTCHours() >= 12;
3107
- return u && n < 12 ? e.setUTCHours(n + 12, 0, 0, 0) : e.setUTCHours(n, 0, 0, 0), e;
3148
+ return u && a < 12 ? e.setUTCHours(a + 12, 0, 0, 0) : e.setUTCHours(a, 0, 0, 0), e;
3108
3149
  }
3109
3150
  }]), t;
3110
- }(b), Ha = /* @__PURE__ */ function(o) {
3111
- p(t, o);
3112
- var a = y(t);
3151
+ }(T), Rn = /* @__PURE__ */ function(o) {
3152
+ w(t, o);
3153
+ var n = y(t);
3113
3154
  function t() {
3114
3155
  var r;
3115
3156
  g(this, t);
3116
- for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
3117
- i[n] = arguments[n];
3118
- return r = a.call.apply(a, [this].concat(i)), c(f(r), "priority", 70), c(f(r), "incompatibleTokens", ["a", "b", "h", "H", "K", "t", "T"]), r;
3157
+ for (var e = arguments.length, i = new Array(e), a = 0; a < e; a++)
3158
+ i[a] = arguments[a];
3159
+ return r = n.call.apply(n, [this].concat(i)), d(m(r), "priority", 70), d(m(r), "incompatibleTokens", ["a", "b", "h", "H", "K", "t", "T"]), r;
3119
3160
  }
3120
- return w(t, [{
3161
+ return p(t, [{
3121
3162
  key: "parse",
3122
- value: function(e, i, n) {
3163
+ value: function(e, i, a) {
3123
3164
  switch (i) {
3124
3165
  case "k":
3125
- return M(C.hour24h, e);
3166
+ return M(U.hour24h, e);
3126
3167
  case "ko":
3127
- return n.ordinalNumber(e, {
3168
+ return a.ordinalNumber(e, {
3128
3169
  unit: "hour"
3129
3170
  });
3130
3171
  default:
3131
- return k(i.length, e);
3172
+ return x(i.length, e);
3132
3173
  }
3133
3174
  }
3134
3175
  }, {
@@ -3138,33 +3179,33 @@ var Wa = /* @__PURE__ */ function(o) {
3138
3179
  }
3139
3180
  }, {
3140
3181
  key: "set",
3141
- value: function(e, i, n) {
3142
- var u = n <= 24 ? n % 24 : n;
3182
+ value: function(e, i, a) {
3183
+ var u = a <= 24 ? a % 24 : a;
3143
3184
  return e.setUTCHours(u, 0, 0, 0), e;
3144
3185
  }
3145
3186
  }]), t;
3146
- }(b), Ra = /* @__PURE__ */ function(o) {
3147
- p(t, o);
3148
- var a = y(t);
3187
+ }(T), qn = /* @__PURE__ */ function(o) {
3188
+ w(t, o);
3189
+ var n = y(t);
3149
3190
  function t() {
3150
3191
  var r;
3151
3192
  g(this, t);
3152
- for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
3153
- i[n] = arguments[n];
3154
- return r = a.call.apply(a, [this].concat(i)), c(f(r), "priority", 60), c(f(r), "incompatibleTokens", ["t", "T"]), r;
3193
+ for (var e = arguments.length, i = new Array(e), a = 0; a < e; a++)
3194
+ i[a] = arguments[a];
3195
+ return r = n.call.apply(n, [this].concat(i)), d(m(r), "priority", 60), d(m(r), "incompatibleTokens", ["t", "T"]), r;
3155
3196
  }
3156
- return w(t, [{
3197
+ return p(t, [{
3157
3198
  key: "parse",
3158
- value: function(e, i, n) {
3199
+ value: function(e, i, a) {
3159
3200
  switch (i) {
3160
3201
  case "m":
3161
- return M(C.minute, e);
3202
+ return M(U.minute, e);
3162
3203
  case "mo":
3163
- return n.ordinalNumber(e, {
3204
+ return a.ordinalNumber(e, {
3164
3205
  unit: "minute"
3165
3206
  });
3166
3207
  default:
3167
- return k(i.length, e);
3208
+ return x(i.length, e);
3168
3209
  }
3169
3210
  }
3170
3211
  }, {
@@ -3174,32 +3215,32 @@ var Wa = /* @__PURE__ */ function(o) {
3174
3215
  }
3175
3216
  }, {
3176
3217
  key: "set",
3177
- value: function(e, i, n) {
3178
- return e.setUTCMinutes(n, 0, 0), e;
3218
+ value: function(e, i, a) {
3219
+ return e.setUTCMinutes(a, 0, 0), e;
3179
3220
  }
3180
3221
  }]), t;
3181
- }(b), Ia = /* @__PURE__ */ function(o) {
3182
- p(t, o);
3183
- var a = y(t);
3222
+ }(T), Fn = /* @__PURE__ */ function(o) {
3223
+ w(t, o);
3224
+ var n = y(t);
3184
3225
  function t() {
3185
3226
  var r;
3186
3227
  g(this, t);
3187
- for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
3188
- i[n] = arguments[n];
3189
- return r = a.call.apply(a, [this].concat(i)), c(f(r), "priority", 50), c(f(r), "incompatibleTokens", ["t", "T"]), r;
3228
+ for (var e = arguments.length, i = new Array(e), a = 0; a < e; a++)
3229
+ i[a] = arguments[a];
3230
+ return r = n.call.apply(n, [this].concat(i)), d(m(r), "priority", 50), d(m(r), "incompatibleTokens", ["t", "T"]), r;
3190
3231
  }
3191
- return w(t, [{
3232
+ return p(t, [{
3192
3233
  key: "parse",
3193
- value: function(e, i, n) {
3234
+ value: function(e, i, a) {
3194
3235
  switch (i) {
3195
3236
  case "s":
3196
- return M(C.second, e);
3237
+ return M(U.second, e);
3197
3238
  case "so":
3198
- return n.ordinalNumber(e, {
3239
+ return a.ordinalNumber(e, {
3199
3240
  unit: "second"
3200
3241
  });
3201
3242
  default:
3202
- return k(i.length, e);
3243
+ return x(i.length, e);
3203
3244
  }
3204
3245
  }
3205
3246
  }, {
@@ -3209,290 +3250,290 @@ var Wa = /* @__PURE__ */ function(o) {
3209
3250
  }
3210
3251
  }, {
3211
3252
  key: "set",
3212
- value: function(e, i, n) {
3213
- return e.setUTCSeconds(n, 0), e;
3253
+ value: function(e, i, a) {
3254
+ return e.setUTCSeconds(a, 0), e;
3214
3255
  }
3215
3256
  }]), t;
3216
- }(b), qa = /* @__PURE__ */ function(o) {
3217
- p(t, o);
3218
- var a = y(t);
3257
+ }(T), Bn = /* @__PURE__ */ function(o) {
3258
+ w(t, o);
3259
+ var n = y(t);
3219
3260
  function t() {
3220
3261
  var r;
3221
3262
  g(this, t);
3222
- for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
3223
- i[n] = arguments[n];
3224
- return r = a.call.apply(a, [this].concat(i)), c(f(r), "priority", 30), c(f(r), "incompatibleTokens", ["t", "T"]), r;
3263
+ for (var e = arguments.length, i = new Array(e), a = 0; a < e; a++)
3264
+ i[a] = arguments[a];
3265
+ return r = n.call.apply(n, [this].concat(i)), d(m(r), "priority", 30), d(m(r), "incompatibleTokens", ["t", "T"]), r;
3225
3266
  }
3226
- return w(t, [{
3267
+ return p(t, [{
3227
3268
  key: "parse",
3228
3269
  value: function(e, i) {
3229
- var n = function(s) {
3270
+ var a = function(s) {
3230
3271
  return Math.floor(s * Math.pow(10, -i.length + 3));
3231
3272
  };
3232
- return x(k(i.length, e), n);
3273
+ return $(x(i.length, e), a);
3233
3274
  }
3234
3275
  }, {
3235
3276
  key: "set",
3236
- value: function(e, i, n) {
3237
- return e.setUTCMilliseconds(n), e;
3277
+ value: function(e, i, a) {
3278
+ return e.setUTCMilliseconds(a), e;
3238
3279
  }
3239
3280
  }]), t;
3240
- }(b), Fa = /* @__PURE__ */ function(o) {
3241
- p(t, o);
3242
- var a = y(t);
3281
+ }(T), Qn = /* @__PURE__ */ function(o) {
3282
+ w(t, o);
3283
+ var n = y(t);
3243
3284
  function t() {
3244
3285
  var r;
3245
3286
  g(this, t);
3246
- for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
3247
- i[n] = arguments[n];
3248
- return r = a.call.apply(a, [this].concat(i)), c(f(r), "priority", 10), c(f(r), "incompatibleTokens", ["t", "T", "x"]), r;
3287
+ for (var e = arguments.length, i = new Array(e), a = 0; a < e; a++)
3288
+ i[a] = arguments[a];
3289
+ return r = n.call.apply(n, [this].concat(i)), d(m(r), "priority", 10), d(m(r), "incompatibleTokens", ["t", "T", "x"]), r;
3249
3290
  }
3250
- return w(t, [{
3291
+ return p(t, [{
3251
3292
  key: "parse",
3252
3293
  value: function(e, i) {
3253
3294
  switch (i) {
3254
3295
  case "X":
3255
- return V(j.basicOptionalMinutes, e);
3296
+ return z(J.basicOptionalMinutes, e);
3256
3297
  case "XX":
3257
- return V(j.basic, e);
3298
+ return z(J.basic, e);
3258
3299
  case "XXXX":
3259
- return V(j.basicOptionalSeconds, e);
3300
+ return z(J.basicOptionalSeconds, e);
3260
3301
  case "XXXXX":
3261
- return V(j.extendedOptionalSeconds, e);
3302
+ return z(J.extendedOptionalSeconds, e);
3262
3303
  case "XXX":
3263
3304
  default:
3264
- return V(j.extended, e);
3305
+ return z(J.extended, e);
3265
3306
  }
3266
3307
  }
3267
3308
  }, {
3268
3309
  key: "set",
3269
- value: function(e, i, n) {
3270
- return i.timestampIsSet ? e : new Date(e.getTime() - n);
3310
+ value: function(e, i, a) {
3311
+ return i.timestampIsSet ? e : new Date(e.getTime() - a);
3271
3312
  }
3272
3313
  }]), t;
3273
- }(b), Qa = /* @__PURE__ */ function(o) {
3274
- p(t, o);
3275
- var a = y(t);
3314
+ }(T), jn = /* @__PURE__ */ function(o) {
3315
+ w(t, o);
3316
+ var n = y(t);
3276
3317
  function t() {
3277
3318
  var r;
3278
3319
  g(this, t);
3279
- for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
3280
- i[n] = arguments[n];
3281
- return r = a.call.apply(a, [this].concat(i)), c(f(r), "priority", 10), c(f(r), "incompatibleTokens", ["t", "T", "X"]), r;
3320
+ for (var e = arguments.length, i = new Array(e), a = 0; a < e; a++)
3321
+ i[a] = arguments[a];
3322
+ return r = n.call.apply(n, [this].concat(i)), d(m(r), "priority", 10), d(m(r), "incompatibleTokens", ["t", "T", "X"]), r;
3282
3323
  }
3283
- return w(t, [{
3324
+ return p(t, [{
3284
3325
  key: "parse",
3285
3326
  value: function(e, i) {
3286
3327
  switch (i) {
3287
3328
  case "x":
3288
- return V(j.basicOptionalMinutes, e);
3329
+ return z(J.basicOptionalMinutes, e);
3289
3330
  case "xx":
3290
- return V(j.basic, e);
3331
+ return z(J.basic, e);
3291
3332
  case "xxxx":
3292
- return V(j.basicOptionalSeconds, e);
3333
+ return z(J.basicOptionalSeconds, e);
3293
3334
  case "xxxxx":
3294
- return V(j.extendedOptionalSeconds, e);
3335
+ return z(J.extendedOptionalSeconds, e);
3295
3336
  case "xxx":
3296
3337
  default:
3297
- return V(j.extended, e);
3338
+ return z(J.extended, e);
3298
3339
  }
3299
3340
  }
3300
3341
  }, {
3301
3342
  key: "set",
3302
- value: function(e, i, n) {
3303
- return i.timestampIsSet ? e : new Date(e.getTime() - n);
3343
+ value: function(e, i, a) {
3344
+ return i.timestampIsSet ? e : new Date(e.getTime() - a);
3304
3345
  }
3305
3346
  }]), t;
3306
- }(b), Ba = /* @__PURE__ */ function(o) {
3307
- p(t, o);
3308
- var a = y(t);
3347
+ }(T), Vn = /* @__PURE__ */ function(o) {
3348
+ w(t, o);
3349
+ var n = y(t);
3309
3350
  function t() {
3310
3351
  var r;
3311
3352
  g(this, t);
3312
- for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
3313
- i[n] = arguments[n];
3314
- return r = a.call.apply(a, [this].concat(i)), c(f(r), "priority", 40), c(f(r), "incompatibleTokens", "*"), r;
3353
+ for (var e = arguments.length, i = new Array(e), a = 0; a < e; a++)
3354
+ i[a] = arguments[a];
3355
+ return r = n.call.apply(n, [this].concat(i)), d(m(r), "priority", 40), d(m(r), "incompatibleTokens", "*"), r;
3315
3356
  }
3316
- return w(t, [{
3357
+ return p(t, [{
3317
3358
  key: "parse",
3318
3359
  value: function(e) {
3319
3360
  return gt(e);
3320
3361
  }
3321
3362
  }, {
3322
3363
  key: "set",
3323
- value: function(e, i, n) {
3324
- return [new Date(n * 1e3), {
3364
+ value: function(e, i, a) {
3365
+ return [new Date(a * 1e3), {
3325
3366
  timestampIsSet: !0
3326
3367
  }];
3327
3368
  }
3328
3369
  }]), t;
3329
- }(b), ja = /* @__PURE__ */ function(o) {
3330
- p(t, o);
3331
- var a = y(t);
3370
+ }(T), Xn = /* @__PURE__ */ function(o) {
3371
+ w(t, o);
3372
+ var n = y(t);
3332
3373
  function t() {
3333
3374
  var r;
3334
3375
  g(this, t);
3335
- for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
3336
- i[n] = arguments[n];
3337
- return r = a.call.apply(a, [this].concat(i)), c(f(r), "priority", 20), c(f(r), "incompatibleTokens", "*"), r;
3376
+ for (var e = arguments.length, i = new Array(e), a = 0; a < e; a++)
3377
+ i[a] = arguments[a];
3378
+ return r = n.call.apply(n, [this].concat(i)), d(m(r), "priority", 20), d(m(r), "incompatibleTokens", "*"), r;
3338
3379
  }
3339
- return w(t, [{
3380
+ return p(t, [{
3340
3381
  key: "parse",
3341
3382
  value: function(e) {
3342
3383
  return gt(e);
3343
3384
  }
3344
3385
  }, {
3345
3386
  key: "set",
3346
- value: function(e, i, n) {
3347
- return [new Date(n), {
3387
+ value: function(e, i, a) {
3388
+ return [new Date(a), {
3348
3389
  timestampIsSet: !0
3349
3390
  }];
3350
3391
  }
3351
3392
  }]), t;
3352
- }(b), Va = {
3353
- G: new da(),
3354
- y: new fa(),
3355
- Y: new ma(),
3356
- R: new va(),
3357
- u: new ha(),
3358
- Q: new ga(),
3359
- q: new wa(),
3360
- M: new pa(),
3361
- L: new ya(),
3362
- w: new Ta(),
3363
- I: new Pa(),
3364
- d: new Ca(),
3365
- D: new xa(),
3366
- E: new Oa(),
3367
- e: new Ea(),
3368
- c: new Ua(),
3369
- i: new Wa(),
3370
- a: new Ya(),
3371
- b: new Na(),
3372
- B: new _a(),
3373
- h: new Aa(),
3374
- H: new La(),
3375
- K: new Sa(),
3376
- k: new Ha(),
3377
- m: new Ra(),
3378
- s: new Ia(),
3379
- S: new qa(),
3380
- X: new Fa(),
3381
- x: new Qa(),
3382
- t: new Ba(),
3383
- T: new ja()
3384
- }, Xa = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ga = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ka = /^'([^]*?)'?$/, Ja = /''/g, za = /\S/, Za = /[a-zA-Z]/;
3385
- function rt(o, a, t, r) {
3386
- var e, i, n, u, s, l, d, m, h, v, D, U, $, E, W, H, R, de;
3387
- O(3, arguments);
3388
- var A = String(o), F = String(a), X = ce(), J = (e = (i = r == null ? void 0 : r.locale) !== null && i !== void 0 ? i : X.locale) !== null && e !== void 0 ? e : mt;
3389
- if (!J.match)
3393
+ }(T), Gn = {
3394
+ G: new mn(),
3395
+ y: new vn(),
3396
+ Y: new hn(),
3397
+ R: new gn(),
3398
+ u: new pn(),
3399
+ Q: new wn(),
3400
+ q: new yn(),
3401
+ M: new bn(),
3402
+ L: new Tn(),
3403
+ w: new kn(),
3404
+ I: new Mn(),
3405
+ d: new On(),
3406
+ D: new En(),
3407
+ E: new Un(),
3408
+ e: new $n(),
3409
+ c: new Wn(),
3410
+ i: new Yn(),
3411
+ a: new _n(),
3412
+ b: new An(),
3413
+ B: new Ln(),
3414
+ h: new Sn(),
3415
+ H: new In(),
3416
+ K: new Hn(),
3417
+ k: new Rn(),
3418
+ m: new qn(),
3419
+ s: new Fn(),
3420
+ S: new Bn(),
3421
+ X: new Qn(),
3422
+ x: new jn(),
3423
+ t: new Vn(),
3424
+ T: new Xn()
3425
+ }, Kn = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Jn = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, zn = /^'([^]*?)'?$/, Zn = /''/g, ea = /\S/, ta = /[a-zA-Z]/;
3426
+ function rt(o, n, t, r) {
3427
+ var e, i, a, u, s, l, c, f, h, v, b, C, O, W, N, I, P, X;
3428
+ Y(3, arguments);
3429
+ var E = String(o), L = String(n), H = fe(), R = (e = (i = r == null ? void 0 : r.locale) !== null && i !== void 0 ? i : H.locale) !== null && e !== void 0 ? e : mt;
3430
+ if (!R.match)
3390
3431
  throw new RangeError("locale must contain match property");
3391
- var z = L((n = (u = (s = (l = r == null ? void 0 : r.firstWeekContainsDate) !== null && l !== void 0 ? l : r == null || (d = r.locale) === null || d === void 0 || (m = d.options) === null || m === void 0 ? void 0 : m.firstWeekContainsDate) !== null && s !== void 0 ? s : X.firstWeekContainsDate) !== null && u !== void 0 ? u : (h = X.locale) === null || h === void 0 || (v = h.options) === null || v === void 0 ? void 0 : v.firstWeekContainsDate) !== null && n !== void 0 ? n : 1);
3392
- if (!(z >= 1 && z <= 7))
3432
+ var F = q((a = (u = (s = (l = r == null ? void 0 : r.firstWeekContainsDate) !== null && l !== void 0 ? l : r == null || (c = r.locale) === null || c === void 0 || (f = c.options) === null || f === void 0 ? void 0 : f.firstWeekContainsDate) !== null && s !== void 0 ? s : H.firstWeekContainsDate) !== null && u !== void 0 ? u : (h = H.locale) === null || h === void 0 || (v = h.options) === null || v === void 0 ? void 0 : v.firstWeekContainsDate) !== null && a !== void 0 ? a : 1);
3433
+ if (!(F >= 1 && F <= 7))
3393
3434
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
3394
- var fe = L((D = (U = ($ = (E = r == null ? void 0 : r.weekStartsOn) !== null && E !== void 0 ? E : r == null || (W = r.locale) === null || W === void 0 || (H = W.options) === null || H === void 0 ? void 0 : H.weekStartsOn) !== null && $ !== void 0 ? $ : X.weekStartsOn) !== null && U !== void 0 ? U : (R = X.locale) === null || R === void 0 || (de = R.options) === null || de === void 0 ? void 0 : de.weekStartsOn) !== null && D !== void 0 ? D : 0);
3395
- if (!(fe >= 0 && fe <= 6))
3435
+ var ee = q((b = (C = (O = (W = r == null ? void 0 : r.weekStartsOn) !== null && W !== void 0 ? W : r == null || (N = r.locale) === null || N === void 0 || (I = N.options) === null || I === void 0 ? void 0 : I.weekStartsOn) !== null && O !== void 0 ? O : H.weekStartsOn) !== null && C !== void 0 ? C : (P = H.locale) === null || P === void 0 || (X = P.options) === null || X === void 0 ? void 0 : X.weekStartsOn) !== null && b !== void 0 ? b : 0);
3436
+ if (!(ee >= 0 && ee <= 6))
3396
3437
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
3397
- if (F === "")
3398
- return A === "" ? _(t) : new Date(NaN);
3438
+ if (L === "")
3439
+ return E === "" ? S(t) : new Date(NaN);
3399
3440
  var me = {
3400
- firstWeekContainsDate: z,
3401
- weekStartsOn: fe,
3402
- locale: J
3403
- }, ve = [new ca()], ke = F.match(Ga).map(function(Y) {
3404
- var P = Y[0];
3405
- if (P in Ne) {
3406
- var I = Ne[P];
3407
- return I(Y, J.formatLong);
3408
- }
3409
- return Y;
3410
- }).join("").match(Xa), N = [], S = et(ke), ae;
3441
+ firstWeekContainsDate: F,
3442
+ weekStartsOn: ee,
3443
+ locale: R
3444
+ }, ve = [new fn()], Me = L.match(Jn).map(function(_) {
3445
+ var k = _[0];
3446
+ if (k in Ye) {
3447
+ var Q = Ye[k];
3448
+ return Q(_, R.formatLong);
3449
+ }
3450
+ return _;
3451
+ }).join("").match(Kn), A = [], B = et(Me), ie;
3411
3452
  try {
3412
3453
  var yt = function() {
3413
- var P = ae.value;
3414
- !(r != null && r.useAdditionalWeekYearTokens) && dt(P) && De(P, F, o), !(r != null && r.useAdditionalDayOfYearTokens) && ct(P) && De(P, F, o);
3415
- var I = P[0], be = Va[I];
3454
+ var k = ie.value;
3455
+ !(r != null && r.useAdditionalWeekYearTokens) && dt(k) && De(k, L, o), !(r != null && r.useAdditionalDayOfYearTokens) && ct(k) && De(k, L, o);
3456
+ var Q = k[0], be = Gn[Q];
3416
3457
  if (be) {
3417
- var Qe = be.incompatibleTokens;
3418
- if (Array.isArray(Qe)) {
3419
- var Be = N.find(function(je) {
3420
- return Qe.includes(je.token) || je.token === I;
3458
+ var Be = be.incompatibleTokens;
3459
+ if (Array.isArray(Be)) {
3460
+ var Qe = A.find(function(je) {
3461
+ return Be.includes(je.token) || je.token === Q;
3421
3462
  });
3422
- if (Be)
3423
- throw new RangeError("The format string mustn't contain `".concat(Be.fullToken, "` and `").concat(P, "` at the same time"));
3424
- } else if (be.incompatibleTokens === "*" && N.length > 0)
3425
- throw new RangeError("The format string mustn't contain `".concat(P, "` and any other token at the same time"));
3426
- N.push({
3427
- token: I,
3428
- fullToken: P
3463
+ if (Qe)
3464
+ throw new RangeError("The format string mustn't contain `".concat(Qe.fullToken, "` and `").concat(k, "` at the same time"));
3465
+ } else if (be.incompatibleTokens === "*" && A.length > 0)
3466
+ throw new RangeError("The format string mustn't contain `".concat(k, "` and any other token at the same time"));
3467
+ A.push({
3468
+ token: Q,
3469
+ fullToken: k
3429
3470
  });
3430
- var xe = be.run(A, P, J.match, me);
3471
+ var xe = be.run(E, k, R.match, me);
3431
3472
  if (!xe)
3432
3473
  return {
3433
3474
  v: new Date(NaN)
3434
3475
  };
3435
- ve.push(xe.setter), A = xe.rest;
3476
+ ve.push(xe.setter), E = xe.rest;
3436
3477
  } else {
3437
- if (I.match(Za))
3438
- throw new RangeError("Format string contains an unescaped latin alphabet character `" + I + "`");
3439
- if (P === "''" ? P = "'" : I === "'" && (P = en(P)), A.indexOf(P) === 0)
3440
- A = A.slice(P.length);
3478
+ if (Q.match(ta))
3479
+ throw new RangeError("Format string contains an unescaped latin alphabet character `" + Q + "`");
3480
+ if (k === "''" ? k = "'" : Q === "'" && (k = ra(k)), E.indexOf(k) === 0)
3481
+ E = E.slice(k.length);
3441
3482
  else
3442
3483
  return {
3443
3484
  v: new Date(NaN)
3444
3485
  };
3445
3486
  }
3446
3487
  };
3447
- for (S.s(); !(ae = S.n()).done; ) {
3448
- var Re = yt();
3449
- if (K(Re) === "object")
3450
- return Re.v;
3488
+ for (B.s(); !(ie = B.n()).done; ) {
3489
+ var He = yt();
3490
+ if (Z(He) === "object")
3491
+ return He.v;
3451
3492
  }
3452
- } catch (Y) {
3453
- S.e(Y);
3493
+ } catch (_) {
3494
+ B.e(_);
3454
3495
  } finally {
3455
- S.f();
3496
+ B.f();
3456
3497
  }
3457
- if (A.length > 0 && za.test(A))
3498
+ if (E.length > 0 && ea.test(E))
3458
3499
  return new Date(NaN);
3459
- var bt = ve.map(function(Y) {
3460
- return Y.priority;
3461
- }).sort(function(Y, P) {
3462
- return P - Y;
3463
- }).filter(function(Y, P, I) {
3464
- return I.indexOf(Y) === P;
3465
- }).map(function(Y) {
3466
- return ve.filter(function(P) {
3467
- return P.priority === Y;
3468
- }).sort(function(P, I) {
3469
- return I.subPriority - P.subPriority;
3500
+ var bt = ve.map(function(_) {
3501
+ return _.priority;
3502
+ }).sort(function(_, k) {
3503
+ return k - _;
3504
+ }).filter(function(_, k, Q) {
3505
+ return Q.indexOf(_) === k;
3506
+ }).map(function(_) {
3507
+ return ve.filter(function(k) {
3508
+ return k.priority === _;
3509
+ }).sort(function(k, Q) {
3510
+ return Q.subPriority - k.subPriority;
3470
3511
  });
3471
- }).map(function(Y) {
3472
- return Y[0];
3473
- }), Ce = _(t);
3512
+ }).map(function(_) {
3513
+ return _[0];
3514
+ }), Ce = S(t);
3474
3515
  if (isNaN(Ce.getTime()))
3475
3516
  return new Date(NaN);
3476
- var he = it(Ce, nt(Ce)), Ie = {}, pe = et(bt), qe;
3517
+ var he = it(Ce, at(Ce)), Re = {}, we = et(bt), qe;
3477
3518
  try {
3478
- for (pe.s(); !(qe = pe.n()).done; ) {
3519
+ for (we.s(); !(qe = we.n()).done; ) {
3479
3520
  var Fe = qe.value;
3480
3521
  if (!Fe.validate(he, me))
3481
3522
  return new Date(NaN);
3482
- var ye = Fe.set(he, Ie, me);
3483
- Array.isArray(ye) ? (he = ye[0], aa(Ie, ye[1])) : he = ye;
3523
+ var ye = Fe.set(he, Re, me);
3524
+ Array.isArray(ye) ? (he = ye[0], an(Re, ye[1])) : he = ye;
3484
3525
  }
3485
- } catch (Y) {
3486
- pe.e(Y);
3526
+ } catch (_) {
3527
+ we.e(_);
3487
3528
  } finally {
3488
- pe.f();
3529
+ we.f();
3489
3530
  }
3490
3531
  return he;
3491
3532
  }
3492
- function en(o) {
3493
- return o.match(Ka)[1].replace(Ja, "'");
3533
+ function ra(o) {
3534
+ return o.match(zn)[1].replace(Zn, "'");
3494
3535
  }
3495
- var tn = {
3536
+ var na = {
3496
3537
  lessThanXSeconds: {
3497
3538
  one: "kurang dari 1 detik",
3498
3539
  other: "kurang dari {{count}} detik"
@@ -3554,70 +3595,70 @@ var tn = {
3554
3595
  one: "hampir 1 tahun",
3555
3596
  other: "hampir {{count}} tahun"
3556
3597
  }
3557
- }, rn = function(a, t, r) {
3558
- var e, i = tn[a];
3598
+ }, aa = function(n, t, r) {
3599
+ var e, i = na[n];
3559
3600
  return typeof i == "string" ? e = i : t === 1 ? e = i.one : e = i.other.replace("{{count}}", t.toString()), r != null && r.addSuffix ? r.comparison && r.comparison > 0 ? "dalam waktu " + e : e + " yang lalu" : e;
3560
3601
  };
3561
- const an = rn;
3562
- var nn = {
3602
+ const ia = aa;
3603
+ var oa = {
3563
3604
  full: "EEEE, d MMMM yyyy",
3564
3605
  long: "d MMMM yyyy",
3565
3606
  medium: "d MMM yyyy",
3566
3607
  short: "d/M/yyyy"
3567
- }, on = {
3608
+ }, ua = {
3568
3609
  full: "HH.mm.ss",
3569
3610
  long: "HH.mm.ss",
3570
3611
  medium: "HH.mm",
3571
3612
  short: "HH.mm"
3572
- }, un = {
3613
+ }, sa = {
3573
3614
  full: "{{date}} 'pukul' {{time}}",
3574
3615
  long: "{{date}} 'pukul' {{time}}",
3575
3616
  medium: "{{date}}, {{time}}",
3576
3617
  short: "{{date}}, {{time}}"
3577
- }, sn = {
3578
- date: se({
3579
- formats: nn,
3618
+ }, la = {
3619
+ date: ce({
3620
+ formats: oa,
3580
3621
  defaultWidth: "full"
3581
3622
  }),
3582
- time: se({
3583
- formats: on,
3623
+ time: ce({
3624
+ formats: ua,
3584
3625
  defaultWidth: "full"
3585
3626
  }),
3586
- dateTime: se({
3587
- formats: un,
3627
+ dateTime: ce({
3628
+ formats: sa,
3588
3629
  defaultWidth: "full"
3589
3630
  })
3590
3631
  };
3591
- const ln = sn;
3592
- var cn = {
3632
+ const ca = la;
3633
+ var da = {
3593
3634
  lastWeek: "eeee 'lalu pukul' p",
3594
3635
  yesterday: "'Kemarin pukul' p",
3595
3636
  today: "'Hari ini pukul' p",
3596
3637
  tomorrow: "'Besok pukul' p",
3597
3638
  nextWeek: "eeee 'pukul' p",
3598
3639
  other: "P"
3599
- }, dn = function(a, t, r, e) {
3600
- return cn[a];
3640
+ }, fa = function(n, t, r, e) {
3641
+ return da[n];
3601
3642
  };
3602
- const fn = dn;
3603
- var mn = {
3643
+ const ma = fa;
3644
+ var va = {
3604
3645
  narrow: ["SM", "M"],
3605
3646
  abbreviated: ["SM", "M"],
3606
3647
  wide: ["Sebelum Masehi", "Masehi"]
3607
- }, vn = {
3648
+ }, ha = {
3608
3649
  narrow: ["1", "2", "3", "4"],
3609
3650
  abbreviated: ["K1", "K2", "K3", "K4"],
3610
3651
  wide: ["Kuartal ke-1", "Kuartal ke-2", "Kuartal ke-3", "Kuartal ke-4"]
3611
- }, hn = {
3652
+ }, ga = {
3612
3653
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
3613
3654
  abbreviated: ["Jan", "Feb", "Mar", "Apr", "Mei", "Jun", "Jul", "Agt", "Sep", "Okt", "Nov", "Des"],
3614
3655
  wide: ["Januari", "Februari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September", "Oktober", "November", "Desember"]
3615
- }, gn = {
3656
+ }, pa = {
3616
3657
  narrow: ["M", "S", "S", "R", "K", "J", "S"],
3617
3658
  short: ["Min", "Sen", "Sel", "Rab", "Kam", "Jum", "Sab"],
3618
3659
  abbreviated: ["Min", "Sen", "Sel", "Rab", "Kam", "Jum", "Sab"],
3619
3660
  wide: ["Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu"]
3620
- }, wn = {
3661
+ }, wa = {
3621
3662
  narrow: {
3622
3663
  am: "AM",
3623
3664
  pm: "PM",
@@ -3648,7 +3689,7 @@ var mn = {
3648
3689
  evening: "sore",
3649
3690
  night: "malam"
3650
3691
  }
3651
- }, pn = {
3692
+ }, ya = {
3652
3693
  narrow: {
3653
3694
  am: "AM",
3654
3695
  pm: "PM",
@@ -3679,69 +3720,69 @@ var mn = {
3679
3720
  evening: "sore",
3680
3721
  night: "malam"
3681
3722
  }
3682
- }, yn = function(a, t) {
3683
- var r = Number(a);
3723
+ }, ba = function(n, t) {
3724
+ var r = Number(n);
3684
3725
  return "ke-" + r;
3685
- }, bn = {
3686
- ordinalNumber: yn,
3687
- era: Q({
3688
- values: mn,
3726
+ }, Ta = {
3727
+ ordinalNumber: ba,
3728
+ era: G({
3729
+ values: va,
3689
3730
  defaultWidth: "wide"
3690
3731
  }),
3691
- quarter: Q({
3692
- values: vn,
3732
+ quarter: G({
3733
+ values: ha,
3693
3734
  defaultWidth: "wide",
3694
- argumentCallback: function(a) {
3695
- return a - 1;
3735
+ argumentCallback: function(n) {
3736
+ return n - 1;
3696
3737
  }
3697
3738
  }),
3698
- month: Q({
3699
- values: hn,
3739
+ month: G({
3740
+ values: ga,
3700
3741
  defaultWidth: "wide"
3701
3742
  }),
3702
- day: Q({
3703
- values: gn,
3743
+ day: G({
3744
+ values: pa,
3704
3745
  defaultWidth: "wide"
3705
3746
  }),
3706
- dayPeriod: Q({
3707
- values: wn,
3747
+ dayPeriod: G({
3748
+ values: wa,
3708
3749
  defaultWidth: "wide",
3709
- formattingValues: pn,
3750
+ formattingValues: ya,
3710
3751
  defaultFormattingWidth: "wide"
3711
3752
  })
3712
3753
  };
3713
- const Tn = bn;
3714
- var Dn = /^ke-(\d+)?/i, Pn = /\d+/i, Mn = {
3754
+ const Da = Ta;
3755
+ var ka = /^ke-(\d+)?/i, Pa = /\d+/i, Ma = {
3715
3756
  narrow: /^(sm|m)/i,
3716
3757
  abbreviated: /^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i,
3717
3758
  wide: /^(sebelum masehi|sebelum era umum|masehi|era umum)/i
3718
- }, kn = {
3759
+ }, Ca = {
3719
3760
  any: [/^s/i, /^(m|e)/i]
3720
- }, Cn = {
3761
+ }, xa = {
3721
3762
  narrow: /^[1234]/i,
3722
3763
  abbreviated: /^K-?\s[1234]/i,
3723
3764
  wide: /^Kuartal ke-?\s?[1234]/i
3724
- }, xn = {
3765
+ }, Oa = {
3725
3766
  any: [/1/i, /2/i, /3/i, /4/i]
3726
- }, On = {
3767
+ }, Ea = {
3727
3768
  narrow: /^[jfmasond]/i,
3728
3769
  abbreviated: /^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i,
3729
3770
  wide: /^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i
3730
- }, En = {
3771
+ }, Ua = {
3731
3772
  narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
3732
3773
  any: [/^ja/i, /^f/i, /^ma/i, /^ap/i, /^me/i, /^jun/i, /^jul/i, /^ag/i, /^s/i, /^o/i, /^n/i, /^d/i]
3733
- }, Un = {
3774
+ }, $a = {
3734
3775
  narrow: /^[srkjm]/i,
3735
3776
  short: /^(min|sen|sel|rab|kam|jum|sab)/i,
3736
3777
  abbreviated: /^(min|sen|sel|rab|kam|jum|sab)/i,
3737
3778
  wide: /^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i
3738
- }, $n = {
3779
+ }, Wa = {
3739
3780
  narrow: [/^m/i, /^s/i, /^s/i, /^r/i, /^k/i, /^j/i, /^s/i],
3740
3781
  any: [/^m/i, /^sen/i, /^sel/i, /^r/i, /^k/i, /^j/i, /^sa/i]
3741
- }, Wn = {
3782
+ }, Na = {
3742
3783
  narrow: /^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i,
3743
3784
  any: /^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i
3744
- }, Yn = {
3785
+ }, Ya = {
3745
3786
  any: {
3746
3787
  am: /^a/i,
3747
3788
  pm: /^pm/i,
@@ -3752,162 +3793,171 @@ var Dn = /^ke-(\d+)?/i, Pn = /\d+/i, Mn = {
3752
3793
  evening: /sore/i,
3753
3794
  night: /malam/i
3754
3795
  }
3755
- }, Nn = {
3796
+ }, _a = {
3756
3797
  ordinalNumber: ft({
3757
- matchPattern: Dn,
3758
- parsePattern: Pn,
3759
- valueCallback: function(a) {
3760
- return parseInt(a, 10);
3798
+ matchPattern: ka,
3799
+ parsePattern: Pa,
3800
+ valueCallback: function(n) {
3801
+ return parseInt(n, 10);
3761
3802
  }
3762
3803
  }),
3763
- era: B({
3764
- matchPatterns: Mn,
3804
+ era: K({
3805
+ matchPatterns: Ma,
3765
3806
  defaultMatchWidth: "wide",
3766
- parsePatterns: kn,
3807
+ parsePatterns: Ca,
3767
3808
  defaultParseWidth: "any"
3768
3809
  }),
3769
- quarter: B({
3770
- matchPatterns: Cn,
3810
+ quarter: K({
3811
+ matchPatterns: xa,
3771
3812
  defaultMatchWidth: "wide",
3772
- parsePatterns: xn,
3813
+ parsePatterns: Oa,
3773
3814
  defaultParseWidth: "any",
3774
- valueCallback: function(a) {
3775
- return a + 1;
3815
+ valueCallback: function(n) {
3816
+ return n + 1;
3776
3817
  }
3777
3818
  }),
3778
- month: B({
3779
- matchPatterns: On,
3819
+ month: K({
3820
+ matchPatterns: Ea,
3780
3821
  defaultMatchWidth: "wide",
3781
- parsePatterns: En,
3822
+ parsePatterns: Ua,
3782
3823
  defaultParseWidth: "any"
3783
3824
  }),
3784
- day: B({
3785
- matchPatterns: Un,
3825
+ day: K({
3826
+ matchPatterns: $a,
3786
3827
  defaultMatchWidth: "wide",
3787
- parsePatterns: $n,
3828
+ parsePatterns: Wa,
3788
3829
  defaultParseWidth: "any"
3789
3830
  }),
3790
- dayPeriod: B({
3791
- matchPatterns: Wn,
3831
+ dayPeriod: K({
3832
+ matchPatterns: Na,
3792
3833
  defaultMatchWidth: "any",
3793
- parsePatterns: Yn,
3834
+ parsePatterns: Ya,
3794
3835
  defaultParseWidth: "any"
3795
3836
  })
3796
3837
  };
3797
- const _n = Nn;
3798
- var An = {
3838
+ const Aa = _a;
3839
+ var La = {
3799
3840
  code: "id",
3800
- formatDistance: an,
3801
- formatLong: ln,
3802
- formatRelative: fn,
3803
- localize: Tn,
3804
- match: _n,
3841
+ formatDistance: ia,
3842
+ formatLong: ca,
3843
+ formatRelative: ma,
3844
+ localize: Da,
3845
+ match: Aa,
3805
3846
  options: {
3806
3847
  weekStartsOn: 1,
3807
3848
  firstWeekContainsDate: 1
3808
3849
  }
3809
3850
  };
3810
- const te = An;
3811
- function Ln(o) {
3812
- let a = "";
3813
- const { dateStart: t, dateEnd: r } = o, e = Ye(rt(t, "yyyy-MM-dd HH:mm", new Date())), i = Ye(rt(r, "yyyy-MM-dd HH:mm", new Date()));
3851
+ const ne = La;
3852
+ function Sa(o) {
3853
+ let n = "";
3854
+ const { dateStart: t, dateEnd: r } = o, e = Ne(rt(t, "yyyy-MM-dd HH:mm", new Date())), i = Ne(rt(r, "yyyy-MM-dd HH:mm", new Date()));
3814
3855
  if (e && i) {
3815
- const n = t.split(" "), u = n[0].split("-"), s = u[0], l = u[1], d = r.split(" "), m = d[0].split("-"), h = m[0], v = m[1];
3816
- n[0] === d[0] ? a = `Voucher hanya berlaku di tanggal ${ee(new Date(t), "d MMM yyyy", { locale: te })}.` : s !== h ? a = `Voucher berlaku dari ${ee(new Date(t), "d MMM yyyy", { locale: te })} - ${ee(
3856
+ const a = t.split(" "), u = a[0].split("-"), s = u[0], l = u[1], c = r.split(" "), f = c[0].split("-"), h = f[0], v = f[1];
3857
+ a[0] === c[0] ? n = `Voucher hanya berlaku di tanggal ${re(new Date(t), "d MMM yyyy", { locale: ne })}.` : s !== h ? n = `Voucher berlaku dari ${re(new Date(t), "d MMM yyyy", { locale: ne })} - ${re(
3817
3858
  new Date(r),
3818
3859
  "d MMM yyyy",
3819
- { locale: te }
3820
- )}.` : s === h && (l === v ? a = `Voucher berlaku dari ${ee(new Date(t), "d", { locale: te })} - ${ee(
3860
+ { locale: ne }
3861
+ )}.` : s === h && (l === v ? n = `Voucher berlaku dari ${re(new Date(t), "d", { locale: ne })} - ${re(
3821
3862
  new Date(r),
3822
3863
  "d MMM yyyy",
3823
3864
  {
3824
- locale: te
3865
+ locale: ne
3825
3866
  }
3826
- )}.` : a = `Voucher berlaku dari ${ee(new Date(t), "d MMM", { locale: te })} - ${ee(
3867
+ )}.` : n = `Voucher berlaku dari ${re(new Date(t), "d MMM", { locale: ne })} - ${re(
3827
3868
  new Date(r),
3828
3869
  "d MMM yyyy",
3829
- { locale: te }
3870
+ { locale: ne }
3830
3871
  )}.`);
3831
3872
  } else
3832
- e && !i && (a = `Voucher berlaku dari ${ee(new Date(t), "d MMM yyyy", { locale: te })}.`);
3833
- return a;
3834
- }
3835
- function Sn(o) {
3836
- let a = "";
3873
+ e && !i && (n = `Voucher berlaku dari ${re(new Date(t), "d MMM yyyy", { locale: ne })}.`);
3874
+ return n;
3875
+ }
3876
+ function Ia(o) {
3877
+ const { isOneTimeUsage: n, isOneTimeUsagePerCard: t } = o;
3878
+ if (!n && !t)
3879
+ return "";
3880
+ let r = "";
3881
+ return n && (r = "Voucher hanya dapat digunakan 1x per member selama masa berlaku."), t && (r = "Voucher hanya dapat digunakan 1x per kartu selama masa berlaku."), n && t && (r = "Voucher hanya dapat digunakan 1x transaksi untuk 1 kartu dan 1 member selama masa berlaku."), r;
3882
+ }
3883
+ function Ha(o) {
3884
+ let n = "";
3837
3885
  const {
3838
3886
  type: t,
3839
3887
  discountType: r,
3840
3888
  discountValue: e,
3841
3889
  isCheckedMaxFee: i,
3842
- maxDiscountAmount: n,
3890
+ maxDiscountAmount: a,
3843
3891
  transactionTerms: u,
3844
3892
  termsMinTotalAmount: s,
3845
3893
  termsMinQty: l,
3846
- limitFee: d
3847
- } = o, m = (E) => typeof E == "number" ? E : Number.isNaN(Number(E)) ? 0 : Number(E), h = ge({ value: m(n), prefix: "Rp" }), v = ge({ value: m(e), prefix: "Rp" }), D = ge({ value: m(d), prefix: "Rp" }), U = ge({ value: m(s), prefix: "Rp" }), $ = ge({ value: m(l) });
3848
- switch (t === G.product || t === G.order || t === G.gift ? r === We.percentage && t !== G.gift ? (a = `Diskon ${e || 0}%`, i && (a += ` (hingga ${h})`)) : r === We.amount && t !== G.gift ? a = `Potongan ${v}` : a = `Potongan ${D}` : t === G.freeShipping ? (a = "Shipping fee ditanggung oleh voilà.id", i && (a += ` (hingga ${D})`)) : t === G.freeInsurance && (a = "Insurance fee ditanggung oleh voilà.id", i && (a += ` (hingga ${D})`)), u) {
3894
+ limitFee: c
3895
+ } = o, f = (W) => typeof W == "number" ? W : Number.isNaN(Number(W)) ? 0 : Number(W), h = ge({ value: f(a), prefix: "Rp" }), v = ge({ value: f(e), prefix: "Rp" }), b = ge({ value: f(c), prefix: "Rp" }), C = ge({ value: f(s), prefix: "Rp" }), O = ge({ value: f(l) });
3896
+ switch (t === V.product || t === V.order || t === V.gift || t === V.payment ? r === We.percentage && t !== V.gift ? (n = `Diskon ${e || 0}%`, i && (n += ` (hingga ${h})`)) : r === We.amount && t !== V.gift ? n = `Potongan ${v}` : n = `Potongan ${b}` : t === V.freeShipping ? (n = "Shipping fee ditanggung oleh voilà.id", i && (n += ` (hingga ${b})`)) : t === V.freeInsurance && (n = "Insurance fee ditanggung oleh voilà.id", i && (n += ` (hingga ${b})`)), u) {
3849
3897
  case 0:
3850
- a += " tanpa minimum pembelian.";
3898
+ n += " tanpa minimum pembelian.";
3851
3899
  break;
3852
3900
  case 1:
3853
- a += ` dengan min. pembelian ${U}.`;
3901
+ n += ` dengan min. pembelian ${C}.`;
3854
3902
  break;
3855
3903
  case 2:
3856
- a += ` dengan min. pembelian ${l ? $ : 0} item.`;
3904
+ n += ` dengan min. pembelian ${l ? O : 0} item.`;
3857
3905
  break;
3858
3906
  default:
3859
- a += "";
3907
+ n += "";
3860
3908
  }
3861
- return a;
3909
+ return n;
3862
3910
  }
3863
- const Hn = (o) => {
3864
- const a = [], {
3911
+ const Ra = (o) => {
3912
+ const n = [], {
3865
3913
  dateEnd: t,
3866
3914
  dateStart: r,
3867
3915
  type: e,
3868
3916
  discountType: i,
3869
- discountValue: n,
3917
+ discountValue: a,
3870
3918
  isCheckedMaxFee: u,
3871
3919
  maxDiscountAmount: s,
3872
3920
  transactionTerms: l,
3873
- termsMinTotalAmount: d,
3874
- termsMinQty: m,
3921
+ termsMinTotalAmount: c,
3922
+ termsMinQty: f,
3875
3923
  limitFee: h,
3876
3924
  collections: v,
3877
- brands: D,
3878
- eligibilityType: U,
3879
- isOneTimeUsage: $,
3880
- quota: E
3881
- } = o, W = Ln({ dateStart: r, dateEnd: t }), H = Xt({ type: e, collections: v, brands: D, eligibilityType: U }), R = Sn({
3925
+ brands: b,
3926
+ eligibilityType: C,
3927
+ isOneTimeUsage: O,
3928
+ quota: W,
3929
+ isOneTimeUsagePerCard: N,
3930
+ payment: I
3931
+ } = o, { bankName: P = "", creditBinGroup: X = [], debitBinGroup: E = [] } = I || {}, L = Sa({ dateStart: r, dateEnd: t }), H = Xt({ type: e, collections: v, brands: b, eligibilityType: C, payment: I }), R = Ha({
3882
3932
  type: e,
3883
3933
  discountType: i,
3884
- discountValue: n,
3934
+ discountValue: a,
3885
3935
  isCheckedMaxFee: u,
3886
3936
  maxDiscountAmount: s,
3887
3937
  transactionTerms: l,
3888
- termsMinTotalAmount: d,
3889
- termsMinQty: m,
3938
+ termsMinTotalAmount: c,
3939
+ termsMinQty: f,
3890
3940
  limitFee: h
3891
- });
3892
- return W && a.push(W), R && a.push(R), H && a.push(H), $ && a.push("Voucher hanya dapat digunakan 1x per member selama masa berlaku."), E > 0 && a.push("Kuota voucher terbatas."), a;
3893
- }, Xn = Hn;
3941
+ }), F = Ia({ isOneTimeUsage: O, isOneTimeUsagePerCard: N }), ee = Gt({ bankName: P, creditBinGroup: X, debitBinGroup: E });
3942
+ return L && n.push(L), R && n.push(R), H && n.push(H), F && n.push(F), W > 0 && n.push("Kuota voucher terbatas."), (ee || []).length > 0 && n.push(...ee), n;
3943
+ }, Ka = Ra;
3894
3944
  export {
3895
3945
  We as DiscountType,
3896
- G as VoucherType,
3897
- Mt as canUseDOM,
3898
- at as getOwnerDocument,
3899
- kt as isBrowser,
3900
- Pt as isElement,
3946
+ V as VoucherType,
3947
+ Pt as canUseDOM,
3948
+ nt as getOwnerDocument,
3949
+ Mt as isBrowser,
3950
+ kt as isElement,
3901
3951
  Oe as isValidEvent,
3902
3952
  $e as useCallbackRef,
3903
- In as useClipboard,
3904
- qn as useDebounce,
3905
- Fn as useDimensions,
3906
- Qn as useDisclosure,
3907
- Bn as useMediaQuery,
3953
+ Fa as useClipboard,
3954
+ Ba as useDebounce,
3955
+ Qa as useDimensions,
3956
+ ja as useDisclosure,
3957
+ Va as useMediaQuery,
3908
3958
  ge as useNumberFormatter,
3909
- jn as useOnlineStatus,
3910
- Vn as useOutsideClick,
3911
- It as useSafeLayoutEffect,
3912
- Xn as useVoucherTnc
3959
+ Xa as useOnlineStatus,
3960
+ Ga as useOutsideClick,
3961
+ Rt as useSafeLayoutEffect,
3962
+ Ka as useVoucherTnc
3913
3963
  };