r3ui-lib 1.2.26 → 1.2.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/login.css +1 -0
  3. package/dist/login.es.js +2934 -0
  4. package/dist/login.umd.js +10 -0
  5. package/dist/r3ui-lib.css +1 -1
  6. package/dist/r3ui-lib.es.js +883 -794
  7. package/dist/r3ui-lib.umd.js +24 -24
  8. package/dist/types/components/Divider.vue.d.ts +2 -2
  9. package/dist/types/components/SsoLoginPending.vue.d.ts +7 -0
  10. package/dist/types/components/SsoLoginPending.vue.d.ts.map +1 -0
  11. package/dist/types/components/form/Checkbox.vue.d.ts +4 -4
  12. package/dist/types/components/form/CustomInput.vue.d.ts +4 -4
  13. package/dist/types/components/forms/AgeFromAgeTo.vue.d.ts +1 -1
  14. package/dist/types/components/forms/AgeFromAgeTo.vue.d.ts.map +1 -1
  15. package/dist/types/components/forms/BooleanCheckbox.vue.d.ts +2 -2
  16. package/dist/types/components/forms/BooleanCheckbox.vue.d.ts.map +1 -1
  17. package/dist/types/components/forms/Flatpickr.vue.d.ts +2 -2
  18. package/dist/types/components/forms/Flatpickr.vue.d.ts.map +1 -1
  19. package/dist/types/components/forms/MultiCheckbox.vue.d.ts +1 -1
  20. package/dist/types/components/forms/MultiCheckbox.vue.d.ts.map +1 -1
  21. package/dist/types/components/forms/MultiInput.vue.d.ts +2 -2
  22. package/dist/types/components/forms/MultiInput.vue.d.ts.map +1 -1
  23. package/dist/types/components/icons/QuestionIcon.vue.d.ts +2 -2
  24. package/dist/types/components/icons/QuestionIcon.vue.d.ts.map +1 -1
  25. package/dist/types/components/logo/Logo.vue.d.ts +3 -3
  26. package/dist/types/components/logo/Logo.vue.d.ts.map +1 -1
  27. package/dist/types/components/modals/ConfirmationModal.vue.d.ts +1 -1
  28. package/dist/types/components/modals/ConfirmationModal.vue.d.ts.map +1 -1
  29. package/dist/types/components/modals/DefaultModal.vue.d.ts +1 -1
  30. package/dist/types/login-entry.d.ts +7 -0
  31. package/dist/types/login-entry.d.ts.map +1 -0
  32. package/dist/types/main-simple.d.ts +2 -1
  33. package/dist/types/main-simple.d.ts.map +1 -1
  34. package/dist/types/main.d.ts +3 -1
  35. package/dist/types/main.d.ts.map +1 -1
  36. package/dist/types/utils/auth/signInWithSSO.d.ts +26 -0
  37. package/dist/types/utils/auth/signInWithSSO.d.ts.map +1 -0
  38. package/package.json +7 -2
