@serenityjs/logger 0.5.0 → 0.5.1-beta-20240915195437

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 (2) hide show
  1. package/dist/index.js +845 -505
  2. package/package.json +31 -31
package/dist/index.js CHANGED
@@ -5,6 +5,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
8
9
  var __commonJS = (cb, mod) => function __require() {
9
10
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
11
  };
@@ -42,18 +43,23 @@ var require_moment = __commonJS({
42
43
  function hooks() {
43
44
  return hookCallback.apply(null, arguments);
44
45
  }
46
+ __name(hooks, "hooks");
45
47
  function setHookCallback(callback) {
46
48
  hookCallback = callback;
47
49
  }
50
+ __name(setHookCallback, "setHookCallback");
48
51
  function isArray(input) {
49
52
  return input instanceof Array || Object.prototype.toString.call(input) === "[object Array]";
50
53
  }
54
+ __name(isArray, "isArray");
51
55
  function isObject(input) {
52
56
  return input != null && Object.prototype.toString.call(input) === "[object Object]";
53
57
  }
58
+ __name(isObject, "isObject");
54
59
  function hasOwnProp(a, b) {
55
60
  return Object.prototype.hasOwnProperty.call(a, b);
56
61
  }
62
+ __name(hasOwnProp, "hasOwnProp");
57
63
  function isObjectEmpty(obj) {
58
64
  if (Object.getOwnPropertyNames) {
59
65
  return Object.getOwnPropertyNames(obj).length === 0;
@@ -67,15 +73,19 @@ var require_moment = __commonJS({
67
73
  return true;
68
74
  }
69
75
  }
76
+ __name(isObjectEmpty, "isObjectEmpty");
70
77
  function isUndefined(input) {
71
78
  return input === void 0;
72
79
  }
80
+ __name(isUndefined, "isUndefined");
73
81
  function isNumber(input) {
74
82
  return typeof input === "number" || Object.prototype.toString.call(input) === "[object Number]";
75
83
  }
84
+ __name(isNumber, "isNumber");
76
85
  function isDate(input) {
77
86
  return input instanceof Date || Object.prototype.toString.call(input) === "[object Date]";
78
87
  }
88
+ __name(isDate, "isDate");
79
89
  function map(arr, fn) {
80
90
  var res = [], i, arrLen = arr.length;
81
91
  for (i = 0; i < arrLen; ++i) {
@@ -83,6 +93,7 @@ var require_moment = __commonJS({
83
93
  }
84
94
  return res;
85
95
  }
96
+ __name(map, "map");
86
97
  function extend(a, b) {
87
98
  for (var i in b) {
88
99
  if (hasOwnProp(b, i)) {
@@ -97,9 +108,11 @@ var require_moment = __commonJS({
97
108
  }
98
109
  return a;
99
110
  }
111
+ __name(extend, "extend");
100
112
  function createUTC(input, format2, locale2, strict) {
101
113
  return createLocalOrUTC(input, format2, locale2, strict, true).utc();
102
114
  }
115
+ __name(createUTC, "createUTC");
103
116
  function defaultParsingFlags() {
104
117
  return {
105
118
  empty: false,
@@ -120,17 +133,19 @@ var require_moment = __commonJS({
120
133
  weekdayMismatch: false
121
134
  };
122
135
  }
136
+ __name(defaultParsingFlags, "defaultParsingFlags");
123
137
  function getParsingFlags(m) {
124
138
  if (m._pf == null) {
125
139
  m._pf = defaultParsingFlags();
126
140
  }
127
141
  return m._pf;
128
142
  }
143
+ __name(getParsingFlags, "getParsingFlags");
129
144
  var some;
130
145
  if (Array.prototype.some) {
131
146
  some = Array.prototype.some;
132
147
  } else {
133
- some = function(fun) {
148
+ some = /* @__PURE__ */ __name(function(fun) {
134
149
  var t = Object(this), len = t.length >>> 0, i;
135
150
  for (i = 0; i < len; i++) {
136
151
  if (i in t && fun.call(this, t[i], i, t)) {
@@ -138,7 +153,7 @@ var require_moment = __commonJS({
138
153
  }
139
154
  }
140
155
  return false;
141
- };
156
+ }, "some");
142
157
  }
143
158
  function isValid(m) {
144
159
  var flags = null, parsedParts = false, isNowValid = m._d && !isNaN(m._d.getTime());
@@ -159,6 +174,7 @@ var require_moment = __commonJS({
159
174
  }
160
175
  return m._isValid;
161
176
  }
177
+ __name(isValid, "isValid");
162
178
  function createInvalid(flags) {
163
179
  var m = createUTC(NaN);
164
180
  if (flags != null) {
@@ -168,6 +184,7 @@ var require_moment = __commonJS({
168
184
  }
169
185
  return m;
170
186
  }
187
+ __name(createInvalid, "createInvalid");
171
188
  var momentProperties = hooks.momentProperties = [], updateInProgress = false;
172
189
  function copyConfig(to2, from2) {
173
190
  var i, prop, val, momentPropertiesLen = momentProperties.length;
@@ -212,6 +229,7 @@ var require_moment = __commonJS({
212
229
  }
213
230
  return to2;
214
231
  }
232
+ __name(copyConfig, "copyConfig");
215
233
  function Moment(config) {
216
234
  copyConfig(this, config);
217
235
  this._d = new Date(config._d != null ? config._d.getTime() : NaN);
@@ -224,14 +242,17 @@ var require_moment = __commonJS({
224
242
  updateInProgress = false;
225
243
  }
226
244
  }
245
+ __name(Moment, "Moment");
227
246
  function isMoment(obj) {
228
247
  return obj instanceof Moment || obj != null && obj._isAMomentObject != null;
229
248
  }
249
+ __name(isMoment, "isMoment");
230
250
  function warn(msg) {
231
251
  if (hooks.suppressDeprecationWarnings === false && typeof console !== "undefined" && console.warn) {
232
252
  console.warn("Deprecation warning: " + msg);
233
253
  }
234
254
  }
255
+ __name(warn, "warn");
235
256
  function deprecate(msg, fn) {
236
257
  var firstTime = true;
237
258
  return extend(function() {
@@ -255,14 +276,13 @@ var require_moment = __commonJS({
255
276
  }
256
277
  args.push(arg);
257
278
  }
258
- warn(
259
- msg + "\nArguments: " + Array.prototype.slice.call(args).join("") + "\n" + new Error().stack
260
- );
279
+ warn(msg + "\nArguments: " + Array.prototype.slice.call(args).join("") + "\n" + new Error().stack);
261
280
  firstTime = false;
262
281
  }
263
282
  return fn.apply(this, arguments);
264
283
  }, fn);
265
284
  }
285
+ __name(deprecate, "deprecate");
266
286
  var deprecations = {};
267
287
  function deprecateSimple(name, msg) {
268
288
  if (hooks.deprecationHandler != null) {
@@ -273,11 +293,13 @@ var require_moment = __commonJS({
273
293
  deprecations[name] = true;
274
294
  }
275
295
  }
296
+ __name(deprecateSimple, "deprecateSimple");
276
297
  hooks.suppressDeprecationWarnings = false;
277
298
  hooks.deprecationHandler = null;
278
299
  function isFunction(input) {
279
300
  return typeof Function !== "undefined" && input instanceof Function || Object.prototype.toString.call(input) === "[object Function]";
280
301
  }
302
+ __name(isFunction, "isFunction");
281
303
  function set(config) {
282
304
  var prop, i;
283
305
  for (i in config) {
@@ -291,10 +313,9 @@ var require_moment = __commonJS({
291
313
  }
292
314
  }
293
315
  this._config = config;
294
- this._dayOfMonthOrdinalParseLenient = new RegExp(
295
- (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source
296
- );
316
+ this._dayOfMonthOrdinalParseLenient = new RegExp((this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source);
297
317
  }
318
+ __name(set, "set");
298
319
  function mergeConfigs(parentConfig, childConfig) {
299
320
  var res = extend({}, parentConfig), prop;
300
321
  for (prop in childConfig) {
@@ -317,16 +338,18 @@ var require_moment = __commonJS({
317
338
  }
318
339
  return res;
319
340
  }
341
+ __name(mergeConfigs, "mergeConfigs");
320
342
  function Locale(config) {
321
343
  if (config != null) {
322
344
  this.set(config);
323
345
  }
324
346
  }
347
+ __name(Locale, "Locale");
325
348
  var keys;
326
349
  if (Object.keys) {
327
350
  keys = Object.keys;
328
351
  } else {
329
- keys = function(obj) {
352
+ keys = /* @__PURE__ */ __name(function(obj) {
330
353
  var i, res = [];
331
354
  for (i in obj) {
332
355
  if (hasOwnProp(obj, i)) {
@@ -334,7 +357,7 @@ var require_moment = __commonJS({
334
357
  }
335
358
  }
336
359
  return res;
337
- };
360
+ }, "keys");
338
361
  }
339
362
  var defaultCalendar = {
340
363
  sameDay: "[Today at] LT",
@@ -348,17 +371,19 @@ var require_moment = __commonJS({
348
371
  var output = this._calendar[key] || this._calendar["sameElse"];
349
372
  return isFunction(output) ? output.call(mom, now2) : output;
350
373
  }
374
+ __name(calendar, "calendar");
351
375
  function zeroFill(number, targetLength, forceSign) {
352
376
  var absNumber = "" + Math.abs(number), zerosToFill = targetLength - absNumber.length, sign2 = number >= 0;
353
377
  return (sign2 ? forceSign ? "+" : "" : "-") + Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber;
354
378
  }
379
+ __name(zeroFill, "zeroFill");
355
380
  var formattingTokens = /(\[[^\[]*\])|(\\)?([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, localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, formatFunctions = {}, formatTokenFunctions = {};
356
381
  function addFormatToken(token2, padded, ordinal2, callback) {
357
382
  var func = callback;
358
383
  if (typeof callback === "string") {
359
- func = function() {
384
+ func = /* @__PURE__ */ __name(function() {
360
385
  return this[callback]();
361
- };
386
+ }, "func");
362
387
  }
363
388
  if (token2) {
364
389
  formatTokenFunctions[token2] = func;
@@ -370,19 +395,18 @@ var require_moment = __commonJS({
370
395
  }
371
396
  if (ordinal2) {
372
397
  formatTokenFunctions[ordinal2] = function() {
373
- return this.localeData().ordinal(
374
- func.apply(this, arguments),
375
- token2
376
- );
398
+ return this.localeData().ordinal(func.apply(this, arguments), token2);
377
399
  };
378
400
  }
379
401
  }
402
+ __name(addFormatToken, "addFormatToken");
380
403
  function removeFormattingTokens(input) {
381
404
  if (input.match(/\[[\s\S]/)) {
382
405
  return input.replace(/^\[|\]$/g, "");
383
406
  }
384
407
  return input.replace(/\\/g, "");
385
408
  }
409
+ __name(removeFormattingTokens, "removeFormattingTokens");
386
410
  function makeFormatFunction(format2) {
387
411
  var array = format2.match(formattingTokens), i, length;
388
412
  for (i = 0, length = array.length; i < length; i++) {
@@ -400,6 +424,7 @@ var require_moment = __commonJS({
400
424
  return output;
401
425
  };
402
426
  }
427
+ __name(makeFormatFunction, "makeFormatFunction");
403
428
  function formatMoment(m, format2) {
404
429
  if (!m.isValid()) {
405
430
  return m.localeData().invalidDate();
@@ -408,22 +433,22 @@ var require_moment = __commonJS({
408
433
  formatFunctions[format2] = formatFunctions[format2] || makeFormatFunction(format2);
409
434
  return formatFunctions[format2](m);
410
435
  }
436
+ __name(formatMoment, "formatMoment");
411
437
  function expandFormat(format2, locale2) {
412
438
  var i = 5;
413
439
  function replaceLongDateFormatTokens(input) {
414
440
  return locale2.longDateFormat(input) || input;
415
441
  }
442
+ __name(replaceLongDateFormatTokens, "replaceLongDateFormatTokens");
416
443
  localFormattingTokens.lastIndex = 0;
417
444
  while (i >= 0 && localFormattingTokens.test(format2)) {
418
- format2 = format2.replace(
419
- localFormattingTokens,
420
- replaceLongDateFormatTokens
421
- );
445
+ format2 = format2.replace(localFormattingTokens, replaceLongDateFormatTokens);
422
446
  localFormattingTokens.lastIndex = 0;
423
447
  i -= 1;
424
448
  }
425
449
  return format2;
426
450
  }
451
+ __name(expandFormat, "expandFormat");
427
452
  var defaultLongDateFormat = {
428
453
  LTS: "h:mm:ss A",
429
454
  LT: "h:mm A",
@@ -445,14 +470,17 @@ var require_moment = __commonJS({
445
470
  }).join("");
446
471
  return this._longDateFormat[key];
447
472
  }
473
+ __name(longDateFormat, "longDateFormat");
448
474
  var defaultInvalidDate = "Invalid date";
449
475
  function invalidDate() {
450
476
  return this._invalidDate;
451
477
  }
478
+ __name(invalidDate, "invalidDate");
452
479
  var defaultOrdinal = "%d", defaultDayOfMonthOrdinalParse = /\d{1,2}/;
453
480
  function ordinal(number) {
454
481
  return this._ordinal.replace("%d", number);
455
482
  }
483
+ __name(ordinal, "ordinal");
456
484
  var defaultRelativeTime = {
457
485
  future: "in %s",
458
486
  past: "%s ago",
@@ -475,10 +503,12 @@ var require_moment = __commonJS({
475
503
  var output = this._relativeTime[string];
476
504
  return isFunction(output) ? output(number, withoutSuffix, string, isFuture) : output.replace(/%d/i, number);
477
505
  }
506
+ __name(relativeTime, "relativeTime");
478
507
  function pastFuture(diff2, output) {
479
508
  var format2 = this._relativeTime[diff2 > 0 ? "future" : "past"];
480
509
  return isFunction(format2) ? format2(output) : format2.replace(/%s/i, output);
481
510
  }
511
+ __name(pastFuture, "pastFuture");
482
512
  var aliases = {
483
513
  D: "date",
484
514
  dates: "date",
@@ -532,6 +562,7 @@ var require_moment = __commonJS({
532
562
  function normalizeUnits(units) {
533
563
  return typeof units === "string" ? aliases[units] || aliases[units.toLowerCase()] : void 0;
534
564
  }
565
+ __name(normalizeUnits, "normalizeUnits");
535
566
  function normalizeObjectUnits(inputObject) {
536
567
  var normalizedInput = {}, normalizedProp, prop;
537
568
  for (prop in inputObject) {
@@ -544,6 +575,7 @@ var require_moment = __commonJS({
544
575
  }
545
576
  return normalizedInput;
546
577
  }
578
+ __name(normalizeObjectUnits, "normalizeObjectUnits");
547
579
  var priorities = {
548
580
  date: 9,
549
581
  day: 11,
@@ -566,7 +598,10 @@ var require_moment = __commonJS({
566
598
  var units = [], u;
567
599
  for (u in unitsObj) {
568
600
  if (hasOwnProp(unitsObj, u)) {
569
- units.push({ unit: u, priority: priorities[u] });
601
+ units.push({
602
+ unit: u,
603
+ priority: priorities[u]
604
+ });
570
605
  }
571
606
  }
572
607
  units.sort(function(a, b) {
@@ -574,6 +609,7 @@ var require_moment = __commonJS({
574
609
  });
575
610
  return units;
576
611
  }
612
+ __name(getPrioritizedUnits, "getPrioritizedUnits");
577
613
  var match1 = /\d/, match2 = /\d\d/, match3 = /\d{3}/, match4 = /\d{4}/, match6 = /[+-]?\d{6}/, match1to2 = /\d\d?/, match3to4 = /\d\d\d\d?/, match5to6 = /\d\d\d\d\d\d?/, match1to3 = /\d{1,3}/, match1to4 = /\d{1,4}/, match1to6 = /[+-]?\d{1,6}/, matchUnsigned = /\d+/, matchSigned = /[+-]?\d+/, matchOffset = /Z|[+-]\d\d:?\d\d/gi, matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi, matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, matchWord = /[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, match1to2NoLeadingZero = /^[1-9]\d?/, match1to2HasZero = /^([1-9]\d|\d)/, regexes;
578
614
  regexes = {};
579
615
  function addRegexToken(token2, regex, strictRegex) {
@@ -581,25 +617,24 @@ var require_moment = __commonJS({
581
617
  return isStrict && strictRegex ? strictRegex : regex;
582
618
  };
583
619
  }
620
+ __name(addRegexToken, "addRegexToken");
584
621
  function getParseRegexForToken(token2, config) {
585
622
  if (!hasOwnProp(regexes, token2)) {
586
623
  return new RegExp(unescapeFormat(token2));
587
624
  }
588
625
  return regexes[token2](config._strict, config._locale);
589
626
  }
627
+ __name(getParseRegexForToken, "getParseRegexForToken");
590
628
  function unescapeFormat(s) {
591
- return regexEscape(
592
- s.replace("\\", "").replace(
593
- /\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
594
- function(matched, p1, p2, p3, p4) {
595
- return p1 || p2 || p3 || p4;
596
- }
597
- )
598
- );
629
+ return regexEscape(s.replace("\\", "").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function(matched, p1, p2, p3, p4) {
630
+ return p1 || p2 || p3 || p4;
631
+ }));
599
632
  }
633
+ __name(unescapeFormat, "unescapeFormat");
600
634
  function regexEscape(s) {
601
635
  return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
602
636
  }
637
+ __name(regexEscape, "regexEscape");
603
638
  function absFloor(number) {
604
639
  if (number < 0) {
605
640
  return Math.ceil(number) || 0;
@@ -607,6 +642,7 @@ var require_moment = __commonJS({
607
642
  return Math.floor(number);
608
643
  }
609
644
  }
645
+ __name(absFloor, "absFloor");
610
646
  function toInt(argumentForCoercion) {
611
647
  var coercedNumber = +argumentForCoercion, value = 0;
612
648
  if (coercedNumber !== 0 && isFinite(coercedNumber)) {
@@ -614,53 +650,76 @@ var require_moment = __commonJS({
614
650
  }
615
651
  return value;
616
652
  }
653
+ __name(toInt, "toInt");
617
654
  var tokens = {};
618
655
  function addParseToken(token2, callback) {
619
656
  var i, func = callback, tokenLen;
620
657
  if (typeof token2 === "string") {
621
- token2 = [token2];
658
+ token2 = [
659
+ token2
660
+ ];
622
661
  }
623
662
  if (isNumber(callback)) {
624
- func = function(input, array) {
663
+ func = /* @__PURE__ */ __name(function(input, array) {
625
664
  array[callback] = toInt(input);
626
- };
665
+ }, "func");
627
666
  }
628
667
  tokenLen = token2.length;
629
668
  for (i = 0; i < tokenLen; i++) {
630
669
  tokens[token2[i]] = func;
631
670
  }
632
671
  }
672
+ __name(addParseToken, "addParseToken");
633
673
  function addWeekParseToken(token2, callback) {
634
674
  addParseToken(token2, function(input, array, config, token3) {
635
675
  config._w = config._w || {};
636
676
  callback(input, config._w, config, token3);
637
677
  });
638
678
  }
679
+ __name(addWeekParseToken, "addWeekParseToken");
639
680
  function addTimeToArrayFromToken(token2, input, config) {
640
681
  if (input != null && hasOwnProp(tokens, token2)) {
641
682
  tokens[token2](input, config._a, config, token2);
642
683
  }
643
684
  }
685
+ __name(addTimeToArrayFromToken, "addTimeToArrayFromToken");
644
686
  function isLeapYear(year) {
645
687
  return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
646
688
  }
689
+ __name(isLeapYear, "isLeapYear");
647
690
  var YEAR = 0, MONTH = 1, DATE = 2, HOUR = 3, MINUTE = 4, SECOND = 5, MILLISECOND = 6, WEEK = 7, WEEKDAY = 8;
648
691
  addFormatToken("Y", 0, 0, function() {
649
692
  var y = this.year();
650
693
  return y <= 9999 ? zeroFill(y, 4) : "+" + y;
651
694
  });
652
- addFormatToken(0, ["YY", 2], 0, function() {
695
+ addFormatToken(0, [
696
+ "YY",
697
+ 2
698
+ ], 0, function() {
653
699
  return this.year() % 100;
654
700
  });
655
- addFormatToken(0, ["YYYY", 4], 0, "year");
656
- addFormatToken(0, ["YYYYY", 5], 0, "year");
657
- addFormatToken(0, ["YYYYYY", 6, true], 0, "year");
701
+ addFormatToken(0, [
702
+ "YYYY",
703
+ 4
704
+ ], 0, "year");
705
+ addFormatToken(0, [
706
+ "YYYYY",
707
+ 5
708
+ ], 0, "year");
709
+ addFormatToken(0, [
710
+ "YYYYYY",
711
+ 6,
712
+ true
713
+ ], 0, "year");
658
714
  addRegexToken("Y", matchSigned);
659
715
  addRegexToken("YY", match1to2, match2);
660
716
  addRegexToken("YYYY", match1to4, match4);
661
717
  addRegexToken("YYYYY", match1to6, match6);
662
718
  addRegexToken("YYYYYY", match1to6, match6);
663
- addParseToken(["YYYYY", "YYYYYY"], YEAR);
719
+ addParseToken([
720
+ "YYYYY",
721
+ "YYYYYY"
722
+ ], YEAR);
664
723
  addParseToken("YYYY", function(input, array) {
665
724
  array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
666
725
  });
@@ -673,6 +732,7 @@ var require_moment = __commonJS({
673
732
  function daysInYear(year) {
674
733
  return isLeapYear(year) ? 366 : 365;
675
734
  }
735
+ __name(daysInYear, "daysInYear");
676
736
  hooks.parseTwoDigitYear = function(input) {
677
737
  return toInt(input) + (toInt(input) > 68 ? 1900 : 2e3);
678
738
  };
@@ -680,6 +740,7 @@ var require_moment = __commonJS({
680
740
  function getIsLeapYear() {
681
741
  return isLeapYear(this.year());
682
742
  }
743
+ __name(getIsLeapYear, "getIsLeapYear");
683
744
  function makeGetSet(unit, keepTime) {
684
745
  return function(value) {
685
746
  if (value != null) {
@@ -691,6 +752,7 @@ var require_moment = __commonJS({
691
752
  }
692
753
  };
693
754
  }
755
+ __name(makeGetSet, "makeGetSet");
694
756
  function get(mom, unit) {
695
757
  if (!mom.isValid()) {
696
758
  return NaN;
@@ -717,6 +779,7 @@ var require_moment = __commonJS({
717
779
  return NaN;
718
780
  }
719
781
  }
782
+ __name(get, "get");
720
783
  function set$1(mom, unit, value) {
721
784
  var d, isUTC, year, month, date;
722
785
  if (!mom.isValid() || isNaN(value)) {
@@ -746,6 +809,7 @@ var require_moment = __commonJS({
746
809
  date = date === 29 && month === 1 && !isLeapYear(year) ? 28 : date;
747
810
  void (isUTC ? d.setUTCFullYear(year, month, date) : d.setFullYear(year, month, date));
748
811
  }
812
+ __name(set$1, "set$1");
749
813
  function stringGet(units) {
750
814
  units = normalizeUnits(units);
751
815
  if (isFunction(this[units])) {
@@ -753,6 +817,7 @@ var require_moment = __commonJS({
753
817
  }
754
818
  return this;
755
819
  }
820
+ __name(stringGet, "stringGet");
756
821
  function stringSet(units, value) {
757
822
  if (typeof units === "object") {
758
823
  units = normalizeObjectUnits(units);
@@ -768,14 +833,16 @@ var require_moment = __commonJS({
768
833
  }
769
834
  return this;
770
835
  }
836
+ __name(stringSet, "stringSet");
771
837
  function mod(n, x) {
772
838
  return (n % x + x) % x;
773
839
  }
840
+ __name(mod, "mod");
774
841
  var indexOf;
775
842
  if (Array.prototype.indexOf) {
776
843
  indexOf = Array.prototype.indexOf;
777
844
  } else {
778
- indexOf = function(o) {
845
+ indexOf = /* @__PURE__ */ __name(function(o) {
779
846
  var i;
780
847
  for (i = 0; i < this.length; ++i) {
781
848
  if (this[i] === o) {
@@ -783,7 +850,7 @@ var require_moment = __commonJS({
783
850
  }
784
851
  }
785
852
  return -1;
786
- };
853
+ }, "indexOf");
787
854
  }
788
855
  function daysInMonth(year, month) {
789
856
  if (isNaN(year) || isNaN(month)) {
@@ -793,7 +860,11 @@ var require_moment = __commonJS({
793
860
  year += (month - modMonth) / 12;
794
861
  return modMonth === 1 ? isLeapYear(year) ? 29 : 28 : 31 - modMonth % 7 % 2;
795
862
  }
796
- addFormatToken("M", ["MM", 2], "Mo", function() {
863
+ __name(daysInMonth, "daysInMonth");
864
+ addFormatToken("M", [
865
+ "MM",
866
+ 2
867
+ ], "Mo", function() {
797
868
  return this.month() + 1;
798
869
  });
799
870
  addFormatToken("MMM", 0, 0, function(format2) {
@@ -810,10 +881,16 @@ var require_moment = __commonJS({
810
881
  addRegexToken("MMMM", function(isStrict, locale2) {
811
882
  return locale2.monthsRegex(isStrict);
812
883
  });
813
- addParseToken(["M", "MM"], function(input, array) {
884
+ addParseToken([
885
+ "M",
886
+ "MM"
887
+ ], function(input, array) {
814
888
  array[MONTH] = toInt(input) - 1;
815
889
  });
816
- addParseToken(["MMM", "MMMM"], function(input, array, config, token2) {
890
+ addParseToken([
891
+ "MMM",
892
+ "MMMM"
893
+ ], function(input, array, config, token2) {
817
894
  var month = config._locale.monthsParse(input, token2, config._strict);
818
895
  if (month != null) {
819
896
  array[MONTH] = month;
@@ -821,21 +898,21 @@ var require_moment = __commonJS({
821
898
  getParsingFlags(config).invalidMonth = input;
822
899
  }
823
900
  });
824
- var defaultLocaleMonths = "January_February_March_April_May_June_July_August_September_October_November_December".split(
825
- "_"
826
- ), defaultLocaleMonthsShort = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, defaultMonthsShortRegex = matchWord, defaultMonthsRegex = matchWord;
901
+ var defaultLocaleMonths = "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), defaultLocaleMonthsShort = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, defaultMonthsShortRegex = matchWord, defaultMonthsRegex = matchWord;
827
902
  function localeMonths(m, format2) {
828
903
  if (!m) {
829
904
  return isArray(this._months) ? this._months : this._months["standalone"];
830
905
  }
831
906
  return isArray(this._months) ? this._months[m.month()] : this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format2) ? "format" : "standalone"][m.month()];
832
907
  }
908
+ __name(localeMonths, "localeMonths");
833
909
  function localeMonthsShort(m, format2) {
834
910
  if (!m) {
835
911
  return isArray(this._monthsShort) ? this._monthsShort : this._monthsShort["standalone"];
836
912
  }
837
913
  return isArray(this._monthsShort) ? this._monthsShort[m.month()] : this._monthsShort[MONTHS_IN_FORMAT.test(format2) ? "format" : "standalone"][m.month()];
838
914
  }
915
+ __name(localeMonthsShort, "localeMonthsShort");
839
916
  function handleStrictParse(monthName, format2, strict) {
840
917
  var i, ii, mom, llc = monthName.toLocaleLowerCase();
841
918
  if (!this._monthsParse) {
@@ -843,11 +920,11 @@ var require_moment = __commonJS({
843
920
  this._longMonthsParse = [];
844
921
  this._shortMonthsParse = [];
845
922
  for (i = 0; i < 12; ++i) {
846
- mom = createUTC([2e3, i]);
847
- this._shortMonthsParse[i] = this.monthsShort(
848
- mom,
849
- ""
850
- ).toLocaleLowerCase();
923
+ mom = createUTC([
924
+ 2e3,
925
+ i
926
+ ]);
927
+ this._shortMonthsParse[i] = this.monthsShort(mom, "").toLocaleLowerCase();
851
928
  this._longMonthsParse[i] = this.months(mom, "").toLocaleLowerCase();
852
929
  }
853
930
  }
@@ -877,6 +954,7 @@ var require_moment = __commonJS({
877
954
  }
878
955
  }
879
956
  }
957
+ __name(handleStrictParse, "handleStrictParse");
880
958
  function localeMonthsParse(monthName, format2, strict) {
881
959
  var i, mom, regex;
882
960
  if (this._monthsParseExact) {
@@ -888,16 +966,13 @@ var require_moment = __commonJS({
888
966
  this._shortMonthsParse = [];
889
967
  }
890
968
  for (i = 0; i < 12; i++) {
891
- mom = createUTC([2e3, i]);
969
+ mom = createUTC([
970
+ 2e3,
971
+ i
972
+ ]);
892
973
  if (strict && !this._longMonthsParse[i]) {
893
- this._longMonthsParse[i] = new RegExp(
894
- "^" + this.months(mom, "").replace(".", "") + "$",
895
- "i"
896
- );
897
- this._shortMonthsParse[i] = new RegExp(
898
- "^" + this.monthsShort(mom, "").replace(".", "") + "$",
899
- "i"
900
- );
974
+ this._longMonthsParse[i] = new RegExp("^" + this.months(mom, "").replace(".", "") + "$", "i");
975
+ this._shortMonthsParse[i] = new RegExp("^" + this.monthsShort(mom, "").replace(".", "") + "$", "i");
901
976
  }
902
977
  if (!strict && !this._monthsParse[i]) {
903
978
  regex = "^" + this.months(mom, "") + "|^" + this.monthsShort(mom, "");
@@ -912,6 +987,7 @@ var require_moment = __commonJS({
912
987
  }
913
988
  }
914
989
  }
990
+ __name(localeMonthsParse, "localeMonthsParse");
915
991
  function setMonth(mom, value) {
916
992
  if (!mom.isValid()) {
917
993
  return mom;
@@ -931,6 +1007,7 @@ var require_moment = __commonJS({
931
1007
  void (mom._isUTC ? mom._d.setUTCMonth(month, date) : mom._d.setMonth(month, date));
932
1008
  return mom;
933
1009
  }
1010
+ __name(setMonth, "setMonth");
934
1011
  function getSetMonth(value) {
935
1012
  if (value != null) {
936
1013
  setMonth(this, value);
@@ -940,9 +1017,11 @@ var require_moment = __commonJS({
940
1017
  return get(this, "Month");
941
1018
  }
942
1019
  }
1020
+ __name(getSetMonth, "getSetMonth");
943
1021
  function getDaysInMonth() {
944
1022
  return daysInMonth(this.year(), this.month());
945
1023
  }
1024
+ __name(getDaysInMonth, "getDaysInMonth");
946
1025
  function monthsShortRegex(isStrict) {
947
1026
  if (this._monthsParseExact) {
948
1027
  if (!hasOwnProp(this, "_monthsRegex")) {
@@ -960,6 +1039,7 @@ var require_moment = __commonJS({
960
1039
  return this._monthsShortStrictRegex && isStrict ? this._monthsShortStrictRegex : this._monthsShortRegex;
961
1040
  }
962
1041
  }
1042
+ __name(monthsShortRegex, "monthsShortRegex");
963
1043
  function monthsRegex(isStrict) {
964
1044
  if (this._monthsParseExact) {
965
1045
  if (!hasOwnProp(this, "_monthsRegex")) {
@@ -977,13 +1057,18 @@ var require_moment = __commonJS({
977
1057
  return this._monthsStrictRegex && isStrict ? this._monthsStrictRegex : this._monthsRegex;
978
1058
  }
979
1059
  }
1060
+ __name(monthsRegex, "monthsRegex");
980
1061
  function computeMonthsParse() {
981
1062
  function cmpLenRev(a, b) {
982
1063
  return b.length - a.length;
983
1064
  }
1065
+ __name(cmpLenRev, "cmpLenRev");
984
1066
  var shortPieces = [], longPieces = [], mixedPieces = [], i, mom, shortP, longP;
985
1067
  for (i = 0; i < 12; i++) {
986
- mom = createUTC([2e3, i]);
1068
+ mom = createUTC([
1069
+ 2e3,
1070
+ i
1071
+ ]);
987
1072
  shortP = regexEscape(this.monthsShort(mom, ""));
988
1073
  longP = regexEscape(this.months(mom, ""));
989
1074
  shortPieces.push(shortP);
@@ -996,15 +1081,10 @@ var require_moment = __commonJS({
996
1081
  mixedPieces.sort(cmpLenRev);
997
1082
  this._monthsRegex = new RegExp("^(" + mixedPieces.join("|") + ")", "i");
998
1083
  this._monthsShortRegex = this._monthsRegex;
999
- this._monthsStrictRegex = new RegExp(
1000
- "^(" + longPieces.join("|") + ")",
1001
- "i"
1002
- );
1003
- this._monthsShortStrictRegex = new RegExp(
1004
- "^(" + shortPieces.join("|") + ")",
1005
- "i"
1006
- );
1084
+ this._monthsStrictRegex = new RegExp("^(" + longPieces.join("|") + ")", "i");
1085
+ this._monthsShortStrictRegex = new RegExp("^(" + shortPieces.join("|") + ")", "i");
1007
1086
  }
1087
+ __name(computeMonthsParse, "computeMonthsParse");
1008
1088
  function createDate(y, m, d, h, M, s, ms) {
1009
1089
  var date;
1010
1090
  if (y < 100 && y >= 0) {
@@ -1017,6 +1097,7 @@ var require_moment = __commonJS({
1017
1097
  }
1018
1098
  return date;
1019
1099
  }
1100
+ __name(createDate, "createDate");
1020
1101
  function createUTCDate(y) {
1021
1102
  var date, args;
1022
1103
  if (y < 100 && y >= 0) {
@@ -1031,10 +1112,12 @@ var require_moment = __commonJS({
1031
1112
  }
1032
1113
  return date;
1033
1114
  }
1115
+ __name(createUTCDate, "createUTCDate");
1034
1116
  function firstWeekOffset(year, dow, doy) {
1035
1117
  var fwd = 7 + dow - doy, fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;
1036
1118
  return -fwdlw + fwd - 1;
1037
1119
  }
1120
+ __name(firstWeekOffset, "firstWeekOffset");
1038
1121
  function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
1039
1122
  var localWeekday = (7 + weekday - dow) % 7, weekOffset = firstWeekOffset(year, dow, doy), dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset, resYear, resDayOfYear;
1040
1123
  if (dayOfYear <= 0) {
@@ -1052,6 +1135,7 @@ var require_moment = __commonJS({
1052
1135
  dayOfYear: resDayOfYear
1053
1136
  };
1054
1137
  }
1138
+ __name(dayOfYearFromWeeks, "dayOfYearFromWeeks");
1055
1139
  function weekOfYear(mom, dow, doy) {
1056
1140
  var weekOffset = firstWeekOffset(mom.year(), dow, doy), week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1, resWeek, resYear;
1057
1141
  if (week < 1) {
@@ -1069,45 +1153,58 @@ var require_moment = __commonJS({
1069
1153
  year: resYear
1070
1154
  };
1071
1155
  }
1156
+ __name(weekOfYear, "weekOfYear");
1072
1157
  function weeksInYear(year, dow, doy) {
1073
1158
  var weekOffset = firstWeekOffset(year, dow, doy), weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
1074
1159
  return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
1075
1160
  }
1076
- addFormatToken("w", ["ww", 2], "wo", "week");
1077
- addFormatToken("W", ["WW", 2], "Wo", "isoWeek");
1161
+ __name(weeksInYear, "weeksInYear");
1162
+ addFormatToken("w", [
1163
+ "ww",
1164
+ 2
1165
+ ], "wo", "week");
1166
+ addFormatToken("W", [
1167
+ "WW",
1168
+ 2
1169
+ ], "Wo", "isoWeek");
1078
1170
  addRegexToken("w", match1to2, match1to2NoLeadingZero);
1079
1171
  addRegexToken("ww", match1to2, match2);
1080
1172
  addRegexToken("W", match1to2, match1to2NoLeadingZero);
1081
1173
  addRegexToken("WW", match1to2, match2);
1082
- addWeekParseToken(
1083
- ["w", "ww", "W", "WW"],
1084
- function(input, week, config, token2) {
1085
- week[token2.substr(0, 1)] = toInt(input);
1086
- }
1087
- );
1174
+ addWeekParseToken([
1175
+ "w",
1176
+ "ww",
1177
+ "W",
1178
+ "WW"
1179
+ ], function(input, week, config, token2) {
1180
+ week[token2.substr(0, 1)] = toInt(input);
1181
+ });
1088
1182
  function localeWeek(mom) {
1089
1183
  return weekOfYear(mom, this._week.dow, this._week.doy).week;
1090
1184
  }
1185
+ __name(localeWeek, "localeWeek");
1091
1186
  var defaultLocaleWeek = {
1092
1187
  dow: 0,
1093
- // Sunday is the first day of the week.
1094
1188
  doy: 6
1095
- // The week that contains Jan 6th is the first week of the year.
1096
1189
  };
1097
1190
  function localeFirstDayOfWeek() {
1098
1191
  return this._week.dow;
1099
1192
  }
1193
+ __name(localeFirstDayOfWeek, "localeFirstDayOfWeek");
1100
1194
  function localeFirstDayOfYear() {
1101
1195
  return this._week.doy;
1102
1196
  }
1197
+ __name(localeFirstDayOfYear, "localeFirstDayOfYear");
1103
1198
  function getSetWeek(input) {
1104
1199
  var week = this.localeData().week(this);
1105
1200
  return input == null ? week : this.add((input - week) * 7, "d");
1106
1201
  }
1202
+ __name(getSetWeek, "getSetWeek");
1107
1203
  function getSetISOWeek(input) {
1108
1204
  var week = weekOfYear(this, 1, 4).week;
1109
1205
  return input == null ? week : this.add((input - week) * 7, "d");
1110
1206
  }
1207
+ __name(getSetISOWeek, "getSetISOWeek");
1111
1208
  addFormatToken("d", 0, "do", "day");
1112
1209
  addFormatToken("dd", 0, 0, function(format2) {
1113
1210
  return this.localeData().weekdaysMin(this, format2);
@@ -1132,7 +1229,11 @@ var require_moment = __commonJS({
1132
1229
  addRegexToken("dddd", function(isStrict, locale2) {
1133
1230
  return locale2.weekdaysRegex(isStrict);
1134
1231
  });
1135
- addWeekParseToken(["dd", "ddd", "dddd"], function(input, week, config, token2) {
1232
+ addWeekParseToken([
1233
+ "dd",
1234
+ "ddd",
1235
+ "dddd"
1236
+ ], function(input, week, config, token2) {
1136
1237
  var weekday = config._locale.weekdaysParse(input, token2, config._strict);
1137
1238
  if (weekday != null) {
1138
1239
  week.d = weekday;
@@ -1140,7 +1241,11 @@ var require_moment = __commonJS({
1140
1241
  getParsingFlags(config).invalidWeekday = input;
1141
1242
  }
1142
1243
  });
1143
- addWeekParseToken(["d", "e", "E"], function(input, week, config, token2) {
1244
+ addWeekParseToken([
1245
+ "d",
1246
+ "e",
1247
+ "E"
1248
+ ], function(input, week, config, token2) {
1144
1249
  week[token2] = toInt(input);
1145
1250
  });
1146
1251
  function parseWeekday(input, locale2) {
@@ -1156,26 +1261,32 @@ var require_moment = __commonJS({
1156
1261
  }
1157
1262
  return null;
1158
1263
  }
1264
+ __name(parseWeekday, "parseWeekday");
1159
1265
  function parseIsoWeekday(input, locale2) {
1160
1266
  if (typeof input === "string") {
1161
1267
  return locale2.weekdaysParse(input) % 7 || 7;
1162
1268
  }
1163
1269
  return isNaN(input) ? null : input;
1164
1270
  }
1271
+ __name(parseIsoWeekday, "parseIsoWeekday");
1165
1272
  function shiftWeekdays(ws, n) {
1166
1273
  return ws.slice(n, 7).concat(ws.slice(0, n));
1167
1274
  }
1275
+ __name(shiftWeekdays, "shiftWeekdays");
1168
1276
  var defaultLocaleWeekdays = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), defaultLocaleWeekdaysShort = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), defaultLocaleWeekdaysMin = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), defaultWeekdaysRegex = matchWord, defaultWeekdaysShortRegex = matchWord, defaultWeekdaysMinRegex = matchWord;
1169
1277
  function localeWeekdays(m, format2) {
1170
1278
  var weekdays = isArray(this._weekdays) ? this._weekdays : this._weekdays[m && m !== true && this._weekdays.isFormat.test(format2) ? "format" : "standalone"];
1171
1279
  return m === true ? shiftWeekdays(weekdays, this._week.dow) : m ? weekdays[m.day()] : weekdays;
1172
1280
  }
1281
+ __name(localeWeekdays, "localeWeekdays");
1173
1282
  function localeWeekdaysShort(m) {
1174
1283
  return m === true ? shiftWeekdays(this._weekdaysShort, this._week.dow) : m ? this._weekdaysShort[m.day()] : this._weekdaysShort;
1175
1284
  }
1285
+ __name(localeWeekdaysShort, "localeWeekdaysShort");
1176
1286
  function localeWeekdaysMin(m) {
1177
1287
  return m === true ? shiftWeekdays(this._weekdaysMin, this._week.dow) : m ? this._weekdaysMin[m.day()] : this._weekdaysMin;
1178
1288
  }
1289
+ __name(localeWeekdaysMin, "localeWeekdaysMin");
1179
1290
  function handleStrictParse$1(weekdayName, format2, strict) {
1180
1291
  var i, ii, mom, llc = weekdayName.toLocaleLowerCase();
1181
1292
  if (!this._weekdaysParse) {
@@ -1183,15 +1294,12 @@ var require_moment = __commonJS({
1183
1294
  this._shortWeekdaysParse = [];
1184
1295
  this._minWeekdaysParse = [];
1185
1296
  for (i = 0; i < 7; ++i) {
1186
- mom = createUTC([2e3, 1]).day(i);
1187
- this._minWeekdaysParse[i] = this.weekdaysMin(
1188
- mom,
1189
- ""
1190
- ).toLocaleLowerCase();
1191
- this._shortWeekdaysParse[i] = this.weekdaysShort(
1192
- mom,
1193
- ""
1194
- ).toLocaleLowerCase();
1297
+ mom = createUTC([
1298
+ 2e3,
1299
+ 1
1300
+ ]).day(i);
1301
+ this._minWeekdaysParse[i] = this.weekdaysMin(mom, "").toLocaleLowerCase();
1302
+ this._shortWeekdaysParse[i] = this.weekdaysShort(mom, "").toLocaleLowerCase();
1195
1303
  this._weekdaysParse[i] = this.weekdays(mom, "").toLocaleLowerCase();
1196
1304
  }
1197
1305
  }
@@ -1243,6 +1351,7 @@ var require_moment = __commonJS({
1243
1351
  }
1244
1352
  }
1245
1353
  }
1354
+ __name(handleStrictParse$1, "handleStrictParse$1");
1246
1355
  function localeWeekdaysParse(weekdayName, format2, strict) {
1247
1356
  var i, mom, regex;
1248
1357
  if (this._weekdaysParseExact) {
@@ -1255,20 +1364,14 @@ var require_moment = __commonJS({
1255
1364
  this._fullWeekdaysParse = [];
1256
1365
  }
1257
1366
  for (i = 0; i < 7; i++) {
1258
- mom = createUTC([2e3, 1]).day(i);
1367
+ mom = createUTC([
1368
+ 2e3,
1369
+ 1
1370
+ ]).day(i);
1259
1371
  if (strict && !this._fullWeekdaysParse[i]) {
1260
- this._fullWeekdaysParse[i] = new RegExp(
1261
- "^" + this.weekdays(mom, "").replace(".", "\\.?") + "$",
1262
- "i"
1263
- );
1264
- this._shortWeekdaysParse[i] = new RegExp(
1265
- "^" + this.weekdaysShort(mom, "").replace(".", "\\.?") + "$",
1266
- "i"
1267
- );
1268
- this._minWeekdaysParse[i] = new RegExp(
1269
- "^" + this.weekdaysMin(mom, "").replace(".", "\\.?") + "$",
1270
- "i"
1271
- );
1372
+ this._fullWeekdaysParse[i] = new RegExp("^" + this.weekdays(mom, "").replace(".", "\\.?") + "$", "i");
1373
+ this._shortWeekdaysParse[i] = new RegExp("^" + this.weekdaysShort(mom, "").replace(".", "\\.?") + "$", "i");
1374
+ this._minWeekdaysParse[i] = new RegExp("^" + this.weekdaysMin(mom, "").replace(".", "\\.?") + "$", "i");
1272
1375
  }
1273
1376
  if (!this._weekdaysParse[i]) {
1274
1377
  regex = "^" + this.weekdays(mom, "") + "|^" + this.weekdaysShort(mom, "") + "|^" + this.weekdaysMin(mom, "");
@@ -1285,6 +1388,7 @@ var require_moment = __commonJS({
1285
1388
  }
1286
1389
  }
1287
1390
  }
1391
+ __name(localeWeekdaysParse, "localeWeekdaysParse");
1288
1392
  function getSetDayOfWeek(input) {
1289
1393
  if (!this.isValid()) {
1290
1394
  return input != null ? this : NaN;
@@ -1297,6 +1401,7 @@ var require_moment = __commonJS({
1297
1401
  return day;
1298
1402
  }
1299
1403
  }
1404
+ __name(getSetDayOfWeek, "getSetDayOfWeek");
1300
1405
  function getSetLocaleDayOfWeek(input) {
1301
1406
  if (!this.isValid()) {
1302
1407
  return input != null ? this : NaN;
@@ -1304,6 +1409,7 @@ var require_moment = __commonJS({
1304
1409
  var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
1305
1410
  return input == null ? weekday : this.add(input - weekday, "d");
1306
1411
  }
1412
+ __name(getSetLocaleDayOfWeek, "getSetLocaleDayOfWeek");
1307
1413
  function getSetISODayOfWeek(input) {
1308
1414
  if (!this.isValid()) {
1309
1415
  return input != null ? this : NaN;
@@ -1315,6 +1421,7 @@ var require_moment = __commonJS({
1315
1421
  return this.day() || 7;
1316
1422
  }
1317
1423
  }
1424
+ __name(getSetISODayOfWeek, "getSetISODayOfWeek");
1318
1425
  function weekdaysRegex(isStrict) {
1319
1426
  if (this._weekdaysParseExact) {
1320
1427
  if (!hasOwnProp(this, "_weekdaysRegex")) {
@@ -1332,6 +1439,7 @@ var require_moment = __commonJS({
1332
1439
  return this._weekdaysStrictRegex && isStrict ? this._weekdaysStrictRegex : this._weekdaysRegex;
1333
1440
  }
1334
1441
  }
1442
+ __name(weekdaysRegex, "weekdaysRegex");
1335
1443
  function weekdaysShortRegex(isStrict) {
1336
1444
  if (this._weekdaysParseExact) {
1337
1445
  if (!hasOwnProp(this, "_weekdaysRegex")) {
@@ -1349,6 +1457,7 @@ var require_moment = __commonJS({
1349
1457
  return this._weekdaysShortStrictRegex && isStrict ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex;
1350
1458
  }
1351
1459
  }
1460
+ __name(weekdaysShortRegex, "weekdaysShortRegex");
1352
1461
  function weekdaysMinRegex(isStrict) {
1353
1462
  if (this._weekdaysParseExact) {
1354
1463
  if (!hasOwnProp(this, "_weekdaysRegex")) {
@@ -1366,13 +1475,18 @@ var require_moment = __commonJS({
1366
1475
  return this._weekdaysMinStrictRegex && isStrict ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex;
1367
1476
  }
1368
1477
  }
1478
+ __name(weekdaysMinRegex, "weekdaysMinRegex");
1369
1479
  function computeWeekdaysParse() {
1370
1480
  function cmpLenRev(a, b) {
1371
1481
  return b.length - a.length;
1372
1482
  }
1483
+ __name(cmpLenRev, "cmpLenRev");
1373
1484
  var minPieces = [], shortPieces = [], longPieces = [], mixedPieces = [], i, mom, minp, shortp, longp;
1374
1485
  for (i = 0; i < 7; i++) {
1375
- mom = createUTC([2e3, 1]).day(i);
1486
+ mom = createUTC([
1487
+ 2e3,
1488
+ 1
1489
+ ]).day(i);
1376
1490
  minp = regexEscape(this.weekdaysMin(mom, ""));
1377
1491
  shortp = regexEscape(this.weekdaysShort(mom, ""));
1378
1492
  longp = regexEscape(this.weekdays(mom, ""));
@@ -1390,28 +1504,31 @@ var require_moment = __commonJS({
1390
1504
  this._weekdaysRegex = new RegExp("^(" + mixedPieces.join("|") + ")", "i");
1391
1505
  this._weekdaysShortRegex = this._weekdaysRegex;
1392
1506
  this._weekdaysMinRegex = this._weekdaysRegex;
1393
- this._weekdaysStrictRegex = new RegExp(
1394
- "^(" + longPieces.join("|") + ")",
1395
- "i"
1396
- );
1397
- this._weekdaysShortStrictRegex = new RegExp(
1398
- "^(" + shortPieces.join("|") + ")",
1399
- "i"
1400
- );
1401
- this._weekdaysMinStrictRegex = new RegExp(
1402
- "^(" + minPieces.join("|") + ")",
1403
- "i"
1404
- );
1507
+ this._weekdaysStrictRegex = new RegExp("^(" + longPieces.join("|") + ")", "i");
1508
+ this._weekdaysShortStrictRegex = new RegExp("^(" + shortPieces.join("|") + ")", "i");
1509
+ this._weekdaysMinStrictRegex = new RegExp("^(" + minPieces.join("|") + ")", "i");
1405
1510
  }
1511
+ __name(computeWeekdaysParse, "computeWeekdaysParse");
1406
1512
  function hFormat() {
1407
1513
  return this.hours() % 12 || 12;
1408
1514
  }
1515
+ __name(hFormat, "hFormat");
1409
1516
  function kFormat() {
1410
1517
  return this.hours() || 24;
1411
1518
  }
1412
- addFormatToken("H", ["HH", 2], 0, "hour");
1413
- addFormatToken("h", ["hh", 2], 0, hFormat);
1414
- addFormatToken("k", ["kk", 2], 0, kFormat);
1519
+ __name(kFormat, "kFormat");
1520
+ addFormatToken("H", [
1521
+ "HH",
1522
+ 2
1523
+ ], 0, "hour");
1524
+ addFormatToken("h", [
1525
+ "hh",
1526
+ 2
1527
+ ], 0, hFormat);
1528
+ addFormatToken("k", [
1529
+ "kk",
1530
+ 2
1531
+ ], 0, kFormat);
1415
1532
  addFormatToken("hmm", 0, 0, function() {
1416
1533
  return "" + hFormat.apply(this) + zeroFill(this.minutes(), 2);
1417
1534
  });
@@ -1426,18 +1543,16 @@ var require_moment = __commonJS({
1426
1543
  });
1427
1544
  function meridiem(token2, lowercase) {
1428
1545
  addFormatToken(token2, 0, 0, function() {
1429
- return this.localeData().meridiem(
1430
- this.hours(),
1431
- this.minutes(),
1432
- lowercase
1433
- );
1546
+ return this.localeData().meridiem(this.hours(), this.minutes(), lowercase);
1434
1547
  });
1435
1548
  }
1549
+ __name(meridiem, "meridiem");
1436
1550
  meridiem("a", true);
1437
1551
  meridiem("A", false);
1438
1552
  function matchMeridiem(isStrict, locale2) {
1439
1553
  return locale2._meridiemParse;
1440
1554
  }
1555
+ __name(matchMeridiem, "matchMeridiem");
1441
1556
  addRegexToken("a", matchMeridiem);
1442
1557
  addRegexToken("A", matchMeridiem);
1443
1558
  addRegexToken("H", match1to2, match1to2HasZero);
@@ -1450,16 +1565,28 @@ var require_moment = __commonJS({
1450
1565
  addRegexToken("hmmss", match5to6);
1451
1566
  addRegexToken("Hmm", match3to4);
1452
1567
  addRegexToken("Hmmss", match5to6);
1453
- addParseToken(["H", "HH"], HOUR);
1454
- addParseToken(["k", "kk"], function(input, array, config) {
1568
+ addParseToken([
1569
+ "H",
1570
+ "HH"
1571
+ ], HOUR);
1572
+ addParseToken([
1573
+ "k",
1574
+ "kk"
1575
+ ], function(input, array, config) {
1455
1576
  var kInput = toInt(input);
1456
1577
  array[HOUR] = kInput === 24 ? 0 : kInput;
1457
1578
  });
1458
- addParseToken(["a", "A"], function(input, array, config) {
1579
+ addParseToken([
1580
+ "a",
1581
+ "A"
1582
+ ], function(input, array, config) {
1459
1583
  config._isPm = config._locale.isPM(input);
1460
1584
  config._meridiem = input;
1461
1585
  });
1462
- addParseToken(["h", "hh"], function(input, array, config) {
1586
+ addParseToken([
1587
+ "h",
1588
+ "hh"
1589
+ ], function(input, array, config) {
1463
1590
  array[HOUR] = toInt(input);
1464
1591
  getParsingFlags(config).bigHour = true;
1465
1592
  });
@@ -1490,6 +1617,7 @@ var require_moment = __commonJS({
1490
1617
  function localeIsPM(input) {
1491
1618
  return (input + "").toLowerCase().charAt(0) === "p";
1492
1619
  }
1620
+ __name(localeIsPM, "localeIsPM");
1493
1621
  var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i, getSetHour = makeGetSet("Hours", true);
1494
1622
  function localeMeridiem(hours2, minutes2, isLower) {
1495
1623
  if (hours2 > 11) {
@@ -1498,6 +1626,7 @@ var require_moment = __commonJS({
1498
1626
  return isLower ? "am" : "AM";
1499
1627
  }
1500
1628
  }
1629
+ __name(localeMeridiem, "localeMeridiem");
1501
1630
  var baseConfig = {
1502
1631
  calendar: defaultCalendar,
1503
1632
  longDateFormat: defaultLongDateFormat,
@@ -1523,9 +1652,11 @@ var require_moment = __commonJS({
1523
1652
  }
1524
1653
  return minl;
1525
1654
  }
1655
+ __name(commonPrefix, "commonPrefix");
1526
1656
  function normalizeLocale(key) {
1527
1657
  return key ? key.toLowerCase().replace("_", "-") : key;
1528
1658
  }
1659
+ __name(normalizeLocale, "normalizeLocale");
1529
1660
  function chooseLocale(names) {
1530
1661
  var i = 0, j, next, locale2, split;
1531
1662
  while (i < names.length) {
@@ -1547,9 +1678,11 @@ var require_moment = __commonJS({
1547
1678
  }
1548
1679
  return globalLocale;
1549
1680
  }
1681
+ __name(chooseLocale, "chooseLocale");
1550
1682
  function isLocaleNameSane(name) {
1551
1683
  return !!(name && name.match("^[^/\\\\]*$"));
1552
1684
  }
1685
+ __name(isLocaleNameSane, "isLocaleNameSane");
1553
1686
  function loadLocale(name) {
1554
1687
  var oldLocale = null, aliasedRequire;
1555
1688
  if (locales[name] === void 0 && typeof module2 !== "undefined" && module2 && module2.exports && isLocaleNameSane(name)) {
@@ -1564,6 +1697,7 @@ var require_moment = __commonJS({
1564
1697
  }
1565
1698
  return locales[name];
1566
1699
  }
1700
+ __name(loadLocale, "loadLocale");
1567
1701
  function getSetGlobalLocale(key, values) {
1568
1702
  var data;
1569
1703
  if (key) {
@@ -1576,23 +1710,19 @@ var require_moment = __commonJS({
1576
1710
  globalLocale = data;
1577
1711
  } else {
1578
1712
  if (typeof console !== "undefined" && console.warn) {
1579
- console.warn(
1580
- "Locale " + key + " not found. Did you forget to load it?"
1581
- );
1713
+ console.warn("Locale " + key + " not found. Did you forget to load it?");
1582
1714
  }
1583
1715
  }
1584
1716
  }
1585
1717
  return globalLocale._abbr;
1586
1718
  }
1719
+ __name(getSetGlobalLocale, "getSetGlobalLocale");
1587
1720
  function defineLocale(name, config) {
1588
1721
  if (config !== null) {
1589
1722
  var locale2, parentConfig = baseConfig;
1590
1723
  config.abbr = name;
1591
1724
  if (locales[name] != null) {
1592
- deprecateSimple(
1593
- "defineLocaleOverride",
1594
- "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."
1595
- );
1725
+ deprecateSimple("defineLocaleOverride", "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.");
1596
1726
  parentConfig = locales[name]._config;
1597
1727
  } else if (config.parentLocale != null) {
1598
1728
  if (locales[config.parentLocale] != null) {
@@ -1626,6 +1756,7 @@ var require_moment = __commonJS({
1626
1756
  return null;
1627
1757
  }
1628
1758
  }
1759
+ __name(defineLocale, "defineLocale");
1629
1760
  function updateLocale(name, config) {
1630
1761
  if (config != null) {
1631
1762
  var locale2, tmpLocale, parentConfig = baseConfig;
@@ -1659,6 +1790,7 @@ var require_moment = __commonJS({
1659
1790
  }
1660
1791
  return locales[name];
1661
1792
  }
1793
+ __name(updateLocale, "updateLocale");
1662
1794
  function getLocale(key) {
1663
1795
  var locale2;
1664
1796
  if (key && key._locale && key._locale._abbr) {
@@ -1672,13 +1804,17 @@ var require_moment = __commonJS({
1672
1804
  if (locale2) {
1673
1805
  return locale2;
1674
1806
  }
1675
- key = [key];
1807
+ key = [
1808
+ key
1809
+ ];
1676
1810
  }
1677
1811
  return chooseLocale(key);
1678
1812
  }
1813
+ __name(getLocale, "getLocale");
1679
1814
  function listLocales() {
1680
1815
  return keys(locales);
1681
1816
  }
1817
+ __name(listLocales, "listLocales");
1682
1818
  function checkOverflow(m) {
1683
1819
  var overflow, a = m._a;
1684
1820
  if (a && getParsingFlags(m).overflow === -2) {
@@ -1696,30 +1832,102 @@ var require_moment = __commonJS({
1696
1832
  }
1697
1833
  return m;
1698
1834
  }
1835
+ __name(checkOverflow, "checkOverflow");
1699
1836
  var extendedIsoRegex = /^\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)?)?$/, basicIsoRegex = /^\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)?)?$/, tzRegex = /Z|[+-]\d\d(?::?\d\d)?/, isoDates = [
1700
- ["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
1701
- ["YYYY-MM-DD", /\d{4}-\d\d-\d\d/],
1702
- ["GGGG-[W]WW-E", /\d{4}-W\d\d-\d/],
1703
- ["GGGG-[W]WW", /\d{4}-W\d\d/, false],
1704
- ["YYYY-DDD", /\d{4}-\d{3}/],
1705
- ["YYYY-MM", /\d{4}-\d\d/, false],
1706
- ["YYYYYYMMDD", /[+-]\d{10}/],
1707
- ["YYYYMMDD", /\d{8}/],
1708
- ["GGGG[W]WWE", /\d{4}W\d{3}/],
1709
- ["GGGG[W]WW", /\d{4}W\d{2}/, false],
1710
- ["YYYYDDD", /\d{7}/],
1711
- ["YYYYMM", /\d{6}/, false],
1712
- ["YYYY", /\d{4}/, false]
1837
+ [
1838
+ "YYYYYY-MM-DD",
1839
+ /[+-]\d{6}-\d\d-\d\d/
1840
+ ],
1841
+ [
1842
+ "YYYY-MM-DD",
1843
+ /\d{4}-\d\d-\d\d/
1844
+ ],
1845
+ [
1846
+ "GGGG-[W]WW-E",
1847
+ /\d{4}-W\d\d-\d/
1848
+ ],
1849
+ [
1850
+ "GGGG-[W]WW",
1851
+ /\d{4}-W\d\d/,
1852
+ false
1853
+ ],
1854
+ [
1855
+ "YYYY-DDD",
1856
+ /\d{4}-\d{3}/
1857
+ ],
1858
+ [
1859
+ "YYYY-MM",
1860
+ /\d{4}-\d\d/,
1861
+ false
1862
+ ],
1863
+ [
1864
+ "YYYYYYMMDD",
1865
+ /[+-]\d{10}/
1866
+ ],
1867
+ [
1868
+ "YYYYMMDD",
1869
+ /\d{8}/
1870
+ ],
1871
+ [
1872
+ "GGGG[W]WWE",
1873
+ /\d{4}W\d{3}/
1874
+ ],
1875
+ [
1876
+ "GGGG[W]WW",
1877
+ /\d{4}W\d{2}/,
1878
+ false
1879
+ ],
1880
+ [
1881
+ "YYYYDDD",
1882
+ /\d{7}/
1883
+ ],
1884
+ [
1885
+ "YYYYMM",
1886
+ /\d{6}/,
1887
+ false
1888
+ ],
1889
+ [
1890
+ "YYYY",
1891
+ /\d{4}/,
1892
+ false
1893
+ ]
1713
1894
  ], isoTimes = [
1714
- ["HH:mm:ss.SSSS", /\d\d:\d\d:\d\d\.\d+/],
1715
- ["HH:mm:ss,SSSS", /\d\d:\d\d:\d\d,\d+/],
1716
- ["HH:mm:ss", /\d\d:\d\d:\d\d/],
1717
- ["HH:mm", /\d\d:\d\d/],
1718
- ["HHmmss.SSSS", /\d\d\d\d\d\d\.\d+/],
1719
- ["HHmmss,SSSS", /\d\d\d\d\d\d,\d+/],
1720
- ["HHmmss", /\d\d\d\d\d\d/],
1721
- ["HHmm", /\d\d\d\d/],
1722
- ["HH", /\d\d/]
1895
+ [
1896
+ "HH:mm:ss.SSSS",
1897
+ /\d\d:\d\d:\d\d\.\d+/
1898
+ ],
1899
+ [
1900
+ "HH:mm:ss,SSSS",
1901
+ /\d\d:\d\d:\d\d,\d+/
1902
+ ],
1903
+ [
1904
+ "HH:mm:ss",
1905
+ /\d\d:\d\d:\d\d/
1906
+ ],
1907
+ [
1908
+ "HH:mm",
1909
+ /\d\d:\d\d/
1910
+ ],
1911
+ [
1912
+ "HHmmss.SSSS",
1913
+ /\d\d\d\d\d\d\.\d+/
1914
+ ],
1915
+ [
1916
+ "HHmmss,SSSS",
1917
+ /\d\d\d\d\d\d,\d+/
1918
+ ],
1919
+ [
1920
+ "HHmmss",
1921
+ /\d\d\d\d\d\d/
1922
+ ],
1923
+ [
1924
+ "HHmm",
1925
+ /\d\d\d\d/
1926
+ ],
1927
+ [
1928
+ "HH",
1929
+ /\d\d/
1930
+ ]
1723
1931
  ], aspNetJsonRegex = /^\/?Date\((-?\d+)/i, rfc2822 = /^(?:(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}))$/, obsOffsets = {
1724
1932
  UT: 0,
1725
1933
  GMT: 0,
@@ -1777,6 +1985,7 @@ var require_moment = __commonJS({
1777
1985
  config._isValid = false;
1778
1986
  }
1779
1987
  }
1988
+ __name(configFromISO, "configFromISO");
1780
1989
  function extractFromRFC2822Strings(yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) {
1781
1990
  var result = [
1782
1991
  untruncateYear(yearStr),
@@ -1790,6 +1999,7 @@ var require_moment = __commonJS({
1790
1999
  }
1791
2000
  return result;
1792
2001
  }
2002
+ __name(extractFromRFC2822Strings, "extractFromRFC2822Strings");
1793
2003
  function untruncateYear(yearStr) {
1794
2004
  var year = parseInt(yearStr, 10);
1795
2005
  if (year <= 49) {
@@ -1799,16 +2009,14 @@ var require_moment = __commonJS({
1799
2009
  }
1800
2010
  return year;
1801
2011
  }
2012
+ __name(untruncateYear, "untruncateYear");
1802
2013
  function preprocessRFC2822(s) {
1803
2014
  return s.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, "");
1804
2015
  }
2016
+ __name(preprocessRFC2822, "preprocessRFC2822");
1805
2017
  function checkWeekday(weekdayStr, parsedInput, config) {
1806
2018
  if (weekdayStr) {
1807
- var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr), weekdayActual = new Date(
1808
- parsedInput[0],
1809
- parsedInput[1],
1810
- parsedInput[2]
1811
- ).getDay();
2019
+ var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr), weekdayActual = new Date(parsedInput[0], parsedInput[1], parsedInput[2]).getDay();
1812
2020
  if (weekdayProvided !== weekdayActual) {
1813
2021
  getParsingFlags(config).weekdayMismatch = true;
1814
2022
  config._isValid = false;
@@ -1817,6 +2025,7 @@ var require_moment = __commonJS({
1817
2025
  }
1818
2026
  return true;
1819
2027
  }
2028
+ __name(checkWeekday, "checkWeekday");
1820
2029
  function calculateOffset(obsOffset, militaryOffset, numOffset) {
1821
2030
  if (obsOffset) {
1822
2031
  return obsOffsets[obsOffset];
@@ -1827,17 +2036,11 @@ var require_moment = __commonJS({
1827
2036
  return h * 60 + m;
1828
2037
  }
1829
2038
  }
2039
+ __name(calculateOffset, "calculateOffset");
1830
2040
  function configFromRFC2822(config) {
1831
2041
  var match = rfc2822.exec(preprocessRFC2822(config._i)), parsedArray;
1832
2042
  if (match) {
1833
- parsedArray = extractFromRFC2822Strings(
1834
- match[4],
1835
- match[3],
1836
- match[2],
1837
- match[5],
1838
- match[6],
1839
- match[7]
1840
- );
2043
+ parsedArray = extractFromRFC2822Strings(match[4], match[3], match[2], match[5], match[6], match[7]);
1841
2044
  if (!checkWeekday(match[1], parsedArray, config)) {
1842
2045
  return;
1843
2046
  }
@@ -1850,6 +2053,7 @@ var require_moment = __commonJS({
1850
2053
  config._isValid = false;
1851
2054
  }
1852
2055
  }
2056
+ __name(configFromRFC2822, "configFromRFC2822");
1853
2057
  function configFromString(config) {
1854
2058
  var matched = aspNetJsonRegex.exec(config._i);
1855
2059
  if (matched !== null) {
@@ -1874,12 +2078,10 @@ var require_moment = __commonJS({
1874
2078
  hooks.createFromInputFallback(config);
1875
2079
  }
1876
2080
  }
1877
- hooks.createFromInputFallback = deprecate(
1878
- "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.",
1879
- function(config) {
1880
- config._d = /* @__PURE__ */ new Date(config._i + (config._useUTC ? " UTC" : ""));
1881
- }
1882
- );
2081
+ __name(configFromString, "configFromString");
2082
+ hooks.createFromInputFallback = deprecate("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.", function(config) {
2083
+ config._d = /* @__PURE__ */ new Date(config._i + (config._useUTC ? " UTC" : ""));
2084
+ });
1883
2085
  function defaults(a, b, c) {
1884
2086
  if (a != null) {
1885
2087
  return a;
@@ -1889,6 +2091,7 @@ var require_moment = __commonJS({
1889
2091
  }
1890
2092
  return c;
1891
2093
  }
2094
+ __name(defaults, "defaults");
1892
2095
  function currentDateArray(config) {
1893
2096
  var nowValue = new Date(hooks.now());
1894
2097
  if (config._useUTC) {
@@ -1898,8 +2101,13 @@ var require_moment = __commonJS({
1898
2101
  nowValue.getUTCDate()
1899
2102
  ];
1900
2103
  }
1901
- return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];
2104
+ return [
2105
+ nowValue.getFullYear(),
2106
+ nowValue.getMonth(),
2107
+ nowValue.getDate()
2108
+ ];
1902
2109
  }
2110
+ __name(currentDateArray, "currentDateArray");
1903
2111
  function configFromArray(config) {
1904
2112
  var i, date, input = [], currentDate, expectedWeekday, yearToUse;
1905
2113
  if (config._d) {
@@ -1928,10 +2136,7 @@ var require_moment = __commonJS({
1928
2136
  config._nextDay = true;
1929
2137
  config._a[HOUR] = 0;
1930
2138
  }
1931
- config._d = (config._useUTC ? createUTCDate : createDate).apply(
1932
- null,
1933
- input
1934
- );
2139
+ config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input);
1935
2140
  expectedWeekday = config._useUTC ? config._d.getUTCDay() : config._d.getDay();
1936
2141
  if (config._tzm != null) {
1937
2142
  config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
@@ -1943,17 +2148,14 @@ var require_moment = __commonJS({
1943
2148
  getParsingFlags(config).weekdayMismatch = true;
1944
2149
  }
1945
2150
  }
2151
+ __name(configFromArray, "configFromArray");
1946
2152
  function dayOfYearFromWeekInfo(config) {
1947
2153
  var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek;
1948
2154
  w = config._w;
1949
2155
  if (w.GG != null || w.W != null || w.E != null) {
1950
2156
  dow = 1;
1951
2157
  doy = 4;
1952
- weekYear = defaults(
1953
- w.GG,
1954
- config._a[YEAR],
1955
- weekOfYear(createLocal(), 1, 4).year
1956
- );
2158
+ weekYear = defaults(w.GG, config._a[YEAR], weekOfYear(createLocal(), 1, 4).year);
1957
2159
  week = defaults(w.W, 1);
1958
2160
  weekday = defaults(w.E, 1);
1959
2161
  if (weekday < 1 || weekday > 7) {
@@ -1989,6 +2191,7 @@ var require_moment = __commonJS({
1989
2191
  config._dayOfYear = temp.dayOfYear;
1990
2192
  }
1991
2193
  }
2194
+ __name(dayOfYearFromWeekInfo, "dayOfYearFromWeekInfo");
1992
2195
  hooks.ISO_8601 = function() {
1993
2196
  };
1994
2197
  hooks.RFC_2822 = function() {
@@ -2015,9 +2218,7 @@ var require_moment = __commonJS({
2015
2218
  if (skipped.length > 0) {
2016
2219
  getParsingFlags(config).unusedInput.push(skipped);
2017
2220
  }
2018
- string = string.slice(
2019
- string.indexOf(parsedInput) + parsedInput.length
2020
- );
2221
+ string = string.slice(string.indexOf(parsedInput) + parsedInput.length);
2021
2222
  totalParsedInputLength += parsedInput.length;
2022
2223
  }
2023
2224
  if (formatTokenFunctions[token2]) {
@@ -2040,11 +2241,7 @@ var require_moment = __commonJS({
2040
2241
  }
2041
2242
  getParsingFlags(config).parsedDateParts = config._a.slice(0);
2042
2243
  getParsingFlags(config).meridiem = config._meridiem;
2043
- config._a[HOUR] = meridiemFixWrap(
2044
- config._locale,
2045
- config._a[HOUR],
2046
- config._meridiem
2047
- );
2244
+ config._a[HOUR] = meridiemFixWrap(config._locale, config._a[HOUR], config._meridiem);
2048
2245
  era = getParsingFlags(config).era;
2049
2246
  if (era !== null) {
2050
2247
  config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]);
@@ -2052,6 +2249,7 @@ var require_moment = __commonJS({
2052
2249
  configFromArray(config);
2053
2250
  checkOverflow(config);
2054
2251
  }
2252
+ __name(configFromStringAndFormat, "configFromStringAndFormat");
2055
2253
  function meridiemFixWrap(locale2, hour, meridiem2) {
2056
2254
  var isPm;
2057
2255
  if (meridiem2 == null) {
@@ -2072,6 +2270,7 @@ var require_moment = __commonJS({
2072
2270
  return hour;
2073
2271
  }
2074
2272
  }
2273
+ __name(meridiemFixWrap, "meridiemFixWrap");
2075
2274
  function configFromStringAndArray(config) {
2076
2275
  var tempConfig, bestMoment, scoreToBeat, i, currentScore, validFormatFound, bestFormatIsValid = false, configfLen = config._f.length;
2077
2276
  if (configfLen === 0) {
@@ -2111,19 +2310,26 @@ var require_moment = __commonJS({
2111
2310
  }
2112
2311
  extend(config, bestMoment || tempConfig);
2113
2312
  }
2313
+ __name(configFromStringAndArray, "configFromStringAndArray");
2114
2314
  function configFromObject(config) {
2115
2315
  if (config._d) {
2116
2316
  return;
2117
2317
  }
2118
2318
  var i = normalizeObjectUnits(config._i), dayOrDate = i.day === void 0 ? i.date : i.day;
2119
- config._a = map(
2120
- [i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond],
2121
- function(obj) {
2122
- return obj && parseInt(obj, 10);
2123
- }
2124
- );
2319
+ config._a = map([
2320
+ i.year,
2321
+ i.month,
2322
+ dayOrDate,
2323
+ i.hour,
2324
+ i.minute,
2325
+ i.second,
2326
+ i.millisecond
2327
+ ], function(obj) {
2328
+ return obj && parseInt(obj, 10);
2329
+ });
2125
2330
  configFromArray(config);
2126
2331
  }
2332
+ __name(configFromObject, "configFromObject");
2127
2333
  function createFromConfig(config) {
2128
2334
  var res = new Moment(checkOverflow(prepareConfig(config)));
2129
2335
  if (res._nextDay) {
@@ -2132,11 +2338,14 @@ var require_moment = __commonJS({
2132
2338
  }
2133
2339
  return res;
2134
2340
  }
2341
+ __name(createFromConfig, "createFromConfig");
2135
2342
  function prepareConfig(config) {
2136
2343
  var input = config._i, format2 = config._f;
2137
2344
  config._locale = config._locale || getLocale(config._l);
2138
2345
  if (input === null || format2 === void 0 && input === "") {
2139
- return createInvalid({ nullInput: true });
2346
+ return createInvalid({
2347
+ nullInput: true
2348
+ });
2140
2349
  }
2141
2350
  if (typeof input === "string") {
2142
2351
  config._i = input = config._locale.preparse(input);
@@ -2157,6 +2366,7 @@ var require_moment = __commonJS({
2157
2366
  }
2158
2367
  return config;
2159
2368
  }
2369
+ __name(prepareConfig, "prepareConfig");
2160
2370
  function configFromInput(config) {
2161
2371
  var input = config._i;
2162
2372
  if (isUndefined(input)) {
@@ -2178,6 +2388,7 @@ var require_moment = __commonJS({
2178
2388
  hooks.createFromInputFallback(config);
2179
2389
  }
2180
2390
  }
2391
+ __name(configFromInput, "configFromInput");
2181
2392
  function createLocalOrUTC(input, format2, locale2, strict, isUTC) {
2182
2393
  var c = {};
2183
2394
  if (format2 === true || format2 === false) {
@@ -2199,30 +2410,26 @@ var require_moment = __commonJS({
2199
2410
  c._strict = strict;
2200
2411
  return createFromConfig(c);
2201
2412
  }
2413
+ __name(createLocalOrUTC, "createLocalOrUTC");
2202
2414
  function createLocal(input, format2, locale2, strict) {
2203
2415
  return createLocalOrUTC(input, format2, locale2, strict, false);
2204
2416
  }
2205
- var prototypeMin = deprecate(
2206
- "moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",
2207
- function() {
2208
- var other = createLocal.apply(null, arguments);
2209
- if (this.isValid() && other.isValid()) {
2210
- return other < this ? this : other;
2211
- } else {
2212
- return createInvalid();
2213
- }
2417
+ __name(createLocal, "createLocal");
2418
+ var prototypeMin = deprecate("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/", function() {
2419
+ var other = createLocal.apply(null, arguments);
2420
+ if (this.isValid() && other.isValid()) {
2421
+ return other < this ? this : other;
2422
+ } else {
2423
+ return createInvalid();
2214
2424
  }
2215
- ), prototypeMax = deprecate(
2216
- "moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",
2217
- function() {
2218
- var other = createLocal.apply(null, arguments);
2219
- if (this.isValid() && other.isValid()) {
2220
- return other > this ? this : other;
2221
- } else {
2222
- return createInvalid();
2223
- }
2425
+ }), prototypeMax = deprecate("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/", function() {
2426
+ var other = createLocal.apply(null, arguments);
2427
+ if (this.isValid() && other.isValid()) {
2428
+ return other > this ? this : other;
2429
+ } else {
2430
+ return createInvalid();
2224
2431
  }
2225
- );
2432
+ });
2226
2433
  function pickBy(fn, moments) {
2227
2434
  var res, i;
2228
2435
  if (moments.length === 1 && isArray(moments[0])) {
@@ -2239,17 +2446,20 @@ var require_moment = __commonJS({
2239
2446
  }
2240
2447
  return res;
2241
2448
  }
2449
+ __name(pickBy, "pickBy");
2242
2450
  function min() {
2243
2451
  var args = [].slice.call(arguments, 0);
2244
2452
  return pickBy("isBefore", args);
2245
2453
  }
2454
+ __name(min, "min");
2246
2455
  function max() {
2247
2456
  var args = [].slice.call(arguments, 0);
2248
2457
  return pickBy("isAfter", args);
2249
2458
  }
2250
- var now = function() {
2459
+ __name(max, "max");
2460
+ var now = /* @__PURE__ */ __name(function() {
2251
2461
  return Date.now ? Date.now() : +/* @__PURE__ */ new Date();
2252
- };
2462
+ }, "now");
2253
2463
  var ordering = [
2254
2464
  "year",
2255
2465
  "quarter",
@@ -2280,12 +2490,15 @@ var require_moment = __commonJS({
2280
2490
  }
2281
2491
  return true;
2282
2492
  }
2493
+ __name(isDurationValid, "isDurationValid");
2283
2494
  function isValid$1() {
2284
2495
  return this._isValid;
2285
2496
  }
2497
+ __name(isValid$1, "isValid$1");
2286
2498
  function createInvalid$1() {
2287
2499
  return createDuration(NaN);
2288
2500
  }
2501
+ __name(createInvalid$1, "createInvalid$1");
2289
2502
  function Duration(duration) {
2290
2503
  var normalizedInput = normalizeObjectUnits(duration), years2 = normalizedInput.year || 0, quarters = normalizedInput.quarter || 0, months2 = normalizedInput.month || 0, weeks2 = normalizedInput.week || normalizedInput.isoWeek || 0, days2 = normalizedInput.day || 0, hours2 = normalizedInput.hour || 0, minutes2 = normalizedInput.minute || 0, seconds2 = normalizedInput.second || 0, milliseconds2 = normalizedInput.millisecond || 0;
2291
2504
  this._isValid = isDurationValid(normalizedInput);
@@ -2298,9 +2511,11 @@ var require_moment = __commonJS({
2298
2511
  this._locale = getLocale();
2299
2512
  this._bubble();
2300
2513
  }
2514
+ __name(Duration, "Duration");
2301
2515
  function isDuration(obj) {
2302
2516
  return obj instanceof Duration;
2303
2517
  }
2518
+ __name(isDuration, "isDuration");
2304
2519
  function absRound(number) {
2305
2520
  if (number < 0) {
2306
2521
  return Math.round(-1 * number) * -1;
@@ -2308,6 +2523,7 @@ var require_moment = __commonJS({
2308
2523
  return Math.round(number);
2309
2524
  }
2310
2525
  }
2526
+ __name(absRound, "absRound");
2311
2527
  function compareArrays(array1, array2, dontConvert) {
2312
2528
  var len = Math.min(array1.length, array2.length), lengthDiff = Math.abs(array1.length - array2.length), diffs = 0, i;
2313
2529
  for (i = 0; i < len; i++) {
@@ -2317,6 +2533,7 @@ var require_moment = __commonJS({
2317
2533
  }
2318
2534
  return diffs + lengthDiff;
2319
2535
  }
2536
+ __name(compareArrays, "compareArrays");
2320
2537
  function offset(token2, separator) {
2321
2538
  addFormatToken(token2, 0, 0, function() {
2322
2539
  var offset2 = this.utcOffset(), sign2 = "+";
@@ -2327,11 +2544,15 @@ var require_moment = __commonJS({
2327
2544
  return sign2 + zeroFill(~~(offset2 / 60), 2) + separator + zeroFill(~~offset2 % 60, 2);
2328
2545
  });
2329
2546
  }
2547
+ __name(offset, "offset");
2330
2548
  offset("Z", ":");
2331
2549
  offset("ZZ", "");
2332
2550
  addRegexToken("Z", matchShortOffset);
2333
2551
  addRegexToken("ZZ", matchShortOffset);
2334
- addParseToken(["Z", "ZZ"], function(input, array, config) {
2552
+ addParseToken([
2553
+ "Z",
2554
+ "ZZ"
2555
+ ], function(input, array, config) {
2335
2556
  config._useUTC = true;
2336
2557
  config._tzm = offsetFromString(matchShortOffset, input);
2337
2558
  });
@@ -2342,10 +2563,15 @@ var require_moment = __commonJS({
2342
2563
  return null;
2343
2564
  }
2344
2565
  chunk = matches[matches.length - 1] || [];
2345
- parts = (chunk + "").match(chunkOffset) || ["-", 0, 0];
2566
+ parts = (chunk + "").match(chunkOffset) || [
2567
+ "-",
2568
+ 0,
2569
+ 0
2570
+ ];
2346
2571
  minutes2 = +(parts[1] * 60) + toInt(parts[2]);
2347
2572
  return minutes2 === 0 ? 0 : parts[0] === "+" ? minutes2 : -minutes2;
2348
2573
  }
2574
+ __name(offsetFromString, "offsetFromString");
2349
2575
  function cloneWithOffset(input, model) {
2350
2576
  var res, diff2;
2351
2577
  if (model._isUTC) {
@@ -2358,9 +2584,11 @@ var require_moment = __commonJS({
2358
2584
  return createLocal(input).local();
2359
2585
  }
2360
2586
  }
2587
+ __name(cloneWithOffset, "cloneWithOffset");
2361
2588
  function getDateOffset(m) {
2362
2589
  return -Math.round(m._d.getTimezoneOffset());
2363
2590
  }
2591
+ __name(getDateOffset, "getDateOffset");
2364
2592
  hooks.updateOffset = function() {
2365
2593
  };
2366
2594
  function getSetOffset(input, keepLocalTime, keepMinutes) {
@@ -2387,12 +2615,7 @@ var require_moment = __commonJS({
2387
2615
  }
2388
2616
  if (offset2 !== input) {
2389
2617
  if (!keepLocalTime || this._changeInProgress) {
2390
- addSubtract(
2391
- this,
2392
- createDuration(input - offset2, "m"),
2393
- 1,
2394
- false
2395
- );
2618
+ addSubtract(this, createDuration(input - offset2, "m"), 1, false);
2396
2619
  } else if (!this._changeInProgress) {
2397
2620
  this._changeInProgress = true;
2398
2621
  hooks.updateOffset(this, true);
@@ -2404,6 +2627,7 @@ var require_moment = __commonJS({
2404
2627
  return this._isUTC ? offset2 : getDateOffset(this);
2405
2628
  }
2406
2629
  }
2630
+ __name(getSetOffset, "getSetOffset");
2407
2631
  function getSetZone(input, keepLocalTime) {
2408
2632
  if (input != null) {
2409
2633
  if (typeof input !== "string") {
@@ -2415,9 +2639,11 @@ var require_moment = __commonJS({
2415
2639
  return -this.utcOffset();
2416
2640
  }
2417
2641
  }
2642
+ __name(getSetZone, "getSetZone");
2418
2643
  function setOffsetToUTC(keepLocalTime) {
2419
2644
  return this.utcOffset(0, keepLocalTime);
2420
2645
  }
2646
+ __name(setOffsetToUTC, "setOffsetToUTC");
2421
2647
  function setOffsetToLocal(keepLocalTime) {
2422
2648
  if (this._isUTC) {
2423
2649
  this.utcOffset(0, keepLocalTime);
@@ -2428,6 +2654,7 @@ var require_moment = __commonJS({
2428
2654
  }
2429
2655
  return this;
2430
2656
  }
2657
+ __name(setOffsetToLocal, "setOffsetToLocal");
2431
2658
  function setOffsetToParsedOffset() {
2432
2659
  if (this._tzm != null) {
2433
2660
  this.utcOffset(this._tzm, false, true);
@@ -2441,6 +2668,7 @@ var require_moment = __commonJS({
2441
2668
  }
2442
2669
  return this;
2443
2670
  }
2671
+ __name(setOffsetToParsedOffset, "setOffsetToParsedOffset");
2444
2672
  function hasAlignedHourOffset(input) {
2445
2673
  if (!this.isValid()) {
2446
2674
  return false;
@@ -2448,9 +2676,11 @@ var require_moment = __commonJS({
2448
2676
  input = input ? createLocal(input).utcOffset() : 0;
2449
2677
  return (this.utcOffset() - input) % 60 === 0;
2450
2678
  }
2679
+ __name(hasAlignedHourOffset, "hasAlignedHourOffset");
2451
2680
  function isDaylightSavingTime() {
2452
2681
  return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();
2453
2682
  }
2683
+ __name(isDaylightSavingTime, "isDaylightSavingTime");
2454
2684
  function isDaylightSavingTimeShifted() {
2455
2685
  if (!isUndefined(this._isDSTShifted)) {
2456
2686
  return this._isDSTShifted;
@@ -2466,15 +2696,19 @@ var require_moment = __commonJS({
2466
2696
  }
2467
2697
  return this._isDSTShifted;
2468
2698
  }
2699
+ __name(isDaylightSavingTimeShifted, "isDaylightSavingTimeShifted");
2469
2700
  function isLocal() {
2470
2701
  return this.isValid() ? !this._isUTC : false;
2471
2702
  }
2703
+ __name(isLocal, "isLocal");
2472
2704
  function isUtcOffset() {
2473
2705
  return this.isValid() ? this._isUTC : false;
2474
2706
  }
2707
+ __name(isUtcOffset, "isUtcOffset");
2475
2708
  function isUtc() {
2476
2709
  return this.isValid() ? this._isUTC && this._offset === 0 : false;
2477
2710
  }
2711
+ __name(isUtc, "isUtc");
2478
2712
  var aspNetRegex = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
2479
2713
  function createDuration(input, key) {
2480
2714
  var duration = input, match = null, sign2, ret, diffRes;
@@ -2500,7 +2734,6 @@ var require_moment = __commonJS({
2500
2734
  m: toInt(match[MINUTE]) * sign2,
2501
2735
  s: toInt(match[SECOND]) * sign2,
2502
2736
  ms: toInt(absRound(match[MILLISECOND] * 1e3)) * sign2
2503
- // the millisecond decimal point is included in the match
2504
2737
  };
2505
2738
  } else if (match = isoRegex.exec(input)) {
2506
2739
  sign2 = match[1] === "-" ? -1 : 1;
@@ -2516,10 +2749,7 @@ var require_moment = __commonJS({
2516
2749
  } else if (duration == null) {
2517
2750
  duration = {};
2518
2751
  } else if (typeof duration === "object" && ("from" in duration || "to" in duration)) {
2519
- diffRes = momentsDifference(
2520
- createLocal(duration.from),
2521
- createLocal(duration.to)
2522
- );
2752
+ diffRes = momentsDifference(createLocal(duration.from), createLocal(duration.to));
2523
2753
  duration = {};
2524
2754
  duration.ms = diffRes.milliseconds;
2525
2755
  duration.M = diffRes.months;
@@ -2533,12 +2763,14 @@ var require_moment = __commonJS({
2533
2763
  }
2534
2764
  return ret;
2535
2765
  }
2766
+ __name(createDuration, "createDuration");
2536
2767
  createDuration.fn = Duration.prototype;
2537
2768
  createDuration.invalid = createInvalid$1;
2538
2769
  function parseIso(inp, sign2) {
2539
2770
  var res = inp && parseFloat(inp.replace(",", "."));
2540
2771
  return (isNaN(res) ? 0 : res) * sign2;
2541
2772
  }
2773
+ __name(parseIso, "parseIso");
2542
2774
  function positiveMomentsDifference(base, other) {
2543
2775
  var res = {};
2544
2776
  res.months = other.month() - base.month() + (other.year() - base.year()) * 12;
@@ -2548,10 +2780,14 @@ var require_moment = __commonJS({
2548
2780
  res.milliseconds = +other - +base.clone().add(res.months, "M");
2549
2781
  return res;
2550
2782
  }
2783
+ __name(positiveMomentsDifference, "positiveMomentsDifference");
2551
2784
  function momentsDifference(base, other) {
2552
2785
  var res;
2553
2786
  if (!(base.isValid() && other.isValid())) {
2554
- return { milliseconds: 0, months: 0 };
2787
+ return {
2788
+ milliseconds: 0,
2789
+ months: 0
2790
+ };
2555
2791
  }
2556
2792
  other = cloneWithOffset(other, base);
2557
2793
  if (base.isBefore(other)) {
@@ -2563,14 +2799,12 @@ var require_moment = __commonJS({
2563
2799
  }
2564
2800
  return res;
2565
2801
  }
2802
+ __name(momentsDifference, "momentsDifference");
2566
2803
  function createAdder(direction, name) {
2567
2804
  return function(val, period) {
2568
2805
  var dur, tmp;
2569
2806
  if (period !== null && !isNaN(+period)) {
2570
- deprecateSimple(
2571
- name,
2572
- "moment()." + name + "(period, number) is deprecated. Please use moment()." + name + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
2573
- );
2807
+ deprecateSimple(name, "moment()." + name + "(period, number) is deprecated. Please use moment()." + name + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.");
2574
2808
  tmp = val;
2575
2809
  val = period;
2576
2810
  period = tmp;
@@ -2580,6 +2814,7 @@ var require_moment = __commonJS({
2580
2814
  return this;
2581
2815
  };
2582
2816
  }
2817
+ __name(createAdder, "createAdder");
2583
2818
  function addSubtract(mom, duration, isAdding, updateOffset) {
2584
2819
  var milliseconds2 = duration._milliseconds, days2 = absRound(duration._days), months2 = absRound(duration._months);
2585
2820
  if (!mom.isValid()) {
@@ -2599,13 +2834,16 @@ var require_moment = __commonJS({
2599
2834
  hooks.updateOffset(mom, days2 || months2);
2600
2835
  }
2601
2836
  }
2837
+ __name(addSubtract, "addSubtract");
2602
2838
  var add = createAdder(1, "add"), subtract = createAdder(-1, "subtract");
2603
2839
  function isString(input) {
2604
2840
  return typeof input === "string" || input instanceof String;
2605
2841
  }
2842
+ __name(isString, "isString");
2606
2843
  function isMomentInput(input) {
2607
2844
  return isMoment(input) || isDate(input) || isString(input) || isNumber(input) || isNumberOrStringArray(input) || isMomentInputObject(input) || input === null || input === void 0;
2608
2845
  }
2846
+ __name(isMomentInput, "isMomentInput");
2609
2847
  function isMomentInputObject(input) {
2610
2848
  var objectTest = isObject(input) && !isObjectEmpty(input), propertyTest = false, properties = [
2611
2849
  "years",
@@ -2639,6 +2877,7 @@ var require_moment = __commonJS({
2639
2877
  }
2640
2878
  return objectTest && propertyTest;
2641
2879
  }
2880
+ __name(isMomentInputObject, "isMomentInputObject");
2642
2881
  function isNumberOrStringArray(input) {
2643
2882
  var arrayTest = isArray(input), dataTypeTest = false;
2644
2883
  if (arrayTest) {
@@ -2648,6 +2887,7 @@ var require_moment = __commonJS({
2648
2887
  }
2649
2888
  return arrayTest && dataTypeTest;
2650
2889
  }
2890
+ __name(isNumberOrStringArray, "isNumberOrStringArray");
2651
2891
  function isCalendarSpec(input) {
2652
2892
  var objectTest = isObject(input) && !isObjectEmpty(input), propertyTest = false, properties = [
2653
2893
  "sameDay",
@@ -2663,10 +2903,12 @@ var require_moment = __commonJS({
2663
2903
  }
2664
2904
  return objectTest && propertyTest;
2665
2905
  }
2906
+ __name(isCalendarSpec, "isCalendarSpec");
2666
2907
  function getCalendarFormat(myMoment, now2) {
2667
2908
  var diff2 = myMoment.diff(now2, "days", true);
2668
2909
  return diff2 < -6 ? "sameElse" : diff2 < -1 ? "lastWeek" : diff2 < 0 ? "lastDay" : diff2 < 1 ? "sameDay" : diff2 < 2 ? "nextDay" : diff2 < 7 ? "nextWeek" : "sameElse";
2669
2910
  }
2911
+ __name(getCalendarFormat, "getCalendarFormat");
2670
2912
  function calendar$1(time, formats) {
2671
2913
  if (arguments.length === 1) {
2672
2914
  if (!arguments[0]) {
@@ -2681,13 +2923,13 @@ var require_moment = __commonJS({
2681
2923
  }
2682
2924
  }
2683
2925
  var now2 = time || createLocal(), sod = cloneWithOffset(now2, this).startOf("day"), format2 = hooks.calendarFormat(this, sod) || "sameElse", output = formats && (isFunction(formats[format2]) ? formats[format2].call(this, now2) : formats[format2]);
2684
- return this.format(
2685
- output || this.localeData().calendar(format2, this, createLocal(now2))
2686
- );
2926
+ return this.format(output || this.localeData().calendar(format2, this, createLocal(now2)));
2687
2927
  }
2928
+ __name(calendar$1, "calendar$1");
2688
2929
  function clone() {
2689
2930
  return new Moment(this);
2690
2931
  }
2932
+ __name(clone, "clone");
2691
2933
  function isAfter(input, units) {
2692
2934
  var localInput = isMoment(input) ? input : createLocal(input);
2693
2935
  if (!(this.isValid() && localInput.isValid())) {
@@ -2700,6 +2942,7 @@ var require_moment = __commonJS({
2700
2942
  return localInput.valueOf() < this.clone().startOf(units).valueOf();
2701
2943
  }
2702
2944
  }
2945
+ __name(isAfter, "isAfter");
2703
2946
  function isBefore(input, units) {
2704
2947
  var localInput = isMoment(input) ? input : createLocal(input);
2705
2948
  if (!(this.isValid() && localInput.isValid())) {
@@ -2712,6 +2955,7 @@ var require_moment = __commonJS({
2712
2955
  return this.clone().endOf(units).valueOf() < localInput.valueOf();
2713
2956
  }
2714
2957
  }
2958
+ __name(isBefore, "isBefore");
2715
2959
  function isBetween(from2, to2, units, inclusivity) {
2716
2960
  var localFrom = isMoment(from2) ? from2 : createLocal(from2), localTo = isMoment(to2) ? to2 : createLocal(to2);
2717
2961
  if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) {
@@ -2720,6 +2964,7 @@ var require_moment = __commonJS({
2720
2964
  inclusivity = inclusivity || "()";
2721
2965
  return (inclusivity[0] === "(" ? this.isAfter(localFrom, units) : !this.isBefore(localFrom, units)) && (inclusivity[1] === ")" ? this.isBefore(localTo, units) : !this.isAfter(localTo, units));
2722
2966
  }
2967
+ __name(isBetween, "isBetween");
2723
2968
  function isSame(input, units) {
2724
2969
  var localInput = isMoment(input) ? input : createLocal(input), inputMs;
2725
2970
  if (!(this.isValid() && localInput.isValid())) {
@@ -2733,12 +2978,15 @@ var require_moment = __commonJS({
2733
2978
  return this.clone().startOf(units).valueOf() <= inputMs && inputMs <= this.clone().endOf(units).valueOf();
2734
2979
  }
2735
2980
  }
2981
+ __name(isSame, "isSame");
2736
2982
  function isSameOrAfter(input, units) {
2737
2983
  return this.isSame(input, units) || this.isAfter(input, units);
2738
2984
  }
2985
+ __name(isSameOrAfter, "isSameOrAfter");
2739
2986
  function isSameOrBefore(input, units) {
2740
2987
  return this.isSame(input, units) || this.isBefore(input, units);
2741
2988
  }
2989
+ __name(isSameOrBefore, "isSameOrBefore");
2742
2990
  function diff(input, units, asFloat) {
2743
2991
  var that, zoneDelta, output;
2744
2992
  if (!this.isValid()) {
@@ -2780,6 +3028,7 @@ var require_moment = __commonJS({
2780
3028
  }
2781
3029
  return asFloat ? output : absFloor(output);
2782
3030
  }
3031
+ __name(diff, "diff");
2783
3032
  function monthDiff(a, b) {
2784
3033
  if (a.date() < b.date()) {
2785
3034
  return -monthDiff(b, a);
@@ -2794,21 +3043,20 @@ var require_moment = __commonJS({
2794
3043
  }
2795
3044
  return -(wholeMonthDiff + adjust) || 0;
2796
3045
  }
3046
+ __name(monthDiff, "monthDiff");
2797
3047
  hooks.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ";
2798
3048
  hooks.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
2799
3049
  function toString() {
2800
3050
  return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
2801
3051
  }
3052
+ __name(toString, "toString");
2802
3053
  function toISOString(keepOffset) {
2803
3054
  if (!this.isValid()) {
2804
3055
  return null;
2805
3056
  }
2806
3057
  var utc = keepOffset !== true, m = utc ? this.clone().utc() : this;
2807
3058
  if (m.year() < 0 || m.year() > 9999) {
2808
- return formatMoment(
2809
- m,
2810
- utc ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"
2811
- );
3059
+ return formatMoment(m, utc ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ");
2812
3060
  }
2813
3061
  if (isFunction(Date.prototype.toISOString)) {
2814
3062
  if (utc) {
@@ -2817,11 +3065,9 @@ var require_moment = __commonJS({
2817
3065
  return new Date(this.valueOf() + this.utcOffset() * 60 * 1e3).toISOString().replace("Z", formatMoment(m, "Z"));
2818
3066
  }
2819
3067
  }
2820
- return formatMoment(
2821
- m,
2822
- utc ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ"
2823
- );
3068
+ return formatMoment(m, utc ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ");
2824
3069
  }
3070
+ __name(toISOString, "toISOString");
2825
3071
  function inspect() {
2826
3072
  if (!this.isValid()) {
2827
3073
  return "moment.invalid(/* " + this._i + " */)";
@@ -2837,6 +3083,7 @@ var require_moment = __commonJS({
2837
3083
  suffix = zone + '[")]';
2838
3084
  return this.format(prefix + year + datetime + suffix);
2839
3085
  }
3086
+ __name(inspect, "inspect");
2840
3087
  function format(inputString) {
2841
3088
  if (!inputString) {
2842
3089
  inputString = this.isUtc() ? hooks.defaultFormatUtc : hooks.defaultFormat;
@@ -2844,26 +3091,37 @@ var require_moment = __commonJS({
2844
3091
  var output = formatMoment(this, inputString);
2845
3092
  return this.localeData().postformat(output);
2846
3093
  }
3094
+ __name(format, "format");
2847
3095
  function from(time, withoutSuffix) {
2848
3096
  if (this.isValid() && (isMoment(time) && time.isValid() || createLocal(time).isValid())) {
2849
- return createDuration({ to: this, from: time }).locale(this.locale()).humanize(!withoutSuffix);
3097
+ return createDuration({
3098
+ to: this,
3099
+ from: time
3100
+ }).locale(this.locale()).humanize(!withoutSuffix);
2850
3101
  } else {
2851
3102
  return this.localeData().invalidDate();
2852
3103
  }
2853
3104
  }
3105
+ __name(from, "from");
2854
3106
  function fromNow(withoutSuffix) {
2855
3107
  return this.from(createLocal(), withoutSuffix);
2856
3108
  }
3109
+ __name(fromNow, "fromNow");
2857
3110
  function to(time, withoutSuffix) {
2858
3111
  if (this.isValid() && (isMoment(time) && time.isValid() || createLocal(time).isValid())) {
2859
- return createDuration({ from: this, to: time }).locale(this.locale()).humanize(!withoutSuffix);
3112
+ return createDuration({
3113
+ from: this,
3114
+ to: time
3115
+ }).locale(this.locale()).humanize(!withoutSuffix);
2860
3116
  } else {
2861
3117
  return this.localeData().invalidDate();
2862
3118
  }
2863
3119
  }
3120
+ __name(to, "to");
2864
3121
  function toNow(withoutSuffix) {
2865
3122
  return this.to(createLocal(), withoutSuffix);
2866
3123
  }
3124
+ __name(toNow, "toNow");
2867
3125
  function locale(key) {
2868
3126
  var newLocaleData;
2869
3127
  if (key === void 0) {
@@ -2876,23 +3134,23 @@ var require_moment = __commonJS({
2876
3134
  return this;
2877
3135
  }
2878
3136
  }
2879
- var lang = deprecate(
2880
- "moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",
2881
- function(key) {
2882
- if (key === void 0) {
2883
- return this.localeData();
2884
- } else {
2885
- return this.locale(key);
2886
- }
3137
+ __name(locale, "locale");
3138
+ var lang = deprecate("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.", function(key) {
3139
+ if (key === void 0) {
3140
+ return this.localeData();
3141
+ } else {
3142
+ return this.locale(key);
2887
3143
  }
2888
- );
3144
+ });
2889
3145
  function localeData() {
2890
3146
  return this._locale;
2891
3147
  }
3148
+ __name(localeData, "localeData");
2892
3149
  var MS_PER_SECOND = 1e3, MS_PER_MINUTE = 60 * MS_PER_SECOND, MS_PER_HOUR = 60 * MS_PER_MINUTE, MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR;
2893
3150
  function mod$1(dividend, divisor) {
2894
3151
  return (dividend % divisor + divisor) % divisor;
2895
3152
  }
3153
+ __name(mod$1, "mod$1");
2896
3154
  function localStartOfDate(y, m, d) {
2897
3155
  if (y < 100 && y >= 0) {
2898
3156
  return new Date(y + 400, m, d) - MS_PER_400_YEARS;
@@ -2900,6 +3158,7 @@ var require_moment = __commonJS({
2900
3158
  return new Date(y, m, d).valueOf();
2901
3159
  }
2902
3160
  }
3161
+ __name(localStartOfDate, "localStartOfDate");
2903
3162
  function utcStartOfDate(y, m, d) {
2904
3163
  if (y < 100 && y >= 0) {
2905
3164
  return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS;
@@ -2907,6 +3166,7 @@ var require_moment = __commonJS({
2907
3166
  return Date.UTC(y, m, d);
2908
3167
  }
2909
3168
  }
3169
+ __name(utcStartOfDate, "utcStartOfDate");
2910
3170
  function startOf(units) {
2911
3171
  var time, startOfDate;
2912
3172
  units = normalizeUnits(units);
@@ -2919,28 +3179,16 @@ var require_moment = __commonJS({
2919
3179
  time = startOfDate(this.year(), 0, 1);
2920
3180
  break;
2921
3181
  case "quarter":
2922
- time = startOfDate(
2923
- this.year(),
2924
- this.month() - this.month() % 3,
2925
- 1
2926
- );
3182
+ time = startOfDate(this.year(), this.month() - this.month() % 3, 1);
2927
3183
  break;
2928
3184
  case "month":
2929
3185
  time = startOfDate(this.year(), this.month(), 1);
2930
3186
  break;
2931
3187
  case "week":
2932
- time = startOfDate(
2933
- this.year(),
2934
- this.month(),
2935
- this.date() - this.weekday()
2936
- );
3188
+ time = startOfDate(this.year(), this.month(), this.date() - this.weekday());
2937
3189
  break;
2938
3190
  case "isoWeek":
2939
- time = startOfDate(
2940
- this.year(),
2941
- this.month(),
2942
- this.date() - (this.isoWeekday() - 1)
2943
- );
3191
+ time = startOfDate(this.year(), this.month(), this.date() - (this.isoWeekday() - 1));
2944
3192
  break;
2945
3193
  case "day":
2946
3194
  case "date":
@@ -2948,10 +3196,7 @@ var require_moment = __commonJS({
2948
3196
  break;
2949
3197
  case "hour":
2950
3198
  time = this._d.valueOf();
2951
- time -= mod$1(
2952
- time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),
2953
- MS_PER_HOUR
2954
- );
3199
+ time -= mod$1(time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), MS_PER_HOUR);
2955
3200
  break;
2956
3201
  case "minute":
2957
3202
  time = this._d.valueOf();
@@ -2966,6 +3211,7 @@ var require_moment = __commonJS({
2966
3211
  hooks.updateOffset(this, true);
2967
3212
  return this;
2968
3213
  }
3214
+ __name(startOf, "startOf");
2969
3215
  function endOf(units) {
2970
3216
  var time, startOfDate;
2971
3217
  units = normalizeUnits(units);
@@ -2978,28 +3224,16 @@ var require_moment = __commonJS({
2978
3224
  time = startOfDate(this.year() + 1, 0, 1) - 1;
2979
3225
  break;
2980
3226
  case "quarter":
2981
- time = startOfDate(
2982
- this.year(),
2983
- this.month() - this.month() % 3 + 3,
2984
- 1
2985
- ) - 1;
3227
+ time = startOfDate(this.year(), this.month() - this.month() % 3 + 3, 1) - 1;
2986
3228
  break;
2987
3229
  case "month":
2988
3230
  time = startOfDate(this.year(), this.month() + 1, 1) - 1;
2989
3231
  break;
2990
3232
  case "week":
2991
- time = startOfDate(
2992
- this.year(),
2993
- this.month(),
2994
- this.date() - this.weekday() + 7
2995
- ) - 1;
3233
+ time = startOfDate(this.year(), this.month(), this.date() - this.weekday() + 7) - 1;
2996
3234
  break;
2997
3235
  case "isoWeek":
2998
- time = startOfDate(
2999
- this.year(),
3000
- this.month(),
3001
- this.date() - (this.isoWeekday() - 1) + 7
3002
- ) - 1;
3236
+ time = startOfDate(this.year(), this.month(), this.date() - (this.isoWeekday() - 1) + 7) - 1;
3003
3237
  break;
3004
3238
  case "day":
3005
3239
  case "date":
@@ -3007,10 +3241,7 @@ var require_moment = __commonJS({
3007
3241
  break;
3008
3242
  case "hour":
3009
3243
  time = this._d.valueOf();
3010
- time += MS_PER_HOUR - mod$1(
3011
- time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),
3012
- MS_PER_HOUR
3013
- ) - 1;
3244
+ time += MS_PER_HOUR - mod$1(time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), MS_PER_HOUR) - 1;
3014
3245
  break;
3015
3246
  case "minute":
3016
3247
  time = this._d.valueOf();
@@ -3025,15 +3256,19 @@ var require_moment = __commonJS({
3025
3256
  hooks.updateOffset(this, true);
3026
3257
  return this;
3027
3258
  }
3259
+ __name(endOf, "endOf");
3028
3260
  function valueOf() {
3029
3261
  return this._d.valueOf() - (this._offset || 0) * 6e4;
3030
3262
  }
3263
+ __name(valueOf, "valueOf");
3031
3264
  function unix() {
3032
3265
  return Math.floor(this.valueOf() / 1e3);
3033
3266
  }
3267
+ __name(unix, "unix");
3034
3268
  function toDate() {
3035
3269
  return new Date(this.valueOf());
3036
3270
  }
3271
+ __name(toDate, "toDate");
3037
3272
  function toArray() {
3038
3273
  var m = this;
3039
3274
  return [
@@ -3046,6 +3281,7 @@ var require_moment = __commonJS({
3046
3281
  m.millisecond()
3047
3282
  ];
3048
3283
  }
3284
+ __name(toArray, "toArray");
3049
3285
  function toObject() {
3050
3286
  var m = this;
3051
3287
  return {
@@ -3058,18 +3294,23 @@ var require_moment = __commonJS({
3058
3294
  milliseconds: m.milliseconds()
3059
3295
  };
3060
3296
  }
3297
+ __name(toObject, "toObject");
3061
3298
  function toJSON() {
3062
3299
  return this.isValid() ? this.toISOString() : null;
3063
3300
  }
3301
+ __name(toJSON, "toJSON");
3064
3302
  function isValid$2() {
3065
3303
  return isValid(this);
3066
3304
  }
3305
+ __name(isValid$2, "isValid$2");
3067
3306
  function parsingFlags() {
3068
3307
  return extend({}, getParsingFlags(this));
3069
3308
  }
3309
+ __name(parsingFlags, "parsingFlags");
3070
3310
  function invalidAt() {
3071
3311
  return getParsingFlags(this).overflow;
3072
3312
  }
3313
+ __name(invalidAt, "invalidAt");
3073
3314
  function creationData() {
3074
3315
  return {
3075
3316
  input: this._i,
@@ -3079,38 +3320,61 @@ var require_moment = __commonJS({
3079
3320
  strict: this._strict
3080
3321
  };
3081
3322
  }
3323
+ __name(creationData, "creationData");
3082
3324
  addFormatToken("N", 0, 0, "eraAbbr");
3083
3325
  addFormatToken("NN", 0, 0, "eraAbbr");
3084
3326
  addFormatToken("NNN", 0, 0, "eraAbbr");
3085
3327
  addFormatToken("NNNN", 0, 0, "eraName");
3086
3328
  addFormatToken("NNNNN", 0, 0, "eraNarrow");
3087
- addFormatToken("y", ["y", 1], "yo", "eraYear");
3088
- addFormatToken("y", ["yy", 2], 0, "eraYear");
3089
- addFormatToken("y", ["yyy", 3], 0, "eraYear");
3090
- addFormatToken("y", ["yyyy", 4], 0, "eraYear");
3329
+ addFormatToken("y", [
3330
+ "y",
3331
+ 1
3332
+ ], "yo", "eraYear");
3333
+ addFormatToken("y", [
3334
+ "yy",
3335
+ 2
3336
+ ], 0, "eraYear");
3337
+ addFormatToken("y", [
3338
+ "yyy",
3339
+ 3
3340
+ ], 0, "eraYear");
3341
+ addFormatToken("y", [
3342
+ "yyyy",
3343
+ 4
3344
+ ], 0, "eraYear");
3091
3345
  addRegexToken("N", matchEraAbbr);
3092
3346
  addRegexToken("NN", matchEraAbbr);
3093
3347
  addRegexToken("NNN", matchEraAbbr);
3094
3348
  addRegexToken("NNNN", matchEraName);
3095
3349
  addRegexToken("NNNNN", matchEraNarrow);
3096
- addParseToken(
3097
- ["N", "NN", "NNN", "NNNN", "NNNNN"],
3098
- function(input, array, config, token2) {
3099
- var era = config._locale.erasParse(input, token2, config._strict);
3100
- if (era) {
3101
- getParsingFlags(config).era = era;
3102
- } else {
3103
- getParsingFlags(config).invalidEra = input;
3104
- }
3350
+ addParseToken([
3351
+ "N",
3352
+ "NN",
3353
+ "NNN",
3354
+ "NNNN",
3355
+ "NNNNN"
3356
+ ], function(input, array, config, token2) {
3357
+ var era = config._locale.erasParse(input, token2, config._strict);
3358
+ if (era) {
3359
+ getParsingFlags(config).era = era;
3360
+ } else {
3361
+ getParsingFlags(config).invalidEra = input;
3105
3362
  }
3106
- );
3363
+ });
3107
3364
  addRegexToken("y", matchUnsigned);
3108
3365
  addRegexToken("yy", matchUnsigned);
3109
3366
  addRegexToken("yyy", matchUnsigned);
3110
3367
  addRegexToken("yyyy", matchUnsigned);
3111
3368
  addRegexToken("yo", matchEraYearOrdinal);
3112
- addParseToken(["y", "yy", "yyy", "yyyy"], YEAR);
3113
- addParseToken(["yo"], function(input, array, config, token2) {
3369
+ addParseToken([
3370
+ "y",
3371
+ "yy",
3372
+ "yyy",
3373
+ "yyyy"
3374
+ ], YEAR);
3375
+ addParseToken([
3376
+ "yo"
3377
+ ], function(input, array, config, token2) {
3114
3378
  var match;
3115
3379
  if (config._locale._eraYearOrdinalRegex) {
3116
3380
  match = input.match(config._locale._eraYearOrdinalRegex);
@@ -3142,6 +3406,7 @@ var require_moment = __commonJS({
3142
3406
  }
3143
3407
  return eras;
3144
3408
  }
3409
+ __name(localeEras, "localeEras");
3145
3410
  function localeErasParse(eraName, format2, strict) {
3146
3411
  var i, l, eras = this.eras(), name, abbr, narrow;
3147
3412
  eraName = eraName.toUpperCase();
@@ -3169,11 +3434,16 @@ var require_moment = __commonJS({
3169
3434
  }
3170
3435
  break;
3171
3436
  }
3172
- } else if ([name, abbr, narrow].indexOf(eraName) >= 0) {
3437
+ } else if ([
3438
+ name,
3439
+ abbr,
3440
+ narrow
3441
+ ].indexOf(eraName) >= 0) {
3173
3442
  return eras[i];
3174
3443
  }
3175
3444
  }
3176
3445
  }
3446
+ __name(localeErasParse, "localeErasParse");
3177
3447
  function localeErasConvertYear(era, year) {
3178
3448
  var dir = era.since <= era.until ? 1 : -1;
3179
3449
  if (year === void 0) {
@@ -3182,6 +3452,7 @@ var require_moment = __commonJS({
3182
3452
  return hooks(era.since).year() + (year - era.offset) * dir;
3183
3453
  }
3184
3454
  }
3455
+ __name(localeErasConvertYear, "localeErasConvertYear");
3185
3456
  function getEraName() {
3186
3457
  var i, l, val, eras = this.localeData().eras();
3187
3458
  for (i = 0, l = eras.length; i < l; ++i) {
@@ -3195,6 +3466,7 @@ var require_moment = __commonJS({
3195
3466
  }
3196
3467
  return "";
3197
3468
  }
3469
+ __name(getEraName, "getEraName");
3198
3470
  function getEraNarrow() {
3199
3471
  var i, l, val, eras = this.localeData().eras();
3200
3472
  for (i = 0, l = eras.length; i < l; ++i) {
@@ -3208,6 +3480,7 @@ var require_moment = __commonJS({
3208
3480
  }
3209
3481
  return "";
3210
3482
  }
3483
+ __name(getEraNarrow, "getEraNarrow");
3211
3484
  function getEraAbbr() {
3212
3485
  var i, l, val, eras = this.localeData().eras();
3213
3486
  for (i = 0, l = eras.length; i < l; ++i) {
@@ -3221,6 +3494,7 @@ var require_moment = __commonJS({
3221
3494
  }
3222
3495
  return "";
3223
3496
  }
3497
+ __name(getEraAbbr, "getEraAbbr");
3224
3498
  function getEraYear() {
3225
3499
  var i, l, dir, val, eras = this.localeData().eras();
3226
3500
  for (i = 0, l = eras.length; i < l; ++i) {
@@ -3232,36 +3506,44 @@ var require_moment = __commonJS({
3232
3506
  }
3233
3507
  return this.year();
3234
3508
  }
3509
+ __name(getEraYear, "getEraYear");
3235
3510
  function erasNameRegex(isStrict) {
3236
3511
  if (!hasOwnProp(this, "_erasNameRegex")) {
3237
3512
  computeErasParse.call(this);
3238
3513
  }
3239
3514
  return isStrict ? this._erasNameRegex : this._erasRegex;
3240
3515
  }
3516
+ __name(erasNameRegex, "erasNameRegex");
3241
3517
  function erasAbbrRegex(isStrict) {
3242
3518
  if (!hasOwnProp(this, "_erasAbbrRegex")) {
3243
3519
  computeErasParse.call(this);
3244
3520
  }
3245
3521
  return isStrict ? this._erasAbbrRegex : this._erasRegex;
3246
3522
  }
3523
+ __name(erasAbbrRegex, "erasAbbrRegex");
3247
3524
  function erasNarrowRegex(isStrict) {
3248
3525
  if (!hasOwnProp(this, "_erasNarrowRegex")) {
3249
3526
  computeErasParse.call(this);
3250
3527
  }
3251
3528
  return isStrict ? this._erasNarrowRegex : this._erasRegex;
3252
3529
  }
3530
+ __name(erasNarrowRegex, "erasNarrowRegex");
3253
3531
  function matchEraAbbr(isStrict, locale2) {
3254
3532
  return locale2.erasAbbrRegex(isStrict);
3255
3533
  }
3534
+ __name(matchEraAbbr, "matchEraAbbr");
3256
3535
  function matchEraName(isStrict, locale2) {
3257
3536
  return locale2.erasNameRegex(isStrict);
3258
3537
  }
3538
+ __name(matchEraName, "matchEraName");
3259
3539
  function matchEraNarrow(isStrict, locale2) {
3260
3540
  return locale2.erasNarrowRegex(isStrict);
3261
3541
  }
3542
+ __name(matchEraNarrow, "matchEraNarrow");
3262
3543
  function matchEraYearOrdinal(isStrict, locale2) {
3263
3544
  return locale2._eraYearOrdinalRegex || matchUnsigned;
3264
3545
  }
3546
+ __name(matchEraYearOrdinal, "matchEraYearOrdinal");
3265
3547
  function computeErasParse() {
3266
3548
  var abbrPieces = [], namePieces = [], narrowPieces = [], mixedPieces = [], i, l, erasName, erasAbbr, erasNarrow, eras = this.eras();
3267
3549
  for (i = 0, l = eras.length; i < l; ++i) {
@@ -3278,20 +3560,28 @@ var require_moment = __commonJS({
3278
3560
  this._erasRegex = new RegExp("^(" + mixedPieces.join("|") + ")", "i");
3279
3561
  this._erasNameRegex = new RegExp("^(" + namePieces.join("|") + ")", "i");
3280
3562
  this._erasAbbrRegex = new RegExp("^(" + abbrPieces.join("|") + ")", "i");
3281
- this._erasNarrowRegex = new RegExp(
3282
- "^(" + narrowPieces.join("|") + ")",
3283
- "i"
3284
- );
3563
+ this._erasNarrowRegex = new RegExp("^(" + narrowPieces.join("|") + ")", "i");
3285
3564
  }
3286
- addFormatToken(0, ["gg", 2], 0, function() {
3565
+ __name(computeErasParse, "computeErasParse");
3566
+ addFormatToken(0, [
3567
+ "gg",
3568
+ 2
3569
+ ], 0, function() {
3287
3570
  return this.weekYear() % 100;
3288
3571
  });
3289
- addFormatToken(0, ["GG", 2], 0, function() {
3572
+ addFormatToken(0, [
3573
+ "GG",
3574
+ 2
3575
+ ], 0, function() {
3290
3576
  return this.isoWeekYear() % 100;
3291
3577
  });
3292
3578
  function addWeekYearFormatToken(token2, getter) {
3293
- addFormatToken(0, [token2, token2.length], 0, getter);
3579
+ addFormatToken(0, [
3580
+ token2,
3581
+ token2.length
3582
+ ], 0, getter);
3294
3583
  }
3584
+ __name(addWeekYearFormatToken, "addWeekYearFormatToken");
3295
3585
  addWeekYearFormatToken("gggg", "weekYear");
3296
3586
  addWeekYearFormatToken("ggggg", "weekYear");
3297
3587
  addWeekYearFormatToken("GGGG", "isoWeekYear");
@@ -3304,49 +3594,46 @@ var require_moment = __commonJS({
3304
3594
  addRegexToken("gggg", match1to4, match4);
3305
3595
  addRegexToken("GGGGG", match1to6, match6);
3306
3596
  addRegexToken("ggggg", match1to6, match6);
3307
- addWeekParseToken(
3308
- ["gggg", "ggggg", "GGGG", "GGGGG"],
3309
- function(input, week, config, token2) {
3310
- week[token2.substr(0, 2)] = toInt(input);
3311
- }
3312
- );
3313
- addWeekParseToken(["gg", "GG"], function(input, week, config, token2) {
3597
+ addWeekParseToken([
3598
+ "gggg",
3599
+ "ggggg",
3600
+ "GGGG",
3601
+ "GGGGG"
3602
+ ], function(input, week, config, token2) {
3603
+ week[token2.substr(0, 2)] = toInt(input);
3604
+ });
3605
+ addWeekParseToken([
3606
+ "gg",
3607
+ "GG"
3608
+ ], function(input, week, config, token2) {
3314
3609
  week[token2] = hooks.parseTwoDigitYear(input);
3315
3610
  });
3316
3611
  function getSetWeekYear(input) {
3317
- return getSetWeekYearHelper.call(
3318
- this,
3319
- input,
3320
- this.week(),
3321
- this.weekday() + this.localeData()._week.dow,
3322
- this.localeData()._week.dow,
3323
- this.localeData()._week.doy
3324
- );
3612
+ return getSetWeekYearHelper.call(this, input, this.week(), this.weekday() + this.localeData()._week.dow, this.localeData()._week.dow, this.localeData()._week.doy);
3325
3613
  }
3614
+ __name(getSetWeekYear, "getSetWeekYear");
3326
3615
  function getSetISOWeekYear(input) {
3327
- return getSetWeekYearHelper.call(
3328
- this,
3329
- input,
3330
- this.isoWeek(),
3331
- this.isoWeekday(),
3332
- 1,
3333
- 4
3334
- );
3616
+ return getSetWeekYearHelper.call(this, input, this.isoWeek(), this.isoWeekday(), 1, 4);
3335
3617
  }
3618
+ __name(getSetISOWeekYear, "getSetISOWeekYear");
3336
3619
  function getISOWeeksInYear() {
3337
3620
  return weeksInYear(this.year(), 1, 4);
3338
3621
  }
3622
+ __name(getISOWeeksInYear, "getISOWeeksInYear");
3339
3623
  function getISOWeeksInISOWeekYear() {
3340
3624
  return weeksInYear(this.isoWeekYear(), 1, 4);
3341
3625
  }
3626
+ __name(getISOWeeksInISOWeekYear, "getISOWeeksInISOWeekYear");
3342
3627
  function getWeeksInYear() {
3343
3628
  var weekInfo = this.localeData()._week;
3344
3629
  return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
3345
3630
  }
3631
+ __name(getWeeksInYear, "getWeeksInYear");
3346
3632
  function getWeeksInWeekYear() {
3347
3633
  var weekInfo = this.localeData()._week;
3348
3634
  return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy);
3349
3635
  }
3636
+ __name(getWeeksInWeekYear, "getWeeksInWeekYear");
3350
3637
  function getSetWeekYearHelper(input, week, weekday, dow, doy) {
3351
3638
  var weeksTarget;
3352
3639
  if (input == null) {
@@ -3359,6 +3646,7 @@ var require_moment = __commonJS({
3359
3646
  return setWeekAll.call(this, input, week, weekday, dow, doy);
3360
3647
  }
3361
3648
  }
3649
+ __name(getSetWeekYearHelper, "getSetWeekYearHelper");
3362
3650
  function setWeekAll(weekYear, week, weekday, dow, doy) {
3363
3651
  var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy), date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);
3364
3652
  this.year(date.getUTCFullYear());
@@ -3366,6 +3654,7 @@ var require_moment = __commonJS({
3366
3654
  this.date(date.getUTCDate());
3367
3655
  return this;
3368
3656
  }
3657
+ __name(setWeekAll, "setWeekAll");
3369
3658
  addFormatToken("Q", 0, "Qo", "quarter");
3370
3659
  addRegexToken("Q", match1);
3371
3660
  addParseToken("Q", function(input, array) {
@@ -3374,62 +3663,110 @@ var require_moment = __commonJS({
3374
3663
  function getSetQuarter(input) {
3375
3664
  return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3);
3376
3665
  }
3377
- addFormatToken("D", ["DD", 2], "Do", "date");
3666
+ __name(getSetQuarter, "getSetQuarter");
3667
+ addFormatToken("D", [
3668
+ "DD",
3669
+ 2
3670
+ ], "Do", "date");
3378
3671
  addRegexToken("D", match1to2, match1to2NoLeadingZero);
3379
3672
  addRegexToken("DD", match1to2, match2);
3380
3673
  addRegexToken("Do", function(isStrict, locale2) {
3381
3674
  return isStrict ? locale2._dayOfMonthOrdinalParse || locale2._ordinalParse : locale2._dayOfMonthOrdinalParseLenient;
3382
3675
  });
3383
- addParseToken(["D", "DD"], DATE);
3676
+ addParseToken([
3677
+ "D",
3678
+ "DD"
3679
+ ], DATE);
3384
3680
  addParseToken("Do", function(input, array) {
3385
3681
  array[DATE] = toInt(input.match(match1to2)[0]);
3386
3682
  });
3387
3683
  var getSetDayOfMonth = makeGetSet("Date", true);
3388
- addFormatToken("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
3684
+ addFormatToken("DDD", [
3685
+ "DDDD",
3686
+ 3
3687
+ ], "DDDo", "dayOfYear");
3389
3688
  addRegexToken("DDD", match1to3);
3390
3689
  addRegexToken("DDDD", match3);
3391
- addParseToken(["DDD", "DDDD"], function(input, array, config) {
3690
+ addParseToken([
3691
+ "DDD",
3692
+ "DDDD"
3693
+ ], function(input, array, config) {
3392
3694
  config._dayOfYear = toInt(input);
3393
3695
  });
3394
3696
  function getSetDayOfYear(input) {
3395
- var dayOfYear = Math.round(
3396
- (this.clone().startOf("day") - this.clone().startOf("year")) / 864e5
3397
- ) + 1;
3697
+ var dayOfYear = Math.round((this.clone().startOf("day") - this.clone().startOf("year")) / 864e5) + 1;
3398
3698
  return input == null ? dayOfYear : this.add(input - dayOfYear, "d");
3399
3699
  }
3400
- addFormatToken("m", ["mm", 2], 0, "minute");
3700
+ __name(getSetDayOfYear, "getSetDayOfYear");
3701
+ addFormatToken("m", [
3702
+ "mm",
3703
+ 2
3704
+ ], 0, "minute");
3401
3705
  addRegexToken("m", match1to2, match1to2HasZero);
3402
3706
  addRegexToken("mm", match1to2, match2);
3403
- addParseToken(["m", "mm"], MINUTE);
3707
+ addParseToken([
3708
+ "m",
3709
+ "mm"
3710
+ ], MINUTE);
3404
3711
  var getSetMinute = makeGetSet("Minutes", false);
3405
- addFormatToken("s", ["ss", 2], 0, "second");
3712
+ addFormatToken("s", [
3713
+ "ss",
3714
+ 2
3715
+ ], 0, "second");
3406
3716
  addRegexToken("s", match1to2, match1to2HasZero);
3407
3717
  addRegexToken("ss", match1to2, match2);
3408
- addParseToken(["s", "ss"], SECOND);
3718
+ addParseToken([
3719
+ "s",
3720
+ "ss"
3721
+ ], SECOND);
3409
3722
  var getSetSecond = makeGetSet("Seconds", false);
3410
3723
  addFormatToken("S", 0, 0, function() {
3411
3724
  return ~~(this.millisecond() / 100);
3412
3725
  });
3413
- addFormatToken(0, ["SS", 2], 0, function() {
3726
+ addFormatToken(0, [
3727
+ "SS",
3728
+ 2
3729
+ ], 0, function() {
3414
3730
  return ~~(this.millisecond() / 10);
3415
3731
  });
3416
- addFormatToken(0, ["SSS", 3], 0, "millisecond");
3417
- addFormatToken(0, ["SSSS", 4], 0, function() {
3732
+ addFormatToken(0, [
3733
+ "SSS",
3734
+ 3
3735
+ ], 0, "millisecond");
3736
+ addFormatToken(0, [
3737
+ "SSSS",
3738
+ 4
3739
+ ], 0, function() {
3418
3740
  return this.millisecond() * 10;
3419
3741
  });
3420
- addFormatToken(0, ["SSSSS", 5], 0, function() {
3742
+ addFormatToken(0, [
3743
+ "SSSSS",
3744
+ 5
3745
+ ], 0, function() {
3421
3746
  return this.millisecond() * 100;
3422
3747
  });
3423
- addFormatToken(0, ["SSSSSS", 6], 0, function() {
3748
+ addFormatToken(0, [
3749
+ "SSSSSS",
3750
+ 6
3751
+ ], 0, function() {
3424
3752
  return this.millisecond() * 1e3;
3425
3753
  });
3426
- addFormatToken(0, ["SSSSSSS", 7], 0, function() {
3754
+ addFormatToken(0, [
3755
+ "SSSSSSS",
3756
+ 7
3757
+ ], 0, function() {
3427
3758
  return this.millisecond() * 1e4;
3428
3759
  });
3429
- addFormatToken(0, ["SSSSSSSS", 8], 0, function() {
3760
+ addFormatToken(0, [
3761
+ "SSSSSSSS",
3762
+ 8
3763
+ ], 0, function() {
3430
3764
  return this.millisecond() * 1e5;
3431
3765
  });
3432
- addFormatToken(0, ["SSSSSSSSS", 9], 0, function() {
3766
+ addFormatToken(0, [
3767
+ "SSSSSSSSS",
3768
+ 9
3769
+ ], 0, function() {
3433
3770
  return this.millisecond() * 1e6;
3434
3771
  });
3435
3772
  addRegexToken("S", match1to3, match1);
@@ -3442,6 +3779,7 @@ var require_moment = __commonJS({
3442
3779
  function parseMs(input, array) {
3443
3780
  array[MILLISECOND] = toInt(("0." + input) * 1e3);
3444
3781
  }
3782
+ __name(parseMs, "parseMs");
3445
3783
  for (token = "S"; token.length <= 9; token += "S") {
3446
3784
  addParseToken(token, parseMs);
3447
3785
  }
@@ -3451,9 +3789,11 @@ var require_moment = __commonJS({
3451
3789
  function getZoneAbbr() {
3452
3790
  return this._isUTC ? "UTC" : "";
3453
3791
  }
3792
+ __name(getZoneAbbr, "getZoneAbbr");
3454
3793
  function getZoneName() {
3455
3794
  return this._isUTC ? "Coordinated Universal Time" : "";
3456
3795
  }
3796
+ __name(getZoneName, "getZoneName");
3457
3797
  var proto = Moment.prototype;
3458
3798
  proto.add = add;
3459
3799
  proto.calendar = calendar$1;
@@ -3536,35 +3876,23 @@ var require_moment = __commonJS({
3536
3876
  proto.isUTC = isUtc;
3537
3877
  proto.zoneAbbr = getZoneAbbr;
3538
3878
  proto.zoneName = getZoneName;
3539
- proto.dates = deprecate(
3540
- "dates accessor is deprecated. Use date instead.",
3541
- getSetDayOfMonth
3542
- );
3543
- proto.months = deprecate(
3544
- "months accessor is deprecated. Use month instead",
3545
- getSetMonth
3546
- );
3547
- proto.years = deprecate(
3548
- "years accessor is deprecated. Use year instead",
3549
- getSetYear
3550
- );
3551
- proto.zone = deprecate(
3552
- "moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",
3553
- getSetZone
3554
- );
3555
- proto.isDSTShifted = deprecate(
3556
- "isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",
3557
- isDaylightSavingTimeShifted
3558
- );
3879
+ proto.dates = deprecate("dates accessor is deprecated. Use date instead.", getSetDayOfMonth);
3880
+ proto.months = deprecate("months accessor is deprecated. Use month instead", getSetMonth);
3881
+ proto.years = deprecate("years accessor is deprecated. Use year instead", getSetYear);
3882
+ proto.zone = deprecate("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/", getSetZone);
3883
+ proto.isDSTShifted = deprecate("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information", isDaylightSavingTimeShifted);
3559
3884
  function createUnix(input) {
3560
3885
  return createLocal(input * 1e3);
3561
3886
  }
3887
+ __name(createUnix, "createUnix");
3562
3888
  function createInZone() {
3563
3889
  return createLocal.apply(null, arguments).parseZone();
3564
3890
  }
3891
+ __name(createInZone, "createInZone");
3565
3892
  function preParsePostFormat(string) {
3566
3893
  return string;
3567
3894
  }
3895
+ __name(preParsePostFormat, "preParsePostFormat");
3568
3896
  var proto$1 = Locale.prototype;
3569
3897
  proto$1.calendar = calendar;
3570
3898
  proto$1.longDateFormat = longDateFormat;
@@ -3602,6 +3930,7 @@ var require_moment = __commonJS({
3602
3930
  var locale2 = getLocale(), utc = createUTC().set(setter, index);
3603
3931
  return locale2[field](utc, format2);
3604
3932
  }
3933
+ __name(get$1, "get$1");
3605
3934
  function listMonthsImpl(format2, index, field) {
3606
3935
  if (isNumber(format2)) {
3607
3936
  index = format2;
@@ -3617,6 +3946,7 @@ var require_moment = __commonJS({
3617
3946
  }
3618
3947
  return out;
3619
3948
  }
3949
+ __name(listMonthsImpl, "listMonthsImpl");
3620
3950
  function listWeekdaysImpl(localeSorted, format2, index, field) {
3621
3951
  if (typeof localeSorted === "boolean") {
3622
3952
  if (isNumber(format2)) {
@@ -3643,21 +3973,27 @@ var require_moment = __commonJS({
3643
3973
  }
3644
3974
  return out;
3645
3975
  }
3976
+ __name(listWeekdaysImpl, "listWeekdaysImpl");
3646
3977
  function listMonths(format2, index) {
3647
3978
  return listMonthsImpl(format2, index, "months");
3648
3979
  }
3980
+ __name(listMonths, "listMonths");
3649
3981
  function listMonthsShort(format2, index) {
3650
3982
  return listMonthsImpl(format2, index, "monthsShort");
3651
3983
  }
3984
+ __name(listMonthsShort, "listMonthsShort");
3652
3985
  function listWeekdays(localeSorted, format2, index) {
3653
3986
  return listWeekdaysImpl(localeSorted, format2, index, "weekdays");
3654
3987
  }
3988
+ __name(listWeekdays, "listWeekdays");
3655
3989
  function listWeekdaysShort(localeSorted, format2, index) {
3656
3990
  return listWeekdaysImpl(localeSorted, format2, index, "weekdaysShort");
3657
3991
  }
3992
+ __name(listWeekdaysShort, "listWeekdaysShort");
3658
3993
  function listWeekdaysMin(localeSorted, format2, index) {
3659
3994
  return listWeekdaysImpl(localeSorted, format2, index, "weekdaysMin");
3660
3995
  }
3996
+ __name(listWeekdaysMin, "listWeekdaysMin");
3661
3997
  getSetGlobalLocale("en", {
3662
3998
  eras: [
3663
3999
  {
@@ -3678,19 +4014,13 @@ var require_moment = __commonJS({
3678
4014
  }
3679
4015
  ],
3680
4016
  dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
3681
- ordinal: function(number) {
4017
+ ordinal: /* @__PURE__ */ __name(function(number) {
3682
4018
  var b = number % 10, output = toInt(number % 100 / 10) === 1 ? "th" : b === 1 ? "st" : b === 2 ? "nd" : b === 3 ? "rd" : "th";
3683
4019
  return number + output;
3684
- }
4020
+ }, "ordinal")
3685
4021
  });
3686
- hooks.lang = deprecate(
3687
- "moment.lang is deprecated. Use moment.locale instead.",
3688
- getSetGlobalLocale
3689
- );
3690
- hooks.langData = deprecate(
3691
- "moment.langData is deprecated. Use moment.localeData instead.",
3692
- getLocale
3693
- );
4022
+ hooks.lang = deprecate("moment.lang is deprecated. Use moment.locale instead.", getSetGlobalLocale);
4023
+ hooks.langData = deprecate("moment.langData is deprecated. Use moment.localeData instead.", getLocale);
3694
4024
  var mathAbs = Math.abs;
3695
4025
  function abs() {
3696
4026
  var data = this._data;
@@ -3705,6 +4035,7 @@ var require_moment = __commonJS({
3705
4035
  data.years = mathAbs(data.years);
3706
4036
  return this;
3707
4037
  }
4038
+ __name(abs, "abs");
3708
4039
  function addSubtract$1(duration, input, value, direction) {
3709
4040
  var other = createDuration(input, value);
3710
4041
  duration._milliseconds += direction * other._milliseconds;
@@ -3712,12 +4043,15 @@ var require_moment = __commonJS({
3712
4043
  duration._months += direction * other._months;
3713
4044
  return duration._bubble();
3714
4045
  }
4046
+ __name(addSubtract$1, "addSubtract$1");
3715
4047
  function add$1(input, value) {
3716
4048
  return addSubtract$1(this, input, value, 1);
3717
4049
  }
4050
+ __name(add$1, "add$1");
3718
4051
  function subtract$1(input, value) {
3719
4052
  return addSubtract$1(this, input, value, -1);
3720
4053
  }
4054
+ __name(subtract$1, "subtract$1");
3721
4055
  function absCeil(number) {
3722
4056
  if (number < 0) {
3723
4057
  return Math.floor(number);
@@ -3725,6 +4059,7 @@ var require_moment = __commonJS({
3725
4059
  return Math.ceil(number);
3726
4060
  }
3727
4061
  }
4062
+ __name(absCeil, "absCeil");
3728
4063
  function bubble() {
3729
4064
  var milliseconds2 = this._milliseconds, days2 = this._days, months2 = this._months, data = this._data, seconds2, minutes2, hours2, years2, monthsFromDays;
3730
4065
  if (!(milliseconds2 >= 0 && days2 >= 0 && months2 >= 0 || milliseconds2 <= 0 && days2 <= 0 && months2 <= 0)) {
@@ -3750,12 +4085,15 @@ var require_moment = __commonJS({
3750
4085
  data.years = years2;
3751
4086
  return this;
3752
4087
  }
4088
+ __name(bubble, "bubble");
3753
4089
  function daysToMonths(days2) {
3754
4090
  return days2 * 4800 / 146097;
3755
4091
  }
4092
+ __name(daysToMonths, "daysToMonths");
3756
4093
  function monthsToDays(months2) {
3757
4094
  return months2 * 146097 / 4800;
3758
4095
  }
4096
+ __name(monthsToDays, "monthsToDays");
3759
4097
  function as(units) {
3760
4098
  if (!this.isValid()) {
3761
4099
  return NaN;
@@ -3793,58 +4131,95 @@ var require_moment = __commonJS({
3793
4131
  }
3794
4132
  }
3795
4133
  }
4134
+ __name(as, "as");
3796
4135
  function makeAs(alias) {
3797
4136
  return function() {
3798
4137
  return this.as(alias);
3799
4138
  };
3800
4139
  }
4140
+ __name(makeAs, "makeAs");
3801
4141
  var asMilliseconds = makeAs("ms"), asSeconds = makeAs("s"), asMinutes = makeAs("m"), asHours = makeAs("h"), asDays = makeAs("d"), asWeeks = makeAs("w"), asMonths = makeAs("M"), asQuarters = makeAs("Q"), asYears = makeAs("y"), valueOf$1 = asMilliseconds;
3802
4142
  function clone$1() {
3803
4143
  return createDuration(this);
3804
4144
  }
4145
+ __name(clone$1, "clone$1");
3805
4146
  function get$2(units) {
3806
4147
  units = normalizeUnits(units);
3807
4148
  return this.isValid() ? this[units + "s"]() : NaN;
3808
4149
  }
4150
+ __name(get$2, "get$2");
3809
4151
  function makeGetter(name) {
3810
4152
  return function() {
3811
4153
  return this.isValid() ? this._data[name] : NaN;
3812
4154
  };
3813
4155
  }
4156
+ __name(makeGetter, "makeGetter");
3814
4157
  var milliseconds = makeGetter("milliseconds"), seconds = makeGetter("seconds"), minutes = makeGetter("minutes"), hours = makeGetter("hours"), days = makeGetter("days"), months = makeGetter("months"), years = makeGetter("years");
3815
4158
  function weeks() {
3816
4159
  return absFloor(this.days() / 7);
3817
4160
  }
4161
+ __name(weeks, "weeks");
3818
4162
  var round = Math.round, thresholds = {
3819
4163
  ss: 44,
3820
- // a few seconds to seconds
3821
4164
  s: 45,
3822
- // seconds to minute
3823
4165
  m: 45,
3824
- // minutes to hour
3825
4166
  h: 22,
3826
- // hours to day
3827
4167
  d: 26,
3828
- // days to month/week
3829
4168
  w: null,
3830
- // weeks to month
3831
4169
  M: 11
3832
- // months to year
3833
4170
  };
3834
4171
  function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale2) {
3835
4172
  return locale2.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
3836
4173
  }
4174
+ __name(substituteTimeAgo, "substituteTimeAgo");
3837
4175
  function relativeTime$1(posNegDuration, withoutSuffix, thresholds2, locale2) {
3838
- var duration = createDuration(posNegDuration).abs(), seconds2 = round(duration.as("s")), minutes2 = round(duration.as("m")), hours2 = round(duration.as("h")), days2 = round(duration.as("d")), months2 = round(duration.as("M")), weeks2 = round(duration.as("w")), years2 = round(duration.as("y")), a = seconds2 <= thresholds2.ss && ["s", seconds2] || seconds2 < thresholds2.s && ["ss", seconds2] || minutes2 <= 1 && ["m"] || minutes2 < thresholds2.m && ["mm", minutes2] || hours2 <= 1 && ["h"] || hours2 < thresholds2.h && ["hh", hours2] || days2 <= 1 && ["d"] || days2 < thresholds2.d && ["dd", days2];
4176
+ var duration = createDuration(posNegDuration).abs(), seconds2 = round(duration.as("s")), minutes2 = round(duration.as("m")), hours2 = round(duration.as("h")), days2 = round(duration.as("d")), months2 = round(duration.as("M")), weeks2 = round(duration.as("w")), years2 = round(duration.as("y")), a = seconds2 <= thresholds2.ss && [
4177
+ "s",
4178
+ seconds2
4179
+ ] || seconds2 < thresholds2.s && [
4180
+ "ss",
4181
+ seconds2
4182
+ ] || minutes2 <= 1 && [
4183
+ "m"
4184
+ ] || minutes2 < thresholds2.m && [
4185
+ "mm",
4186
+ minutes2
4187
+ ] || hours2 <= 1 && [
4188
+ "h"
4189
+ ] || hours2 < thresholds2.h && [
4190
+ "hh",
4191
+ hours2
4192
+ ] || days2 <= 1 && [
4193
+ "d"
4194
+ ] || days2 < thresholds2.d && [
4195
+ "dd",
4196
+ days2
4197
+ ];
3839
4198
  if (thresholds2.w != null) {
3840
- a = a || weeks2 <= 1 && ["w"] || weeks2 < thresholds2.w && ["ww", weeks2];
4199
+ a = a || weeks2 <= 1 && [
4200
+ "w"
4201
+ ] || weeks2 < thresholds2.w && [
4202
+ "ww",
4203
+ weeks2
4204
+ ];
3841
4205
  }
3842
- a = a || months2 <= 1 && ["M"] || months2 < thresholds2.M && ["MM", months2] || years2 <= 1 && ["y"] || ["yy", years2];
4206
+ a = a || months2 <= 1 && [
4207
+ "M"
4208
+ ] || months2 < thresholds2.M && [
4209
+ "MM",
4210
+ months2
4211
+ ] || years2 <= 1 && [
4212
+ "y"
4213
+ ] || [
4214
+ "yy",
4215
+ years2
4216
+ ];
3843
4217
  a[2] = withoutSuffix;
3844
4218
  a[3] = +posNegDuration > 0;
3845
4219
  a[4] = locale2;
3846
4220
  return substituteTimeAgo.apply(null, a);
3847
4221
  }
4222
+ __name(relativeTime$1, "relativeTime$1");
3848
4223
  function getSetRelativeTimeRounding(roundingFunction) {
3849
4224
  if (roundingFunction === void 0) {
3850
4225
  return round;
@@ -3855,6 +4230,7 @@ var require_moment = __commonJS({
3855
4230
  }
3856
4231
  return false;
3857
4232
  }
4233
+ __name(getSetRelativeTimeRounding, "getSetRelativeTimeRounding");
3858
4234
  function getSetRelativeTimeThreshold(threshold, limit) {
3859
4235
  if (thresholds[threshold] === void 0) {
3860
4236
  return false;
@@ -3868,6 +4244,7 @@ var require_moment = __commonJS({
3868
4244
  }
3869
4245
  return true;
3870
4246
  }
4247
+ __name(getSetRelativeTimeThreshold, "getSetRelativeTimeThreshold");
3871
4248
  function humanize(argWithSuffix, argThresholds) {
3872
4249
  if (!this.isValid()) {
3873
4250
  return this.localeData().invalidDate();
@@ -3893,10 +4270,12 @@ var require_moment = __commonJS({
3893
4270
  }
3894
4271
  return locale2.postformat(output);
3895
4272
  }
4273
+ __name(humanize, "humanize");
3896
4274
  var abs$1 = Math.abs;
3897
4275
  function sign(x) {
3898
4276
  return (x > 0) - (x < 0) || +x;
3899
4277
  }
4278
+ __name(sign, "sign");
3900
4279
  function toISOString$1() {
3901
4280
  if (!this.isValid()) {
3902
4281
  return this.localeData().invalidDate();
@@ -3918,6 +4297,7 @@ var require_moment = __commonJS({
3918
4297
  hmsSign = sign(this._milliseconds) !== sign(total) ? "-" : "";
3919
4298
  return totalSign + "P" + (years2 ? ymSign + years2 + "Y" : "") + (months2 ? ymSign + months2 + "M" : "") + (days2 ? daysSign + days2 + "D" : "") + (hours2 || minutes2 || seconds2 ? "T" : "") + (hours2 ? hmsSign + hours2 + "H" : "") + (minutes2 ? hmsSign + minutes2 + "M" : "") + (seconds2 ? hmsSign + s + "S" : "");
3920
4299
  }
4300
+ __name(toISOString$1, "toISOString$1");
3921
4301
  var proto$2 = Duration.prototype;
3922
4302
  proto$2.isValid = isValid$1;
3923
4303
  proto$2.abs = abs;
@@ -3951,10 +4331,7 @@ var require_moment = __commonJS({
3951
4331
  proto$2.toJSON = toISOString$1;
3952
4332
  proto$2.locale = locale;
3953
4333
  proto$2.localeData = localeData;
3954
- proto$2.toIsoString = deprecate(
3955
- "toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",
3956
- toISOString$1
3957
- );
4334
+ proto$2.toIsoString = deprecate("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)", toISOString$1);
3958
4335
  proto$2.lang = lang;
3959
4336
  addFormatToken("X", 0, 0, "unix");
3960
4337
  addFormatToken("x", 0, 0, "valueOf");
@@ -3997,23 +4374,14 @@ var require_moment = __commonJS({
3997
4374
  hooks.prototype = proto;
3998
4375
  hooks.HTML5_FMT = {
3999
4376
  DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
4000
- // <input type="datetime-local" />
4001
4377
  DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss",
4002
- // <input type="datetime-local" step="1" />
4003
4378
  DATETIME_LOCAL_MS: "YYYY-MM-DDTHH:mm:ss.SSS",
4004
- // <input type="datetime-local" step="0.001" />
4005
4379
  DATE: "YYYY-MM-DD",
4006
- // <input type="date" />
4007
4380
  TIME: "HH:mm",
4008
- // <input type="time" />
4009
4381
  TIME_SECONDS: "HH:mm:ss",
4010
- // <input type="time" step="1" />
4011
4382
  TIME_MS: "HH:mm:ss.SSS",
4012
- // <input type="time" step="0.001" />
4013
4383
  WEEK: "GGGG-[W]WW",
4014
- // <input type="week" />
4015
4384
  MONTH: "YYYY-MM"
4016
- // <input type="month" />
4017
4385
  };
4018
4386
  return hooks;
4019
4387
  });
@@ -4037,37 +4405,21 @@ var import_colorette = require("colorette");
4037
4405
  function formatMinecraftColorCode(text) {
4038
4406
  const ansiColors = {
4039
4407
  "0": "\x1B[30m",
4040
- // Black
4041
4408
  "1": "\x1B[34m",
4042
- // Dark Blue
4043
4409
  "2": "\x1B[32m",
4044
- // Dark Green
4045
4410
  "3": "\x1B[36m",
4046
- // Dark Aqua
4047
4411
  "4": "\x1B[31m",
4048
- // Dark Red
4049
4412
  "5": "\x1B[35m",
4050
- // Dark Purple
4051
4413
  "6": "\x1B[33m",
4052
- // Gold
4053
4414
  "7": "\x1B[37m",
4054
- // Gray
4055
4415
  "8": "\x1B[90m",
4056
- // Dark Gray
4057
4416
  "9": "\x1B[94m",
4058
- // Blue
4059
4417
  a: "\x1B[92m",
4060
- // Green
4061
4418
  b: "\x1B[96m",
4062
- // Aqua
4063
4419
  c: "\x1B[91m",
4064
- // Red
4065
4420
  d: "\x1B[95m",
4066
- // Light Purple
4067
4421
  e: "\x1B[93m",
4068
- // Yellow
4069
4422
  f: "\x1B[97m",
4070
- // White
4071
4423
  r: "\x1B[0m"
4072
4424
  // Reset
4073
4425
  };
@@ -4077,123 +4429,111 @@ function formatMinecraftColorCode(text) {
4077
4429
  return ansiColors[code] || "";
4078
4430
  }) + "\x1B[0m";
4079
4431
  }
4432
+ __name(formatMinecraftColorCode, "formatMinecraftColorCode");
4080
4433
 
4081
4434
  // src/logger.ts
4082
- var Logger = class _Logger {
4435
+ var Logger = class Logger2 {
4436
+ static {
4437
+ __name(this, "Logger");
4438
+ }
4083
4439
  /**
4084
- * Whether or not debug messages should be shown.
4085
- */
4440
+ * Whether or not debug messages should be shown.
4441
+ */
4086
4442
  static DEBUG = false;
4087
4443
  /**
4088
- * The module name of the logger.
4089
- */
4444
+ * The module name of the logger.
4445
+ */
4090
4446
  name;
4091
4447
  /**
4092
- * The color of module name.
4093
- */
4448
+ * The color of module name.
4449
+ */
4094
4450
  color;
4095
4451
  /**
4096
- * The colorette instance.
4097
- */
4452
+ * The colorette instance.
4453
+ */
4098
4454
  colorette;
4099
4455
  /**
4100
- * Constructs a new logger.
4101
- *
4102
- * @param name - The module name.
4103
- * @param color - The color of the module name.
4104
- */
4456
+ * Constructs a new logger.
4457
+ *
4458
+ * @param name - The module name.
4459
+ * @param color - The color of the module name.
4460
+ */
4105
4461
  constructor(name, color) {
4106
4462
  this.name = name;
4107
4463
  this.color = color;
4108
- this.colorette = (0, import_colorette.createColors)({ useColor: true });
4464
+ this.colorette = (0, import_colorette.createColors)({
4465
+ useColor: true
4466
+ });
4109
4467
  }
4110
4468
  /**
4111
- * Logs a message to the console.
4112
- *
4113
- * @param arguments_ - The arguments to log.
4114
- */
4469
+ * Logs a message to the console.
4470
+ *
4471
+ * @param arguments_ - The arguments to log.
4472
+ */
4115
4473
  log(...arguments_) {
4116
4474
  const colorized = this.colorize(...arguments_);
4117
- const format = `${this.colorette.gray("<")}${(0, import_moment.default)().format("MM-DD-YYYY HH:mm:ss")}${this.colorette.gray(">")} ${this.colorette.gray(
4118
- "["
4119
- )}${this.color(`${this.name}`)}${this.colorette.gray("]")}`;
4475
+ const format = `${this.colorette.gray("<")}${(0, import_moment.default)().format("MM-DD-YYYY HH:mm:ss")}${this.colorette.gray(">")} ${this.colorette.gray("[")}${this.color(`${this.name}`)}${this.colorette.gray("]")}`;
4120
4476
  console.log(format, ...colorized);
4121
4477
  }
4122
4478
  /**
4123
- * Logs an info message to the console.
4124
- *
4125
- * @param arguments_ - The arguments to log.
4126
- */
4479
+ * Logs an info message to the console.
4480
+ *
4481
+ * @param arguments_ - The arguments to log.
4482
+ */
4127
4483
  info(...arguments_) {
4128
4484
  const colorized = this.colorize(...arguments_);
4129
- const format = `${this.colorette.gray("<")}${(0, import_moment.default)().format("MM-DD-YYYY HH:mm:ss")}${this.colorette.gray(">")} ${this.colorette.gray(
4130
- "["
4131
- )}${this.color(`${this.name}`)}${this.colorette.gray("]")} ${this.colorette.gray("[")}${this.colorette.cyan("Info")}${this.colorette.gray("]")}`;
4485
+ const format = `${this.colorette.gray("<")}${(0, import_moment.default)().format("MM-DD-YYYY HH:mm:ss")}${this.colorette.gray(">")} ${this.colorette.gray("[")}${this.color(`${this.name}`)}${this.colorette.gray("]")} ${this.colorette.gray("[")}${this.colorette.cyan("Info")}${this.colorette.gray("]")}`;
4132
4486
  console.log(format, ...colorized);
4133
4487
  }
4134
4488
  /**
4135
- * Logs a warning message to the console.
4136
- *
4137
- * @param arguments_ - The arguments to log.
4138
- */
4489
+ * Logs a warning message to the console.
4490
+ *
4491
+ * @param arguments_ - The arguments to log.
4492
+ */
4139
4493
  warn(...arguments_) {
4140
4494
  const colorized = this.colorize(...arguments_);
4141
- const format = `${this.colorette.gray("<")}${(0, import_moment.default)().format("MM-DD-YYYY HH:mm:ss")}${this.colorette.gray(">")} ${this.colorette.gray(
4142
- "["
4143
- )}${this.color(`${this.name}`)}${this.colorette.gray("]")} ${this.colorette.gray("[")}${this.colorette.yellow("Warning")}${this.colorette.gray("]")}`;
4495
+ const format = `${this.colorette.gray("<")}${(0, import_moment.default)().format("MM-DD-YYYY HH:mm:ss")}${this.colorette.gray(">")} ${this.colorette.gray("[")}${this.color(`${this.name}`)}${this.colorette.gray("]")} ${this.colorette.gray("[")}${this.colorette.yellow("Warning")}${this.colorette.gray("]")}`;
4144
4496
  console.log(format, ...colorized);
4145
4497
  }
4146
4498
  /**
4147
- * Logs an error message to the console.
4148
- *
4149
- * @param arguments_ - The arguments to log.
4150
- */
4499
+ * Logs an error message to the console.
4500
+ *
4501
+ * @param arguments_ - The arguments to log.
4502
+ */
4151
4503
  error(...arguments_) {
4152
- const format = `${this.colorette.gray("<")}${(0, import_moment.default)().format("MM-DD-YYYY HH:mm:ss")}${this.colorette.gray(">")} ${this.colorette.gray(
4153
- "["
4154
- )}${this.color(`${this.name}`)}${this.colorette.gray("]")} ${this.colorette.gray("[")}${this.colorette.red("Error")}${this.colorette.gray("]")}`;
4504
+ const format = `${this.colorette.gray("<")}${(0, import_moment.default)().format("MM-DD-YYYY HH:mm:ss")}${this.colorette.gray(">")} ${this.colorette.gray("[")}${this.color(`${this.name}`)}${this.colorette.gray("]")} ${this.colorette.gray("[")}${this.colorette.red("Error")}${this.colorette.gray("]")}`;
4155
4505
  console.log(format, ...arguments_);
4156
4506
  }
4157
4507
  /**
4158
- * Logs a success message to the console.
4159
- *
4160
- * @param arguments_ - The arguments to log.
4161
- */
4508
+ * Logs a success message to the console.
4509
+ *
4510
+ * @param arguments_ - The arguments to log.
4511
+ */
4162
4512
  success(...arguments_) {
4163
4513
  const colorized = this.colorize(...arguments_);
4164
- const format = `${this.colorette.gray("<")}${(0, import_moment.default)().format("MM-DD-YYYY HH:mm:ss")}${this.colorette.gray(">")} ${this.colorette.gray(
4165
- "["
4166
- )}${this.color(`${this.name}`)}${this.colorette.gray("]")} ${this.colorette.gray("[")}${this.colorette.greenBright("Success")}${this.colorette.gray(
4167
- "]"
4168
- )}`;
4514
+ const format = `${this.colorette.gray("<")}${(0, import_moment.default)().format("MM-DD-YYYY HH:mm:ss")}${this.colorette.gray(">")} ${this.colorette.gray("[")}${this.color(`${this.name}`)}${this.colorette.gray("]")} ${this.colorette.gray("[")}${this.colorette.greenBright("Success")}${this.colorette.gray("]")}`;
4169
4515
  console.log(format, ...colorized);
4170
4516
  }
4171
4517
  /**
4172
- * Logs a debug message to the console.
4173
- * This will only log if the `DEBUG` flag is set to `true`.
4174
- *
4175
- * @param arguments_ - The arguments to log.
4176
- */
4518
+ * Logs a debug message to the console.
4519
+ * This will only log if the `DEBUG` flag is set to `true`.
4520
+ *
4521
+ * @param arguments_ - The arguments to log.
4522
+ */
4177
4523
  debug(...arguments_) {
4178
4524
  const colorized = this.colorize(...arguments_);
4179
- if (!_Logger.DEBUG) return;
4180
- const format = `${this.colorette.gray("<")}${(0, import_moment.default)().format("MM-DD-YYYY HH:mm:ss")}${this.colorette.gray(">")} ${this.colorette.gray(
4181
- "["
4182
- )}${this.color(`${this.name}`)}${this.colorette.gray("]")} ${this.colorette.gray("[")}${this.colorette.redBright("DEBUG")}${this.colorette.gray("]")}`;
4525
+ if (!Logger2.DEBUG) return;
4526
+ const format = `${this.colorette.gray("<")}${(0, import_moment.default)().format("MM-DD-YYYY HH:mm:ss")}${this.colorette.gray(">")} ${this.colorette.gray("[")}${this.color(`${this.name}`)}${this.colorette.gray("]")} ${this.colorette.gray("[")}${this.colorette.redBright("DEBUG")}${this.colorette.gray("]")}`;
4183
4527
  console.log(format, ...colorized);
4184
4528
  }
4185
4529
  /**
4186
- * Logs a chat message to the console.
4187
- * This shoud not be handeled by anyone just the TextPacket
4188
- * @param arguments_ - The arguments to log.
4189
- */
4530
+ * Logs a chat message to the console.
4531
+ * This shoud not be handeled by anyone just the TextPacket
4532
+ * @param arguments_ - The arguments to log.
4533
+ */
4190
4534
  chat(...arguments_) {
4191
4535
  const colorized = this.colorize(...arguments_);
4192
- const format = `${this.colorette.gray("<")}${(0, import_moment.default)().format("MM-DD-YYYY HH:mm:ss")}${this.colorette.gray(">")} ${this.colorette.gray(
4193
- "["
4194
- )}${this.color(`${this.name}`)}${this.colorette.gray("]")} ${this.colorette.gray("[")}${this.colorette.cyanBright("Chat")}${this.colorette.gray(
4195
- "]"
4196
- )}`;
4536
+ const format = `${this.colorette.gray("<")}${(0, import_moment.default)().format("MM-DD-YYYY HH:mm:ss")}${this.colorette.gray(">")} ${this.colorette.gray("[")}${this.color(`${this.name}`)}${this.colorette.gray("]")} ${this.colorette.gray("[")}${this.colorette.cyanBright("Chat")}${this.colorette.gray("]")}`;
4197
4537
  console.log(format, colorized[0], ">", colorized[1]);
4198
4538
  }
4199
4539
  colorize(...arguments_) {