@opfr/utils-type 0.10.0 → 0.11.0
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 +1367 -1400
- package/dist/index.umd.js +5 -5
- package/package.json +5 -5
package/dist/index.es.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
var
|
|
2
|
-
const
|
|
3
|
-
BASIC: { color: "#fff", strength: 0, id:
|
|
4
|
-
COMMON: { color: "#813D31", strength: 1, id:
|
|
5
|
-
RARE: { color: "#5B6870", strength: 2, id:
|
|
6
|
-
EPIC: { color: "#C46619", strength: 3, id:
|
|
7
|
-
LEGENDARY: { color: "#88A3CB", strength: 4, id:
|
|
8
|
-
MYTHIC: { color: "#F6bF62", strength: 5, id:
|
|
9
|
-
},
|
|
1
|
+
var pe = /* @__PURE__ */ ((e) => (e.BASIC = "BASIC", e.COMMON = "COMMON", e.RARE = "RARE", e.EPIC = "EPIC", e.LEGENDARY = "LEGENDARY", e.MYTHIC = "MYTHIC", e))(pe || {});
|
|
2
|
+
const au = {
|
|
3
|
+
BASIC: { color: "#fff", strength: 0, id: pe.BASIC },
|
|
4
|
+
COMMON: { color: "#813D31", strength: 1, id: pe.COMMON },
|
|
5
|
+
RARE: { color: "#5B6870", strength: 2, id: pe.RARE },
|
|
6
|
+
EPIC: { color: "#C46619", strength: 3, id: pe.EPIC },
|
|
7
|
+
LEGENDARY: { color: "#88A3CB", strength: 4, id: pe.LEGENDARY },
|
|
8
|
+
MYTHIC: { color: "#F6bF62", strength: 5, id: pe.MYTHIC }
|
|
9
|
+
}, ou = [
|
|
10
10
|
"vitality",
|
|
11
11
|
"strength",
|
|
12
12
|
"agility",
|
|
13
13
|
"intelligence",
|
|
14
14
|
"chance",
|
|
15
15
|
"wisdom"
|
|
16
|
-
],
|
|
16
|
+
], uu = 10, Ns = 1, lu = [
|
|
17
17
|
[200, 4],
|
|
18
18
|
[100, 3],
|
|
19
19
|
[50, 2],
|
|
20
|
-
[0,
|
|
21
|
-
],
|
|
20
|
+
[0, Ns]
|
|
21
|
+
], du = 100, hu = 10, cu = {
|
|
22
22
|
pirate: {
|
|
23
23
|
name: "pirate",
|
|
24
24
|
color: "#8A1623",
|
|
@@ -39,155 +39,62 @@ const ru = {
|
|
|
39
39
|
color: "#fff",
|
|
40
40
|
role: "1147953458507423874"
|
|
41
41
|
}
|
|
42
|
-
},
|
|
43
|
-
type: "logger",
|
|
44
|
-
log(e) {
|
|
45
|
-
this.output("log", e);
|
|
46
|
-
},
|
|
47
|
-
warn(e) {
|
|
48
|
-
this.output("warn", e);
|
|
49
|
-
},
|
|
50
|
-
error(e) {
|
|
51
|
-
this.output("error", e);
|
|
52
|
-
},
|
|
53
|
-
output(e, t) {
|
|
54
|
-
console && console[e] && console[e].apply(console, t);
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
class st {
|
|
58
|
-
constructor(t) {
|
|
59
|
-
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
60
|
-
this.init(t, n);
|
|
61
|
-
}
|
|
62
|
-
init(t) {
|
|
63
|
-
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
64
|
-
this.prefix = n.prefix || "i18next:", this.logger = t || Ns, this.options = n, this.debug = n.debug;
|
|
65
|
-
}
|
|
66
|
-
log() {
|
|
67
|
-
for (var t = arguments.length, n = new Array(t), s = 0; s < t; s++)
|
|
68
|
-
n[s] = arguments[s];
|
|
69
|
-
return this.forward(n, "log", "", !0);
|
|
70
|
-
}
|
|
71
|
-
warn() {
|
|
72
|
-
for (var t = arguments.length, n = new Array(t), s = 0; s < t; s++)
|
|
73
|
-
n[s] = arguments[s];
|
|
74
|
-
return this.forward(n, "warn", "", !0);
|
|
75
|
-
}
|
|
76
|
-
error() {
|
|
77
|
-
for (var t = arguments.length, n = new Array(t), s = 0; s < t; s++)
|
|
78
|
-
n[s] = arguments[s];
|
|
79
|
-
return this.forward(n, "error", "");
|
|
80
|
-
}
|
|
81
|
-
deprecate() {
|
|
82
|
-
for (var t = arguments.length, n = new Array(t), s = 0; s < t; s++)
|
|
83
|
-
n[s] = arguments[s];
|
|
84
|
-
return this.forward(n, "warn", "WARNING DEPRECATED: ", !0);
|
|
85
|
-
}
|
|
86
|
-
forward(t, n, s, i) {
|
|
87
|
-
return i && !this.debug ? null : (typeof t[0] == "string" && (t[0] = `${s}${this.prefix} ${t[0]}`), this.logger[n](t));
|
|
88
|
-
}
|
|
89
|
-
create(t) {
|
|
90
|
-
return new st(this.logger, {
|
|
91
|
-
prefix: `${this.prefix}:${t}:`,
|
|
92
|
-
...this.options
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
clone(t) {
|
|
96
|
-
return t = t || this.options, t.prefix = t.prefix || this.prefix, new st(this.logger, t);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
var Z = new st();
|
|
100
|
-
class ct {
|
|
101
|
-
constructor() {
|
|
102
|
-
this.observers = {};
|
|
103
|
-
}
|
|
104
|
-
on(t, n) {
|
|
105
|
-
return t.split(" ").forEach((s) => {
|
|
106
|
-
this.observers[s] || (this.observers[s] = /* @__PURE__ */ new Map());
|
|
107
|
-
const i = this.observers[s].get(n) || 0;
|
|
108
|
-
this.observers[s].set(n, i + 1);
|
|
109
|
-
}), this;
|
|
110
|
-
}
|
|
111
|
-
off(t, n) {
|
|
112
|
-
if (this.observers[t]) {
|
|
113
|
-
if (!n) {
|
|
114
|
-
delete this.observers[t];
|
|
115
|
-
return;
|
|
116
|
-
}
|
|
117
|
-
this.observers[t].delete(n);
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
emit(t) {
|
|
121
|
-
for (var n = arguments.length, s = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
|
|
122
|
-
s[i - 1] = arguments[i];
|
|
123
|
-
this.observers[t] && Array.from(this.observers[t].entries()).forEach((a) => {
|
|
124
|
-
let [o, u] = a;
|
|
125
|
-
for (let l = 0; l < u; l++)
|
|
126
|
-
o(...s);
|
|
127
|
-
}), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach((a) => {
|
|
128
|
-
let [o, u] = a;
|
|
129
|
-
for (let l = 0; l < u; l++)
|
|
130
|
-
o.apply(o, [t, ...s]);
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
const Te = () => {
|
|
42
|
+
}, fu = "citizen", gu = ["category", "alpha", "quantity"], mu = (e, t) => t === null ? null : e === t ? `-${e}` : t, _ = (e) => typeof e == "string", Fe = () => {
|
|
135
43
|
let e, t;
|
|
136
44
|
const n = new Promise((s, i) => {
|
|
137
45
|
e = s, t = i;
|
|
138
46
|
});
|
|
139
47
|
return n.resolve = e, n.reject = t, n;
|
|
140
|
-
},
|
|
48
|
+
}, mn = (e) => e == null ? "" : "" + e, Cs = (e, t, n) => {
|
|
141
49
|
e.forEach((s) => {
|
|
142
50
|
t[s] && (n[s] = t[s]);
|
|
143
51
|
});
|
|
144
|
-
}, Ls = /###/g,
|
|
145
|
-
const s =
|
|
52
|
+
}, Ls = /###/g, pn = (e) => e && e.indexOf("###") > -1 ? e.replace(Ls, ".") : e, yn = (e) => !e || _(e), je = (e, t, n) => {
|
|
53
|
+
const s = _(t) ? t.split(".") : t;
|
|
146
54
|
let i = 0;
|
|
147
55
|
for (; i < s.length - 1; ) {
|
|
148
|
-
if (
|
|
149
|
-
|
|
150
|
-
const r = mn(s[i]);
|
|
56
|
+
if (yn(e)) return {};
|
|
57
|
+
const r = pn(s[i]);
|
|
151
58
|
!e[r] && n && (e[r] = new n()), Object.prototype.hasOwnProperty.call(e, r) ? e = e[r] : e = {}, ++i;
|
|
152
59
|
}
|
|
153
|
-
return
|
|
60
|
+
return yn(e) ? {} : {
|
|
154
61
|
obj: e,
|
|
155
|
-
k:
|
|
62
|
+
k: pn(s[i])
|
|
156
63
|
};
|
|
157
|
-
},
|
|
64
|
+
}, _n = (e, t, n) => {
|
|
158
65
|
const {
|
|
159
66
|
obj: s,
|
|
160
67
|
k: i
|
|
161
|
-
} =
|
|
68
|
+
} = je(e, t, Object);
|
|
162
69
|
if (s !== void 0 || t.length === 1) {
|
|
163
70
|
s[i] = n;
|
|
164
71
|
return;
|
|
165
72
|
}
|
|
166
|
-
let r = t[t.length - 1], a = t.slice(0, t.length - 1), o =
|
|
73
|
+
let r = t[t.length - 1], a = t.slice(0, t.length - 1), o = je(e, a, Object);
|
|
167
74
|
for (; o.obj === void 0 && a.length; )
|
|
168
|
-
r = `${a[a.length - 1]}.${r}`, a = a.slice(0, a.length - 1), o =
|
|
75
|
+
r = `${a[a.length - 1]}.${r}`, a = a.slice(0, a.length - 1), o = je(e, a, Object), o && o.obj && typeof o.obj[`${o.k}.${r}`] < "u" && (o.obj = void 0);
|
|
169
76
|
o.obj[`${o.k}.${r}`] = n;
|
|
170
77
|
}, Rs = (e, t, n, s) => {
|
|
171
78
|
const {
|
|
172
79
|
obj: i,
|
|
173
80
|
k: r
|
|
174
|
-
} =
|
|
81
|
+
} = je(e, t, Object);
|
|
175
82
|
i[r] = i[r] || [], i[r].push(n);
|
|
176
83
|
}, it = (e, t) => {
|
|
177
84
|
const {
|
|
178
85
|
obj: n,
|
|
179
86
|
k: s
|
|
180
|
-
} =
|
|
87
|
+
} = je(e, t);
|
|
181
88
|
if (n)
|
|
182
89
|
return n[s];
|
|
183
90
|
}, Ps = (e, t, n) => {
|
|
184
91
|
const s = it(e, n);
|
|
185
92
|
return s !== void 0 ? s : it(t, n);
|
|
186
|
-
},
|
|
93
|
+
}, Pn = (e, t, n) => {
|
|
187
94
|
for (const s in t)
|
|
188
|
-
s !== "__proto__" && s !== "constructor" && (s in e ?
|
|
95
|
+
s !== "__proto__" && s !== "constructor" && (s in e ? _(e[s]) || e[s] instanceof String || _(t[s]) || t[s] instanceof String ? n && (e[s] = t[s]) : Pn(e[s], t[s], n) : e[s] = t[s]);
|
|
189
96
|
return e;
|
|
190
|
-
},
|
|
97
|
+
}, we = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
191
98
|
var Ts = {
|
|
192
99
|
"&": "&",
|
|
193
100
|
"<": "<",
|
|
@@ -196,7 +103,7 @@ var Ts = {
|
|
|
196
103
|
"'": "'",
|
|
197
104
|
"/": "/"
|
|
198
105
|
};
|
|
199
|
-
const Es = (e) =>
|
|
106
|
+
const Es = (e) => _(e) ? e.replace(/[&<>"'\/]/g, (t) => Ts[t]) : e;
|
|
200
107
|
class Fs {
|
|
201
108
|
constructor(t) {
|
|
202
109
|
this.capacity = t, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
@@ -212,8 +119,7 @@ class Fs {
|
|
|
212
119
|
const As = [" ", ",", "?", "!", ";"], Is = new Fs(20), js = (e, t, n) => {
|
|
213
120
|
t = t || "", n = n || "";
|
|
214
121
|
const s = As.filter((a) => t.indexOf(a) < 0 && n.indexOf(a) < 0);
|
|
215
|
-
if (s.length === 0)
|
|
216
|
-
return !0;
|
|
122
|
+
if (s.length === 0) return !0;
|
|
217
123
|
const i = Is.getRegExp(`(${s.map((a) => a === "?" ? "\\?" : a).join("|")})`);
|
|
218
124
|
let r = !i.test(e);
|
|
219
125
|
if (!r) {
|
|
@@ -221,12 +127,10 @@ const As = [" ", ",", "?", "!", ";"], Is = new Fs(20), js = (e, t, n) => {
|
|
|
221
127
|
a > 0 && !i.test(e.substring(0, a)) && (r = !0);
|
|
222
128
|
}
|
|
223
129
|
return r;
|
|
224
|
-
},
|
|
130
|
+
}, Et = function(e, t) {
|
|
225
131
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
|
|
226
|
-
if (!e)
|
|
227
|
-
|
|
228
|
-
if (e[t])
|
|
229
|
-
return e[t];
|
|
132
|
+
if (!e) return;
|
|
133
|
+
if (e[t]) return e[t];
|
|
230
134
|
const s = t.split(n);
|
|
231
135
|
let i = e;
|
|
232
136
|
for (let r = 0; r < s.length; ) {
|
|
@@ -243,8 +147,99 @@ const As = [" ", ",", "?", "!", ";"], Is = new Fs(20), js = (e, t, n) => {
|
|
|
243
147
|
i = a;
|
|
244
148
|
}
|
|
245
149
|
return i;
|
|
246
|
-
}, rt = (e) => e && e.replace("_", "-")
|
|
247
|
-
|
|
150
|
+
}, rt = (e) => e && e.replace("_", "-"), Us = {
|
|
151
|
+
type: "logger",
|
|
152
|
+
log(e) {
|
|
153
|
+
this.output("log", e);
|
|
154
|
+
},
|
|
155
|
+
warn(e) {
|
|
156
|
+
this.output("warn", e);
|
|
157
|
+
},
|
|
158
|
+
error(e) {
|
|
159
|
+
this.output("error", e);
|
|
160
|
+
},
|
|
161
|
+
output(e, t) {
|
|
162
|
+
console && console[e] && console[e].apply(console, t);
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
class at {
|
|
166
|
+
constructor(t) {
|
|
167
|
+
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
168
|
+
this.init(t, n);
|
|
169
|
+
}
|
|
170
|
+
init(t) {
|
|
171
|
+
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
172
|
+
this.prefix = n.prefix || "i18next:", this.logger = t || Us, this.options = n, this.debug = n.debug;
|
|
173
|
+
}
|
|
174
|
+
log() {
|
|
175
|
+
for (var t = arguments.length, n = new Array(t), s = 0; s < t; s++)
|
|
176
|
+
n[s] = arguments[s];
|
|
177
|
+
return this.forward(n, "log", "", !0);
|
|
178
|
+
}
|
|
179
|
+
warn() {
|
|
180
|
+
for (var t = arguments.length, n = new Array(t), s = 0; s < t; s++)
|
|
181
|
+
n[s] = arguments[s];
|
|
182
|
+
return this.forward(n, "warn", "", !0);
|
|
183
|
+
}
|
|
184
|
+
error() {
|
|
185
|
+
for (var t = arguments.length, n = new Array(t), s = 0; s < t; s++)
|
|
186
|
+
n[s] = arguments[s];
|
|
187
|
+
return this.forward(n, "error", "");
|
|
188
|
+
}
|
|
189
|
+
deprecate() {
|
|
190
|
+
for (var t = arguments.length, n = new Array(t), s = 0; s < t; s++)
|
|
191
|
+
n[s] = arguments[s];
|
|
192
|
+
return this.forward(n, "warn", "WARNING DEPRECATED: ", !0);
|
|
193
|
+
}
|
|
194
|
+
forward(t, n, s, i) {
|
|
195
|
+
return i && !this.debug ? null : (_(t[0]) && (t[0] = `${s}${this.prefix} ${t[0]}`), this.logger[n](t));
|
|
196
|
+
}
|
|
197
|
+
create(t) {
|
|
198
|
+
return new at(this.logger, {
|
|
199
|
+
prefix: `${this.prefix}:${t}:`,
|
|
200
|
+
...this.options
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
clone(t) {
|
|
204
|
+
return t = t || this.options, t.prefix = t.prefix || this.prefix, new at(this.logger, t);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
var Q = new at();
|
|
208
|
+
class ft {
|
|
209
|
+
constructor() {
|
|
210
|
+
this.observers = {};
|
|
211
|
+
}
|
|
212
|
+
on(t, n) {
|
|
213
|
+
return t.split(" ").forEach((s) => {
|
|
214
|
+
this.observers[s] || (this.observers[s] = /* @__PURE__ */ new Map());
|
|
215
|
+
const i = this.observers[s].get(n) || 0;
|
|
216
|
+
this.observers[s].set(n, i + 1);
|
|
217
|
+
}), this;
|
|
218
|
+
}
|
|
219
|
+
off(t, n) {
|
|
220
|
+
if (this.observers[t]) {
|
|
221
|
+
if (!n) {
|
|
222
|
+
delete this.observers[t];
|
|
223
|
+
return;
|
|
224
|
+
}
|
|
225
|
+
this.observers[t].delete(n);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
emit(t) {
|
|
229
|
+
for (var n = arguments.length, s = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
|
|
230
|
+
s[i - 1] = arguments[i];
|
|
231
|
+
this.observers[t] && Array.from(this.observers[t].entries()).forEach((a) => {
|
|
232
|
+
let [o, u] = a;
|
|
233
|
+
for (let l = 0; l < u; l++)
|
|
234
|
+
o(...s);
|
|
235
|
+
}), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach((a) => {
|
|
236
|
+
let [o, u] = a;
|
|
237
|
+
for (let l = 0; l < u; l++)
|
|
238
|
+
o.apply(o, [t, ...s]);
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
class vn extends ft {
|
|
248
243
|
constructor(t) {
|
|
249
244
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
250
245
|
ns: ["translation"],
|
|
@@ -263,9 +258,9 @@ class _n extends ct {
|
|
|
263
258
|
let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
264
259
|
const r = i.keySeparator !== void 0 ? i.keySeparator : this.options.keySeparator, a = i.ignoreJSONStructure !== void 0 ? i.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
265
260
|
let o;
|
|
266
|
-
t.indexOf(".") > -1 ? o = t.split(".") : (o = [t, n], s && (Array.isArray(s) ? o.push(...s) :
|
|
261
|
+
t.indexOf(".") > -1 ? o = t.split(".") : (o = [t, n], s && (Array.isArray(s) ? o.push(...s) : _(s) && r ? o.push(...s.split(r)) : o.push(s)));
|
|
267
262
|
const u = it(this.data, o);
|
|
268
|
-
return !u && !n && !s && t.indexOf(".") > -1 && (t = o[0], n = o[1], s = o.slice(2).join(".")), u || !a ||
|
|
263
|
+
return !u && !n && !s && t.indexOf(".") > -1 && (t = o[0], n = o[1], s = o.slice(2).join(".")), u || !a || !_(s) ? u : Et(this.data && this.data[t] && this.data[t][n], s, r);
|
|
269
264
|
}
|
|
270
265
|
addResource(t, n, s, i) {
|
|
271
266
|
let r = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
@@ -273,14 +268,14 @@ class _n extends ct {
|
|
|
273
268
|
};
|
|
274
269
|
const a = r.keySeparator !== void 0 ? r.keySeparator : this.options.keySeparator;
|
|
275
270
|
let o = [t, n];
|
|
276
|
-
s && (o = o.concat(a ? s.split(a) : s)), t.indexOf(".") > -1 && (o = t.split("."), i = n, n = o[1]), this.addNamespaces(n),
|
|
271
|
+
s && (o = o.concat(a ? s.split(a) : s)), t.indexOf(".") > -1 && (o = t.split("."), i = n, n = o[1]), this.addNamespaces(n), _n(this.data, o, i), r.silent || this.emit("added", t, n, s, i);
|
|
277
272
|
}
|
|
278
273
|
addResources(t, n, s) {
|
|
279
274
|
let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
|
|
280
275
|
silent: !1
|
|
281
276
|
};
|
|
282
277
|
for (const r in s)
|
|
283
|
-
(
|
|
278
|
+
(_(s[r]) || Array.isArray(s[r])) && this.addResource(t, n, r, s[r], {
|
|
284
279
|
silent: !0
|
|
285
280
|
});
|
|
286
281
|
i.silent || this.emit("added", t, n, s);
|
|
@@ -292,10 +287,10 @@ class _n extends ct {
|
|
|
292
287
|
}, o = [t, n];
|
|
293
288
|
t.indexOf(".") > -1 && (o = t.split("."), i = s, s = n, n = o[1]), this.addNamespaces(n);
|
|
294
289
|
let u = it(this.data, o) || {};
|
|
295
|
-
a.skipCopy || (s = JSON.parse(JSON.stringify(s))), i ?
|
|
290
|
+
a.skipCopy || (s = JSON.parse(JSON.stringify(s))), i ? Pn(u, s, r) : u = {
|
|
296
291
|
...u,
|
|
297
292
|
...s
|
|
298
|
-
},
|
|
293
|
+
}, _n(this.data, o, u), a.silent || this.emit("added", t, n, s);
|
|
299
294
|
}
|
|
300
295
|
removeResourceBundle(t, n) {
|
|
301
296
|
this.hasResourceBundle(t, n) && delete this.data[t][n], this.removeNamespaces(n), this.emit("removed", t, n);
|
|
@@ -319,7 +314,7 @@ class _n extends ct {
|
|
|
319
314
|
return this.data;
|
|
320
315
|
}
|
|
321
316
|
}
|
|
322
|
-
var
|
|
317
|
+
var Tn = {
|
|
323
318
|
processors: {},
|
|
324
319
|
addPostProcessor(e) {
|
|
325
320
|
this.processors[e.name] = e;
|
|
@@ -330,11 +325,11 @@ var Pn = {
|
|
|
330
325
|
}), t;
|
|
331
326
|
}
|
|
332
327
|
};
|
|
333
|
-
const
|
|
334
|
-
class
|
|
328
|
+
const wn = {};
|
|
329
|
+
class ot extends ft {
|
|
335
330
|
constructor(t) {
|
|
336
331
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
337
|
-
super(), Cs(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], t, this), this.options = n, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger =
|
|
332
|
+
super(), Cs(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], t, this), this.options = n, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = Q.create("translator");
|
|
338
333
|
}
|
|
339
334
|
changeLanguage(t) {
|
|
340
335
|
t && (this.language = t);
|
|
@@ -364,7 +359,7 @@ class at extends ct {
|
|
|
364
359
|
const l = t.split(s);
|
|
365
360
|
(s !== i || s === i && this.options.ns.indexOf(l[0]) > -1) && (r = l.shift()), t = l.join(i);
|
|
366
361
|
}
|
|
367
|
-
return
|
|
362
|
+
return _(r) && (r = [r]), {
|
|
368
363
|
key: t,
|
|
369
364
|
namespaces: r
|
|
370
365
|
};
|
|
@@ -372,8 +367,7 @@ class at extends ct {
|
|
|
372
367
|
translate(t, n, s) {
|
|
373
368
|
if (typeof n != "object" && this.options.overloadTranslationOptionHandler && (n = this.options.overloadTranslationOptionHandler(arguments)), typeof n == "object" && (n = {
|
|
374
369
|
...n
|
|
375
|
-
}), n || (n = {}), t == null)
|
|
376
|
-
return "";
|
|
370
|
+
}), n || (n = {}), t == null) return "";
|
|
377
371
|
Array.isArray(t) || (t = [String(t)]);
|
|
378
372
|
const i = n.returnDetails !== void 0 ? n.returnDetails : this.options.returnDetails, r = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator, {
|
|
379
373
|
key: a,
|
|
@@ -381,15 +375,15 @@ class at extends ct {
|
|
|
381
375
|
} = this.extractFromKey(t[t.length - 1], n), u = o[o.length - 1], l = n.lng || this.language, h = n.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
382
376
|
if (l && l.toLowerCase() === "cimode") {
|
|
383
377
|
if (h) {
|
|
384
|
-
const
|
|
378
|
+
const L = n.nsSeparator || this.options.nsSeparator;
|
|
385
379
|
return i ? {
|
|
386
|
-
res: `${u}${
|
|
380
|
+
res: `${u}${L}${a}`,
|
|
387
381
|
usedKey: a,
|
|
388
382
|
exactUsedKey: a,
|
|
389
383
|
usedLng: l,
|
|
390
384
|
usedNS: u,
|
|
391
385
|
usedParams: this.getUsedParamsDetails(n)
|
|
392
|
-
} : `${u}${
|
|
386
|
+
} : `${u}${L}${a}`;
|
|
393
387
|
}
|
|
394
388
|
return i ? {
|
|
395
389
|
res: a,
|
|
@@ -402,65 +396,64 @@ class at extends ct {
|
|
|
402
396
|
}
|
|
403
397
|
const f = this.resolve(t, n);
|
|
404
398
|
let d = f && f.res;
|
|
405
|
-
const y = f && f.usedKey || a,
|
|
406
|
-
if (
|
|
399
|
+
const y = f && f.usedKey || a, k = f && f.exactUsedKey || a, C = Object.prototype.toString.apply(d), Y = ["[object Number]", "[object Function]", "[object RegExp]"], j = n.joinArrays !== void 0 ? n.joinArrays : this.options.joinArrays, E = !this.i18nFormat || this.i18nFormat.handleAsObject, Le = !_(d) && typeof d != "boolean" && typeof d != "number";
|
|
400
|
+
if (E && d && Le && Y.indexOf(C) < 0 && !(_(j) && Array.isArray(d))) {
|
|
407
401
|
if (!n.returnObjects && !this.options.returnObjects) {
|
|
408
402
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
409
|
-
const
|
|
403
|
+
const L = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(y, d, {
|
|
410
404
|
...n,
|
|
411
405
|
ns: o
|
|
412
406
|
}) : `key '${a} (${this.language})' returned an object instead of string.`;
|
|
413
|
-
return i ? (f.res =
|
|
407
|
+
return i ? (f.res = L, f.usedParams = this.getUsedParamsDetails(n), f) : L;
|
|
414
408
|
}
|
|
415
409
|
if (r) {
|
|
416
|
-
const
|
|
417
|
-
for (const
|
|
418
|
-
if (Object.prototype.hasOwnProperty.call(d,
|
|
419
|
-
const
|
|
420
|
-
|
|
410
|
+
const L = Array.isArray(d), U = L ? [] : {}, z = L ? k : y;
|
|
411
|
+
for (const F in d)
|
|
412
|
+
if (Object.prototype.hasOwnProperty.call(d, F)) {
|
|
413
|
+
const Je = `${z}${r}${F}`;
|
|
414
|
+
U[F] = this.translate(Je, {
|
|
421
415
|
...n,
|
|
422
416
|
joinArrays: !1,
|
|
423
417
|
ns: o
|
|
424
|
-
}),
|
|
418
|
+
}), U[F] === Je && (U[F] = d[F]);
|
|
425
419
|
}
|
|
426
|
-
d =
|
|
420
|
+
d = U;
|
|
427
421
|
}
|
|
428
|
-
} else if (
|
|
429
|
-
d = d.join(
|
|
422
|
+
} else if (E && _(j) && Array.isArray(d))
|
|
423
|
+
d = d.join(j), d && (d = this.extendTranslation(d, t, n, s));
|
|
430
424
|
else {
|
|
431
|
-
let
|
|
432
|
-
const
|
|
425
|
+
let L = !1, U = !1;
|
|
426
|
+
const z = n.count !== void 0 && !_(n.count), F = ot.hasDefaultValue(n), Je = z ? this.pluralResolver.getSuffix(l, n.count, n) : "", Ds = n.ordinal && z ? this.pluralResolver.getSuffix(l, n.count, {
|
|
433
427
|
ordinal: !1
|
|
434
|
-
}) : "",
|
|
435
|
-
!this.isValidLookup(d) &&
|
|
436
|
-
const
|
|
437
|
-
if (
|
|
438
|
-
if (this.logger.log(
|
|
439
|
-
const
|
|
428
|
+
}) : "", cn = z && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), Re = cn && n[`defaultValue${this.options.pluralSeparator}zero`] || n[`defaultValue${Je}`] || n[`defaultValue${Ds}`] || n.defaultValue;
|
|
429
|
+
!this.isValidLookup(d) && F && (L = !0, d = Re), this.isValidLookup(d) || (U = !0, d = a);
|
|
430
|
+
const Ys = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && U ? void 0 : d, Pe = F && Re !== d && this.options.updateMissing;
|
|
431
|
+
if (U || L || Pe) {
|
|
432
|
+
if (this.logger.log(Pe ? "updateKey" : "missingKey", l, u, a, Pe ? Re : d), r) {
|
|
433
|
+
const H = this.resolve(a, {
|
|
440
434
|
...n,
|
|
441
435
|
keySeparator: !1
|
|
442
436
|
});
|
|
443
|
-
|
|
437
|
+
H && H.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
444
438
|
}
|
|
445
|
-
let
|
|
446
|
-
const
|
|
447
|
-
if (this.options.saveMissingTo === "fallback" &&
|
|
448
|
-
for (let
|
|
449
|
-
|
|
450
|
-
else
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(U, u, fe, fn, Le, n) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(U, u, fe, fn, Le, n), this.emit("missingKey", U, u, fe, d);
|
|
439
|
+
let Te = [];
|
|
440
|
+
const Ze = this.languageUtils.getFallbackCodes(this.options.fallbackLng, n.lng || this.language);
|
|
441
|
+
if (this.options.saveMissingTo === "fallback" && Ze && Ze[0])
|
|
442
|
+
for (let H = 0; H < Ze.length; H++)
|
|
443
|
+
Te.push(Ze[H]);
|
|
444
|
+
else this.options.saveMissingTo === "all" ? Te = this.languageUtils.toResolveHierarchy(n.lng || this.language) : Te.push(n.lng || this.language);
|
|
445
|
+
const fn = (H, ge, Ee) => {
|
|
446
|
+
const gn = F && Ee !== d ? Ee : Ys;
|
|
447
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(H, u, ge, gn, Pe, n) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(H, u, ge, gn, Pe, n), this.emit("missingKey", H, u, ge, d);
|
|
455
448
|
};
|
|
456
|
-
this.options.saveMissing && (this.options.saveMissingPlurals &&
|
|
457
|
-
const
|
|
458
|
-
|
|
459
|
-
|
|
449
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && z ? Te.forEach((H) => {
|
|
450
|
+
const ge = this.pluralResolver.getSuffixes(H, n);
|
|
451
|
+
cn && n[`defaultValue${this.options.pluralSeparator}zero`] && ge.indexOf(`${this.options.pluralSeparator}zero`) < 0 && ge.push(`${this.options.pluralSeparator}zero`), ge.forEach((Ee) => {
|
|
452
|
+
fn([H], a + Ee, n[`defaultValue${Ee}`] || Re);
|
|
460
453
|
});
|
|
461
|
-
}) :
|
|
454
|
+
}) : fn(Te, a, Re));
|
|
462
455
|
}
|
|
463
|
-
d = this.extendTranslation(d, t, n, f, s),
|
|
456
|
+
d = this.extendTranslation(d, t, n, f, s), U && d === a && this.options.appendNamespaceToMissingKey && (d = `${u}:${a}`), (U || L) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? d = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${u}:${a}` : a, L ? d : void 0) : d = this.options.parseMissingKeyHandler(d));
|
|
464
457
|
}
|
|
465
458
|
return i ? (f.res = d, f.usedParams = this.getUsedParamsDetails(n), f) : d;
|
|
466
459
|
}
|
|
@@ -481,13 +474,13 @@ class at extends ct {
|
|
|
481
474
|
...s.interpolation
|
|
482
475
|
}
|
|
483
476
|
});
|
|
484
|
-
const l =
|
|
477
|
+
const l = _(t) && (s && s.interpolation && s.interpolation.skipOnVariables !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
|
|
485
478
|
let h;
|
|
486
479
|
if (l) {
|
|
487
480
|
const d = t.match(this.interpolator.nestingRegexp);
|
|
488
481
|
h = d && d.length;
|
|
489
482
|
}
|
|
490
|
-
let f = s.replace &&
|
|
483
|
+
let f = s.replace && !_(s.replace) ? s.replace : s;
|
|
491
484
|
if (this.options.interpolation.defaultVariables && (f = {
|
|
492
485
|
...this.options.interpolation.defaultVariables,
|
|
493
486
|
...f
|
|
@@ -496,13 +489,13 @@ class at extends ct {
|
|
|
496
489
|
h < y && (s.nest = !1);
|
|
497
490
|
}
|
|
498
491
|
!s.lng && this.options.compatibilityAPI !== "v1" && i && i.res && (s.lng = this.language || i.usedLng), s.nest !== !1 && (t = this.interpolator.nest(t, function() {
|
|
499
|
-
for (var d = arguments.length, y = new Array(d),
|
|
500
|
-
y[
|
|
492
|
+
for (var d = arguments.length, y = new Array(d), k = 0; k < d; k++)
|
|
493
|
+
y[k] = arguments[k];
|
|
501
494
|
return r && r[0] === y[0] && !s.context ? (a.logger.warn(`It seems you are nesting recursively key: ${y[0]} in key: ${n[0]}`), null) : a.translate(...y, n);
|
|
502
495
|
}, s)), s.interpolation && this.interpolator.reset();
|
|
503
496
|
}
|
|
504
|
-
const o = s.postProcess || this.options.postProcess, u =
|
|
505
|
-
return t != null && u && u.length && s.applyPostProcessor !== !1 && (t =
|
|
497
|
+
const o = s.postProcess || this.options.postProcess, u = _(o) ? [o] : o;
|
|
498
|
+
return t != null && u && u.length && s.applyPostProcessor !== !1 && (t = Tn.handle(u, t, n, this.options && this.options.postProcessPassResolved ? {
|
|
506
499
|
i18nResolved: {
|
|
507
500
|
...i,
|
|
508
501
|
usedParams: this.getUsedParamsDetails(s)
|
|
@@ -512,34 +505,32 @@ class at extends ct {
|
|
|
512
505
|
}
|
|
513
506
|
resolve(t) {
|
|
514
507
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s, i, r, a, o;
|
|
515
|
-
return
|
|
516
|
-
if (this.isValidLookup(s))
|
|
517
|
-
return;
|
|
508
|
+
return _(t) && (t = [t]), t.forEach((u) => {
|
|
509
|
+
if (this.isValidLookup(s)) return;
|
|
518
510
|
const l = this.extractFromKey(u, n), h = l.key;
|
|
519
511
|
i = h;
|
|
520
512
|
let f = l.namespaces;
|
|
521
513
|
this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
|
|
522
|
-
const d = n.count !== void 0 &&
|
|
523
|
-
f.forEach((
|
|
524
|
-
this.isValidLookup(s) || (o =
|
|
525
|
-
if (this.isValidLookup(s))
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
const T = [h];
|
|
514
|
+
const d = n.count !== void 0 && !_(n.count), y = d && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), k = n.context !== void 0 && (_(n.context) || typeof n.context == "number") && n.context !== "", C = n.lngs ? n.lngs : this.languageUtils.toResolveHierarchy(n.lng || this.language, n.fallbackLng);
|
|
515
|
+
f.forEach((Y) => {
|
|
516
|
+
this.isValidLookup(s) || (o = Y, !wn[`${C[0]}-${Y}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (wn[`${C[0]}-${Y}`] = !0, this.logger.warn(`key "${i}" for languages "${C.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), C.forEach((j) => {
|
|
517
|
+
if (this.isValidLookup(s)) return;
|
|
518
|
+
a = j;
|
|
519
|
+
const E = [h];
|
|
529
520
|
if (this.i18nFormat && this.i18nFormat.addLookupKeys)
|
|
530
|
-
this.i18nFormat.addLookupKeys(
|
|
521
|
+
this.i18nFormat.addLookupKeys(E, h, j, Y, n);
|
|
531
522
|
else {
|
|
532
|
-
let
|
|
533
|
-
d && (
|
|
534
|
-
const
|
|
535
|
-
if (d && (
|
|
536
|
-
const
|
|
537
|
-
|
|
523
|
+
let L;
|
|
524
|
+
d && (L = this.pluralResolver.getSuffix(j, n.count, n));
|
|
525
|
+
const U = `${this.options.pluralSeparator}zero`, z = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
526
|
+
if (d && (E.push(h + L), n.ordinal && L.indexOf(z) === 0 && E.push(h + L.replace(z, this.options.pluralSeparator)), y && E.push(h + U)), k) {
|
|
527
|
+
const F = `${h}${this.options.contextSeparator}${n.context}`;
|
|
528
|
+
E.push(F), d && (E.push(F + L), n.ordinal && L.indexOf(z) === 0 && E.push(F + L.replace(z, this.options.pluralSeparator)), y && E.push(F + U));
|
|
538
529
|
}
|
|
539
530
|
}
|
|
540
|
-
let
|
|
541
|
-
for (;
|
|
542
|
-
this.isValidLookup(s) || (r =
|
|
531
|
+
let Le;
|
|
532
|
+
for (; Le = E.pop(); )
|
|
533
|
+
this.isValidLookup(s) || (r = Le, s = this.getResource(j, Y, Le, n));
|
|
543
534
|
}));
|
|
544
535
|
});
|
|
545
536
|
}), {
|
|
@@ -559,7 +550,7 @@ class at extends ct {
|
|
|
559
550
|
}
|
|
560
551
|
getUsedParamsDetails() {
|
|
561
552
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
562
|
-
const n = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"], s = t.replace &&
|
|
553
|
+
const n = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"], s = t.replace && !_(t.replace);
|
|
563
554
|
let i = s ? t.replace : t;
|
|
564
555
|
if (s && typeof t.count < "u" && (i.count = t.count), this.options.interpolation.defaultVariables && (i = {
|
|
565
556
|
...this.options.interpolation.defaultVariables,
|
|
@@ -581,35 +572,32 @@ class at extends ct {
|
|
|
581
572
|
return !1;
|
|
582
573
|
}
|
|
583
574
|
}
|
|
584
|
-
const
|
|
585
|
-
class
|
|
575
|
+
const Ot = (e) => e.charAt(0).toUpperCase() + e.slice(1);
|
|
576
|
+
class Sn {
|
|
586
577
|
constructor(t) {
|
|
587
|
-
this.options = t, this.supportedLngs = this.options.supportedLngs || !1, this.logger =
|
|
578
|
+
this.options = t, this.supportedLngs = this.options.supportedLngs || !1, this.logger = Q.create("languageUtils");
|
|
588
579
|
}
|
|
589
580
|
getScriptPartFromCode(t) {
|
|
590
|
-
if (t = rt(t), !t || t.indexOf("-") < 0)
|
|
591
|
-
return null;
|
|
581
|
+
if (t = rt(t), !t || t.indexOf("-") < 0) return null;
|
|
592
582
|
const n = t.split("-");
|
|
593
583
|
return n.length === 2 || (n.pop(), n[n.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(n.join("-"));
|
|
594
584
|
}
|
|
595
585
|
getLanguagePartFromCode(t) {
|
|
596
|
-
if (t = rt(t), !t || t.indexOf("-") < 0)
|
|
597
|
-
return t;
|
|
586
|
+
if (t = rt(t), !t || t.indexOf("-") < 0) return t;
|
|
598
587
|
const n = t.split("-");
|
|
599
588
|
return this.formatLanguageCode(n[0]);
|
|
600
589
|
}
|
|
601
590
|
formatLanguageCode(t) {
|
|
602
|
-
if (
|
|
591
|
+
if (_(t) && t.indexOf("-") > -1) {
|
|
603
592
|
if (typeof Intl < "u" && typeof Intl.getCanonicalLocales < "u")
|
|
604
593
|
try {
|
|
605
594
|
let i = Intl.getCanonicalLocales(t)[0];
|
|
606
|
-
if (i && this.options.lowerCaseLng && (i = i.toLowerCase()), i)
|
|
607
|
-
return i;
|
|
595
|
+
if (i && this.options.lowerCaseLng && (i = i.toLowerCase()), i) return i;
|
|
608
596
|
} catch {
|
|
609
597
|
}
|
|
610
598
|
const n = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
|
|
611
599
|
let s = t.split("-");
|
|
612
|
-
return this.options.lowerCaseLng ? s = s.map((i) => i.toLowerCase()) : s.length === 2 ? (s[0] = s[0].toLowerCase(), s[1] = s[1].toUpperCase(), n.indexOf(s[1].toLowerCase()) > -1 && (s[1] =
|
|
600
|
+
return this.options.lowerCaseLng ? s = s.map((i) => i.toLowerCase()) : s.length === 2 ? (s[0] = s[0].toLowerCase(), s[1] = s[1].toUpperCase(), n.indexOf(s[1].toLowerCase()) > -1 && (s[1] = Ot(s[1].toLowerCase()))) : s.length === 3 && (s[0] = s[0].toLowerCase(), s[1].length === 2 && (s[1] = s[1].toUpperCase()), s[0] !== "sgn" && s[2].length === 2 && (s[2] = s[2].toUpperCase()), n.indexOf(s[1].toLowerCase()) > -1 && (s[1] = Ot(s[1].toLowerCase())), n.indexOf(s[2].toLowerCase()) > -1 && (s[2] = Ot(s[2].toLowerCase()))), s.join("-");
|
|
613
601
|
}
|
|
614
602
|
return this.options.cleanCode || this.options.lowerCaseLng ? t.toLowerCase() : t;
|
|
615
603
|
}
|
|
@@ -617,35 +605,27 @@ class wn {
|
|
|
617
605
|
return (this.options.load === "languageOnly" || this.options.nonExplicitSupportedLngs) && (t = this.getLanguagePartFromCode(t)), !this.supportedLngs || !this.supportedLngs.length || this.supportedLngs.indexOf(t) > -1;
|
|
618
606
|
}
|
|
619
607
|
getBestMatchFromCodes(t) {
|
|
620
|
-
if (!t)
|
|
621
|
-
return null;
|
|
608
|
+
if (!t) return null;
|
|
622
609
|
let n;
|
|
623
610
|
return t.forEach((s) => {
|
|
624
|
-
if (n)
|
|
625
|
-
return;
|
|
611
|
+
if (n) return;
|
|
626
612
|
const i = this.formatLanguageCode(s);
|
|
627
613
|
(!this.options.supportedLngs || this.isSupportedCode(i)) && (n = i);
|
|
628
614
|
}), !n && this.options.supportedLngs && t.forEach((s) => {
|
|
629
|
-
if (n)
|
|
630
|
-
return;
|
|
615
|
+
if (n) return;
|
|
631
616
|
const i = this.getLanguagePartFromCode(s);
|
|
632
|
-
if (this.isSupportedCode(i))
|
|
633
|
-
return n = i;
|
|
617
|
+
if (this.isSupportedCode(i)) return n = i;
|
|
634
618
|
n = this.options.supportedLngs.find((r) => {
|
|
635
|
-
if (r === i)
|
|
636
|
-
return r;
|
|
619
|
+
if (r === i) return r;
|
|
637
620
|
if (!(r.indexOf("-") < 0 && i.indexOf("-") < 0) && (r.indexOf("-") > 0 && i.indexOf("-") < 0 && r.substring(0, r.indexOf("-")) === i || r.indexOf(i) === 0 && i.length > 1))
|
|
638
621
|
return r;
|
|
639
622
|
});
|
|
640
623
|
}), n || (n = this.getFallbackCodes(this.options.fallbackLng)[0]), n;
|
|
641
624
|
}
|
|
642
625
|
getFallbackCodes(t, n) {
|
|
643
|
-
if (!t)
|
|
644
|
-
|
|
645
|
-
if (
|
|
646
|
-
return t;
|
|
647
|
-
if (!n)
|
|
648
|
-
return t.default || [];
|
|
626
|
+
if (!t) return [];
|
|
627
|
+
if (typeof t == "function" && (t = t(n)), _(t) && (t = [t]), Array.isArray(t)) return t;
|
|
628
|
+
if (!n) return t.default || [];
|
|
649
629
|
let s = t[n];
|
|
650
630
|
return s || (s = t[this.getScriptPartFromCode(n)]), s || (s = t[this.formatLanguageCode(n)]), s || (s = t[this.getLanguagePartFromCode(n)]), s || (s = t.default), s || [];
|
|
651
631
|
}
|
|
@@ -653,12 +633,12 @@ class wn {
|
|
|
653
633
|
const s = this.getFallbackCodes(n || this.options.fallbackLng || [], t), i = [], r = (a) => {
|
|
654
634
|
a && (this.isSupportedCode(a) ? i.push(a) : this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`));
|
|
655
635
|
};
|
|
656
|
-
return
|
|
636
|
+
return _(t) && (t.indexOf("-") > -1 || t.indexOf("_") > -1) ? (this.options.load !== "languageOnly" && r(this.formatLanguageCode(t)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && r(this.getScriptPartFromCode(t)), this.options.load !== "currentOnly" && r(this.getLanguagePartFromCode(t))) : _(t) && r(this.formatLanguageCode(t)), s.forEach((a) => {
|
|
657
637
|
i.indexOf(a) < 0 && r(this.formatLanguageCode(a));
|
|
658
638
|
}), i;
|
|
659
639
|
}
|
|
660
640
|
}
|
|
661
|
-
let
|
|
641
|
+
let Hs = [{
|
|
662
642
|
lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
|
|
663
643
|
nr: [1, 2],
|
|
664
644
|
fc: 1
|
|
@@ -750,7 +730,7 @@ let Us = [{
|
|
|
750
730
|
lngs: ["he", "iw"],
|
|
751
731
|
nr: [1, 2, 20, 21],
|
|
752
732
|
fc: 22
|
|
753
|
-
}],
|
|
733
|
+
}], $s = {
|
|
754
734
|
1: (e) => +(e > 1),
|
|
755
735
|
2: (e) => +(e != 1),
|
|
756
736
|
3: (e) => 0,
|
|
@@ -774,28 +754,28 @@ let Us = [{
|
|
|
774
754
|
21: (e) => e % 100 == 1 ? 1 : e % 100 == 2 ? 2 : e % 100 == 3 || e % 100 == 4 ? 3 : 0,
|
|
775
755
|
22: (e) => e == 1 ? 0 : e == 2 ? 1 : (e < 0 || e > 10) && e % 10 == 0 ? 2 : 3
|
|
776
756
|
};
|
|
777
|
-
const
|
|
757
|
+
const Ws = ["v1", "v2", "v3"], Vs = ["v4"], bn = {
|
|
778
758
|
zero: 0,
|
|
779
759
|
one: 1,
|
|
780
760
|
two: 2,
|
|
781
761
|
few: 3,
|
|
782
762
|
many: 4,
|
|
783
763
|
other: 5
|
|
784
|
-
},
|
|
764
|
+
}, Gs = () => {
|
|
785
765
|
const e = {};
|
|
786
|
-
return
|
|
766
|
+
return Hs.forEach((t) => {
|
|
787
767
|
t.lngs.forEach((n) => {
|
|
788
768
|
e[n] = {
|
|
789
769
|
numbers: t.nr,
|
|
790
|
-
plurals:
|
|
770
|
+
plurals: $s[t.fc]
|
|
791
771
|
};
|
|
792
772
|
});
|
|
793
773
|
}), e;
|
|
794
774
|
};
|
|
795
|
-
class
|
|
775
|
+
class zs {
|
|
796
776
|
constructor(t) {
|
|
797
777
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
798
|
-
this.languageUtils = t, this.options = n, this.logger =
|
|
778
|
+
this.languageUtils = t, this.options = n, this.logger = Q.create("pluralResolver"), (!this.options.compatibilityJSON || Vs.includes(this.options.compatibilityJSON)) && (typeof Intl > "u" || !Intl.PluralRules) && (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules = Gs(), this.pluralRulesCache = {};
|
|
799
779
|
}
|
|
800
780
|
addRule(t, n) {
|
|
801
781
|
this.rules[t] = n;
|
|
@@ -834,7 +814,7 @@ class Gs {
|
|
|
834
814
|
getSuffixes(t) {
|
|
835
815
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
836
816
|
const s = this.getRule(t, n);
|
|
837
|
-
return s ? this.shouldUseIntlApi() ? s.resolvedOptions().pluralCategories.sort((i, r) =>
|
|
817
|
+
return s ? this.shouldUseIntlApi() ? s.resolvedOptions().pluralCategories.sort((i, r) => bn[i] - bn[r]).map((i) => `${this.options.prepend}${n.ordinal ? `ordinal${this.options.prepend}` : ""}${i}`) : s.numbers.map((i) => this.getSuffix(t, i, n)) : [];
|
|
838
818
|
}
|
|
839
819
|
getSuffix(t, n) {
|
|
840
820
|
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
@@ -849,17 +829,17 @@ class Gs {
|
|
|
849
829
|
return this.options.compatibilityJSON === "v1" ? i === 1 ? "" : typeof i == "number" ? `_plural_${i.toString()}` : r() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && t.numbers.length === 2 && t.numbers[0] === 1 ? r() : this.options.prepend && s.toString() ? this.options.prepend + s.toString() : s.toString();
|
|
850
830
|
}
|
|
851
831
|
shouldUseIntlApi() {
|
|
852
|
-
return
|
|
832
|
+
return !Ws.includes(this.options.compatibilityJSON);
|
|
853
833
|
}
|
|
854
834
|
}
|
|
855
|
-
const
|
|
835
|
+
const xn = function(e, t, n) {
|
|
856
836
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, r = Ps(e, t, n);
|
|
857
|
-
return !r && i &&
|
|
858
|
-
},
|
|
859
|
-
class
|
|
837
|
+
return !r && i && _(n) && (r = Et(e, n, s), r === void 0 && (r = Et(t, n, s))), r;
|
|
838
|
+
}, Mt = (e) => e.replace(/\$/g, "$$$$");
|
|
839
|
+
class Ks {
|
|
860
840
|
constructor() {
|
|
861
841
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
862
|
-
this.logger =
|
|
842
|
+
this.logger = Q.create("interpolator"), this.options = t, this.format = t.interpolation && t.interpolation.format || ((n) => n), this.init(t);
|
|
863
843
|
}
|
|
864
844
|
init() {
|
|
865
845
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -879,13 +859,13 @@ class zs {
|
|
|
879
859
|
unescapePrefix: f,
|
|
880
860
|
nestingPrefix: d,
|
|
881
861
|
nestingPrefixEscaped: y,
|
|
882
|
-
nestingSuffix:
|
|
883
|
-
nestingSuffixEscaped:
|
|
884
|
-
nestingOptionsSeparator:
|
|
885
|
-
maxReplaces:
|
|
886
|
-
alwaysFormat:
|
|
862
|
+
nestingSuffix: k,
|
|
863
|
+
nestingSuffixEscaped: C,
|
|
864
|
+
nestingOptionsSeparator: Y,
|
|
865
|
+
maxReplaces: j,
|
|
866
|
+
alwaysFormat: E
|
|
887
867
|
} = t.interpolation;
|
|
888
|
-
this.escape = n !== void 0 ? n : Es, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = r ?
|
|
868
|
+
this.escape = n !== void 0 ? n : Es, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = r ? we(r) : a || "{{", this.suffix = o ? we(o) : u || "}}", this.formatSeparator = l || ",", this.unescapePrefix = h ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : h || "", this.nestingPrefix = d ? we(d) : y || we("$t("), this.nestingSuffix = k ? we(k) : C || we(")"), this.nestingOptionsSeparator = Y || ",", this.maxReplaces = j || 1e3, this.alwaysFormat = E !== void 0 ? E : !1, this.resetRegExp();
|
|
889
869
|
}
|
|
890
870
|
reset() {
|
|
891
871
|
this.options && this.init(this.options);
|
|
@@ -898,46 +878,45 @@ class zs {
|
|
|
898
878
|
let r, a, o;
|
|
899
879
|
const u = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, l = (y) => {
|
|
900
880
|
if (y.indexOf(this.formatSeparator) < 0) {
|
|
901
|
-
const
|
|
902
|
-
return this.alwaysFormat ? this.format(
|
|
881
|
+
const j = xn(n, u, y, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
882
|
+
return this.alwaysFormat ? this.format(j, void 0, s, {
|
|
903
883
|
...i,
|
|
904
884
|
...n,
|
|
905
885
|
interpolationkey: y
|
|
906
|
-
}) :
|
|
886
|
+
}) : j;
|
|
907
887
|
}
|
|
908
|
-
const
|
|
909
|
-
return this.format(
|
|
888
|
+
const k = y.split(this.formatSeparator), C = k.shift().trim(), Y = k.join(this.formatSeparator).trim();
|
|
889
|
+
return this.format(xn(n, u, C, this.options.keySeparator, this.options.ignoreJSONStructure), Y, s, {
|
|
910
890
|
...i,
|
|
911
891
|
...n,
|
|
912
|
-
interpolationkey:
|
|
892
|
+
interpolationkey: C
|
|
913
893
|
});
|
|
914
894
|
};
|
|
915
895
|
this.resetRegExp();
|
|
916
896
|
const h = i && i.missingInterpolationHandler || this.options.missingInterpolationHandler, f = i && i.interpolation && i.interpolation.skipOnVariables !== void 0 ? i.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
917
897
|
return [{
|
|
918
898
|
regex: this.regexpUnescape,
|
|
919
|
-
safeValue: (y) =>
|
|
899
|
+
safeValue: (y) => Mt(y)
|
|
920
900
|
}, {
|
|
921
901
|
regex: this.regexp,
|
|
922
|
-
safeValue: (y) => this.escapeValue ?
|
|
902
|
+
safeValue: (y) => this.escapeValue ? Mt(this.escape(y)) : Mt(y)
|
|
923
903
|
}].forEach((y) => {
|
|
924
904
|
for (o = 0; r = y.regex.exec(t); ) {
|
|
925
|
-
const
|
|
926
|
-
if (a = l(
|
|
905
|
+
const k = r[1].trim();
|
|
906
|
+
if (a = l(k), a === void 0)
|
|
927
907
|
if (typeof h == "function") {
|
|
928
|
-
const
|
|
929
|
-
a =
|
|
930
|
-
} else if (i && Object.prototype.hasOwnProperty.call(i,
|
|
908
|
+
const Y = h(t, r, i);
|
|
909
|
+
a = _(Y) ? Y : "";
|
|
910
|
+
} else if (i && Object.prototype.hasOwnProperty.call(i, k))
|
|
931
911
|
a = "";
|
|
932
912
|
else if (f) {
|
|
933
913
|
a = r[0];
|
|
934
914
|
continue;
|
|
935
915
|
} else
|
|
936
|
-
this.logger.warn(`missed to pass in variable ${
|
|
937
|
-
else
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
if (t = t.replace(r[0], N), f ? (y.regex.lastIndex += a.length, y.regex.lastIndex -= r[0].length) : y.regex.lastIndex = 0, o++, o >= this.maxReplaces)
|
|
916
|
+
this.logger.warn(`missed to pass in variable ${k} for interpolating ${t}`), a = "";
|
|
917
|
+
else !_(a) && !this.useRawValueToEscape && (a = mn(a));
|
|
918
|
+
const C = y.safeValue(a);
|
|
919
|
+
if (t = t.replace(r[0], C), f ? (y.regex.lastIndex += a.length, y.regex.lastIndex -= r[0].length) : y.regex.lastIndex = 0, o++, o >= this.maxReplaces)
|
|
941
920
|
break;
|
|
942
921
|
}
|
|
943
922
|
}), t;
|
|
@@ -946,20 +925,19 @@ class zs {
|
|
|
946
925
|
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i, r, a;
|
|
947
926
|
const o = (u, l) => {
|
|
948
927
|
const h = this.nestingOptionsSeparator;
|
|
949
|
-
if (u.indexOf(h) < 0)
|
|
950
|
-
return u;
|
|
928
|
+
if (u.indexOf(h) < 0) return u;
|
|
951
929
|
const f = u.split(new RegExp(`${h}[ ]*{`));
|
|
952
930
|
let d = `{${f[1]}`;
|
|
953
931
|
u = f[0], d = this.interpolate(d, a);
|
|
954
|
-
const y = d.match(/'/g),
|
|
955
|
-
(y && y.length % 2 === 0 && !
|
|
932
|
+
const y = d.match(/'/g), k = d.match(/"/g);
|
|
933
|
+
(y && y.length % 2 === 0 && !k || k.length % 2 !== 0) && (d = d.replace(/'/g, '"'));
|
|
956
934
|
try {
|
|
957
935
|
a = JSON.parse(d), l && (a = {
|
|
958
936
|
...l,
|
|
959
937
|
...a
|
|
960
938
|
});
|
|
961
|
-
} catch (
|
|
962
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${u}`,
|
|
939
|
+
} catch (C) {
|
|
940
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${u}`, C), `${u}${h}${d}`;
|
|
963
941
|
}
|
|
964
942
|
return a.defaultValue && a.defaultValue.indexOf(this.prefix) > -1 && delete a.defaultValue, u;
|
|
965
943
|
};
|
|
@@ -967,15 +945,14 @@ class zs {
|
|
|
967
945
|
let u = [];
|
|
968
946
|
a = {
|
|
969
947
|
...s
|
|
970
|
-
}, a = a.replace &&
|
|
948
|
+
}, a = a.replace && !_(a.replace) ? a.replace : a, a.applyPostProcessor = !1, delete a.defaultValue;
|
|
971
949
|
let l = !1;
|
|
972
950
|
if (i[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(i[1])) {
|
|
973
951
|
const h = i[1].split(this.formatSeparator).map((f) => f.trim());
|
|
974
952
|
i[1] = h.shift(), u = h, l = !0;
|
|
975
953
|
}
|
|
976
|
-
if (r = n(o.call(this, i[1].trim(), a), a), r && i[0] === t &&
|
|
977
|
-
|
|
978
|
-
typeof r != "string" && (r = gn(r)), r || (this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`), r = ""), l && (r = u.reduce((h, f) => this.format(h, f, s.lng, {
|
|
954
|
+
if (r = n(o.call(this, i[1].trim(), a), a), r && i[0] === t && !_(r)) return r;
|
|
955
|
+
_(r) || (r = mn(r)), r || (this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`), r = ""), l && (r = u.reduce((h, f) => this.format(h, f, s.lng, {
|
|
979
956
|
...s,
|
|
980
957
|
interpolationkey: i[1].trim()
|
|
981
958
|
}), r.trim())), t = t.replace(i[0], r), this.regexp.lastIndex = 0;
|
|
@@ -983,7 +960,7 @@ class zs {
|
|
|
983
960
|
return t;
|
|
984
961
|
}
|
|
985
962
|
}
|
|
986
|
-
const
|
|
963
|
+
const Bs = (e) => {
|
|
987
964
|
let t = e.toLowerCase().trim();
|
|
988
965
|
const n = {};
|
|
989
966
|
if (e.indexOf("(") > -1) {
|
|
@@ -1001,7 +978,7 @@ const Ks = (e) => {
|
|
|
1001
978
|
formatName: t,
|
|
1002
979
|
formatOptions: n
|
|
1003
980
|
};
|
|
1004
|
-
},
|
|
981
|
+
}, Se = (e) => {
|
|
1005
982
|
const t = {};
|
|
1006
983
|
return (n, s, i) => {
|
|
1007
984
|
let r = i;
|
|
@@ -1014,36 +991,36 @@ const Ks = (e) => {
|
|
|
1014
991
|
return o || (o = e(rt(s), i), t[a] = o), o(n);
|
|
1015
992
|
};
|
|
1016
993
|
};
|
|
1017
|
-
class
|
|
994
|
+
class qs {
|
|
1018
995
|
constructor() {
|
|
1019
996
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1020
|
-
this.logger =
|
|
1021
|
-
number:
|
|
997
|
+
this.logger = Q.create("formatter"), this.options = t, this.formats = {
|
|
998
|
+
number: Se((n, s) => {
|
|
1022
999
|
const i = new Intl.NumberFormat(n, {
|
|
1023
1000
|
...s
|
|
1024
1001
|
});
|
|
1025
1002
|
return (r) => i.format(r);
|
|
1026
1003
|
}),
|
|
1027
|
-
currency:
|
|
1004
|
+
currency: Se((n, s) => {
|
|
1028
1005
|
const i = new Intl.NumberFormat(n, {
|
|
1029
1006
|
...s,
|
|
1030
1007
|
style: "currency"
|
|
1031
1008
|
});
|
|
1032
1009
|
return (r) => i.format(r);
|
|
1033
1010
|
}),
|
|
1034
|
-
datetime:
|
|
1011
|
+
datetime: Se((n, s) => {
|
|
1035
1012
|
const i = new Intl.DateTimeFormat(n, {
|
|
1036
1013
|
...s
|
|
1037
1014
|
});
|
|
1038
1015
|
return (r) => i.format(r);
|
|
1039
1016
|
}),
|
|
1040
|
-
relativetime:
|
|
1017
|
+
relativetime: Se((n, s) => {
|
|
1041
1018
|
const i = new Intl.RelativeTimeFormat(n, {
|
|
1042
1019
|
...s
|
|
1043
1020
|
});
|
|
1044
1021
|
return (r) => i.format(r, s.range || "day");
|
|
1045
1022
|
}),
|
|
1046
|
-
list:
|
|
1023
|
+
list: Se((n, s) => {
|
|
1047
1024
|
const i = new Intl.ListFormat(n, {
|
|
1048
1025
|
...s
|
|
1049
1026
|
});
|
|
@@ -1052,16 +1029,16 @@ class Bs {
|
|
|
1052
1029
|
}, this.init(t);
|
|
1053
1030
|
}
|
|
1054
1031
|
init(t) {
|
|
1055
|
-
|
|
1032
|
+
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
1056
1033
|
interpolation: {}
|
|
1057
|
-
}
|
|
1058
|
-
this.formatSeparator =
|
|
1034
|
+
};
|
|
1035
|
+
this.formatSeparator = n.interpolation.formatSeparator || ",";
|
|
1059
1036
|
}
|
|
1060
1037
|
add(t, n) {
|
|
1061
1038
|
this.formats[t.toLowerCase().trim()] = n;
|
|
1062
1039
|
}
|
|
1063
1040
|
addCached(t, n) {
|
|
1064
|
-
this.formats[t.toLowerCase().trim()] =
|
|
1041
|
+
this.formats[t.toLowerCase().trim()] = Se(n);
|
|
1065
1042
|
}
|
|
1066
1043
|
format(t, n, s) {
|
|
1067
1044
|
let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
@@ -1074,7 +1051,7 @@ class Bs {
|
|
|
1074
1051
|
const {
|
|
1075
1052
|
formatName: l,
|
|
1076
1053
|
formatOptions: h
|
|
1077
|
-
} =
|
|
1054
|
+
} = Bs(u);
|
|
1078
1055
|
if (this.formats[l]) {
|
|
1079
1056
|
let f = o;
|
|
1080
1057
|
try {
|
|
@@ -1094,13 +1071,13 @@ class Bs {
|
|
|
1094
1071
|
}, t);
|
|
1095
1072
|
}
|
|
1096
1073
|
}
|
|
1097
|
-
const
|
|
1074
|
+
const Js = (e, t) => {
|
|
1098
1075
|
e.pending[t] !== void 0 && (delete e.pending[t], e.pendingCount--);
|
|
1099
1076
|
};
|
|
1100
|
-
class
|
|
1077
|
+
class Zs extends ft {
|
|
1101
1078
|
constructor(t, n, s) {
|
|
1102
1079
|
let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
1103
|
-
super(), this.backend = t, this.store = n, this.services = s, this.languageUtils = s.languageUtils, this.options = i, this.logger =
|
|
1080
|
+
super(), this.backend = t, this.store = n, this.services = s, this.languageUtils = s.languageUtils, this.options = i, this.logger = Q.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = i.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = i.maxRetries >= 0 ? i.maxRetries : 5, this.retryTimeout = i.retryTimeout >= 1 ? i.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(s, i.backend, i);
|
|
1104
1081
|
}
|
|
1105
1082
|
queueLoad(t, n, s, i) {
|
|
1106
1083
|
const r = {}, a = {}, o = {}, u = {};
|
|
@@ -1130,7 +1107,7 @@ class Js extends ct {
|
|
|
1130
1107
|
}), this.state[t] = n ? -1 : 2, n && s && (this.state[t] = 0);
|
|
1131
1108
|
const o = {};
|
|
1132
1109
|
this.queue.forEach((u) => {
|
|
1133
|
-
Rs(u.loaded, [r], a),
|
|
1110
|
+
Rs(u.loaded, [r], a), Js(u, t), n && u.errors.push(n), u.pendingCount === 0 && !u.done && (Object.keys(u.loaded).forEach((l) => {
|
|
1134
1111
|
o[l] || (o[l] = {});
|
|
1135
1112
|
const h = u.loaded[l];
|
|
1136
1113
|
h.length && h.forEach((f) => {
|
|
@@ -1141,8 +1118,7 @@ class Js extends ct {
|
|
|
1141
1118
|
}
|
|
1142
1119
|
read(t, n, s) {
|
|
1143
1120
|
let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, r = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : this.retryTimeout, a = arguments.length > 5 ? arguments[5] : void 0;
|
|
1144
|
-
if (!t.length)
|
|
1145
|
-
return a(null, {});
|
|
1121
|
+
if (!t.length) return a(null, {});
|
|
1146
1122
|
if (this.readingCalls >= this.maxParallelReads) {
|
|
1147
1123
|
this.waitingReads.push({
|
|
1148
1124
|
lng: t,
|
|
@@ -1183,7 +1159,7 @@ class Js extends ct {
|
|
|
1183
1159
|
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = arguments.length > 3 ? arguments[3] : void 0;
|
|
1184
1160
|
if (!this.backend)
|
|
1185
1161
|
return this.logger.warn("No backend was added via i18next.use. Will not load resources."), i && i();
|
|
1186
|
-
|
|
1162
|
+
_(t) && (t = this.languageUtils.toResolveHierarchy(t)), _(n) && (n = [n]);
|
|
1187
1163
|
const r = this.queueLoad(t, n, s, i);
|
|
1188
1164
|
if (!r.toLoad.length)
|
|
1189
1165
|
return r.pending.length || i(), null;
|
|
@@ -1233,7 +1209,7 @@ class Js extends ct {
|
|
|
1233
1209
|
}
|
|
1234
1210
|
}
|
|
1235
1211
|
}
|
|
1236
|
-
const
|
|
1212
|
+
const kn = () => ({
|
|
1237
1213
|
debug: !1,
|
|
1238
1214
|
initImmediate: !0,
|
|
1239
1215
|
ns: ["translation"],
|
|
@@ -1268,7 +1244,7 @@ const xn = () => ({
|
|
|
1268
1244
|
appendNamespaceToCIMode: !1,
|
|
1269
1245
|
overloadTranslationOptionHandler: (e) => {
|
|
1270
1246
|
let t = {};
|
|
1271
|
-
if (typeof e[1] == "object" && (t = e[1]),
|
|
1247
|
+
if (typeof e[1] == "object" && (t = e[1]), _(e[1]) && (t.defaultValue = e[1]), _(e[2]) && (t.tDescription = e[2]), typeof e[2] == "object" || typeof e[3] == "object") {
|
|
1272
1248
|
const n = e[3] || e[2];
|
|
1273
1249
|
Object.keys(n).forEach((s) => {
|
|
1274
1250
|
t[s] = n[s];
|
|
@@ -1289,18 +1265,18 @@ const xn = () => ({
|
|
|
1289
1265
|
maxReplaces: 1e3,
|
|
1290
1266
|
skipOnVariables: !0
|
|
1291
1267
|
}
|
|
1292
|
-
}),
|
|
1293
|
-
},
|
|
1268
|
+
}), On = (e) => (_(e.ns) && (e.ns = [e.ns]), _(e.fallbackLng) && (e.fallbackLng = [e.fallbackLng]), _(e.fallbackNS) && (e.fallbackNS = [e.fallbackNS]), e.supportedLngs && e.supportedLngs.indexOf("cimode") < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), e), Qe = () => {
|
|
1269
|
+
}, Qs = (e) => {
|
|
1294
1270
|
Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((n) => {
|
|
1295
1271
|
typeof e[n] == "function" && (e[n] = e[n].bind(e));
|
|
1296
1272
|
});
|
|
1297
1273
|
};
|
|
1298
|
-
class
|
|
1274
|
+
class He extends ft {
|
|
1299
1275
|
constructor() {
|
|
1300
1276
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0;
|
|
1301
|
-
if (super(), this.options =
|
|
1277
|
+
if (super(), this.options = On(t), this.services = {}, this.logger = Q, this.modules = {
|
|
1302
1278
|
external: []
|
|
1303
|
-
},
|
|
1279
|
+
}, Qs(this), n && !this.isInitialized && !t.isClone) {
|
|
1304
1280
|
if (!this.options.initImmediate)
|
|
1305
1281
|
return this.init(t, n), this;
|
|
1306
1282
|
setTimeout(() => {
|
|
@@ -1311,43 +1287,43 @@ class je extends ct {
|
|
|
1311
1287
|
init() {
|
|
1312
1288
|
var t = this;
|
|
1313
1289
|
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, s = arguments.length > 1 ? arguments[1] : void 0;
|
|
1314
|
-
this.isInitializing = !0, typeof n == "function" && (s = n, n = {}), !n.defaultNS && n.defaultNS !== !1 && n.ns && (
|
|
1315
|
-
const i =
|
|
1290
|
+
this.isInitializing = !0, typeof n == "function" && (s = n, n = {}), !n.defaultNS && n.defaultNS !== !1 && n.ns && (_(n.ns) ? n.defaultNS = n.ns : n.ns.indexOf("translation") < 0 && (n.defaultNS = n.ns[0]));
|
|
1291
|
+
const i = kn();
|
|
1316
1292
|
this.options = {
|
|
1317
1293
|
...i,
|
|
1318
1294
|
...this.options,
|
|
1319
|
-
...
|
|
1295
|
+
...On(n)
|
|
1320
1296
|
}, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
|
|
1321
1297
|
...i.interpolation,
|
|
1322
1298
|
...this.options.interpolation
|
|
1323
1299
|
}), n.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = n.keySeparator), n.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = n.nsSeparator);
|
|
1324
1300
|
const r = (h) => h ? typeof h == "function" ? new h() : h : null;
|
|
1325
1301
|
if (!this.options.isClone) {
|
|
1326
|
-
this.modules.logger ?
|
|
1302
|
+
this.modules.logger ? Q.init(r(this.modules.logger), this.options) : Q.init(null, this.options);
|
|
1327
1303
|
let h;
|
|
1328
|
-
this.modules.formatter ? h = this.modules.formatter : typeof Intl < "u" && (h =
|
|
1329
|
-
const f = new
|
|
1330
|
-
this.store = new
|
|
1304
|
+
this.modules.formatter ? h = this.modules.formatter : typeof Intl < "u" && (h = qs);
|
|
1305
|
+
const f = new Sn(this.options);
|
|
1306
|
+
this.store = new vn(this.options.resources, this.options);
|
|
1331
1307
|
const d = this.services;
|
|
1332
|
-
d.logger =
|
|
1308
|
+
d.logger = Q, d.resourceStore = this.store, d.languageUtils = f, d.pluralResolver = new zs(f, {
|
|
1333
1309
|
prepend: this.options.pluralSeparator,
|
|
1334
1310
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
1335
1311
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
1336
|
-
}), h && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (d.formatter = r(h), d.formatter.init(d, this.options), this.options.interpolation.format = d.formatter.format.bind(d.formatter)), d.interpolator = new
|
|
1312
|
+
}), h && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (d.formatter = r(h), d.formatter.init(d, this.options), this.options.interpolation.format = d.formatter.format.bind(d.formatter)), d.interpolator = new Ks(this.options), d.utils = {
|
|
1337
1313
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
1338
|
-
}, d.backendConnector = new
|
|
1339
|
-
for (var
|
|
1340
|
-
|
|
1341
|
-
t.emit(y, ...
|
|
1342
|
-
}), this.modules.languageDetector && (d.languageDetector = r(this.modules.languageDetector), d.languageDetector.init && d.languageDetector.init(d, this.options.detection, this.options)), this.modules.i18nFormat && (d.i18nFormat = r(this.modules.i18nFormat), d.i18nFormat.init && d.i18nFormat.init(this)), this.translator = new
|
|
1343
|
-
for (var
|
|
1344
|
-
|
|
1345
|
-
t.emit(y, ...
|
|
1314
|
+
}, d.backendConnector = new Zs(r(this.modules.backend), d.resourceStore, d, this.options), d.backendConnector.on("*", function(y) {
|
|
1315
|
+
for (var k = arguments.length, C = new Array(k > 1 ? k - 1 : 0), Y = 1; Y < k; Y++)
|
|
1316
|
+
C[Y - 1] = arguments[Y];
|
|
1317
|
+
t.emit(y, ...C);
|
|
1318
|
+
}), this.modules.languageDetector && (d.languageDetector = r(this.modules.languageDetector), d.languageDetector.init && d.languageDetector.init(d, this.options.detection, this.options)), this.modules.i18nFormat && (d.i18nFormat = r(this.modules.i18nFormat), d.i18nFormat.init && d.i18nFormat.init(this)), this.translator = new ot(this.services, this.options), this.translator.on("*", function(y) {
|
|
1319
|
+
for (var k = arguments.length, C = new Array(k > 1 ? k - 1 : 0), Y = 1; Y < k; Y++)
|
|
1320
|
+
C[Y - 1] = arguments[Y];
|
|
1321
|
+
t.emit(y, ...C);
|
|
1346
1322
|
}), this.modules.external.forEach((y) => {
|
|
1347
1323
|
y.init && y.init(this);
|
|
1348
1324
|
});
|
|
1349
1325
|
}
|
|
1350
|
-
if (this.format = this.options.interpolation.format, s || (s =
|
|
1326
|
+
if (this.format = this.options.interpolation.format, s || (s = Qe), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
1351
1327
|
const h = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
|
1352
1328
|
h.length > 0 && h[0] !== "dev" && (this.options.lng = h[0]);
|
|
1353
1329
|
}
|
|
@@ -1360,25 +1336,22 @@ class je extends ct {
|
|
|
1360
1336
|
return t.store[h](...arguments), t;
|
|
1361
1337
|
};
|
|
1362
1338
|
});
|
|
1363
|
-
const u =
|
|
1339
|
+
const u = Fe(), l = () => {
|
|
1364
1340
|
const h = (f, d) => {
|
|
1365
1341
|
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), u.resolve(d), s(f, d);
|
|
1366
1342
|
};
|
|
1367
|
-
if (this.languages && this.options.compatibilityAPI !== "v1" && !this.isInitialized)
|
|
1368
|
-
return h(null, this.t.bind(this));
|
|
1343
|
+
if (this.languages && this.options.compatibilityAPI !== "v1" && !this.isInitialized) return h(null, this.t.bind(this));
|
|
1369
1344
|
this.changeLanguage(this.options.lng, h);
|
|
1370
1345
|
};
|
|
1371
1346
|
return this.options.resources || !this.options.initImmediate ? l() : setTimeout(l, 0), u;
|
|
1372
1347
|
}
|
|
1373
1348
|
loadResources(t) {
|
|
1374
|
-
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
1375
|
-
const i =
|
|
1349
|
+
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Qe;
|
|
1350
|
+
const i = _(t) ? t : this.language;
|
|
1376
1351
|
if (typeof t == "function" && (s = t), !this.options.resources || this.options.partialBundledLanguages) {
|
|
1377
|
-
if (i && i.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0))
|
|
1378
|
-
return s();
|
|
1352
|
+
if (i && i.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return s();
|
|
1379
1353
|
const r = [], a = (o) => {
|
|
1380
|
-
if (!o || o === "cimode")
|
|
1381
|
-
return;
|
|
1354
|
+
if (!o || o === "cimode") return;
|
|
1382
1355
|
this.services.languageUtils.toResolveHierarchy(o).forEach((l) => {
|
|
1383
1356
|
l !== "cimode" && r.indexOf(l) < 0 && r.push(l);
|
|
1384
1357
|
});
|
|
@@ -1390,17 +1363,15 @@ class je extends ct {
|
|
|
1390
1363
|
s(null);
|
|
1391
1364
|
}
|
|
1392
1365
|
reloadResources(t, n, s) {
|
|
1393
|
-
const i =
|
|
1394
|
-
return typeof t == "function" && (s = t, t = void 0), typeof n == "function" && (s = n, n = void 0), t || (t = this.languages), n || (n = this.options.ns), s || (s =
|
|
1366
|
+
const i = Fe();
|
|
1367
|
+
return typeof t == "function" && (s = t, t = void 0), typeof n == "function" && (s = n, n = void 0), t || (t = this.languages), n || (n = this.options.ns), s || (s = Qe), this.services.backendConnector.reload(t, n, (r) => {
|
|
1395
1368
|
i.resolve(), s(r);
|
|
1396
1369
|
}), i;
|
|
1397
1370
|
}
|
|
1398
1371
|
use(t) {
|
|
1399
|
-
if (!t)
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
1403
|
-
return t.type === "backend" && (this.modules.backend = t), (t.type === "logger" || t.log && t.warn && t.error) && (this.modules.logger = t), t.type === "languageDetector" && (this.modules.languageDetector = t), t.type === "i18nFormat" && (this.modules.i18nFormat = t), t.type === "postProcessor" && Pn.addPostProcessor(t), t.type === "formatter" && (this.modules.formatter = t), t.type === "3rdParty" && this.modules.external.push(t), this;
|
|
1372
|
+
if (!t) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
1373
|
+
if (!t.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
1374
|
+
return t.type === "backend" && (this.modules.backend = t), (t.type === "logger" || t.log && t.warn && t.error) && (this.modules.logger = t), t.type === "languageDetector" && (this.modules.languageDetector = t), t.type === "i18nFormat" && (this.modules.i18nFormat = t), t.type === "postProcessor" && Tn.addPostProcessor(t), t.type === "formatter" && (this.modules.formatter = t), t.type === "3rdParty" && this.modules.external.push(t), this;
|
|
1404
1375
|
}
|
|
1405
1376
|
setResolvedLanguage(t) {
|
|
1406
1377
|
if (!(!t || !this.languages) && !(["cimode", "dev"].indexOf(t) > -1))
|
|
@@ -1415,7 +1386,7 @@ class je extends ct {
|
|
|
1415
1386
|
changeLanguage(t, n) {
|
|
1416
1387
|
var s = this;
|
|
1417
1388
|
this.isLanguageChangingTo = t;
|
|
1418
|
-
const i =
|
|
1389
|
+
const i = Fe();
|
|
1419
1390
|
this.emit("languageChanging", t);
|
|
1420
1391
|
const r = (u) => {
|
|
1421
1392
|
this.language = u, this.languages = this.services.languageUtils.toResolveHierarchy(u), this.resolvedLanguage = void 0, this.setResolvedLanguage(u);
|
|
@@ -1427,7 +1398,7 @@ class je extends ct {
|
|
|
1427
1398
|
});
|
|
1428
1399
|
}, o = (u) => {
|
|
1429
1400
|
!t && !u && this.services.languageDetector && (u = []);
|
|
1430
|
-
const l =
|
|
1401
|
+
const l = _(u) ? u : this.services.languageUtils.getBestMatchFromCodes(u);
|
|
1431
1402
|
l && (this.language || r(l), this.translator.language || this.translator.changeLanguage(l), this.services.languageDetector && this.services.languageDetector.cacheUserLanguage && this.services.languageDetector.cacheUserLanguage(l)), this.loadResources(l, (h) => {
|
|
1432
1403
|
a(h, l);
|
|
1433
1404
|
});
|
|
@@ -1449,9 +1420,9 @@ class je extends ct {
|
|
|
1449
1420
|
u.lng = u.lng || r.lng, u.lngs = u.lngs || r.lngs, u.ns = u.ns || r.ns, u.keyPrefix !== "" && (u.keyPrefix = u.keyPrefix || s || r.keyPrefix);
|
|
1450
1421
|
const d = i.options.keySeparator || ".";
|
|
1451
1422
|
let y;
|
|
1452
|
-
return u.keyPrefix && Array.isArray(a) ? y = a.map((
|
|
1423
|
+
return u.keyPrefix && Array.isArray(a) ? y = a.map((k) => `${u.keyPrefix}${d}${k}`) : y = u.keyPrefix ? `${u.keyPrefix}${d}${a}` : a, i.t(y, u);
|
|
1453
1424
|
};
|
|
1454
|
-
return
|
|
1425
|
+
return _(t) ? r.lng = t : r.lngs = t, r.ns = n, r.keyPrefix = s, r;
|
|
1455
1426
|
}
|
|
1456
1427
|
t() {
|
|
1457
1428
|
return this.translator && this.translator.translate(...arguments);
|
|
@@ -1469,61 +1440,58 @@ class je extends ct {
|
|
|
1469
1440
|
if (!this.languages || !this.languages.length)
|
|
1470
1441
|
return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
|
|
1471
1442
|
const s = n.lng || this.resolvedLanguage || this.languages[0], i = this.options ? this.options.fallbackLng : !1, r = this.languages[this.languages.length - 1];
|
|
1472
|
-
if (s.toLowerCase() === "cimode")
|
|
1473
|
-
return !0;
|
|
1443
|
+
if (s.toLowerCase() === "cimode") return !0;
|
|
1474
1444
|
const a = (o, u) => {
|
|
1475
1445
|
const l = this.services.backendConnector.state[`${o}|${u}`];
|
|
1476
1446
|
return l === -1 || l === 0 || l === 2;
|
|
1477
1447
|
};
|
|
1478
1448
|
if (n.precheck) {
|
|
1479
1449
|
const o = n.precheck(this, a);
|
|
1480
|
-
if (o !== void 0)
|
|
1481
|
-
return o;
|
|
1450
|
+
if (o !== void 0) return o;
|
|
1482
1451
|
}
|
|
1483
1452
|
return !!(this.hasResourceBundle(s, t) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a(s, t) && (!i || a(r, t)));
|
|
1484
1453
|
}
|
|
1485
1454
|
loadNamespaces(t, n) {
|
|
1486
|
-
const s =
|
|
1487
|
-
return this.options.ns ? (
|
|
1455
|
+
const s = Fe();
|
|
1456
|
+
return this.options.ns ? (_(t) && (t = [t]), t.forEach((i) => {
|
|
1488
1457
|
this.options.ns.indexOf(i) < 0 && this.options.ns.push(i);
|
|
1489
1458
|
}), this.loadResources((i) => {
|
|
1490
1459
|
s.resolve(), n && n(i);
|
|
1491
1460
|
}), s) : (n && n(), Promise.resolve());
|
|
1492
1461
|
}
|
|
1493
1462
|
loadLanguages(t, n) {
|
|
1494
|
-
const s =
|
|
1495
|
-
|
|
1463
|
+
const s = Fe();
|
|
1464
|
+
_(t) && (t = [t]);
|
|
1496
1465
|
const i = this.options.preload || [], r = t.filter((a) => i.indexOf(a) < 0 && this.services.languageUtils.isSupportedCode(a));
|
|
1497
1466
|
return r.length ? (this.options.preload = i.concat(r), this.loadResources((a) => {
|
|
1498
1467
|
s.resolve(), n && n(a);
|
|
1499
1468
|
}), s) : (n && n(), Promise.resolve());
|
|
1500
1469
|
}
|
|
1501
1470
|
dir(t) {
|
|
1502
|
-
if (t || (t = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !t)
|
|
1503
|
-
|
|
1504
|
-
const n = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], s = this.services && this.services.languageUtils || new wn(xn());
|
|
1471
|
+
if (t || (t = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !t) return "rtl";
|
|
1472
|
+
const n = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], s = this.services && this.services.languageUtils || new Sn(kn());
|
|
1505
1473
|
return n.indexOf(s.getLanguagePartFromCode(t)) > -1 || t.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
1506
1474
|
}
|
|
1507
1475
|
static createInstance() {
|
|
1508
1476
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0;
|
|
1509
|
-
return new
|
|
1477
|
+
return new He(t, n);
|
|
1510
1478
|
}
|
|
1511
1479
|
cloneInstance() {
|
|
1512
|
-
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
1480
|
+
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Qe;
|
|
1513
1481
|
const s = t.forkResourceStore;
|
|
1514
1482
|
s && delete t.forkResourceStore;
|
|
1515
1483
|
const i = {
|
|
1516
1484
|
...this.options,
|
|
1517
1485
|
...t,
|
|
1518
1486
|
isClone: !0
|
|
1519
|
-
}, r = new
|
|
1487
|
+
}, r = new He(i);
|
|
1520
1488
|
return (t.debug !== void 0 || t.prefix !== void 0) && (r.logger = r.logger.clone(t)), ["store", "services", "language"].forEach((o) => {
|
|
1521
1489
|
r[o] = this[o];
|
|
1522
1490
|
}), r.services = {
|
|
1523
1491
|
...this.services
|
|
1524
1492
|
}, r.services.utils = {
|
|
1525
1493
|
hasLoadedNamespace: r.hasLoadedNamespace.bind(r)
|
|
1526
|
-
}, s && (r.store = new
|
|
1494
|
+
}, s && (r.store = new vn(this.store.data, i), r.services.resourceStore = r.store), r.translator = new ot(r.services, i), r.translator.on("*", function(o) {
|
|
1527
1495
|
for (var u = arguments.length, l = new Array(u > 1 ? u - 1 : 0), h = 1; h < u; h++)
|
|
1528
1496
|
l[h - 1] = arguments[h];
|
|
1529
1497
|
r.emit(o, ...l);
|
|
@@ -1541,23 +1509,23 @@ class je extends ct {
|
|
|
1541
1509
|
};
|
|
1542
1510
|
}
|
|
1543
1511
|
}
|
|
1544
|
-
const
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
const
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
const
|
|
1512
|
+
const A = He.createInstance();
|
|
1513
|
+
A.createInstance = He.createInstance;
|
|
1514
|
+
A.createInstance;
|
|
1515
|
+
A.dir;
|
|
1516
|
+
A.init;
|
|
1517
|
+
A.loadResources;
|
|
1518
|
+
A.reloadResources;
|
|
1519
|
+
A.use;
|
|
1520
|
+
A.changeLanguage;
|
|
1521
|
+
A.getFixedT;
|
|
1522
|
+
const Dt = A.t;
|
|
1523
|
+
A.exists;
|
|
1524
|
+
A.setDefaultNamespace;
|
|
1525
|
+
A.hasLoadedNamespace;
|
|
1526
|
+
A.loadNamespaces;
|
|
1527
|
+
A.loadLanguages;
|
|
1528
|
+
const Yt = {
|
|
1561
1529
|
d1: "<:d1:1159542168738873455>",
|
|
1562
1530
|
d2: "<:d2:1159542071049334814>",
|
|
1563
1531
|
d3: "<:d3:1159542073914032191>",
|
|
@@ -1679,61 +1647,61 @@ const Dt = {
|
|
|
1679
1647
|
equipment_adventurer_helmet: "<:Casque_cuir:1256965718432550953>",
|
|
1680
1648
|
equipment_adventurer_weapon: "<:Dague_cuir:1256965714141515837>",
|
|
1681
1649
|
equipment_adventurer_belt: "<:Ceinture_cuir:1256965593333108838>"
|
|
1682
|
-
},
|
|
1650
|
+
}, Nt = (e) => new Intl.NumberFormat("de-DE").format(e);
|
|
1683
1651
|
//! moment.js
|
|
1684
1652
|
//! version : 2.30.1
|
|
1685
1653
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
1686
1654
|
//! license : MIT
|
|
1687
1655
|
//! momentjs.com
|
|
1688
|
-
var
|
|
1656
|
+
var En;
|
|
1689
1657
|
function g() {
|
|
1690
|
-
return
|
|
1658
|
+
return En.apply(null, arguments);
|
|
1691
1659
|
}
|
|
1692
|
-
function
|
|
1693
|
-
|
|
1660
|
+
function Xs(e) {
|
|
1661
|
+
En = e;
|
|
1694
1662
|
}
|
|
1695
|
-
function
|
|
1663
|
+
function B(e) {
|
|
1696
1664
|
return e instanceof Array || Object.prototype.toString.call(e) === "[object Array]";
|
|
1697
1665
|
}
|
|
1698
|
-
function
|
|
1666
|
+
function _e(e) {
|
|
1699
1667
|
return e != null && Object.prototype.toString.call(e) === "[object Object]";
|
|
1700
1668
|
}
|
|
1701
|
-
function
|
|
1669
|
+
function b(e, t) {
|
|
1702
1670
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
1703
1671
|
}
|
|
1704
|
-
function
|
|
1672
|
+
function Wt(e) {
|
|
1705
1673
|
if (Object.getOwnPropertyNames)
|
|
1706
1674
|
return Object.getOwnPropertyNames(e).length === 0;
|
|
1707
1675
|
var t;
|
|
1708
1676
|
for (t in e)
|
|
1709
|
-
if (
|
|
1677
|
+
if (b(e, t))
|
|
1710
1678
|
return !1;
|
|
1711
1679
|
return !0;
|
|
1712
1680
|
}
|
|
1713
|
-
function
|
|
1681
|
+
function I(e) {
|
|
1714
1682
|
return e === void 0;
|
|
1715
1683
|
}
|
|
1716
|
-
function
|
|
1684
|
+
function ue(e) {
|
|
1717
1685
|
return typeof e == "number" || Object.prototype.toString.call(e) === "[object Number]";
|
|
1718
1686
|
}
|
|
1719
|
-
function
|
|
1687
|
+
function ze(e) {
|
|
1720
1688
|
return e instanceof Date || Object.prototype.toString.call(e) === "[object Date]";
|
|
1721
1689
|
}
|
|
1722
|
-
function
|
|
1690
|
+
function Fn(e, t) {
|
|
1723
1691
|
var n = [], s, i = e.length;
|
|
1724
1692
|
for (s = 0; s < i; ++s)
|
|
1725
1693
|
n.push(t(e[s], s));
|
|
1726
1694
|
return n;
|
|
1727
1695
|
}
|
|
1728
|
-
function
|
|
1696
|
+
function he(e, t) {
|
|
1729
1697
|
for (var n in t)
|
|
1730
|
-
|
|
1731
|
-
return
|
|
1698
|
+
b(t, n) && (e[n] = t[n]);
|
|
1699
|
+
return b(t, "toString") && (e.toString = t.toString), b(t, "valueOf") && (e.valueOf = t.valueOf), e;
|
|
1732
1700
|
}
|
|
1733
|
-
function
|
|
1734
|
-
return
|
|
1701
|
+
function ee(e, t, n, s) {
|
|
1702
|
+
return rs(e, t, n, s, !0).utc();
|
|
1735
1703
|
}
|
|
1736
|
-
function
|
|
1704
|
+
function ei() {
|
|
1737
1705
|
return {
|
|
1738
1706
|
empty: !1,
|
|
1739
1707
|
unusedTokens: [],
|
|
@@ -1753,20 +1721,20 @@ function Xs() {
|
|
|
1753
1721
|
weekdayMismatch: !1
|
|
1754
1722
|
};
|
|
1755
1723
|
}
|
|
1756
|
-
function
|
|
1757
|
-
return e._pf == null && (e._pf =
|
|
1724
|
+
function v(e) {
|
|
1725
|
+
return e._pf == null && (e._pf = ei()), e._pf;
|
|
1758
1726
|
}
|
|
1759
|
-
var
|
|
1760
|
-
Array.prototype.some ?
|
|
1727
|
+
var Ft;
|
|
1728
|
+
Array.prototype.some ? Ft = Array.prototype.some : Ft = function(e) {
|
|
1761
1729
|
var t = Object(this), n = t.length >>> 0, s;
|
|
1762
1730
|
for (s = 0; s < n; s++)
|
|
1763
1731
|
if (s in t && e.call(this, t[s], s, t))
|
|
1764
1732
|
return !0;
|
|
1765
1733
|
return !1;
|
|
1766
1734
|
};
|
|
1767
|
-
function
|
|
1735
|
+
function Vt(e) {
|
|
1768
1736
|
var t = null, n = !1, s = e._d && !isNaN(e._d.getTime());
|
|
1769
|
-
if (s && (t =
|
|
1737
|
+
if (s && (t = v(e), n = Ft.call(t.parsedDateParts, function(i) {
|
|
1770
1738
|
return i != null;
|
|
1771
1739
|
}), s = t.overflow < 0 && !t.empty && !t.invalidEra && !t.invalidMonth && !t.invalidWeekday && !t.weekdayMismatch && !t.nullInput && !t.invalidFormat && !t.userInvalidated && (!t.meridiem || t.meridiem && n), e._strict && (s = s && t.charsLeftOver === 0 && t.unusedTokens.length === 0 && t.bigHour === void 0)), Object.isFrozen == null || !Object.isFrozen(e))
|
|
1772
1740
|
e._isValid = s;
|
|
@@ -1774,30 +1742,30 @@ function Wt(e) {
|
|
|
1774
1742
|
return s;
|
|
1775
1743
|
return e._isValid;
|
|
1776
1744
|
}
|
|
1777
|
-
function
|
|
1778
|
-
var t =
|
|
1779
|
-
return e != null ?
|
|
1745
|
+
function gt(e) {
|
|
1746
|
+
var t = ee(NaN);
|
|
1747
|
+
return e != null ? he(v(t), e) : v(t).userInvalidated = !0, t;
|
|
1780
1748
|
}
|
|
1781
|
-
var
|
|
1782
|
-
function
|
|
1783
|
-
var n, s, i, r =
|
|
1784
|
-
if (
|
|
1749
|
+
var Mn = g.momentProperties = [], Ct = !1;
|
|
1750
|
+
function Gt(e, t) {
|
|
1751
|
+
var n, s, i, r = Mn.length;
|
|
1752
|
+
if (I(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject), I(t._i) || (e._i = t._i), I(t._f) || (e._f = t._f), I(t._l) || (e._l = t._l), I(t._strict) || (e._strict = t._strict), I(t._tzm) || (e._tzm = t._tzm), I(t._isUTC) || (e._isUTC = t._isUTC), I(t._offset) || (e._offset = t._offset), I(t._pf) || (e._pf = v(t)), I(t._locale) || (e._locale = t._locale), r > 0)
|
|
1785
1753
|
for (n = 0; n < r; n++)
|
|
1786
|
-
s =
|
|
1754
|
+
s = Mn[n], i = t[s], I(i) || (e[s] = i);
|
|
1787
1755
|
return e;
|
|
1788
1756
|
}
|
|
1789
|
-
function
|
|
1790
|
-
|
|
1757
|
+
function Ke(e) {
|
|
1758
|
+
Gt(this, e), this._d = new Date(e._d != null ? e._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), Ct === !1 && (Ct = !0, g.updateOffset(this), Ct = !1);
|
|
1791
1759
|
}
|
|
1792
|
-
function
|
|
1793
|
-
return e instanceof
|
|
1760
|
+
function q(e) {
|
|
1761
|
+
return e instanceof Ke || e != null && e._isAMomentObject != null;
|
|
1794
1762
|
}
|
|
1795
|
-
function
|
|
1763
|
+
function An(e) {
|
|
1796
1764
|
g.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + e);
|
|
1797
1765
|
}
|
|
1798
|
-
function
|
|
1766
|
+
function V(e, t) {
|
|
1799
1767
|
var n = !0;
|
|
1800
|
-
return
|
|
1768
|
+
return he(function() {
|
|
1801
1769
|
if (g.deprecationHandler != null && g.deprecationHandler(null, e), n) {
|
|
1802
1770
|
var s = [], i, r, a, o = arguments.length;
|
|
1803
1771
|
for (r = 0; r < o; r++) {
|
|
@@ -1805,13 +1773,13 @@ function W(e, t) {
|
|
|
1805
1773
|
i += `
|
|
1806
1774
|
[` + r + "] ";
|
|
1807
1775
|
for (a in arguments[0])
|
|
1808
|
-
|
|
1776
|
+
b(arguments[0], a) && (i += a + ": " + arguments[0][a] + ", ");
|
|
1809
1777
|
i = i.slice(0, -2);
|
|
1810
1778
|
} else
|
|
1811
1779
|
i = arguments[r];
|
|
1812
1780
|
s.push(i);
|
|
1813
1781
|
}
|
|
1814
|
-
|
|
1782
|
+
An(
|
|
1815
1783
|
e + `
|
|
1816
1784
|
Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
1817
1785
|
` + new Error().stack
|
|
@@ -1820,42 +1788,42 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
1820
1788
|
return t.apply(this, arguments);
|
|
1821
1789
|
}, t);
|
|
1822
1790
|
}
|
|
1823
|
-
var
|
|
1824
|
-
function
|
|
1825
|
-
g.deprecationHandler != null && g.deprecationHandler(e, t),
|
|
1791
|
+
var Dn = {};
|
|
1792
|
+
function In(e, t) {
|
|
1793
|
+
g.deprecationHandler != null && g.deprecationHandler(e, t), Dn[e] || (An(t), Dn[e] = !0);
|
|
1826
1794
|
}
|
|
1827
1795
|
g.suppressDeprecationWarnings = !1;
|
|
1828
1796
|
g.deprecationHandler = null;
|
|
1829
|
-
function
|
|
1797
|
+
function te(e) {
|
|
1830
1798
|
return typeof Function < "u" && e instanceof Function || Object.prototype.toString.call(e) === "[object Function]";
|
|
1831
1799
|
}
|
|
1832
|
-
function
|
|
1800
|
+
function ti(e) {
|
|
1833
1801
|
var t, n;
|
|
1834
1802
|
for (n in e)
|
|
1835
|
-
|
|
1803
|
+
b(e, n) && (t = e[n], te(t) ? this[n] = t : this["_" + n] = t);
|
|
1836
1804
|
this._config = e, this._dayOfMonthOrdinalParseLenient = new RegExp(
|
|
1837
1805
|
(this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source
|
|
1838
1806
|
);
|
|
1839
1807
|
}
|
|
1840
|
-
function
|
|
1841
|
-
var n =
|
|
1808
|
+
function At(e, t) {
|
|
1809
|
+
var n = he({}, e), s;
|
|
1842
1810
|
for (s in t)
|
|
1843
|
-
|
|
1811
|
+
b(t, s) && (_e(e[s]) && _e(t[s]) ? (n[s] = {}, he(n[s], e[s]), he(n[s], t[s])) : t[s] != null ? n[s] = t[s] : delete n[s]);
|
|
1844
1812
|
for (s in e)
|
|
1845
|
-
|
|
1813
|
+
b(e, s) && !b(t, s) && _e(e[s]) && (n[s] = he({}, n[s]));
|
|
1846
1814
|
return n;
|
|
1847
1815
|
}
|
|
1848
|
-
function
|
|
1816
|
+
function zt(e) {
|
|
1849
1817
|
e != null && this.set(e);
|
|
1850
1818
|
}
|
|
1851
|
-
var
|
|
1852
|
-
Object.keys ?
|
|
1819
|
+
var It;
|
|
1820
|
+
Object.keys ? It = Object.keys : It = function(e) {
|
|
1853
1821
|
var t, n = [];
|
|
1854
1822
|
for (t in e)
|
|
1855
|
-
|
|
1823
|
+
b(e, t) && n.push(t);
|
|
1856
1824
|
return n;
|
|
1857
1825
|
};
|
|
1858
|
-
var
|
|
1826
|
+
var ni = {
|
|
1859
1827
|
sameDay: "[Today at] LT",
|
|
1860
1828
|
nextDay: "[Tomorrow at] LT",
|
|
1861
1829
|
nextWeek: "dddd [at] LT",
|
|
@@ -1863,58 +1831,58 @@ var ti = {
|
|
|
1863
1831
|
lastWeek: "[Last] dddd [at] LT",
|
|
1864
1832
|
sameElse: "L"
|
|
1865
1833
|
};
|
|
1866
|
-
function
|
|
1834
|
+
function si(e, t, n) {
|
|
1867
1835
|
var s = this._calendar[e] || this._calendar.sameElse;
|
|
1868
|
-
return
|
|
1836
|
+
return te(s) ? s.call(t, n) : s;
|
|
1869
1837
|
}
|
|
1870
|
-
function
|
|
1838
|
+
function X(e, t, n) {
|
|
1871
1839
|
var s = "" + Math.abs(e), i = t - s.length, r = e >= 0;
|
|
1872
1840
|
return (r ? n ? "+" : "" : "-") + Math.pow(10, Math.max(0, i)).toString().substr(1) + s;
|
|
1873
1841
|
}
|
|
1874
|
-
var
|
|
1842
|
+
var Kt = /(\[[^\[]*\])|(\\)?([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, Xe = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, Lt = {}, Oe = {};
|
|
1875
1843
|
function p(e, t, n, s) {
|
|
1876
1844
|
var i = s;
|
|
1877
1845
|
typeof s == "string" && (i = function() {
|
|
1878
1846
|
return this[s]();
|
|
1879
|
-
}), e && (
|
|
1880
|
-
return
|
|
1881
|
-
}), n && (
|
|
1847
|
+
}), e && (Oe[e] = i), t && (Oe[t[0]] = function() {
|
|
1848
|
+
return X(i.apply(this, arguments), t[1], t[2]);
|
|
1849
|
+
}), n && (Oe[n] = function() {
|
|
1882
1850
|
return this.localeData().ordinal(
|
|
1883
1851
|
i.apply(this, arguments),
|
|
1884
1852
|
e
|
|
1885
1853
|
);
|
|
1886
1854
|
});
|
|
1887
1855
|
}
|
|
1888
|
-
function
|
|
1856
|
+
function ii(e) {
|
|
1889
1857
|
return e.match(/\[[\s\S]/) ? e.replace(/^\[|\]$/g, "") : e.replace(/\\/g, "");
|
|
1890
1858
|
}
|
|
1891
|
-
function
|
|
1892
|
-
var t = e.match(
|
|
1859
|
+
function ri(e) {
|
|
1860
|
+
var t = e.match(Kt), n, s;
|
|
1893
1861
|
for (n = 0, s = t.length; n < s; n++)
|
|
1894
|
-
|
|
1862
|
+
Oe[t[n]] ? t[n] = Oe[t[n]] : t[n] = ii(t[n]);
|
|
1895
1863
|
return function(i) {
|
|
1896
1864
|
var r = "", a;
|
|
1897
1865
|
for (a = 0; a < s; a++)
|
|
1898
|
-
r +=
|
|
1866
|
+
r += te(t[a]) ? t[a].call(i, e) : t[a];
|
|
1899
1867
|
return r;
|
|
1900
1868
|
};
|
|
1901
1869
|
}
|
|
1902
|
-
function
|
|
1903
|
-
return e.isValid() ? (t =
|
|
1870
|
+
function tt(e, t) {
|
|
1871
|
+
return e.isValid() ? (t = jn(t, e.localeData()), Lt[t] = Lt[t] || ri(t), Lt[t](e)) : e.localeData().invalidDate();
|
|
1904
1872
|
}
|
|
1905
|
-
function
|
|
1873
|
+
function jn(e, t) {
|
|
1906
1874
|
var n = 5;
|
|
1907
1875
|
function s(i) {
|
|
1908
1876
|
return t.longDateFormat(i) || i;
|
|
1909
1877
|
}
|
|
1910
|
-
for (
|
|
1878
|
+
for (Xe.lastIndex = 0; n >= 0 && Xe.test(e); )
|
|
1911
1879
|
e = e.replace(
|
|
1912
|
-
|
|
1880
|
+
Xe,
|
|
1913
1881
|
s
|
|
1914
|
-
),
|
|
1882
|
+
), Xe.lastIndex = 0, n -= 1;
|
|
1915
1883
|
return e;
|
|
1916
1884
|
}
|
|
1917
|
-
var
|
|
1885
|
+
var ai = {
|
|
1918
1886
|
LTS: "h:mm:ss A",
|
|
1919
1887
|
LT: "h:mm A",
|
|
1920
1888
|
L: "MM/DD/YYYY",
|
|
@@ -1922,21 +1890,21 @@ var ri = {
|
|
|
1922
1890
|
LLL: "MMMM D, YYYY h:mm A",
|
|
1923
1891
|
LLLL: "dddd, MMMM D, YYYY h:mm A"
|
|
1924
1892
|
};
|
|
1925
|
-
function
|
|
1893
|
+
function oi(e) {
|
|
1926
1894
|
var t = this._longDateFormat[e], n = this._longDateFormat[e.toUpperCase()];
|
|
1927
|
-
return t || !n ? t : (this._longDateFormat[e] = n.match(
|
|
1895
|
+
return t || !n ? t : (this._longDateFormat[e] = n.match(Kt).map(function(s) {
|
|
1928
1896
|
return s === "MMMM" || s === "MM" || s === "DD" || s === "dddd" ? s.slice(1) : s;
|
|
1929
1897
|
}).join(""), this._longDateFormat[e]);
|
|
1930
1898
|
}
|
|
1931
|
-
var
|
|
1932
|
-
function
|
|
1899
|
+
var ui = "Invalid date";
|
|
1900
|
+
function li() {
|
|
1933
1901
|
return this._invalidDate;
|
|
1934
1902
|
}
|
|
1935
|
-
var
|
|
1936
|
-
function
|
|
1903
|
+
var di = "%d", hi = /\d{1,2}/;
|
|
1904
|
+
function ci(e) {
|
|
1937
1905
|
return this._ordinal.replace("%d", e);
|
|
1938
1906
|
}
|
|
1939
|
-
var
|
|
1907
|
+
var fi = {
|
|
1940
1908
|
future: "in %s",
|
|
1941
1909
|
past: "%s ago",
|
|
1942
1910
|
s: "a few seconds",
|
|
@@ -1954,15 +1922,15 @@ var ci = {
|
|
|
1954
1922
|
y: "a year",
|
|
1955
1923
|
yy: "%d years"
|
|
1956
1924
|
};
|
|
1957
|
-
function
|
|
1925
|
+
function gi(e, t, n, s) {
|
|
1958
1926
|
var i = this._relativeTime[n];
|
|
1959
|
-
return
|
|
1927
|
+
return te(i) ? i(e, t, n, s) : i.replace(/%d/i, e);
|
|
1960
1928
|
}
|
|
1961
|
-
function
|
|
1929
|
+
function mi(e, t) {
|
|
1962
1930
|
var n = this._relativeTime[e > 0 ? "future" : "past"];
|
|
1963
|
-
return
|
|
1931
|
+
return te(n) ? n(t) : n.replace(/%s/i, t);
|
|
1964
1932
|
}
|
|
1965
|
-
var
|
|
1933
|
+
var Yn = {
|
|
1966
1934
|
D: "date",
|
|
1967
1935
|
dates: "date",
|
|
1968
1936
|
date: "date",
|
|
@@ -2012,16 +1980,16 @@ var Dn = {
|
|
|
2012
1980
|
years: "year",
|
|
2013
1981
|
year: "year"
|
|
2014
1982
|
};
|
|
2015
|
-
function
|
|
2016
|
-
return typeof e == "string" ?
|
|
1983
|
+
function G(e) {
|
|
1984
|
+
return typeof e == "string" ? Yn[e] || Yn[e.toLowerCase()] : void 0;
|
|
2017
1985
|
}
|
|
2018
|
-
function
|
|
1986
|
+
function Bt(e) {
|
|
2019
1987
|
var t = {}, n, s;
|
|
2020
1988
|
for (s in e)
|
|
2021
|
-
|
|
1989
|
+
b(e, s) && (n = G(s), n && (t[n] = e[s]));
|
|
2022
1990
|
return t;
|
|
2023
1991
|
}
|
|
2024
|
-
var
|
|
1992
|
+
var pi = {
|
|
2025
1993
|
date: 9,
|
|
2026
1994
|
day: 11,
|
|
2027
1995
|
weekday: 11,
|
|
@@ -2039,26 +2007,26 @@ var mi = {
|
|
|
2039
2007
|
isoWeek: 5,
|
|
2040
2008
|
year: 1
|
|
2041
2009
|
};
|
|
2042
|
-
function
|
|
2010
|
+
function yi(e) {
|
|
2043
2011
|
var t = [], n;
|
|
2044
2012
|
for (n in e)
|
|
2045
|
-
|
|
2013
|
+
b(e, n) && t.push({ unit: n, priority: pi[n] });
|
|
2046
2014
|
return t.sort(function(s, i) {
|
|
2047
2015
|
return s.priority - i.priority;
|
|
2048
2016
|
}), t;
|
|
2049
2017
|
}
|
|
2050
|
-
var
|
|
2051
|
-
|
|
2018
|
+
var Un = /\d/, $ = /\d\d/, Hn = /\d{3}/, qt = /\d{4}/, mt = /[+-]?\d{6}/, D = /\d\d?/, $n = /\d\d\d\d?/, Wn = /\d\d\d\d\d\d?/, pt = /\d{1,3}/, Jt = /\d{1,4}/, yt = /[+-]?\d{1,6}/, Ye = /\d+/, _t = /[+-]?\d+/, _i = /Z|[+-]\d\d:?\d\d/gi, vt = /Z|[+-]\d\d(?::?\d\d)?/gi, vi = /[+-]?\d+(\.\d{1,3})?/, Be = /[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, Ne = /^[1-9]\d?/, Zt = /^([1-9]\d|\d)/, ut;
|
|
2019
|
+
ut = {};
|
|
2052
2020
|
function m(e, t, n) {
|
|
2053
|
-
|
|
2021
|
+
ut[e] = te(t) ? t : function(s, i) {
|
|
2054
2022
|
return s && n ? n : t;
|
|
2055
2023
|
};
|
|
2056
2024
|
}
|
|
2057
|
-
function
|
|
2058
|
-
return
|
|
2025
|
+
function wi(e, t) {
|
|
2026
|
+
return b(ut, e) ? ut[e](t._strict, t._locale) : new RegExp(Si(e));
|
|
2059
2027
|
}
|
|
2060
|
-
function
|
|
2061
|
-
return
|
|
2028
|
+
function Si(e) {
|
|
2029
|
+
return ae(
|
|
2062
2030
|
e.replace("\\", "").replace(
|
|
2063
2031
|
/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
|
|
2064
2032
|
function(t, n, s, i, r) {
|
|
@@ -2067,39 +2035,39 @@ function wi(e) {
|
|
|
2067
2035
|
)
|
|
2068
2036
|
);
|
|
2069
2037
|
}
|
|
2070
|
-
function
|
|
2038
|
+
function ae(e) {
|
|
2071
2039
|
return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
2072
2040
|
}
|
|
2073
|
-
function
|
|
2041
|
+
function W(e) {
|
|
2074
2042
|
return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);
|
|
2075
2043
|
}
|
|
2076
|
-
function
|
|
2044
|
+
function w(e) {
|
|
2077
2045
|
var t = +e, n = 0;
|
|
2078
|
-
return t !== 0 && isFinite(t) && (n =
|
|
2046
|
+
return t !== 0 && isFinite(t) && (n = W(t)), n;
|
|
2079
2047
|
}
|
|
2080
|
-
var
|
|
2081
|
-
function
|
|
2048
|
+
var jt = {};
|
|
2049
|
+
function O(e, t) {
|
|
2082
2050
|
var n, s = t, i;
|
|
2083
|
-
for (typeof e == "string" && (e = [e]),
|
|
2084
|
-
a[t] =
|
|
2051
|
+
for (typeof e == "string" && (e = [e]), ue(t) && (s = function(r, a) {
|
|
2052
|
+
a[t] = w(r);
|
|
2085
2053
|
}), i = e.length, n = 0; n < i; n++)
|
|
2086
|
-
|
|
2054
|
+
jt[e[n]] = s;
|
|
2087
2055
|
}
|
|
2088
|
-
function
|
|
2089
|
-
|
|
2056
|
+
function qe(e, t) {
|
|
2057
|
+
O(e, function(n, s, i, r) {
|
|
2090
2058
|
i._w = i._w || {}, t(n, i._w, i, r);
|
|
2091
2059
|
});
|
|
2092
2060
|
}
|
|
2093
|
-
function
|
|
2094
|
-
t != null &&
|
|
2061
|
+
function bi(e, t, n) {
|
|
2062
|
+
t != null && b(jt, e) && jt[e](t, n._a, n, e);
|
|
2095
2063
|
}
|
|
2096
|
-
function
|
|
2064
|
+
function wt(e) {
|
|
2097
2065
|
return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0;
|
|
2098
2066
|
}
|
|
2099
|
-
var
|
|
2067
|
+
var T = 0, ie = 1, Z = 2, P = 3, K = 4, re = 5, ye = 6, xi = 7, ki = 8;
|
|
2100
2068
|
p("Y", 0, 0, function() {
|
|
2101
2069
|
var e = this.year();
|
|
2102
|
-
return e <= 9999 ?
|
|
2070
|
+
return e <= 9999 ? X(e, 4) : "+" + e;
|
|
2103
2071
|
});
|
|
2104
2072
|
p(0, ["YY", 2], 0, function() {
|
|
2105
2073
|
return this.year() % 100;
|
|
@@ -2107,37 +2075,37 @@ p(0, ["YY", 2], 0, function() {
|
|
|
2107
2075
|
p(0, ["YYYY", 4], 0, "year");
|
|
2108
2076
|
p(0, ["YYYYY", 5], 0, "year");
|
|
2109
2077
|
p(0, ["YYYYYY", 6, !0], 0, "year");
|
|
2110
|
-
m("Y",
|
|
2111
|
-
m("YY",
|
|
2112
|
-
m("YYYY",
|
|
2113
|
-
m("YYYYY",
|
|
2114
|
-
m("YYYYYY",
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
t[
|
|
2078
|
+
m("Y", _t);
|
|
2079
|
+
m("YY", D, $);
|
|
2080
|
+
m("YYYY", Jt, qt);
|
|
2081
|
+
m("YYYYY", yt, mt);
|
|
2082
|
+
m("YYYYYY", yt, mt);
|
|
2083
|
+
O(["YYYYY", "YYYYYY"], T);
|
|
2084
|
+
O("YYYY", function(e, t) {
|
|
2085
|
+
t[T] = e.length === 2 ? g.parseTwoDigitYear(e) : w(e);
|
|
2118
2086
|
});
|
|
2119
|
-
|
|
2120
|
-
t[
|
|
2087
|
+
O("YY", function(e, t) {
|
|
2088
|
+
t[T] = g.parseTwoDigitYear(e);
|
|
2121
2089
|
});
|
|
2122
|
-
|
|
2123
|
-
t[
|
|
2090
|
+
O("Y", function(e, t) {
|
|
2091
|
+
t[T] = parseInt(e, 10);
|
|
2124
2092
|
});
|
|
2125
|
-
function
|
|
2126
|
-
return
|
|
2093
|
+
function Ue(e) {
|
|
2094
|
+
return wt(e) ? 366 : 365;
|
|
2127
2095
|
}
|
|
2128
2096
|
g.parseTwoDigitYear = function(e) {
|
|
2129
|
-
return
|
|
2097
|
+
return w(e) + (w(e) > 68 ? 1900 : 2e3);
|
|
2130
2098
|
};
|
|
2131
|
-
var
|
|
2132
|
-
function
|
|
2133
|
-
return
|
|
2099
|
+
var Vn = Ce("FullYear", !0);
|
|
2100
|
+
function Oi() {
|
|
2101
|
+
return wt(this.year());
|
|
2134
2102
|
}
|
|
2135
|
-
function
|
|
2103
|
+
function Ce(e, t) {
|
|
2136
2104
|
return function(n) {
|
|
2137
|
-
return n != null ? (
|
|
2105
|
+
return n != null ? (Gn(this, e, n), g.updateOffset(this, t), this) : $e(this, e);
|
|
2138
2106
|
};
|
|
2139
2107
|
}
|
|
2140
|
-
function
|
|
2108
|
+
function $e(e, t) {
|
|
2141
2109
|
if (!e.isValid())
|
|
2142
2110
|
return NaN;
|
|
2143
2111
|
var n = e._d, s = e._isUTC;
|
|
@@ -2162,7 +2130,7 @@ function Ue(e, t) {
|
|
|
2162
2130
|
return NaN;
|
|
2163
2131
|
}
|
|
2164
2132
|
}
|
|
2165
|
-
function
|
|
2133
|
+
function Gn(e, t, n) {
|
|
2166
2134
|
var s, i, r, a, o;
|
|
2167
2135
|
if (!(!e.isValid() || isNaN(n))) {
|
|
2168
2136
|
switch (s = e._d, i = e._isUTC, t) {
|
|
@@ -2181,38 +2149,38 @@ function Vn(e, t, n) {
|
|
|
2181
2149
|
default:
|
|
2182
2150
|
return;
|
|
2183
2151
|
}
|
|
2184
|
-
r = n, a = e.month(), o = e.date(), o = o === 29 && a === 1 && !
|
|
2152
|
+
r = n, a = e.month(), o = e.date(), o = o === 29 && a === 1 && !wt(r) ? 28 : o, i ? s.setUTCFullYear(r, a, o) : s.setFullYear(r, a, o);
|
|
2185
2153
|
}
|
|
2186
2154
|
}
|
|
2187
|
-
function
|
|
2188
|
-
return e =
|
|
2155
|
+
function Mi(e) {
|
|
2156
|
+
return e = G(e), te(this[e]) ? this[e]() : this;
|
|
2189
2157
|
}
|
|
2190
|
-
function
|
|
2158
|
+
function Di(e, t) {
|
|
2191
2159
|
if (typeof e == "object") {
|
|
2192
|
-
e =
|
|
2193
|
-
var n =
|
|
2160
|
+
e = Bt(e);
|
|
2161
|
+
var n = yi(e), s, i = n.length;
|
|
2194
2162
|
for (s = 0; s < i; s++)
|
|
2195
2163
|
this[n[s].unit](e[n[s].unit]);
|
|
2196
|
-
} else if (e =
|
|
2164
|
+
} else if (e = G(e), te(this[e]))
|
|
2197
2165
|
return this[e](t);
|
|
2198
2166
|
return this;
|
|
2199
2167
|
}
|
|
2200
|
-
function
|
|
2168
|
+
function Yi(e, t) {
|
|
2201
2169
|
return (e % t + t) % t;
|
|
2202
2170
|
}
|
|
2203
|
-
var
|
|
2204
|
-
Array.prototype.indexOf ?
|
|
2171
|
+
var R;
|
|
2172
|
+
Array.prototype.indexOf ? R = Array.prototype.indexOf : R = function(e) {
|
|
2205
2173
|
var t;
|
|
2206
2174
|
for (t = 0; t < this.length; ++t)
|
|
2207
2175
|
if (this[t] === e)
|
|
2208
2176
|
return t;
|
|
2209
2177
|
return -1;
|
|
2210
2178
|
};
|
|
2211
|
-
function
|
|
2179
|
+
function Qt(e, t) {
|
|
2212
2180
|
if (isNaN(e) || isNaN(t))
|
|
2213
2181
|
return NaN;
|
|
2214
|
-
var n =
|
|
2215
|
-
return e += (t - n) / 12, n === 1 ?
|
|
2182
|
+
var n = Yi(t, 12);
|
|
2183
|
+
return e += (t - n) / 12, n === 1 ? wt(e) ? 29 : 28 : 31 - n % 7 % 2;
|
|
2216
2184
|
}
|
|
2217
2185
|
p("M", ["MM", 2], "Mo", function() {
|
|
2218
2186
|
return this.month() + 1;
|
|
@@ -2223,46 +2191,46 @@ p("MMM", 0, 0, function(e) {
|
|
|
2223
2191
|
p("MMMM", 0, 0, function(e) {
|
|
2224
2192
|
return this.localeData().months(this, e);
|
|
2225
2193
|
});
|
|
2226
|
-
m("M",
|
|
2227
|
-
m("MM",
|
|
2194
|
+
m("M", D, Ne);
|
|
2195
|
+
m("MM", D, $);
|
|
2228
2196
|
m("MMM", function(e, t) {
|
|
2229
2197
|
return t.monthsShortRegex(e);
|
|
2230
2198
|
});
|
|
2231
2199
|
m("MMMM", function(e, t) {
|
|
2232
2200
|
return t.monthsRegex(e);
|
|
2233
2201
|
});
|
|
2234
|
-
|
|
2235
|
-
t[
|
|
2202
|
+
O(["M", "MM"], function(e, t) {
|
|
2203
|
+
t[ie] = w(e) - 1;
|
|
2236
2204
|
});
|
|
2237
|
-
|
|
2205
|
+
O(["MMM", "MMMM"], function(e, t, n, s) {
|
|
2238
2206
|
var i = n._locale.monthsParse(e, s, n._strict);
|
|
2239
|
-
i != null ? t[
|
|
2207
|
+
i != null ? t[ie] = i : v(n).invalidMonth = e;
|
|
2240
2208
|
});
|
|
2241
|
-
var
|
|
2209
|
+
var Ni = "January_February_March_April_May_June_July_August_September_October_November_December".split(
|
|
2242
2210
|
"_"
|
|
2243
|
-
),
|
|
2244
|
-
function Li(e, t) {
|
|
2245
|
-
return e ? K(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat || zn).test(t) ? "format" : "standalone"][e.month()] : K(this._months) ? this._months : this._months.standalone;
|
|
2246
|
-
}
|
|
2211
|
+
), zn = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), Kn = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, Ci = Be, Li = Be;
|
|
2247
2212
|
function Ri(e, t) {
|
|
2248
|
-
return e ?
|
|
2213
|
+
return e ? B(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat || Kn).test(t) ? "format" : "standalone"][e.month()] : B(this._months) ? this._months : this._months.standalone;
|
|
2214
|
+
}
|
|
2215
|
+
function Pi(e, t) {
|
|
2216
|
+
return e ? B(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[Kn.test(t) ? "format" : "standalone"][e.month()] : B(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
|
|
2249
2217
|
}
|
|
2250
|
-
function
|
|
2218
|
+
function Ti(e, t, n) {
|
|
2251
2219
|
var s, i, r, a = e.toLocaleLowerCase();
|
|
2252
2220
|
if (!this._monthsParse)
|
|
2253
2221
|
for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], s = 0; s < 12; ++s)
|
|
2254
|
-
r =
|
|
2222
|
+
r = ee([2e3, s]), this._shortMonthsParse[s] = this.monthsShort(
|
|
2255
2223
|
r,
|
|
2256
2224
|
""
|
|
2257
2225
|
).toLocaleLowerCase(), this._longMonthsParse[s] = this.months(r, "").toLocaleLowerCase();
|
|
2258
|
-
return n ? t === "MMM" ? (i =
|
|
2226
|
+
return n ? t === "MMM" ? (i = R.call(this._shortMonthsParse, a), i !== -1 ? i : null) : (i = R.call(this._longMonthsParse, a), i !== -1 ? i : null) : t === "MMM" ? (i = R.call(this._shortMonthsParse, a), i !== -1 ? i : (i = R.call(this._longMonthsParse, a), i !== -1 ? i : null)) : (i = R.call(this._longMonthsParse, a), i !== -1 ? i : (i = R.call(this._shortMonthsParse, a), i !== -1 ? i : null));
|
|
2259
2227
|
}
|
|
2260
|
-
function
|
|
2228
|
+
function Ei(e, t, n) {
|
|
2261
2229
|
var s, i, r;
|
|
2262
2230
|
if (this._monthsParseExact)
|
|
2263
|
-
return
|
|
2231
|
+
return Ti.call(this, e, t, n);
|
|
2264
2232
|
for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), s = 0; s < 12; s++)
|
|
2265
|
-
if (i =
|
|
2233
|
+
if (i = ee([2e3, s]), n && !this._longMonthsParse[s] && (this._longMonthsParse[s] = new RegExp(
|
|
2266
2234
|
"^" + this.months(i, "").replace(".", "") + "$",
|
|
2267
2235
|
"i"
|
|
2268
2236
|
), this._shortMonthsParse[s] = new RegExp(
|
|
@@ -2271,37 +2239,37 @@ function Ti(e, t, n) {
|
|
|
2271
2239
|
)), !n && !this._monthsParse[s] && (r = "^" + this.months(i, "") + "|^" + this.monthsShort(i, ""), this._monthsParse[s] = new RegExp(r.replace(".", ""), "i")), n && t === "MMMM" && this._longMonthsParse[s].test(e) || n && t === "MMM" && this._shortMonthsParse[s].test(e) || !n && this._monthsParse[s].test(e))
|
|
2272
2240
|
return s;
|
|
2273
2241
|
}
|
|
2274
|
-
function
|
|
2242
|
+
function Bn(e, t) {
|
|
2275
2243
|
if (!e.isValid())
|
|
2276
2244
|
return e;
|
|
2277
2245
|
if (typeof t == "string") {
|
|
2278
2246
|
if (/^\d+$/.test(t))
|
|
2279
|
-
t =
|
|
2280
|
-
else if (t = e.localeData().monthsParse(t), !
|
|
2247
|
+
t = w(t);
|
|
2248
|
+
else if (t = e.localeData().monthsParse(t), !ue(t))
|
|
2281
2249
|
return e;
|
|
2282
2250
|
}
|
|
2283
2251
|
var n = t, s = e.date();
|
|
2284
|
-
return s = s < 29 ? s : Math.min(s,
|
|
2285
|
-
}
|
|
2286
|
-
function Bn(e) {
|
|
2287
|
-
return e != null ? (Kn(this, e), g.updateOffset(this, !0), this) : Ue(this, "Month");
|
|
2252
|
+
return s = s < 29 ? s : Math.min(s, Qt(e.year(), n)), e._isUTC ? e._d.setUTCMonth(n, s) : e._d.setMonth(n, s), e;
|
|
2288
2253
|
}
|
|
2289
|
-
function
|
|
2290
|
-
return
|
|
2254
|
+
function qn(e) {
|
|
2255
|
+
return e != null ? (Bn(this, e), g.updateOffset(this, !0), this) : $e(this, "Month");
|
|
2291
2256
|
}
|
|
2292
|
-
function Fi(
|
|
2293
|
-
return
|
|
2257
|
+
function Fi() {
|
|
2258
|
+
return Qt(this.year(), this.month());
|
|
2294
2259
|
}
|
|
2295
2260
|
function Ai(e) {
|
|
2296
|
-
return this._monthsParseExact ? (
|
|
2261
|
+
return this._monthsParseExact ? (b(this, "_monthsRegex") || Jn.call(this), e ? this._monthsShortStrictRegex : this._monthsShortRegex) : (b(this, "_monthsShortRegex") || (this._monthsShortRegex = Ci), this._monthsShortStrictRegex && e ? this._monthsShortStrictRegex : this._monthsShortRegex);
|
|
2262
|
+
}
|
|
2263
|
+
function Ii(e) {
|
|
2264
|
+
return this._monthsParseExact ? (b(this, "_monthsRegex") || Jn.call(this), e ? this._monthsStrictRegex : this._monthsRegex) : (b(this, "_monthsRegex") || (this._monthsRegex = Li), this._monthsStrictRegex && e ? this._monthsStrictRegex : this._monthsRegex);
|
|
2297
2265
|
}
|
|
2298
|
-
function
|
|
2266
|
+
function Jn() {
|
|
2299
2267
|
function e(u, l) {
|
|
2300
2268
|
return l.length - u.length;
|
|
2301
2269
|
}
|
|
2302
2270
|
var t = [], n = [], s = [], i, r, a, o;
|
|
2303
2271
|
for (i = 0; i < 12; i++)
|
|
2304
|
-
r =
|
|
2272
|
+
r = ee([2e3, i]), a = ae(this.monthsShort(r, "")), o = ae(this.months(r, "")), t.push(a), n.push(o), s.push(o), s.push(a);
|
|
2305
2273
|
t.sort(e), n.sort(e), s.sort(e), this._monthsRegex = new RegExp("^(" + s.join("|") + ")", "i"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp(
|
|
2306
2274
|
"^(" + n.join("|") + ")",
|
|
2307
2275
|
"i"
|
|
@@ -2310,69 +2278,69 @@ function qn() {
|
|
|
2310
2278
|
"i"
|
|
2311
2279
|
);
|
|
2312
2280
|
}
|
|
2313
|
-
function
|
|
2281
|
+
function ji(e, t, n, s, i, r, a) {
|
|
2314
2282
|
var o;
|
|
2315
2283
|
return e < 100 && e >= 0 ? (o = new Date(e + 400, t, n, s, i, r, a), isFinite(o.getFullYear()) && o.setFullYear(e)) : o = new Date(e, t, n, s, i, r, a), o;
|
|
2316
2284
|
}
|
|
2317
|
-
function
|
|
2285
|
+
function We(e) {
|
|
2318
2286
|
var t, n;
|
|
2319
2287
|
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;
|
|
2320
2288
|
}
|
|
2321
|
-
function
|
|
2322
|
-
var s = 7 + t - n, i = (7 +
|
|
2289
|
+
function lt(e, t, n) {
|
|
2290
|
+
var s = 7 + t - n, i = (7 + We(e, 0, s).getUTCDay() - t) % 7;
|
|
2323
2291
|
return -i + s - 1;
|
|
2324
2292
|
}
|
|
2325
|
-
function
|
|
2326
|
-
var r = (7 + n - s) % 7, a =
|
|
2327
|
-
return o <= 0 ? (u = e - 1, l =
|
|
2293
|
+
function Zn(e, t, n, s, i) {
|
|
2294
|
+
var r = (7 + n - s) % 7, a = lt(e, s, i), o = 1 + 7 * (t - 1) + r + a, u, l;
|
|
2295
|
+
return o <= 0 ? (u = e - 1, l = Ue(u) + o) : o > Ue(e) ? (u = e + 1, l = o - Ue(e)) : (u = e, l = o), {
|
|
2328
2296
|
year: u,
|
|
2329
2297
|
dayOfYear: l
|
|
2330
2298
|
};
|
|
2331
2299
|
}
|
|
2332
|
-
function
|
|
2333
|
-
var s =
|
|
2334
|
-
return i < 1 ? (a = e.year() - 1, r = i +
|
|
2300
|
+
function Ve(e, t, n) {
|
|
2301
|
+
var s = lt(e.year(), t, n), i = Math.floor((e.dayOfYear() - s - 1) / 7) + 1, r, a;
|
|
2302
|
+
return i < 1 ? (a = e.year() - 1, r = i + oe(a, t, n)) : i > oe(e.year(), t, n) ? (r = i - oe(e.year(), t, n), a = e.year() + 1) : (a = e.year(), r = i), {
|
|
2335
2303
|
week: r,
|
|
2336
2304
|
year: a
|
|
2337
2305
|
};
|
|
2338
2306
|
}
|
|
2339
|
-
function
|
|
2340
|
-
var s =
|
|
2341
|
-
return (
|
|
2307
|
+
function oe(e, t, n) {
|
|
2308
|
+
var s = lt(e, t, n), i = lt(e + 1, t, n);
|
|
2309
|
+
return (Ue(e) - s + i) / 7;
|
|
2342
2310
|
}
|
|
2343
2311
|
p("w", ["ww", 2], "wo", "week");
|
|
2344
2312
|
p("W", ["WW", 2], "Wo", "isoWeek");
|
|
2345
|
-
m("w",
|
|
2346
|
-
m("ww",
|
|
2347
|
-
m("W",
|
|
2348
|
-
m("WW",
|
|
2349
|
-
|
|
2313
|
+
m("w", D, Ne);
|
|
2314
|
+
m("ww", D, $);
|
|
2315
|
+
m("W", D, Ne);
|
|
2316
|
+
m("WW", D, $);
|
|
2317
|
+
qe(
|
|
2350
2318
|
["w", "ww", "W", "WW"],
|
|
2351
2319
|
function(e, t, n, s) {
|
|
2352
|
-
t[s.substr(0, 1)] =
|
|
2320
|
+
t[s.substr(0, 1)] = w(e);
|
|
2353
2321
|
}
|
|
2354
2322
|
);
|
|
2355
|
-
function
|
|
2356
|
-
return
|
|
2323
|
+
function Ui(e) {
|
|
2324
|
+
return Ve(e, this._week.dow, this._week.doy).week;
|
|
2357
2325
|
}
|
|
2358
|
-
var
|
|
2326
|
+
var Hi = {
|
|
2359
2327
|
dow: 0,
|
|
2360
2328
|
// Sunday is the first day of the week.
|
|
2361
2329
|
doy: 6
|
|
2362
2330
|
// The week that contains Jan 6th is the first week of the year.
|
|
2363
2331
|
};
|
|
2364
|
-
function
|
|
2332
|
+
function $i() {
|
|
2365
2333
|
return this._week.dow;
|
|
2366
2334
|
}
|
|
2367
|
-
function
|
|
2335
|
+
function Wi() {
|
|
2368
2336
|
return this._week.doy;
|
|
2369
2337
|
}
|
|
2370
|
-
function
|
|
2338
|
+
function Vi(e) {
|
|
2371
2339
|
var t = this.localeData().week(this);
|
|
2372
2340
|
return e == null ? t : this.add((e - t) * 7, "d");
|
|
2373
2341
|
}
|
|
2374
|
-
function
|
|
2375
|
-
var t =
|
|
2342
|
+
function Gi(e) {
|
|
2343
|
+
var t = Ve(this, 1, 4).week;
|
|
2376
2344
|
return e == null ? t : this.add((e - t) * 7, "d");
|
|
2377
2345
|
}
|
|
2378
2346
|
p("d", 0, "do", "day");
|
|
@@ -2387,9 +2355,9 @@ p("dddd", 0, 0, function(e) {
|
|
|
2387
2355
|
});
|
|
2388
2356
|
p("e", 0, 0, "weekday");
|
|
2389
2357
|
p("E", 0, 0, "isoWeekday");
|
|
2390
|
-
m("d",
|
|
2391
|
-
m("e",
|
|
2392
|
-
m("E",
|
|
2358
|
+
m("d", D);
|
|
2359
|
+
m("e", D);
|
|
2360
|
+
m("E", D);
|
|
2393
2361
|
m("dd", function(e, t) {
|
|
2394
2362
|
return t.weekdaysMinRegex(e);
|
|
2395
2363
|
});
|
|
@@ -2399,52 +2367,52 @@ m("ddd", function(e, t) {
|
|
|
2399
2367
|
m("dddd", function(e, t) {
|
|
2400
2368
|
return t.weekdaysRegex(e);
|
|
2401
2369
|
});
|
|
2402
|
-
|
|
2370
|
+
qe(["dd", "ddd", "dddd"], function(e, t, n, s) {
|
|
2403
2371
|
var i = n._locale.weekdaysParse(e, s, n._strict);
|
|
2404
|
-
i != null ? t.d = i :
|
|
2372
|
+
i != null ? t.d = i : v(n).invalidWeekday = e;
|
|
2405
2373
|
});
|
|
2406
|
-
|
|
2407
|
-
t[s] =
|
|
2374
|
+
qe(["d", "e", "E"], function(e, t, n, s) {
|
|
2375
|
+
t[s] = w(e);
|
|
2408
2376
|
});
|
|
2409
|
-
function
|
|
2377
|
+
function zi(e, t) {
|
|
2410
2378
|
return typeof e != "string" ? e : isNaN(e) ? (e = t.weekdaysParse(e), typeof e == "number" ? e : null) : parseInt(e, 10);
|
|
2411
2379
|
}
|
|
2412
|
-
function
|
|
2380
|
+
function Ki(e, t) {
|
|
2413
2381
|
return typeof e == "string" ? t.weekdaysParse(e) % 7 || 7 : isNaN(e) ? null : e;
|
|
2414
2382
|
}
|
|
2415
|
-
function
|
|
2383
|
+
function Xt(e, t) {
|
|
2416
2384
|
return e.slice(t, 7).concat(e.slice(0, t));
|
|
2417
2385
|
}
|
|
2418
|
-
var
|
|
2419
|
-
function
|
|
2420
|
-
var n =
|
|
2421
|
-
return e === !0 ?
|
|
2422
|
-
}
|
|
2423
|
-
function Xi(e) {
|
|
2424
|
-
return e === !0 ? Qt(this._weekdaysShort, this._week.dow) : e ? this._weekdaysShort[e.day()] : this._weekdaysShort;
|
|
2386
|
+
var Bi = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), Qn = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), qi = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), Ji = Be, Zi = Be, Qi = Be;
|
|
2387
|
+
function Xi(e, t) {
|
|
2388
|
+
var n = B(this._weekdays) ? this._weekdays : this._weekdays[e && e !== !0 && this._weekdays.isFormat.test(t) ? "format" : "standalone"];
|
|
2389
|
+
return e === !0 ? Xt(n, this._week.dow) : e ? n[e.day()] : n;
|
|
2425
2390
|
}
|
|
2426
2391
|
function er(e) {
|
|
2427
|
-
return e === !0 ?
|
|
2392
|
+
return e === !0 ? Xt(this._weekdaysShort, this._week.dow) : e ? this._weekdaysShort[e.day()] : this._weekdaysShort;
|
|
2428
2393
|
}
|
|
2429
|
-
function tr(e
|
|
2394
|
+
function tr(e) {
|
|
2395
|
+
return e === !0 ? Xt(this._weekdaysMin, this._week.dow) : e ? this._weekdaysMin[e.day()] : this._weekdaysMin;
|
|
2396
|
+
}
|
|
2397
|
+
function nr(e, t, n) {
|
|
2430
2398
|
var s, i, r, a = e.toLocaleLowerCase();
|
|
2431
2399
|
if (!this._weekdaysParse)
|
|
2432
2400
|
for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], s = 0; s < 7; ++s)
|
|
2433
|
-
r =
|
|
2401
|
+
r = ee([2e3, 1]).day(s), this._minWeekdaysParse[s] = this.weekdaysMin(
|
|
2434
2402
|
r,
|
|
2435
2403
|
""
|
|
2436
2404
|
).toLocaleLowerCase(), this._shortWeekdaysParse[s] = this.weekdaysShort(
|
|
2437
2405
|
r,
|
|
2438
2406
|
""
|
|
2439
2407
|
).toLocaleLowerCase(), this._weekdaysParse[s] = this.weekdays(r, "").toLocaleLowerCase();
|
|
2440
|
-
return n ? t === "dddd" ? (i =
|
|
2408
|
+
return n ? t === "dddd" ? (i = R.call(this._weekdaysParse, a), i !== -1 ? i : null) : t === "ddd" ? (i = R.call(this._shortWeekdaysParse, a), i !== -1 ? i : null) : (i = R.call(this._minWeekdaysParse, a), i !== -1 ? i : null) : t === "dddd" ? (i = R.call(this._weekdaysParse, a), i !== -1 || (i = R.call(this._shortWeekdaysParse, a), i !== -1) ? i : (i = R.call(this._minWeekdaysParse, a), i !== -1 ? i : null)) : t === "ddd" ? (i = R.call(this._shortWeekdaysParse, a), i !== -1 || (i = R.call(this._weekdaysParse, a), i !== -1) ? i : (i = R.call(this._minWeekdaysParse, a), i !== -1 ? i : null)) : (i = R.call(this._minWeekdaysParse, a), i !== -1 || (i = R.call(this._weekdaysParse, a), i !== -1) ? i : (i = R.call(this._shortWeekdaysParse, a), i !== -1 ? i : null));
|
|
2441
2409
|
}
|
|
2442
|
-
function
|
|
2410
|
+
function sr(e, t, n) {
|
|
2443
2411
|
var s, i, r;
|
|
2444
2412
|
if (this._weekdaysParseExact)
|
|
2445
|
-
return
|
|
2413
|
+
return nr.call(this, e, t, n);
|
|
2446
2414
|
for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), s = 0; s < 7; s++)
|
|
2447
|
-
if (i =
|
|
2415
|
+
if (i = ee([2e3, 1]).day(s), n && !this._fullWeekdaysParse[s] && (this._fullWeekdaysParse[s] = new RegExp(
|
|
2448
2416
|
"^" + this.weekdays(i, "").replace(".", "\\.?") + "$",
|
|
2449
2417
|
"i"
|
|
2450
2418
|
), this._shortWeekdaysParse[s] = new RegExp(
|
|
@@ -2456,43 +2424,43 @@ function nr(e, t, n) {
|
|
|
2456
2424
|
)), this._weekdaysParse[s] || (r = "^" + this.weekdays(i, "") + "|^" + this.weekdaysShort(i, "") + "|^" + this.weekdaysMin(i, ""), this._weekdaysParse[s] = new RegExp(r.replace(".", ""), "i")), n && t === "dddd" && this._fullWeekdaysParse[s].test(e) || n && t === "ddd" && this._shortWeekdaysParse[s].test(e) || n && t === "dd" && this._minWeekdaysParse[s].test(e) || !n && this._weekdaysParse[s].test(e))
|
|
2457
2425
|
return s;
|
|
2458
2426
|
}
|
|
2459
|
-
function
|
|
2427
|
+
function ir(e) {
|
|
2460
2428
|
if (!this.isValid())
|
|
2461
2429
|
return e != null ? this : NaN;
|
|
2462
|
-
var t =
|
|
2463
|
-
return e != null ? (e =
|
|
2430
|
+
var t = $e(this, "Day");
|
|
2431
|
+
return e != null ? (e = zi(e, this.localeData()), this.add(e - t, "d")) : t;
|
|
2464
2432
|
}
|
|
2465
|
-
function
|
|
2433
|
+
function rr(e) {
|
|
2466
2434
|
if (!this.isValid())
|
|
2467
2435
|
return e != null ? this : NaN;
|
|
2468
2436
|
var t = (this.day() + 7 - this.localeData()._week.dow) % 7;
|
|
2469
2437
|
return e == null ? t : this.add(e - t, "d");
|
|
2470
2438
|
}
|
|
2471
|
-
function
|
|
2439
|
+
function ar(e) {
|
|
2472
2440
|
if (!this.isValid())
|
|
2473
2441
|
return e != null ? this : NaN;
|
|
2474
2442
|
if (e != null) {
|
|
2475
|
-
var t =
|
|
2443
|
+
var t = Ki(e, this.localeData());
|
|
2476
2444
|
return this.day(this.day() % 7 ? t : t - 7);
|
|
2477
2445
|
} else
|
|
2478
2446
|
return this.day() || 7;
|
|
2479
2447
|
}
|
|
2480
|
-
function ar(e) {
|
|
2481
|
-
return this._weekdaysParseExact ? (S(this, "_weekdaysRegex") || Xt.call(this), e ? this._weekdaysStrictRegex : this._weekdaysRegex) : (S(this, "_weekdaysRegex") || (this._weekdaysRegex = qi), this._weekdaysStrictRegex && e ? this._weekdaysStrictRegex : this._weekdaysRegex);
|
|
2482
|
-
}
|
|
2483
2448
|
function or(e) {
|
|
2484
|
-
return this._weekdaysParseExact ? (
|
|
2449
|
+
return this._weekdaysParseExact ? (b(this, "_weekdaysRegex") || en.call(this), e ? this._weekdaysStrictRegex : this._weekdaysRegex) : (b(this, "_weekdaysRegex") || (this._weekdaysRegex = Ji), this._weekdaysStrictRegex && e ? this._weekdaysStrictRegex : this._weekdaysRegex);
|
|
2485
2450
|
}
|
|
2486
2451
|
function ur(e) {
|
|
2487
|
-
return this._weekdaysParseExact ? (
|
|
2452
|
+
return this._weekdaysParseExact ? (b(this, "_weekdaysRegex") || en.call(this), e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) : (b(this, "_weekdaysShortRegex") || (this._weekdaysShortRegex = Zi), this._weekdaysShortStrictRegex && e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex);
|
|
2453
|
+
}
|
|
2454
|
+
function lr(e) {
|
|
2455
|
+
return this._weekdaysParseExact ? (b(this, "_weekdaysRegex") || en.call(this), e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (b(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = Qi), this._weekdaysMinStrictRegex && e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex);
|
|
2488
2456
|
}
|
|
2489
|
-
function
|
|
2457
|
+
function en() {
|
|
2490
2458
|
function e(h, f) {
|
|
2491
2459
|
return f.length - h.length;
|
|
2492
2460
|
}
|
|
2493
2461
|
var t = [], n = [], s = [], i = [], r, a, o, u, l;
|
|
2494
2462
|
for (r = 0; r < 7; r++)
|
|
2495
|
-
a =
|
|
2463
|
+
a = ee([2e3, 1]).day(r), o = ae(this.weekdaysMin(a, "")), u = ae(this.weekdaysShort(a, "")), l = ae(this.weekdays(a, "")), t.push(o), n.push(u), s.push(l), i.push(o), i.push(u), i.push(l);
|
|
2496
2464
|
t.sort(e), n.sort(e), s.sort(e), i.sort(e), this._weekdaysRegex = new RegExp("^(" + i.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp(
|
|
2497
2465
|
"^(" + s.join("|") + ")",
|
|
2498
2466
|
"i"
|
|
@@ -2504,28 +2472,28 @@ function Xt() {
|
|
|
2504
2472
|
"i"
|
|
2505
2473
|
);
|
|
2506
2474
|
}
|
|
2507
|
-
function
|
|
2475
|
+
function tn() {
|
|
2508
2476
|
return this.hours() % 12 || 12;
|
|
2509
2477
|
}
|
|
2510
|
-
function
|
|
2478
|
+
function dr() {
|
|
2511
2479
|
return this.hours() || 24;
|
|
2512
2480
|
}
|
|
2513
2481
|
p("H", ["HH", 2], 0, "hour");
|
|
2514
|
-
p("h", ["hh", 2], 0,
|
|
2515
|
-
p("k", ["kk", 2], 0,
|
|
2482
|
+
p("h", ["hh", 2], 0, tn);
|
|
2483
|
+
p("k", ["kk", 2], 0, dr);
|
|
2516
2484
|
p("hmm", 0, 0, function() {
|
|
2517
|
-
return "" +
|
|
2485
|
+
return "" + tn.apply(this) + X(this.minutes(), 2);
|
|
2518
2486
|
});
|
|
2519
2487
|
p("hmmss", 0, 0, function() {
|
|
2520
|
-
return "" +
|
|
2488
|
+
return "" + tn.apply(this) + X(this.minutes(), 2) + X(this.seconds(), 2);
|
|
2521
2489
|
});
|
|
2522
2490
|
p("Hmm", 0, 0, function() {
|
|
2523
|
-
return "" + this.hours() +
|
|
2491
|
+
return "" + this.hours() + X(this.minutes(), 2);
|
|
2524
2492
|
});
|
|
2525
2493
|
p("Hmmss", 0, 0, function() {
|
|
2526
|
-
return "" + this.hours() +
|
|
2494
|
+
return "" + this.hours() + X(this.minutes(), 2) + X(this.seconds(), 2);
|
|
2527
2495
|
});
|
|
2528
|
-
function
|
|
2496
|
+
function Xn(e, t) {
|
|
2529
2497
|
p(e, 0, 0, function() {
|
|
2530
2498
|
return this.localeData().meridiem(
|
|
2531
2499
|
this.hours(),
|
|
@@ -2534,165 +2502,165 @@ function Qn(e, t) {
|
|
|
2534
2502
|
);
|
|
2535
2503
|
});
|
|
2536
2504
|
}
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
function
|
|
2505
|
+
Xn("a", !0);
|
|
2506
|
+
Xn("A", !1);
|
|
2507
|
+
function es(e, t) {
|
|
2540
2508
|
return t._meridiemParse;
|
|
2541
2509
|
}
|
|
2542
|
-
m("a",
|
|
2543
|
-
m("A",
|
|
2544
|
-
m("H",
|
|
2545
|
-
m("h",
|
|
2546
|
-
m("k",
|
|
2547
|
-
m("HH",
|
|
2548
|
-
m("hh",
|
|
2549
|
-
m("kk",
|
|
2550
|
-
m("hmm",
|
|
2551
|
-
m("hmmss",
|
|
2552
|
-
m("Hmm",
|
|
2553
|
-
m("Hmmss",
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
var s =
|
|
2557
|
-
t[
|
|
2510
|
+
m("a", es);
|
|
2511
|
+
m("A", es);
|
|
2512
|
+
m("H", D, Zt);
|
|
2513
|
+
m("h", D, Ne);
|
|
2514
|
+
m("k", D, Ne);
|
|
2515
|
+
m("HH", D, $);
|
|
2516
|
+
m("hh", D, $);
|
|
2517
|
+
m("kk", D, $);
|
|
2518
|
+
m("hmm", $n);
|
|
2519
|
+
m("hmmss", Wn);
|
|
2520
|
+
m("Hmm", $n);
|
|
2521
|
+
m("Hmmss", Wn);
|
|
2522
|
+
O(["H", "HH"], P);
|
|
2523
|
+
O(["k", "kk"], function(e, t, n) {
|
|
2524
|
+
var s = w(e);
|
|
2525
|
+
t[P] = s === 24 ? 0 : s;
|
|
2558
2526
|
});
|
|
2559
|
-
|
|
2527
|
+
O(["a", "A"], function(e, t, n) {
|
|
2560
2528
|
n._isPm = n._locale.isPM(e), n._meridiem = e;
|
|
2561
2529
|
});
|
|
2562
|
-
|
|
2563
|
-
t[
|
|
2530
|
+
O(["h", "hh"], function(e, t, n) {
|
|
2531
|
+
t[P] = w(e), v(n).bigHour = !0;
|
|
2564
2532
|
});
|
|
2565
|
-
|
|
2533
|
+
O("hmm", function(e, t, n) {
|
|
2566
2534
|
var s = e.length - 2;
|
|
2567
|
-
t[
|
|
2535
|
+
t[P] = w(e.substr(0, s)), t[K] = w(e.substr(s)), v(n).bigHour = !0;
|
|
2568
2536
|
});
|
|
2569
|
-
|
|
2537
|
+
O("hmmss", function(e, t, n) {
|
|
2570
2538
|
var s = e.length - 4, i = e.length - 2;
|
|
2571
|
-
t[
|
|
2539
|
+
t[P] = w(e.substr(0, s)), t[K] = w(e.substr(s, 2)), t[re] = w(e.substr(i)), v(n).bigHour = !0;
|
|
2572
2540
|
});
|
|
2573
|
-
|
|
2541
|
+
O("Hmm", function(e, t, n) {
|
|
2574
2542
|
var s = e.length - 2;
|
|
2575
|
-
t[
|
|
2543
|
+
t[P] = w(e.substr(0, s)), t[K] = w(e.substr(s));
|
|
2576
2544
|
});
|
|
2577
|
-
|
|
2545
|
+
O("Hmmss", function(e, t, n) {
|
|
2578
2546
|
var s = e.length - 4, i = e.length - 2;
|
|
2579
|
-
t[
|
|
2547
|
+
t[P] = w(e.substr(0, s)), t[K] = w(e.substr(s, 2)), t[re] = w(e.substr(i));
|
|
2580
2548
|
});
|
|
2581
|
-
function
|
|
2549
|
+
function hr(e) {
|
|
2582
2550
|
return (e + "").toLowerCase().charAt(0) === "p";
|
|
2583
2551
|
}
|
|
2584
|
-
var
|
|
2585
|
-
function
|
|
2552
|
+
var cr = /[ap]\.?m?\.?/i, fr = Ce("Hours", !0);
|
|
2553
|
+
function gr(e, t, n) {
|
|
2586
2554
|
return e > 11 ? n ? "pm" : "PM" : n ? "am" : "AM";
|
|
2587
2555
|
}
|
|
2588
|
-
var
|
|
2589
|
-
calendar:
|
|
2590
|
-
longDateFormat:
|
|
2591
|
-
invalidDate:
|
|
2592
|
-
ordinal:
|
|
2593
|
-
dayOfMonthOrdinalParse:
|
|
2594
|
-
relativeTime:
|
|
2595
|
-
months:
|
|
2596
|
-
monthsShort:
|
|
2597
|
-
week:
|
|
2598
|
-
weekdays:
|
|
2599
|
-
weekdaysMin:
|
|
2600
|
-
weekdaysShort:
|
|
2601
|
-
meridiemParse:
|
|
2602
|
-
},
|
|
2603
|
-
function
|
|
2556
|
+
var ts = {
|
|
2557
|
+
calendar: ni,
|
|
2558
|
+
longDateFormat: ai,
|
|
2559
|
+
invalidDate: ui,
|
|
2560
|
+
ordinal: di,
|
|
2561
|
+
dayOfMonthOrdinalParse: hi,
|
|
2562
|
+
relativeTime: fi,
|
|
2563
|
+
months: Ni,
|
|
2564
|
+
monthsShort: zn,
|
|
2565
|
+
week: Hi,
|
|
2566
|
+
weekdays: Bi,
|
|
2567
|
+
weekdaysMin: qi,
|
|
2568
|
+
weekdaysShort: Qn,
|
|
2569
|
+
meridiemParse: cr
|
|
2570
|
+
}, N = {}, Ae = {}, Ge;
|
|
2571
|
+
function mr(e, t) {
|
|
2604
2572
|
var n, s = Math.min(e.length, t.length);
|
|
2605
2573
|
for (n = 0; n < s; n += 1)
|
|
2606
2574
|
if (e[n] !== t[n])
|
|
2607
2575
|
return n;
|
|
2608
2576
|
return s;
|
|
2609
2577
|
}
|
|
2610
|
-
function
|
|
2578
|
+
function Nn(e) {
|
|
2611
2579
|
return e && e.toLowerCase().replace("_", "-");
|
|
2612
2580
|
}
|
|
2613
|
-
function
|
|
2581
|
+
function pr(e) {
|
|
2614
2582
|
for (var t = 0, n, s, i, r; t < e.length; ) {
|
|
2615
|
-
for (r =
|
|
2616
|
-
if (i =
|
|
2583
|
+
for (r = Nn(e[t]).split("-"), n = r.length, s = Nn(e[t + 1]), s = s ? s.split("-") : null; n > 0; ) {
|
|
2584
|
+
if (i = St(r.slice(0, n).join("-")), i)
|
|
2617
2585
|
return i;
|
|
2618
|
-
if (s && s.length >= n &&
|
|
2586
|
+
if (s && s.length >= n && mr(r, s) >= n - 1)
|
|
2619
2587
|
break;
|
|
2620
2588
|
n--;
|
|
2621
2589
|
}
|
|
2622
2590
|
t++;
|
|
2623
2591
|
}
|
|
2624
|
-
return
|
|
2592
|
+
return Ge;
|
|
2625
2593
|
}
|
|
2626
|
-
function
|
|
2594
|
+
function yr(e) {
|
|
2627
2595
|
return !!(e && e.match("^[^/\\\\]*$"));
|
|
2628
2596
|
}
|
|
2629
|
-
function
|
|
2597
|
+
function St(e) {
|
|
2630
2598
|
var t = null, n;
|
|
2631
|
-
if (
|
|
2599
|
+
if (N[e] === void 0 && typeof module < "u" && module && module.exports && yr(e))
|
|
2632
2600
|
try {
|
|
2633
|
-
t =
|
|
2601
|
+
t = Ge._abbr, n = require, n("./locale/" + e), fe(t);
|
|
2634
2602
|
} catch {
|
|
2635
|
-
|
|
2603
|
+
N[e] = null;
|
|
2636
2604
|
}
|
|
2637
|
-
return
|
|
2605
|
+
return N[e];
|
|
2638
2606
|
}
|
|
2639
|
-
function
|
|
2607
|
+
function fe(e, t) {
|
|
2640
2608
|
var n;
|
|
2641
|
-
return e && (
|
|
2609
|
+
return e && (I(t) ? n = le(e) : n = nn(e, t), n ? Ge = n : typeof console < "u" && console.warn && console.warn(
|
|
2642
2610
|
"Locale " + e + " not found. Did you forget to load it?"
|
|
2643
|
-
)),
|
|
2611
|
+
)), Ge._abbr;
|
|
2644
2612
|
}
|
|
2645
|
-
function
|
|
2613
|
+
function nn(e, t) {
|
|
2646
2614
|
if (t !== null) {
|
|
2647
|
-
var n, s =
|
|
2648
|
-
if (t.abbr = e,
|
|
2649
|
-
|
|
2615
|
+
var n, s = ts;
|
|
2616
|
+
if (t.abbr = e, N[e] != null)
|
|
2617
|
+
In(
|
|
2650
2618
|
"defineLocaleOverride",
|
|
2651
2619
|
"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."
|
|
2652
|
-
), s =
|
|
2620
|
+
), s = N[e]._config;
|
|
2653
2621
|
else if (t.parentLocale != null)
|
|
2654
|
-
if (
|
|
2655
|
-
s =
|
|
2656
|
-
else if (n =
|
|
2622
|
+
if (N[t.parentLocale] != null)
|
|
2623
|
+
s = N[t.parentLocale]._config;
|
|
2624
|
+
else if (n = St(t.parentLocale), n != null)
|
|
2657
2625
|
s = n._config;
|
|
2658
2626
|
else
|
|
2659
|
-
return
|
|
2627
|
+
return Ae[t.parentLocale] || (Ae[t.parentLocale] = []), Ae[t.parentLocale].push({
|
|
2660
2628
|
name: e,
|
|
2661
2629
|
config: t
|
|
2662
2630
|
}), null;
|
|
2663
|
-
return
|
|
2664
|
-
|
|
2665
|
-
}),
|
|
2631
|
+
return N[e] = new zt(At(s, t)), Ae[e] && Ae[e].forEach(function(i) {
|
|
2632
|
+
nn(i.name, i.config);
|
|
2633
|
+
}), fe(e), N[e];
|
|
2666
2634
|
} else
|
|
2667
|
-
return delete
|
|
2635
|
+
return delete N[e], null;
|
|
2668
2636
|
}
|
|
2669
|
-
function
|
|
2637
|
+
function _r(e, t) {
|
|
2670
2638
|
if (t != null) {
|
|
2671
|
-
var n, s, i =
|
|
2672
|
-
|
|
2639
|
+
var n, s, i = ts;
|
|
2640
|
+
N[e] != null && N[e].parentLocale != null ? N[e].set(At(N[e]._config, t)) : (s = St(e), s != null && (i = s._config), t = At(i, t), s == null && (t.abbr = e), n = new zt(t), n.parentLocale = N[e], N[e] = n), fe(e);
|
|
2673
2641
|
} else
|
|
2674
|
-
|
|
2675
|
-
return
|
|
2642
|
+
N[e] != null && (N[e].parentLocale != null ? (N[e] = N[e].parentLocale, e === fe() && fe(e)) : N[e] != null && delete N[e]);
|
|
2643
|
+
return N[e];
|
|
2676
2644
|
}
|
|
2677
|
-
function
|
|
2645
|
+
function le(e) {
|
|
2678
2646
|
var t;
|
|
2679
2647
|
if (e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e)
|
|
2680
|
-
return
|
|
2681
|
-
if (!
|
|
2682
|
-
if (t =
|
|
2648
|
+
return Ge;
|
|
2649
|
+
if (!B(e)) {
|
|
2650
|
+
if (t = St(e), t)
|
|
2683
2651
|
return t;
|
|
2684
2652
|
e = [e];
|
|
2685
2653
|
}
|
|
2686
|
-
return
|
|
2654
|
+
return pr(e);
|
|
2687
2655
|
}
|
|
2688
|
-
function
|
|
2689
|
-
return
|
|
2656
|
+
function vr() {
|
|
2657
|
+
return It(N);
|
|
2690
2658
|
}
|
|
2691
|
-
function
|
|
2659
|
+
function sn(e) {
|
|
2692
2660
|
var t, n = e._a;
|
|
2693
|
-
return n &&
|
|
2661
|
+
return n && v(e).overflow === -2 && (t = n[ie] < 0 || n[ie] > 11 ? ie : n[Z] < 1 || n[Z] > Qt(n[T], n[ie]) ? Z : n[P] < 0 || n[P] > 24 || n[P] === 24 && (n[K] !== 0 || n[re] !== 0 || n[ye] !== 0) ? P : n[K] < 0 || n[K] > 59 ? K : n[re] < 0 || n[re] > 59 ? re : n[ye] < 0 || n[ye] > 999 ? ye : -1, v(e)._overflowDayOfYear && (t < T || t > Z) && (t = Z), v(e)._overflowWeeks && t === -1 && (t = xi), v(e)._overflowWeekday && t === -1 && (t = ki), v(e).overflow = t), e;
|
|
2694
2662
|
}
|
|
2695
|
-
var
|
|
2663
|
+
var wr = /^\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)?)?$/, Sr = /^\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)?)?$/, br = /Z|[+-]\d\d(?::?\d\d)?/, et = [
|
|
2696
2664
|
["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
|
|
2697
2665
|
["YYYY-MM-DD", /\d{4}-\d\d-\d\d/],
|
|
2698
2666
|
["GGGG-[W]WW-E", /\d{4}-W\d\d-\d/],
|
|
@@ -2706,7 +2674,7 @@ var vr = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(
|
|
|
2706
2674
|
["YYYYDDD", /\d{7}/],
|
|
2707
2675
|
["YYYYMM", /\d{6}/, !1],
|
|
2708
2676
|
["YYYY", /\d{4}/, !1]
|
|
2709
|
-
],
|
|
2677
|
+
], Rt = [
|
|
2710
2678
|
["HH:mm:ss.SSSS", /\d\d:\d\d:\d\d\.\d+/],
|
|
2711
2679
|
["HH:mm:ss,SSSS", /\d\d:\d\d:\d\d,\d+/],
|
|
2712
2680
|
["HH:mm:ss", /\d\d:\d\d:\d\d/],
|
|
@@ -2716,7 +2684,7 @@ var vr = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(
|
|
|
2716
2684
|
["HHmmss", /\d\d\d\d\d\d/],
|
|
2717
2685
|
["HHmm", /\d\d\d\d/],
|
|
2718
2686
|
["HH", /\d\d/]
|
|
2719
|
-
],
|
|
2687
|
+
], xr = /^\/?Date\((-?\d+)/i, kr = /^(?:(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}))$/, Or = {
|
|
2720
2688
|
UT: 0,
|
|
2721
2689
|
GMT: 0,
|
|
2722
2690
|
EDT: -4 * 60,
|
|
@@ -2728,12 +2696,12 @@ var vr = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(
|
|
|
2728
2696
|
PDT: -7 * 60,
|
|
2729
2697
|
PST: -8 * 60
|
|
2730
2698
|
};
|
|
2731
|
-
function
|
|
2732
|
-
var t, n, s = e._i, i =
|
|
2699
|
+
function ns(e) {
|
|
2700
|
+
var t, n, s = e._i, i = wr.exec(s) || Sr.exec(s), r, a, o, u, l = et.length, h = Rt.length;
|
|
2733
2701
|
if (i) {
|
|
2734
|
-
for (
|
|
2735
|
-
if (
|
|
2736
|
-
a =
|
|
2702
|
+
for (v(e).iso = !0, t = 0, n = l; t < n; t++)
|
|
2703
|
+
if (et[t][1].exec(i[1])) {
|
|
2704
|
+
a = et[t][0], r = et[t][2] !== !1;
|
|
2737
2705
|
break;
|
|
2738
2706
|
}
|
|
2739
2707
|
if (a == null) {
|
|
@@ -2742,8 +2710,8 @@ function ts(e) {
|
|
|
2742
2710
|
}
|
|
2743
2711
|
if (i[3]) {
|
|
2744
2712
|
for (t = 0, n = h; t < n; t++)
|
|
2745
|
-
if (
|
|
2746
|
-
o = (i[2] || " ") +
|
|
2713
|
+
if (Rt[t][1].exec(i[3])) {
|
|
2714
|
+
o = (i[2] || " ") + Rt[t][0];
|
|
2747
2715
|
break;
|
|
2748
2716
|
}
|
|
2749
2717
|
if (o == null) {
|
|
@@ -2756,95 +2724,95 @@ function ts(e) {
|
|
|
2756
2724
|
return;
|
|
2757
2725
|
}
|
|
2758
2726
|
if (i[4])
|
|
2759
|
-
if (
|
|
2727
|
+
if (br.exec(i[4]))
|
|
2760
2728
|
u = "Z";
|
|
2761
2729
|
else {
|
|
2762
2730
|
e._isValid = !1;
|
|
2763
2731
|
return;
|
|
2764
2732
|
}
|
|
2765
|
-
e._f = a + (o || "") + (u || ""),
|
|
2733
|
+
e._f = a + (o || "") + (u || ""), an(e);
|
|
2766
2734
|
} else
|
|
2767
2735
|
e._isValid = !1;
|
|
2768
2736
|
}
|
|
2769
|
-
function
|
|
2737
|
+
function Mr(e, t, n, s, i, r) {
|
|
2770
2738
|
var a = [
|
|
2771
|
-
|
|
2772
|
-
|
|
2739
|
+
Dr(e),
|
|
2740
|
+
zn.indexOf(t),
|
|
2773
2741
|
parseInt(n, 10),
|
|
2774
2742
|
parseInt(s, 10),
|
|
2775
2743
|
parseInt(i, 10)
|
|
2776
2744
|
];
|
|
2777
2745
|
return r && a.push(parseInt(r, 10)), a;
|
|
2778
2746
|
}
|
|
2779
|
-
function
|
|
2747
|
+
function Dr(e) {
|
|
2780
2748
|
var t = parseInt(e, 10);
|
|
2781
2749
|
return t <= 49 ? 2e3 + t : t <= 999 ? 1900 + t : t;
|
|
2782
2750
|
}
|
|
2783
|
-
function
|
|
2751
|
+
function Yr(e) {
|
|
2784
2752
|
return e.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, "");
|
|
2785
2753
|
}
|
|
2786
|
-
function
|
|
2754
|
+
function Nr(e, t, n) {
|
|
2787
2755
|
if (e) {
|
|
2788
|
-
var s =
|
|
2756
|
+
var s = Qn.indexOf(e), i = new Date(
|
|
2789
2757
|
t[0],
|
|
2790
2758
|
t[1],
|
|
2791
2759
|
t[2]
|
|
2792
2760
|
).getDay();
|
|
2793
2761
|
if (s !== i)
|
|
2794
|
-
return
|
|
2762
|
+
return v(n).weekdayMismatch = !0, n._isValid = !1, !1;
|
|
2795
2763
|
}
|
|
2796
2764
|
return !0;
|
|
2797
2765
|
}
|
|
2798
|
-
function
|
|
2766
|
+
function Cr(e, t, n) {
|
|
2799
2767
|
if (e)
|
|
2800
|
-
return
|
|
2768
|
+
return Or[e];
|
|
2801
2769
|
if (t)
|
|
2802
2770
|
return 0;
|
|
2803
2771
|
var s = parseInt(n, 10), i = s % 100, r = (s - i) / 100;
|
|
2804
2772
|
return r * 60 + i;
|
|
2805
2773
|
}
|
|
2806
|
-
function
|
|
2807
|
-
var t =
|
|
2774
|
+
function ss(e) {
|
|
2775
|
+
var t = kr.exec(Yr(e._i)), n;
|
|
2808
2776
|
if (t) {
|
|
2809
|
-
if (n =
|
|
2777
|
+
if (n = Mr(
|
|
2810
2778
|
t[4],
|
|
2811
2779
|
t[3],
|
|
2812
2780
|
t[2],
|
|
2813
2781
|
t[5],
|
|
2814
2782
|
t[6],
|
|
2815
2783
|
t[7]
|
|
2816
|
-
), !
|
|
2784
|
+
), !Nr(t[1], n, e))
|
|
2817
2785
|
return;
|
|
2818
|
-
e._a = n, e._tzm =
|
|
2786
|
+
e._a = n, e._tzm = Cr(t[8], t[9], t[10]), e._d = We.apply(null, e._a), e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), v(e).rfc2822 = !0;
|
|
2819
2787
|
} else
|
|
2820
2788
|
e._isValid = !1;
|
|
2821
2789
|
}
|
|
2822
|
-
function
|
|
2823
|
-
var t =
|
|
2790
|
+
function Lr(e) {
|
|
2791
|
+
var t = xr.exec(e._i);
|
|
2824
2792
|
if (t !== null) {
|
|
2825
2793
|
e._d = /* @__PURE__ */ new Date(+t[1]);
|
|
2826
2794
|
return;
|
|
2827
2795
|
}
|
|
2828
|
-
if (
|
|
2796
|
+
if (ns(e), e._isValid === !1)
|
|
2829
2797
|
delete e._isValid;
|
|
2830
2798
|
else
|
|
2831
2799
|
return;
|
|
2832
|
-
if (
|
|
2800
|
+
if (ss(e), e._isValid === !1)
|
|
2833
2801
|
delete e._isValid;
|
|
2834
2802
|
else
|
|
2835
2803
|
return;
|
|
2836
2804
|
e._strict ? e._isValid = !1 : g.createFromInputFallback(e);
|
|
2837
2805
|
}
|
|
2838
|
-
g.createFromInputFallback =
|
|
2806
|
+
g.createFromInputFallback = V(
|
|
2839
2807
|
"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.",
|
|
2840
2808
|
function(e) {
|
|
2841
2809
|
e._d = /* @__PURE__ */ new Date(e._i + (e._useUTC ? " UTC" : ""));
|
|
2842
2810
|
}
|
|
2843
2811
|
);
|
|
2844
|
-
function
|
|
2812
|
+
function xe(e, t, n) {
|
|
2845
2813
|
return e ?? t ?? n;
|
|
2846
2814
|
}
|
|
2847
|
-
function
|
|
2815
|
+
function Rr(e) {
|
|
2848
2816
|
var t = new Date(g.now());
|
|
2849
2817
|
return e._useUTC ? [
|
|
2850
2818
|
t.getUTCFullYear(),
|
|
@@ -2852,130 +2820,130 @@ function Lr(e) {
|
|
|
2852
2820
|
t.getUTCDate()
|
|
2853
2821
|
] : [t.getFullYear(), t.getMonth(), t.getDate()];
|
|
2854
2822
|
}
|
|
2855
|
-
function
|
|
2823
|
+
function rn(e) {
|
|
2856
2824
|
var t, n, s = [], i, r, a;
|
|
2857
2825
|
if (!e._d) {
|
|
2858
|
-
for (i =
|
|
2826
|
+
for (i = Rr(e), e._w && e._a[Z] == null && e._a[ie] == null && Pr(e), e._dayOfYear != null && (a = xe(e._a[T], i[T]), (e._dayOfYear > Ue(a) || e._dayOfYear === 0) && (v(e)._overflowDayOfYear = !0), n = We(a, 0, e._dayOfYear), e._a[ie] = n.getUTCMonth(), e._a[Z] = n.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t)
|
|
2859
2827
|
e._a[t] = s[t] = i[t];
|
|
2860
2828
|
for (; t < 7; t++)
|
|
2861
2829
|
e._a[t] = s[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t];
|
|
2862
|
-
e._a[
|
|
2830
|
+
e._a[P] === 24 && e._a[K] === 0 && e._a[re] === 0 && e._a[ye] === 0 && (e._nextDay = !0, e._a[P] = 0), e._d = (e._useUTC ? We : ji).apply(
|
|
2863
2831
|
null,
|
|
2864
2832
|
s
|
|
2865
|
-
), r = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), e._tzm != null && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[
|
|
2833
|
+
), r = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), e._tzm != null && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[P] = 24), e._w && typeof e._w.d < "u" && e._w.d !== r && (v(e).weekdayMismatch = !0);
|
|
2866
2834
|
}
|
|
2867
2835
|
}
|
|
2868
|
-
function
|
|
2836
|
+
function Pr(e) {
|
|
2869
2837
|
var t, n, s, i, r, a, o, u, l;
|
|
2870
|
-
t = e._w, t.GG != null || t.W != null || t.E != null ? (r = 1, a = 4, n =
|
|
2838
|
+
t = e._w, t.GG != null || t.W != null || t.E != null ? (r = 1, a = 4, n = xe(
|
|
2871
2839
|
t.GG,
|
|
2872
|
-
e._a[
|
|
2873
|
-
|
|
2874
|
-
), s =
|
|
2840
|
+
e._a[T],
|
|
2841
|
+
Ve(M(), 1, 4).year
|
|
2842
|
+
), s = xe(t.W, 1), i = xe(t.E, 1), (i < 1 || i > 7) && (u = !0)) : (r = e._locale._week.dow, a = e._locale._week.doy, l = Ve(M(), r, a), n = xe(t.gg, e._a[T], l.year), s = xe(t.w, l.week), t.d != null ? (i = t.d, (i < 0 || i > 6) && (u = !0)) : t.e != null ? (i = t.e + r, (t.e < 0 || t.e > 6) && (u = !0)) : i = r), s < 1 || s > oe(n, r, a) ? v(e)._overflowWeeks = !0 : u != null ? v(e)._overflowWeekday = !0 : (o = Zn(n, s, i, r, a), e._a[T] = o.year, e._dayOfYear = o.dayOfYear);
|
|
2875
2843
|
}
|
|
2876
2844
|
g.ISO_8601 = function() {
|
|
2877
2845
|
};
|
|
2878
2846
|
g.RFC_2822 = function() {
|
|
2879
2847
|
};
|
|
2880
|
-
function
|
|
2848
|
+
function an(e) {
|
|
2881
2849
|
if (e._f === g.ISO_8601) {
|
|
2882
|
-
|
|
2850
|
+
ns(e);
|
|
2883
2851
|
return;
|
|
2884
2852
|
}
|
|
2885
2853
|
if (e._f === g.RFC_2822) {
|
|
2886
|
-
|
|
2854
|
+
ss(e);
|
|
2887
2855
|
return;
|
|
2888
2856
|
}
|
|
2889
|
-
e._a = [],
|
|
2857
|
+
e._a = [], v(e).empty = !0;
|
|
2890
2858
|
var t = "" + e._i, n, s, i, r, a, o = t.length, u = 0, l, h;
|
|
2891
|
-
for (i =
|
|
2892
|
-
r = i[n], s = (t.match(
|
|
2859
|
+
for (i = jn(e._f, e._locale).match(Kt) || [], h = i.length, n = 0; n < h; n++)
|
|
2860
|
+
r = i[n], s = (t.match(wi(r, e)) || [])[0], s && (a = t.substr(0, t.indexOf(s)), a.length > 0 && v(e).unusedInput.push(a), t = t.slice(
|
|
2893
2861
|
t.indexOf(s) + s.length
|
|
2894
|
-
), u += s.length),
|
|
2895
|
-
|
|
2862
|
+
), u += s.length), Oe[r] ? (s ? v(e).empty = !1 : v(e).unusedTokens.push(r), bi(r, s, e)) : e._strict && !s && v(e).unusedTokens.push(r);
|
|
2863
|
+
v(e).charsLeftOver = o - u, t.length > 0 && v(e).unusedInput.push(t), e._a[P] <= 12 && v(e).bigHour === !0 && e._a[P] > 0 && (v(e).bigHour = void 0), v(e).parsedDateParts = e._a.slice(0), v(e).meridiem = e._meridiem, e._a[P] = Tr(
|
|
2896
2864
|
e._locale,
|
|
2897
|
-
e._a[
|
|
2865
|
+
e._a[P],
|
|
2898
2866
|
e._meridiem
|
|
2899
|
-
), l =
|
|
2867
|
+
), l = v(e).era, l !== null && (e._a[T] = e._locale.erasConvertYear(l, e._a[T])), rn(e), sn(e);
|
|
2900
2868
|
}
|
|
2901
|
-
function
|
|
2869
|
+
function Tr(e, t, n) {
|
|
2902
2870
|
var s;
|
|
2903
2871
|
return n == null ? t : e.meridiemHour != null ? e.meridiemHour(t, n) : (e.isPM != null && (s = e.isPM(n), s && t < 12 && (t += 12), !s && t === 12 && (t = 0)), t);
|
|
2904
2872
|
}
|
|
2905
|
-
function
|
|
2873
|
+
function Er(e) {
|
|
2906
2874
|
var t, n, s, i, r, a, o = !1, u = e._f.length;
|
|
2907
2875
|
if (u === 0) {
|
|
2908
|
-
|
|
2876
|
+
v(e).invalidFormat = !0, e._d = /* @__PURE__ */ new Date(NaN);
|
|
2909
2877
|
return;
|
|
2910
2878
|
}
|
|
2911
2879
|
for (i = 0; i < u; i++)
|
|
2912
|
-
r = 0, a = !1, t =
|
|
2913
|
-
|
|
2880
|
+
r = 0, a = !1, t = Gt({}, e), e._useUTC != null && (t._useUTC = e._useUTC), t._f = e._f[i], an(t), Vt(t) && (a = !0), r += v(t).charsLeftOver, r += v(t).unusedTokens.length * 10, v(t).score = r, o ? r < s && (s = r, n = t) : (s == null || r < s || a) && (s = r, n = t, a && (o = !0));
|
|
2881
|
+
he(e, n || t);
|
|
2914
2882
|
}
|
|
2915
|
-
function
|
|
2883
|
+
function Fr(e) {
|
|
2916
2884
|
if (!e._d) {
|
|
2917
|
-
var t =
|
|
2918
|
-
e._a =
|
|
2885
|
+
var t = Bt(e._i), n = t.day === void 0 ? t.date : t.day;
|
|
2886
|
+
e._a = Fn(
|
|
2919
2887
|
[t.year, t.month, n, t.hour, t.minute, t.second, t.millisecond],
|
|
2920
2888
|
function(s) {
|
|
2921
2889
|
return s && parseInt(s, 10);
|
|
2922
2890
|
}
|
|
2923
|
-
),
|
|
2891
|
+
), rn(e);
|
|
2924
2892
|
}
|
|
2925
2893
|
}
|
|
2926
|
-
function
|
|
2927
|
-
var t = new
|
|
2894
|
+
function Ar(e) {
|
|
2895
|
+
var t = new Ke(sn(is(e)));
|
|
2928
2896
|
return t._nextDay && (t.add(1, "d"), t._nextDay = void 0), t;
|
|
2929
2897
|
}
|
|
2930
|
-
function
|
|
2898
|
+
function is(e) {
|
|
2931
2899
|
var t = e._i, n = e._f;
|
|
2932
|
-
return e._locale = e._locale ||
|
|
2900
|
+
return e._locale = e._locale || le(e._l), t === null || n === void 0 && t === "" ? gt({ nullInput: !0 }) : (typeof t == "string" && (e._i = t = e._locale.preparse(t)), q(t) ? new Ke(sn(t)) : (ze(t) ? e._d = t : B(n) ? Er(e) : n ? an(e) : Ir(e), Vt(e) || (e._d = null), e));
|
|
2933
2901
|
}
|
|
2934
|
-
function
|
|
2902
|
+
function Ir(e) {
|
|
2935
2903
|
var t = e._i;
|
|
2936
|
-
|
|
2904
|
+
I(t) ? e._d = new Date(g.now()) : ze(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? Lr(e) : B(t) ? (e._a = Fn(t.slice(0), function(n) {
|
|
2937
2905
|
return parseInt(n, 10);
|
|
2938
|
-
}),
|
|
2906
|
+
}), rn(e)) : _e(t) ? Fr(e) : ue(t) ? e._d = new Date(t) : g.createFromInputFallback(e);
|
|
2939
2907
|
}
|
|
2940
|
-
function
|
|
2908
|
+
function rs(e, t, n, s, i) {
|
|
2941
2909
|
var r = {};
|
|
2942
|
-
return (t === !0 || t === !1) && (s = t, t = void 0), (n === !0 || n === !1) && (s = n, n = void 0), (
|
|
2910
|
+
return (t === !0 || t === !1) && (s = t, t = void 0), (n === !0 || n === !1) && (s = n, n = void 0), (_e(e) && Wt(e) || B(e) && e.length === 0) && (e = void 0), r._isAMomentObject = !0, r._useUTC = r._isUTC = i, r._l = n, r._i = e, r._f = t, r._strict = s, Ar(r);
|
|
2943
2911
|
}
|
|
2944
|
-
function
|
|
2945
|
-
return
|
|
2912
|
+
function M(e, t, n, s) {
|
|
2913
|
+
return rs(e, t, n, s, !1);
|
|
2946
2914
|
}
|
|
2947
|
-
var
|
|
2915
|
+
var jr = V(
|
|
2948
2916
|
"moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",
|
|
2949
2917
|
function() {
|
|
2950
|
-
var e =
|
|
2951
|
-
return this.isValid() && e.isValid() ? e < this ? this : e :
|
|
2918
|
+
var e = M.apply(null, arguments);
|
|
2919
|
+
return this.isValid() && e.isValid() ? e < this ? this : e : gt();
|
|
2952
2920
|
}
|
|
2953
|
-
),
|
|
2921
|
+
), Ur = V(
|
|
2954
2922
|
"moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",
|
|
2955
2923
|
function() {
|
|
2956
|
-
var e =
|
|
2957
|
-
return this.isValid() && e.isValid() ? e > this ? this : e :
|
|
2924
|
+
var e = M.apply(null, arguments);
|
|
2925
|
+
return this.isValid() && e.isValid() ? e > this ? this : e : gt();
|
|
2958
2926
|
}
|
|
2959
2927
|
);
|
|
2960
|
-
function
|
|
2928
|
+
function as(e, t) {
|
|
2961
2929
|
var n, s;
|
|
2962
|
-
if (t.length === 1 &&
|
|
2963
|
-
return
|
|
2930
|
+
if (t.length === 1 && B(t[0]) && (t = t[0]), !t.length)
|
|
2931
|
+
return M();
|
|
2964
2932
|
for (n = t[0], s = 1; s < t.length; ++s)
|
|
2965
2933
|
(!t[s].isValid() || t[s][e](n)) && (n = t[s]);
|
|
2966
2934
|
return n;
|
|
2967
2935
|
}
|
|
2968
|
-
function
|
|
2936
|
+
function Hr() {
|
|
2969
2937
|
var e = [].slice.call(arguments, 0);
|
|
2970
|
-
return
|
|
2938
|
+
return as("isBefore", e);
|
|
2971
2939
|
}
|
|
2972
|
-
function
|
|
2940
|
+
function $r() {
|
|
2973
2941
|
var e = [].slice.call(arguments, 0);
|
|
2974
|
-
return
|
|
2942
|
+
return as("isAfter", e);
|
|
2975
2943
|
}
|
|
2976
|
-
var
|
|
2944
|
+
var Wr = function() {
|
|
2977
2945
|
return Date.now ? Date.now() : +/* @__PURE__ */ new Date();
|
|
2978
|
-
},
|
|
2946
|
+
}, Ie = [
|
|
2979
2947
|
"year",
|
|
2980
2948
|
"quarter",
|
|
2981
2949
|
"month",
|
|
@@ -2986,192 +2954,191 @@ var $r = function() {
|
|
|
2986
2954
|
"second",
|
|
2987
2955
|
"millisecond"
|
|
2988
2956
|
];
|
|
2989
|
-
function
|
|
2990
|
-
var t, n = !1, s, i =
|
|
2957
|
+
function Vr(e) {
|
|
2958
|
+
var t, n = !1, s, i = Ie.length;
|
|
2991
2959
|
for (t in e)
|
|
2992
|
-
if (
|
|
2960
|
+
if (b(e, t) && !(R.call(Ie, t) !== -1 && (e[t] == null || !isNaN(e[t]))))
|
|
2993
2961
|
return !1;
|
|
2994
2962
|
for (s = 0; s < i; ++s)
|
|
2995
|
-
if (e[
|
|
2963
|
+
if (e[Ie[s]]) {
|
|
2996
2964
|
if (n)
|
|
2997
2965
|
return !1;
|
|
2998
|
-
parseFloat(e[
|
|
2966
|
+
parseFloat(e[Ie[s]]) !== w(e[Ie[s]]) && (n = !0);
|
|
2999
2967
|
}
|
|
3000
2968
|
return !0;
|
|
3001
2969
|
}
|
|
3002
|
-
function
|
|
2970
|
+
function Gr() {
|
|
3003
2971
|
return this._isValid;
|
|
3004
2972
|
}
|
|
3005
|
-
function
|
|
3006
|
-
return
|
|
2973
|
+
function zr() {
|
|
2974
|
+
return J(NaN);
|
|
3007
2975
|
}
|
|
3008
|
-
function
|
|
3009
|
-
var t =
|
|
3010
|
-
this._isValid =
|
|
2976
|
+
function bt(e) {
|
|
2977
|
+
var t = Bt(e), n = t.year || 0, s = t.quarter || 0, i = t.month || 0, r = t.week || t.isoWeek || 0, a = t.day || 0, o = t.hour || 0, u = t.minute || 0, l = t.second || 0, h = t.millisecond || 0;
|
|
2978
|
+
this._isValid = Vr(t), this._milliseconds = +h + l * 1e3 + // 1000
|
|
3011
2979
|
u * 6e4 + // 1000 * 60
|
|
3012
|
-
o * 1e3 * 60 * 60, this._days = +a + r * 7, this._months = +i + s * 3 + n * 12, this._data = {}, this._locale =
|
|
2980
|
+
o * 1e3 * 60 * 60, this._days = +a + r * 7, this._months = +i + s * 3 + n * 12, this._data = {}, this._locale = le(), this._bubble();
|
|
3013
2981
|
}
|
|
3014
|
-
function
|
|
3015
|
-
return e instanceof
|
|
2982
|
+
function nt(e) {
|
|
2983
|
+
return e instanceof bt;
|
|
3016
2984
|
}
|
|
3017
|
-
function
|
|
2985
|
+
function Ut(e) {
|
|
3018
2986
|
return e < 0 ? Math.round(-1 * e) * -1 : Math.round(e);
|
|
3019
2987
|
}
|
|
3020
|
-
function
|
|
2988
|
+
function Kr(e, t, n) {
|
|
3021
2989
|
var s = Math.min(e.length, t.length), i = Math.abs(e.length - t.length), r = 0, a;
|
|
3022
2990
|
for (a = 0; a < s; a++)
|
|
3023
|
-
|
|
2991
|
+
w(e[a]) !== w(t[a]) && r++;
|
|
3024
2992
|
return r + i;
|
|
3025
2993
|
}
|
|
3026
|
-
function
|
|
2994
|
+
function os(e, t) {
|
|
3027
2995
|
p(e, 0, 0, function() {
|
|
3028
2996
|
var n = this.utcOffset(), s = "+";
|
|
3029
|
-
return n < 0 && (n = -n, s = "-"), s +
|
|
2997
|
+
return n < 0 && (n = -n, s = "-"), s + X(~~(n / 60), 2) + t + X(~~n % 60, 2);
|
|
3030
2998
|
});
|
|
3031
2999
|
}
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
m("Z",
|
|
3035
|
-
m("ZZ",
|
|
3036
|
-
|
|
3037
|
-
n._useUTC = !0, n._tzm =
|
|
3000
|
+
os("Z", ":");
|
|
3001
|
+
os("ZZ", "");
|
|
3002
|
+
m("Z", vt);
|
|
3003
|
+
m("ZZ", vt);
|
|
3004
|
+
O(["Z", "ZZ"], function(e, t, n) {
|
|
3005
|
+
n._useUTC = !0, n._tzm = on(vt, e);
|
|
3038
3006
|
});
|
|
3039
|
-
var
|
|
3040
|
-
function
|
|
3007
|
+
var Br = /([\+\-]|\d\d)/gi;
|
|
3008
|
+
function on(e, t) {
|
|
3041
3009
|
var n = (t || "").match(e), s, i, r;
|
|
3042
|
-
return n === null ? null : (s = n[n.length - 1] || [], i = (s + "").match(
|
|
3010
|
+
return n === null ? null : (s = n[n.length - 1] || [], i = (s + "").match(Br) || ["-", 0, 0], r = +(i[1] * 60) + w(i[2]), r === 0 ? 0 : i[0] === "+" ? r : -r);
|
|
3043
3011
|
}
|
|
3044
|
-
function
|
|
3012
|
+
function un(e, t) {
|
|
3045
3013
|
var n, s;
|
|
3046
|
-
return t._isUTC ? (n = t.clone(), s = (
|
|
3014
|
+
return t._isUTC ? (n = t.clone(), s = (q(e) || ze(e) ? e.valueOf() : M(e).valueOf()) - n.valueOf(), n._d.setTime(n._d.valueOf() + s), g.updateOffset(n, !1), n) : M(e).local();
|
|
3047
3015
|
}
|
|
3048
|
-
function
|
|
3016
|
+
function Ht(e) {
|
|
3049
3017
|
return -Math.round(e._d.getTimezoneOffset());
|
|
3050
3018
|
}
|
|
3051
3019
|
g.updateOffset = function() {
|
|
3052
3020
|
};
|
|
3053
|
-
function
|
|
3021
|
+
function qr(e, t, n) {
|
|
3054
3022
|
var s = this._offset || 0, i;
|
|
3055
3023
|
if (!this.isValid())
|
|
3056
3024
|
return e != null ? this : NaN;
|
|
3057
3025
|
if (e != null) {
|
|
3058
3026
|
if (typeof e == "string") {
|
|
3059
|
-
if (e =
|
|
3027
|
+
if (e = on(vt, e), e === null)
|
|
3060
3028
|
return this;
|
|
3061
|
-
} else
|
|
3062
|
-
|
|
3063
|
-
return !this._isUTC && t && (i = Ut(this)), this._offset = e, this._isUTC = !0, i != null && this.add(i, "m"), s !== e && (!t || this._changeInProgress ? ls(
|
|
3029
|
+
} else Math.abs(e) < 16 && !n && (e = e * 60);
|
|
3030
|
+
return !this._isUTC && t && (i = Ht(this)), this._offset = e, this._isUTC = !0, i != null && this.add(i, "m"), s !== e && (!t || this._changeInProgress ? ds(
|
|
3064
3031
|
this,
|
|
3065
|
-
|
|
3032
|
+
J(e - s, "m"),
|
|
3066
3033
|
1,
|
|
3067
3034
|
!1
|
|
3068
3035
|
) : this._changeInProgress || (this._changeInProgress = !0, g.updateOffset(this, !0), this._changeInProgress = null)), this;
|
|
3069
3036
|
} else
|
|
3070
|
-
return this._isUTC ? s :
|
|
3037
|
+
return this._isUTC ? s : Ht(this);
|
|
3071
3038
|
}
|
|
3072
|
-
function
|
|
3039
|
+
function Jr(e, t) {
|
|
3073
3040
|
return e != null ? (typeof e != "string" && (e = -e), this.utcOffset(e, t), this) : -this.utcOffset();
|
|
3074
3041
|
}
|
|
3075
|
-
function
|
|
3042
|
+
function Zr(e) {
|
|
3076
3043
|
return this.utcOffset(0, e);
|
|
3077
3044
|
}
|
|
3078
|
-
function
|
|
3079
|
-
return this._isUTC && (this.utcOffset(0, e), this._isUTC = !1, e && this.subtract(
|
|
3045
|
+
function Qr(e) {
|
|
3046
|
+
return this._isUTC && (this.utcOffset(0, e), this._isUTC = !1, e && this.subtract(Ht(this), "m")), this;
|
|
3080
3047
|
}
|
|
3081
|
-
function
|
|
3048
|
+
function Xr() {
|
|
3082
3049
|
if (this._tzm != null)
|
|
3083
3050
|
this.utcOffset(this._tzm, !1, !0);
|
|
3084
3051
|
else if (typeof this._i == "string") {
|
|
3085
|
-
var e =
|
|
3052
|
+
var e = on(_i, this._i);
|
|
3086
3053
|
e != null ? this.utcOffset(e) : this.utcOffset(0, !0);
|
|
3087
3054
|
}
|
|
3088
3055
|
return this;
|
|
3089
3056
|
}
|
|
3090
|
-
function
|
|
3091
|
-
return this.isValid() ? (e = e ?
|
|
3057
|
+
function ea(e) {
|
|
3058
|
+
return this.isValid() ? (e = e ? M(e).utcOffset() : 0, (this.utcOffset() - e) % 60 === 0) : !1;
|
|
3092
3059
|
}
|
|
3093
|
-
function
|
|
3060
|
+
function ta() {
|
|
3094
3061
|
return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();
|
|
3095
3062
|
}
|
|
3096
|
-
function
|
|
3097
|
-
if (!
|
|
3063
|
+
function na() {
|
|
3064
|
+
if (!I(this._isDSTShifted))
|
|
3098
3065
|
return this._isDSTShifted;
|
|
3099
3066
|
var e = {}, t;
|
|
3100
|
-
return
|
|
3067
|
+
return Gt(e, this), e = is(e), e._a ? (t = e._isUTC ? ee(e._a) : M(e._a), this._isDSTShifted = this.isValid() && Kr(e._a, t.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
|
|
3101
3068
|
}
|
|
3102
|
-
function
|
|
3069
|
+
function sa() {
|
|
3103
3070
|
return this.isValid() ? !this._isUTC : !1;
|
|
3104
3071
|
}
|
|
3105
|
-
function
|
|
3072
|
+
function ia() {
|
|
3106
3073
|
return this.isValid() ? this._isUTC : !1;
|
|
3107
3074
|
}
|
|
3108
|
-
function
|
|
3075
|
+
function us() {
|
|
3109
3076
|
return this.isValid() ? this._isUTC && this._offset === 0 : !1;
|
|
3110
3077
|
}
|
|
3111
|
-
var
|
|
3112
|
-
function
|
|
3078
|
+
var ra = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, aa = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
|
|
3079
|
+
function J(e, t) {
|
|
3113
3080
|
var n = e, s = null, i, r, a;
|
|
3114
|
-
return
|
|
3081
|
+
return nt(e) ? n = {
|
|
3115
3082
|
ms: e._milliseconds,
|
|
3116
3083
|
d: e._days,
|
|
3117
3084
|
M: e._months
|
|
3118
|
-
} :
|
|
3085
|
+
} : ue(e) || !isNaN(+e) ? (n = {}, t ? n[t] = +e : n.milliseconds = +e) : (s = ra.exec(e)) ? (i = s[1] === "-" ? -1 : 1, n = {
|
|
3119
3086
|
y: 0,
|
|
3120
|
-
d:
|
|
3121
|
-
h:
|
|
3122
|
-
m:
|
|
3123
|
-
s:
|
|
3124
|
-
ms:
|
|
3087
|
+
d: w(s[Z]) * i,
|
|
3088
|
+
h: w(s[P]) * i,
|
|
3089
|
+
m: w(s[K]) * i,
|
|
3090
|
+
s: w(s[re]) * i,
|
|
3091
|
+
ms: w(Ut(s[ye] * 1e3)) * i
|
|
3125
3092
|
// the millisecond decimal point is included in the match
|
|
3126
|
-
}) : (s =
|
|
3127
|
-
y:
|
|
3128
|
-
M:
|
|
3129
|
-
w:
|
|
3130
|
-
d:
|
|
3131
|
-
h:
|
|
3132
|
-
m:
|
|
3133
|
-
s:
|
|
3134
|
-
}) : n == null ? n = {} : typeof n == "object" && ("from" in n || "to" in n) && (a =
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
), n = {}, n.ms = a.milliseconds, n.M = a.months), r = new
|
|
3138
|
-
}
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
function
|
|
3093
|
+
}) : (s = aa.exec(e)) ? (i = s[1] === "-" ? -1 : 1, n = {
|
|
3094
|
+
y: me(s[2], i),
|
|
3095
|
+
M: me(s[3], i),
|
|
3096
|
+
w: me(s[4], i),
|
|
3097
|
+
d: me(s[5], i),
|
|
3098
|
+
h: me(s[6], i),
|
|
3099
|
+
m: me(s[7], i),
|
|
3100
|
+
s: me(s[8], i)
|
|
3101
|
+
}) : n == null ? n = {} : typeof n == "object" && ("from" in n || "to" in n) && (a = oa(
|
|
3102
|
+
M(n.from),
|
|
3103
|
+
M(n.to)
|
|
3104
|
+
), n = {}, n.ms = a.milliseconds, n.M = a.months), r = new bt(n), nt(e) && b(e, "_locale") && (r._locale = e._locale), nt(e) && b(e, "_isValid") && (r._isValid = e._isValid), r;
|
|
3105
|
+
}
|
|
3106
|
+
J.fn = bt.prototype;
|
|
3107
|
+
J.invalid = zr;
|
|
3108
|
+
function me(e, t) {
|
|
3142
3109
|
var n = e && parseFloat(e.replace(",", "."));
|
|
3143
3110
|
return (isNaN(n) ? 0 : n) * t;
|
|
3144
3111
|
}
|
|
3145
|
-
function
|
|
3112
|
+
function Cn(e, t) {
|
|
3146
3113
|
var n = {};
|
|
3147
3114
|
return n.months = t.month() - e.month() + (t.year() - e.year()) * 12, e.clone().add(n.months, "M").isAfter(t) && --n.months, n.milliseconds = +t - +e.clone().add(n.months, "M"), n;
|
|
3148
3115
|
}
|
|
3149
|
-
function
|
|
3116
|
+
function oa(e, t) {
|
|
3150
3117
|
var n;
|
|
3151
|
-
return e.isValid() && t.isValid() ? (t =
|
|
3118
|
+
return e.isValid() && t.isValid() ? (t = un(t, e), e.isBefore(t) ? n = Cn(e, t) : (n = Cn(t, e), n.milliseconds = -n.milliseconds, n.months = -n.months), n) : { milliseconds: 0, months: 0 };
|
|
3152
3119
|
}
|
|
3153
|
-
function
|
|
3120
|
+
function ls(e, t) {
|
|
3154
3121
|
return function(n, s) {
|
|
3155
3122
|
var i, r;
|
|
3156
|
-
return s !== null && !isNaN(+s) && (
|
|
3123
|
+
return s !== null && !isNaN(+s) && (In(
|
|
3157
3124
|
t,
|
|
3158
3125
|
"moment()." + t + "(period, number) is deprecated. Please use moment()." + t + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
|
|
3159
|
-
), r = n, n = s, s = r), i =
|
|
3126
|
+
), r = n, n = s, s = r), i = J(n, s), ds(this, i, e), this;
|
|
3160
3127
|
};
|
|
3161
3128
|
}
|
|
3162
|
-
function
|
|
3163
|
-
var i = t._milliseconds, r =
|
|
3164
|
-
e.isValid() && (s = s ?? !0, a &&
|
|
3129
|
+
function ds(e, t, n, s) {
|
|
3130
|
+
var i = t._milliseconds, r = Ut(t._days), a = Ut(t._months);
|
|
3131
|
+
e.isValid() && (s = s ?? !0, a && Bn(e, $e(e, "Month") + a * n), r && Gn(e, "Date", $e(e, "Date") + r * n), i && e._d.setTime(e._d.valueOf() + i * n), s && g.updateOffset(e, r || a));
|
|
3165
3132
|
}
|
|
3166
|
-
var
|
|
3167
|
-
function
|
|
3133
|
+
var ua = ls(1, "add"), la = ls(-1, "subtract");
|
|
3134
|
+
function hs(e) {
|
|
3168
3135
|
return typeof e == "string" || e instanceof String;
|
|
3169
3136
|
}
|
|
3170
|
-
function la(e) {
|
|
3171
|
-
return B(e) || Ve(e) || ds(e) || oe(e) || ha(e) || da(e) || e === null || e === void 0;
|
|
3172
|
-
}
|
|
3173
3137
|
function da(e) {
|
|
3174
|
-
|
|
3138
|
+
return q(e) || ze(e) || hs(e) || ue(e) || ca(e) || ha(e) || e === null || e === void 0;
|
|
3139
|
+
}
|
|
3140
|
+
function ha(e) {
|
|
3141
|
+
var t = _e(e) && !Wt(e), n = !1, s = [
|
|
3175
3142
|
"years",
|
|
3176
3143
|
"year",
|
|
3177
3144
|
"y",
|
|
@@ -3198,17 +3165,17 @@ function da(e) {
|
|
|
3198
3165
|
"ms"
|
|
3199
3166
|
], i, r, a = s.length;
|
|
3200
3167
|
for (i = 0; i < a; i += 1)
|
|
3201
|
-
r = s[i], n = n ||
|
|
3168
|
+
r = s[i], n = n || b(e, r);
|
|
3202
3169
|
return t && n;
|
|
3203
3170
|
}
|
|
3204
|
-
function
|
|
3205
|
-
var t =
|
|
3171
|
+
function ca(e) {
|
|
3172
|
+
var t = B(e), n = !1;
|
|
3206
3173
|
return t && (n = e.filter(function(s) {
|
|
3207
|
-
return !
|
|
3174
|
+
return !ue(s) && hs(e);
|
|
3208
3175
|
}).length === 0), t && n;
|
|
3209
3176
|
}
|
|
3210
|
-
function
|
|
3211
|
-
var t =
|
|
3177
|
+
function fa(e) {
|
|
3178
|
+
var t = _e(e) && !Wt(e), n = !1, s = [
|
|
3212
3179
|
"sameDay",
|
|
3213
3180
|
"nextDay",
|
|
3214
3181
|
"lastDay",
|
|
@@ -3217,60 +3184,60 @@ function ca(e) {
|
|
|
3217
3184
|
"sameElse"
|
|
3218
3185
|
], i, r;
|
|
3219
3186
|
for (i = 0; i < s.length; i += 1)
|
|
3220
|
-
r = s[i], n = n ||
|
|
3187
|
+
r = s[i], n = n || b(e, r);
|
|
3221
3188
|
return t && n;
|
|
3222
3189
|
}
|
|
3223
|
-
function
|
|
3190
|
+
function ga(e, t) {
|
|
3224
3191
|
var n = e.diff(t, "days", !0);
|
|
3225
3192
|
return n < -6 ? "sameElse" : n < -1 ? "lastWeek" : n < 0 ? "lastDay" : n < 1 ? "sameDay" : n < 2 ? "nextDay" : n < 7 ? "nextWeek" : "sameElse";
|
|
3226
3193
|
}
|
|
3227
|
-
function
|
|
3228
|
-
arguments.length === 1 && (arguments[0] ?
|
|
3229
|
-
var n = e ||
|
|
3194
|
+
function ma(e, t) {
|
|
3195
|
+
arguments.length === 1 && (arguments[0] ? da(arguments[0]) ? (e = arguments[0], t = void 0) : fa(arguments[0]) && (t = arguments[0], e = void 0) : (e = void 0, t = void 0));
|
|
3196
|
+
var n = e || M(), s = un(n, this).startOf("day"), i = g.calendarFormat(this, s) || "sameElse", r = t && (te(t[i]) ? t[i].call(this, n) : t[i]);
|
|
3230
3197
|
return this.format(
|
|
3231
|
-
r || this.localeData().calendar(i, this,
|
|
3198
|
+
r || this.localeData().calendar(i, this, M(n))
|
|
3232
3199
|
);
|
|
3233
3200
|
}
|
|
3234
|
-
function
|
|
3235
|
-
return new
|
|
3236
|
-
}
|
|
3237
|
-
function pa(e, t) {
|
|
3238
|
-
var n = B(e) ? e : O(e);
|
|
3239
|
-
return this.isValid() && n.isValid() ? (t = V(t) || "millisecond", t === "millisecond" ? this.valueOf() > n.valueOf() : n.valueOf() < this.clone().startOf(t).valueOf()) : !1;
|
|
3201
|
+
function pa() {
|
|
3202
|
+
return new Ke(this);
|
|
3240
3203
|
}
|
|
3241
3204
|
function ya(e, t) {
|
|
3242
|
-
var n =
|
|
3243
|
-
return this.isValid() && n.isValid() ? (t =
|
|
3205
|
+
var n = q(e) ? e : M(e);
|
|
3206
|
+
return this.isValid() && n.isValid() ? (t = G(t) || "millisecond", t === "millisecond" ? this.valueOf() > n.valueOf() : n.valueOf() < this.clone().startOf(t).valueOf()) : !1;
|
|
3244
3207
|
}
|
|
3245
|
-
function _a(e, t
|
|
3246
|
-
var
|
|
3247
|
-
return this.isValid() &&
|
|
3208
|
+
function _a(e, t) {
|
|
3209
|
+
var n = q(e) ? e : M(e);
|
|
3210
|
+
return this.isValid() && n.isValid() ? (t = G(t) || "millisecond", t === "millisecond" ? this.valueOf() < n.valueOf() : this.clone().endOf(t).valueOf() < n.valueOf()) : !1;
|
|
3248
3211
|
}
|
|
3249
|
-
function va(e, t) {
|
|
3250
|
-
var
|
|
3251
|
-
return this.isValid() &&
|
|
3212
|
+
function va(e, t, n, s) {
|
|
3213
|
+
var i = q(e) ? e : M(e), r = q(t) ? t : M(t);
|
|
3214
|
+
return this.isValid() && i.isValid() && r.isValid() ? (s = s || "()", (s[0] === "(" ? this.isAfter(i, n) : !this.isBefore(i, n)) && (s[1] === ")" ? this.isBefore(r, n) : !this.isAfter(r, n))) : !1;
|
|
3252
3215
|
}
|
|
3253
3216
|
function wa(e, t) {
|
|
3254
|
-
|
|
3217
|
+
var n = q(e) ? e : M(e), s;
|
|
3218
|
+
return this.isValid() && n.isValid() ? (t = G(t) || "millisecond", t === "millisecond" ? this.valueOf() === n.valueOf() : (s = n.valueOf(), this.clone().startOf(t).valueOf() <= s && s <= this.clone().endOf(t).valueOf())) : !1;
|
|
3255
3219
|
}
|
|
3256
3220
|
function Sa(e, t) {
|
|
3221
|
+
return this.isSame(e, t) || this.isAfter(e, t);
|
|
3222
|
+
}
|
|
3223
|
+
function ba(e, t) {
|
|
3257
3224
|
return this.isSame(e, t) || this.isBefore(e, t);
|
|
3258
3225
|
}
|
|
3259
|
-
function
|
|
3226
|
+
function xa(e, t, n) {
|
|
3260
3227
|
var s, i, r;
|
|
3261
3228
|
if (!this.isValid())
|
|
3262
3229
|
return NaN;
|
|
3263
|
-
if (s =
|
|
3230
|
+
if (s = un(e, this), !s.isValid())
|
|
3264
3231
|
return NaN;
|
|
3265
|
-
switch (i = (s.utcOffset() - this.utcOffset()) * 6e4, t =
|
|
3232
|
+
switch (i = (s.utcOffset() - this.utcOffset()) * 6e4, t = G(t), t) {
|
|
3266
3233
|
case "year":
|
|
3267
|
-
r =
|
|
3234
|
+
r = st(this, s) / 12;
|
|
3268
3235
|
break;
|
|
3269
3236
|
case "month":
|
|
3270
|
-
r =
|
|
3237
|
+
r = st(this, s);
|
|
3271
3238
|
break;
|
|
3272
3239
|
case "quarter":
|
|
3273
|
-
r =
|
|
3240
|
+
r = st(this, s) / 3;
|
|
3274
3241
|
break;
|
|
3275
3242
|
case "second":
|
|
3276
3243
|
r = (this - s) / 1e3;
|
|
@@ -3290,82 +3257,82 @@ function ba(e, t, n) {
|
|
|
3290
3257
|
default:
|
|
3291
3258
|
r = this - s;
|
|
3292
3259
|
}
|
|
3293
|
-
return n ? r :
|
|
3260
|
+
return n ? r : W(r);
|
|
3294
3261
|
}
|
|
3295
|
-
function
|
|
3262
|
+
function st(e, t) {
|
|
3296
3263
|
if (e.date() < t.date())
|
|
3297
|
-
return -
|
|
3264
|
+
return -st(t, e);
|
|
3298
3265
|
var n = (t.year() - e.year()) * 12 + (t.month() - e.month()), s = e.clone().add(n, "months"), i, r;
|
|
3299
3266
|
return t - s < 0 ? (i = e.clone().add(n - 1, "months"), r = (t - s) / (s - i)) : (i = e.clone().add(n + 1, "months"), r = (t - s) / (i - s)), -(n + r) || 0;
|
|
3300
3267
|
}
|
|
3301
3268
|
g.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ";
|
|
3302
3269
|
g.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
|
|
3303
|
-
function
|
|
3270
|
+
function ka() {
|
|
3304
3271
|
return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
|
|
3305
3272
|
}
|
|
3306
|
-
function
|
|
3273
|
+
function Oa(e) {
|
|
3307
3274
|
if (!this.isValid())
|
|
3308
3275
|
return null;
|
|
3309
3276
|
var t = e !== !0, n = t ? this.clone().utc() : this;
|
|
3310
|
-
return n.year() < 0 || n.year() > 9999 ?
|
|
3277
|
+
return n.year() < 0 || n.year() > 9999 ? tt(
|
|
3311
3278
|
n,
|
|
3312
3279
|
t ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"
|
|
3313
|
-
) :
|
|
3280
|
+
) : te(Date.prototype.toISOString) ? t ? this.toDate().toISOString() : new Date(this.valueOf() + this.utcOffset() * 60 * 1e3).toISOString().replace("Z", tt(n, "Z")) : tt(
|
|
3314
3281
|
n,
|
|
3315
3282
|
t ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ"
|
|
3316
3283
|
);
|
|
3317
3284
|
}
|
|
3318
|
-
function
|
|
3285
|
+
function Ma() {
|
|
3319
3286
|
if (!this.isValid())
|
|
3320
3287
|
return "moment.invalid(/* " + this._i + " */)";
|
|
3321
3288
|
var e = "moment", t = "", n, s, i, r;
|
|
3322
3289
|
return this.isLocal() || (e = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone", t = "Z"), n = "[" + e + '("]', s = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY", i = "-MM-DD[T]HH:mm:ss.SSS", r = t + '[")]', this.format(n + s + i + r);
|
|
3323
3290
|
}
|
|
3324
|
-
function
|
|
3291
|
+
function Da(e) {
|
|
3325
3292
|
e || (e = this.isUtc() ? g.defaultFormatUtc : g.defaultFormat);
|
|
3326
|
-
var t =
|
|
3293
|
+
var t = tt(this, e);
|
|
3327
3294
|
return this.localeData().postformat(t);
|
|
3328
3295
|
}
|
|
3329
|
-
function
|
|
3330
|
-
return this.isValid() && (
|
|
3296
|
+
function Ya(e, t) {
|
|
3297
|
+
return this.isValid() && (q(e) && e.isValid() || M(e).isValid()) ? J({ to: this, from: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
|
|
3331
3298
|
}
|
|
3332
|
-
function
|
|
3333
|
-
return this.from(
|
|
3299
|
+
function Na(e) {
|
|
3300
|
+
return this.from(M(), e);
|
|
3334
3301
|
}
|
|
3335
|
-
function
|
|
3336
|
-
return this.isValid() && (
|
|
3302
|
+
function Ca(e, t) {
|
|
3303
|
+
return this.isValid() && (q(e) && e.isValid() || M(e).isValid()) ? J({ from: this, to: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
|
|
3337
3304
|
}
|
|
3338
|
-
function
|
|
3339
|
-
return this.to(
|
|
3305
|
+
function La(e) {
|
|
3306
|
+
return this.to(M(), e);
|
|
3340
3307
|
}
|
|
3341
|
-
function
|
|
3308
|
+
function cs(e) {
|
|
3342
3309
|
var t;
|
|
3343
|
-
return e === void 0 ? this._locale._abbr : (t =
|
|
3310
|
+
return e === void 0 ? this._locale._abbr : (t = le(e), t != null && (this._locale = t), this);
|
|
3344
3311
|
}
|
|
3345
|
-
var
|
|
3312
|
+
var fs = V(
|
|
3346
3313
|
"moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",
|
|
3347
3314
|
function(e) {
|
|
3348
3315
|
return e === void 0 ? this.localeData() : this.locale(e);
|
|
3349
3316
|
}
|
|
3350
3317
|
);
|
|
3351
|
-
function
|
|
3318
|
+
function gs() {
|
|
3352
3319
|
return this._locale;
|
|
3353
3320
|
}
|
|
3354
|
-
var
|
|
3355
|
-
function
|
|
3321
|
+
var dt = 1e3, Me = 60 * dt, ht = 60 * Me, ms = (365 * 400 + 97) * 24 * ht;
|
|
3322
|
+
function De(e, t) {
|
|
3356
3323
|
return (e % t + t) % t;
|
|
3357
3324
|
}
|
|
3358
|
-
function ms(e, t, n) {
|
|
3359
|
-
return e < 100 && e >= 0 ? new Date(e + 400, t, n) - gs : new Date(e, t, n).valueOf();
|
|
3360
|
-
}
|
|
3361
3325
|
function ps(e, t, n) {
|
|
3362
|
-
return e < 100 && e >= 0 ? Date
|
|
3326
|
+
return e < 100 && e >= 0 ? new Date(e + 400, t, n) - ms : new Date(e, t, n).valueOf();
|
|
3363
3327
|
}
|
|
3364
|
-
function
|
|
3328
|
+
function ys(e, t, n) {
|
|
3329
|
+
return e < 100 && e >= 0 ? Date.UTC(e + 400, t, n) - ms : Date.UTC(e, t, n);
|
|
3330
|
+
}
|
|
3331
|
+
function Ra(e) {
|
|
3365
3332
|
var t, n;
|
|
3366
|
-
if (e =
|
|
3333
|
+
if (e = G(e), e === void 0 || e === "millisecond" || !this.isValid())
|
|
3367
3334
|
return this;
|
|
3368
|
-
switch (n = this._isUTC ?
|
|
3335
|
+
switch (n = this._isUTC ? ys : ps, e) {
|
|
3369
3336
|
case "year":
|
|
3370
3337
|
t = n(this.year(), 0, 1);
|
|
3371
3338
|
break;
|
|
@@ -3398,25 +3365,25 @@ function La(e) {
|
|
|
3398
3365
|
t = n(this.year(), this.month(), this.date());
|
|
3399
3366
|
break;
|
|
3400
3367
|
case "hour":
|
|
3401
|
-
t = this._d.valueOf(), t -=
|
|
3402
|
-
t + (this._isUTC ? 0 : this.utcOffset() *
|
|
3403
|
-
|
|
3368
|
+
t = this._d.valueOf(), t -= De(
|
|
3369
|
+
t + (this._isUTC ? 0 : this.utcOffset() * Me),
|
|
3370
|
+
ht
|
|
3404
3371
|
);
|
|
3405
3372
|
break;
|
|
3406
3373
|
case "minute":
|
|
3407
|
-
t = this._d.valueOf(), t -=
|
|
3374
|
+
t = this._d.valueOf(), t -= De(t, Me);
|
|
3408
3375
|
break;
|
|
3409
3376
|
case "second":
|
|
3410
|
-
t = this._d.valueOf(), t -=
|
|
3377
|
+
t = this._d.valueOf(), t -= De(t, dt);
|
|
3411
3378
|
break;
|
|
3412
3379
|
}
|
|
3413
3380
|
return this._d.setTime(t), g.updateOffset(this, !0), this;
|
|
3414
3381
|
}
|
|
3415
|
-
function
|
|
3382
|
+
function Pa(e) {
|
|
3416
3383
|
var t, n;
|
|
3417
|
-
if (e =
|
|
3384
|
+
if (e = G(e), e === void 0 || e === "millisecond" || !this.isValid())
|
|
3418
3385
|
return this;
|
|
3419
|
-
switch (n = this._isUTC ?
|
|
3386
|
+
switch (n = this._isUTC ? ys : ps, e) {
|
|
3420
3387
|
case "year":
|
|
3421
3388
|
t = n(this.year() + 1, 0, 1) - 1;
|
|
3422
3389
|
break;
|
|
@@ -3449,30 +3416,30 @@ function Ra(e) {
|
|
|
3449
3416
|
t = n(this.year(), this.month(), this.date() + 1) - 1;
|
|
3450
3417
|
break;
|
|
3451
3418
|
case "hour":
|
|
3452
|
-
t = this._d.valueOf(), t +=
|
|
3453
|
-
t + (this._isUTC ? 0 : this.utcOffset() *
|
|
3454
|
-
|
|
3419
|
+
t = this._d.valueOf(), t += ht - De(
|
|
3420
|
+
t + (this._isUTC ? 0 : this.utcOffset() * Me),
|
|
3421
|
+
ht
|
|
3455
3422
|
) - 1;
|
|
3456
3423
|
break;
|
|
3457
3424
|
case "minute":
|
|
3458
|
-
t = this._d.valueOf(), t +=
|
|
3425
|
+
t = this._d.valueOf(), t += Me - De(t, Me) - 1;
|
|
3459
3426
|
break;
|
|
3460
3427
|
case "second":
|
|
3461
|
-
t = this._d.valueOf(), t +=
|
|
3428
|
+
t = this._d.valueOf(), t += dt - De(t, dt) - 1;
|
|
3462
3429
|
break;
|
|
3463
3430
|
}
|
|
3464
3431
|
return this._d.setTime(t), g.updateOffset(this, !0), this;
|
|
3465
3432
|
}
|
|
3466
|
-
function
|
|
3433
|
+
function Ta() {
|
|
3467
3434
|
return this._d.valueOf() - (this._offset || 0) * 6e4;
|
|
3468
3435
|
}
|
|
3469
|
-
function
|
|
3436
|
+
function Ea() {
|
|
3470
3437
|
return Math.floor(this.valueOf() / 1e3);
|
|
3471
3438
|
}
|
|
3472
|
-
function
|
|
3439
|
+
function Fa() {
|
|
3473
3440
|
return new Date(this.valueOf());
|
|
3474
3441
|
}
|
|
3475
|
-
function
|
|
3442
|
+
function Aa() {
|
|
3476
3443
|
var e = this;
|
|
3477
3444
|
return [
|
|
3478
3445
|
e.year(),
|
|
@@ -3484,7 +3451,7 @@ function Fa() {
|
|
|
3484
3451
|
e.millisecond()
|
|
3485
3452
|
];
|
|
3486
3453
|
}
|
|
3487
|
-
function
|
|
3454
|
+
function Ia() {
|
|
3488
3455
|
var e = this;
|
|
3489
3456
|
return {
|
|
3490
3457
|
years: e.year(),
|
|
@@ -3496,19 +3463,19 @@ function Aa() {
|
|
|
3496
3463
|
milliseconds: e.milliseconds()
|
|
3497
3464
|
};
|
|
3498
3465
|
}
|
|
3499
|
-
function Ia() {
|
|
3500
|
-
return this.isValid() ? this.toISOString() : null;
|
|
3501
|
-
}
|
|
3502
3466
|
function ja() {
|
|
3503
|
-
return
|
|
3467
|
+
return this.isValid() ? this.toISOString() : null;
|
|
3504
3468
|
}
|
|
3505
3469
|
function Ua() {
|
|
3506
|
-
return
|
|
3470
|
+
return Vt(this);
|
|
3507
3471
|
}
|
|
3508
3472
|
function Ha() {
|
|
3509
|
-
return
|
|
3473
|
+
return he({}, v(this));
|
|
3510
3474
|
}
|
|
3511
3475
|
function $a() {
|
|
3476
|
+
return v(this).overflow;
|
|
3477
|
+
}
|
|
3478
|
+
function Wa() {
|
|
3512
3479
|
return {
|
|
3513
3480
|
input: this._i,
|
|
3514
3481
|
format: this._f,
|
|
@@ -3526,30 +3493,30 @@ p("y", ["y", 1], "yo", "eraYear");
|
|
|
3526
3493
|
p("y", ["yy", 2], 0, "eraYear");
|
|
3527
3494
|
p("y", ["yyy", 3], 0, "eraYear");
|
|
3528
3495
|
p("y", ["yyyy", 4], 0, "eraYear");
|
|
3529
|
-
m("N",
|
|
3530
|
-
m("NN",
|
|
3531
|
-
m("NNN",
|
|
3532
|
-
m("NNNN",
|
|
3533
|
-
m("NNNNN",
|
|
3534
|
-
|
|
3496
|
+
m("N", ln);
|
|
3497
|
+
m("NN", ln);
|
|
3498
|
+
m("NNN", ln);
|
|
3499
|
+
m("NNNN", eo);
|
|
3500
|
+
m("NNNNN", to);
|
|
3501
|
+
O(
|
|
3535
3502
|
["N", "NN", "NNN", "NNNN", "NNNNN"],
|
|
3536
3503
|
function(e, t, n, s) {
|
|
3537
3504
|
var i = n._locale.erasParse(e, s, n._strict);
|
|
3538
|
-
i ?
|
|
3505
|
+
i ? v(n).era = i : v(n).invalidEra = e;
|
|
3539
3506
|
}
|
|
3540
3507
|
);
|
|
3541
|
-
m("y",
|
|
3542
|
-
m("yy",
|
|
3543
|
-
m("yyy",
|
|
3544
|
-
m("yyyy",
|
|
3545
|
-
m("yo",
|
|
3546
|
-
|
|
3547
|
-
|
|
3508
|
+
m("y", Ye);
|
|
3509
|
+
m("yy", Ye);
|
|
3510
|
+
m("yyy", Ye);
|
|
3511
|
+
m("yyyy", Ye);
|
|
3512
|
+
m("yo", no);
|
|
3513
|
+
O(["y", "yy", "yyy", "yyyy"], T);
|
|
3514
|
+
O(["yo"], function(e, t, n, s) {
|
|
3548
3515
|
var i;
|
|
3549
|
-
n._locale._eraYearOrdinalRegex && (i = e.match(n._locale._eraYearOrdinalRegex)), n._locale.eraYearOrdinalParse ? t[
|
|
3516
|
+
n._locale._eraYearOrdinalRegex && (i = e.match(n._locale._eraYearOrdinalRegex)), n._locale.eraYearOrdinalParse ? t[T] = n._locale.eraYearOrdinalParse(e, i) : t[T] = parseInt(e, 10);
|
|
3550
3517
|
});
|
|
3551
|
-
function
|
|
3552
|
-
var n, s, i, r = this._eras ||
|
|
3518
|
+
function Va(e, t) {
|
|
3519
|
+
var n, s, i, r = this._eras || le("en")._eras;
|
|
3553
3520
|
for (n = 0, s = r.length; n < s; ++n) {
|
|
3554
3521
|
switch (typeof r[n].since) {
|
|
3555
3522
|
case "string":
|
|
@@ -3567,7 +3534,7 @@ function Wa(e, t) {
|
|
|
3567
3534
|
}
|
|
3568
3535
|
return r;
|
|
3569
3536
|
}
|
|
3570
|
-
function
|
|
3537
|
+
function Ga(e, t, n) {
|
|
3571
3538
|
var s, i, r = this.eras(), a, o, u;
|
|
3572
3539
|
for (e = e.toUpperCase(), s = 0, i = r.length; s < i; ++s)
|
|
3573
3540
|
if (a = r[s].name.toUpperCase(), o = r[s].abbr.toUpperCase(), u = r[s].narrow.toUpperCase(), n)
|
|
@@ -3590,63 +3557,63 @@ function Va(e, t, n) {
|
|
|
3590
3557
|
else if ([a, o, u].indexOf(e) >= 0)
|
|
3591
3558
|
return r[s];
|
|
3592
3559
|
}
|
|
3593
|
-
function
|
|
3560
|
+
function za(e, t) {
|
|
3594
3561
|
var n = e.since <= e.until ? 1 : -1;
|
|
3595
3562
|
return t === void 0 ? g(e.since).year() : g(e.since).year() + (t - e.offset) * n;
|
|
3596
3563
|
}
|
|
3597
|
-
function
|
|
3564
|
+
function Ka() {
|
|
3598
3565
|
var e, t, n, s = this.localeData().eras();
|
|
3599
3566
|
for (e = 0, t = s.length; e < t; ++e)
|
|
3600
3567
|
if (n = this.clone().startOf("day").valueOf(), s[e].since <= n && n <= s[e].until || s[e].until <= n && n <= s[e].since)
|
|
3601
3568
|
return s[e].name;
|
|
3602
3569
|
return "";
|
|
3603
3570
|
}
|
|
3604
|
-
function
|
|
3571
|
+
function Ba() {
|
|
3605
3572
|
var e, t, n, s = this.localeData().eras();
|
|
3606
3573
|
for (e = 0, t = s.length; e < t; ++e)
|
|
3607
3574
|
if (n = this.clone().startOf("day").valueOf(), s[e].since <= n && n <= s[e].until || s[e].until <= n && n <= s[e].since)
|
|
3608
3575
|
return s[e].narrow;
|
|
3609
3576
|
return "";
|
|
3610
3577
|
}
|
|
3611
|
-
function
|
|
3578
|
+
function qa() {
|
|
3612
3579
|
var e, t, n, s = this.localeData().eras();
|
|
3613
3580
|
for (e = 0, t = s.length; e < t; ++e)
|
|
3614
3581
|
if (n = this.clone().startOf("day").valueOf(), s[e].since <= n && n <= s[e].until || s[e].until <= n && n <= s[e].since)
|
|
3615
3582
|
return s[e].abbr;
|
|
3616
3583
|
return "";
|
|
3617
3584
|
}
|
|
3618
|
-
function
|
|
3585
|
+
function Ja() {
|
|
3619
3586
|
var e, t, n, s, i = this.localeData().eras();
|
|
3620
3587
|
for (e = 0, t = i.length; e < t; ++e)
|
|
3621
3588
|
if (n = i[e].since <= i[e].until ? 1 : -1, s = this.clone().startOf("day").valueOf(), i[e].since <= s && s <= i[e].until || i[e].until <= s && s <= i[e].since)
|
|
3622
3589
|
return (this.year() - g(i[e].since).year()) * n + i[e].offset;
|
|
3623
3590
|
return this.year();
|
|
3624
3591
|
}
|
|
3625
|
-
function Ja(e) {
|
|
3626
|
-
return S(this, "_erasNameRegex") || ln.call(this), e ? this._erasNameRegex : this._erasRegex;
|
|
3627
|
-
}
|
|
3628
3592
|
function Za(e) {
|
|
3629
|
-
return
|
|
3593
|
+
return b(this, "_erasNameRegex") || dn.call(this), e ? this._erasNameRegex : this._erasRegex;
|
|
3630
3594
|
}
|
|
3631
3595
|
function Qa(e) {
|
|
3632
|
-
return
|
|
3596
|
+
return b(this, "_erasAbbrRegex") || dn.call(this), e ? this._erasAbbrRegex : this._erasRegex;
|
|
3633
3597
|
}
|
|
3634
|
-
function
|
|
3598
|
+
function Xa(e) {
|
|
3599
|
+
return b(this, "_erasNarrowRegex") || dn.call(this), e ? this._erasNarrowRegex : this._erasRegex;
|
|
3600
|
+
}
|
|
3601
|
+
function ln(e, t) {
|
|
3635
3602
|
return t.erasAbbrRegex(e);
|
|
3636
3603
|
}
|
|
3637
|
-
function
|
|
3604
|
+
function eo(e, t) {
|
|
3638
3605
|
return t.erasNameRegex(e);
|
|
3639
3606
|
}
|
|
3640
|
-
function
|
|
3607
|
+
function to(e, t) {
|
|
3641
3608
|
return t.erasNarrowRegex(e);
|
|
3642
3609
|
}
|
|
3643
|
-
function
|
|
3644
|
-
return t._eraYearOrdinalRegex ||
|
|
3610
|
+
function no(e, t) {
|
|
3611
|
+
return t._eraYearOrdinalRegex || Ye;
|
|
3645
3612
|
}
|
|
3646
|
-
function
|
|
3613
|
+
function dn() {
|
|
3647
3614
|
var e = [], t = [], n = [], s = [], i, r, a, o, u, l = this.eras();
|
|
3648
3615
|
for (i = 0, r = l.length; i < r; ++i)
|
|
3649
|
-
a =
|
|
3616
|
+
a = ae(l[i].name), o = ae(l[i].abbr), u = ae(l[i].narrow), t.push(a), e.push(o), n.push(u), s.push(a), s.push(o), s.push(u);
|
|
3650
3617
|
this._erasRegex = new RegExp("^(" + s.join("|") + ")", "i"), this._erasNameRegex = new RegExp("^(" + t.join("|") + ")", "i"), this._erasAbbrRegex = new RegExp("^(" + e.join("|") + ")", "i"), this._erasNarrowRegex = new RegExp(
|
|
3651
3618
|
"^(" + n.join("|") + ")",
|
|
3652
3619
|
"i"
|
|
@@ -3658,32 +3625,32 @@ p(0, ["gg", 2], 0, function() {
|
|
|
3658
3625
|
p(0, ["GG", 2], 0, function() {
|
|
3659
3626
|
return this.isoWeekYear() % 100;
|
|
3660
3627
|
});
|
|
3661
|
-
function
|
|
3628
|
+
function xt(e, t) {
|
|
3662
3629
|
p(0, [e, e.length], 0, t);
|
|
3663
3630
|
}
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
m("G",
|
|
3669
|
-
m("g",
|
|
3670
|
-
m("GG",
|
|
3671
|
-
m("gg",
|
|
3672
|
-
m("GGGG",
|
|
3673
|
-
m("gggg",
|
|
3674
|
-
m("GGGGG",
|
|
3675
|
-
m("ggggg",
|
|
3676
|
-
|
|
3631
|
+
xt("gggg", "weekYear");
|
|
3632
|
+
xt("ggggg", "weekYear");
|
|
3633
|
+
xt("GGGG", "isoWeekYear");
|
|
3634
|
+
xt("GGGGG", "isoWeekYear");
|
|
3635
|
+
m("G", _t);
|
|
3636
|
+
m("g", _t);
|
|
3637
|
+
m("GG", D, $);
|
|
3638
|
+
m("gg", D, $);
|
|
3639
|
+
m("GGGG", Jt, qt);
|
|
3640
|
+
m("gggg", Jt, qt);
|
|
3641
|
+
m("GGGGG", yt, mt);
|
|
3642
|
+
m("ggggg", yt, mt);
|
|
3643
|
+
qe(
|
|
3677
3644
|
["gggg", "ggggg", "GGGG", "GGGGG"],
|
|
3678
3645
|
function(e, t, n, s) {
|
|
3679
|
-
t[s.substr(0, 2)] =
|
|
3646
|
+
t[s.substr(0, 2)] = w(e);
|
|
3680
3647
|
}
|
|
3681
3648
|
);
|
|
3682
|
-
|
|
3649
|
+
qe(["gg", "GG"], function(e, t, n, s) {
|
|
3683
3650
|
t[s] = g.parseTwoDigitYear(e);
|
|
3684
3651
|
});
|
|
3685
|
-
function
|
|
3686
|
-
return
|
|
3652
|
+
function so(e) {
|
|
3653
|
+
return _s.call(
|
|
3687
3654
|
this,
|
|
3688
3655
|
e,
|
|
3689
3656
|
this.week(),
|
|
@@ -3692,8 +3659,8 @@ function no(e) {
|
|
|
3692
3659
|
this.localeData()._week.doy
|
|
3693
3660
|
);
|
|
3694
3661
|
}
|
|
3695
|
-
function
|
|
3696
|
-
return
|
|
3662
|
+
function io(e) {
|
|
3663
|
+
return _s.call(
|
|
3697
3664
|
this,
|
|
3698
3665
|
e,
|
|
3699
3666
|
this.isoWeek(),
|
|
@@ -3702,69 +3669,69 @@ function so(e) {
|
|
|
3702
3669
|
4
|
|
3703
3670
|
);
|
|
3704
3671
|
}
|
|
3705
|
-
function io() {
|
|
3706
|
-
return ae(this.year(), 1, 4);
|
|
3707
|
-
}
|
|
3708
3672
|
function ro() {
|
|
3709
|
-
return
|
|
3673
|
+
return oe(this.year(), 1, 4);
|
|
3710
3674
|
}
|
|
3711
3675
|
function ao() {
|
|
3712
|
-
|
|
3713
|
-
return ae(this.year(), e.dow, e.doy);
|
|
3676
|
+
return oe(this.isoWeekYear(), 1, 4);
|
|
3714
3677
|
}
|
|
3715
3678
|
function oo() {
|
|
3716
3679
|
var e = this.localeData()._week;
|
|
3717
|
-
return
|
|
3680
|
+
return oe(this.year(), e.dow, e.doy);
|
|
3718
3681
|
}
|
|
3719
|
-
function
|
|
3682
|
+
function uo() {
|
|
3683
|
+
var e = this.localeData()._week;
|
|
3684
|
+
return oe(this.weekYear(), e.dow, e.doy);
|
|
3685
|
+
}
|
|
3686
|
+
function _s(e, t, n, s, i) {
|
|
3720
3687
|
var r;
|
|
3721
|
-
return e == null ?
|
|
3688
|
+
return e == null ? Ve(this, s, i).year : (r = oe(e, s, i), t > r && (t = r), lo.call(this, e, t, n, s, i));
|
|
3722
3689
|
}
|
|
3723
|
-
function
|
|
3724
|
-
var r =
|
|
3690
|
+
function lo(e, t, n, s, i) {
|
|
3691
|
+
var r = Zn(e, t, n, s, i), a = We(r.year, 0, r.dayOfYear);
|
|
3725
3692
|
return this.year(a.getUTCFullYear()), this.month(a.getUTCMonth()), this.date(a.getUTCDate()), this;
|
|
3726
3693
|
}
|
|
3727
3694
|
p("Q", 0, "Qo", "quarter");
|
|
3728
|
-
m("Q",
|
|
3729
|
-
|
|
3730
|
-
t[
|
|
3695
|
+
m("Q", Un);
|
|
3696
|
+
O("Q", function(e, t) {
|
|
3697
|
+
t[ie] = (w(e) - 1) * 3;
|
|
3731
3698
|
});
|
|
3732
|
-
function
|
|
3699
|
+
function ho(e) {
|
|
3733
3700
|
return e == null ? Math.ceil((this.month() + 1) / 3) : this.month((e - 1) * 3 + this.month() % 3);
|
|
3734
3701
|
}
|
|
3735
3702
|
p("D", ["DD", 2], "Do", "date");
|
|
3736
|
-
m("D",
|
|
3737
|
-
m("DD",
|
|
3703
|
+
m("D", D, Ne);
|
|
3704
|
+
m("DD", D, $);
|
|
3738
3705
|
m("Do", function(e, t) {
|
|
3739
3706
|
return e ? t._dayOfMonthOrdinalParse || t._ordinalParse : t._dayOfMonthOrdinalParseLenient;
|
|
3740
3707
|
});
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
t[
|
|
3708
|
+
O(["D", "DD"], Z);
|
|
3709
|
+
O("Do", function(e, t) {
|
|
3710
|
+
t[Z] = w(e.match(D)[0]);
|
|
3744
3711
|
});
|
|
3745
|
-
var
|
|
3712
|
+
var vs = Ce("Date", !0);
|
|
3746
3713
|
p("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
|
|
3747
|
-
m("DDD",
|
|
3748
|
-
m("DDDD",
|
|
3749
|
-
|
|
3750
|
-
n._dayOfYear =
|
|
3714
|
+
m("DDD", pt);
|
|
3715
|
+
m("DDDD", Hn);
|
|
3716
|
+
O(["DDD", "DDDD"], function(e, t, n) {
|
|
3717
|
+
n._dayOfYear = w(e);
|
|
3751
3718
|
});
|
|
3752
|
-
function
|
|
3719
|
+
function co(e) {
|
|
3753
3720
|
var t = Math.round(
|
|
3754
3721
|
(this.clone().startOf("day") - this.clone().startOf("year")) / 864e5
|
|
3755
3722
|
) + 1;
|
|
3756
3723
|
return e == null ? t : this.add(e - t, "d");
|
|
3757
3724
|
}
|
|
3758
3725
|
p("m", ["mm", 2], 0, "minute");
|
|
3759
|
-
m("m",
|
|
3760
|
-
m("mm",
|
|
3761
|
-
|
|
3762
|
-
var
|
|
3726
|
+
m("m", D, Zt);
|
|
3727
|
+
m("mm", D, $);
|
|
3728
|
+
O(["m", "mm"], K);
|
|
3729
|
+
var fo = Ce("Minutes", !1);
|
|
3763
3730
|
p("s", ["ss", 2], 0, "second");
|
|
3764
|
-
m("s",
|
|
3765
|
-
m("ss",
|
|
3766
|
-
|
|
3767
|
-
var
|
|
3731
|
+
m("s", D, Zt);
|
|
3732
|
+
m("ss", D, $);
|
|
3733
|
+
O(["s", "ss"], re);
|
|
3734
|
+
var go = Ce("Seconds", !1);
|
|
3768
3735
|
p("S", 0, 0, function() {
|
|
3769
3736
|
return ~~(this.millisecond() / 100);
|
|
3770
3737
|
});
|
|
@@ -3790,205 +3757,205 @@ p(0, ["SSSSSSSS", 8], 0, function() {
|
|
|
3790
3757
|
p(0, ["SSSSSSSSS", 9], 0, function() {
|
|
3791
3758
|
return this.millisecond() * 1e6;
|
|
3792
3759
|
});
|
|
3793
|
-
m("S",
|
|
3794
|
-
m("SS",
|
|
3795
|
-
m("SSS",
|
|
3796
|
-
var
|
|
3797
|
-
for (
|
|
3798
|
-
m(
|
|
3799
|
-
function
|
|
3800
|
-
t[
|
|
3801
|
-
}
|
|
3802
|
-
for (
|
|
3803
|
-
|
|
3804
|
-
|
|
3760
|
+
m("S", pt, Un);
|
|
3761
|
+
m("SS", pt, $);
|
|
3762
|
+
m("SSS", pt, Hn);
|
|
3763
|
+
var ce, ws;
|
|
3764
|
+
for (ce = "SSSS"; ce.length <= 9; ce += "S")
|
|
3765
|
+
m(ce, Ye);
|
|
3766
|
+
function mo(e, t) {
|
|
3767
|
+
t[ye] = w(("0." + e) * 1e3);
|
|
3768
|
+
}
|
|
3769
|
+
for (ce = "S"; ce.length <= 9; ce += "S")
|
|
3770
|
+
O(ce, mo);
|
|
3771
|
+
ws = Ce("Milliseconds", !1);
|
|
3805
3772
|
p("z", 0, 0, "zoneAbbr");
|
|
3806
3773
|
p("zz", 0, 0, "zoneName");
|
|
3807
|
-
function
|
|
3774
|
+
function po() {
|
|
3808
3775
|
return this._isUTC ? "UTC" : "";
|
|
3809
3776
|
}
|
|
3810
|
-
function
|
|
3777
|
+
function yo() {
|
|
3811
3778
|
return this._isUTC ? "Coordinated Universal Time" : "";
|
|
3812
3779
|
}
|
|
3813
|
-
var c =
|
|
3814
|
-
c.add =
|
|
3815
|
-
c.calendar =
|
|
3816
|
-
c.clone =
|
|
3817
|
-
c.diff =
|
|
3818
|
-
c.endOf =
|
|
3819
|
-
c.format =
|
|
3820
|
-
c.from =
|
|
3821
|
-
c.fromNow =
|
|
3822
|
-
c.to =
|
|
3823
|
-
c.toNow =
|
|
3824
|
-
c.get =
|
|
3825
|
-
c.invalidAt =
|
|
3826
|
-
c.isAfter =
|
|
3827
|
-
c.isBefore =
|
|
3828
|
-
c.isBetween =
|
|
3829
|
-
c.isSame =
|
|
3830
|
-
c.isSameOrAfter =
|
|
3831
|
-
c.isSameOrBefore =
|
|
3832
|
-
c.isValid =
|
|
3833
|
-
c.lang =
|
|
3834
|
-
c.locale =
|
|
3835
|
-
c.localeData =
|
|
3836
|
-
c.max =
|
|
3837
|
-
c.min =
|
|
3838
|
-
c.parsingFlags =
|
|
3839
|
-
c.set =
|
|
3840
|
-
c.startOf =
|
|
3841
|
-
c.subtract =
|
|
3842
|
-
c.toArray =
|
|
3843
|
-
c.toObject =
|
|
3844
|
-
c.toDate =
|
|
3845
|
-
c.toISOString =
|
|
3846
|
-
c.inspect =
|
|
3780
|
+
var c = Ke.prototype;
|
|
3781
|
+
c.add = ua;
|
|
3782
|
+
c.calendar = ma;
|
|
3783
|
+
c.clone = pa;
|
|
3784
|
+
c.diff = xa;
|
|
3785
|
+
c.endOf = Pa;
|
|
3786
|
+
c.format = Da;
|
|
3787
|
+
c.from = Ya;
|
|
3788
|
+
c.fromNow = Na;
|
|
3789
|
+
c.to = Ca;
|
|
3790
|
+
c.toNow = La;
|
|
3791
|
+
c.get = Mi;
|
|
3792
|
+
c.invalidAt = $a;
|
|
3793
|
+
c.isAfter = ya;
|
|
3794
|
+
c.isBefore = _a;
|
|
3795
|
+
c.isBetween = va;
|
|
3796
|
+
c.isSame = wa;
|
|
3797
|
+
c.isSameOrAfter = Sa;
|
|
3798
|
+
c.isSameOrBefore = ba;
|
|
3799
|
+
c.isValid = Ua;
|
|
3800
|
+
c.lang = fs;
|
|
3801
|
+
c.locale = cs;
|
|
3802
|
+
c.localeData = gs;
|
|
3803
|
+
c.max = Ur;
|
|
3804
|
+
c.min = jr;
|
|
3805
|
+
c.parsingFlags = Ha;
|
|
3806
|
+
c.set = Di;
|
|
3807
|
+
c.startOf = Ra;
|
|
3808
|
+
c.subtract = la;
|
|
3809
|
+
c.toArray = Aa;
|
|
3810
|
+
c.toObject = Ia;
|
|
3811
|
+
c.toDate = Fa;
|
|
3812
|
+
c.toISOString = Oa;
|
|
3813
|
+
c.inspect = Ma;
|
|
3847
3814
|
typeof Symbol < "u" && Symbol.for != null && (c[Symbol.for("nodejs.util.inspect.custom")] = function() {
|
|
3848
3815
|
return "Moment<" + this.format() + ">";
|
|
3849
3816
|
});
|
|
3850
|
-
c.toJSON =
|
|
3851
|
-
c.toString =
|
|
3852
|
-
c.unix =
|
|
3853
|
-
c.valueOf =
|
|
3854
|
-
c.creationData =
|
|
3855
|
-
c.eraName =
|
|
3856
|
-
c.eraNarrow =
|
|
3857
|
-
c.eraAbbr =
|
|
3858
|
-
c.eraYear =
|
|
3859
|
-
c.year =
|
|
3860
|
-
c.isLeapYear =
|
|
3861
|
-
c.weekYear =
|
|
3862
|
-
c.isoWeekYear =
|
|
3863
|
-
c.quarter = c.quarters =
|
|
3864
|
-
c.month =
|
|
3865
|
-
c.daysInMonth =
|
|
3866
|
-
c.week = c.weeks =
|
|
3867
|
-
c.isoWeek = c.isoWeeks =
|
|
3868
|
-
c.weeksInYear =
|
|
3869
|
-
c.weeksInWeekYear =
|
|
3870
|
-
c.isoWeeksInYear =
|
|
3871
|
-
c.isoWeeksInISOWeekYear =
|
|
3872
|
-
c.date =
|
|
3873
|
-
c.day = c.days =
|
|
3874
|
-
c.weekday =
|
|
3875
|
-
c.isoWeekday =
|
|
3876
|
-
c.dayOfYear =
|
|
3877
|
-
c.hour = c.hours =
|
|
3878
|
-
c.minute = c.minutes =
|
|
3879
|
-
c.second = c.seconds =
|
|
3880
|
-
c.millisecond = c.milliseconds =
|
|
3881
|
-
c.utcOffset =
|
|
3882
|
-
c.utc =
|
|
3883
|
-
c.local =
|
|
3884
|
-
c.parseZone =
|
|
3885
|
-
c.hasAlignedHourOffset =
|
|
3886
|
-
c.isDST =
|
|
3887
|
-
c.isLocal =
|
|
3888
|
-
c.isUtcOffset =
|
|
3889
|
-
c.isUtc =
|
|
3890
|
-
c.isUTC =
|
|
3891
|
-
c.zoneAbbr =
|
|
3892
|
-
c.zoneName =
|
|
3893
|
-
c.dates =
|
|
3817
|
+
c.toJSON = ja;
|
|
3818
|
+
c.toString = ka;
|
|
3819
|
+
c.unix = Ea;
|
|
3820
|
+
c.valueOf = Ta;
|
|
3821
|
+
c.creationData = Wa;
|
|
3822
|
+
c.eraName = Ka;
|
|
3823
|
+
c.eraNarrow = Ba;
|
|
3824
|
+
c.eraAbbr = qa;
|
|
3825
|
+
c.eraYear = Ja;
|
|
3826
|
+
c.year = Vn;
|
|
3827
|
+
c.isLeapYear = Oi;
|
|
3828
|
+
c.weekYear = so;
|
|
3829
|
+
c.isoWeekYear = io;
|
|
3830
|
+
c.quarter = c.quarters = ho;
|
|
3831
|
+
c.month = qn;
|
|
3832
|
+
c.daysInMonth = Fi;
|
|
3833
|
+
c.week = c.weeks = Vi;
|
|
3834
|
+
c.isoWeek = c.isoWeeks = Gi;
|
|
3835
|
+
c.weeksInYear = oo;
|
|
3836
|
+
c.weeksInWeekYear = uo;
|
|
3837
|
+
c.isoWeeksInYear = ro;
|
|
3838
|
+
c.isoWeeksInISOWeekYear = ao;
|
|
3839
|
+
c.date = vs;
|
|
3840
|
+
c.day = c.days = ir;
|
|
3841
|
+
c.weekday = rr;
|
|
3842
|
+
c.isoWeekday = ar;
|
|
3843
|
+
c.dayOfYear = co;
|
|
3844
|
+
c.hour = c.hours = fr;
|
|
3845
|
+
c.minute = c.minutes = fo;
|
|
3846
|
+
c.second = c.seconds = go;
|
|
3847
|
+
c.millisecond = c.milliseconds = ws;
|
|
3848
|
+
c.utcOffset = qr;
|
|
3849
|
+
c.utc = Zr;
|
|
3850
|
+
c.local = Qr;
|
|
3851
|
+
c.parseZone = Xr;
|
|
3852
|
+
c.hasAlignedHourOffset = ea;
|
|
3853
|
+
c.isDST = ta;
|
|
3854
|
+
c.isLocal = sa;
|
|
3855
|
+
c.isUtcOffset = ia;
|
|
3856
|
+
c.isUtc = us;
|
|
3857
|
+
c.isUTC = us;
|
|
3858
|
+
c.zoneAbbr = po;
|
|
3859
|
+
c.zoneName = yo;
|
|
3860
|
+
c.dates = V(
|
|
3894
3861
|
"dates accessor is deprecated. Use date instead.",
|
|
3895
|
-
|
|
3862
|
+
vs
|
|
3896
3863
|
);
|
|
3897
|
-
c.months =
|
|
3864
|
+
c.months = V(
|
|
3898
3865
|
"months accessor is deprecated. Use month instead",
|
|
3899
|
-
|
|
3866
|
+
qn
|
|
3900
3867
|
);
|
|
3901
|
-
c.years =
|
|
3868
|
+
c.years = V(
|
|
3902
3869
|
"years accessor is deprecated. Use year instead",
|
|
3903
|
-
|
|
3870
|
+
Vn
|
|
3904
3871
|
);
|
|
3905
|
-
c.zone =
|
|
3872
|
+
c.zone = V(
|
|
3906
3873
|
"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",
|
|
3907
|
-
|
|
3874
|
+
Jr
|
|
3908
3875
|
);
|
|
3909
|
-
c.isDSTShifted =
|
|
3876
|
+
c.isDSTShifted = V(
|
|
3910
3877
|
"isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",
|
|
3911
|
-
|
|
3878
|
+
na
|
|
3912
3879
|
);
|
|
3913
|
-
function
|
|
3914
|
-
return
|
|
3880
|
+
function _o(e) {
|
|
3881
|
+
return M(e * 1e3);
|
|
3915
3882
|
}
|
|
3916
|
-
function
|
|
3917
|
-
return
|
|
3883
|
+
function vo() {
|
|
3884
|
+
return M.apply(null, arguments).parseZone();
|
|
3918
3885
|
}
|
|
3919
|
-
function
|
|
3886
|
+
function Ss(e) {
|
|
3920
3887
|
return e;
|
|
3921
3888
|
}
|
|
3922
|
-
var
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
function
|
|
3956
|
-
var i =
|
|
3889
|
+
var x = zt.prototype;
|
|
3890
|
+
x.calendar = si;
|
|
3891
|
+
x.longDateFormat = oi;
|
|
3892
|
+
x.invalidDate = li;
|
|
3893
|
+
x.ordinal = ci;
|
|
3894
|
+
x.preparse = Ss;
|
|
3895
|
+
x.postformat = Ss;
|
|
3896
|
+
x.relativeTime = gi;
|
|
3897
|
+
x.pastFuture = mi;
|
|
3898
|
+
x.set = ti;
|
|
3899
|
+
x.eras = Va;
|
|
3900
|
+
x.erasParse = Ga;
|
|
3901
|
+
x.erasConvertYear = za;
|
|
3902
|
+
x.erasAbbrRegex = Qa;
|
|
3903
|
+
x.erasNameRegex = Za;
|
|
3904
|
+
x.erasNarrowRegex = Xa;
|
|
3905
|
+
x.months = Ri;
|
|
3906
|
+
x.monthsShort = Pi;
|
|
3907
|
+
x.monthsParse = Ei;
|
|
3908
|
+
x.monthsRegex = Ii;
|
|
3909
|
+
x.monthsShortRegex = Ai;
|
|
3910
|
+
x.week = Ui;
|
|
3911
|
+
x.firstDayOfYear = Wi;
|
|
3912
|
+
x.firstDayOfWeek = $i;
|
|
3913
|
+
x.weekdays = Xi;
|
|
3914
|
+
x.weekdaysMin = tr;
|
|
3915
|
+
x.weekdaysShort = er;
|
|
3916
|
+
x.weekdaysParse = sr;
|
|
3917
|
+
x.weekdaysRegex = or;
|
|
3918
|
+
x.weekdaysShortRegex = ur;
|
|
3919
|
+
x.weekdaysMinRegex = lr;
|
|
3920
|
+
x.isPM = hr;
|
|
3921
|
+
x.meridiem = gr;
|
|
3922
|
+
function ct(e, t, n, s) {
|
|
3923
|
+
var i = le(), r = ee().set(s, t);
|
|
3957
3924
|
return i[n](r, e);
|
|
3958
3925
|
}
|
|
3959
|
-
function
|
|
3960
|
-
if (
|
|
3961
|
-
return
|
|
3926
|
+
function bs(e, t, n) {
|
|
3927
|
+
if (ue(e) && (t = e, e = void 0), e = e || "", t != null)
|
|
3928
|
+
return ct(e, t, n, "month");
|
|
3962
3929
|
var s, i = [];
|
|
3963
3930
|
for (s = 0; s < 12; s++)
|
|
3964
|
-
i[s] =
|
|
3931
|
+
i[s] = ct(e, s, n, "month");
|
|
3965
3932
|
return i;
|
|
3966
3933
|
}
|
|
3967
|
-
function
|
|
3968
|
-
typeof e == "boolean" ? (
|
|
3969
|
-
var i =
|
|
3934
|
+
function hn(e, t, n, s) {
|
|
3935
|
+
typeof e == "boolean" ? (ue(t) && (n = t, t = void 0), t = t || "") : (t = e, n = t, e = !1, ue(t) && (n = t, t = void 0), t = t || "");
|
|
3936
|
+
var i = le(), r = e ? i._week.dow : 0, a, o = [];
|
|
3970
3937
|
if (n != null)
|
|
3971
|
-
return
|
|
3938
|
+
return ct(t, (n + r) % 7, s, "day");
|
|
3972
3939
|
for (a = 0; a < 7; a++)
|
|
3973
|
-
o[a] =
|
|
3940
|
+
o[a] = ct(t, (a + r) % 7, s, "day");
|
|
3974
3941
|
return o;
|
|
3975
3942
|
}
|
|
3976
|
-
function vo(e, t) {
|
|
3977
|
-
return Ss(e, t, "months");
|
|
3978
|
-
}
|
|
3979
3943
|
function wo(e, t) {
|
|
3980
|
-
return
|
|
3944
|
+
return bs(e, t, "months");
|
|
3981
3945
|
}
|
|
3982
|
-
function So(e, t
|
|
3983
|
-
return
|
|
3946
|
+
function So(e, t) {
|
|
3947
|
+
return bs(e, t, "monthsShort");
|
|
3984
3948
|
}
|
|
3985
3949
|
function bo(e, t, n) {
|
|
3986
|
-
return
|
|
3950
|
+
return hn(e, t, n, "weekdays");
|
|
3987
3951
|
}
|
|
3988
3952
|
function xo(e, t, n) {
|
|
3989
|
-
return
|
|
3953
|
+
return hn(e, t, n, "weekdaysShort");
|
|
3954
|
+
}
|
|
3955
|
+
function ko(e, t, n) {
|
|
3956
|
+
return hn(e, t, n, "weekdaysMin");
|
|
3990
3957
|
}
|
|
3991
|
-
|
|
3958
|
+
fe("en", {
|
|
3992
3959
|
eras: [
|
|
3993
3960
|
{
|
|
3994
3961
|
since: "0001-01-01",
|
|
@@ -4009,52 +3976,52 @@ ce("en", {
|
|
|
4009
3976
|
],
|
|
4010
3977
|
dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
|
|
4011
3978
|
ordinal: function(e) {
|
|
4012
|
-
var t = e % 10, n =
|
|
3979
|
+
var t = e % 10, n = w(e % 100 / 10) === 1 ? "th" : t === 1 ? "st" : t === 2 ? "nd" : t === 3 ? "rd" : "th";
|
|
4013
3980
|
return e + n;
|
|
4014
3981
|
}
|
|
4015
3982
|
});
|
|
4016
|
-
g.lang =
|
|
3983
|
+
g.lang = V(
|
|
4017
3984
|
"moment.lang is deprecated. Use moment.locale instead.",
|
|
4018
|
-
|
|
3985
|
+
fe
|
|
4019
3986
|
);
|
|
4020
|
-
g.langData =
|
|
3987
|
+
g.langData = V(
|
|
4021
3988
|
"moment.langData is deprecated. Use moment.localeData instead.",
|
|
4022
|
-
|
|
3989
|
+
le
|
|
4023
3990
|
);
|
|
4024
|
-
var
|
|
4025
|
-
function
|
|
3991
|
+
var ne = Math.abs;
|
|
3992
|
+
function Oo() {
|
|
4026
3993
|
var e = this._data;
|
|
4027
|
-
return this._milliseconds =
|
|
3994
|
+
return this._milliseconds = ne(this._milliseconds), this._days = ne(this._days), this._months = ne(this._months), e.milliseconds = ne(e.milliseconds), e.seconds = ne(e.seconds), e.minutes = ne(e.minutes), e.hours = ne(e.hours), e.months = ne(e.months), e.years = ne(e.years), this;
|
|
4028
3995
|
}
|
|
4029
|
-
function
|
|
4030
|
-
var i =
|
|
3996
|
+
function xs(e, t, n, s) {
|
|
3997
|
+
var i = J(t, n);
|
|
4031
3998
|
return e._milliseconds += s * i._milliseconds, e._days += s * i._days, e._months += s * i._months, e._bubble();
|
|
4032
3999
|
}
|
|
4033
|
-
function Oo(e, t) {
|
|
4034
|
-
return bs(this, e, t, 1);
|
|
4035
|
-
}
|
|
4036
4000
|
function Mo(e, t) {
|
|
4037
|
-
return
|
|
4001
|
+
return xs(this, e, t, 1);
|
|
4002
|
+
}
|
|
4003
|
+
function Do(e, t) {
|
|
4004
|
+
return xs(this, e, t, -1);
|
|
4038
4005
|
}
|
|
4039
|
-
function
|
|
4006
|
+
function Ln(e) {
|
|
4040
4007
|
return e < 0 ? Math.floor(e) : Math.ceil(e);
|
|
4041
4008
|
}
|
|
4042
|
-
function
|
|
4009
|
+
function Yo() {
|
|
4043
4010
|
var e = this._milliseconds, t = this._days, n = this._months, s = this._data, i, r, a, o, u;
|
|
4044
|
-
return e >= 0 && t >= 0 && n >= 0 || e <= 0 && t <= 0 && n <= 0 || (e +=
|
|
4011
|
+
return e >= 0 && t >= 0 && n >= 0 || e <= 0 && t <= 0 && n <= 0 || (e += Ln($t(n) + t) * 864e5, t = 0, n = 0), s.milliseconds = e % 1e3, i = W(e / 1e3), s.seconds = i % 60, r = W(i / 60), s.minutes = r % 60, a = W(r / 60), s.hours = a % 24, t += W(a / 24), u = W(ks(t)), n += u, t -= Ln($t(u)), o = W(n / 12), n %= 12, s.days = t, s.months = n, s.years = o, this;
|
|
4045
4012
|
}
|
|
4046
|
-
function
|
|
4013
|
+
function ks(e) {
|
|
4047
4014
|
return e * 4800 / 146097;
|
|
4048
4015
|
}
|
|
4049
|
-
function
|
|
4016
|
+
function $t(e) {
|
|
4050
4017
|
return e * 146097 / 4800;
|
|
4051
4018
|
}
|
|
4052
|
-
function
|
|
4019
|
+
function No(e) {
|
|
4053
4020
|
if (!this.isValid())
|
|
4054
4021
|
return NaN;
|
|
4055
4022
|
var t, n, s = this._milliseconds;
|
|
4056
|
-
if (e =
|
|
4057
|
-
switch (t = this._days + s / 864e5, n = this._months +
|
|
4023
|
+
if (e = G(e), e === "month" || e === "quarter" || e === "year")
|
|
4024
|
+
switch (t = this._days + s / 864e5, n = this._months + ks(t), e) {
|
|
4058
4025
|
case "month":
|
|
4059
4026
|
return n;
|
|
4060
4027
|
case "quarter":
|
|
@@ -4063,7 +4030,7 @@ function Yo(e) {
|
|
|
4063
4030
|
return n / 12;
|
|
4064
4031
|
}
|
|
4065
4032
|
else
|
|
4066
|
-
switch (t = this._days + Math.round(
|
|
4033
|
+
switch (t = this._days + Math.round($t(this._months)), e) {
|
|
4067
4034
|
case "week":
|
|
4068
4035
|
return t / 7 + s / 6048e5;
|
|
4069
4036
|
case "day":
|
|
@@ -4080,28 +4047,28 @@ function Yo(e) {
|
|
|
4080
4047
|
throw new Error("Unknown unit " + e);
|
|
4081
4048
|
}
|
|
4082
4049
|
}
|
|
4083
|
-
function
|
|
4050
|
+
function de(e) {
|
|
4084
4051
|
return function() {
|
|
4085
4052
|
return this.as(e);
|
|
4086
4053
|
};
|
|
4087
4054
|
}
|
|
4088
|
-
var
|
|
4089
|
-
function
|
|
4090
|
-
return
|
|
4055
|
+
var Os = de("ms"), Co = de("s"), Lo = de("m"), Ro = de("h"), Po = de("d"), To = de("w"), Eo = de("M"), Fo = de("Q"), Ao = de("y"), Io = Os;
|
|
4056
|
+
function jo() {
|
|
4057
|
+
return J(this);
|
|
4091
4058
|
}
|
|
4092
|
-
function
|
|
4093
|
-
return e =
|
|
4059
|
+
function Uo(e) {
|
|
4060
|
+
return e = G(e), this.isValid() ? this[e + "s"]() : NaN;
|
|
4094
4061
|
}
|
|
4095
|
-
function
|
|
4062
|
+
function ve(e) {
|
|
4096
4063
|
return function() {
|
|
4097
4064
|
return this.isValid() ? this._data[e] : NaN;
|
|
4098
4065
|
};
|
|
4099
4066
|
}
|
|
4100
|
-
var
|
|
4101
|
-
function
|
|
4102
|
-
return
|
|
4067
|
+
var Ho = ve("milliseconds"), $o = ve("seconds"), Wo = ve("minutes"), Vo = ve("hours"), Go = ve("days"), zo = ve("months"), Ko = ve("years");
|
|
4068
|
+
function Bo() {
|
|
4069
|
+
return W(this.days() / 7);
|
|
4103
4070
|
}
|
|
4104
|
-
var
|
|
4071
|
+
var se = Math.round, ke = {
|
|
4105
4072
|
ss: 44,
|
|
4106
4073
|
// a few seconds to seconds
|
|
4107
4074
|
s: 45,
|
|
@@ -4117,112 +4084,112 @@ var ne = Math.round, xe = {
|
|
|
4117
4084
|
M: 11
|
|
4118
4085
|
// months to year
|
|
4119
4086
|
};
|
|
4120
|
-
function
|
|
4087
|
+
function qo(e, t, n, s, i) {
|
|
4121
4088
|
return i.relativeTime(t || 1, !!n, e, s);
|
|
4122
4089
|
}
|
|
4123
|
-
function
|
|
4124
|
-
var i =
|
|
4125
|
-
return n.w != null && (d = d || h <= 1 && ["w"] || h < n.w && ["ww", h]), d = d || l <= 1 && ["M"] || l < n.M && ["MM", l] || f <= 1 && ["y"] || ["yy", f], d[2] = t, d[3] = +e > 0, d[4] = s,
|
|
4090
|
+
function Jo(e, t, n, s) {
|
|
4091
|
+
var i = J(e).abs(), r = se(i.as("s")), a = se(i.as("m")), o = se(i.as("h")), u = se(i.as("d")), l = se(i.as("M")), h = se(i.as("w")), f = se(i.as("y")), d = r <= n.ss && ["s", r] || r < n.s && ["ss", r] || a <= 1 && ["m"] || a < n.m && ["mm", a] || o <= 1 && ["h"] || o < n.h && ["hh", o] || u <= 1 && ["d"] || u < n.d && ["dd", u];
|
|
4092
|
+
return n.w != null && (d = d || h <= 1 && ["w"] || h < n.w && ["ww", h]), d = d || l <= 1 && ["M"] || l < n.M && ["MM", l] || f <= 1 && ["y"] || ["yy", f], d[2] = t, d[3] = +e > 0, d[4] = s, qo.apply(null, d);
|
|
4126
4093
|
}
|
|
4127
|
-
function
|
|
4128
|
-
return e === void 0 ?
|
|
4129
|
-
}
|
|
4130
|
-
function Zo(e, t) {
|
|
4131
|
-
return xe[e] === void 0 ? !1 : t === void 0 ? xe[e] : (xe[e] = t, e === "s" && (xe.ss = t - 1), !0);
|
|
4094
|
+
function Zo(e) {
|
|
4095
|
+
return e === void 0 ? se : typeof e == "function" ? (se = e, !0) : !1;
|
|
4132
4096
|
}
|
|
4133
4097
|
function Qo(e, t) {
|
|
4098
|
+
return ke[e] === void 0 ? !1 : t === void 0 ? ke[e] : (ke[e] = t, e === "s" && (ke.ss = t - 1), !0);
|
|
4099
|
+
}
|
|
4100
|
+
function Xo(e, t) {
|
|
4134
4101
|
if (!this.isValid())
|
|
4135
4102
|
return this.localeData().invalidDate();
|
|
4136
|
-
var n = !1, s =
|
|
4137
|
-
return typeof e == "object" && (t = e, e = !1), typeof e == "boolean" && (n = e), typeof t == "object" && (s = Object.assign({},
|
|
4103
|
+
var n = !1, s = ke, i, r;
|
|
4104
|
+
return typeof e == "object" && (t = e, e = !1), typeof e == "boolean" && (n = e), typeof t == "object" && (s = Object.assign({}, ke, t), t.s != null && t.ss == null && (s.ss = t.s - 1)), i = this.localeData(), r = Jo(this, !n, s, i), n && (r = i.pastFuture(+this, r)), i.postformat(r);
|
|
4138
4105
|
}
|
|
4139
|
-
var
|
|
4140
|
-
function
|
|
4106
|
+
var Pt = Math.abs;
|
|
4107
|
+
function be(e) {
|
|
4141
4108
|
return (e > 0) - (e < 0) || +e;
|
|
4142
4109
|
}
|
|
4143
|
-
function
|
|
4110
|
+
function kt() {
|
|
4144
4111
|
if (!this.isValid())
|
|
4145
4112
|
return this.localeData().invalidDate();
|
|
4146
|
-
var e =
|
|
4147
|
-
return o ? (s =
|
|
4148
|
-
}
|
|
4149
|
-
var
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4113
|
+
var e = Pt(this._milliseconds) / 1e3, t = Pt(this._days), n = Pt(this._months), s, i, r, a, o = this.asSeconds(), u, l, h, f;
|
|
4114
|
+
return o ? (s = W(e / 60), i = W(s / 60), e %= 60, s %= 60, r = W(n / 12), n %= 12, a = e ? e.toFixed(3).replace(/\.?0+$/, "") : "", u = o < 0 ? "-" : "", l = be(this._months) !== be(o) ? "-" : "", h = be(this._days) !== be(o) ? "-" : "", f = be(this._milliseconds) !== be(o) ? "-" : "", u + "P" + (r ? l + r + "Y" : "") + (n ? l + n + "M" : "") + (t ? h + t + "D" : "") + (i || s || e ? "T" : "") + (i ? f + i + "H" : "") + (s ? f + s + "M" : "") + (e ? f + a + "S" : "")) : "P0D";
|
|
4115
|
+
}
|
|
4116
|
+
var S = bt.prototype;
|
|
4117
|
+
S.isValid = Gr;
|
|
4118
|
+
S.abs = Oo;
|
|
4119
|
+
S.add = Mo;
|
|
4120
|
+
S.subtract = Do;
|
|
4121
|
+
S.as = No;
|
|
4122
|
+
S.asMilliseconds = Os;
|
|
4123
|
+
S.asSeconds = Co;
|
|
4124
|
+
S.asMinutes = Lo;
|
|
4125
|
+
S.asHours = Ro;
|
|
4126
|
+
S.asDays = Po;
|
|
4127
|
+
S.asWeeks = To;
|
|
4128
|
+
S.asMonths = Eo;
|
|
4129
|
+
S.asQuarters = Fo;
|
|
4130
|
+
S.asYears = Ao;
|
|
4131
|
+
S.valueOf = Io;
|
|
4132
|
+
S._bubble = Yo;
|
|
4133
|
+
S.clone = jo;
|
|
4134
|
+
S.get = Uo;
|
|
4135
|
+
S.milliseconds = Ho;
|
|
4136
|
+
S.seconds = $o;
|
|
4137
|
+
S.minutes = Wo;
|
|
4138
|
+
S.hours = Vo;
|
|
4139
|
+
S.days = Go;
|
|
4140
|
+
S.weeks = Bo;
|
|
4141
|
+
S.months = zo;
|
|
4142
|
+
S.years = Ko;
|
|
4143
|
+
S.humanize = Xo;
|
|
4144
|
+
S.toISOString = kt;
|
|
4145
|
+
S.toString = kt;
|
|
4146
|
+
S.toJSON = kt;
|
|
4147
|
+
S.locale = cs;
|
|
4148
|
+
S.localeData = gs;
|
|
4149
|
+
S.toIsoString = V(
|
|
4183
4150
|
"toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",
|
|
4184
|
-
|
|
4151
|
+
kt
|
|
4185
4152
|
);
|
|
4186
|
-
|
|
4153
|
+
S.lang = fs;
|
|
4187
4154
|
p("X", 0, 0, "unix");
|
|
4188
4155
|
p("x", 0, 0, "valueOf");
|
|
4189
|
-
m("x",
|
|
4190
|
-
m("X",
|
|
4191
|
-
|
|
4156
|
+
m("x", _t);
|
|
4157
|
+
m("X", vi);
|
|
4158
|
+
O("X", function(e, t, n) {
|
|
4192
4159
|
n._d = new Date(parseFloat(e) * 1e3);
|
|
4193
4160
|
});
|
|
4194
|
-
|
|
4195
|
-
n._d = new Date(
|
|
4161
|
+
O("x", function(e, t, n) {
|
|
4162
|
+
n._d = new Date(w(e));
|
|
4196
4163
|
});
|
|
4197
4164
|
//! moment.js
|
|
4198
4165
|
g.version = "2.30.1";
|
|
4199
|
-
|
|
4166
|
+
Xs(M);
|
|
4200
4167
|
g.fn = c;
|
|
4201
|
-
g.min =
|
|
4202
|
-
g.max =
|
|
4203
|
-
g.now =
|
|
4204
|
-
g.utc =
|
|
4205
|
-
g.unix =
|
|
4206
|
-
g.months =
|
|
4207
|
-
g.isDate =
|
|
4208
|
-
g.locale =
|
|
4209
|
-
g.invalid =
|
|
4210
|
-
g.duration =
|
|
4211
|
-
g.isMoment =
|
|
4212
|
-
g.weekdays =
|
|
4213
|
-
g.parseZone =
|
|
4214
|
-
g.localeData =
|
|
4215
|
-
g.isDuration =
|
|
4216
|
-
g.monthsShort =
|
|
4217
|
-
g.weekdaysMin =
|
|
4218
|
-
g.defineLocale =
|
|
4219
|
-
g.updateLocale =
|
|
4220
|
-
g.locales =
|
|
4221
|
-
g.weekdaysShort =
|
|
4222
|
-
g.normalizeUnits =
|
|
4223
|
-
g.relativeTimeRounding =
|
|
4224
|
-
g.relativeTimeThreshold =
|
|
4225
|
-
g.calendarFormat =
|
|
4168
|
+
g.min = Hr;
|
|
4169
|
+
g.max = $r;
|
|
4170
|
+
g.now = Wr;
|
|
4171
|
+
g.utc = ee;
|
|
4172
|
+
g.unix = _o;
|
|
4173
|
+
g.months = wo;
|
|
4174
|
+
g.isDate = ze;
|
|
4175
|
+
g.locale = fe;
|
|
4176
|
+
g.invalid = gt;
|
|
4177
|
+
g.duration = J;
|
|
4178
|
+
g.isMoment = q;
|
|
4179
|
+
g.weekdays = bo;
|
|
4180
|
+
g.parseZone = vo;
|
|
4181
|
+
g.localeData = le;
|
|
4182
|
+
g.isDuration = nt;
|
|
4183
|
+
g.monthsShort = So;
|
|
4184
|
+
g.weekdaysMin = ko;
|
|
4185
|
+
g.defineLocale = nn;
|
|
4186
|
+
g.updateLocale = _r;
|
|
4187
|
+
g.locales = vr;
|
|
4188
|
+
g.weekdaysShort = xo;
|
|
4189
|
+
g.normalizeUnits = G;
|
|
4190
|
+
g.relativeTimeRounding = Zo;
|
|
4191
|
+
g.relativeTimeThreshold = Qo;
|
|
4192
|
+
g.calendarFormat = ga;
|
|
4226
4193
|
g.prototype = c;
|
|
4227
4194
|
g.HTML5_FMT = {
|
|
4228
4195
|
DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
|
|
@@ -4244,7 +4211,7 @@ g.HTML5_FMT = {
|
|
|
4244
4211
|
MONTH: "YYYY-MM"
|
|
4245
4212
|
// <input type="month" />
|
|
4246
4213
|
};
|
|
4247
|
-
const
|
|
4214
|
+
const eu = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i, tu = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i, Rn = /(janv\.?|févr\.?|avr\.?|juil\.?|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i, Tt = [
|
|
4248
4215
|
/^janv/i,
|
|
4249
4216
|
/^févr/i,
|
|
4250
4217
|
/^mars/i,
|
|
@@ -4257,18 +4224,18 @@ const Xo = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octob
|
|
|
4257
4224
|
/^oct/i,
|
|
4258
4225
|
/^nov/i,
|
|
4259
4226
|
/^déc/i
|
|
4260
|
-
],
|
|
4227
|
+
], nu = {
|
|
4261
4228
|
months: "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split(
|
|
4262
4229
|
"_"
|
|
4263
4230
|
),
|
|
4264
4231
|
monthsShort: "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),
|
|
4265
|
-
monthsRegex:
|
|
4266
|
-
monthsShortRegex:
|
|
4267
|
-
monthsStrictRegex:
|
|
4268
|
-
monthsShortStrictRegex:
|
|
4269
|
-
monthsParse:
|
|
4270
|
-
longMonthsParse:
|
|
4271
|
-
shortMonthsParse:
|
|
4232
|
+
monthsRegex: Rn,
|
|
4233
|
+
monthsShortRegex: Rn,
|
|
4234
|
+
monthsStrictRegex: eu,
|
|
4235
|
+
monthsShortStrictRegex: tu,
|
|
4236
|
+
monthsParse: Tt,
|
|
4237
|
+
longMonthsParse: Tt,
|
|
4238
|
+
shortMonthsParse: Tt,
|
|
4272
4239
|
weekdays: "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),
|
|
4273
4240
|
weekdaysShort: "dim._lun._mar._mer._jeu._ven._sam.".split("_"),
|
|
4274
4241
|
weekdaysMin: "di_lu_ma_me_je_ve_sa".split("_"),
|
|
@@ -4328,23 +4295,23 @@ const Xo = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octob
|
|
|
4328
4295
|
doy: 4
|
|
4329
4296
|
}
|
|
4330
4297
|
};
|
|
4331
|
-
g.locale("fr",
|
|
4332
|
-
const
|
|
4298
|
+
g.locale("fr", nu);
|
|
4299
|
+
const su = (e) => Math.round(5e3 * Math.pow(200, 0.01 * e) / 10) * 10, Ms = (e) => e >= 1 ? Ms(e - 1) + su(e) : 0, iu = (e, t = 0) => e < Ms(t + 1) ? t : iu(e, t + 1), pu = ([e, t]) => t ? `${Dt("xp.user", { amount: Nt(e), emoji: Yt.xp })} ${Dt("xp.crew", { amount: Nt(t), emoji: Yt.xp })}` : Dt("xp.user", { amount: Nt(e), emoji: Yt.xp });
|
|
4333
4300
|
export {
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4301
|
+
ou as CHARACTERISTICS,
|
|
4302
|
+
Ns as CHARACTERISTIC_DEFAULT_POINT_COST,
|
|
4303
|
+
lu as CHARACTERISTIC_POINT_COSTS,
|
|
4304
|
+
uu as CHARACTERISTIC_POINT_PER_LEVEL,
|
|
4305
|
+
fu as DEFAULT_FACTION,
|
|
4306
|
+
du as DEFAULT_MAX_HP,
|
|
4307
|
+
cu as FACTIONS,
|
|
4308
|
+
hu as HP_PER_VITALITY,
|
|
4309
|
+
au as RANKS,
|
|
4310
|
+
pe as RankId,
|
|
4311
|
+
gu as SORT_VALUES,
|
|
4312
|
+
pu as displayXp,
|
|
4313
|
+
iu as getCurrentLevel,
|
|
4314
|
+
mu as getNewSortValue,
|
|
4315
|
+
Ms as totalXpToLevel,
|
|
4316
|
+
su as xpToLevel
|
|
4350
4317
|
};
|