@@ -0,0 +1,2934 @@
1
+ import { ref as Es, computed as ne, createElementBlock as P, openBlock as T, createElementVNode as Y, createTextVNode as Us, toDisplayString as V, createCommentVNode as Se, Fragment as Hs, renderList as Vs, withModifiers as Vt, normalizeClass as ve, defineComponent as He, normalizeStyle as Rt, renderSlot as At, createVNode as Gt, createBlock as Gs, unref as js } from "vue";
2
+ const Ve = (e, t) => {
3
+ const s = e.__vccOpts || e;
4
+ for (const [r, a] of t)
5
+ s[r] = a;
6
+ return s;
7
+ }, zs = { class: "custom-dropdown" }, Zs = { style: { "border-bottom": "2px solid #000" } }, Bs = { class: "dropdown-list-wrapper" }, qs = {
8
+ key: 0,
9
+ class: "custom-dropdown-menu"
10
+ }, Qs = ["onMousedown"], Js = {
11
+ __name: "DefaultDropDown",
12
+ props: {
13
+ links: {
14
+ type: Array,
15
+ required: !0
16
+ },
17
+ title: {
18
+ type: String,
19
+ default: "Actions"
20
+ // Changed from translate("actions")
21
+ },
22
+ type: {
23
+ type: String,
24
+ default: "actions",
25
+ validator: function(e) {
26
+ return ["actions", "profile"].includes(e);
27
+ }
28
+ }
29
+ },
30
+ setup(e) {
31
+ const t = e, s = Es(!1), r = (l) => {
32
+ l && (l.preventDefault(), l.stopPropagation()), s.value = !s.value;
33
+ }, a = (l) => {
34
+ if (typeof l != "function") {
35
+ r();
36
+ return;
37
+ }
38
+ l(), r();
39
+ }, n = (l) => {
40
+ l && (l.preventDefault(), l.stopPropagation()), setTimeout(() => {
41
+ s.value = !1;
42
+ }, 100);
43
+ }, i = ne(() => t.type === "profile");
44
+ return (l, h) => (T(), P("div", zs, [
45
+ i.value ? (T(), P("a", {
46
+ key: 0,
47
+ href: "#",
48
+ class: "cursor-pointer nav-link dropdown-toggle d-flex align-items-center border rounded p-2",
49
+ onClick: r,
50
+ onBlur: n
51
+ }, [
52
+ h[0] || (h[0] = Y("div", { class: "circl" }, null, -1)),
53
+ Us(" " + V(e.title), 1)
54
+ ], 32)) : (T(), P("a", {
55
+ key: 1,
56
+ href: "#",
57
+ class: "link-dark",
58
+ type: "button",
59
+ onClick: r,
60
+ onBlur: n
61
+ }, [
62
+ Y("span", Zs, V(e.title), 1),
63
+ h[1] || (h[1] = Y("i", {
64
+ class: "bi bi-chevron-up dropdown-edit",
65
+ style: { "font-size": "12px", "padding-inline-start": "5px" }
66
+ }, null, -1))
67
+ ], 32)),
68
+ Y("div", Bs, [
69
+ s.value ? (T(), P("ul", qs, [
70
+ (T(!0), P(Hs, null, Vs(e.links, (f, M) => (T(), P("li", { key: M }, [
71
+ f.hidden ? Se("", !0) : (T(), P("div", {
72
+ key: 0,
73
+ class: ve(["dropdown-item", { disabled: f?.disabled }]),
74
+ style: { cursor: "pointer" },
75
+ onMousedown: Vt((C) => a(f?.action), ["prevent"])
76
+ }, V(f?.title), 43, Qs))
77
+ ]))), 128))
78
+ ])) : Se("", !0)
79
+ ])
80
+ ]));
81
+ }
82
+ }, Ks = /* @__PURE__ */ Ve(Js, [["__scopeId", "data-v-81ded822"]]), Xs = "data:image/svg+xml,%3csvg%20width='222'%20height='72'%20viewBox='0%200%20222%2072'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20width='222'%20height='72'%20fill='url(%23pattern0)'/%3e%3cdefs%3e%3cpattern%20id='pattern0'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_3427_23538'%20transform='matrix(0.00490002%200%200%200.0151084%200%20-0.00125339)'/%3e%3c/pattern%3e%3cimage%20id='image0_3427_23538'%20width='205'%20height='59'%20xlink:href='data:image/png;base64,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'/%3e%3c/defs%3e%3c/svg%3e", $s = ["src", "alt"], er = /* @__PURE__ */ He({
83
+ __name: "Logo",
84
+ props: {
85
+ src: { default: Xs },
86
+ alt: { default: "Logo" },
87
+ width: { default: 154 },
88
+ height: { default: 50 },
89
+ className: { default: "logo" },
90
+ style: { default: () => ({}) },
91
+ brandText: { default: void 0 },
92
+ textSize: { default: 12 },
93
+ textColor: { default: "#000" },
94
+ textWeight: { default: "normal" },
95
+ showText: { type: Boolean, default: !0 }
96
+ },
97
+ setup(e) {
98
+ const t = e, s = ne(() => t.src?.startsWith("~/") ? t.src.replace("~/", "/") : t.src), r = ne(() => {
99
+ const l = "r3ui-logo";
100
+ return t.className ? `${l} ${t.className}` : l;
101
+ }), a = ne(() => ({
102
+ width: typeof t.width == "number" ? `${t.width}px` : t.width,
103
+ height: typeof t.height == "number" ? `${t.height}px` : t.height,
104
+ ...t.style
105
+ })), n = ne(() => "r3ui-logo-container"), i = ne(() => ({
106
+ fontSize: typeof t.textSize == "number" ? `${t.textSize}px` : t.textSize,
107
+ color: t.textColor,
108
+ fontWeight: t.textWeight
109
+ }));
110
+ return (l, h) => (T(), P("div", {
111
+ class: ve(["r3ui-logo-container", n.value])
112
+ }, [
113
+ Y("img", {
114
+ src: s.value,
115
+ alt: l.alt,
116
+ class: ve(r.value),
117
+ style: Rt(a.value)
118
+ }, null, 14, $s),
119
+ l.brandText && l.brandText.trim() && l.showText ? (T(), P("span", {
120
+ key: 0,
121
+ class: "r3ui-logo-text",
122
+ style: Rt(i.value)
123
+ }, V(l.brandText), 5)) : Se("", !0)
124
+ ], 2));
125
+ }
126
+ }), tr = /* @__PURE__ */ Ve(er, [["__scopeId", "data-v-57bc5457"]]), sr = { class: "navbar navbar-expand-md navbar-light bg-white border-bottom hide-to-print r3ui-header" }, rr = { class: "row align-items-center" }, ar = { class: "col-auto pe-0" }, nr = { class: "col-auto ps-0 text-wrap mx-3 r3ui-header-label" }, ir = { class: "row" }, or = { class: "col-auto d-flex align-items-center" }, lr = {
127
+ key: 1,
128
+ class: "text-muted"
129
+ }, ur = { class: "col-auto" }, dr = /* @__PURE__ */ He({
130
+ __name: "Header",
131
+ props: {
132
+ isAuthenticated: { type: Boolean, default: !1 },
133
+ user: { type: Object, default: null },
134
+ brandText: { type: String, required: !0 },
135
+ loginText: { type: String, default: "Authorization" },
136
+ rawDropdownLinks: {
137
+ type: Array,
138
+ default: () => []
139
+ }
140
+ },
141
+ emits: ["navigate", "logout"],
142
+ setup(e, { emit: t }) {
143
+ const s = e, r = t, a = ne(() => s.rawDropdownLinks.map((n) => n.name === "logout" ? { ...n, action: () => r("logout") } : n.name.includes("http") ? {
144
+ ...n,
145
+ action: () => r("navigate", n.name, {
146
+ external: !0
147
+ })
148
+ } : { ...n, action: () => r("navigate", `/${n.name}`) }));
149
+ return (n, i) => (T(), P("div", sr, [
150
+ Y("div", {
151
+ class: ve([s.isAuthenticated ? "container-fluid" : "container"])
152
+ }, [
153
+ Y("a", {
154
+ href: "/",
155
+ onClick: i[0] || (i[0] = Vt(() => r("navigate", "/"), ["prevent"])),
156
+ class: "text-decoration-none r3ui-header-link"
157
+ }, [
158
+ Y("div", rr, [
159
+ Y("div", ar, [
160
+ At(n.$slots, "logo", {}, () => [
161
+ Gt(tr, {
162
+ class: "r3ui-header-logo",
163
+ brandText: s.brandText
164
+ }, null, 8, ["brandText"])
165
+ ], !0)
166
+ ]),
167
+ Y("div", nr, V(s.brandText), 1)
168
+ ])
169
+ ]),
170
+ Y("div", ir, [
171
+ Y("div", or, [
172
+ s.isAuthenticated ? (T(), Gs(Ks, {
173
+ key: 0,
174
+ type: "profile",
175
+ title: s.user?.name || "",
176
+ links: a.value
177
+ }, null, 8, ["title", "links"])) : Se("", !0),
178
+ s.isAuthenticated ? Se("", !0) : (T(), P("div", lr, V(s.loginText), 1))
179
+ ]),
180
+ Y("div", ur, [
181
+ At(n.$slots, "language-selector", {}, void 0, !0)
182
+ ])
183
+ ])
184
+ ], 2)
185
+ ]));
186
+ }
187
+ }), No = /* @__PURE__ */ Ve(dr, [["__scopeId", "data-v-a63a7e7f"]]);
188
+ //! moment.js
189
+ //! version : 2.30.1
190
+ //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
191
+ //! license : MIT
192
+ //! momentjs.com
193
+ var jt;
194
+ function u() {
195
+ return jt.apply(null, arguments);
196
+ }
197
+ function hr(e) {
198
+ jt = e;
199
+ }
200
+ function L(e) {
201
+ return e instanceof Array || Object.prototype.toString.call(e) === "[object Array]";
202
+ }
203
+ function oe(e) {
204
+ return e != null && Object.prototype.toString.call(e) === "[object Object]";
205
+ }
206
+ function g(e, t) {
207
+ return Object.prototype.hasOwnProperty.call(e, t);
208
+ }
209
+ function ht(e) {
210
+ if (Object.getOwnPropertyNames)
211
+ return Object.getOwnPropertyNames(e).length === 0;
212
+ var t;
213
+ for (t in e)
214
+ if (g(e, t))
215
+ return !1;
216
+ return !0;
217
+ }
218
+ function x(e) {
219
+ return e === void 0;
220
+ }
221
+ function X(e) {
222
+ return typeof e == "number" || Object.prototype.toString.call(e) === "[object Number]";
223
+ }
224
+ function be(e) {
225
+ return e instanceof Date || Object.prototype.toString.call(e) === "[object Date]";
226
+ }
227
+ function zt(e, t) {
228
+ var s = [], r, a = e.length;
229
+ for (r = 0; r < a; ++r)
230
+ s.push(t(e[r], r));
231
+ return s;
232
+ }
233
+ function te(e, t) {
234
+ for (var s in t)
235
+ g(t, s) && (e[s] = t[s]);
236
+ return g(t, "toString") && (e.toString = t.toString), g(t, "valueOf") && (e.valueOf = t.valueOf), e;
237
+ }
238
+ function j(e, t, s, r) {
239
+ return ms(e, t, s, r, !0).utc();
240
+ }
241
+ function cr() {
242
+ return {
243
+ empty: !1,
244
+ unusedTokens: [],
245
+ unusedInput: [],
246
+ overflow: -2,
247
+ charsLeftOver: 0,
248
+ nullInput: !1,
249
+ invalidEra: null,
250
+ invalidMonth: null,
251
+ invalidFormat: !1,
252
+ userInvalidated: !1,
253
+ iso: !1,
254
+ parsedDateParts: [],
255
+ era: null,
256
+ meridiem: null,
257
+ rfc2822: !1,
258
+ weekdayMismatch: !1
259
+ };
260
+ }
261
+ function m(e) {
262
+ return e._pf == null && (e._pf = cr()), e._pf;
263
+ }
264
+ var at;
265
+ Array.prototype.some ? at = Array.prototype.some : at = function(e) {
266
+ var t = Object(this), s = t.length >>> 0, r;
267
+ for (r = 0; r < s; r++)
268
+ if (r in t && e.call(this, t[r], r, t))
269
+ return !0;
270
+ return !1;
271
+ };
272
+ function ct(e) {
273
+ var t = null, s = !1, r = e._d && !isNaN(e._d.getTime());
274
+ if (r && (t = m(e), s = at.call(t.parsedDateParts, function(a) {
275
+ return a != null;
276
+ }), r = t.overflow < 0 && !t.empty && !t.invalidEra && !t.invalidMonth && !t.invalidWeekday && !t.weekdayMismatch && !t.nullInput && !t.invalidFormat && !t.userInvalidated && (!t.meridiem || t.meridiem && s), e._strict && (r = r && t.charsLeftOver === 0 && t.unusedTokens.length === 0 && t.bigHour === void 0)), Object.isFrozen == null || !Object.isFrozen(e))
277
+ e._isValid = r;
278
+ else
279
+ return r;
280
+ return e._isValid;
281
+ }
282
+ function Ge(e) {
283
+ var t = j(NaN);
284
+ return e != null ? te(m(t), e) : m(t).userInvalidated = !0, t;
285
+ }
286
+ var Ct = u.momentProperties = [], et = !1;
287
+ function ft(e, t) {
288
+ var s, r, a, n = Ct.length;
289
+ if (x(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject), x(t._i) || (e._i = t._i), x(t._f) || (e._f = t._f), x(t._l) || (e._l = t._l), x(t._strict) || (e._strict = t._strict), x(t._tzm) || (e._tzm = t._tzm), x(t._isUTC) || (e._isUTC = t._isUTC), x(t._offset) || (e._offset = t._offset), x(t._pf) || (e._pf = m(t)), x(t._locale) || (e._locale = t._locale), n > 0)
290
+ for (s = 0; s < n; s++)
291
+ r = Ct[s], a = t[r], x(a) || (e[r] = a);
292
+ return e;
293
+ }
294
+ function Te(e) {
295
+ ft(this, e), this._d = new Date(e._d != null ? e._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), et === !1 && (et = !0, u.updateOffset(this), et = !1);
296
+ }
297
+ function E(e) {
298
+ return e instanceof Te || e != null && e._isAMomentObject != null;
299
+ }
300
+ function Zt(e) {
301
+ u.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + e);
302
+ }
303
+ function R(e, t) {
304
+ var s = !0;
305
+ return te(function() {
306
+ if (u.deprecationHandler != null && u.deprecationHandler(null, e), s) {
307
+ var r = [], a, n, i, l = arguments.length;
308
+ for (n = 0; n < l; n++) {
309
+ if (a = "", typeof arguments[n] == "object") {
310
+ a += `
311
+ [` + n + "] ";
312
+ for (i in arguments[0])
313
+ g(arguments[0], i) && (a += i + ": " + arguments[0][i] + ", ");
314
+ a = a.slice(0, -2);
315
+ } else
316
+ a = arguments[n];
317
+ r.push(a);
318
+ }
319
+ Zt(
320
+ e + `
321
+ Arguments: ` + Array.prototype.slice.call(r).join("") + `
322
+ ` + new Error().stack
323
+ ), s = !1;
324
+ }
325
+ return t.apply(this, arguments);
326
+ }, t);
327
+ }
328
+ var It = {};
329
+ function Bt(e, t) {
330
+ u.deprecationHandler != null && u.deprecationHandler(e, t), It[e] || (Zt(t), It[e] = !0);
331
+ }
332
+ u.suppressDeprecationWarnings = !1;
333
+ u.deprecationHandler = null;
334
+ function z(e) {
335
+ return typeof Function < "u" && e instanceof Function || Object.prototype.toString.call(e) === "[object Function]";
336
+ }
337
+ function fr(e) {
338
+ var t, s;
339
+ for (s in e)
340
+ g(e, s) && (t = e[s], z(t) ? this[s] = t : this["_" + s] = t);
341
+ this._config = e, this._dayOfMonthOrdinalParseLenient = new RegExp(
342
+ (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source
343
+ );
344
+ }
345
+ function nt(e, t) {
346
+ var s = te({}, e), r;
347
+ for (r in t)
348
+ g(t, r) && (oe(e[r]) && oe(t[r]) ? (s[r] = {}, te(s[r], e[r]), te(s[r], t[r])) : t[r] != null ? s[r] = t[r] : delete s[r]);
349
+ for (r in e)
350
+ g(e, r) && !g(t, r) && oe(e[r]) && (s[r] = te({}, s[r]));
351
+ return s;
352
+ }
353
+ function mt(e) {
354
+ e != null && this.set(e);
355
+ }
356
+ var it;
357
+ Object.keys ? it = Object.keys : it = function(e) {
358
+ var t, s = [];
359
+ for (t in e)
360
+ g(e, t) && s.push(t);
361
+ return s;
362
+ };
363
+ var mr = {
364
+ sameDay: "[Today at] LT",
365
+ nextDay: "[Tomorrow at] LT",
366
+ nextWeek: "dddd [at] LT",
367
+ lastDay: "[Yesterday at] LT",
368
+ lastWeek: "[Last] dddd [at] LT",
369
+ sameElse: "L"
370
+ };
371
+ function yr(e, t, s) {
372
+ var r = this._calendar[e] || this._calendar.sameElse;
373
+ return z(r) ? r.call(t, s) : r;
374
+ }
375
+ function G(e, t, s) {
376
+ var r = "" + Math.abs(e), a = t - r.length, n = e >= 0;
377
+ return (n ? s ? "+" : "" : "-") + Math.pow(10, Math.max(0, a)).toString().substr(1) + r;
378
+ }
379
+ var yt = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, Ne = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, tt = {}, ce = {};
380
+ function c(e, t, s, r) {
381
+ var a = r;
382
+ typeof r == "string" && (a = function() {
383
+ return this[r]();
384
+ }), e && (ce[e] = a), t && (ce[t[0]] = function() {
385
+ return G(a.apply(this, arguments), t[1], t[2]);
386
+ }), s && (ce[s] = function() {
387
+ return this.localeData().ordinal(
388
+ a.apply(this, arguments),
389
+ e
390
+ );
391
+ });
392
+ }
393
+ function _r(e) {
394
+ return e.match(/\[[\s\S]/) ? e.replace(/^\[|\]$/g, "") : e.replace(/\\/g, "");
395
+ }
396
+ function gr(e) {
397
+ var t = e.match(yt), s, r;
398
+ for (s = 0, r = t.length; s < r; s++)
399
+ ce[t[s]] ? t[s] = ce[t[s]] : t[s] = _r(t[s]);
400
+ return function(a) {
401
+ var n = "", i;
402
+ for (i = 0; i < r; i++)
403
+ n += z(t[i]) ? t[i].call(a, e) : t[i];
404
+ return n;
405
+ };
406
+ }
407
+ function Re(e, t) {
408
+ return e.isValid() ? (t = qt(t, e.localeData()), tt[t] = tt[t] || gr(t), tt[t](e)) : e.localeData().invalidDate();
409
+ }
410
+ function qt(e, t) {
411
+ var s = 5;
412
+ function r(a) {
413
+ return t.longDateFormat(a) || a;
414
+ }
415
+ for (Ne.lastIndex = 0; s >= 0 && Ne.test(e); )
416
+ e = e.replace(
417
+ Ne,
418
+ r
419
+ ), Ne.lastIndex = 0, s -= 1;
420
+ return e;
421
+ }
422
+ var wr = {
423
+ LTS: "h:mm:ss A",
424
+ LT: "h:mm A",
425
+ L: "MM/DD/YYYY",
426
+ LL: "MMMM D, YYYY",
427
+ LLL: "MMMM D, YYYY h:mm A",
428
+ LLLL: "dddd, MMMM D, YYYY h:mm A"
429
+ };
430
+ function pr(e) {
431
+ var t = this._longDateFormat[e], s = this._longDateFormat[e.toUpperCase()];
432
+ return t || !s ? t : (this._longDateFormat[e] = s.match(yt).map(function(r) {
433
+ return r === "MMMM" || r === "MM" || r === "DD" || r === "dddd" ? r.slice(1) : r;
434
+ }).join(""), this._longDateFormat[e]);
435
+ }
436
+ var kr = "Invalid date";
437
+ function Sr() {
438
+ return this._invalidDate;
439
+ }
440
+ var vr = "%d", Mr = /\d{1,2}/;
441
+ function Dr(e) {
442
+ return this._ordinal.replace("%d", e);
443
+ }
444
+ var Yr = {
445
+ future: "in %s",
446
+ past: "%s ago",
447
+ s: "a few seconds",
448
+ ss: "%d seconds",
449
+ m: "a minute",
450
+ mm: "%d minutes",
451
+ h: "an hour",
452
+ hh: "%d hours",
453
+ d: "a day",
454
+ dd: "%d days",
455
+ w: "a week",
456
+ ww: "%d weeks",
457
+ M: "a month",
458
+ MM: "%d months",
459
+ y: "a year",
460
+ yy: "%d years"
461
+ };
462
+ function Or(e, t, s, r) {
463
+ var a = this._relativeTime[s];
464
+ return z(a) ? a(e, t, s, r) : a.replace(/%d/i, e);
465
+ }
466
+ function br(e, t) {
467
+ var s = this._relativeTime[e > 0 ? "future" : "past"];
468
+ return z(s) ? s(t) : s.replace(/%s/i, t);
469
+ }
470
+ var Ft = {
471
+ D: "date",
472
+ dates: "date",
473
+ date: "date",
474
+ d: "day",
475
+ days: "day",
476
+ day: "day",
477
+ e: "weekday",
478
+ weekdays: "weekday",
479
+ weekday: "weekday",
480
+ E: "isoWeekday",
481
+ isoweekdays: "isoWeekday",
482
+ isoweekday: "isoWeekday",
483
+ DDD: "dayOfYear",
484
+ dayofyears: "dayOfYear",
485
+ dayofyear: "dayOfYear",
486
+ h: "hour",
487
+ hours: "hour",
488
+ hour: "hour",
489
+ ms: "millisecond",
490
+ milliseconds: "millisecond",
491
+ millisecond: "millisecond",
492
+ m: "minute",
493
+ minutes: "minute",
494
+ minute: "minute",
495
+ M: "month",
496
+ months: "month",
497
+ month: "month",
498
+ Q: "quarter",
499
+ quarters: "quarter",
500
+ quarter: "quarter",
501
+ s: "second",
502
+ seconds: "second",
503
+ second: "second",
504
+ gg: "weekYear",
505
+ weekyears: "weekYear",
506
+ weekyear: "weekYear",
507
+ GG: "isoWeekYear",
508
+ isoweekyears: "isoWeekYear",
509
+ isoweekyear: "isoWeekYear",
510
+ w: "week",
511
+ weeks: "week",
512
+ week: "week",
513
+ W: "isoWeek",
514
+ isoweeks: "isoWeek",
515
+ isoweek: "isoWeek",
516
+ y: "year",
517
+ years: "year",
518
+ year: "year"
519
+ };
520
+ function A(e) {
521
+ return typeof e == "string" ? Ft[e] || Ft[e.toLowerCase()] : void 0;
522
+ }
523
+ function _t(e) {
524
+ var t = {}, s, r;
525
+ for (r in e)
526
+ g(e, r) && (s = A(r), s && (t[s] = e[r]));
527
+ return t;
528
+ }
529
+ var Tr = {
530
+ date: 9,
531
+ day: 11,
532
+ weekday: 11,
533
+ isoWeekday: 11,
534
+ dayOfYear: 4,
535
+ hour: 13,
536
+ millisecond: 16,
537
+ minute: 14,
538
+ month: 8,
539
+ quarter: 7,
540
+ second: 15,
541
+ weekYear: 1,
542
+ isoWeekYear: 1,
543
+ week: 5,
544
+ isoWeek: 5,
545
+ year: 1
546
+ };
547
+ function xr(e) {
548
+ var t = [], s;
549
+ for (s in e)
550
+ g(e, s) && t.push({ unit: s, priority: Tr[s] });
551
+ return t.sort(function(r, a) {
552
+ return r.priority - a.priority;
553
+ }), t;
554
+ }
555
+ var Qt = /\d/, N = /\d\d/, Jt = /\d{3}/, gt = /\d{4}/, je = /[+-]?\d{6}/, S = /\d\d?/, Kt = /\d\d\d\d?/, Xt = /\d\d\d\d\d\d?/, ze = /\d{1,3}/, wt = /\d{1,4}/, Ze = /[+-]?\d{1,6}/, ye = /\d+/, Be = /[+-]?\d+/, Pr = /Z|[+-]\d\d:?\d\d/gi, qe = /Z|[+-]\d\d(?::?\d\d)?/gi, Nr = /[+-]?\d+(\.\d{1,3})?/, xe = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, _e = /^[1-9]\d?/, pt = /^([1-9]\d|\d)/, Ie;
556
+ Ie = {};
557
+ function d(e, t, s) {
558
+ Ie[e] = z(t) ? t : function(r, a) {
559
+ return r && s ? s : t;
560
+ };
561
+ }
562
+ function Wr(e, t) {
563
+ return g(Ie, e) ? Ie[e](t._strict, t._locale) : new RegExp(Rr(e));
564
+ }
565
+ function Rr(e) {
566
+ return J(
567
+ e.replace("\\", "").replace(
568
+ /\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
569
+ function(t, s, r, a, n) {
570
+ return s || r || a || n;
571
+ }
572
+ )
573
+ );
574
+ }
575
+ function J(e) {
576
+ return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
577
+ }
578
+ function W(e) {
579
+ return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);
580
+ }
581
+ function y(e) {
582
+ var t = +e, s = 0;
583
+ return t !== 0 && isFinite(t) && (s = W(t)), s;
584
+ }
585
+ var ot = {};
586
+ function p(e, t) {
587
+ var s, r = t, a;
588
+ for (typeof e == "string" && (e = [e]), X(t) && (r = function(n, i) {
589
+ i[t] = y(n);
590
+ }), a = e.length, s = 0; s < a; s++)
591
+ ot[e[s]] = r;
592
+ }
593
+ function Pe(e, t) {
594
+ p(e, function(s, r, a, n) {
595
+ a._w = a._w || {}, t(s, a._w, a, n);
596
+ });
597
+ }
598
+ function Ar(e, t, s) {
599
+ t != null && g(ot, e) && ot[e](t, s._a, s, e);
600
+ }
601
+ function Qe(e) {
602
+ return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0;
603
+ }
604
+ var b = 0, q = 1, H = 2, O = 3, F = 4, Q = 5, ie = 6, Cr = 7, Ir = 8;
605
+ c("Y", 0, 0, function() {
606
+ var e = this.year();
607
+ return e <= 9999 ? G(e, 4) : "+" + e;
608
+ });
609
+ c(0, ["YY", 2], 0, function() {
610
+ return this.year() % 100;
611
+ });
612
+ c(0, ["YYYY", 4], 0, "year");
613
+ c(0, ["YYYYY", 5], 0, "year");
614
+ c(0, ["YYYYYY", 6, !0], 0, "year");
615
+ d("Y", Be);
616
+ d("YY", S, N);
617
+ d("YYYY", wt, gt);
618
+ d("YYYYY", Ze, je);
619
+ d("YYYYYY", Ze, je);
620
+ p(["YYYYY", "YYYYYY"], b);
621
+ p("YYYY", function(e, t) {
622
+ t[b] = e.length === 2 ? u.parseTwoDigitYear(e) : y(e);
623
+ });
624
+ p("YY", function(e, t) {
625
+ t[b] = u.parseTwoDigitYear(e);
626
+ });
627
+ p("Y", function(e, t) {
628
+ t[b] = parseInt(e, 10);
629
+ });
630
+ function ke(e) {
631
+ return Qe(e) ? 366 : 365;
632
+ }
633
+ u.parseTwoDigitYear = function(e) {
634
+ return y(e) + (y(e) > 68 ? 1900 : 2e3);
635
+ };
636
+ var $t = ge("FullYear", !0);
637
+ function Fr() {
638
+ return Qe(this.year());
639
+ }
640
+ function ge(e, t) {
641
+ return function(s) {
642
+ return s != null ? (es(this, e, s), u.updateOffset(this, t), this) : Me(this, e);
643
+ };
644
+ }
645
+ function Me(e, t) {
646
+ if (!e.isValid())
647
+ return NaN;
648
+ var s = e._d, r = e._isUTC;
649
+ switch (t) {
650
+ case "Milliseconds":
651
+ return r ? s.getUTCMilliseconds() : s.getMilliseconds();
652
+ case "Seconds":
653
+ return r ? s.getUTCSeconds() : s.getSeconds();
654
+ case "Minutes":
655
+ return r ? s.getUTCMinutes() : s.getMinutes();
656
+ case "Hours":
657
+ return r ? s.getUTCHours() : s.getHours();
658
+ case "Date":
659
+ return r ? s.getUTCDate() : s.getDate();
660
+ case "Day":
661
+ return r ? s.getUTCDay() : s.getDay();
662
+ case "Month":
663
+ return r ? s.getUTCMonth() : s.getMonth();
664
+ case "FullYear":
665
+ return r ? s.getUTCFullYear() : s.getFullYear();
666
+ default:
667
+ return NaN;
668
+ }
669
+ }
670
+ function es(e, t, s) {
671
+ var r, a, n, i, l;
672
+ if (!(!e.isValid() || isNaN(s))) {
673
+ switch (r = e._d, a = e._isUTC, t) {
674
+ case "Milliseconds":
675
+ return void (a ? r.setUTCMilliseconds(s) : r.setMilliseconds(s));
676
+ case "Seconds":
677
+ return void (a ? r.setUTCSeconds(s) : r.setSeconds(s));
678
+ case "Minutes":
679
+ return void (a ? r.setUTCMinutes(s) : r.setMinutes(s));
680
+ case "Hours":
681
+ return void (a ? r.setUTCHours(s) : r.setHours(s));
682
+ case "Date":
683
+ return void (a ? r.setUTCDate(s) : r.setDate(s));
684
+ // case 'Day': // Not real
685
+ // return void (isUTC ? d.setUTCDay(value) : d.setDay(value));
686
+ // case 'Month': // Not used because we need to pass two variables
687
+ // return void (isUTC ? d.setUTCMonth(value) : d.setMonth(value));
688
+ case "FullYear":
689
+ break;
690
+ // See below ...
691
+ default:
692
+ return;
693
+ }
694
+ n = s, i = e.month(), l = e.date(), l = l === 29 && i === 1 && !Qe(n) ? 28 : l, a ? r.setUTCFullYear(n, i, l) : r.setFullYear(n, i, l);
695
+ }
696
+ }
697
+ function Lr(e) {
698
+ return e = A(e), z(this[e]) ? this[e]() : this;
699
+ }
700
+ function Er(e, t) {
701
+ if (typeof e == "object") {
702
+ e = _t(e);
703
+ var s = xr(e), r, a = s.length;
704
+ for (r = 0; r < a; r++)
705
+ this[s[r].unit](e[s[r].unit]);
706
+ } else if (e = A(e), z(this[e]))
707
+ return this[e](t);
708
+ return this;
709
+ }
710
+ function Ur(e, t) {
711
+ return (e % t + t) % t;
712
+ }
713
+ var D;
714
+ Array.prototype.indexOf ? D = Array.prototype.indexOf : D = function(e) {
715
+ var t;
716
+ for (t = 0; t < this.length; ++t)
717
+ if (this[t] === e)
718
+ return t;
719
+ return -1;
720
+ };
721
+ function kt(e, t) {
722
+ if (isNaN(e) || isNaN(t))
723
+ return NaN;
724
+ var s = Ur(t, 12);
725
+ return e += (t - s) / 12, s === 1 ? Qe(e) ? 29 : 28 : 31 - s % 7 % 2;
726
+ }
727
+ c("M", ["MM", 2], "Mo", function() {
728
+ return this.month() + 1;
729
+ });
730
+ c("MMM", 0, 0, function(e) {
731
+ return this.localeData().monthsShort(this, e);
732
+ });
733
+ c("MMMM", 0, 0, function(e) {
734
+ return this.localeData().months(this, e);
735
+ });
736
+ d("M", S, _e);
737
+ d("MM", S, N);
738
+ d("MMM", function(e, t) {
739
+ return t.monthsShortRegex(e);
740
+ });
741
+ d("MMMM", function(e, t) {
742
+ return t.monthsRegex(e);
743
+ });
744
+ p(["M", "MM"], function(e, t) {
745
+ t[q] = y(e) - 1;
746
+ });
747
+ p(["MMM", "MMMM"], function(e, t, s, r) {
748
+ var a = s._locale.monthsParse(e, r, s._strict);
749
+ a != null ? t[q] = a : m(s).invalidMonth = e;
750
+ });
751
+ var Hr = "January_February_March_April_May_June_July_August_September_October_November_December".split(
752
+ "_"
753
+ ), ts = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), ss = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, Vr = xe, Gr = xe;
754
+ function jr(e, t) {
755
+ return e ? L(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat || ss).test(t) ? "format" : "standalone"][e.month()] : L(this._months) ? this._months : this._months.standalone;
756
+ }
757
+ function zr(e, t) {
758
+ return e ? L(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[ss.test(t) ? "format" : "standalone"][e.month()] : L(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
759
+ }
760
+ function Zr(e, t, s) {
761
+ var r, a, n, i = e.toLocaleLowerCase();
762
+ if (!this._monthsParse)
763
+ for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], r = 0; r < 12; ++r)
764
+ n = j([2e3, r]), this._shortMonthsParse[r] = this.monthsShort(
765
+ n,
766
+ ""
767
+ ).toLocaleLowerCase(), this._longMonthsParse[r] = this.months(n, "").toLocaleLowerCase();
768
+ return s ? t === "MMM" ? (a = D.call(this._shortMonthsParse, i), a !== -1 ? a : null) : (a = D.call(this._longMonthsParse, i), a !== -1 ? a : null) : t === "MMM" ? (a = D.call(this._shortMonthsParse, i), a !== -1 ? a : (a = D.call(this._longMonthsParse, i), a !== -1 ? a : null)) : (a = D.call(this._longMonthsParse, i), a !== -1 ? a : (a = D.call(this._shortMonthsParse, i), a !== -1 ? a : null));
769
+ }
770
+ function Br(e, t, s) {
771
+ var r, a, n;
772
+ if (this._monthsParseExact)
773
+ return Zr.call(this, e, t, s);
774
+ for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), r = 0; r < 12; r++) {
775
+ if (a = j([2e3, r]), s && !this._longMonthsParse[r] && (this._longMonthsParse[r] = new RegExp(
776
+ "^" + this.months(a, "").replace(".", "") + "$",
777
+ "i"
778
+ ), this._shortMonthsParse[r] = new RegExp(
779
+ "^" + this.monthsShort(a, "").replace(".", "") + "$",
780
+ "i"
781
+ )), !s && !this._monthsParse[r] && (n = "^" + this.months(a, "") + "|^" + this.monthsShort(a, ""), this._monthsParse[r] = new RegExp(n.replace(".", ""), "i")), s && t === "MMMM" && this._longMonthsParse[r].test(e))
782
+ return r;
783
+ if (s && t === "MMM" && this._shortMonthsParse[r].test(e))
784
+ return r;
785
+ if (!s && this._monthsParse[r].test(e))
786
+ return r;
787
+ }
788
+ }
789
+ function rs(e, t) {
790
+ if (!e.isValid())
791
+ return e;
792
+ if (typeof t == "string") {
793
+ if (/^\d+$/.test(t))
794
+ t = y(t);
795
+ else if (t = e.localeData().monthsParse(t), !X(t))
796
+ return e;
797
+ }
798
+ var s = t, r = e.date();
799
+ return r = r < 29 ? r : Math.min(r, kt(e.year(), s)), e._isUTC ? e._d.setUTCMonth(s, r) : e._d.setMonth(s, r), e;
800
+ }
801
+ function as(e) {
802
+ return e != null ? (rs(this, e), u.updateOffset(this, !0), this) : Me(this, "Month");
803
+ }
804
+ function qr() {
805
+ return kt(this.year(), this.month());
806
+ }
807
+ function Qr(e) {
808
+ return this._monthsParseExact ? (g(this, "_monthsRegex") || ns.call(this), e ? this._monthsShortStrictRegex : this._monthsShortRegex) : (g(this, "_monthsShortRegex") || (this._monthsShortRegex = Vr), this._monthsShortStrictRegex && e ? this._monthsShortStrictRegex : this._monthsShortRegex);
809
+ }
810
+ function Jr(e) {
811
+ return this._monthsParseExact ? (g(this, "_monthsRegex") || ns.call(this), e ? this._monthsStrictRegex : this._monthsRegex) : (g(this, "_monthsRegex") || (this._monthsRegex = Gr), this._monthsStrictRegex && e ? this._monthsStrictRegex : this._monthsRegex);
812
+ }
813
+ function ns() {
814
+ function e(h, f) {
815
+ return f.length - h.length;
816
+ }
817
+ var t = [], s = [], r = [], a, n, i, l;
818
+ for (a = 0; a < 12; a++)
819
+ n = j([2e3, a]), i = J(this.monthsShort(n, "")), l = J(this.months(n, "")), t.push(i), s.push(l), r.push(l), r.push(i);
820
+ t.sort(e), s.sort(e), r.sort(e), this._monthsRegex = new RegExp("^(" + r.join("|") + ")", "i"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp(
821
+ "^(" + s.join("|") + ")",
822
+ "i"
823
+ ), this._monthsShortStrictRegex = new RegExp(
824
+ "^(" + t.join("|") + ")",
825
+ "i"
826
+ );
827
+ }
828
+ function Kr(e, t, s, r, a, n, i) {
829
+ var l;
830
+ return e < 100 && e >= 0 ? (l = new Date(e + 400, t, s, r, a, n, i), isFinite(l.getFullYear()) && l.setFullYear(e)) : l = new Date(e, t, s, r, a, n, i), l;
831
+ }
832
+ function De(e) {
833
+ var t, s;
834
+ return e < 100 && e >= 0 ? (s = Array.prototype.slice.call(arguments), s[0] = e + 400, t = new Date(Date.UTC.apply(null, s)), isFinite(t.getUTCFullYear()) && t.setUTCFullYear(e)) : t = new Date(Date.UTC.apply(null, arguments)), t;
835
+ }
836
+ function Fe(e, t, s) {
837
+ var r = 7 + t - s, a = (7 + De(e, 0, r).getUTCDay() - t) % 7;
838
+ return -a + r - 1;
839
+ }
840
+ function is(e, t, s, r, a) {
841
+ var n = (7 + s - r) % 7, i = Fe(e, r, a), l = 1 + 7 * (t - 1) + n + i, h, f;
842
+ return l <= 0 ? (h = e - 1, f = ke(h) + l) : l > ke(e) ? (h = e + 1, f = l - ke(e)) : (h = e, f = l), {
843
+ year: h,
844
+ dayOfYear: f
845
+ };
846
+ }
847
+ function Ye(e, t, s) {
848
+ var r = Fe(e.year(), t, s), a = Math.floor((e.dayOfYear() - r - 1) / 7) + 1, n, i;
849
+ return a < 1 ? (i = e.year() - 1, n = a + K(i, t, s)) : a > K(e.year(), t, s) ? (n = a - K(e.year(), t, s), i = e.year() + 1) : (i = e.year(), n = a), {
850
+ week: n,
851
+ year: i
852
+ };
853
+ }
854
+ function K(e, t, s) {
855
+ var r = Fe(e, t, s), a = Fe(e + 1, t, s);
856
+ return (ke(e) - r + a) / 7;
857
+ }
858
+ c("w", ["ww", 2], "wo", "week");
859
+ c("W", ["WW", 2], "Wo", "isoWeek");
860
+ d("w", S, _e);
861
+ d("ww", S, N);
862
+ d("W", S, _e);
863
+ d("WW", S, N);
864
+ Pe(
865
+ ["w", "ww", "W", "WW"],
866
+ function(e, t, s, r) {
867
+ t[r.substr(0, 1)] = y(e);
868
+ }
869
+ );
870
+ function Xr(e) {
871
+ return Ye(e, this._week.dow, this._week.doy).week;
872
+ }
873
+ var $r = {
874
+ dow: 0,
875
+ // Sunday is the first day of the week.
876
+ doy: 6
877
+ // The week that contains Jan 6th is the first week of the year.
878
+ };
879
+ function ea() {
880
+ return this._week.dow;
881
+ }
882
+ function ta() {
883
+ return this._week.doy;
884
+ }
885
+ function sa(e) {
886
+ var t = this.localeData().week(this);
887
+ return e == null ? t : this.add((e - t) * 7, "d");
888
+ }
889
+ function ra(e) {
890
+ var t = Ye(this, 1, 4).week;
891
+ return e == null ? t : this.add((e - t) * 7, "d");
892
+ }
893
+ c("d", 0, "do", "day");
894
+ c("dd", 0, 0, function(e) {
895
+ return this.localeData().weekdaysMin(this, e);
896
+ });
897
+ c("ddd", 0, 0, function(e) {
898
+ return this.localeData().weekdaysShort(this, e);
899
+ });
900
+ c("dddd", 0, 0, function(e) {
901
+ return this.localeData().weekdays(this, e);
902
+ });
903
+ c("e", 0, 0, "weekday");
904
+ c("E", 0, 0, "isoWeekday");
905
+ d("d", S);
906
+ d("e", S);
907
+ d("E", S);
908
+ d("dd", function(e, t) {
909
+ return t.weekdaysMinRegex(e);
910
+ });
911
+ d("ddd", function(e, t) {
912
+ return t.weekdaysShortRegex(e);
913
+ });
914
+ d("dddd", function(e, t) {
915
+ return t.weekdaysRegex(e);
916
+ });
917
+ Pe(["dd", "ddd", "dddd"], function(e, t, s, r) {
918
+ var a = s._locale.weekdaysParse(e, r, s._strict);
919
+ a != null ? t.d = a : m(s).invalidWeekday = e;
920
+ });
921
+ Pe(["d", "e", "E"], function(e, t, s, r) {
922
+ t[r] = y(e);
923
+ });
924
+ function aa(e, t) {
925
+ return typeof e != "string" ? e : isNaN(e) ? (e = t.weekdaysParse(e), typeof e == "number" ? e : null) : parseInt(e, 10);
926
+ }
927
+ function na(e, t) {
928
+ return typeof e == "string" ? t.weekdaysParse(e) % 7 || 7 : isNaN(e) ? null : e;
929
+ }
930
+ function St(e, t) {
931
+ return e.slice(t, 7).concat(e.slice(0, t));
932
+ }
933
+ var ia = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), os = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), oa = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), la = xe, ua = xe, da = xe;
934
+ function ha(e, t) {
935
+ var s = L(this._weekdays) ? this._weekdays : this._weekdays[e && e !== !0 && this._weekdays.isFormat.test(t) ? "format" : "standalone"];
936
+ return e === !0 ? St(s, this._week.dow) : e ? s[e.day()] : s;
937
+ }
938
+ function ca(e) {
939
+ return e === !0 ? St(this._weekdaysShort, this._week.dow) : e ? this._weekdaysShort[e.day()] : this._weekdaysShort;
940
+ }
941
+ function fa(e) {
942
+ return e === !0 ? St(this._weekdaysMin, this._week.dow) : e ? this._weekdaysMin[e.day()] : this._weekdaysMin;
943
+ }
944
+ function ma(e, t, s) {
945
+ var r, a, n, i = e.toLocaleLowerCase();
946
+ if (!this._weekdaysParse)
947
+ for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], r = 0; r < 7; ++r)
948
+ n = j([2e3, 1]).day(r), this._minWeekdaysParse[r] = this.weekdaysMin(
949
+ n,
950
+ ""
951
+ ).toLocaleLowerCase(), this._shortWeekdaysParse[r] = this.weekdaysShort(
952
+ n,
953
+ ""
954
+ ).toLocaleLowerCase(), this._weekdaysParse[r] = this.weekdays(n, "").toLocaleLowerCase();
955
+ return s ? t === "dddd" ? (a = D.call(this._weekdaysParse, i), a !== -1 ? a : null) : t === "ddd" ? (a = D.call(this._shortWeekdaysParse, i), a !== -1 ? a : null) : (a = D.call(this._minWeekdaysParse, i), a !== -1 ? a : null) : t === "dddd" ? (a = D.call(this._weekdaysParse, i), a !== -1 || (a = D.call(this._shortWeekdaysParse, i), a !== -1) ? a : (a = D.call(this._minWeekdaysParse, i), a !== -1 ? a : null)) : t === "ddd" ? (a = D.call(this._shortWeekdaysParse, i), a !== -1 || (a = D.call(this._weekdaysParse, i), a !== -1) ? a : (a = D.call(this._minWeekdaysParse, i), a !== -1 ? a : null)) : (a = D.call(this._minWeekdaysParse, i), a !== -1 || (a = D.call(this._weekdaysParse, i), a !== -1) ? a : (a = D.call(this._shortWeekdaysParse, i), a !== -1 ? a : null));
956
+ }
957
+ function ya(e, t, s) {
958
+ var r, a, n;
959
+ if (this._weekdaysParseExact)
960
+ return ma.call(this, e, t, s);
961
+ for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), r = 0; r < 7; r++) {
962
+ if (a = j([2e3, 1]).day(r), s && !this._fullWeekdaysParse[r] && (this._fullWeekdaysParse[r] = new RegExp(
963
+ "^" + this.weekdays(a, "").replace(".", "\\.?") + "$",
964
+ "i"
965
+ ), this._shortWeekdaysParse[r] = new RegExp(
966
+ "^" + this.weekdaysShort(a, "").replace(".", "\\.?") + "$",
967
+ "i"
968
+ ), this._minWeekdaysParse[r] = new RegExp(
969
+ "^" + this.weekdaysMin(a, "").replace(".", "\\.?") + "$",
970
+ "i"
971
+ )), this._weekdaysParse[r] || (n = "^" + this.weekdays(a, "") + "|^" + this.weekdaysShort(a, "") + "|^" + this.weekdaysMin(a, ""), this._weekdaysParse[r] = new RegExp(n.replace(".", ""), "i")), s && t === "dddd" && this._fullWeekdaysParse[r].test(e))
972
+ return r;
973
+ if (s && t === "ddd" && this._shortWeekdaysParse[r].test(e))
974
+ return r;
975
+ if (s && t === "dd" && this._minWeekdaysParse[r].test(e))
976
+ return r;
977
+ if (!s && this._weekdaysParse[r].test(e))
978
+ return r;
979
+ }
980
+ }
981
+ function _a(e) {
982
+ if (!this.isValid())
983
+ return e != null ? this : NaN;
984
+ var t = Me(this, "Day");
985
+ return e != null ? (e = aa(e, this.localeData()), this.add(e - t, "d")) : t;
986
+ }
987
+ function ga(e) {
988
+ if (!this.isValid())
989
+ return e != null ? this : NaN;
990
+ var t = (this.day() + 7 - this.localeData()._week.dow) % 7;
991
+ return e == null ? t : this.add(e - t, "d");
992
+ }
993
+ function wa(e) {
994
+ if (!this.isValid())
995
+ return e != null ? this : NaN;
996
+ if (e != null) {
997
+ var t = na(e, this.localeData());
998
+ return this.day(this.day() % 7 ? t : t - 7);
999
+ } else
1000
+ return this.day() || 7;
1001
+ }
1002
+ function pa(e) {
1003
+ return this._weekdaysParseExact ? (g(this, "_weekdaysRegex") || vt.call(this), e ? this._weekdaysStrictRegex : this._weekdaysRegex) : (g(this, "_weekdaysRegex") || (this._weekdaysRegex = la), this._weekdaysStrictRegex && e ? this._weekdaysStrictRegex : this._weekdaysRegex);
1004
+ }
1005
+ function ka(e) {
1006
+ return this._weekdaysParseExact ? (g(this, "_weekdaysRegex") || vt.call(this), e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) : (g(this, "_weekdaysShortRegex") || (this._weekdaysShortRegex = ua), this._weekdaysShortStrictRegex && e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex);
1007
+ }
1008
+ function Sa(e) {
1009
+ return this._weekdaysParseExact ? (g(this, "_weekdaysRegex") || vt.call(this), e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (g(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = da), this._weekdaysMinStrictRegex && e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex);
1010
+ }
1011
+ function vt() {
1012
+ function e(M, C) {
1013
+ return C.length - M.length;
1014
+ }
1015
+ var t = [], s = [], r = [], a = [], n, i, l, h, f;
1016
+ for (n = 0; n < 7; n++)
1017
+ i = j([2e3, 1]).day(n), l = J(this.weekdaysMin(i, "")), h = J(this.weekdaysShort(i, "")), f = J(this.weekdays(i, "")), t.push(l), s.push(h), r.push(f), a.push(l), a.push(h), a.push(f);
1018
+ t.sort(e), s.sort(e), r.sort(e), a.sort(e), this._weekdaysRegex = new RegExp("^(" + a.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp(
1019
+ "^(" + r.join("|") + ")",
1020
+ "i"
1021
+ ), this._weekdaysShortStrictRegex = new RegExp(
1022
+ "^(" + s.join("|") + ")",
1023
+ "i"
1024
+ ), this._weekdaysMinStrictRegex = new RegExp(
1025
+ "^(" + t.join("|") + ")",
1026
+ "i"
1027
+ );
1028
+ }
1029
+ function Mt() {
1030
+ return this.hours() % 12 || 12;
1031
+ }
1032
+ function va() {
1033
+ return this.hours() || 24;
1034
+ }
1035
+ c("H", ["HH", 2], 0, "hour");
1036
+ c("h", ["hh", 2], 0, Mt);
1037
+ c("k", ["kk", 2], 0, va);
1038
+ c("hmm", 0, 0, function() {
1039
+ return "" + Mt.apply(this) + G(this.minutes(), 2);
1040
+ });
1041
+ c("hmmss", 0, 0, function() {
1042
+ return "" + Mt.apply(this) + G(this.minutes(), 2) + G(this.seconds(), 2);
1043
+ });
1044
+ c("Hmm", 0, 0, function() {
1045
+ return "" + this.hours() + G(this.minutes(), 2);
1046
+ });
1047
+ c("Hmmss", 0, 0, function() {
1048
+ return "" + this.hours() + G(this.minutes(), 2) + G(this.seconds(), 2);
1049
+ });
1050
+ function ls(e, t) {
1051
+ c(e, 0, 0, function() {
1052
+ return this.localeData().meridiem(
1053
+ this.hours(),
1054
+ this.minutes(),
1055
+ t
1056
+ );
1057
+ });
1058
+ }
1059
+ ls("a", !0);
1060
+ ls("A", !1);
1061
+ function us(e, t) {
1062
+ return t._meridiemParse;
1063
+ }
1064
+ d("a", us);
1065
+ d("A", us);
1066
+ d("H", S, pt);
1067
+ d("h", S, _e);
1068
+ d("k", S, _e);
1069
+ d("HH", S, N);
1070
+ d("hh", S, N);
1071
+ d("kk", S, N);
1072
+ d("hmm", Kt);
1073
+ d("hmmss", Xt);
1074
+ d("Hmm", Kt);
1075
+ d("Hmmss", Xt);
1076
+ p(["H", "HH"], O);
1077
+ p(["k", "kk"], function(e, t, s) {
1078
+ var r = y(e);
1079
+ t[O] = r === 24 ? 0 : r;
1080
+ });
1081
+ p(["a", "A"], function(e, t, s) {
1082
+ s._isPm = s._locale.isPM(e), s._meridiem = e;
1083
+ });
1084
+ p(["h", "hh"], function(e, t, s) {
1085
+ t[O] = y(e), m(s).bigHour = !0;
1086
+ });
1087
+ p("hmm", function(e, t, s) {
1088
+ var r = e.length - 2;
1089
+ t[O] = y(e.substr(0, r)), t[F] = y(e.substr(r)), m(s).bigHour = !0;
1090
+ });
1091
+ p("hmmss", function(e, t, s) {
1092
+ var r = e.length - 4, a = e.length - 2;
1093
+ t[O] = y(e.substr(0, r)), t[F] = y(e.substr(r, 2)), t[Q] = y(e.substr(a)), m(s).bigHour = !0;
1094
+ });
1095
+ p("Hmm", function(e, t, s) {
1096
+ var r = e.length - 2;
1097
+ t[O] = y(e.substr(0, r)), t[F] = y(e.substr(r));
1098
+ });
1099
+ p("Hmmss", function(e, t, s) {
1100
+ var r = e.length - 4, a = e.length - 2;
1101
+ t[O] = y(e.substr(0, r)), t[F] = y(e.substr(r, 2)), t[Q] = y(e.substr(a));
1102
+ });
1103
+ function Ma(e) {
1104
+ return (e + "").toLowerCase().charAt(0) === "p";
1105
+ }
1106
+ var Da = /[ap]\.?m?\.?/i, Ya = ge("Hours", !0);
1107
+ function Oa(e, t, s) {
1108
+ return e > 11 ? s ? "pm" : "PM" : s ? "am" : "AM";
1109
+ }
1110
+ var ds = {
1111
+ calendar: mr,
1112
+ longDateFormat: wr,
1113
+ invalidDate: kr,
1114
+ ordinal: vr,
1115
+ dayOfMonthOrdinalParse: Mr,
1116
+ relativeTime: Yr,
1117
+ months: Hr,
1118
+ monthsShort: ts,
1119
+ week: $r,
1120
+ weekdays: ia,
1121
+ weekdaysMin: oa,
1122
+ weekdaysShort: os,
1123
+ meridiemParse: Da
1124
+ }, v = {}, we = {}, Oe;
1125
+ function ba(e, t) {
1126
+ var s, r = Math.min(e.length, t.length);
1127
+ for (s = 0; s < r; s += 1)
1128
+ if (e[s] !== t[s])
1129
+ return s;
1130
+ return r;
1131
+ }
1132
+ function Lt(e) {
1133
+ return e && e.toLowerCase().replace("_", "-");
1134
+ }
1135
+ function Ta(e) {
1136
+ for (var t = 0, s, r, a, n; t < e.length; ) {
1137
+ for (n = Lt(e[t]).split("-"), s = n.length, r = Lt(e[t + 1]), r = r ? r.split("-") : null; s > 0; ) {
1138
+ if (a = Je(n.slice(0, s).join("-")), a)
1139
+ return a;
1140
+ if (r && r.length >= s && ba(n, r) >= s - 1)
1141
+ break;
1142
+ s--;
1143
+ }
1144
+ t++;
1145
+ }
1146
+ return Oe;
1147
+ }
1148
+ function xa(e) {
1149
+ return !!(e && e.match("^[^/\\\\]*$"));
1150
+ }
1151
+ function Je(e) {
1152
+ var t = null, s;
1153
+ if (v[e] === void 0 && typeof module < "u" && module && module.exports && xa(e))
1154
+ try {
1155
+ t = Oe._abbr, s = require, s("./locale/" + e), re(t);
1156
+ } catch {
1157
+ v[e] = null;
1158
+ }
1159
+ return v[e];
1160
+ }
1161
+ function re(e, t) {
1162
+ var s;
1163
+ return e && (x(t) ? s = $(e) : s = Dt(e, t), s ? Oe = s : typeof console < "u" && console.warn && console.warn(
1164
+ "Locale " + e + " not found. Did you forget to load it?"
1165
+ )), Oe._abbr;
1166
+ }
1167
+ function Dt(e, t) {
1168
+ if (t !== null) {
1169
+ var s, r = ds;
1170
+ if (t.abbr = e, v[e] != null)
1171
+ Bt(
1172
+ "defineLocaleOverride",
1173
+ "use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."
1174
+ ), r = v[e]._config;
1175
+ else if (t.parentLocale != null)
1176
+ if (v[t.parentLocale] != null)
1177
+ r = v[t.parentLocale]._config;
1178
+ else if (s = Je(t.parentLocale), s != null)
1179
+ r = s._config;
1180
+ else
1181
+ return we[t.parentLocale] || (we[t.parentLocale] = []), we[t.parentLocale].push({
1182
+ name: e,
1183
+ config: t
1184
+ }), null;
1185
+ return v[e] = new mt(nt(r, t)), we[e] && we[e].forEach(function(a) {
1186
+ Dt(a.name, a.config);
1187
+ }), re(e), v[e];
1188
+ } else
1189
+ return delete v[e], null;
1190
+ }
1191
+ function Pa(e, t) {
1192
+ if (t != null) {
1193
+ var s, r, a = ds;
1194
+ v[e] != null && v[e].parentLocale != null ? v[e].set(nt(v[e]._config, t)) : (r = Je(e), r != null && (a = r._config), t = nt(a, t), r == null && (t.abbr = e), s = new mt(t), s.parentLocale = v[e], v[e] = s), re(e);
1195
+ } else
1196
+ v[e] != null && (v[e].parentLocale != null ? (v[e] = v[e].parentLocale, e === re() && re(e)) : v[e] != null && delete v[e]);
1197
+ return v[e];
1198
+ }
1199
+ function $(e) {
1200
+ var t;
1201
+ if (e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e)
1202
+ return Oe;
1203
+ if (!L(e)) {
1204
+ if (t = Je(e), t)
1205
+ return t;
1206
+ e = [e];
1207
+ }
1208
+ return Ta(e);
1209
+ }
1210
+ function Na() {
1211
+ return it(v);
1212
+ }
1213
+ function Yt(e) {
1214
+ var t, s = e._a;
1215
+ return s && m(e).overflow === -2 && (t = s[q] < 0 || s[q] > 11 ? q : s[H] < 1 || s[H] > kt(s[b], s[q]) ? H : s[O] < 0 || s[O] > 24 || s[O] === 24 && (s[F] !== 0 || s[Q] !== 0 || s[ie] !== 0) ? O : s[F] < 0 || s[F] > 59 ? F : s[Q] < 0 || s[Q] > 59 ? Q : s[ie] < 0 || s[ie] > 999 ? ie : -1, m(e)._overflowDayOfYear && (t < b || t > H) && (t = H), m(e)._overflowWeeks && t === -1 && (t = Cr), m(e)._overflowWeekday && t === -1 && (t = Ir), m(e).overflow = t), e;
1216
+ }
1217
+ var Wa = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, Ra = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, Aa = /Z|[+-]\d\d(?::?\d\d)?/, We = [
1218
+ ["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
1219
+ ["YYYY-MM-DD", /\d{4}-\d\d-\d\d/],
1220
+ ["GGGG-[W]WW-E", /\d{4}-W\d\d-\d/],
1221
+ ["GGGG-[W]WW", /\d{4}-W\d\d/, !1],
1222
+ ["YYYY-DDD", /\d{4}-\d{3}/],
1223
+ ["YYYY-MM", /\d{4}-\d\d/, !1],
1224
+ ["YYYYYYMMDD", /[+-]\d{10}/],
1225
+ ["YYYYMMDD", /\d{8}/],
1226
+ ["GGGG[W]WWE", /\d{4}W\d{3}/],
1227
+ ["GGGG[W]WW", /\d{4}W\d{2}/, !1],
1228
+ ["YYYYDDD", /\d{7}/],
1229
+ ["YYYYMM", /\d{6}/, !1],
1230
+ ["YYYY", /\d{4}/, !1]
1231
+ ], st = [
1232
+ ["HH:mm:ss.SSSS", /\d\d:\d\d:\d\d\.\d+/],
1233
+ ["HH:mm:ss,SSSS", /\d\d:\d\d:\d\d,\d+/],
1234
+ ["HH:mm:ss", /\d\d:\d\d:\d\d/],
1235
+ ["HH:mm", /\d\d:\d\d/],
1236
+ ["HHmmss.SSSS", /\d\d\d\d\d\d\.\d+/],
1237
+ ["HHmmss,SSSS", /\d\d\d\d\d\d,\d+/],
1238
+ ["HHmmss", /\d\d\d\d\d\d/],
1239
+ ["HHmm", /\d\d\d\d/],
1240
+ ["HH", /\d\d/]
1241
+ ], Ca = /^\/?Date\((-?\d+)/i, Ia = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/, Fa = {
1242
+ UT: 0,
1243
+ GMT: 0,
1244
+ EDT: -240,
1245
+ EST: -300,
1246
+ CDT: -300,
1247
+ CST: -360,
1248
+ MDT: -360,
1249
+ MST: -420,
1250
+ PDT: -420,
1251
+ PST: -480
1252
+ };
1253
+ function hs(e) {
1254
+ var t, s, r = e._i, a = Wa.exec(r) || Ra.exec(r), n, i, l, h, f = We.length, M = st.length;
1255
+ if (a) {
1256
+ for (m(e).iso = !0, t = 0, s = f; t < s; t++)
1257
+ if (We[t][1].exec(a[1])) {
1258
+ i = We[t][0], n = We[t][2] !== !1;
1259
+ break;
1260
+ }
1261
+ if (i == null) {
1262
+ e._isValid = !1;
1263
+ return;
1264
+ }
1265
+ if (a[3]) {
1266
+ for (t = 0, s = M; t < s; t++)
1267
+ if (st[t][1].exec(a[3])) {
1268
+ l = (a[2] || " ") + st[t][0];
1269
+ break;
1270
+ }
1271
+ if (l == null) {
1272
+ e._isValid = !1;
1273
+ return;
1274
+ }
1275
+ }
1276
+ if (!n && l != null) {
1277
+ e._isValid = !1;
1278
+ return;
1279
+ }
1280
+ if (a[4])
1281
+ if (Aa.exec(a[4]))
1282
+ h = "Z";
1283
+ else {
1284
+ e._isValid = !1;
1285
+ return;
1286
+ }
1287
+ e._f = i + (l || "") + (h || ""), bt(e);
1288
+ } else
1289
+ e._isValid = !1;
1290
+ }
1291
+ function La(e, t, s, r, a, n) {
1292
+ var i = [
1293
+ Ea(e),
1294
+ ts.indexOf(t),
1295
+ parseInt(s, 10),
1296
+ parseInt(r, 10),
1297
+ parseInt(a, 10)
1298
+ ];
1299
+ return n && i.push(parseInt(n, 10)), i;
1300
+ }
1301
+ function Ea(e) {
1302
+ var t = parseInt(e, 10);
1303
+ return t <= 49 ? 2e3 + t : t <= 999 ? 1900 + t : t;
1304
+ }
1305
+ function Ua(e) {
1306
+ return e.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, "");
1307
+ }
1308
+ function Ha(e, t, s) {
1309
+ if (e) {
1310
+ var r = os.indexOf(e), a = new Date(
1311
+ t[0],
1312
+ t[1],
1313
+ t[2]
1314
+ ).getDay();
1315
+ if (r !== a)
1316
+ return m(s).weekdayMismatch = !0, s._isValid = !1, !1;
1317
+ }
1318
+ return !0;
1319
+ }
1320
+ function Va(e, t, s) {
1321
+ if (e)
1322
+ return Fa[e];
1323
+ if (t)
1324
+ return 0;
1325
+ var r = parseInt(s, 10), a = r % 100, n = (r - a) / 100;
1326
+ return n * 60 + a;
1327
+ }
1328
+ function cs(e) {
1329
+ var t = Ia.exec(Ua(e._i)), s;
1330
+ if (t) {
1331
+ if (s = La(
1332
+ t[4],
1333
+ t[3],
1334
+ t[2],
1335
+ t[5],
1336
+ t[6],
1337
+ t[7]
1338
+ ), !Ha(t[1], s, e))
1339
+ return;
1340
+ e._a = s, e._tzm = Va(t[8], t[9], t[10]), e._d = De.apply(null, e._a), e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), m(e).rfc2822 = !0;
1341
+ } else
1342
+ e._isValid = !1;
1343
+ }
1344
+ function Ga(e) {
1345
+ var t = Ca.exec(e._i);
1346
+ if (t !== null) {
1347
+ e._d = /* @__PURE__ */ new Date(+t[1]);
1348
+ return;
1349
+ }
1350
+ if (hs(e), e._isValid === !1)
1351
+ delete e._isValid;
1352
+ else
1353
+ return;
1354
+ if (cs(e), e._isValid === !1)
1355
+ delete e._isValid;
1356
+ else
1357
+ return;
1358
+ e._strict ? e._isValid = !1 : u.createFromInputFallback(e);
1359
+ }
1360
+ u.createFromInputFallback = R(
1361
+ "value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",
1362
+ function(e) {
1363
+ e._d = /* @__PURE__ */ new Date(e._i + (e._useUTC ? " UTC" : ""));
1364
+ }
1365
+ );
1366
+ function de(e, t, s) {
1367
+ return e ?? t ?? s;
1368
+ }
1369
+ function ja(e) {
1370
+ var t = new Date(u.now());
1371
+ return e._useUTC ? [
1372
+ t.getUTCFullYear(),
1373
+ t.getUTCMonth(),
1374
+ t.getUTCDate()
1375
+ ] : [t.getFullYear(), t.getMonth(), t.getDate()];
1376
+ }
1377
+ function Ot(e) {
1378
+ var t, s, r = [], a, n, i;
1379
+ if (!e._d) {
1380
+ for (a = ja(e), e._w && e._a[H] == null && e._a[q] == null && za(e), e._dayOfYear != null && (i = de(e._a[b], a[b]), (e._dayOfYear > ke(i) || e._dayOfYear === 0) && (m(e)._overflowDayOfYear = !0), s = De(i, 0, e._dayOfYear), e._a[q] = s.getUTCMonth(), e._a[H] = s.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t)
1381
+ e._a[t] = r[t] = a[t];
1382
+ for (; t < 7; t++)
1383
+ e._a[t] = r[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t];
1384
+ e._a[O] === 24 && e._a[F] === 0 && e._a[Q] === 0 && e._a[ie] === 0 && (e._nextDay = !0, e._a[O] = 0), e._d = (e._useUTC ? De : Kr).apply(
1385
+ null,
1386
+ r
1387
+ ), n = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), e._tzm != null && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[O] = 24), e._w && typeof e._w.d < "u" && e._w.d !== n && (m(e).weekdayMismatch = !0);
1388
+ }
1389
+ }
1390
+ function za(e) {
1391
+ var t, s, r, a, n, i, l, h, f;
1392
+ t = e._w, t.GG != null || t.W != null || t.E != null ? (n = 1, i = 4, s = de(
1393
+ t.GG,
1394
+ e._a[b],
1395
+ Ye(k(), 1, 4).year
1396
+ ), r = de(t.W, 1), a = de(t.E, 1), (a < 1 || a > 7) && (h = !0)) : (n = e._locale._week.dow, i = e._locale._week.doy, f = Ye(k(), n, i), s = de(t.gg, e._a[b], f.year), r = de(t.w, f.week), t.d != null ? (a = t.d, (a < 0 || a > 6) && (h = !0)) : t.e != null ? (a = t.e + n, (t.e < 0 || t.e > 6) && (h = !0)) : a = n), r < 1 || r > K(s, n, i) ? m(e)._overflowWeeks = !0 : h != null ? m(e)._overflowWeekday = !0 : (l = is(s, r, a, n, i), e._a[b] = l.year, e._dayOfYear = l.dayOfYear);
1397
+ }
1398
+ u.ISO_8601 = function() {
1399
+ };
1400
+ u.RFC_2822 = function() {
1401
+ };
1402
+ function bt(e) {
1403
+ if (e._f === u.ISO_8601) {
1404
+ hs(e);
1405
+ return;
1406
+ }
1407
+ if (e._f === u.RFC_2822) {
1408
+ cs(e);
1409
+ return;
1410
+ }
1411
+ e._a = [], m(e).empty = !0;
1412
+ var t = "" + e._i, s, r, a, n, i, l = t.length, h = 0, f, M;
1413
+ for (a = qt(e._f, e._locale).match(yt) || [], M = a.length, s = 0; s < M; s++)
1414
+ n = a[s], r = (t.match(Wr(n, e)) || [])[0], r && (i = t.substr(0, t.indexOf(r)), i.length > 0 && m(e).unusedInput.push(i), t = t.slice(
1415
+ t.indexOf(r) + r.length
1416
+ ), h += r.length), ce[n] ? (r ? m(e).empty = !1 : m(e).unusedTokens.push(n), Ar(n, r, e)) : e._strict && !r && m(e).unusedTokens.push(n);
1417
+ m(e).charsLeftOver = l - h, t.length > 0 && m(e).unusedInput.push(t), e._a[O] <= 12 && m(e).bigHour === !0 && e._a[O] > 0 && (m(e).bigHour = void 0), m(e).parsedDateParts = e._a.slice(0), m(e).meridiem = e._meridiem, e._a[O] = Za(
1418
+ e._locale,
1419
+ e._a[O],
1420
+ e._meridiem
1421
+ ), f = m(e).era, f !== null && (e._a[b] = e._locale.erasConvertYear(f, e._a[b])), Ot(e), Yt(e);
1422
+ }
1423
+ function Za(e, t, s) {
1424
+ var r;
1425
+ return s == null ? t : e.meridiemHour != null ? e.meridiemHour(t, s) : (e.isPM != null && (r = e.isPM(s), r && t < 12 && (t += 12), !r && t === 12 && (t = 0)), t);
1426
+ }
1427
+ function Ba(e) {
1428
+ var t, s, r, a, n, i, l = !1, h = e._f.length;
1429
+ if (h === 0) {
1430
+ m(e).invalidFormat = !0, e._d = /* @__PURE__ */ new Date(NaN);
1431
+ return;
1432
+ }
1433
+ for (a = 0; a < h; a++)
1434
+ n = 0, i = !1, t = ft({}, e), e._useUTC != null && (t._useUTC = e._useUTC), t._f = e._f[a], bt(t), ct(t) && (i = !0), n += m(t).charsLeftOver, n += m(t).unusedTokens.length * 10, m(t).score = n, l ? n < r && (r = n, s = t) : (r == null || n < r || i) && (r = n, s = t, i && (l = !0));
1435
+ te(e, s || t);
1436
+ }
1437
+ function qa(e) {
1438
+ if (!e._d) {
1439
+ var t = _t(e._i), s = t.day === void 0 ? t.date : t.day;
1440
+ e._a = zt(
1441
+ [t.year, t.month, s, t.hour, t.minute, t.second, t.millisecond],
1442
+ function(r) {
1443
+ return r && parseInt(r, 10);
1444
+ }
1445
+ ), Ot(e);
1446
+ }
1447
+ }
1448
+ function Qa(e) {
1449
+ var t = new Te(Yt(fs(e)));
1450
+ return t._nextDay && (t.add(1, "d"), t._nextDay = void 0), t;
1451
+ }
1452
+ function fs(e) {
1453
+ var t = e._i, s = e._f;
1454
+ return e._locale = e._locale || $(e._l), t === null || s === void 0 && t === "" ? Ge({ nullInput: !0 }) : (typeof t == "string" && (e._i = t = e._locale.preparse(t)), E(t) ? new Te(Yt(t)) : (be(t) ? e._d = t : L(s) ? Ba(e) : s ? bt(e) : Ja(e), ct(e) || (e._d = null), e));
1455
+ }
1456
+ function Ja(e) {
1457
+ var t = e._i;
1458
+ x(t) ? e._d = new Date(u.now()) : be(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? Ga(e) : L(t) ? (e._a = zt(t.slice(0), function(s) {
1459
+ return parseInt(s, 10);
1460
+ }), Ot(e)) : oe(t) ? qa(e) : X(t) ? e._d = new Date(t) : u.createFromInputFallback(e);
1461
+ }
1462
+ function ms(e, t, s, r, a) {
1463
+ var n = {};
1464
+ return (t === !0 || t === !1) && (r = t, t = void 0), (s === !0 || s === !1) && (r = s, s = void 0), (oe(e) && ht(e) || L(e) && e.length === 0) && (e = void 0), n._isAMomentObject = !0, n._useUTC = n._isUTC = a, n._l = s, n._i = e, n._f = t, n._strict = r, Qa(n);
1465
+ }
1466
+ function k(e, t, s, r) {
1467
+ return ms(e, t, s, r, !1);
1468
+ }
1469
+ var Ka = R(
1470
+ "moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",
1471
+ function() {
1472
+ var e = k.apply(null, arguments);
1473
+ return this.isValid() && e.isValid() ? e < this ? this : e : Ge();
1474
+ }
1475
+ ), Xa = R(
1476
+ "moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",
1477
+ function() {
1478
+ var e = k.apply(null, arguments);
1479
+ return this.isValid() && e.isValid() ? e > this ? this : e : Ge();
1480
+ }
1481
+ );
1482
+ function ys(e, t) {
1483
+ var s, r;
1484
+ if (t.length === 1 && L(t[0]) && (t = t[0]), !t.length)
1485
+ return k();
1486
+ for (s = t[0], r = 1; r < t.length; ++r)
1487
+ (!t[r].isValid() || t[r][e](s)) && (s = t[r]);
1488
+ return s;
1489
+ }
1490
+ function $a() {
1491
+ var e = [].slice.call(arguments, 0);
1492
+ return ys("isBefore", e);
1493
+ }
1494
+ function en() {
1495
+ var e = [].slice.call(arguments, 0);
1496
+ return ys("isAfter", e);
1497
+ }
1498
+ var tn = function() {
1499
+ return Date.now ? Date.now() : +/* @__PURE__ */ new Date();
1500
+ }, pe = [
1501
+ "year",
1502
+ "quarter",
1503
+ "month",
1504
+ "week",
1505
+ "day",
1506
+ "hour",
1507
+ "minute",
1508
+ "second",
1509
+ "millisecond"
1510
+ ];
1511
+ function sn(e) {
1512
+ var t, s = !1, r, a = pe.length;
1513
+ for (t in e)
1514
+ if (g(e, t) && !(D.call(pe, t) !== -1 && (e[t] == null || !isNaN(e[t]))))
1515
+ return !1;
1516
+ for (r = 0; r < a; ++r)
1517
+ if (e[pe[r]]) {
1518
+ if (s)
1519
+ return !1;
1520
+ parseFloat(e[pe[r]]) !== y(e[pe[r]]) && (s = !0);
1521
+ }
1522
+ return !0;
1523
+ }
1524
+ function rn() {
1525
+ return this._isValid;
1526
+ }
1527
+ function an() {
1528
+ return U(NaN);
1529
+ }
1530
+ function Ke(e) {
1531
+ var t = _t(e), s = t.year || 0, r = t.quarter || 0, a = t.month || 0, n = t.week || t.isoWeek || 0, i = t.day || 0, l = t.hour || 0, h = t.minute || 0, f = t.second || 0, M = t.millisecond || 0;
1532
+ this._isValid = sn(t), this._milliseconds = +M + f * 1e3 + // 1000
1533
+ h * 6e4 + // 1000 * 60
1534
+ l * 1e3 * 60 * 60, this._days = +i + n * 7, this._months = +a + r * 3 + s * 12, this._data = {}, this._locale = $(), this._bubble();
1535
+ }
1536
+ function Ae(e) {
1537
+ return e instanceof Ke;
1538
+ }
1539
+ function lt(e) {
1540
+ return e < 0 ? Math.round(-1 * e) * -1 : Math.round(e);
1541
+ }
1542
+ function nn(e, t, s) {
1543
+ var r = Math.min(e.length, t.length), a = Math.abs(e.length - t.length), n = 0, i;
1544
+ for (i = 0; i < r; i++)
1545
+ y(e[i]) !== y(t[i]) && n++;
1546
+ return n + a;
1547
+ }
1548
+ function _s(e, t) {
1549
+ c(e, 0, 0, function() {
1550
+ var s = this.utcOffset(), r = "+";
1551
+ return s < 0 && (s = -s, r = "-"), r + G(~~(s / 60), 2) + t + G(~~s % 60, 2);
1552
+ });
1553
+ }
1554
+ _s("Z", ":");
1555
+ _s("ZZ", "");
1556
+ d("Z", qe);
1557
+ d("ZZ", qe);
1558
+ p(["Z", "ZZ"], function(e, t, s) {
1559
+ s._useUTC = !0, s._tzm = Tt(qe, e);
1560
+ });
1561
+ var on = /([\+\-]|\d\d)/gi;
1562
+ function Tt(e, t) {
1563
+ var s = (t || "").match(e), r, a, n;
1564
+ return s === null ? null : (r = s[s.length - 1] || [], a = (r + "").match(on) || ["-", 0, 0], n = +(a[1] * 60) + y(a[2]), n === 0 ? 0 : a[0] === "+" ? n : -n);
1565
+ }
1566
+ function xt(e, t) {
1567
+ var s, r;
1568
+ return t._isUTC ? (s = t.clone(), r = (E(e) || be(e) ? e.valueOf() : k(e).valueOf()) - s.valueOf(), s._d.setTime(s._d.valueOf() + r), u.updateOffset(s, !1), s) : k(e).local();
1569
+ }
1570
+ function ut(e) {
1571
+ return -Math.round(e._d.getTimezoneOffset());
1572
+ }
1573
+ u.updateOffset = function() {
1574
+ };
1575
+ function ln(e, t, s) {
1576
+ var r = this._offset || 0, a;
1577
+ if (!this.isValid())
1578
+ return e != null ? this : NaN;
1579
+ if (e != null) {
1580
+ if (typeof e == "string") {
1581
+ if (e = Tt(qe, e), e === null)
1582
+ return this;
1583
+ } else Math.abs(e) < 16 && !s && (e = e * 60);
1584
+ return !this._isUTC && t && (a = ut(this)), this._offset = e, this._isUTC = !0, a != null && this.add(a, "m"), r !== e && (!t || this._changeInProgress ? ps(
1585
+ this,
1586
+ U(e - r, "m"),
1587
+ 1,
1588
+ !1
1589
+ ) : this._changeInProgress || (this._changeInProgress = !0, u.updateOffset(this, !0), this._changeInProgress = null)), this;
1590
+ } else
1591
+ return this._isUTC ? r : ut(this);
1592
+ }
1593
+ function un(e, t) {
1594
+ return e != null ? (typeof e != "string" && (e = -e), this.utcOffset(e, t), this) : -this.utcOffset();
1595
+ }
1596
+ function dn(e) {
1597
+ return this.utcOffset(0, e);
1598
+ }
1599
+ function hn(e) {
1600
+ return this._isUTC && (this.utcOffset(0, e), this._isUTC = !1, e && this.subtract(ut(this), "m")), this;
1601
+ }
1602
+ function cn() {
1603
+ if (this._tzm != null)
1604
+ this.utcOffset(this._tzm, !1, !0);
1605
+ else if (typeof this._i == "string") {
1606
+ var e = Tt(Pr, this._i);
1607
+ e != null ? this.utcOffset(e) : this.utcOffset(0, !0);
1608
+ }
1609
+ return this;
1610
+ }
1611
+ function fn(e) {
1612
+ return this.isValid() ? (e = e ? k(e).utcOffset() : 0, (this.utcOffset() - e) % 60 === 0) : !1;
1613
+ }
1614
+ function mn() {
1615
+ return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();
1616
+ }
1617
+ function yn() {
1618
+ if (!x(this._isDSTShifted))
1619
+ return this._isDSTShifted;
1620
+ var e = {}, t;
1621
+ return ft(e, this), e = fs(e), e._a ? (t = e._isUTC ? j(e._a) : k(e._a), this._isDSTShifted = this.isValid() && nn(e._a, t.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
1622
+ }
1623
+ function _n() {
1624
+ return this.isValid() ? !this._isUTC : !1;
1625
+ }
1626
+ function gn() {
1627
+ return this.isValid() ? this._isUTC : !1;
1628
+ }
1629
+ function gs() {
1630
+ return this.isValid() ? this._isUTC && this._offset === 0 : !1;
1631
+ }
1632
+ var wn = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, pn = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
1633
+ function U(e, t) {
1634
+ var s = e, r = null, a, n, i;
1635
+ return Ae(e) ? s = {
1636
+ ms: e._milliseconds,
1637
+ d: e._days,
1638
+ M: e._months
1639
+ } : X(e) || !isNaN(+e) ? (s = {}, t ? s[t] = +e : s.milliseconds = +e) : (r = wn.exec(e)) ? (a = r[1] === "-" ? -1 : 1, s = {
1640
+ y: 0,
1641
+ d: y(r[H]) * a,
1642
+ h: y(r[O]) * a,
1643
+ m: y(r[F]) * a,
1644
+ s: y(r[Q]) * a,
1645
+ ms: y(lt(r[ie] * 1e3)) * a
1646
+ // the millisecond decimal point is included in the match
1647
+ }) : (r = pn.exec(e)) ? (a = r[1] === "-" ? -1 : 1, s = {
1648
+ y: ae(r[2], a),
1649
+ M: ae(r[3], a),
1650
+ w: ae(r[4], a),
1651
+ d: ae(r[5], a),
1652
+ h: ae(r[6], a),
1653
+ m: ae(r[7], a),
1654
+ s: ae(r[8], a)
1655
+ }) : s == null ? s = {} : typeof s == "object" && ("from" in s || "to" in s) && (i = kn(
1656
+ k(s.from),
1657
+ k(s.to)
1658
+ ), s = {}, s.ms = i.milliseconds, s.M = i.months), n = new Ke(s), Ae(e) && g(e, "_locale") && (n._locale = e._locale), Ae(e) && g(e, "_isValid") && (n._isValid = e._isValid), n;
1659
+ }
1660
+ U.fn = Ke.prototype;
1661
+ U.invalid = an;
1662
+ function ae(e, t) {
1663
+ var s = e && parseFloat(e.replace(",", "."));
1664
+ return (isNaN(s) ? 0 : s) * t;
1665
+ }
1666
+ function Et(e, t) {
1667
+ var s = {};
1668
+ return s.months = t.month() - e.month() + (t.year() - e.year()) * 12, e.clone().add(s.months, "M").isAfter(t) && --s.months, s.milliseconds = +t - +e.clone().add(s.months, "M"), s;
1669
+ }
1670
+ function kn(e, t) {
1671
+ var s;
1672
+ return e.isValid() && t.isValid() ? (t = xt(t, e), e.isBefore(t) ? s = Et(e, t) : (s = Et(t, e), s.milliseconds = -s.milliseconds, s.months = -s.months), s) : { milliseconds: 0, months: 0 };
1673
+ }
1674
+ function ws(e, t) {
1675
+ return function(s, r) {
1676
+ var a, n;
1677
+ return r !== null && !isNaN(+r) && (Bt(
1678
+ t,
1679
+ "moment()." + t + "(period, number) is deprecated. Please use moment()." + t + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
1680
+ ), n = s, s = r, r = n), a = U(s, r), ps(this, a, e), this;
1681
+ };
1682
+ }
1683
+ function ps(e, t, s, r) {
1684
+ var a = t._milliseconds, n = lt(t._days), i = lt(t._months);
1685
+ e.isValid() && (r = r ?? !0, i && rs(e, Me(e, "Month") + i * s), n && es(e, "Date", Me(e, "Date") + n * s), a && e._d.setTime(e._d.valueOf() + a * s), r && u.updateOffset(e, n || i));
1686
+ }
1687
+ var Sn = ws(1, "add"), vn = ws(-1, "subtract");
1688
+ function ks(e) {
1689
+ return typeof e == "string" || e instanceof String;
1690
+ }
1691
+ function Mn(e) {
1692
+ return E(e) || be(e) || ks(e) || X(e) || Yn(e) || Dn(e) || e === null || e === void 0;
1693
+ }
1694
+ function Dn(e) {
1695
+ var t = oe(e) && !ht(e), s = !1, r = [
1696
+ "years",
1697
+ "year",
1698
+ "y",
1699
+ "months",
1700
+ "month",
1701
+ "M",
1702
+ "days",
1703
+ "day",
1704
+ "d",
1705
+ "dates",
1706
+ "date",
1707
+ "D",
1708
+ "hours",
1709
+ "hour",
1710
+ "h",
1711
+ "minutes",
1712
+ "minute",
1713
+ "m",
1714
+ "seconds",
1715
+ "second",
1716
+ "s",
1717
+ "milliseconds",
1718
+ "millisecond",
1719
+ "ms"
1720
+ ], a, n, i = r.length;
1721
+ for (a = 0; a < i; a += 1)
1722
+ n = r[a], s = s || g(e, n);
1723
+ return t && s;
1724
+ }
1725
+ function Yn(e) {
1726
+ var t = L(e), s = !1;
1727
+ return t && (s = e.filter(function(r) {
1728
+ return !X(r) && ks(e);
1729
+ }).length === 0), t && s;
1730
+ }
1731
+ function On(e) {
1732
+ var t = oe(e) && !ht(e), s = !1, r = [
1733
+ "sameDay",
1734
+ "nextDay",
1735
+ "lastDay",
1736
+ "nextWeek",
1737
+ "lastWeek",
1738
+ "sameElse"
1739
+ ], a, n;
1740
+ for (a = 0; a < r.length; a += 1)
1741
+ n = r[a], s = s || g(e, n);
1742
+ return t && s;
1743
+ }
1744
+ function bn(e, t) {
1745
+ var s = e.diff(t, "days", !0);
1746
+ return s < -6 ? "sameElse" : s < -1 ? "lastWeek" : s < 0 ? "lastDay" : s < 1 ? "sameDay" : s < 2 ? "nextDay" : s < 7 ? "nextWeek" : "sameElse";
1747
+ }
1748
+ function Tn(e, t) {
1749
+ arguments.length === 1 && (arguments[0] ? Mn(arguments[0]) ? (e = arguments[0], t = void 0) : On(arguments[0]) && (t = arguments[0], e = void 0) : (e = void 0, t = void 0));
1750
+ var s = e || k(), r = xt(s, this).startOf("day"), a = u.calendarFormat(this, r) || "sameElse", n = t && (z(t[a]) ? t[a].call(this, s) : t[a]);
1751
+ return this.format(
1752
+ n || this.localeData().calendar(a, this, k(s))
1753
+ );
1754
+ }
1755
+ function xn() {
1756
+ return new Te(this);
1757
+ }
1758
+ function Pn(e, t) {
1759
+ var s = E(e) ? e : k(e);
1760
+ return this.isValid() && s.isValid() ? (t = A(t) || "millisecond", t === "millisecond" ? this.valueOf() > s.valueOf() : s.valueOf() < this.clone().startOf(t).valueOf()) : !1;
1761
+ }
1762
+ function Nn(e, t) {
1763
+ var s = E(e) ? e : k(e);
1764
+ return this.isValid() && s.isValid() ? (t = A(t) || "millisecond", t === "millisecond" ? this.valueOf() < s.valueOf() : this.clone().endOf(t).valueOf() < s.valueOf()) : !1;
1765
+ }
1766
+ function Wn(e, t, s, r) {
1767
+ var a = E(e) ? e : k(e), n = E(t) ? t : k(t);
1768
+ return this.isValid() && a.isValid() && n.isValid() ? (r = r || "()", (r[0] === "(" ? this.isAfter(a, s) : !this.isBefore(a, s)) && (r[1] === ")" ? this.isBefore(n, s) : !this.isAfter(n, s))) : !1;
1769
+ }
1770
+ function Rn(e, t) {
1771
+ var s = E(e) ? e : k(e), r;
1772
+ return this.isValid() && s.isValid() ? (t = A(t) || "millisecond", t === "millisecond" ? this.valueOf() === s.valueOf() : (r = s.valueOf(), this.clone().startOf(t).valueOf() <= r && r <= this.clone().endOf(t).valueOf())) : !1;
1773
+ }
1774
+ function An(e, t) {
1775
+ return this.isSame(e, t) || this.isAfter(e, t);
1776
+ }
1777
+ function Cn(e, t) {
1778
+ return this.isSame(e, t) || this.isBefore(e, t);
1779
+ }
1780
+ function In(e, t, s) {
1781
+ var r, a, n;
1782
+ if (!this.isValid())
1783
+ return NaN;
1784
+ if (r = xt(e, this), !r.isValid())
1785
+ return NaN;
1786
+ switch (a = (r.utcOffset() - this.utcOffset()) * 6e4, t = A(t), t) {
1787
+ case "year":
1788
+ n = Ce(this, r) / 12;
1789
+ break;
1790
+ case "month":
1791
+ n = Ce(this, r);
1792
+ break;
1793
+ case "quarter":
1794
+ n = Ce(this, r) / 3;
1795
+ break;
1796
+ case "second":
1797
+ n = (this - r) / 1e3;
1798
+ break;
1799
+ // 1000
1800
+ case "minute":
1801
+ n = (this - r) / 6e4;
1802
+ break;
1803
+ // 1000 * 60
1804
+ case "hour":
1805
+ n = (this - r) / 36e5;
1806
+ break;
1807
+ // 1000 * 60 * 60
1808
+ case "day":
1809
+ n = (this - r - a) / 864e5;
1810
+ break;
1811
+ // 1000 * 60 * 60 * 24, negate dst
1812
+ case "week":
1813
+ n = (this - r - a) / 6048e5;
1814
+ break;
1815
+ // 1000 * 60 * 60 * 24 * 7, negate dst
1816
+ default:
1817
+ n = this - r;
1818
+ }
1819
+ return s ? n : W(n);
1820
+ }
1821
+ function Ce(e, t) {
1822
+ if (e.date() < t.date())
1823
+ return -Ce(t, e);
1824
+ var s = (t.year() - e.year()) * 12 + (t.month() - e.month()), r = e.clone().add(s, "months"), a, n;
1825
+ return t - r < 0 ? (a = e.clone().add(s - 1, "months"), n = (t - r) / (r - a)) : (a = e.clone().add(s + 1, "months"), n = (t - r) / (a - r)), -(s + n) || 0;
1826
+ }
1827
+ u.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ";
1828
+ u.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
1829
+ function Fn() {
1830
+ return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
1831
+ }
1832
+ function Ln(e) {
1833
+ if (!this.isValid())
1834
+ return null;
1835
+ var t = e !== !0, s = t ? this.clone().utc() : this;
1836
+ return s.year() < 0 || s.year() > 9999 ? Re(
1837
+ s,
1838
+ t ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"
1839
+ ) : z(Date.prototype.toISOString) ? t ? this.toDate().toISOString() : new Date(this.valueOf() + this.utcOffset() * 60 * 1e3).toISOString().replace("Z", Re(s, "Z")) : Re(
1840
+ s,
1841
+ t ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ"
1842
+ );
1843
+ }
1844
+ function En() {
1845
+ if (!this.isValid())
1846
+ return "moment.invalid(/* " + this._i + " */)";
1847
+ var e = "moment", t = "", s, r, a, n;
1848
+ return this.isLocal() || (e = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone", t = "Z"), s = "[" + e + '("]', r = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY", a = "-MM-DD[T]HH:mm:ss.SSS", n = t + '[")]', this.format(s + r + a + n);
1849
+ }
1850
+ function Un(e) {
1851
+ e || (e = this.isUtc() ? u.defaultFormatUtc : u.defaultFormat);
1852
+ var t = Re(this, e);
1853
+ return this.localeData().postformat(t);
1854
+ }
1855
+ function Hn(e, t) {
1856
+ return this.isValid() && (E(e) && e.isValid() || k(e).isValid()) ? U({ to: this, from: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
1857
+ }
1858
+ function Vn(e) {
1859
+ return this.from(k(), e);
1860
+ }
1861
+ function Gn(e, t) {
1862
+ return this.isValid() && (E(e) && e.isValid() || k(e).isValid()) ? U({ from: this, to: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
1863
+ }
1864
+ function jn(e) {
1865
+ return this.to(k(), e);
1866
+ }
1867
+ function Ss(e) {
1868
+ var t;
1869
+ return e === void 0 ? this._locale._abbr : (t = $(e), t != null && (this._locale = t), this);
1870
+ }
1871
+ var vs = R(
1872
+ "moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",
1873
+ function(e) {
1874
+ return e === void 0 ? this.localeData() : this.locale(e);
1875
+ }
1876
+ );
1877
+ function Ms() {
1878
+ return this._locale;
1879
+ }
1880
+ var Le = 1e3, fe = 60 * Le, Ee = 60 * fe, Ds = (365 * 400 + 97) * 24 * Ee;
1881
+ function me(e, t) {
1882
+ return (e % t + t) % t;
1883
+ }
1884
+ function Ys(e, t, s) {
1885
+ return e < 100 && e >= 0 ? new Date(e + 400, t, s) - Ds : new Date(e, t, s).valueOf();
1886
+ }
1887
+ function Os(e, t, s) {
1888
+ return e < 100 && e >= 0 ? Date.UTC(e + 400, t, s) - Ds : Date.UTC(e, t, s);
1889
+ }
1890
+ function zn(e) {
1891
+ var t, s;
1892
+ if (e = A(e), e === void 0 || e === "millisecond" || !this.isValid())
1893
+ return this;
1894
+ switch (s = this._isUTC ? Os : Ys, e) {
1895
+ case "year":
1896
+ t = s(this.year(), 0, 1);
1897
+ break;
1898
+ case "quarter":
1899
+ t = s(
1900
+ this.year(),
1901
+ this.month() - this.month() % 3,
1902
+ 1
1903
+ );
1904
+ break;
1905
+ case "month":
1906
+ t = s(this.year(), this.month(), 1);
1907
+ break;
1908
+ case "week":
1909
+ t = s(
1910
+ this.year(),
1911
+ this.month(),
1912
+ this.date() - this.weekday()
1913
+ );
1914
+ break;
1915
+ case "isoWeek":
1916
+ t = s(
1917
+ this.year(),
1918
+ this.month(),
1919
+ this.date() - (this.isoWeekday() - 1)
1920
+ );
1921
+ break;
1922
+ case "day":
1923
+ case "date":
1924
+ t = s(this.year(), this.month(), this.date());
1925
+ break;
1926
+ case "hour":
1927
+ t = this._d.valueOf(), t -= me(
1928
+ t + (this._isUTC ? 0 : this.utcOffset() * fe),
1929
+ Ee
1930
+ );
1931
+ break;
1932
+ case "minute":
1933
+ t = this._d.valueOf(), t -= me(t, fe);
1934
+ break;
1935
+ case "second":
1936
+ t = this._d.valueOf(), t -= me(t, Le);
1937
+ break;
1938
+ }
1939
+ return this._d.setTime(t), u.updateOffset(this, !0), this;
1940
+ }
1941
+ function Zn(e) {
1942
+ var t, s;
1943
+ if (e = A(e), e === void 0 || e === "millisecond" || !this.isValid())
1944
+ return this;
1945
+ switch (s = this._isUTC ? Os : Ys, e) {
1946
+ case "year":
1947
+ t = s(this.year() + 1, 0, 1) - 1;
1948
+ break;
1949
+ case "quarter":
1950
+ t = s(
1951
+ this.year(),
1952
+ this.month() - this.month() % 3 + 3,
1953
+ 1
1954
+ ) - 1;
1955
+ break;
1956
+ case "month":
1957
+ t = s(this.year(), this.month() + 1, 1) - 1;
1958
+ break;
1959
+ case "week":
1960
+ t = s(
1961
+ this.year(),
1962
+ this.month(),
1963
+ this.date() - this.weekday() + 7
1964
+ ) - 1;
1965
+ break;
1966
+ case "isoWeek":
1967
+ t = s(
1968
+ this.year(),
1969
+ this.month(),
1970
+ this.date() - (this.isoWeekday() - 1) + 7
1971
+ ) - 1;
1972
+ break;
1973
+ case "day":
1974
+ case "date":
1975
+ t = s(this.year(), this.month(), this.date() + 1) - 1;
1976
+ break;
1977
+ case "hour":
1978
+ t = this._d.valueOf(), t += Ee - me(
1979
+ t + (this._isUTC ? 0 : this.utcOffset() * fe),
1980
+ Ee
1981
+ ) - 1;
1982
+ break;
1983
+ case "minute":
1984
+ t = this._d.valueOf(), t += fe - me(t, fe) - 1;
1985
+ break;
1986
+ case "second":
1987
+ t = this._d.valueOf(), t += Le - me(t, Le) - 1;
1988
+ break;
1989
+ }
1990
+ return this._d.setTime(t), u.updateOffset(this, !0), this;
1991
+ }
1992
+ function Bn() {
1993
+ return this._d.valueOf() - (this._offset || 0) * 6e4;
1994
+ }
1995
+ function qn() {
1996
+ return Math.floor(this.valueOf() / 1e3);
1997
+ }
1998
+ function Qn() {
1999
+ return new Date(this.valueOf());
2000
+ }
2001
+ function Jn() {
2002
+ var e = this;
2003
+ return [
2004
+ e.year(),
2005
+ e.month(),
2006
+ e.date(),
2007
+ e.hour(),
2008
+ e.minute(),
2009
+ e.second(),
2010
+ e.millisecond()
2011
+ ];
2012
+ }
2013
+ function Kn() {
2014
+ var e = this;
2015
+ return {
2016
+ years: e.year(),
2017
+ months: e.month(),
2018
+ date: e.date(),
2019
+ hours: e.hours(),
2020
+ minutes: e.minutes(),
2021
+ seconds: e.seconds(),
2022
+ milliseconds: e.milliseconds()
2023
+ };
2024
+ }
2025
+ function Xn() {
2026
+ return this.isValid() ? this.toISOString() : null;
2027
+ }
2028
+ function $n() {
2029
+ return ct(this);
2030
+ }
2031
+ function ei() {
2032
+ return te({}, m(this));
2033
+ }
2034
+ function ti() {
2035
+ return m(this).overflow;
2036
+ }
2037
+ function si() {
2038
+ return {
2039
+ input: this._i,
2040
+ format: this._f,
2041
+ locale: this._locale,
2042
+ isUTC: this._isUTC,
2043
+ strict: this._strict
2044
+ };
2045
+ }
2046
+ c("N", 0, 0, "eraAbbr");
2047
+ c("NN", 0, 0, "eraAbbr");
2048
+ c("NNN", 0, 0, "eraAbbr");
2049
+ c("NNNN", 0, 0, "eraName");
2050
+ c("NNNNN", 0, 0, "eraNarrow");
2051
+ c("y", ["y", 1], "yo", "eraYear");
2052
+ c("y", ["yy", 2], 0, "eraYear");
2053
+ c("y", ["yyy", 3], 0, "eraYear");
2054
+ c("y", ["yyyy", 4], 0, "eraYear");
2055
+ d("N", Pt);
2056
+ d("NN", Pt);
2057
+ d("NNN", Pt);
2058
+ d("NNNN", fi);
2059
+ d("NNNNN", mi);
2060
+ p(
2061
+ ["N", "NN", "NNN", "NNNN", "NNNNN"],
2062
+ function(e, t, s, r) {
2063
+ var a = s._locale.erasParse(e, r, s._strict);
2064
+ a ? m(s).era = a : m(s).invalidEra = e;
2065
+ }
2066
+ );
2067
+ d("y", ye);
2068
+ d("yy", ye);
2069
+ d("yyy", ye);
2070
+ d("yyyy", ye);
2071
+ d("yo", yi);
2072
+ p(["y", "yy", "yyy", "yyyy"], b);
2073
+ p(["yo"], function(e, t, s, r) {
2074
+ var a;
2075
+ s._locale._eraYearOrdinalRegex && (a = e.match(s._locale._eraYearOrdinalRegex)), s._locale.eraYearOrdinalParse ? t[b] = s._locale.eraYearOrdinalParse(e, a) : t[b] = parseInt(e, 10);
2076
+ });
2077
+ function ri(e, t) {
2078
+ var s, r, a, n = this._eras || $("en")._eras;
2079
+ for (s = 0, r = n.length; s < r; ++s) {
2080
+ switch (typeof n[s].since) {
2081
+ case "string":
2082
+ a = u(n[s].since).startOf("day"), n[s].since = a.valueOf();
2083
+ break;
2084
+ }
2085
+ switch (typeof n[s].until) {
2086
+ case "undefined":
2087
+ n[s].until = 1 / 0;
2088
+ break;
2089
+ case "string":
2090
+ a = u(n[s].until).startOf("day").valueOf(), n[s].until = a.valueOf();
2091
+ break;
2092
+ }
2093
+ }
2094
+ return n;
2095
+ }
2096
+ function ai(e, t, s) {
2097
+ var r, a, n = this.eras(), i, l, h;
2098
+ for (e = e.toUpperCase(), r = 0, a = n.length; r < a; ++r)
2099
+ if (i = n[r].name.toUpperCase(), l = n[r].abbr.toUpperCase(), h = n[r].narrow.toUpperCase(), s)
2100
+ switch (t) {
2101
+ case "N":
2102
+ case "NN":
2103
+ case "NNN":
2104
+ if (l === e)
2105
+ return n[r];
2106
+ break;
2107
+ case "NNNN":
2108
+ if (i === e)
2109
+ return n[r];
2110
+ break;
2111
+ case "NNNNN":
2112
+ if (h === e)
2113
+ return n[r];
2114
+ break;
2115
+ }
2116
+ else if ([i, l, h].indexOf(e) >= 0)
2117
+ return n[r];
2118
+ }
2119
+ function ni(e, t) {
2120
+ var s = e.since <= e.until ? 1 : -1;
2121
+ return t === void 0 ? u(e.since).year() : u(e.since).year() + (t - e.offset) * s;
2122
+ }
2123
+ function ii() {
2124
+ var e, t, s, r = this.localeData().eras();
2125
+ for (e = 0, t = r.length; e < t; ++e)
2126
+ if (s = this.clone().startOf("day").valueOf(), r[e].since <= s && s <= r[e].until || r[e].until <= s && s <= r[e].since)
2127
+ return r[e].name;
2128
+ return "";
2129
+ }
2130
+ function oi() {
2131
+ var e, t, s, r = this.localeData().eras();
2132
+ for (e = 0, t = r.length; e < t; ++e)
2133
+ if (s = this.clone().startOf("day").valueOf(), r[e].since <= s && s <= r[e].until || r[e].until <= s && s <= r[e].since)
2134
+ return r[e].narrow;
2135
+ return "";
2136
+ }
2137
+ function li() {
2138
+ var e, t, s, r = this.localeData().eras();
2139
+ for (e = 0, t = r.length; e < t; ++e)
2140
+ if (s = this.clone().startOf("day").valueOf(), r[e].since <= s && s <= r[e].until || r[e].until <= s && s <= r[e].since)
2141
+ return r[e].abbr;
2142
+ return "";
2143
+ }
2144
+ function ui() {
2145
+ var e, t, s, r, a = this.localeData().eras();
2146
+ for (e = 0, t = a.length; e < t; ++e)
2147
+ if (s = a[e].since <= a[e].until ? 1 : -1, r = this.clone().startOf("day").valueOf(), a[e].since <= r && r <= a[e].until || a[e].until <= r && r <= a[e].since)
2148
+ return (this.year() - u(a[e].since).year()) * s + a[e].offset;
2149
+ return this.year();
2150
+ }
2151
+ function di(e) {
2152
+ return g(this, "_erasNameRegex") || Nt.call(this), e ? this._erasNameRegex : this._erasRegex;
2153
+ }
2154
+ function hi(e) {
2155
+ return g(this, "_erasAbbrRegex") || Nt.call(this), e ? this._erasAbbrRegex : this._erasRegex;
2156
+ }
2157
+ function ci(e) {
2158
+ return g(this, "_erasNarrowRegex") || Nt.call(this), e ? this._erasNarrowRegex : this._erasRegex;
2159
+ }
2160
+ function Pt(e, t) {
2161
+ return t.erasAbbrRegex(e);
2162
+ }
2163
+ function fi(e, t) {
2164
+ return t.erasNameRegex(e);
2165
+ }
2166
+ function mi(e, t) {
2167
+ return t.erasNarrowRegex(e);
2168
+ }
2169
+ function yi(e, t) {
2170
+ return t._eraYearOrdinalRegex || ye;
2171
+ }
2172
+ function Nt() {
2173
+ var e = [], t = [], s = [], r = [], a, n, i, l, h, f = this.eras();
2174
+ for (a = 0, n = f.length; a < n; ++a)
2175
+ i = J(f[a].name), l = J(f[a].abbr), h = J(f[a].narrow), t.push(i), e.push(l), s.push(h), r.push(i), r.push(l), r.push(h);
2176
+ this._erasRegex = new RegExp("^(" + r.join("|") + ")", "i"), this._erasNameRegex = new RegExp("^(" + t.join("|") + ")", "i"), this._erasAbbrRegex = new RegExp("^(" + e.join("|") + ")", "i"), this._erasNarrowRegex = new RegExp(
2177
+ "^(" + s.join("|") + ")",
2178
+ "i"
2179
+ );
2180
+ }
2181
+ c(0, ["gg", 2], 0, function() {
2182
+ return this.weekYear() % 100;
2183
+ });
2184
+ c(0, ["GG", 2], 0, function() {
2185
+ return this.isoWeekYear() % 100;
2186
+ });
2187
+ function Xe(e, t) {
2188
+ c(0, [e, e.length], 0, t);
2189
+ }
2190
+ Xe("gggg", "weekYear");
2191
+ Xe("ggggg", "weekYear");
2192
+ Xe("GGGG", "isoWeekYear");
2193
+ Xe("GGGGG", "isoWeekYear");
2194
+ d("G", Be);
2195
+ d("g", Be);
2196
+ d("GG", S, N);
2197
+ d("gg", S, N);
2198
+ d("GGGG", wt, gt);
2199
+ d("gggg", wt, gt);
2200
+ d("GGGGG", Ze, je);
2201
+ d("ggggg", Ze, je);
2202
+ Pe(
2203
+ ["gggg", "ggggg", "GGGG", "GGGGG"],
2204
+ function(e, t, s, r) {
2205
+ t[r.substr(0, 2)] = y(e);
2206
+ }
2207
+ );
2208
+ Pe(["gg", "GG"], function(e, t, s, r) {
2209
+ t[r] = u.parseTwoDigitYear(e);
2210
+ });
2211
+ function _i(e) {
2212
+ return bs.call(
2213
+ this,
2214
+ e,
2215
+ this.week(),
2216
+ this.weekday() + this.localeData()._week.dow,
2217
+ this.localeData()._week.dow,
2218
+ this.localeData()._week.doy
2219
+ );
2220
+ }
2221
+ function gi(e) {
2222
+ return bs.call(
2223
+ this,
2224
+ e,
2225
+ this.isoWeek(),
2226
+ this.isoWeekday(),
2227
+ 1,
2228
+ 4
2229
+ );
2230
+ }
2231
+ function wi() {
2232
+ return K(this.year(), 1, 4);
2233
+ }
2234
+ function pi() {
2235
+ return K(this.isoWeekYear(), 1, 4);
2236
+ }
2237
+ function ki() {
2238
+ var e = this.localeData()._week;
2239
+ return K(this.year(), e.dow, e.doy);
2240
+ }
2241
+ function Si() {
2242
+ var e = this.localeData()._week;
2243
+ return K(this.weekYear(), e.dow, e.doy);
2244
+ }
2245
+ function bs(e, t, s, r, a) {
2246
+ var n;
2247
+ return e == null ? Ye(this, r, a).year : (n = K(e, r, a), t > n && (t = n), vi.call(this, e, t, s, r, a));
2248
+ }
2249
+ function vi(e, t, s, r, a) {
2250
+ var n = is(e, t, s, r, a), i = De(n.year, 0, n.dayOfYear);
2251
+ return this.year(i.getUTCFullYear()), this.month(i.getUTCMonth()), this.date(i.getUTCDate()), this;
2252
+ }
2253
+ c("Q", 0, "Qo", "quarter");
2254
+ d("Q", Qt);
2255
+ p("Q", function(e, t) {
2256
+ t[q] = (y(e) - 1) * 3;
2257
+ });
2258
+ function Mi(e) {
2259
+ return e == null ? Math.ceil((this.month() + 1) / 3) : this.month((e - 1) * 3 + this.month() % 3);
2260
+ }
2261
+ c("D", ["DD", 2], "Do", "date");
2262
+ d("D", S, _e);
2263
+ d("DD", S, N);
2264
+ d("Do", function(e, t) {
2265
+ return e ? t._dayOfMonthOrdinalParse || t._ordinalParse : t._dayOfMonthOrdinalParseLenient;
2266
+ });
2267
+ p(["D", "DD"], H);
2268
+ p("Do", function(e, t) {
2269
+ t[H] = y(e.match(S)[0]);
2270
+ });
2271
+ var Ts = ge("Date", !0);
2272
+ c("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
2273
+ d("DDD", ze);
2274
+ d("DDDD", Jt);
2275
+ p(["DDD", "DDDD"], function(e, t, s) {
2276
+ s._dayOfYear = y(e);
2277
+ });
2278
+ function Di(e) {
2279
+ var t = Math.round(
2280
+ (this.clone().startOf("day") - this.clone().startOf("year")) / 864e5
2281
+ ) + 1;
2282
+ return e == null ? t : this.add(e - t, "d");
2283
+ }
2284
+ c("m", ["mm", 2], 0, "minute");
2285
+ d("m", S, pt);
2286
+ d("mm", S, N);
2287
+ p(["m", "mm"], F);
2288
+ var Yi = ge("Minutes", !1);
2289
+ c("s", ["ss", 2], 0, "second");
2290
+ d("s", S, pt);
2291
+ d("ss", S, N);
2292
+ p(["s", "ss"], Q);
2293
+ var Oi = ge("Seconds", !1);
2294
+ c("S", 0, 0, function() {
2295
+ return ~~(this.millisecond() / 100);
2296
+ });
2297
+ c(0, ["SS", 2], 0, function() {
2298
+ return ~~(this.millisecond() / 10);
2299
+ });
2300
+ c(0, ["SSS", 3], 0, "millisecond");
2301
+ c(0, ["SSSS", 4], 0, function() {
2302
+ return this.millisecond() * 10;
2303
+ });
2304
+ c(0, ["SSSSS", 5], 0, function() {
2305
+ return this.millisecond() * 100;
2306
+ });
2307
+ c(0, ["SSSSSS", 6], 0, function() {
2308
+ return this.millisecond() * 1e3;
2309
+ });
2310
+ c(0, ["SSSSSSS", 7], 0, function() {
2311
+ return this.millisecond() * 1e4;
2312
+ });
2313
+ c(0, ["SSSSSSSS", 8], 0, function() {
2314
+ return this.millisecond() * 1e5;
2315
+ });
2316
+ c(0, ["SSSSSSSSS", 9], 0, function() {
2317
+ return this.millisecond() * 1e6;
2318
+ });
2319
+ d("S", ze, Qt);
2320
+ d("SS", ze, N);
2321
+ d("SSS", ze, Jt);
2322
+ var se, xs;
2323
+ for (se = "SSSS"; se.length <= 9; se += "S")
2324
+ d(se, ye);
2325
+ function bi(e, t) {
2326
+ t[ie] = y(("0." + e) * 1e3);
2327
+ }
2328
+ for (se = "S"; se.length <= 9; se += "S")
2329
+ p(se, bi);
2330
+ xs = ge("Milliseconds", !1);
2331
+ c("z", 0, 0, "zoneAbbr");
2332
+ c("zz", 0, 0, "zoneName");
2333
+ function Ti() {
2334
+ return this._isUTC ? "UTC" : "";
2335
+ }
2336
+ function xi() {
2337
+ return this._isUTC ? "Coordinated Universal Time" : "";
2338
+ }
2339
+ var o = Te.prototype;
2340
+ o.add = Sn;
2341
+ o.calendar = Tn;
2342
+ o.clone = xn;
2343
+ o.diff = In;
2344
+ o.endOf = Zn;
2345
+ o.format = Un;
2346
+ o.from = Hn;
2347
+ o.fromNow = Vn;
2348
+ o.to = Gn;
2349
+ o.toNow = jn;
2350
+ o.get = Lr;
2351
+ o.invalidAt = ti;
2352
+ o.isAfter = Pn;
2353
+ o.isBefore = Nn;
2354
+ o.isBetween = Wn;
2355
+ o.isSame = Rn;
2356
+ o.isSameOrAfter = An;
2357
+ o.isSameOrBefore = Cn;
2358
+ o.isValid = $n;
2359
+ o.lang = vs;
2360
+ o.locale = Ss;
2361
+ o.localeData = Ms;
2362
+ o.max = Xa;
2363
+ o.min = Ka;
2364
+ o.parsingFlags = ei;
2365
+ o.set = Er;
2366
+ o.startOf = zn;
2367
+ o.subtract = vn;
2368
+ o.toArray = Jn;
2369
+ o.toObject = Kn;
2370
+ o.toDate = Qn;
2371
+ o.toISOString = Ln;
2372
+ o.inspect = En;
2373
+ typeof Symbol < "u" && Symbol.for != null && (o[Symbol.for("nodejs.util.inspect.custom")] = function() {
2374
+ return "Moment<" + this.format() + ">";
2375
+ });
2376
+ o.toJSON = Xn;
2377
+ o.toString = Fn;
2378
+ o.unix = qn;
2379
+ o.valueOf = Bn;
2380
+ o.creationData = si;
2381
+ o.eraName = ii;
2382
+ o.eraNarrow = oi;
2383
+ o.eraAbbr = li;
2384
+ o.eraYear = ui;
2385
+ o.year = $t;
2386
+ o.isLeapYear = Fr;
2387
+ o.weekYear = _i;
2388
+ o.isoWeekYear = gi;
2389
+ o.quarter = o.quarters = Mi;
2390
+ o.month = as;
2391
+ o.daysInMonth = qr;
2392
+ o.week = o.weeks = sa;
2393
+ o.isoWeek = o.isoWeeks = ra;
2394
+ o.weeksInYear = ki;
2395
+ o.weeksInWeekYear = Si;
2396
+ o.isoWeeksInYear = wi;
2397
+ o.isoWeeksInISOWeekYear = pi;
2398
+ o.date = Ts;
2399
+ o.day = o.days = _a;
2400
+ o.weekday = ga;
2401
+ o.isoWeekday = wa;
2402
+ o.dayOfYear = Di;
2403
+ o.hour = o.hours = Ya;
2404
+ o.minute = o.minutes = Yi;
2405
+ o.second = o.seconds = Oi;
2406
+ o.millisecond = o.milliseconds = xs;
2407
+ o.utcOffset = ln;
2408
+ o.utc = dn;
2409
+ o.local = hn;
2410
+ o.parseZone = cn;
2411
+ o.hasAlignedHourOffset = fn;
2412
+ o.isDST = mn;
2413
+ o.isLocal = _n;
2414
+ o.isUtcOffset = gn;
2415
+ o.isUtc = gs;
2416
+ o.isUTC = gs;
2417
+ o.zoneAbbr = Ti;
2418
+ o.zoneName = xi;
2419
+ o.dates = R(
2420
+ "dates accessor is deprecated. Use date instead.",
2421
+ Ts
2422
+ );
2423
+ o.months = R(
2424
+ "months accessor is deprecated. Use month instead",
2425
+ as
2426
+ );
2427
+ o.years = R(
2428
+ "years accessor is deprecated. Use year instead",
2429
+ $t
2430
+ );
2431
+ o.zone = R(
2432
+ "moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",
2433
+ un
2434
+ );
2435
+ o.isDSTShifted = R(
2436
+ "isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",
2437
+ yn
2438
+ );
2439
+ function Pi(e) {
2440
+ return k(e * 1e3);
2441
+ }
2442
+ function Ni() {
2443
+ return k.apply(null, arguments).parseZone();
2444
+ }
2445
+ function Ps(e) {
2446
+ return e;
2447
+ }
2448
+ var w = mt.prototype;
2449
+ w.calendar = yr;
2450
+ w.longDateFormat = pr;
2451
+ w.invalidDate = Sr;
2452
+ w.ordinal = Dr;
2453
+ w.preparse = Ps;
2454
+ w.postformat = Ps;
2455
+ w.relativeTime = Or;
2456
+ w.pastFuture = br;
2457
+ w.set = fr;
2458
+ w.eras = ri;
2459
+ w.erasParse = ai;
2460
+ w.erasConvertYear = ni;
2461
+ w.erasAbbrRegex = hi;
2462
+ w.erasNameRegex = di;
2463
+ w.erasNarrowRegex = ci;
2464
+ w.months = jr;
2465
+ w.monthsShort = zr;
2466
+ w.monthsParse = Br;
2467
+ w.monthsRegex = Jr;
2468
+ w.monthsShortRegex = Qr;
2469
+ w.week = Xr;
2470
+ w.firstDayOfYear = ta;
2471
+ w.firstDayOfWeek = ea;
2472
+ w.weekdays = ha;
2473
+ w.weekdaysMin = fa;
2474
+ w.weekdaysShort = ca;
2475
+ w.weekdaysParse = ya;
2476
+ w.weekdaysRegex = pa;
2477
+ w.weekdaysShortRegex = ka;
2478
+ w.weekdaysMinRegex = Sa;
2479
+ w.isPM = Ma;
2480
+ w.meridiem = Oa;
2481
+ function Ue(e, t, s, r) {
2482
+ var a = $(), n = j().set(r, t);
2483
+ return a[s](n, e);
2484
+ }
2485
+ function Ns(e, t, s) {
2486
+ if (X(e) && (t = e, e = void 0), e = e || "", t != null)
2487
+ return Ue(e, t, s, "month");
2488
+ var r, a = [];
2489
+ for (r = 0; r < 12; r++)
2490
+ a[r] = Ue(e, r, s, "month");
2491
+ return a;
2492
+ }
2493
+ function Wt(e, t, s, r) {
2494
+ typeof e == "boolean" ? (X(t) && (s = t, t = void 0), t = t || "") : (t = e, s = t, e = !1, X(t) && (s = t, t = void 0), t = t || "");
2495
+ var a = $(), n = e ? a._week.dow : 0, i, l = [];
2496
+ if (s != null)
2497
+ return Ue(t, (s + n) % 7, r, "day");
2498
+ for (i = 0; i < 7; i++)
2499
+ l[i] = Ue(t, (i + n) % 7, r, "day");
2500
+ return l;
2501
+ }
2502
+ function Wi(e, t) {
2503
+ return Ns(e, t, "months");
2504
+ }
2505
+ function Ri(e, t) {
2506
+ return Ns(e, t, "monthsShort");
2507
+ }
2508
+ function Ai(e, t, s) {
2509
+ return Wt(e, t, s, "weekdays");
2510
+ }
2511
+ function Ci(e, t, s) {
2512
+ return Wt(e, t, s, "weekdaysShort");
2513
+ }
2514
+ function Ii(e, t, s) {
2515
+ return Wt(e, t, s, "weekdaysMin");
2516
+ }
2517
+ re("en", {
2518
+ eras: [
2519
+ {
2520
+ since: "0001-01-01",
2521
+ until: 1 / 0,
2522
+ offset: 1,
2523
+ name: "Anno Domini",
2524
+ narrow: "AD",
2525
+ abbr: "AD"
2526
+ },
2527
+ {
2528
+ since: "0000-12-31",
2529
+ until: -1 / 0,
2530
+ offset: 1,
2531
+ name: "Before Christ",
2532
+ narrow: "BC",
2533
+ abbr: "BC"
2534
+ }
2535
+ ],
2536
+ dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
2537
+ ordinal: function(e) {
2538
+ var t = e % 10, s = y(e % 100 / 10) === 1 ? "th" : t === 1 ? "st" : t === 2 ? "nd" : t === 3 ? "rd" : "th";
2539
+ return e + s;
2540
+ }
2541
+ });
2542
+ u.lang = R(
2543
+ "moment.lang is deprecated. Use moment.locale instead.",
2544
+ re
2545
+ );
2546
+ u.langData = R(
2547
+ "moment.langData is deprecated. Use moment.localeData instead.",
2548
+ $
2549
+ );
2550
+ var Z = Math.abs;
2551
+ function Fi() {
2552
+ var e = this._data;
2553
+ return this._milliseconds = Z(this._milliseconds), this._days = Z(this._days), this._months = Z(this._months), e.milliseconds = Z(e.milliseconds), e.seconds = Z(e.seconds), e.minutes = Z(e.minutes), e.hours = Z(e.hours), e.months = Z(e.months), e.years = Z(e.years), this;
2554
+ }
2555
+ function Ws(e, t, s, r) {
2556
+ var a = U(t, s);
2557
+ return e._milliseconds += r * a._milliseconds, e._days += r * a._days, e._months += r * a._months, e._bubble();
2558
+ }
2559
+ function Li(e, t) {
2560
+ return Ws(this, e, t, 1);
2561
+ }
2562
+ function Ei(e, t) {
2563
+ return Ws(this, e, t, -1);
2564
+ }
2565
+ function Ut(e) {
2566
+ return e < 0 ? Math.floor(e) : Math.ceil(e);
2567
+ }
2568
+ function Ui() {
2569
+ var e = this._milliseconds, t = this._days, s = this._months, r = this._data, a, n, i, l, h;
2570
+ return e >= 0 && t >= 0 && s >= 0 || e <= 0 && t <= 0 && s <= 0 || (e += Ut(dt(s) + t) * 864e5, t = 0, s = 0), r.milliseconds = e % 1e3, a = W(e / 1e3), r.seconds = a % 60, n = W(a / 60), r.minutes = n % 60, i = W(n / 60), r.hours = i % 24, t += W(i / 24), h = W(Rs(t)), s += h, t -= Ut(dt(h)), l = W(s / 12), s %= 12, r.days = t, r.months = s, r.years = l, this;
2571
+ }
2572
+ function Rs(e) {
2573
+ return e * 4800 / 146097;
2574
+ }
2575
+ function dt(e) {
2576
+ return e * 146097 / 4800;
2577
+ }
2578
+ function Hi(e) {
2579
+ if (!this.isValid())
2580
+ return NaN;
2581
+ var t, s, r = this._milliseconds;
2582
+ if (e = A(e), e === "month" || e === "quarter" || e === "year")
2583
+ switch (t = this._days + r / 864e5, s = this._months + Rs(t), e) {
2584
+ case "month":
2585
+ return s;
2586
+ case "quarter":
2587
+ return s / 3;
2588
+ case "year":
2589
+ return s / 12;
2590
+ }
2591
+ else
2592
+ switch (t = this._days + Math.round(dt(this._months)), e) {
2593
+ case "week":
2594
+ return t / 7 + r / 6048e5;
2595
+ case "day":
2596
+ return t + r / 864e5;
2597
+ case "hour":
2598
+ return t * 24 + r / 36e5;
2599
+ case "minute":
2600
+ return t * 1440 + r / 6e4;
2601
+ case "second":
2602
+ return t * 86400 + r / 1e3;
2603
+ // Math.floor prevents floating point math errors here
2604
+ case "millisecond":
2605
+ return Math.floor(t * 864e5) + r;
2606
+ default:
2607
+ throw new Error("Unknown unit " + e);
2608
+ }
2609
+ }
2610
+ function ee(e) {
2611
+ return function() {
2612
+ return this.as(e);
2613
+ };
2614
+ }
2615
+ var As = ee("ms"), Vi = ee("s"), Gi = ee("m"), ji = ee("h"), zi = ee("d"), Zi = ee("w"), Bi = ee("M"), qi = ee("Q"), Qi = ee("y"), Ji = As;
2616
+ function Ki() {
2617
+ return U(this);
2618
+ }
2619
+ function Xi(e) {
2620
+ return e = A(e), this.isValid() ? this[e + "s"]() : NaN;
2621
+ }
2622
+ function le(e) {
2623
+ return function() {
2624
+ return this.isValid() ? this._data[e] : NaN;
2625
+ };
2626
+ }
2627
+ var $i = le("milliseconds"), eo = le("seconds"), to = le("minutes"), so = le("hours"), ro = le("days"), ao = le("months"), no = le("years");
2628
+ function io() {
2629
+ return W(this.days() / 7);
2630
+ }
2631
+ var B = Math.round, he = {
2632
+ ss: 44,
2633
+ // a few seconds to seconds
2634
+ s: 45,
2635
+ // seconds to minute
2636
+ m: 45,
2637
+ // minutes to hour
2638
+ h: 22,
2639
+ // hours to day
2640
+ d: 26,
2641
+ // days to month/week
2642
+ w: null,
2643
+ // weeks to month
2644
+ M: 11
2645
+ // months to year
2646
+ };
2647
+ function oo(e, t, s, r, a) {
2648
+ return a.relativeTime(t || 1, !!s, e, r);
2649
+ }
2650
+ function lo(e, t, s, r) {
2651
+ var a = U(e).abs(), n = B(a.as("s")), i = B(a.as("m")), l = B(a.as("h")), h = B(a.as("d")), f = B(a.as("M")), M = B(a.as("w")), C = B(a.as("y")), I = n <= s.ss && ["s", n] || n < s.s && ["ss", n] || i <= 1 && ["m"] || i < s.m && ["mm", i] || l <= 1 && ["h"] || l < s.h && ["hh", l] || h <= 1 && ["d"] || h < s.d && ["dd", h];
2652
+ return s.w != null && (I = I || M <= 1 && ["w"] || M < s.w && ["ww", M]), I = I || f <= 1 && ["M"] || f < s.M && ["MM", f] || C <= 1 && ["y"] || ["yy", C], I[2] = t, I[3] = +e > 0, I[4] = r, oo.apply(null, I);
2653
+ }
2654
+ function uo(e) {
2655
+ return e === void 0 ? B : typeof e == "function" ? (B = e, !0) : !1;
2656
+ }
2657
+ function ho(e, t) {
2658
+ return he[e] === void 0 ? !1 : t === void 0 ? he[e] : (he[e] = t, e === "s" && (he.ss = t - 1), !0);
2659
+ }
2660
+ function co(e, t) {
2661
+ if (!this.isValid())
2662
+ return this.localeData().invalidDate();
2663
+ var s = !1, r = he, a, n;
2664
+ return typeof e == "object" && (t = e, e = !1), typeof e == "boolean" && (s = e), typeof t == "object" && (r = Object.assign({}, he, t), t.s != null && t.ss == null && (r.ss = t.s - 1)), a = this.localeData(), n = lo(this, !s, r, a), s && (n = a.pastFuture(+this, n)), a.postformat(n);
2665
+ }
2666
+ var rt = Math.abs;
2667
+ function ue(e) {
2668
+ return (e > 0) - (e < 0) || +e;
2669
+ }
2670
+ function $e() {
2671
+ if (!this.isValid())
2672
+ return this.localeData().invalidDate();
2673
+ var e = rt(this._milliseconds) / 1e3, t = rt(this._days), s = rt(this._months), r, a, n, i, l = this.asSeconds(), h, f, M, C;
2674
+ return l ? (r = W(e / 60), a = W(r / 60), e %= 60, r %= 60, n = W(s / 12), s %= 12, i = e ? e.toFixed(3).replace(/\.?0+$/, "") : "", h = l < 0 ? "-" : "", f = ue(this._months) !== ue(l) ? "-" : "", M = ue(this._days) !== ue(l) ? "-" : "", C = ue(this._milliseconds) !== ue(l) ? "-" : "", h + "P" + (n ? f + n + "Y" : "") + (s ? f + s + "M" : "") + (t ? M + t + "D" : "") + (a || r || e ? "T" : "") + (a ? C + a + "H" : "") + (r ? C + r + "M" : "") + (e ? C + i + "S" : "")) : "P0D";
2675
+ }
2676
+ var _ = Ke.prototype;
2677
+ _.isValid = rn;
2678
+ _.abs = Fi;
2679
+ _.add = Li;
2680
+ _.subtract = Ei;
2681
+ _.as = Hi;
2682
+ _.asMilliseconds = As;
2683
+ _.asSeconds = Vi;
2684
+ _.asMinutes = Gi;
2685
+ _.asHours = ji;
2686
+ _.asDays = zi;
2687
+ _.asWeeks = Zi;
2688
+ _.asMonths = Bi;
2689
+ _.asQuarters = qi;
2690
+ _.asYears = Qi;
2691
+ _.valueOf = Ji;
2692
+ _._bubble = Ui;
2693
+ _.clone = Ki;
2694
+ _.get = Xi;
2695
+ _.milliseconds = $i;
2696
+ _.seconds = eo;
2697
+ _.minutes = to;
2698
+ _.hours = so;
2699
+ _.days = ro;
2700
+ _.weeks = io;
2701
+ _.months = ao;
2702
+ _.years = no;
2703
+ _.humanize = co;
2704
+ _.toISOString = $e;
2705
+ _.toString = $e;
2706
+ _.toJSON = $e;
2707
+ _.locale = Ss;
2708
+ _.localeData = Ms;
2709
+ _.toIsoString = R(
2710
+ "toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",
2711
+ $e
2712
+ );
2713
+ _.lang = vs;
2714
+ c("X", 0, 0, "unix");
2715
+ c("x", 0, 0, "valueOf");
2716
+ d("x", Be);
2717
+ d("X", Nr);
2718
+ p("X", function(e, t, s) {
2719
+ s._d = new Date(parseFloat(e) * 1e3);
2720
+ });
2721
+ p("x", function(e, t, s) {
2722
+ s._d = new Date(y(e));
2723
+ });
2724
+ //! moment.js
2725
+ u.version = "2.30.1";
2726
+ hr(k);
2727
+ u.fn = o;
2728
+ u.min = $a;
2729
+ u.max = en;
2730
+ u.now = tn;
2731
+ u.utc = j;
2732
+ u.unix = Pi;
2733
+ u.months = Wi;
2734
+ u.isDate = be;
2735
+ u.locale = re;
2736
+ u.invalid = Ge;
2737
+ u.duration = U;
2738
+ u.isMoment = E;
2739
+ u.weekdays = Ai;
2740
+ u.parseZone = Ni;
2741
+ u.localeData = $;
2742
+ u.isDuration = Ae;
2743
+ u.monthsShort = Ri;
2744
+ u.weekdaysMin = Ii;
2745
+ u.defineLocale = Dt;
2746
+ u.updateLocale = Pa;
2747
+ u.locales = Na;
2748
+ u.weekdaysShort = Ci;
2749
+ u.normalizeUnits = A;
2750
+ u.relativeTimeRounding = uo;
2751
+ u.relativeTimeThreshold = ho;
2752
+ u.calendarFormat = bn;
2753
+ u.prototype = o;
2754
+ u.HTML5_FMT = {
2755
+ DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
2756
+ // <input type="datetime-local" />
2757
+ DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss",
2758
+ // <input type="datetime-local" step="1" />
2759
+ DATETIME_LOCAL_MS: "YYYY-MM-DDTHH:mm:ss.SSS",
2760
+ // <input type="datetime-local" step="0.001" />
2761
+ DATE: "YYYY-MM-DD",
2762
+ // <input type="date" />
2763
+ TIME: "HH:mm",
2764
+ // <input type="time" />
2765
+ TIME_SECONDS: "HH:mm:ss",
2766
+ // <input type="time" step="1" />
2767
+ TIME_MS: "HH:mm:ss.SSS",
2768
+ // <input type="time" step="0.001" />
2769
+ WEEK: "GGGG-[W]WW",
2770
+ // <input type="week" />
2771
+ MONTH: "YYYY-MM"
2772
+ // <input type="month" />
2773
+ };
2774
+ const fo = { class: "d-flex align-items-center justify-content-center bg-white shadow-sm py-3" }, Wo = /* @__PURE__ */ He({
2775
+ __name: "Footer",
2776
+ props: {
2777
+ copyrightText: { type: String, required: !0 }
2778
+ },
2779
+ setup(e) {
2780
+ const t = e;
2781
+ return (s, r) => (T(), P("footer", fo, V(t.copyrightText) + " " + V(js(u)().year()), 1));
2782
+ }
2783
+ }), mo = {
2784
+ __name: "Spinner",
2785
+ props: {
2786
+ isSmall: {
2787
+ type: Boolean,
2788
+ default: !1
2789
+ }
2790
+ },
2791
+ setup(e) {
2792
+ return (t, s) => (T(), P("div", {
2793
+ class: ve(["spinner-border", { "spinner-border-sm": e.isSmall }]),
2794
+ role: "status"
2795
+ }, null, 2));
2796
+ }
2797
+ }, yo = {
2798
+ class: "container",
2799
+ "data-test": "SsoLoginPending"
2800
+ }, _o = { class: "row justify-content-center" }, go = { class: "col-md-8" }, wo = { class: "card" }, po = { class: "card-header" }, ko = { class: "card-body" }, So = {
2801
+ class: "login-spinner text-center",
2802
+ role: "status",
2803
+ "aria-live": "polite"
2804
+ }, vo = {
2805
+ class: "visually-hidden",
2806
+ "data-test": "SsoLoginPending-status"
2807
+ }, Mo = /* @__PURE__ */ He({
2808
+ __name: "SsoLoginPending",
2809
+ props: {
2810
+ title: {},
2811
+ statusText: {}
2812
+ },
2813
+ setup(e) {
2814
+ const t = e;
2815
+ if (!t.title.trim())
2816
+ throw new Error("SsoLoginPending: title обязателен");
2817
+ if (!t.statusText.trim())
2818
+ throw new Error("SsoLoginPending: statusText обязателен");
2819
+ return (s, r) => (T(), P("div", yo, [
2820
+ Y("div", _o, [
2821
+ Y("div", go, [
2822
+ Y("div", wo, [
2823
+ Y("div", po, V(s.title), 1),
2824
+ Y("div", ko, [
2825
+ Y("div", So, [
2826
+ Gt(mo),
2827
+ Y("span", vo, V(s.statusText), 1)
2828
+ ])
2829
+ ])
2830
+ ])
2831
+ ])
2832
+ ])
2833
+ ]));
2834
+ }
2835
+ }), Ro = /* @__PURE__ */ Ve(Mo, [["__scopeId", "data-v-6eb41b83"]]), Ht = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";
2836
+ function Cs() {
2837
+ const e = globalThis.crypto;
2838
+ if (!e)
2839
+ throw new Error("Web Crypto API is not available.");
2840
+ if (!e.getRandomValues)
2841
+ throw new Error("Web Crypto getRandomValues is not available.");
2842
+ if (!e.subtle?.digest)
2843
+ throw new Error("Web Crypto subtle digest is not available.");
2844
+ return e;
2845
+ }
2846
+ function Is(e) {
2847
+ const t = Cs(), s = new Uint8Array(e);
2848
+ t.getRandomValues(s);
2849
+ let r = "";
2850
+ return s.forEach((a) => {
2851
+ r += Ht[a % Ht.length];
2852
+ }), r;
2853
+ }
2854
+ function Do(e) {
2855
+ const t = new Uint8Array(e);
2856
+ let s = "";
2857
+ return t.forEach((r) => {
2858
+ s += String.fromCharCode(r);
2859
+ }), btoa(s).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/g, "");
2860
+ }
2861
+ function Yo(e = 64) {
2862
+ if (!Number.isInteger(e) || e < 43 || e > 128)
2863
+ throw new Error("PKCE code_verifier length must be between 43 and 128.");
2864
+ return Is(e);
2865
+ }
2866
+ async function Oo(e) {
2867
+ const t = Cs(), r = new TextEncoder().encode(e), a = await t.subtle.digest("SHA-256", r);
2868
+ return Do(a);
2869
+ }
2870
+ async function bo(e = 64) {
2871
+ const t = Yo(e), s = await Oo(t);
2872
+ return { codeVerifier: t, codeChallenge: s };
2873
+ }
2874
+ function To(e = 32) {
2875
+ if (!Number.isInteger(e) || e < 16 || e > 128)
2876
+ throw new Error("OAuth state length must be between 16 and 128.");
2877
+ return Is(e);
2878
+ }
2879
+ const xo = "Web Crypto API недоступен. Используйте HTTPS или обновите браузер.";
2880
+ async function Ao(e) {
2881
+ if (!e || typeof e.setLoading != "function")
2882
+ throw new Error("signInWithSSO: deps.setLoading обязателен");
2883
+ if (typeof e.getPublicConfig != "function")
2884
+ throw new Error("signInWithSSO: deps.getPublicConfig обязателен");
2885
+ if (typeof e.useCookie != "function")
2886
+ throw new Error("signInWithSSO: deps.useCookie обязателен");
2887
+ if (typeof e.showError != "function")
2888
+ throw new Error("signInWithSSO: deps.showError обязателен");
2889
+ e.setLoading(!0);
2890
+ const t = e.generatePkcePair ?? bo, s = e.generateState ?? To, r = e.redirectTo ?? ((n) => {
2891
+ window.location.href = n;
2892
+ }), a = e.isSecure ?? (() => window.location.protocol === "https:");
2893
+ try {
2894
+ const { authApiUrl: n, ssoClientId: i, origin: l } = e.getPublicConfig();
2895
+ if (!n || !i)
2896
+ throw new Error("Не настроены CLIENT_ID или NUXT_AUTH_API_URL");
2897
+ let h, f, M;
2898
+ try {
2899
+ ({ codeVerifier: h, codeChallenge: f } = await t()), M = s();
2900
+ } catch {
2901
+ e.setLoading(!1), e.showError({
2902
+ statusCode: 500,
2903
+ statusMessage: xo
2904
+ });
2905
+ return;
2906
+ }
2907
+ const I = {
2908
+ maxAge: 300,
2909
+ sameSite: "lax",
2910
+ secure: a(),
2911
+ path: "/"
2912
+ };
2913
+ e.useCookie("pkce_verifier", I).value = h, e.useCookie("pkce_state", I).value = M;
2914
+ const Fs = `${l}/api/auth/callback`, Ls = `${n}/oauth/authorize?` + new URLSearchParams({
2915
+ client_id: i,
2916
+ redirect_uri: Fs,
2917
+ response_type: "code",
2918
+ scope: "*",
2919
+ code_challenge: f,
2920
+ code_challenge_method: "S256",
2921
+ state: M
2922
+ });
2923
+ r(Ls);
2924
+ } catch {
2925
+ e.setLoading(!1);
2926
+ }
2927
+ }
2928
+ export {
2929
+ Wo as Footer,
2930
+ No as Header,
2931
+ tr as Logo,
2932
+ Ro as SsoLoginPending,
2933
+ Ao as signInWithSSO
2934
+ };