@opfr/canvas 0.0.1

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