@opfr/utils-type 0.17.1 → 0.17.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +251 -251
- package/dist/index.umd.js +3 -3
- package/package.json +4 -4
package/dist/index.es.js
CHANGED
|
@@ -515,7 +515,7 @@ function tt(e, t) {
|
|
|
515
515
|
g(e, r) && !g(t, r) && ae(e[r]) && (n[r] = K({}, n[r]));
|
|
516
516
|
return n;
|
|
517
517
|
}
|
|
518
|
-
function
|
|
518
|
+
function dt(e) {
|
|
519
519
|
e != null && this.set(e);
|
|
520
520
|
}
|
|
521
521
|
var nt;
|
|
@@ -541,8 +541,8 @@ function A(e, t, n) {
|
|
|
541
541
|
var r = "" + Math.abs(e), a = t - r.length, s = e >= 0;
|
|
542
542
|
return (s ? n ? "+" : "" : "-") + Math.pow(10, Math.max(0, a)).toString().substr(1) + r;
|
|
543
543
|
}
|
|
544
|
-
var
|
|
545
|
-
function
|
|
544
|
+
var ct = /(\[[^\[]*\])|(\\)?([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, Se = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, Je = {}, le = {};
|
|
545
|
+
function c(e, t, n, r) {
|
|
546
546
|
var a = r;
|
|
547
547
|
typeof r == "string" && (a = function() {
|
|
548
548
|
return this[r]();
|
|
@@ -559,7 +559,7 @@ function An(e) {
|
|
|
559
559
|
return e.match(/\[[\s\S]/) ? e.replace(/^\[|\]$/g, "") : e.replace(/\\/g, "");
|
|
560
560
|
}
|
|
561
561
|
function Fn(e) {
|
|
562
|
-
var t = e.match(
|
|
562
|
+
var t = e.match(ct), n, r;
|
|
563
563
|
for (n = 0, r = t.length; n < r; n++)
|
|
564
564
|
le[t[n]] ? t[n] = le[t[n]] : t[n] = An(t[n]);
|
|
565
565
|
return function(a) {
|
|
@@ -594,7 +594,7 @@ var Un = {
|
|
|
594
594
|
};
|
|
595
595
|
function In(e) {
|
|
596
596
|
var t = this._longDateFormat[e], n = this._longDateFormat[e.toUpperCase()];
|
|
597
|
-
return t || !n ? t : (this._longDateFormat[e] = n.match(
|
|
597
|
+
return t || !n ? t : (this._longDateFormat[e] = n.match(ct).map(function(r) {
|
|
598
598
|
return r === "MMMM" || r === "MM" || r === "DD" || r === "dddd" ? r.slice(1) : r;
|
|
599
599
|
}).join(""), this._longDateFormat[e]);
|
|
600
600
|
}
|
|
@@ -719,7 +719,7 @@ function Qn(e) {
|
|
|
719
719
|
}
|
|
720
720
|
var It = /\d/, x = /\d\d/, jt = /\d{3}/, ft = /\d{4}/, He = /[+-]?\d{6}/, M = /\d\d?/, Gt = /\d\d\d\d?/, Vt = /\d\d\d\d\d\d?/, Ae = /\d{1,3}/, _t = /\d{1,4}/, Fe = /[+-]?\d{1,6}/, he = /\d+/, Ue = /[+-]?\d+/, Xn = /Z|[+-]\d\d:?\d\d/gi, Ie = /Z|[+-]\d\d(?::?\d\d)?/gi, Kn = /[+-]?\d+(\.\d{1,3})?/, Ye = /[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, fe = /^[1-9]\d?/, mt = /^([1-9]\d|\d)/, Ne;
|
|
721
721
|
Ne = {};
|
|
722
|
-
function
|
|
722
|
+
function d(e, t, n) {
|
|
723
723
|
Ne[e] = U(t) ? t : function(r, a) {
|
|
724
724
|
return r && n ? n : t;
|
|
725
725
|
};
|
|
@@ -748,7 +748,7 @@ function _(e) {
|
|
|
748
748
|
return t !== 0 && isFinite(t) && (n = C(t)), n;
|
|
749
749
|
}
|
|
750
750
|
var rt = {};
|
|
751
|
-
function
|
|
751
|
+
function w(e, t) {
|
|
752
752
|
var n, r = t, a;
|
|
753
753
|
for (typeof e == "string" && (e = [e]), $(t) && (r = function(s, i) {
|
|
754
754
|
i[t] = _(s);
|
|
@@ -756,7 +756,7 @@ function v(e, t) {
|
|
|
756
756
|
rt[e[n]] = r;
|
|
757
757
|
}
|
|
758
758
|
function De(e, t) {
|
|
759
|
-
|
|
759
|
+
w(e, function(n, r, a, s) {
|
|
760
760
|
a._w = a._w || {}, t(n, a._w, a, s);
|
|
761
761
|
});
|
|
762
762
|
}
|
|
@@ -767,29 +767,29 @@ function je(e) {
|
|
|
767
767
|
return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0;
|
|
768
768
|
}
|
|
769
769
|
var D = 0, q = 1, H = 2, Y = 3, P = 4, z = 5, re = 6, rr = 7, ar = 8;
|
|
770
|
-
|
|
770
|
+
c("Y", 0, 0, function() {
|
|
771
771
|
var e = this.year();
|
|
772
772
|
return e <= 9999 ? A(e, 4) : "+" + e;
|
|
773
773
|
});
|
|
774
|
-
|
|
774
|
+
c(0, ["YY", 2], 0, function() {
|
|
775
775
|
return this.year() % 100;
|
|
776
776
|
});
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
777
|
+
c(0, ["YYYY", 4], 0, "year");
|
|
778
|
+
c(0, ["YYYYY", 5], 0, "year");
|
|
779
|
+
c(0, ["YYYYYY", 6, !0], 0, "year");
|
|
780
|
+
d("Y", Ue);
|
|
781
|
+
d("YY", M, x);
|
|
782
|
+
d("YYYY", _t, ft);
|
|
783
|
+
d("YYYYY", Fe, He);
|
|
784
|
+
d("YYYYYY", Fe, He);
|
|
785
|
+
w(["YYYYY", "YYYYYY"], D);
|
|
786
|
+
w("YYYY", function(e, t) {
|
|
787
787
|
t[D] = e.length === 2 ? u.parseTwoDigitYear(e) : _(e);
|
|
788
788
|
});
|
|
789
|
-
|
|
789
|
+
w("YY", function(e, t) {
|
|
790
790
|
t[D] = u.parseTwoDigitYear(e);
|
|
791
791
|
});
|
|
792
|
-
|
|
792
|
+
w("Y", function(e, t) {
|
|
793
793
|
t[D] = parseInt(e, 10);
|
|
794
794
|
});
|
|
795
795
|
function ge(e) {
|
|
@@ -884,33 +884,33 @@ function yt(e, t) {
|
|
|
884
884
|
var n = ur(t, 12);
|
|
885
885
|
return e += (t - n) / 12, n === 1 ? je(e) ? 29 : 28 : 31 - n % 7 % 2;
|
|
886
886
|
}
|
|
887
|
-
|
|
887
|
+
c("M", ["MM", 2], "Mo", function() {
|
|
888
888
|
return this.month() + 1;
|
|
889
889
|
});
|
|
890
|
-
|
|
890
|
+
c("MMM", 0, 0, function(e) {
|
|
891
891
|
return this.localeData().monthsShort(this, e);
|
|
892
892
|
});
|
|
893
|
-
|
|
893
|
+
c("MMMM", 0, 0, function(e) {
|
|
894
894
|
return this.localeData().months(this, e);
|
|
895
895
|
});
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
896
|
+
d("M", M, fe);
|
|
897
|
+
d("MM", M, x);
|
|
898
|
+
d("MMM", function(e, t) {
|
|
899
899
|
return t.monthsShortRegex(e);
|
|
900
900
|
});
|
|
901
|
-
|
|
901
|
+
d("MMMM", function(e, t) {
|
|
902
902
|
return t.monthsRegex(e);
|
|
903
903
|
});
|
|
904
|
-
|
|
904
|
+
w(["M", "MM"], function(e, t) {
|
|
905
905
|
t[q] = _(e) - 1;
|
|
906
906
|
});
|
|
907
|
-
|
|
907
|
+
w(["MMM", "MMMM"], function(e, t, n, r) {
|
|
908
908
|
var a = n._locale.monthsParse(e, r, n._strict);
|
|
909
909
|
a != null ? t[q] = a : f(n).invalidMonth = e;
|
|
910
910
|
});
|
|
911
911
|
var lr = "January_February_March_April_May_June_July_August_September_October_November_December".split(
|
|
912
912
|
"_"
|
|
913
|
-
), Zt = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), Bt = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,
|
|
913
|
+
), Zt = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), Bt = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, dr = Ye, cr = Ye;
|
|
914
914
|
function hr(e, t) {
|
|
915
915
|
return e ? E(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat || Bt).test(t) ? "format" : "standalone"][e.month()] : E(this._months) ? this._months : this._months.standalone;
|
|
916
916
|
}
|
|
@@ -960,10 +960,10 @@ function yr() {
|
|
|
960
960
|
return yt(this.year(), this.month());
|
|
961
961
|
}
|
|
962
962
|
function gr(e) {
|
|
963
|
-
return this._monthsParseExact ? (g(this, "_monthsRegex") || Qt.call(this), e ? this._monthsShortStrictRegex : this._monthsShortRegex) : (g(this, "_monthsShortRegex") || (this._monthsShortRegex =
|
|
963
|
+
return this._monthsParseExact ? (g(this, "_monthsRegex") || Qt.call(this), e ? this._monthsShortStrictRegex : this._monthsShortRegex) : (g(this, "_monthsShortRegex") || (this._monthsShortRegex = dr), this._monthsShortStrictRegex && e ? this._monthsShortStrictRegex : this._monthsShortRegex);
|
|
964
964
|
}
|
|
965
965
|
function pr(e) {
|
|
966
|
-
return this._monthsParseExact ? (g(this, "_monthsRegex") || Qt.call(this), e ? this._monthsStrictRegex : this._monthsRegex) : (g(this, "_monthsRegex") || (this._monthsRegex =
|
|
966
|
+
return this._monthsParseExact ? (g(this, "_monthsRegex") || Qt.call(this), e ? this._monthsStrictRegex : this._monthsRegex) : (g(this, "_monthsRegex") || (this._monthsRegex = cr), this._monthsStrictRegex && e ? this._monthsStrictRegex : this._monthsRegex);
|
|
967
967
|
}
|
|
968
968
|
function Qt() {
|
|
969
969
|
function e(h, m) {
|
|
@@ -980,16 +980,16 @@ function Qt() {
|
|
|
980
980
|
"i"
|
|
981
981
|
);
|
|
982
982
|
}
|
|
983
|
-
function
|
|
983
|
+
function wr(e, t, n, r, a, s, i) {
|
|
984
984
|
var l;
|
|
985
985
|
return e < 100 && e >= 0 ? (l = new Date(e + 400, t, n, r, a, s, i), isFinite(l.getFullYear()) && l.setFullYear(e)) : l = new Date(e, t, n, r, a, s, i), l;
|
|
986
986
|
}
|
|
987
|
-
function
|
|
987
|
+
function we(e) {
|
|
988
988
|
var t, n;
|
|
989
989
|
return e < 100 && e >= 0 ? (n = Array.prototype.slice.call(arguments), n[0] = e + 400, t = new Date(Date.UTC.apply(null, n)), isFinite(t.getUTCFullYear()) && t.setUTCFullYear(e)) : t = new Date(Date.UTC.apply(null, arguments)), t;
|
|
990
990
|
}
|
|
991
991
|
function Re(e, t, n) {
|
|
992
|
-
var r = 7 + t - n, a = (7 +
|
|
992
|
+
var r = 7 + t - n, a = (7 + we(e, 0, r).getUTCDay() - t) % 7;
|
|
993
993
|
return -a + r - 1;
|
|
994
994
|
}
|
|
995
995
|
function Xt(e, t, n, r, a) {
|
|
@@ -999,7 +999,7 @@ function Xt(e, t, n, r, a) {
|
|
|
999
999
|
dayOfYear: m
|
|
1000
1000
|
};
|
|
1001
1001
|
}
|
|
1002
|
-
function
|
|
1002
|
+
function ve(e, t, n) {
|
|
1003
1003
|
var r = Re(e.year(), t, n), a = Math.floor((e.dayOfYear() - r - 1) / 7) + 1, s, i;
|
|
1004
1004
|
return a < 1 ? (i = e.year() - 1, s = a + B(i, t, n)) : a > B(e.year(), t, n) ? (s = a - B(e.year(), t, n), i = e.year() + 1) : (i = e.year(), s = a), {
|
|
1005
1005
|
week: s,
|
|
@@ -1010,20 +1010,20 @@ function B(e, t, n) {
|
|
|
1010
1010
|
var r = Re(e, t, n), a = Re(e + 1, t, n);
|
|
1011
1011
|
return (ge(e) - r + a) / 7;
|
|
1012
1012
|
}
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1013
|
+
c("w", ["ww", 2], "wo", "week");
|
|
1014
|
+
c("W", ["WW", 2], "Wo", "isoWeek");
|
|
1015
|
+
d("w", M, fe);
|
|
1016
|
+
d("ww", M, x);
|
|
1017
|
+
d("W", M, fe);
|
|
1018
|
+
d("WW", M, x);
|
|
1019
1019
|
De(
|
|
1020
1020
|
["w", "ww", "W", "WW"],
|
|
1021
1021
|
function(e, t, n, r) {
|
|
1022
1022
|
t[r.substr(0, 1)] = _(e);
|
|
1023
1023
|
}
|
|
1024
1024
|
);
|
|
1025
|
-
function
|
|
1026
|
-
return
|
|
1025
|
+
function vr(e) {
|
|
1026
|
+
return ve(e, this._week.dow, this._week.doy).week;
|
|
1027
1027
|
}
|
|
1028
1028
|
var Mr = {
|
|
1029
1029
|
dow: 0,
|
|
@@ -1042,31 +1042,31 @@ function Yr(e) {
|
|
|
1042
1042
|
return e == null ? t : this.add((e - t) * 7, "d");
|
|
1043
1043
|
}
|
|
1044
1044
|
function Dr(e) {
|
|
1045
|
-
var t =
|
|
1045
|
+
var t = ve(this, 1, 4).week;
|
|
1046
1046
|
return e == null ? t : this.add((e - t) * 7, "d");
|
|
1047
1047
|
}
|
|
1048
|
-
|
|
1049
|
-
|
|
1048
|
+
c("d", 0, "do", "day");
|
|
1049
|
+
c("dd", 0, 0, function(e) {
|
|
1050
1050
|
return this.localeData().weekdaysMin(this, e);
|
|
1051
1051
|
});
|
|
1052
|
-
|
|
1052
|
+
c("ddd", 0, 0, function(e) {
|
|
1053
1053
|
return this.localeData().weekdaysShort(this, e);
|
|
1054
1054
|
});
|
|
1055
|
-
|
|
1055
|
+
c("dddd", 0, 0, function(e) {
|
|
1056
1056
|
return this.localeData().weekdays(this, e);
|
|
1057
1057
|
});
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1058
|
+
c("e", 0, 0, "weekday");
|
|
1059
|
+
c("E", 0, 0, "isoWeekday");
|
|
1060
|
+
d("d", M);
|
|
1061
|
+
d("e", M);
|
|
1062
|
+
d("E", M);
|
|
1063
|
+
d("dd", function(e, t) {
|
|
1064
1064
|
return t.weekdaysMinRegex(e);
|
|
1065
1065
|
});
|
|
1066
|
-
|
|
1066
|
+
d("ddd", function(e, t) {
|
|
1067
1067
|
return t.weekdaysShortRegex(e);
|
|
1068
1068
|
});
|
|
1069
|
-
|
|
1069
|
+
d("dddd", function(e, t) {
|
|
1070
1070
|
return t.weekdaysRegex(e);
|
|
1071
1071
|
});
|
|
1072
1072
|
De(["dd", "ddd", "dddd"], function(e, t, n, r) {
|
|
@@ -1174,29 +1174,29 @@ function pt() {
|
|
|
1174
1174
|
"i"
|
|
1175
1175
|
);
|
|
1176
1176
|
}
|
|
1177
|
-
function
|
|
1177
|
+
function wt() {
|
|
1178
1178
|
return this.hours() % 12 || 12;
|
|
1179
1179
|
}
|
|
1180
1180
|
function Vr() {
|
|
1181
1181
|
return this.hours() || 24;
|
|
1182
1182
|
}
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
return "" +
|
|
1183
|
+
c("H", ["HH", 2], 0, "hour");
|
|
1184
|
+
c("h", ["hh", 2], 0, wt);
|
|
1185
|
+
c("k", ["kk", 2], 0, Vr);
|
|
1186
|
+
c("hmm", 0, 0, function() {
|
|
1187
|
+
return "" + wt.apply(this) + A(this.minutes(), 2);
|
|
1188
1188
|
});
|
|
1189
|
-
|
|
1190
|
-
return "" +
|
|
1189
|
+
c("hmmss", 0, 0, function() {
|
|
1190
|
+
return "" + wt.apply(this) + A(this.minutes(), 2) + A(this.seconds(), 2);
|
|
1191
1191
|
});
|
|
1192
|
-
|
|
1192
|
+
c("Hmm", 0, 0, function() {
|
|
1193
1193
|
return "" + this.hours() + A(this.minutes(), 2);
|
|
1194
1194
|
});
|
|
1195
|
-
|
|
1195
|
+
c("Hmmss", 0, 0, function() {
|
|
1196
1196
|
return "" + this.hours() + A(this.minutes(), 2) + A(this.seconds(), 2);
|
|
1197
1197
|
});
|
|
1198
1198
|
function en(e, t) {
|
|
1199
|
-
|
|
1199
|
+
c(e, 0, 0, function() {
|
|
1200
1200
|
return this.localeData().meridiem(
|
|
1201
1201
|
this.hours(),
|
|
1202
1202
|
this.minutes(),
|
|
@@ -1209,42 +1209,42 @@ en("A", !1);
|
|
|
1209
1209
|
function tn(e, t) {
|
|
1210
1210
|
return t._meridiemParse;
|
|
1211
1211
|
}
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1212
|
+
d("a", tn);
|
|
1213
|
+
d("A", tn);
|
|
1214
|
+
d("H", M, mt);
|
|
1215
|
+
d("h", M, fe);
|
|
1216
|
+
d("k", M, fe);
|
|
1217
|
+
d("HH", M, x);
|
|
1218
|
+
d("hh", M, x);
|
|
1219
|
+
d("kk", M, x);
|
|
1220
|
+
d("hmm", Gt);
|
|
1221
|
+
d("hmmss", Vt);
|
|
1222
|
+
d("Hmm", Gt);
|
|
1223
|
+
d("Hmmss", Vt);
|
|
1224
|
+
w(["H", "HH"], Y);
|
|
1225
|
+
w(["k", "kk"], function(e, t, n) {
|
|
1226
1226
|
var r = _(e);
|
|
1227
1227
|
t[Y] = r === 24 ? 0 : r;
|
|
1228
1228
|
});
|
|
1229
|
-
|
|
1229
|
+
w(["a", "A"], function(e, t, n) {
|
|
1230
1230
|
n._isPm = n._locale.isPM(e), n._meridiem = e;
|
|
1231
1231
|
});
|
|
1232
|
-
|
|
1232
|
+
w(["h", "hh"], function(e, t, n) {
|
|
1233
1233
|
t[Y] = _(e), f(n).bigHour = !0;
|
|
1234
1234
|
});
|
|
1235
|
-
|
|
1235
|
+
w("hmm", function(e, t, n) {
|
|
1236
1236
|
var r = e.length - 2;
|
|
1237
1237
|
t[Y] = _(e.substr(0, r)), t[P] = _(e.substr(r)), f(n).bigHour = !0;
|
|
1238
1238
|
});
|
|
1239
|
-
|
|
1239
|
+
w("hmmss", function(e, t, n) {
|
|
1240
1240
|
var r = e.length - 4, a = e.length - 2;
|
|
1241
1241
|
t[Y] = _(e.substr(0, r)), t[P] = _(e.substr(r, 2)), t[z] = _(e.substr(a)), f(n).bigHour = !0;
|
|
1242
1242
|
});
|
|
1243
|
-
|
|
1243
|
+
w("Hmm", function(e, t, n) {
|
|
1244
1244
|
var r = e.length - 2;
|
|
1245
1245
|
t[Y] = _(e.substr(0, r)), t[P] = _(e.substr(r));
|
|
1246
1246
|
});
|
|
1247
|
-
|
|
1247
|
+
w("Hmmss", function(e, t, n) {
|
|
1248
1248
|
var r = e.length - 4, a = e.length - 2;
|
|
1249
1249
|
t[Y] = _(e.substr(0, r)), t[P] = _(e.substr(r, 2)), t[z] = _(e.substr(a));
|
|
1250
1250
|
});
|
|
@@ -1308,11 +1308,11 @@ function Ge(e) {
|
|
|
1308
1308
|
}
|
|
1309
1309
|
function te(e, t) {
|
|
1310
1310
|
var n;
|
|
1311
|
-
return e && (O(t) ? n = J(e) : n =
|
|
1311
|
+
return e && (O(t) ? n = J(e) : n = vt(e, t), n ? Me = n : typeof console < "u" && console.warn && console.warn(
|
|
1312
1312
|
"Locale " + e + " not found. Did you forget to load it?"
|
|
1313
1313
|
)), Me._abbr;
|
|
1314
1314
|
}
|
|
1315
|
-
function
|
|
1315
|
+
function vt(e, t) {
|
|
1316
1316
|
if (t !== null) {
|
|
1317
1317
|
var n, r = nn;
|
|
1318
1318
|
if (t.abbr = e, k[e] != null)
|
|
@@ -1330,8 +1330,8 @@ function wt(e, t) {
|
|
|
1330
1330
|
name: e,
|
|
1331
1331
|
config: t
|
|
1332
1332
|
}), null;
|
|
1333
|
-
return k[e] = new
|
|
1334
|
-
|
|
1333
|
+
return k[e] = new dt(tt(r, t)), me[e] && me[e].forEach(function(a) {
|
|
1334
|
+
vt(a.name, a.config);
|
|
1335
1335
|
}), te(e), k[e];
|
|
1336
1336
|
} else
|
|
1337
1337
|
return delete k[e], null;
|
|
@@ -1339,7 +1339,7 @@ function wt(e, t) {
|
|
|
1339
1339
|
function Xr(e, t) {
|
|
1340
1340
|
if (t != null) {
|
|
1341
1341
|
var n, r, a = nn;
|
|
1342
|
-
k[e] != null && k[e].parentLocale != null ? k[e].set(tt(k[e]._config, t)) : (r = Ge(e), r != null && (a = r._config), t = tt(a, t), r == null && (t.abbr = e), n = new
|
|
1342
|
+
k[e] != null && k[e].parentLocale != null ? k[e].set(tt(k[e]._config, t)) : (r = Ge(e), r != null && (a = r._config), t = tt(a, t), r == null && (t.abbr = e), n = new dt(t), n.parentLocale = k[e], k[e] = n), te(e);
|
|
1343
1343
|
} else
|
|
1344
1344
|
k[e] != null && (k[e].parentLocale != null ? (k[e] = k[e].parentLocale, e === te() && te(e)) : k[e] != null && delete k[e]);
|
|
1345
1345
|
return k[e];
|
|
@@ -1465,7 +1465,7 @@ function la(e, t, n) {
|
|
|
1465
1465
|
}
|
|
1466
1466
|
return !0;
|
|
1467
1467
|
}
|
|
1468
|
-
function
|
|
1468
|
+
function da(e, t, n) {
|
|
1469
1469
|
if (e)
|
|
1470
1470
|
return sa[e];
|
|
1471
1471
|
if (t)
|
|
@@ -1485,11 +1485,11 @@ function an(e) {
|
|
|
1485
1485
|
t[7]
|
|
1486
1486
|
), !la(t[1], n, e))
|
|
1487
1487
|
return;
|
|
1488
|
-
e._a = n, e._tzm =
|
|
1488
|
+
e._a = n, e._tzm = da(t[8], t[9], t[10]), e._d = we.apply(null, e._a), e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), f(e).rfc2822 = !0;
|
|
1489
1489
|
} else
|
|
1490
1490
|
e._isValid = !1;
|
|
1491
1491
|
}
|
|
1492
|
-
function
|
|
1492
|
+
function ca(e) {
|
|
1493
1493
|
var t = ra.exec(e._i);
|
|
1494
1494
|
if (t !== null) {
|
|
1495
1495
|
e._d = /* @__PURE__ */ new Date(+t[1]);
|
|
@@ -1525,11 +1525,11 @@ function ha(e) {
|
|
|
1525
1525
|
function kt(e) {
|
|
1526
1526
|
var t, n, r = [], a, s, i;
|
|
1527
1527
|
if (!e._d) {
|
|
1528
|
-
for (a = ha(e), e._w && e._a[H] == null && e._a[q] == null && fa(e), e._dayOfYear != null && (i = oe(e._a[D], a[D]), (e._dayOfYear > ge(i) || e._dayOfYear === 0) && (f(e)._overflowDayOfYear = !0), n =
|
|
1528
|
+
for (a = ha(e), e._w && e._a[H] == null && e._a[q] == null && fa(e), e._dayOfYear != null && (i = oe(e._a[D], a[D]), (e._dayOfYear > ge(i) || e._dayOfYear === 0) && (f(e)._overflowDayOfYear = !0), n = we(i, 0, e._dayOfYear), e._a[q] = n.getUTCMonth(), e._a[H] = n.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t)
|
|
1529
1529
|
e._a[t] = r[t] = a[t];
|
|
1530
1530
|
for (; t < 7; t++)
|
|
1531
1531
|
e._a[t] = r[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t];
|
|
1532
|
-
e._a[Y] === 24 && e._a[P] === 0 && e._a[z] === 0 && e._a[re] === 0 && (e._nextDay = !0, e._a[Y] = 0), e._d = (e._useUTC ?
|
|
1532
|
+
e._a[Y] === 24 && e._a[P] === 0 && e._a[z] === 0 && e._a[re] === 0 && (e._nextDay = !0, e._a[Y] = 0), e._d = (e._useUTC ? we : wr).apply(
|
|
1533
1533
|
null,
|
|
1534
1534
|
r
|
|
1535
1535
|
), s = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), e._tzm != null && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[Y] = 24), e._w && typeof e._w.d < "u" && e._w.d !== s && (f(e).weekdayMismatch = !0);
|
|
@@ -1540,8 +1540,8 @@ function fa(e) {
|
|
|
1540
1540
|
t = e._w, t.GG != null || t.W != null || t.E != null ? (s = 1, i = 4, n = oe(
|
|
1541
1541
|
t.GG,
|
|
1542
1542
|
e._a[D],
|
|
1543
|
-
|
|
1544
|
-
), r = oe(t.W, 1), a = oe(t.E, 1), (a < 1 || a > 7) && (h = !0)) : (s = e._locale._week.dow, i = e._locale._week.doy, m =
|
|
1543
|
+
ve(v(), 1, 4).year
|
|
1544
|
+
), r = oe(t.W, 1), a = oe(t.E, 1), (a < 1 || a > 7) && (h = !0)) : (s = e._locale._week.dow, i = e._locale._week.doy, m = ve(v(), s, i), n = oe(t.gg, e._a[D], m.year), r = oe(t.w, m.week), t.d != null ? (a = t.d, (a < 0 || a > 6) && (h = !0)) : t.e != null ? (a = t.e + s, (t.e < 0 || t.e > 6) && (h = !0)) : a = s), r < 1 || r > B(n, s, i) ? f(e)._overflowWeeks = !0 : h != null ? f(e)._overflowWeekday = !0 : (l = Xt(n, r, a, s, i), e._a[D] = l.year, e._dayOfYear = l.dayOfYear);
|
|
1545
1545
|
}
|
|
1546
1546
|
u.ISO_8601 = function() {
|
|
1547
1547
|
};
|
|
@@ -1558,7 +1558,7 @@ function bt(e) {
|
|
|
1558
1558
|
}
|
|
1559
1559
|
e._a = [], f(e).empty = !0;
|
|
1560
1560
|
var t = "" + e._i, n, r, a, s, i, l = t.length, h = 0, m, S;
|
|
1561
|
-
for (a = Ut(e._f, e._locale).match(
|
|
1561
|
+
for (a = Ut(e._f, e._locale).match(ct) || [], S = a.length, n = 0; n < S; n++)
|
|
1562
1562
|
s = a[n], r = (t.match(er(s, e)) || [])[0], r && (i = t.substr(0, t.indexOf(r)), i.length > 0 && f(e).unusedInput.push(i), t = t.slice(
|
|
1563
1563
|
t.indexOf(r) + r.length
|
|
1564
1564
|
), h += r.length), le[s] ? (r ? f(e).empty = !1 : f(e).unusedTokens.push(s), nr(s, r, e)) : e._strict && !r && f(e).unusedTokens.push(s);
|
|
@@ -1603,7 +1603,7 @@ function sn(e) {
|
|
|
1603
1603
|
}
|
|
1604
1604
|
function pa(e) {
|
|
1605
1605
|
var t = e._i;
|
|
1606
|
-
O(t) ? e._d = new Date(u.now()) : ke(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ?
|
|
1606
|
+
O(t) ? e._d = new Date(u.now()) : ke(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? ca(e) : E(t) ? (e._a = Ht(t.slice(0), function(n) {
|
|
1607
1607
|
return parseInt(n, 10);
|
|
1608
1608
|
}), kt(e)) : ae(t) ? ya(e) : $(t) ? e._d = new Date(t) : u.createFromInputFallback(e);
|
|
1609
1609
|
}
|
|
@@ -1611,26 +1611,26 @@ function on(e, t, n, r, a) {
|
|
|
1611
1611
|
var s = {};
|
|
1612
1612
|
return (t === !0 || t === !1) && (r = t, t = void 0), (n === !0 || n === !1) && (r = n, n = void 0), (ae(e) && ot(e) || E(e) && e.length === 0) && (e = void 0), s._isAMomentObject = !0, s._useUTC = s._isUTC = a, s._l = n, s._i = e, s._f = t, s._strict = r, ga(s);
|
|
1613
1613
|
}
|
|
1614
|
-
function
|
|
1614
|
+
function v(e, t, n, r) {
|
|
1615
1615
|
return on(e, t, n, r, !1);
|
|
1616
1616
|
}
|
|
1617
|
-
var
|
|
1617
|
+
var wa = N(
|
|
1618
1618
|
"moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",
|
|
1619
1619
|
function() {
|
|
1620
|
-
var e =
|
|
1620
|
+
var e = v.apply(null, arguments);
|
|
1621
1621
|
return this.isValid() && e.isValid() ? e < this ? this : e : We();
|
|
1622
1622
|
}
|
|
1623
|
-
),
|
|
1623
|
+
), va = N(
|
|
1624
1624
|
"moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",
|
|
1625
1625
|
function() {
|
|
1626
|
-
var e =
|
|
1626
|
+
var e = v.apply(null, arguments);
|
|
1627
1627
|
return this.isValid() && e.isValid() ? e > this ? this : e : We();
|
|
1628
1628
|
}
|
|
1629
1629
|
);
|
|
1630
1630
|
function un(e, t) {
|
|
1631
1631
|
var n, r;
|
|
1632
1632
|
if (t.length === 1 && E(t[0]) && (t = t[0]), !t.length)
|
|
1633
|
-
return
|
|
1633
|
+
return v();
|
|
1634
1634
|
for (n = t[0], r = 1; r < t.length; ++r)
|
|
1635
1635
|
(!t[r].isValid() || t[r][e](n)) && (n = t[r]);
|
|
1636
1636
|
return n;
|
|
@@ -1694,16 +1694,16 @@ function Oa(e, t, n) {
|
|
|
1694
1694
|
return s + a;
|
|
1695
1695
|
}
|
|
1696
1696
|
function ln(e, t) {
|
|
1697
|
-
|
|
1697
|
+
c(e, 0, 0, function() {
|
|
1698
1698
|
var n = this.utcOffset(), r = "+";
|
|
1699
1699
|
return n < 0 && (n = -n, r = "-"), r + A(~~(n / 60), 2) + t + A(~~n % 60, 2);
|
|
1700
1700
|
});
|
|
1701
1701
|
}
|
|
1702
1702
|
ln("Z", ":");
|
|
1703
1703
|
ln("ZZ", "");
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1704
|
+
d("Z", Ie);
|
|
1705
|
+
d("ZZ", Ie);
|
|
1706
|
+
w(["Z", "ZZ"], function(e, t, n) {
|
|
1707
1707
|
n._useUTC = !0, n._tzm = Yt(Ie, e);
|
|
1708
1708
|
});
|
|
1709
1709
|
var Ta = /([\+\-]|\d\d)/gi;
|
|
@@ -1713,7 +1713,7 @@ function Yt(e, t) {
|
|
|
1713
1713
|
}
|
|
1714
1714
|
function Dt(e, t) {
|
|
1715
1715
|
var n, r;
|
|
1716
|
-
return t._isUTC ? (n = t.clone(), r = (L(e) || ke(e) ? e.valueOf() :
|
|
1716
|
+
return t._isUTC ? (n = t.clone(), r = (L(e) || ke(e) ? e.valueOf() : v(e).valueOf()) - n.valueOf(), n._d.setTime(n._d.valueOf() + r), u.updateOffset(n, !1), n) : v(e).local();
|
|
1717
1717
|
}
|
|
1718
1718
|
function st(e) {
|
|
1719
1719
|
return -Math.round(e._d.getTimezoneOffset());
|
|
@@ -1757,7 +1757,7 @@ function Pa() {
|
|
|
1757
1757
|
return this;
|
|
1758
1758
|
}
|
|
1759
1759
|
function Ea(e) {
|
|
1760
|
-
return this.isValid() ? (e = e ?
|
|
1760
|
+
return this.isValid() ? (e = e ? v(e).utcOffset() : 0, (this.utcOffset() - e) % 60 === 0) : !1;
|
|
1761
1761
|
}
|
|
1762
1762
|
function La() {
|
|
1763
1763
|
return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();
|
|
@@ -1766,7 +1766,7 @@ function Wa() {
|
|
|
1766
1766
|
if (!O(this._isDSTShifted))
|
|
1767
1767
|
return this._isDSTShifted;
|
|
1768
1768
|
var e = {}, t;
|
|
1769
|
-
return lt(e, this), e = sn(e), e._a ? (t = e._isUTC ? F(e._a) :
|
|
1769
|
+
return lt(e, this), e = sn(e), e._a ? (t = e._isUTC ? F(e._a) : v(e._a), this._isDSTShifted = this.isValid() && Oa(e._a, t.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
|
|
1770
1770
|
}
|
|
1771
1771
|
function Ha() {
|
|
1772
1772
|
return this.isValid() ? !this._isUTC : !1;
|
|
@@ -1774,7 +1774,7 @@ function Ha() {
|
|
|
1774
1774
|
function Aa() {
|
|
1775
1775
|
return this.isValid() ? this._isUTC : !1;
|
|
1776
1776
|
}
|
|
1777
|
-
function
|
|
1777
|
+
function dn() {
|
|
1778
1778
|
return this.isValid() ? this._isUTC && this._offset === 0 : !1;
|
|
1779
1779
|
}
|
|
1780
1780
|
var Fa = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, Ua = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
|
|
@@ -1801,8 +1801,8 @@ function W(e, t) {
|
|
|
1801
1801
|
m: ne(r[7], a),
|
|
1802
1802
|
s: ne(r[8], a)
|
|
1803
1803
|
}) : n == null ? n = {} : typeof n == "object" && ("from" in n || "to" in n) && (i = Ia(
|
|
1804
|
-
|
|
1805
|
-
|
|
1804
|
+
v(n.from),
|
|
1805
|
+
v(n.to)
|
|
1806
1806
|
), n = {}, n.ms = i.milliseconds, n.M = i.months), s = new Ve(n), xe(e) && g(e, "_locale") && (s._locale = e._locale), xe(e) && g(e, "_isValid") && (s._isValid = e._isValid), s;
|
|
1807
1807
|
}
|
|
1808
1808
|
W.fn = Ve.prototype;
|
|
@@ -1819,7 +1819,7 @@ function Ia(e, t) {
|
|
|
1819
1819
|
var n;
|
|
1820
1820
|
return e.isValid() && t.isValid() ? (t = Dt(t, e), e.isBefore(t) ? n = Pt(e, t) : (n = Pt(t, e), n.milliseconds = -n.milliseconds, n.months = -n.months), n) : { milliseconds: 0, months: 0 };
|
|
1821
1821
|
}
|
|
1822
|
-
function
|
|
1822
|
+
function cn(e, t) {
|
|
1823
1823
|
return function(n, r) {
|
|
1824
1824
|
var a, s;
|
|
1825
1825
|
return r !== null && !isNaN(+r) && (Ft(
|
|
@@ -1832,7 +1832,7 @@ function hn(e, t, n, r) {
|
|
|
1832
1832
|
var a = t._milliseconds, s = at(t._days), i = at(t._months);
|
|
1833
1833
|
e.isValid() && (r = r ?? !0, i && $t(e, pe(e, "Month") + i * n), s && zt(e, "Date", pe(e, "Date") + s * n), a && e._d.setTime(e._d.valueOf() + a * n), r && u.updateOffset(e, s || i));
|
|
1834
1834
|
}
|
|
1835
|
-
var ja =
|
|
1835
|
+
var ja = cn(1, "add"), Ga = cn(-1, "subtract");
|
|
1836
1836
|
function fn(e) {
|
|
1837
1837
|
return typeof e == "string" || e instanceof String;
|
|
1838
1838
|
}
|
|
@@ -1895,28 +1895,28 @@ function Ba(e, t) {
|
|
|
1895
1895
|
}
|
|
1896
1896
|
function $a(e, t) {
|
|
1897
1897
|
arguments.length === 1 && (arguments[0] ? Va(arguments[0]) ? (e = arguments[0], t = void 0) : Za(arguments[0]) && (t = arguments[0], e = void 0) : (e = void 0, t = void 0));
|
|
1898
|
-
var n = e ||
|
|
1898
|
+
var n = e || v(), r = Dt(n, this).startOf("day"), a = u.calendarFormat(this, r) || "sameElse", s = t && (U(t[a]) ? t[a].call(this, n) : t[a]);
|
|
1899
1899
|
return this.format(
|
|
1900
|
-
s || this.localeData().calendar(a, this,
|
|
1900
|
+
s || this.localeData().calendar(a, this, v(n))
|
|
1901
1901
|
);
|
|
1902
1902
|
}
|
|
1903
1903
|
function Ja() {
|
|
1904
1904
|
return new be(this);
|
|
1905
1905
|
}
|
|
1906
1906
|
function Qa(e, t) {
|
|
1907
|
-
var n = L(e) ? e :
|
|
1907
|
+
var n = L(e) ? e : v(e);
|
|
1908
1908
|
return this.isValid() && n.isValid() ? (t = R(t) || "millisecond", t === "millisecond" ? this.valueOf() > n.valueOf() : n.valueOf() < this.clone().startOf(t).valueOf()) : !1;
|
|
1909
1909
|
}
|
|
1910
1910
|
function Xa(e, t) {
|
|
1911
|
-
var n = L(e) ? e :
|
|
1911
|
+
var n = L(e) ? e : v(e);
|
|
1912
1912
|
return this.isValid() && n.isValid() ? (t = R(t) || "millisecond", t === "millisecond" ? this.valueOf() < n.valueOf() : this.clone().endOf(t).valueOf() < n.valueOf()) : !1;
|
|
1913
1913
|
}
|
|
1914
1914
|
function Ka(e, t, n, r) {
|
|
1915
|
-
var a = L(e) ? e :
|
|
1915
|
+
var a = L(e) ? e : v(e), s = L(t) ? t : v(t);
|
|
1916
1916
|
return this.isValid() && a.isValid() && s.isValid() ? (r = r || "()", (r[0] === "(" ? this.isAfter(a, n) : !this.isBefore(a, n)) && (r[1] === ")" ? this.isBefore(s, n) : !this.isAfter(s, n))) : !1;
|
|
1917
1917
|
}
|
|
1918
1918
|
function es(e, t) {
|
|
1919
|
-
var n = L(e) ? e :
|
|
1919
|
+
var n = L(e) ? e : v(e), r;
|
|
1920
1920
|
return this.isValid() && n.isValid() ? (t = R(t) || "millisecond", t === "millisecond" ? this.valueOf() === n.valueOf() : (r = n.valueOf(), this.clone().startOf(t).valueOf() <= r && r <= this.clone().endOf(t).valueOf())) : !1;
|
|
1921
1921
|
}
|
|
1922
1922
|
function ts(e, t) {
|
|
@@ -1996,16 +1996,16 @@ function os(e) {
|
|
|
1996
1996
|
return this.localeData().postformat(t);
|
|
1997
1997
|
}
|
|
1998
1998
|
function us(e, t) {
|
|
1999
|
-
return this.isValid() && (L(e) && e.isValid() ||
|
|
1999
|
+
return this.isValid() && (L(e) && e.isValid() || v(e).isValid()) ? W({ to: this, from: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
|
|
2000
2000
|
}
|
|
2001
2001
|
function ls(e) {
|
|
2002
|
-
return this.from(
|
|
2002
|
+
return this.from(v(), e);
|
|
2003
2003
|
}
|
|
2004
|
-
function
|
|
2005
|
-
return this.isValid() && (L(e) && e.isValid() ||
|
|
2004
|
+
function ds(e, t) {
|
|
2005
|
+
return this.isValid() && (L(e) && e.isValid() || v(e).isValid()) ? W({ from: this, to: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
|
|
2006
2006
|
}
|
|
2007
|
-
function
|
|
2008
|
-
return this.to(
|
|
2007
|
+
function cs(e) {
|
|
2008
|
+
return this.to(v(), e);
|
|
2009
2009
|
}
|
|
2010
2010
|
function _n(e) {
|
|
2011
2011
|
var t;
|
|
@@ -2020,21 +2020,21 @@ var mn = N(
|
|
|
2020
2020
|
function yn() {
|
|
2021
2021
|
return this._locale;
|
|
2022
2022
|
}
|
|
2023
|
-
var Pe = 1e3,
|
|
2024
|
-
function
|
|
2023
|
+
var Pe = 1e3, de = 60 * Pe, Ee = 60 * de, gn = (365 * 400 + 97) * 24 * Ee;
|
|
2024
|
+
function ce(e, t) {
|
|
2025
2025
|
return (e % t + t) % t;
|
|
2026
2026
|
}
|
|
2027
2027
|
function pn(e, t, n) {
|
|
2028
2028
|
return e < 100 && e >= 0 ? new Date(e + 400, t, n) - gn : new Date(e, t, n).valueOf();
|
|
2029
2029
|
}
|
|
2030
|
-
function
|
|
2030
|
+
function wn(e, t, n) {
|
|
2031
2031
|
return e < 100 && e >= 0 ? Date.UTC(e + 400, t, n) - gn : Date.UTC(e, t, n);
|
|
2032
2032
|
}
|
|
2033
2033
|
function hs(e) {
|
|
2034
2034
|
var t, n;
|
|
2035
2035
|
if (e = R(e), e === void 0 || e === "millisecond" || !this.isValid())
|
|
2036
2036
|
return this;
|
|
2037
|
-
switch (n = this._isUTC ?
|
|
2037
|
+
switch (n = this._isUTC ? wn : pn, e) {
|
|
2038
2038
|
case "year":
|
|
2039
2039
|
t = n(this.year(), 0, 1);
|
|
2040
2040
|
break;
|
|
@@ -2067,16 +2067,16 @@ function hs(e) {
|
|
|
2067
2067
|
t = n(this.year(), this.month(), this.date());
|
|
2068
2068
|
break;
|
|
2069
2069
|
case "hour":
|
|
2070
|
-
t = this._d.valueOf(), t -=
|
|
2071
|
-
t + (this._isUTC ? 0 : this.utcOffset() *
|
|
2070
|
+
t = this._d.valueOf(), t -= ce(
|
|
2071
|
+
t + (this._isUTC ? 0 : this.utcOffset() * de),
|
|
2072
2072
|
Ee
|
|
2073
2073
|
);
|
|
2074
2074
|
break;
|
|
2075
2075
|
case "minute":
|
|
2076
|
-
t = this._d.valueOf(), t -=
|
|
2076
|
+
t = this._d.valueOf(), t -= ce(t, de);
|
|
2077
2077
|
break;
|
|
2078
2078
|
case "second":
|
|
2079
|
-
t = this._d.valueOf(), t -=
|
|
2079
|
+
t = this._d.valueOf(), t -= ce(t, Pe);
|
|
2080
2080
|
break;
|
|
2081
2081
|
}
|
|
2082
2082
|
return this._d.setTime(t), u.updateOffset(this, !0), this;
|
|
@@ -2085,7 +2085,7 @@ function fs(e) {
|
|
|
2085
2085
|
var t, n;
|
|
2086
2086
|
if (e = R(e), e === void 0 || e === "millisecond" || !this.isValid())
|
|
2087
2087
|
return this;
|
|
2088
|
-
switch (n = this._isUTC ?
|
|
2088
|
+
switch (n = this._isUTC ? wn : pn, e) {
|
|
2089
2089
|
case "year":
|
|
2090
2090
|
t = n(this.year() + 1, 0, 1) - 1;
|
|
2091
2091
|
break;
|
|
@@ -2118,16 +2118,16 @@ function fs(e) {
|
|
|
2118
2118
|
t = n(this.year(), this.month(), this.date() + 1) - 1;
|
|
2119
2119
|
break;
|
|
2120
2120
|
case "hour":
|
|
2121
|
-
t = this._d.valueOf(), t += Ee -
|
|
2122
|
-
t + (this._isUTC ? 0 : this.utcOffset() *
|
|
2121
|
+
t = this._d.valueOf(), t += Ee - ce(
|
|
2122
|
+
t + (this._isUTC ? 0 : this.utcOffset() * de),
|
|
2123
2123
|
Ee
|
|
2124
2124
|
) - 1;
|
|
2125
2125
|
break;
|
|
2126
2126
|
case "minute":
|
|
2127
|
-
t = this._d.valueOf(), t +=
|
|
2127
|
+
t = this._d.valueOf(), t += de - ce(t, de) - 1;
|
|
2128
2128
|
break;
|
|
2129
2129
|
case "second":
|
|
2130
|
-
t = this._d.valueOf(), t += Pe -
|
|
2130
|
+
t = this._d.valueOf(), t += Pe - ce(t, Pe) - 1;
|
|
2131
2131
|
break;
|
|
2132
2132
|
}
|
|
2133
2133
|
return this._d.setTime(t), u.updateOffset(this, !0), this;
|
|
@@ -2165,10 +2165,10 @@ function ps() {
|
|
|
2165
2165
|
milliseconds: e.milliseconds()
|
|
2166
2166
|
};
|
|
2167
2167
|
}
|
|
2168
|
-
function
|
|
2168
|
+
function ws() {
|
|
2169
2169
|
return this.isValid() ? this.toISOString() : null;
|
|
2170
2170
|
}
|
|
2171
|
-
function
|
|
2171
|
+
function vs() {
|
|
2172
2172
|
return ut(this);
|
|
2173
2173
|
}
|
|
2174
2174
|
function Ms() {
|
|
@@ -2186,34 +2186,34 @@ function bs() {
|
|
|
2186
2186
|
strict: this._strict
|
|
2187
2187
|
};
|
|
2188
2188
|
}
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2189
|
+
c("N", 0, 0, "eraAbbr");
|
|
2190
|
+
c("NN", 0, 0, "eraAbbr");
|
|
2191
|
+
c("NNN", 0, 0, "eraAbbr");
|
|
2192
|
+
c("NNNN", 0, 0, "eraName");
|
|
2193
|
+
c("NNNNN", 0, 0, "eraNarrow");
|
|
2194
|
+
c("y", ["y", 1], "yo", "eraYear");
|
|
2195
|
+
c("y", ["yy", 2], 0, "eraYear");
|
|
2196
|
+
c("y", ["yyy", 3], 0, "eraYear");
|
|
2197
|
+
c("y", ["yyyy", 4], 0, "eraYear");
|
|
2198
|
+
d("N", St);
|
|
2199
|
+
d("NN", St);
|
|
2200
|
+
d("NNN", St);
|
|
2201
|
+
d("NNNN", Es);
|
|
2202
|
+
d("NNNNN", Ls);
|
|
2203
|
+
w(
|
|
2204
2204
|
["N", "NN", "NNN", "NNNN", "NNNNN"],
|
|
2205
2205
|
function(e, t, n, r) {
|
|
2206
2206
|
var a = n._locale.erasParse(e, r, n._strict);
|
|
2207
2207
|
a ? f(n).era = a : f(n).invalidEra = e;
|
|
2208
2208
|
}
|
|
2209
2209
|
);
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2210
|
+
d("y", he);
|
|
2211
|
+
d("yy", he);
|
|
2212
|
+
d("yyy", he);
|
|
2213
|
+
d("yyyy", he);
|
|
2214
|
+
d("yo", Ws);
|
|
2215
|
+
w(["y", "yy", "yyy", "yyyy"], D);
|
|
2216
|
+
w(["yo"], function(e, t, n, r) {
|
|
2217
2217
|
var a;
|
|
2218
2218
|
n._locale._eraYearOrdinalRegex && (a = e.match(n._locale._eraYearOrdinalRegex)), n._locale.eraYearOrdinalParse ? t[D] = n._locale.eraYearOrdinalParse(e, a) : t[D] = parseInt(e, 10);
|
|
2219
2219
|
});
|
|
@@ -2321,27 +2321,27 @@ function Ot() {
|
|
|
2321
2321
|
"i"
|
|
2322
2322
|
);
|
|
2323
2323
|
}
|
|
2324
|
-
|
|
2324
|
+
c(0, ["gg", 2], 0, function() {
|
|
2325
2325
|
return this.weekYear() % 100;
|
|
2326
2326
|
});
|
|
2327
|
-
|
|
2327
|
+
c(0, ["GG", 2], 0, function() {
|
|
2328
2328
|
return this.isoWeekYear() % 100;
|
|
2329
2329
|
});
|
|
2330
2330
|
function qe(e, t) {
|
|
2331
|
-
|
|
2331
|
+
c(0, [e, e.length], 0, t);
|
|
2332
2332
|
}
|
|
2333
2333
|
qe("gggg", "weekYear");
|
|
2334
2334
|
qe("ggggg", "weekYear");
|
|
2335
2335
|
qe("GGGG", "isoWeekYear");
|
|
2336
2336
|
qe("GGGGG", "isoWeekYear");
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2337
|
+
d("G", Ue);
|
|
2338
|
+
d("g", Ue);
|
|
2339
|
+
d("GG", M, x);
|
|
2340
|
+
d("gg", M, x);
|
|
2341
|
+
d("GGGG", _t, ft);
|
|
2342
|
+
d("gggg", _t, ft);
|
|
2343
|
+
d("GGGGG", Fe, He);
|
|
2344
|
+
d("ggggg", Fe, He);
|
|
2345
2345
|
De(
|
|
2346
2346
|
["gggg", "ggggg", "GGGG", "GGGGG"],
|
|
2347
2347
|
function(e, t, n, r) {
|
|
@@ -2352,7 +2352,7 @@ De(["gg", "GG"], function(e, t, n, r) {
|
|
|
2352
2352
|
t[r] = u.parseTwoDigitYear(e);
|
|
2353
2353
|
});
|
|
2354
2354
|
function Hs(e) {
|
|
2355
|
-
return
|
|
2355
|
+
return vn.call(
|
|
2356
2356
|
this,
|
|
2357
2357
|
e,
|
|
2358
2358
|
this.week(),
|
|
@@ -2362,7 +2362,7 @@ function Hs(e) {
|
|
|
2362
2362
|
);
|
|
2363
2363
|
}
|
|
2364
2364
|
function As(e) {
|
|
2365
|
-
return
|
|
2365
|
+
return vn.call(
|
|
2366
2366
|
this,
|
|
2367
2367
|
e,
|
|
2368
2368
|
this.isoWeek(),
|
|
@@ -2385,37 +2385,37 @@ function js() {
|
|
|
2385
2385
|
var e = this.localeData()._week;
|
|
2386
2386
|
return B(this.weekYear(), e.dow, e.doy);
|
|
2387
2387
|
}
|
|
2388
|
-
function
|
|
2388
|
+
function vn(e, t, n, r, a) {
|
|
2389
2389
|
var s;
|
|
2390
|
-
return e == null ?
|
|
2390
|
+
return e == null ? ve(this, r, a).year : (s = B(e, r, a), t > s && (t = s), Gs.call(this, e, t, n, r, a));
|
|
2391
2391
|
}
|
|
2392
2392
|
function Gs(e, t, n, r, a) {
|
|
2393
|
-
var s = Xt(e, t, n, r, a), i =
|
|
2393
|
+
var s = Xt(e, t, n, r, a), i = we(s.year, 0, s.dayOfYear);
|
|
2394
2394
|
return this.year(i.getUTCFullYear()), this.month(i.getUTCMonth()), this.date(i.getUTCDate()), this;
|
|
2395
2395
|
}
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2396
|
+
c("Q", 0, "Qo", "quarter");
|
|
2397
|
+
d("Q", It);
|
|
2398
|
+
w("Q", function(e, t) {
|
|
2399
2399
|
t[q] = (_(e) - 1) * 3;
|
|
2400
2400
|
});
|
|
2401
2401
|
function Vs(e) {
|
|
2402
2402
|
return e == null ? Math.ceil((this.month() + 1) / 3) : this.month((e - 1) * 3 + this.month() % 3);
|
|
2403
2403
|
}
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2404
|
+
c("D", ["DD", 2], "Do", "date");
|
|
2405
|
+
d("D", M, fe);
|
|
2406
|
+
d("DD", M, x);
|
|
2407
|
+
d("Do", function(e, t) {
|
|
2408
2408
|
return e ? t._dayOfMonthOrdinalParse || t._ordinalParse : t._dayOfMonthOrdinalParseLenient;
|
|
2409
2409
|
});
|
|
2410
|
-
|
|
2411
|
-
|
|
2410
|
+
w(["D", "DD"], H);
|
|
2411
|
+
w("Do", function(e, t) {
|
|
2412
2412
|
t[H] = _(e.match(M)[0]);
|
|
2413
2413
|
});
|
|
2414
2414
|
var Mn = _e("Date", !0);
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2415
|
+
c("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
|
|
2416
|
+
d("DDD", Ae);
|
|
2417
|
+
d("DDDD", jt);
|
|
2418
|
+
w(["DDD", "DDDD"], function(e, t, n) {
|
|
2419
2419
|
n._dayOfYear = _(e);
|
|
2420
2420
|
});
|
|
2421
2421
|
function qs(e) {
|
|
@@ -2424,55 +2424,55 @@ function qs(e) {
|
|
|
2424
2424
|
) + 1;
|
|
2425
2425
|
return e == null ? t : this.add(e - t, "d");
|
|
2426
2426
|
}
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2427
|
+
c("m", ["mm", 2], 0, "minute");
|
|
2428
|
+
d("m", M, mt);
|
|
2429
|
+
d("mm", M, x);
|
|
2430
|
+
w(["m", "mm"], P);
|
|
2431
2431
|
var zs = _e("Minutes", !1);
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2432
|
+
c("s", ["ss", 2], 0, "second");
|
|
2433
|
+
d("s", M, mt);
|
|
2434
|
+
d("ss", M, x);
|
|
2435
|
+
w(["s", "ss"], z);
|
|
2436
2436
|
var Zs = _e("Seconds", !1);
|
|
2437
|
-
|
|
2437
|
+
c("S", 0, 0, function() {
|
|
2438
2438
|
return ~~(this.millisecond() / 100);
|
|
2439
2439
|
});
|
|
2440
|
-
|
|
2440
|
+
c(0, ["SS", 2], 0, function() {
|
|
2441
2441
|
return ~~(this.millisecond() / 10);
|
|
2442
2442
|
});
|
|
2443
|
-
|
|
2444
|
-
|
|
2443
|
+
c(0, ["SSS", 3], 0, "millisecond");
|
|
2444
|
+
c(0, ["SSSS", 4], 0, function() {
|
|
2445
2445
|
return this.millisecond() * 10;
|
|
2446
2446
|
});
|
|
2447
|
-
|
|
2447
|
+
c(0, ["SSSSS", 5], 0, function() {
|
|
2448
2448
|
return this.millisecond() * 100;
|
|
2449
2449
|
});
|
|
2450
|
-
|
|
2450
|
+
c(0, ["SSSSSS", 6], 0, function() {
|
|
2451
2451
|
return this.millisecond() * 1e3;
|
|
2452
2452
|
});
|
|
2453
|
-
|
|
2453
|
+
c(0, ["SSSSSSS", 7], 0, function() {
|
|
2454
2454
|
return this.millisecond() * 1e4;
|
|
2455
2455
|
});
|
|
2456
|
-
|
|
2456
|
+
c(0, ["SSSSSSSS", 8], 0, function() {
|
|
2457
2457
|
return this.millisecond() * 1e5;
|
|
2458
2458
|
});
|
|
2459
|
-
|
|
2459
|
+
c(0, ["SSSSSSSSS", 9], 0, function() {
|
|
2460
2460
|
return this.millisecond() * 1e6;
|
|
2461
2461
|
});
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2462
|
+
d("S", Ae, It);
|
|
2463
|
+
d("SS", Ae, x);
|
|
2464
|
+
d("SSS", Ae, jt);
|
|
2465
2465
|
var ee, kn;
|
|
2466
2466
|
for (ee = "SSSS"; ee.length <= 9; ee += "S")
|
|
2467
|
-
|
|
2467
|
+
d(ee, he);
|
|
2468
2468
|
function Bs(e, t) {
|
|
2469
2469
|
t[re] = _(("0." + e) * 1e3);
|
|
2470
2470
|
}
|
|
2471
2471
|
for (ee = "S"; ee.length <= 9; ee += "S")
|
|
2472
|
-
|
|
2472
|
+
w(ee, Bs);
|
|
2473
2473
|
kn = _e("Milliseconds", !1);
|
|
2474
|
-
|
|
2475
|
-
|
|
2474
|
+
c("z", 0, 0, "zoneAbbr");
|
|
2475
|
+
c("zz", 0, 0, "zoneName");
|
|
2476
2476
|
function $s() {
|
|
2477
2477
|
return this._isUTC ? "UTC" : "";
|
|
2478
2478
|
}
|
|
@@ -2488,8 +2488,8 @@ o.endOf = fs;
|
|
|
2488
2488
|
o.format = os;
|
|
2489
2489
|
o.from = us;
|
|
2490
2490
|
o.fromNow = ls;
|
|
2491
|
-
o.to =
|
|
2492
|
-
o.toNow =
|
|
2491
|
+
o.to = ds;
|
|
2492
|
+
o.toNow = cs;
|
|
2493
2493
|
o.get = ir;
|
|
2494
2494
|
o.invalidAt = ks;
|
|
2495
2495
|
o.isAfter = Qa;
|
|
@@ -2498,12 +2498,12 @@ o.isBetween = Ka;
|
|
|
2498
2498
|
o.isSame = es;
|
|
2499
2499
|
o.isSameOrAfter = ts;
|
|
2500
2500
|
o.isSameOrBefore = ns;
|
|
2501
|
-
o.isValid =
|
|
2501
|
+
o.isValid = vs;
|
|
2502
2502
|
o.lang = mn;
|
|
2503
2503
|
o.locale = _n;
|
|
2504
2504
|
o.localeData = yn;
|
|
2505
|
-
o.max =
|
|
2506
|
-
o.min =
|
|
2505
|
+
o.max = va;
|
|
2506
|
+
o.min = wa;
|
|
2507
2507
|
o.parsingFlags = Ms;
|
|
2508
2508
|
o.set = or;
|
|
2509
2509
|
o.startOf = hs;
|
|
@@ -2516,7 +2516,7 @@ o.inspect = is;
|
|
|
2516
2516
|
typeof Symbol < "u" && Symbol.for != null && (o[Symbol.for("nodejs.util.inspect.custom")] = function() {
|
|
2517
2517
|
return "Moment<" + this.format() + ">";
|
|
2518
2518
|
});
|
|
2519
|
-
o.toJSON =
|
|
2519
|
+
o.toJSON = ws;
|
|
2520
2520
|
o.toString = as;
|
|
2521
2521
|
o.unix = ms;
|
|
2522
2522
|
o.valueOf = _s;
|
|
@@ -2555,8 +2555,8 @@ o.hasAlignedHourOffset = Ea;
|
|
|
2555
2555
|
o.isDST = La;
|
|
2556
2556
|
o.isLocal = Ha;
|
|
2557
2557
|
o.isUtcOffset = Aa;
|
|
2558
|
-
o.isUtc =
|
|
2559
|
-
o.isUTC =
|
|
2558
|
+
o.isUtc = dn;
|
|
2559
|
+
o.isUTC = dn;
|
|
2560
2560
|
o.zoneAbbr = $s;
|
|
2561
2561
|
o.zoneName = Js;
|
|
2562
2562
|
o.dates = N(
|
|
@@ -2580,15 +2580,15 @@ o.isDSTShifted = N(
|
|
|
2580
2580
|
Wa
|
|
2581
2581
|
);
|
|
2582
2582
|
function Qs(e) {
|
|
2583
|
-
return
|
|
2583
|
+
return v(e * 1e3);
|
|
2584
2584
|
}
|
|
2585
2585
|
function Xs() {
|
|
2586
|
-
return
|
|
2586
|
+
return v.apply(null, arguments).parseZone();
|
|
2587
2587
|
}
|
|
2588
2588
|
function bn(e) {
|
|
2589
2589
|
return e;
|
|
2590
2590
|
}
|
|
2591
|
-
var p =
|
|
2591
|
+
var p = dt.prototype;
|
|
2592
2592
|
p.calendar = Hn;
|
|
2593
2593
|
p.longDateFormat = In;
|
|
2594
2594
|
p.invalidDate = Gn;
|
|
@@ -2609,7 +2609,7 @@ p.monthsShort = fr;
|
|
|
2609
2609
|
p.monthsParse = mr;
|
|
2610
2610
|
p.monthsRegex = pr;
|
|
2611
2611
|
p.monthsShortRegex = gr;
|
|
2612
|
-
p.week =
|
|
2612
|
+
p.week = vr;
|
|
2613
2613
|
p.firstDayOfYear = br;
|
|
2614
2614
|
p.firstDayOfWeek = kr;
|
|
2615
2615
|
p.weekdays = Pr;
|
|
@@ -2754,11 +2754,11 @@ function Q(e) {
|
|
|
2754
2754
|
return this.as(e);
|
|
2755
2755
|
};
|
|
2756
2756
|
}
|
|
2757
|
-
var On = Q("ms"), li = Q("s"),
|
|
2757
|
+
var On = Q("ms"), li = Q("s"), di = Q("m"), ci = Q("h"), hi = Q("d"), fi = Q("w"), _i = Q("M"), mi = Q("Q"), yi = Q("y"), gi = On;
|
|
2758
2758
|
function pi() {
|
|
2759
2759
|
return W(this);
|
|
2760
2760
|
}
|
|
2761
|
-
function
|
|
2761
|
+
function wi(e) {
|
|
2762
2762
|
return e = R(e), this.isValid() ? this[e + "s"]() : NaN;
|
|
2763
2763
|
}
|
|
2764
2764
|
function se(e) {
|
|
@@ -2766,7 +2766,7 @@ function se(e) {
|
|
|
2766
2766
|
return this.isValid() ? this._data[e] : NaN;
|
|
2767
2767
|
};
|
|
2768
2768
|
}
|
|
2769
|
-
var
|
|
2769
|
+
var vi = se("milliseconds"), Mi = se("seconds"), ki = se("minutes"), bi = se("hours"), Yi = se("days"), Di = se("months"), Si = se("years");
|
|
2770
2770
|
function Oi() {
|
|
2771
2771
|
return C(this.days() / 7);
|
|
2772
2772
|
}
|
|
@@ -2823,8 +2823,8 @@ y.subtract = ii;
|
|
|
2823
2823
|
y.as = ui;
|
|
2824
2824
|
y.asMilliseconds = On;
|
|
2825
2825
|
y.asSeconds = li;
|
|
2826
|
-
y.asMinutes =
|
|
2827
|
-
y.asHours =
|
|
2826
|
+
y.asMinutes = di;
|
|
2827
|
+
y.asHours = ci;
|
|
2828
2828
|
y.asDays = hi;
|
|
2829
2829
|
y.asWeeks = fi;
|
|
2830
2830
|
y.asMonths = _i;
|
|
@@ -2833,8 +2833,8 @@ y.asYears = yi;
|
|
|
2833
2833
|
y.valueOf = gi;
|
|
2834
2834
|
y._bubble = oi;
|
|
2835
2835
|
y.clone = pi;
|
|
2836
|
-
y.get =
|
|
2837
|
-
y.milliseconds =
|
|
2836
|
+
y.get = wi;
|
|
2837
|
+
y.milliseconds = vi;
|
|
2838
2838
|
y.seconds = Mi;
|
|
2839
2839
|
y.minutes = ki;
|
|
2840
2840
|
y.hours = bi;
|
|
@@ -2853,19 +2853,19 @@ y.toIsoString = N(
|
|
|
2853
2853
|
ze
|
|
2854
2854
|
);
|
|
2855
2855
|
y.lang = mn;
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2856
|
+
c("X", 0, 0, "unix");
|
|
2857
|
+
c("x", 0, 0, "valueOf");
|
|
2858
|
+
d("x", Ue);
|
|
2859
|
+
d("X", Kn);
|
|
2860
|
+
w("X", function(e, t, n) {
|
|
2861
2861
|
n._d = new Date(parseFloat(e) * 1e3);
|
|
2862
2862
|
});
|
|
2863
|
-
|
|
2863
|
+
w("x", function(e, t, n) {
|
|
2864
2864
|
n._d = new Date(_(e));
|
|
2865
2865
|
});
|
|
2866
2866
|
//! moment.js
|
|
2867
2867
|
u.version = "2.30.1";
|
|
2868
|
-
Pn(
|
|
2868
|
+
Pn(v);
|
|
2869
2869
|
u.fn = o;
|
|
2870
2870
|
u.min = Ma;
|
|
2871
2871
|
u.max = ka;
|
|
@@ -2884,7 +2884,7 @@ u.localeData = J;
|
|
|
2884
2884
|
u.isDuration = xe;
|
|
2885
2885
|
u.monthsShort = ei;
|
|
2886
2886
|
u.weekdaysMin = ri;
|
|
2887
|
-
u.defineLocale =
|
|
2887
|
+
u.defineLocale = vt;
|
|
2888
2888
|
u.updateLocale = Xr;
|
|
2889
2889
|
u.locales = Kr;
|
|
2890
2890
|
u.weekdaysShort = ni;
|