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