@linagora/linid-im-front-corelib 0.0.55 → 0.0.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core-lib.es.js +533 -533
- package/dist/core-lib.umd.js +11 -11
- package/dist/package.json +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/types/src/composables/useFieldValidation.d.ts +3 -4
- package/dist/types/src/composables/useQuasarFieldValidation.d.ts +1 -1
- package/package.json +1 -1
package/dist/core-lib.es.js
CHANGED
|
@@ -94,11 +94,11 @@ function Cr(e, t, n, r) {
|
|
|
94
94
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
95
95
|
Sr(Qt(s ? s() : {}).value)
|
|
96
96
|
) : Sr(n.state.value[e]);
|
|
97
|
-
return _e(f, o, Object.keys(i || {}).reduce((
|
|
97
|
+
return _e(f, o, Object.keys(i || {}).reduce((p, m) => (process.env.NODE_ENV !== "production" && m in f && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${m}" in store "${e}".`), p[m] = mt(Ue(() => {
|
|
98
98
|
Bt(n);
|
|
99
|
-
const
|
|
100
|
-
return i[
|
|
101
|
-
})),
|
|
99
|
+
const L = n._s.get(e);
|
|
100
|
+
return i[m].call(L, L);
|
|
101
|
+
})), p), {}));
|
|
102
102
|
}
|
|
103
103
|
return c = Un(e, u, t, n, r, !0), c;
|
|
104
104
|
}
|
|
@@ -109,29 +109,29 @@ function Un(e, t, n = {}, r, s, o) {
|
|
|
109
109
|
throw new Error("Pinia destroyed");
|
|
110
110
|
const c = { deep: !0 };
|
|
111
111
|
process.env.NODE_ENV !== "production" && (c.onTrigger = (I) => {
|
|
112
|
-
u ?
|
|
112
|
+
u ? L = I : u == !1 && !h._hotUpdating && (Array.isArray(L) ? L.push(I) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
113
113
|
});
|
|
114
|
-
let u, f,
|
|
115
|
-
const
|
|
116
|
-
!o && !
|
|
114
|
+
let u, f, p = /* @__PURE__ */ new Set(), m = /* @__PURE__ */ new Set(), L;
|
|
115
|
+
const E = r.state.value[e];
|
|
116
|
+
!o && !E && (process.env.NODE_ENV === "production" || !s) && (r.state.value[e] = {});
|
|
117
117
|
const b = Qt({});
|
|
118
118
|
let N;
|
|
119
119
|
function _(I) {
|
|
120
120
|
let P;
|
|
121
|
-
u = f = !1, process.env.NODE_ENV !== "production" && (
|
|
121
|
+
u = f = !1, process.env.NODE_ENV !== "production" && (L = []), typeof I == "function" ? (I(r.state.value[e]), P = {
|
|
122
122
|
type: _t.patchFunction,
|
|
123
123
|
storeId: e,
|
|
124
|
-
events:
|
|
124
|
+
events: L
|
|
125
125
|
}) : (Fn(r.state.value[e], I), P = {
|
|
126
126
|
type: _t.patchObject,
|
|
127
127
|
payload: I,
|
|
128
128
|
storeId: e,
|
|
129
|
-
events:
|
|
129
|
+
events: L
|
|
130
130
|
});
|
|
131
131
|
const k = N = /* @__PURE__ */ Symbol();
|
|
132
132
|
Or().then(() => {
|
|
133
133
|
N === k && (u = !0);
|
|
134
|
-
}), f = !0, ze(
|
|
134
|
+
}), f = !0, ze(p, P, r.state.value[e]);
|
|
135
135
|
}
|
|
136
136
|
const O = o ? function() {
|
|
137
137
|
const { state: P } = n, k = P ? P() : {};
|
|
@@ -144,8 +144,8 @@ function Un(e, t, n = {}, r, s, o) {
|
|
|
144
144
|
throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
|
|
145
145
|
} : Ds
|
|
146
146
|
);
|
|
147
|
-
function
|
|
148
|
-
i.stop(),
|
|
147
|
+
function T() {
|
|
148
|
+
i.stop(), p.clear(), m.clear(), r._s.delete(e);
|
|
149
149
|
}
|
|
150
150
|
const y = (I, P = "") => {
|
|
151
151
|
if (Rr in I)
|
|
@@ -159,7 +159,7 @@ function Un(e, t, n = {}, r, s, o) {
|
|
|
159
159
|
function ke(Z) {
|
|
160
160
|
Ne.add(Z);
|
|
161
161
|
}
|
|
162
|
-
ze(
|
|
162
|
+
ze(m, {
|
|
163
163
|
args: q,
|
|
164
164
|
name: k[On],
|
|
165
165
|
store: h,
|
|
@@ -184,20 +184,20 @@ function Un(e, t, n = {}, r, s, o) {
|
|
|
184
184
|
_p: r,
|
|
185
185
|
// _s: scope,
|
|
186
186
|
$id: e,
|
|
187
|
-
$onAction: Lr.bind(null,
|
|
187
|
+
$onAction: Lr.bind(null, m),
|
|
188
188
|
$patch: _,
|
|
189
189
|
$reset: O,
|
|
190
190
|
$subscribe(I, P = {}) {
|
|
191
|
-
const k = Lr(
|
|
191
|
+
const k = Lr(p, I, P.detached, () => q()), q = i.run(() => Dn(() => r.state.value[e], (se) => {
|
|
192
192
|
(P.flush === "sync" ? f : u) && I({
|
|
193
193
|
storeId: e,
|
|
194
194
|
type: _t.direct,
|
|
195
|
-
events:
|
|
195
|
+
events: L
|
|
196
196
|
}, se);
|
|
197
197
|
}, _e({}, c, P)));
|
|
198
198
|
return k;
|
|
199
199
|
},
|
|
200
|
-
$dispose:
|
|
200
|
+
$dispose: T
|
|
201
201
|
}, h = jo(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && tt ? _e(
|
|
202
202
|
{
|
|
203
203
|
_hmrPayload: v,
|
|
@@ -213,7 +213,7 @@ function Un(e, t, n = {}, r, s, o) {
|
|
|
213
213
|
for (const I in M) {
|
|
214
214
|
const P = M[I];
|
|
215
215
|
if (ht(P) && !vr(P) || ir(P))
|
|
216
|
-
process.env.NODE_ENV !== "production" && s ? b.value[I] = yn(M, I) : o || (
|
|
216
|
+
process.env.NODE_ENV !== "production" && s ? b.value[I] = yn(M, I) : o || (E && ii(P) && (ht(P) ? P.value = E[I] : Fn(P, E[I])), r.state.value[e][I] = P), process.env.NODE_ENV !== "production" && v.state.push(I);
|
|
217
217
|
else if (typeof P == "function") {
|
|
218
218
|
const k = process.env.NODE_ENV !== "production" && s ? P : y(P, I);
|
|
219
219
|
M[I] = k, process.env.NODE_ENV !== "production" && (v.actions[I] = P), a.actions[I] = P;
|
|
@@ -291,7 +291,7 @@ function Un(e, t, n = {}, r, s, o) {
|
|
|
291
291
|
})));
|
|
292
292
|
}), process.env.NODE_ENV !== "production" && h.$state && typeof h.$state == "object" && typeof h.$state.constructor == "function" && !h.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
293
293
|
state: () => new MyClass()
|
|
294
|
-
Found in store "${h.$id}".`),
|
|
294
|
+
Found in store "${h.$id}".`), E && o && n.hydrate && n.hydrate(h.$state, E), u = !0, f = !0, h;
|
|
295
295
|
}
|
|
296
296
|
// @__NO_SIDE_EFFECTS__
|
|
297
297
|
function Zt(e, t, n) {
|
|
@@ -309,15 +309,15 @@ This will fail in production.`);
|
|
|
309
309
|
i = qe, i._s.has(e) || (s ? Un(e, t, r, i) : Cr(e, r, i), process.env.NODE_ENV !== "production" && (o._pinia = i));
|
|
310
310
|
const u = i._s.get(e);
|
|
311
311
|
if (process.env.NODE_ENV !== "production" && a) {
|
|
312
|
-
const f = "__hot:" + e,
|
|
313
|
-
a._hotUpdate(
|
|
312
|
+
const f = "__hot:" + e, p = s ? Un(f, t, r, i, !0) : Cr(f, _e({}, r), i, !0);
|
|
313
|
+
a._hotUpdate(p), delete i.state.value[f], i._s.delete(f);
|
|
314
314
|
}
|
|
315
315
|
if (process.env.NODE_ENV !== "production" && tt) {
|
|
316
316
|
const f = Bo();
|
|
317
317
|
if (f && f.proxy && // avoid adding stores that are just built for hot module replacement
|
|
318
318
|
!a) {
|
|
319
|
-
const
|
|
320
|
-
|
|
319
|
+
const p = f.proxy, m = "_pStores" in p ? p._pStores : p._pStores = {};
|
|
320
|
+
m[e] = u;
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
323
|
return u;
|
|
@@ -491,14 +491,14 @@ var nn = (function() {
|
|
|
491
491
|
} catch (b) {
|
|
492
492
|
o = b instanceof Sn ? b.errors : [b];
|
|
493
493
|
}
|
|
494
|
-
var
|
|
495
|
-
if (
|
|
494
|
+
var p = this._finalizers;
|
|
495
|
+
if (p) {
|
|
496
496
|
this._finalizers = null;
|
|
497
497
|
try {
|
|
498
|
-
for (var
|
|
499
|
-
var
|
|
498
|
+
for (var m = xn(p), L = m.next(); !L.done; L = m.next()) {
|
|
499
|
+
var E = L.value;
|
|
500
500
|
try {
|
|
501
|
-
Ir(
|
|
501
|
+
Ir(E);
|
|
502
502
|
} catch (b) {
|
|
503
503
|
o = o ?? [], b instanceof Sn ? o = $n($n([], Vn(o)), Vn(b.errors)) : o.push(b);
|
|
504
504
|
}
|
|
@@ -507,7 +507,7 @@ var nn = (function() {
|
|
|
507
507
|
r = { error: b };
|
|
508
508
|
} finally {
|
|
509
509
|
try {
|
|
510
|
-
|
|
510
|
+
L && !L.done && (s = m.return) && s.call(m);
|
|
511
511
|
} finally {
|
|
512
512
|
if (r) throw r.error;
|
|
513
513
|
}
|
|
@@ -1072,7 +1072,7 @@ const sa = (e) => {
|
|
|
1072
1072
|
!1
|
|
1073
1073
|
), (s) => {
|
|
1074
1074
|
r.push(s), We.postMessage(n, "*");
|
|
1075
|
-
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", ue(We.postMessage)), aa = typeof queueMicrotask < "u" ? queueMicrotask.bind(We) : typeof process < "u" && process.nextTick || Ys, ca = (e) => e != null && ue(e[rn]),
|
|
1075
|
+
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", ue(We.postMessage)), aa = typeof queueMicrotask < "u" ? queueMicrotask.bind(We) : typeof process < "u" && process.nextTick || Ys, ca = (e) => e != null && ue(e[rn]), g = {
|
|
1076
1076
|
isArray: it,
|
|
1077
1077
|
isArrayBuffer: js,
|
|
1078
1078
|
isBuffer: Nt,
|
|
@@ -1172,7 +1172,7 @@ let U = class Ks extends Error {
|
|
|
1172
1172
|
columnNumber: this.columnNumber,
|
|
1173
1173
|
stack: this.stack,
|
|
1174
1174
|
// Axios
|
|
1175
|
-
config:
|
|
1175
|
+
config: g.toJSONObject(this.config),
|
|
1176
1176
|
code: this.code,
|
|
1177
1177
|
status: this.status
|
|
1178
1178
|
};
|
|
@@ -1192,10 +1192,10 @@ U.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
|
1192
1192
|
U.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
1193
1193
|
const la = null;
|
|
1194
1194
|
function qn(e) {
|
|
1195
|
-
return
|
|
1195
|
+
return g.isPlainObject(e) || g.isArray(e);
|
|
1196
1196
|
}
|
|
1197
1197
|
function Xs(e) {
|
|
1198
|
-
return
|
|
1198
|
+
return g.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
1199
1199
|
}
|
|
1200
1200
|
function Tn(e, t, n) {
|
|
1201
1201
|
return e ? e.concat(t).map(function(s, o) {
|
|
@@ -1203,15 +1203,15 @@ function Tn(e, t, n) {
|
|
|
1203
1203
|
}).join(n ? "." : "") : t;
|
|
1204
1204
|
}
|
|
1205
1205
|
function ua(e) {
|
|
1206
|
-
return
|
|
1206
|
+
return g.isArray(e) && !e.some(qn);
|
|
1207
1207
|
}
|
|
1208
|
-
const fa =
|
|
1208
|
+
const fa = g.toFlatObject(g, {}, null, function(t) {
|
|
1209
1209
|
return /^is[A-Z]/.test(t);
|
|
1210
1210
|
});
|
|
1211
1211
|
function an(e, t, n) {
|
|
1212
|
-
if (!
|
|
1212
|
+
if (!g.isObject(e))
|
|
1213
1213
|
throw new TypeError("target must be an object");
|
|
1214
|
-
t = t || new FormData(), n =
|
|
1214
|
+
t = t || new FormData(), n = g.toFlatObject(
|
|
1215
1215
|
n,
|
|
1216
1216
|
{
|
|
1217
1217
|
metaTokens: !0,
|
|
@@ -1220,57 +1220,57 @@ function an(e, t, n) {
|
|
|
1220
1220
|
},
|
|
1221
1221
|
!1,
|
|
1222
1222
|
function(b, N) {
|
|
1223
|
-
return !
|
|
1223
|
+
return !g.isUndefined(N[b]);
|
|
1224
1224
|
}
|
|
1225
1225
|
);
|
|
1226
|
-
const r = n.metaTokens, s = n.visitor || f, o = n.dots, i = n.indexes, c = (n.Blob || typeof Blob < "u" && Blob) &&
|
|
1227
|
-
if (!
|
|
1226
|
+
const r = n.metaTokens, s = n.visitor || f, o = n.dots, i = n.indexes, c = (n.Blob || typeof Blob < "u" && Blob) && g.isSpecCompliantForm(t);
|
|
1227
|
+
if (!g.isFunction(s))
|
|
1228
1228
|
throw new TypeError("visitor must be a function");
|
|
1229
|
-
function u(
|
|
1230
|
-
if (
|
|
1231
|
-
if (
|
|
1232
|
-
return
|
|
1233
|
-
if (
|
|
1234
|
-
return
|
|
1235
|
-
if (!c &&
|
|
1229
|
+
function u(E) {
|
|
1230
|
+
if (E === null) return "";
|
|
1231
|
+
if (g.isDate(E))
|
|
1232
|
+
return E.toISOString();
|
|
1233
|
+
if (g.isBoolean(E))
|
|
1234
|
+
return E.toString();
|
|
1235
|
+
if (!c && g.isBlob(E))
|
|
1236
1236
|
throw new U("Blob is not supported. Use a Buffer instead.");
|
|
1237
|
-
return
|
|
1238
|
-
}
|
|
1239
|
-
function f(
|
|
1240
|
-
let _ =
|
|
1241
|
-
if (
|
|
1242
|
-
return t.append(Tn(N, b, o), u(
|
|
1243
|
-
if (
|
|
1244
|
-
if (
|
|
1245
|
-
b = r ? b : b.slice(0, -2),
|
|
1246
|
-
else if (
|
|
1247
|
-
return b = Xs(b), _.forEach(function(
|
|
1248
|
-
!(
|
|
1237
|
+
return g.isArrayBuffer(E) || g.isTypedArray(E) ? c && typeof Blob == "function" ? new Blob([E]) : Buffer.from(E) : E;
|
|
1238
|
+
}
|
|
1239
|
+
function f(E, b, N) {
|
|
1240
|
+
let _ = E;
|
|
1241
|
+
if (g.isReactNative(t) && g.isReactNativeBlob(E))
|
|
1242
|
+
return t.append(Tn(N, b, o), u(E)), !1;
|
|
1243
|
+
if (E && !N && typeof E == "object") {
|
|
1244
|
+
if (g.endsWith(b, "{}"))
|
|
1245
|
+
b = r ? b : b.slice(0, -2), E = JSON.stringify(E);
|
|
1246
|
+
else if (g.isArray(E) && ua(E) || (g.isFileList(E) || g.endsWith(b, "[]")) && (_ = g.toArray(E)))
|
|
1247
|
+
return b = Xs(b), _.forEach(function(T, y) {
|
|
1248
|
+
!(g.isUndefined(T) || T === null) && t.append(
|
|
1249
1249
|
// eslint-disable-next-line no-nested-ternary
|
|
1250
1250
|
i === !0 ? Tn([b], y, o) : i === null ? b : b + "[]",
|
|
1251
|
-
u(
|
|
1251
|
+
u(T)
|
|
1252
1252
|
);
|
|
1253
1253
|
}), !1;
|
|
1254
1254
|
}
|
|
1255
|
-
return qn(
|
|
1255
|
+
return qn(E) ? !0 : (t.append(Tn(N, b, o), u(E)), !1);
|
|
1256
1256
|
}
|
|
1257
|
-
const
|
|
1257
|
+
const p = [], m = Object.assign(fa, {
|
|
1258
1258
|
defaultVisitor: f,
|
|
1259
1259
|
convertValue: u,
|
|
1260
1260
|
isVisitable: qn
|
|
1261
1261
|
});
|
|
1262
|
-
function
|
|
1263
|
-
if (!
|
|
1264
|
-
if (
|
|
1262
|
+
function L(E, b) {
|
|
1263
|
+
if (!g.isUndefined(E)) {
|
|
1264
|
+
if (p.indexOf(E) !== -1)
|
|
1265
1265
|
throw Error("Circular reference detected in " + b.join("."));
|
|
1266
|
-
|
|
1267
|
-
(!(
|
|
1268
|
-
}),
|
|
1266
|
+
p.push(E), g.forEach(E, function(_, O) {
|
|
1267
|
+
(!(g.isUndefined(_) || _ === null) && s.call(t, _, g.isString(O) ? O.trim() : O, b, m)) === !0 && L(_, b ? b.concat(O) : [O]);
|
|
1268
|
+
}), p.pop();
|
|
1269
1269
|
}
|
|
1270
1270
|
}
|
|
1271
|
-
if (!
|
|
1271
|
+
if (!g.isObject(e))
|
|
1272
1272
|
throw new TypeError("data must be an object");
|
|
1273
|
-
return
|
|
1273
|
+
return L(e), t;
|
|
1274
1274
|
}
|
|
1275
1275
|
function xr(e) {
|
|
1276
1276
|
const t = {
|
|
@@ -1307,11 +1307,11 @@ function da(e) {
|
|
|
1307
1307
|
function Qs(e, t, n) {
|
|
1308
1308
|
if (!t)
|
|
1309
1309
|
return e;
|
|
1310
|
-
const r = n && n.encode || da, s =
|
|
1310
|
+
const r = n && n.encode || da, s = g.isFunction(n) ? {
|
|
1311
1311
|
serialize: n
|
|
1312
1312
|
} : n, o = s && s.serialize;
|
|
1313
1313
|
let i;
|
|
1314
|
-
if (o ? i = o(t, s) : i =
|
|
1314
|
+
if (o ? i = o(t, s) : i = g.isURLSearchParams(t) ? t.toString() : new cr(t, s).toString(r), i) {
|
|
1315
1315
|
const a = e.indexOf("#");
|
|
1316
1316
|
a !== -1 && (e = e.slice(0, a)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
|
|
1317
1317
|
}
|
|
@@ -1367,7 +1367,7 @@ class Vr {
|
|
|
1367
1367
|
* @returns {void}
|
|
1368
1368
|
*/
|
|
1369
1369
|
forEach(t) {
|
|
1370
|
-
|
|
1370
|
+
g.forEach(this.handlers, function(r) {
|
|
1371
1371
|
r !== null && t(r);
|
|
1372
1372
|
});
|
|
1373
1373
|
}
|
|
@@ -1400,13 +1400,13 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", ba
|
|
|
1400
1400
|
function Na(e, t) {
|
|
1401
1401
|
return an(e, new ce.classes.URLSearchParams(), {
|
|
1402
1402
|
visitor: function(n, r, s, o) {
|
|
1403
|
-
return ce.isNode &&
|
|
1403
|
+
return ce.isNode && g.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
1404
1404
|
},
|
|
1405
1405
|
...t
|
|
1406
1406
|
});
|
|
1407
1407
|
}
|
|
1408
1408
|
function Oa(e) {
|
|
1409
|
-
return
|
|
1409
|
+
return g.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
1410
1410
|
}
|
|
1411
1411
|
function Sa(e) {
|
|
1412
1412
|
const t = {}, n = Object.keys(e);
|
|
@@ -1422,20 +1422,20 @@ function zs(e) {
|
|
|
1422
1422
|
let i = n[o++];
|
|
1423
1423
|
if (i === "__proto__") return !0;
|
|
1424
1424
|
const a = Number.isFinite(+i), c = o >= n.length;
|
|
1425
|
-
return i = !i &&
|
|
1425
|
+
return i = !i && g.isArray(s) ? s.length : i, c ? (g.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !a) : ((!s[i] || !g.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && g.isArray(s[i]) && (s[i] = Sa(s[i])), !a);
|
|
1426
1426
|
}
|
|
1427
|
-
if (
|
|
1427
|
+
if (g.isFormData(e) && g.isFunction(e.entries)) {
|
|
1428
1428
|
const n = {};
|
|
1429
|
-
return
|
|
1429
|
+
return g.forEachEntry(e, (r, s) => {
|
|
1430
1430
|
t(Oa(r), s, n, 0);
|
|
1431
1431
|
}), n;
|
|
1432
1432
|
}
|
|
1433
1433
|
return null;
|
|
1434
1434
|
}
|
|
1435
1435
|
function Ta(e, t, n) {
|
|
1436
|
-
if (
|
|
1436
|
+
if (g.isString(e))
|
|
1437
1437
|
try {
|
|
1438
|
-
return (t || JSON.parse)(e),
|
|
1438
|
+
return (t || JSON.parse)(e), g.trim(e);
|
|
1439
1439
|
} catch (r) {
|
|
1440
1440
|
if (r.name !== "SyntaxError")
|
|
1441
1441
|
throw r;
|
|
@@ -1447,20 +1447,20 @@ const Tt = {
|
|
|
1447
1447
|
adapter: ["xhr", "http", "fetch"],
|
|
1448
1448
|
transformRequest: [
|
|
1449
1449
|
function(t, n) {
|
|
1450
|
-
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o =
|
|
1451
|
-
if (o &&
|
|
1450
|
+
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = g.isObject(t);
|
|
1451
|
+
if (o && g.isHTMLForm(t) && (t = new FormData(t)), g.isFormData(t))
|
|
1452
1452
|
return s ? JSON.stringify(zs(t)) : t;
|
|
1453
|
-
if (
|
|
1453
|
+
if (g.isArrayBuffer(t) || g.isBuffer(t) || g.isStream(t) || g.isFile(t) || g.isBlob(t) || g.isReadableStream(t))
|
|
1454
1454
|
return t;
|
|
1455
|
-
if (
|
|
1455
|
+
if (g.isArrayBufferView(t))
|
|
1456
1456
|
return t.buffer;
|
|
1457
|
-
if (
|
|
1457
|
+
if (g.isURLSearchParams(t))
|
|
1458
1458
|
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
1459
1459
|
let a;
|
|
1460
1460
|
if (o) {
|
|
1461
1461
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
1462
1462
|
return Na(t, this.formSerializer).toString();
|
|
1463
|
-
if ((a =
|
|
1463
|
+
if ((a = g.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
1464
1464
|
const c = this.env && this.env.FormData;
|
|
1465
1465
|
return an(
|
|
1466
1466
|
a ? { "files[]": t } : t,
|
|
@@ -1475,9 +1475,9 @@ const Tt = {
|
|
|
1475
1475
|
transformResponse: [
|
|
1476
1476
|
function(t) {
|
|
1477
1477
|
const n = this.transitional || Tt.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
1478
|
-
if (
|
|
1478
|
+
if (g.isResponse(t) || g.isReadableStream(t))
|
|
1479
1479
|
return t;
|
|
1480
|
-
if (t &&
|
|
1480
|
+
if (t && g.isString(t) && (r && !this.responseType || s)) {
|
|
1481
1481
|
const i = !(n && n.silentJSONParsing) && s;
|
|
1482
1482
|
try {
|
|
1483
1483
|
return JSON.parse(t, this.parseReviver);
|
|
@@ -1512,10 +1512,10 @@ const Tt = {
|
|
|
1512
1512
|
}
|
|
1513
1513
|
}
|
|
1514
1514
|
};
|
|
1515
|
-
|
|
1515
|
+
g.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
1516
1516
|
Tt.headers[e] = {};
|
|
1517
1517
|
});
|
|
1518
|
-
const Aa =
|
|
1518
|
+
const Aa = g.toObjectSet([
|
|
1519
1519
|
"age",
|
|
1520
1520
|
"authorization",
|
|
1521
1521
|
"content-length",
|
|
@@ -1545,7 +1545,7 @@ function dt(e) {
|
|
|
1545
1545
|
return e && String(e).trim().toLowerCase();
|
|
1546
1546
|
}
|
|
1547
1547
|
function Ft(e) {
|
|
1548
|
-
return e === !1 || e == null ? e :
|
|
1548
|
+
return e === !1 || e == null ? e : g.isArray(e) ? e.map(Ft) : String(e);
|
|
1549
1549
|
}
|
|
1550
1550
|
function Ra(e) {
|
|
1551
1551
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -1556,12 +1556,12 @@ function Ra(e) {
|
|
|
1556
1556
|
}
|
|
1557
1557
|
const va = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
1558
1558
|
function An(e, t, n, r, s) {
|
|
1559
|
-
if (
|
|
1559
|
+
if (g.isFunction(r))
|
|
1560
1560
|
return r.call(this, t, n);
|
|
1561
|
-
if (s && (t = n), !!
|
|
1562
|
-
if (
|
|
1561
|
+
if (s && (t = n), !!g.isString(t)) {
|
|
1562
|
+
if (g.isString(r))
|
|
1563
1563
|
return t.indexOf(r) !== -1;
|
|
1564
|
-
if (
|
|
1564
|
+
if (g.isRegExp(r))
|
|
1565
1565
|
return r.test(t);
|
|
1566
1566
|
}
|
|
1567
1567
|
}
|
|
@@ -1569,7 +1569,7 @@ function Ca(e) {
|
|
|
1569
1569
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
1570
1570
|
}
|
|
1571
1571
|
function Ia(e, t) {
|
|
1572
|
-
const n =
|
|
1572
|
+
const n = g.toCamelCase(" " + t);
|
|
1573
1573
|
["get", "set", "has"].forEach((r) => {
|
|
1574
1574
|
Object.defineProperty(e, r + n, {
|
|
1575
1575
|
value: function(s, o, i) {
|
|
@@ -1589,20 +1589,20 @@ let fe = class {
|
|
|
1589
1589
|
const f = dt(c);
|
|
1590
1590
|
if (!f)
|
|
1591
1591
|
throw new Error("header name must be a non-empty string");
|
|
1592
|
-
const
|
|
1593
|
-
(!
|
|
1592
|
+
const p = g.findKey(s, f);
|
|
1593
|
+
(!p || s[p] === void 0 || u === !0 || u === void 0 && s[p] !== !1) && (s[p || c] = Ft(a));
|
|
1594
1594
|
}
|
|
1595
|
-
const i = (a, c) =>
|
|
1596
|
-
if (
|
|
1595
|
+
const i = (a, c) => g.forEach(a, (u, f) => o(u, f, c));
|
|
1596
|
+
if (g.isPlainObject(t) || t instanceof this.constructor)
|
|
1597
1597
|
i(t, n);
|
|
1598
|
-
else if (
|
|
1598
|
+
else if (g.isString(t) && (t = t.trim()) && !va(t))
|
|
1599
1599
|
i(La(t), n);
|
|
1600
|
-
else if (
|
|
1600
|
+
else if (g.isObject(t) && g.isIterable(t)) {
|
|
1601
1601
|
let a = {}, c, u;
|
|
1602
1602
|
for (const f of t) {
|
|
1603
|
-
if (!
|
|
1603
|
+
if (!g.isArray(f))
|
|
1604
1604
|
throw TypeError("Object iterator must return a key-value pair");
|
|
1605
|
-
a[u = f[0]] = (c = a[u]) ?
|
|
1605
|
+
a[u = f[0]] = (c = a[u]) ? g.isArray(c) ? [...c, f[1]] : [c, f[1]] : f[1];
|
|
1606
1606
|
}
|
|
1607
1607
|
i(a, n);
|
|
1608
1608
|
} else
|
|
@@ -1611,16 +1611,16 @@ let fe = class {
|
|
|
1611
1611
|
}
|
|
1612
1612
|
get(t, n) {
|
|
1613
1613
|
if (t = dt(t), t) {
|
|
1614
|
-
const r =
|
|
1614
|
+
const r = g.findKey(this, t);
|
|
1615
1615
|
if (r) {
|
|
1616
1616
|
const s = this[r];
|
|
1617
1617
|
if (!n)
|
|
1618
1618
|
return s;
|
|
1619
1619
|
if (n === !0)
|
|
1620
1620
|
return Ra(s);
|
|
1621
|
-
if (
|
|
1621
|
+
if (g.isFunction(n))
|
|
1622
1622
|
return n.call(this, s, r);
|
|
1623
|
-
if (
|
|
1623
|
+
if (g.isRegExp(n))
|
|
1624
1624
|
return n.exec(s);
|
|
1625
1625
|
throw new TypeError("parser must be boolean|regexp|function");
|
|
1626
1626
|
}
|
|
@@ -1628,7 +1628,7 @@ let fe = class {
|
|
|
1628
1628
|
}
|
|
1629
1629
|
has(t, n) {
|
|
1630
1630
|
if (t = dt(t), t) {
|
|
1631
|
-
const r =
|
|
1631
|
+
const r = g.findKey(this, t);
|
|
1632
1632
|
return !!(r && this[r] !== void 0 && (!n || An(this, this[r], r, n)));
|
|
1633
1633
|
}
|
|
1634
1634
|
return !1;
|
|
@@ -1638,11 +1638,11 @@ let fe = class {
|
|
|
1638
1638
|
let s = !1;
|
|
1639
1639
|
function o(i) {
|
|
1640
1640
|
if (i = dt(i), i) {
|
|
1641
|
-
const a =
|
|
1641
|
+
const a = g.findKey(r, i);
|
|
1642
1642
|
a && (!n || An(r, r[a], a, n)) && (delete r[a], s = !0);
|
|
1643
1643
|
}
|
|
1644
1644
|
}
|
|
1645
|
-
return
|
|
1645
|
+
return g.isArray(t) ? t.forEach(o) : o(t), s;
|
|
1646
1646
|
}
|
|
1647
1647
|
clear(t) {
|
|
1648
1648
|
const n = Object.keys(this);
|
|
@@ -1655,8 +1655,8 @@ let fe = class {
|
|
|
1655
1655
|
}
|
|
1656
1656
|
normalize(t) {
|
|
1657
1657
|
const n = this, r = {};
|
|
1658
|
-
return
|
|
1659
|
-
const i =
|
|
1658
|
+
return g.forEach(this, (s, o) => {
|
|
1659
|
+
const i = g.findKey(r, o);
|
|
1660
1660
|
if (i) {
|
|
1661
1661
|
n[i] = Ft(s), delete n[o];
|
|
1662
1662
|
return;
|
|
@@ -1670,8 +1670,8 @@ let fe = class {
|
|
|
1670
1670
|
}
|
|
1671
1671
|
toJSON(t) {
|
|
1672
1672
|
const n = /* @__PURE__ */ Object.create(null);
|
|
1673
|
-
return
|
|
1674
|
-
r != null && r !== !1 && (n[s] = t &&
|
|
1673
|
+
return g.forEach(this, (r, s) => {
|
|
1674
|
+
r != null && r !== !1 && (n[s] = t && g.isArray(r) ? r.join(", ") : r);
|
|
1675
1675
|
}), n;
|
|
1676
1676
|
}
|
|
1677
1677
|
[Symbol.iterator]() {
|
|
@@ -1702,7 +1702,7 @@ let fe = class {
|
|
|
1702
1702
|
const a = dt(i);
|
|
1703
1703
|
r[a] || (Ia(s, i), r[a] = !0);
|
|
1704
1704
|
}
|
|
1705
|
-
return
|
|
1705
|
+
return g.isArray(t) ? t.forEach(o) : o(t), this;
|
|
1706
1706
|
}
|
|
1707
1707
|
};
|
|
1708
1708
|
fe.accessor([
|
|
@@ -1713,7 +1713,7 @@ fe.accessor([
|
|
|
1713
1713
|
"User-Agent",
|
|
1714
1714
|
"Authorization"
|
|
1715
1715
|
]);
|
|
1716
|
-
|
|
1716
|
+
g.reduceDescriptors(fe.prototype, ({ value: e }, t) => {
|
|
1717
1717
|
let n = t[0].toUpperCase() + t.slice(1);
|
|
1718
1718
|
return {
|
|
1719
1719
|
get: () => e,
|
|
@@ -1722,11 +1722,11 @@ E.reduceDescriptors(fe.prototype, ({ value: e }, t) => {
|
|
|
1722
1722
|
}
|
|
1723
1723
|
};
|
|
1724
1724
|
});
|
|
1725
|
-
|
|
1725
|
+
g.freezeMethods(fe);
|
|
1726
1726
|
function Ln(e, t) {
|
|
1727
1727
|
const n = this || Tt, r = t || n, s = fe.from(r.headers);
|
|
1728
1728
|
let o = r.data;
|
|
1729
|
-
return
|
|
1729
|
+
return g.forEach(e, function(a) {
|
|
1730
1730
|
o = a.call(n, o, s.normalize(), t ? t.status : void 0);
|
|
1731
1731
|
}), s.normalize(), o;
|
|
1732
1732
|
}
|
|
@@ -1770,13 +1770,13 @@ function wa(e, t) {
|
|
|
1770
1770
|
return t = t !== void 0 ? t : 1e3, function(c) {
|
|
1771
1771
|
const u = Date.now(), f = r[o];
|
|
1772
1772
|
i || (i = u), n[s] = c, r[s] = u;
|
|
1773
|
-
let
|
|
1774
|
-
for (;
|
|
1775
|
-
|
|
1773
|
+
let p = o, m = 0;
|
|
1774
|
+
for (; p !== s; )
|
|
1775
|
+
m += n[p++], p = p % e;
|
|
1776
1776
|
if (s = (s + 1) % e, s === o && (o = (o + 1) % e), u - i < t)
|
|
1777
1777
|
return;
|
|
1778
|
-
const
|
|
1779
|
-
return
|
|
1778
|
+
const L = f && u - f;
|
|
1779
|
+
return L ? Math.round(m * 1e3 / L) : void 0;
|
|
1780
1780
|
};
|
|
1781
1781
|
}
|
|
1782
1782
|
function Da(e, t) {
|
|
@@ -1785,10 +1785,10 @@ function Da(e, t) {
|
|
|
1785
1785
|
n = f, s = null, o && (clearTimeout(o), o = null), e(...u);
|
|
1786
1786
|
};
|
|
1787
1787
|
return [(...u) => {
|
|
1788
|
-
const f = Date.now(),
|
|
1789
|
-
|
|
1788
|
+
const f = Date.now(), p = f - n;
|
|
1789
|
+
p >= r ? i(u, f) : (s = u, o || (o = setTimeout(() => {
|
|
1790
1790
|
o = null, i(s);
|
|
1791
|
-
}, r -
|
|
1791
|
+
}, r - p)));
|
|
1792
1792
|
}, () => s && i(s)];
|
|
1793
1793
|
}
|
|
1794
1794
|
const Ht = (e, t, n = 3) => {
|
|
@@ -1797,7 +1797,7 @@ const Ht = (e, t, n = 3) => {
|
|
|
1797
1797
|
return Da((o) => {
|
|
1798
1798
|
const i = o.loaded, a = o.lengthComputable ? o.total : void 0, c = i - r, u = s(c), f = i <= a;
|
|
1799
1799
|
r = i;
|
|
1800
|
-
const
|
|
1800
|
+
const p = {
|
|
1801
1801
|
loaded: i,
|
|
1802
1802
|
total: a,
|
|
1803
1803
|
progress: a ? i / a : void 0,
|
|
@@ -1808,7 +1808,7 @@ const Ht = (e, t, n = 3) => {
|
|
|
1808
1808
|
lengthComputable: a != null,
|
|
1809
1809
|
[t ? "download" : "upload"]: !0
|
|
1810
1810
|
};
|
|
1811
|
-
e(
|
|
1811
|
+
e(p);
|
|
1812
1812
|
}, n);
|
|
1813
1813
|
}, Br = (e, t) => {
|
|
1814
1814
|
const n = e != null;
|
|
@@ -1820,7 +1820,7 @@ const Ht = (e, t, n = 3) => {
|
|
|
1820
1820
|
}),
|
|
1821
1821
|
t[1]
|
|
1822
1822
|
];
|
|
1823
|
-
}, jr = (e) => (...t) =>
|
|
1823
|
+
}, jr = (e) => (...t) => g.asap(() => e(...t)), ka = ce.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, ce.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
1824
1824
|
new URL(ce.origin),
|
|
1825
1825
|
ce.navigator && /(msie|trident)/i.test(ce.navigator.userAgent)
|
|
1826
1826
|
) : () => !0, Fa = ce.hasStandardBrowserEnv ? (
|
|
@@ -1829,7 +1829,7 @@ const Ht = (e, t, n = 3) => {
|
|
|
1829
1829
|
write(e, t, n, r, s, o, i) {
|
|
1830
1830
|
if (typeof document > "u") return;
|
|
1831
1831
|
const a = [`${e}=${encodeURIComponent(t)}`];
|
|
1832
|
-
|
|
1832
|
+
g.isNumber(n) && a.push(`expires=${new Date(n).toUTCString()}`), g.isString(r) && a.push(`path=${r}`), g.isString(s) && a.push(`domain=${s}`), o === !0 && a.push("secure"), g.isString(i) && a.push(`SameSite=${i}`), document.cookie = a.join("; ");
|
|
1833
1833
|
},
|
|
1834
1834
|
read(e) {
|
|
1835
1835
|
if (typeof document > "u") return null;
|
|
@@ -1866,29 +1866,29 @@ const Hr = (e) => e instanceof fe ? { ...e } : e;
|
|
|
1866
1866
|
function Xe(e, t) {
|
|
1867
1867
|
t = t || {};
|
|
1868
1868
|
const n = {};
|
|
1869
|
-
function r(u, f,
|
|
1870
|
-
return
|
|
1869
|
+
function r(u, f, p, m) {
|
|
1870
|
+
return g.isPlainObject(u) && g.isPlainObject(f) ? g.merge.call({ caseless: m }, u, f) : g.isPlainObject(f) ? g.merge({}, f) : g.isArray(f) ? f.slice() : f;
|
|
1871
1871
|
}
|
|
1872
|
-
function s(u, f,
|
|
1873
|
-
if (
|
|
1874
|
-
if (!
|
|
1875
|
-
return r(void 0, u,
|
|
1876
|
-
} else return r(u, f,
|
|
1872
|
+
function s(u, f, p, m) {
|
|
1873
|
+
if (g.isUndefined(f)) {
|
|
1874
|
+
if (!g.isUndefined(u))
|
|
1875
|
+
return r(void 0, u, p, m);
|
|
1876
|
+
} else return r(u, f, p, m);
|
|
1877
1877
|
}
|
|
1878
1878
|
function o(u, f) {
|
|
1879
|
-
if (!
|
|
1879
|
+
if (!g.isUndefined(f))
|
|
1880
1880
|
return r(void 0, f);
|
|
1881
1881
|
}
|
|
1882
1882
|
function i(u, f) {
|
|
1883
|
-
if (
|
|
1884
|
-
if (!
|
|
1883
|
+
if (g.isUndefined(f)) {
|
|
1884
|
+
if (!g.isUndefined(u))
|
|
1885
1885
|
return r(void 0, u);
|
|
1886
1886
|
} else return r(void 0, f);
|
|
1887
1887
|
}
|
|
1888
|
-
function a(u, f,
|
|
1889
|
-
if (
|
|
1888
|
+
function a(u, f, p) {
|
|
1889
|
+
if (p in t)
|
|
1890
1890
|
return r(u, f);
|
|
1891
|
-
if (
|
|
1891
|
+
if (p in e)
|
|
1892
1892
|
return r(void 0, u);
|
|
1893
1893
|
}
|
|
1894
1894
|
const c = {
|
|
@@ -1920,12 +1920,12 @@ function Xe(e, t) {
|
|
|
1920
1920
|
socketPath: i,
|
|
1921
1921
|
responseEncoding: i,
|
|
1922
1922
|
validateStatus: a,
|
|
1923
|
-
headers: (u, f,
|
|
1923
|
+
headers: (u, f, p) => s(Hr(u), Hr(f), p, !0)
|
|
1924
1924
|
};
|
|
1925
|
-
return
|
|
1925
|
+
return g.forEach(Object.keys({ ...e, ...t }), function(f) {
|
|
1926
1926
|
if (f === "__proto__" || f === "constructor" || f === "prototype") return;
|
|
1927
|
-
const
|
|
1928
|
-
|
|
1927
|
+
const p = g.hasOwnProp(c, f) ? c[f] : s, m = p(e[f], t[f], f);
|
|
1928
|
+
g.isUndefined(m) && p !== a || (n[f] = m);
|
|
1929
1929
|
}), n;
|
|
1930
1930
|
}
|
|
1931
1931
|
const no = (e) => {
|
|
@@ -1940,17 +1940,17 @@ const no = (e) => {
|
|
|
1940
1940
|
"Basic " + btoa(
|
|
1941
1941
|
(a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : "")
|
|
1942
1942
|
)
|
|
1943
|
-
),
|
|
1943
|
+
), g.isFormData(n)) {
|
|
1944
1944
|
if (ce.hasStandardBrowserEnv || ce.hasStandardBrowserWebWorkerEnv)
|
|
1945
1945
|
i.setContentType(void 0);
|
|
1946
|
-
else if (
|
|
1946
|
+
else if (g.isFunction(n.getHeaders)) {
|
|
1947
1947
|
const c = n.getHeaders(), u = ["content-type", "content-length"];
|
|
1948
|
-
Object.entries(c).forEach(([f,
|
|
1949
|
-
u.includes(f.toLowerCase()) && i.set(f,
|
|
1948
|
+
Object.entries(c).forEach(([f, p]) => {
|
|
1949
|
+
u.includes(f.toLowerCase()) && i.set(f, p);
|
|
1950
1950
|
});
|
|
1951
1951
|
}
|
|
1952
1952
|
}
|
|
1953
|
-
if (ce.hasStandardBrowserEnv && (r &&
|
|
1953
|
+
if (ce.hasStandardBrowserEnv && (r && g.isFunction(r) && (r = r(t)), r || r !== !1 && ka(t.url))) {
|
|
1954
1954
|
const c = s && o && Fa.read(o);
|
|
1955
1955
|
c && i.set(s, c);
|
|
1956
1956
|
}
|
|
@@ -1960,22 +1960,22 @@ const no = (e) => {
|
|
|
1960
1960
|
const s = no(e);
|
|
1961
1961
|
let o = s.data;
|
|
1962
1962
|
const i = fe.from(s.headers).normalize();
|
|
1963
|
-
let { responseType: a, onUploadProgress: c, onDownloadProgress: u } = s, f,
|
|
1963
|
+
let { responseType: a, onUploadProgress: c, onDownloadProgress: u } = s, f, p, m, L, E;
|
|
1964
1964
|
function b() {
|
|
1965
|
-
|
|
1965
|
+
L && L(), E && E(), s.cancelToken && s.cancelToken.unsubscribe(f), s.signal && s.signal.removeEventListener("abort", f);
|
|
1966
1966
|
}
|
|
1967
1967
|
let N = new XMLHttpRequest();
|
|
1968
1968
|
N.open(s.method.toUpperCase(), s.url, !0), N.timeout = s.timeout;
|
|
1969
1969
|
function _() {
|
|
1970
1970
|
if (!N)
|
|
1971
1971
|
return;
|
|
1972
|
-
const
|
|
1972
|
+
const T = fe.from(
|
|
1973
1973
|
"getAllResponseHeaders" in N && N.getAllResponseHeaders()
|
|
1974
1974
|
), v = {
|
|
1975
1975
|
data: !a || a === "text" || a === "json" ? N.responseText : N.response,
|
|
1976
1976
|
status: N.status,
|
|
1977
1977
|
statusText: N.statusText,
|
|
1978
|
-
headers:
|
|
1978
|
+
headers: T,
|
|
1979
1979
|
config: e,
|
|
1980
1980
|
request: N
|
|
1981
1981
|
};
|
|
@@ -2007,10 +2007,10 @@ const no = (e) => {
|
|
|
2007
2007
|
N
|
|
2008
2008
|
)
|
|
2009
2009
|
), N = null;
|
|
2010
|
-
}, o === void 0 && i.setContentType(null), "setRequestHeader" in N &&
|
|
2010
|
+
}, o === void 0 && i.setContentType(null), "setRequestHeader" in N && g.forEach(i.toJSON(), function(y, v) {
|
|
2011
2011
|
N.setRequestHeader(v, y);
|
|
2012
|
-
}),
|
|
2013
|
-
N && (r(!
|
|
2012
|
+
}), g.isUndefined(s.withCredentials) || (N.withCredentials = !!s.withCredentials), a && a !== "json" && (N.responseType = s.responseType), u && ([m, E] = Ht(u, !0), N.addEventListener("progress", m)), c && N.upload && ([p, L] = Ht(c), N.upload.addEventListener("progress", p), N.upload.addEventListener("loadend", L)), (s.cancelToken || s.signal) && (f = (T) => {
|
|
2013
|
+
N && (r(!T || T.type ? new At(null, e, N) : T), N.abort(), N = null);
|
|
2014
2014
|
}, s.cancelToken && s.cancelToken.subscribe(f), s.signal && (s.signal.aborted ? f() : s.signal.addEventListener("abort", f)));
|
|
2015
2015
|
const O = Pa(s.url);
|
|
2016
2016
|
if (O && ce.protocols.indexOf(O) === -1) {
|
|
@@ -2048,7 +2048,7 @@ const no = (e) => {
|
|
|
2048
2048
|
};
|
|
2049
2049
|
e.forEach((u) => u.addEventListener("abort", o));
|
|
2050
2050
|
const { signal: c } = r;
|
|
2051
|
-
return c.unsubscribe = () =>
|
|
2051
|
+
return c.unsubscribe = () => g.asap(a), c;
|
|
2052
2052
|
}
|
|
2053
2053
|
}, Ba = function* (e, t) {
|
|
2054
2054
|
let n = e.byteLength;
|
|
@@ -2092,10 +2092,10 @@ const no = (e) => {
|
|
|
2092
2092
|
a(), c.close();
|
|
2093
2093
|
return;
|
|
2094
2094
|
}
|
|
2095
|
-
let
|
|
2095
|
+
let p = f.byteLength;
|
|
2096
2096
|
if (n) {
|
|
2097
|
-
let
|
|
2098
|
-
n(
|
|
2097
|
+
let m = o += p;
|
|
2098
|
+
n(m);
|
|
2099
2099
|
}
|
|
2100
2100
|
c.enqueue(new Uint8Array(f));
|
|
2101
2101
|
} catch (u) {
|
|
@@ -2110,17 +2110,17 @@ const no = (e) => {
|
|
|
2110
2110
|
highWaterMark: 2
|
|
2111
2111
|
}
|
|
2112
2112
|
);
|
|
2113
|
-
}, Wr = 64 * 1024, { isFunction: Ct } =
|
|
2113
|
+
}, Wr = 64 * 1024, { isFunction: Ct } = g, qa = (({ Request: e, Response: t }) => ({
|
|
2114
2114
|
Request: e,
|
|
2115
2115
|
Response: t
|
|
2116
|
-
}))(
|
|
2116
|
+
}))(g.global), { ReadableStream: Gr, TextEncoder: Yr } = g.global, Kr = (e, ...t) => {
|
|
2117
2117
|
try {
|
|
2118
2118
|
return !!e(...t);
|
|
2119
2119
|
} catch {
|
|
2120
2120
|
return !1;
|
|
2121
2121
|
}
|
|
2122
2122
|
}, Wa = (e) => {
|
|
2123
|
-
e =
|
|
2123
|
+
e = g.merge.call(
|
|
2124
2124
|
{
|
|
2125
2125
|
skipUndefined: !0
|
|
2126
2126
|
},
|
|
@@ -2130,56 +2130,56 @@ const no = (e) => {
|
|
|
2130
2130
|
const { fetch: t, Request: n, Response: r } = e, s = t ? Ct(t) : typeof fetch == "function", o = Ct(n), i = Ct(r);
|
|
2131
2131
|
if (!s)
|
|
2132
2132
|
return !1;
|
|
2133
|
-
const a = s && Ct(Gr), c = s && (typeof Yr == "function" ? /* @__PURE__ */ ((
|
|
2134
|
-
let
|
|
2133
|
+
const a = s && Ct(Gr), c = s && (typeof Yr == "function" ? /* @__PURE__ */ ((E) => (b) => E.encode(b))(new Yr()) : async (E) => new Uint8Array(await new n(E).arrayBuffer())), u = o && a && Kr(() => {
|
|
2134
|
+
let E = !1;
|
|
2135
2135
|
const b = new n(ce.origin, {
|
|
2136
2136
|
body: new Gr(),
|
|
2137
2137
|
method: "POST",
|
|
2138
2138
|
get duplex() {
|
|
2139
|
-
return
|
|
2139
|
+
return E = !0, "half";
|
|
2140
2140
|
}
|
|
2141
2141
|
}).headers.has("Content-Type");
|
|
2142
|
-
return
|
|
2143
|
-
}), f = i && a && Kr(() =>
|
|
2144
|
-
stream: f && ((
|
|
2142
|
+
return E && !b;
|
|
2143
|
+
}), f = i && a && Kr(() => g.isReadableStream(new r("").body)), p = {
|
|
2144
|
+
stream: f && ((E) => E.body)
|
|
2145
2145
|
};
|
|
2146
|
-
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((
|
|
2147
|
-
!
|
|
2148
|
-
let _ = b && b[
|
|
2146
|
+
s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((E) => {
|
|
2147
|
+
!p[E] && (p[E] = (b, N) => {
|
|
2148
|
+
let _ = b && b[E];
|
|
2149
2149
|
if (_)
|
|
2150
2150
|
return _.call(b);
|
|
2151
2151
|
throw new U(
|
|
2152
|
-
`Response type '${
|
|
2152
|
+
`Response type '${E}' is not supported`,
|
|
2153
2153
|
U.ERR_NOT_SUPPORT,
|
|
2154
2154
|
N
|
|
2155
2155
|
);
|
|
2156
2156
|
});
|
|
2157
2157
|
});
|
|
2158
|
-
const
|
|
2159
|
-
if (
|
|
2158
|
+
const m = async (E) => {
|
|
2159
|
+
if (E == null)
|
|
2160
2160
|
return 0;
|
|
2161
|
-
if (
|
|
2162
|
-
return
|
|
2163
|
-
if (
|
|
2161
|
+
if (g.isBlob(E))
|
|
2162
|
+
return E.size;
|
|
2163
|
+
if (g.isSpecCompliantForm(E))
|
|
2164
2164
|
return (await new n(ce.origin, {
|
|
2165
2165
|
method: "POST",
|
|
2166
|
-
body:
|
|
2166
|
+
body: E
|
|
2167
2167
|
}).arrayBuffer()).byteLength;
|
|
2168
|
-
if (
|
|
2169
|
-
return
|
|
2170
|
-
if (
|
|
2171
|
-
return (await c(
|
|
2172
|
-
},
|
|
2173
|
-
const N =
|
|
2174
|
-
return N ??
|
|
2168
|
+
if (g.isArrayBufferView(E) || g.isArrayBuffer(E))
|
|
2169
|
+
return E.byteLength;
|
|
2170
|
+
if (g.isURLSearchParams(E) && (E = E + ""), g.isString(E))
|
|
2171
|
+
return (await c(E)).byteLength;
|
|
2172
|
+
}, L = async (E, b) => {
|
|
2173
|
+
const N = g.toFiniteNumber(E.getContentLength());
|
|
2174
|
+
return N ?? m(b);
|
|
2175
2175
|
};
|
|
2176
|
-
return async (
|
|
2176
|
+
return async (E) => {
|
|
2177
2177
|
let {
|
|
2178
2178
|
url: b,
|
|
2179
2179
|
method: N,
|
|
2180
2180
|
data: _,
|
|
2181
2181
|
signal: O,
|
|
2182
|
-
cancelToken:
|
|
2182
|
+
cancelToken: T,
|
|
2183
2183
|
timeout: y,
|
|
2184
2184
|
onDownloadProgress: v,
|
|
2185
2185
|
onUploadProgress: C,
|
|
@@ -2187,10 +2187,10 @@ const no = (e) => {
|
|
|
2187
2187
|
headers: x,
|
|
2188
2188
|
withCredentials: M = "same-origin",
|
|
2189
2189
|
fetchOptions: I
|
|
2190
|
-
} = no(
|
|
2190
|
+
} = no(E), P = t || fetch;
|
|
2191
2191
|
h = h ? (h + "").toLowerCase() : "text";
|
|
2192
2192
|
let k = $a(
|
|
2193
|
-
[O,
|
|
2193
|
+
[O, T && T.toAbortSignal()],
|
|
2194
2194
|
y
|
|
2195
2195
|
), q = null;
|
|
2196
2196
|
const se = k && k.unsubscribe && (() => {
|
|
@@ -2198,13 +2198,13 @@ const no = (e) => {
|
|
|
2198
2198
|
});
|
|
2199
2199
|
let Ne;
|
|
2200
2200
|
try {
|
|
2201
|
-
if (C && u && N !== "get" && N !== "head" && (Ne = await
|
|
2201
|
+
if (C && u && N !== "get" && N !== "head" && (Ne = await L(x, _)) !== 0) {
|
|
2202
2202
|
let le = new n(b, {
|
|
2203
2203
|
method: "POST",
|
|
2204
2204
|
body: _,
|
|
2205
2205
|
duplex: "half"
|
|
2206
2206
|
}), Oe;
|
|
2207
|
-
if (
|
|
2207
|
+
if (g.isFormData(_) && (Oe = le.headers.get("content-type")) && x.setContentType(Oe), le.body) {
|
|
2208
2208
|
const [Ve, Fe] = Br(
|
|
2209
2209
|
Ne,
|
|
2210
2210
|
Ht(jr(C))
|
|
@@ -2212,7 +2212,7 @@ const no = (e) => {
|
|
|
2212
2212
|
_ = qr(le.body, Wr, Ve, Fe);
|
|
2213
2213
|
}
|
|
2214
2214
|
}
|
|
2215
|
-
|
|
2215
|
+
g.isString(M) || (M = M ? "include" : "omit");
|
|
2216
2216
|
const z = o && "credentials" in n.prototype, ke = {
|
|
2217
2217
|
...I,
|
|
2218
2218
|
signal: k,
|
|
@@ -2230,7 +2230,7 @@ const no = (e) => {
|
|
|
2230
2230
|
["status", "statusText", "headers"].forEach((Qe) => {
|
|
2231
2231
|
le[Qe] = ee[Qe];
|
|
2232
2232
|
});
|
|
2233
|
-
const Oe =
|
|
2233
|
+
const Oe = g.toFiniteNumber(ee.headers.get("content-length")), [Ve, Fe] = v && Br(
|
|
2234
2234
|
Oe,
|
|
2235
2235
|
Ht(jr(v), !0)
|
|
2236
2236
|
) || [];
|
|
@@ -2242,9 +2242,9 @@ const no = (e) => {
|
|
|
2242
2242
|
);
|
|
2243
2243
|
}
|
|
2244
2244
|
h = h || "text";
|
|
2245
|
-
let ge = await
|
|
2245
|
+
let ge = await p[g.findKey(p, h) || "text"](
|
|
2246
2246
|
ee,
|
|
2247
|
-
|
|
2247
|
+
E
|
|
2248
2248
|
);
|
|
2249
2249
|
return !Z && se && se(), await new Promise((le, Oe) => {
|
|
2250
2250
|
eo(le, Oe, {
|
|
@@ -2252,7 +2252,7 @@ const no = (e) => {
|
|
|
2252
2252
|
headers: fe.from(ee.headers),
|
|
2253
2253
|
status: ee.status,
|
|
2254
2254
|
statusText: ee.statusText,
|
|
2255
|
-
config:
|
|
2255
|
+
config: E,
|
|
2256
2256
|
request: q
|
|
2257
2257
|
});
|
|
2258
2258
|
});
|
|
@@ -2261,14 +2261,14 @@ const no = (e) => {
|
|
|
2261
2261
|
new U(
|
|
2262
2262
|
"Network Error",
|
|
2263
2263
|
U.ERR_NETWORK,
|
|
2264
|
-
|
|
2264
|
+
E,
|
|
2265
2265
|
q,
|
|
2266
2266
|
z && z.response
|
|
2267
2267
|
),
|
|
2268
2268
|
{
|
|
2269
2269
|
cause: z.cause || z
|
|
2270
2270
|
}
|
|
2271
|
-
) : U.from(z, z && z.code,
|
|
2271
|
+
) : U.from(z, z && z.code, E, q, z && z.response);
|
|
2272
2272
|
}
|
|
2273
2273
|
};
|
|
2274
2274
|
}, Ga = /* @__PURE__ */ new Map(), ro = (e) => {
|
|
@@ -2287,7 +2287,7 @@ const fr = {
|
|
|
2287
2287
|
get: ro
|
|
2288
2288
|
}
|
|
2289
2289
|
};
|
|
2290
|
-
|
|
2290
|
+
g.forEach(fr, (e, t) => {
|
|
2291
2291
|
if (e) {
|
|
2292
2292
|
try {
|
|
2293
2293
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -2296,9 +2296,9 @@ E.forEach(fr, (e, t) => {
|
|
|
2296
2296
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
2297
2297
|
}
|
|
2298
2298
|
});
|
|
2299
|
-
const Xr = (e) => `- ${e}`, Ya = (e) =>
|
|
2299
|
+
const Xr = (e) => `- ${e}`, Ya = (e) => g.isFunction(e) || e === null || e === !1;
|
|
2300
2300
|
function Ka(e, t) {
|
|
2301
|
-
e =
|
|
2301
|
+
e = g.isArray(e) ? e : [e];
|
|
2302
2302
|
const { length: n } = e;
|
|
2303
2303
|
let r, s;
|
|
2304
2304
|
const o = {};
|
|
@@ -2307,7 +2307,7 @@ function Ka(e, t) {
|
|
|
2307
2307
|
let a;
|
|
2308
2308
|
if (s = r, !Ya(r) && (s = fr[(a = String(r)).toLowerCase()], s === void 0))
|
|
2309
2309
|
throw new U(`Unknown adapter '${a}'`);
|
|
2310
|
-
if (s && (
|
|
2310
|
+
if (s && (g.isFunction(s) || (s = s.get(t))))
|
|
2311
2311
|
break;
|
|
2312
2312
|
o[a || "#" + i] = s;
|
|
2313
2313
|
}
|
|
@@ -2451,7 +2451,7 @@ let Ye = class {
|
|
|
2451
2451
|
legacyInterceptorReqResOrdering: me.transitional(me.boolean)
|
|
2452
2452
|
},
|
|
2453
2453
|
!1
|
|
2454
|
-
), s != null && (
|
|
2454
|
+
), s != null && (g.isFunction(s) ? n.paramsSerializer = {
|
|
2455
2455
|
serialize: s
|
|
2456
2456
|
} : Ut.assertOptions(
|
|
2457
2457
|
s,
|
|
@@ -2468,9 +2468,9 @@ let Ye = class {
|
|
|
2468
2468
|
},
|
|
2469
2469
|
!0
|
|
2470
2470
|
), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
2471
|
-
let i = o &&
|
|
2472
|
-
o &&
|
|
2473
|
-
delete o[
|
|
2471
|
+
let i = o && g.merge(o.common, o[n.method]);
|
|
2472
|
+
o && g.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (E) => {
|
|
2473
|
+
delete o[E];
|
|
2474
2474
|
}), n.headers = fe.concat(i, o);
|
|
2475
2475
|
const a = [];
|
|
2476
2476
|
let c = !0;
|
|
@@ -2485,31 +2485,31 @@ let Ye = class {
|
|
|
2485
2485
|
this.interceptors.response.forEach(function(b) {
|
|
2486
2486
|
u.push(b.fulfilled, b.rejected);
|
|
2487
2487
|
});
|
|
2488
|
-
let f,
|
|
2488
|
+
let f, p = 0, m;
|
|
2489
2489
|
if (!c) {
|
|
2490
|
-
const
|
|
2491
|
-
for (
|
|
2492
|
-
f = f.then(
|
|
2490
|
+
const E = [Jr.bind(this), void 0];
|
|
2491
|
+
for (E.unshift(...a), E.push(...u), m = E.length, f = Promise.resolve(n); p < m; )
|
|
2492
|
+
f = f.then(E[p++], E[p++]);
|
|
2493
2493
|
return f;
|
|
2494
2494
|
}
|
|
2495
|
-
|
|
2496
|
-
let
|
|
2497
|
-
for (;
|
|
2498
|
-
const
|
|
2495
|
+
m = a.length;
|
|
2496
|
+
let L = n;
|
|
2497
|
+
for (; p < m; ) {
|
|
2498
|
+
const E = a[p++], b = a[p++];
|
|
2499
2499
|
try {
|
|
2500
|
-
|
|
2500
|
+
L = E(L);
|
|
2501
2501
|
} catch (N) {
|
|
2502
2502
|
b.call(this, N);
|
|
2503
2503
|
break;
|
|
2504
2504
|
}
|
|
2505
2505
|
}
|
|
2506
2506
|
try {
|
|
2507
|
-
f = Jr.call(this,
|
|
2508
|
-
} catch (
|
|
2509
|
-
return Promise.reject(
|
|
2507
|
+
f = Jr.call(this, L);
|
|
2508
|
+
} catch (E) {
|
|
2509
|
+
return Promise.reject(E);
|
|
2510
2510
|
}
|
|
2511
|
-
for (
|
|
2512
|
-
f = f.then(u[
|
|
2511
|
+
for (p = 0, m = u.length; p < m; )
|
|
2512
|
+
f = f.then(u[p++], u[p++]);
|
|
2513
2513
|
return f;
|
|
2514
2514
|
}
|
|
2515
2515
|
getUri(t) {
|
|
@@ -2518,7 +2518,7 @@ let Ye = class {
|
|
|
2518
2518
|
return Qs(n, t.params, t.paramsSerializer);
|
|
2519
2519
|
}
|
|
2520
2520
|
};
|
|
2521
|
-
|
|
2521
|
+
g.forEach(["delete", "get", "head", "options"], function(t) {
|
|
2522
2522
|
Ye.prototype[t] = function(n, r) {
|
|
2523
2523
|
return this.request(
|
|
2524
2524
|
Xe(r || {}, {
|
|
@@ -2529,7 +2529,7 @@ E.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
2529
2529
|
);
|
|
2530
2530
|
};
|
|
2531
2531
|
});
|
|
2532
|
-
|
|
2532
|
+
g.forEach(["post", "put", "patch"], function(t) {
|
|
2533
2533
|
function n(r) {
|
|
2534
2534
|
return function(o, i, a) {
|
|
2535
2535
|
return this.request(
|
|
@@ -2625,7 +2625,7 @@ function Qa(e) {
|
|
|
2625
2625
|
};
|
|
2626
2626
|
}
|
|
2627
2627
|
function za(e) {
|
|
2628
|
-
return
|
|
2628
|
+
return g.isObject(e) && e.isAxiosError === !0;
|
|
2629
2629
|
}
|
|
2630
2630
|
const Gn = {
|
|
2631
2631
|
Continue: 100,
|
|
@@ -2703,7 +2703,7 @@ Object.entries(Gn).forEach(([e, t]) => {
|
|
|
2703
2703
|
});
|
|
2704
2704
|
function ao(e) {
|
|
2705
2705
|
const t = new Ye(e), n = $s(Ye.prototype.request, t);
|
|
2706
|
-
return
|
|
2706
|
+
return g.extend(n, Ye.prototype, t, { allOwnKeys: !0 }), g.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
2707
2707
|
return ao(Xe(e, s));
|
|
2708
2708
|
}, n;
|
|
2709
2709
|
}
|
|
@@ -2723,7 +2723,7 @@ Q.spread = Qa;
|
|
|
2723
2723
|
Q.isAxiosError = za;
|
|
2724
2724
|
Q.mergeConfig = Xe;
|
|
2725
2725
|
Q.AxiosHeaders = fe;
|
|
2726
|
-
Q.formToJSON = (e) => zs(
|
|
2726
|
+
Q.formToJSON = (e) => zs(g.isHTMLForm(e) ? new FormData(e) : e);
|
|
2727
2727
|
Q.getAdapter = so.getAdapter;
|
|
2728
2728
|
Q.HttpStatusCode = Gn;
|
|
2729
2729
|
Q.default = Q;
|
|
@@ -2930,8 +2930,8 @@ function fc(e, t = 0, n = e.length) {
|
|
|
2930
2930
|
o.push(`${c}${" ".repeat(3 - String(c).length)}| ${r[a]}`);
|
|
2931
2931
|
const u = r[a].length;
|
|
2932
2932
|
if (a === i) {
|
|
2933
|
-
const f = t - (s - u) + 1,
|
|
2934
|
-
o.push(" | " + " ".repeat(f) + "^".repeat(
|
|
2933
|
+
const f = t - (s - u) + 1, p = Math.max(1, n > s ? u - f : n - t);
|
|
2934
|
+
o.push(" | " + " ".repeat(f) + "^".repeat(p));
|
|
2935
2935
|
} else if (a > i) {
|
|
2936
2936
|
if (n > s) {
|
|
2937
2937
|
const f = Math.max(Math.min(n - s, u), 1);
|
|
@@ -3035,11 +3035,11 @@ const Ec = /<\/?[\w\s="/.':;#-\/]+>/, gc = (e) => Ec.test(e), Se = " ", bc = "\r
|
|
|
3035
3035
|
function Oc(e) {
|
|
3036
3036
|
const t = e;
|
|
3037
3037
|
let n = 0, r = 1, s = 1, o = 0;
|
|
3038
|
-
const i = (h) => t[h] === bc && t[h + 1] === ie, a = (h) => t[h] === ie, c = (h) => t[h] === Nc, u = (h) => t[h] === yc, f = (h) => i(h) || a(h) || c(h) || u(h),
|
|
3038
|
+
const i = (h) => t[h] === bc && t[h + 1] === ie, a = (h) => t[h] === ie, c = (h) => t[h] === Nc, u = (h) => t[h] === yc, f = (h) => i(h) || a(h) || c(h) || u(h), p = () => n, m = () => r, L = () => s, E = () => o, b = (h) => i(h) || c(h) || u(h) ? ie : t[h], N = () => b(n), _ = () => b(n + o);
|
|
3039
3039
|
function O() {
|
|
3040
3040
|
return o = 0, f(n) && (r++, s = 0), i(n) && n++, n++, s++, t[n];
|
|
3041
3041
|
}
|
|
3042
|
-
function
|
|
3042
|
+
function T() {
|
|
3043
3043
|
return i(n + o) && o++, o++, t[n + o];
|
|
3044
3044
|
}
|
|
3045
3045
|
function y() {
|
|
@@ -3055,15 +3055,15 @@ function Oc(e) {
|
|
|
3055
3055
|
o = 0;
|
|
3056
3056
|
}
|
|
3057
3057
|
return {
|
|
3058
|
-
index:
|
|
3059
|
-
line:
|
|
3060
|
-
column:
|
|
3061
|
-
peekOffset:
|
|
3058
|
+
index: p,
|
|
3059
|
+
line: m,
|
|
3060
|
+
column: L,
|
|
3061
|
+
peekOffset: E,
|
|
3062
3062
|
charAt: b,
|
|
3063
3063
|
currentChar: N,
|
|
3064
3064
|
currentPeek: _,
|
|
3065
3065
|
next: O,
|
|
3066
|
-
peek:
|
|
3066
|
+
peek: T,
|
|
3067
3067
|
reset: y,
|
|
3068
3068
|
resetPeek: v,
|
|
3069
3069
|
skipToPeek: C
|
|
@@ -3084,9 +3084,9 @@ function Ac(e, t = {}) {
|
|
|
3084
3084
|
inLinked: !1,
|
|
3085
3085
|
text: ""
|
|
3086
3086
|
}, u = () => c, { onError: f } = t;
|
|
3087
|
-
function
|
|
3087
|
+
function p(l, d, A, ...w) {
|
|
3088
3088
|
const W = u();
|
|
3089
|
-
if (d.column +=
|
|
3089
|
+
if (d.column += A, d.offset += A, f) {
|
|
3090
3090
|
const K = n ? Kn(W.startLoc, d) : null, V = ct(l, K, {
|
|
3091
3091
|
domain: Tc,
|
|
3092
3092
|
args: w
|
|
@@ -3094,18 +3094,18 @@ function Ac(e, t = {}) {
|
|
|
3094
3094
|
f(V);
|
|
3095
3095
|
}
|
|
3096
3096
|
}
|
|
3097
|
-
function
|
|
3097
|
+
function m(l, d, A) {
|
|
3098
3098
|
l.endLoc = o(), l.currentType = d;
|
|
3099
3099
|
const w = { type: d };
|
|
3100
|
-
return n && (w.loc = Kn(l.startLoc, l.endLoc)),
|
|
3100
|
+
return n && (w.loc = Kn(l.startLoc, l.endLoc)), A != null && (w.value = A), w;
|
|
3101
3101
|
}
|
|
3102
|
-
const
|
|
3102
|
+
const L = (l) => m(
|
|
3103
3103
|
l,
|
|
3104
3104
|
13
|
|
3105
3105
|
/* TokenTypes.EOF */
|
|
3106
3106
|
);
|
|
3107
|
-
function
|
|
3108
|
-
return l.currentChar() === d ? (l.next(), d) : (
|
|
3107
|
+
function E(l, d) {
|
|
3108
|
+
return l.currentChar() === d ? (l.next(), d) : (p(F.EXPECTED_TOKEN, o(), 0, d), "");
|
|
3109
3109
|
}
|
|
3110
3110
|
function b(l) {
|
|
3111
3111
|
let d = "";
|
|
@@ -3131,57 +3131,57 @@ function Ac(e, t = {}) {
|
|
|
3131
3131
|
const d = l.charCodeAt(0);
|
|
3132
3132
|
return d >= 48 && d <= 57;
|
|
3133
3133
|
}
|
|
3134
|
-
function
|
|
3135
|
-
const { currentType:
|
|
3136
|
-
if (
|
|
3134
|
+
function T(l, d) {
|
|
3135
|
+
const { currentType: A } = d;
|
|
3136
|
+
if (A !== 2)
|
|
3137
3137
|
return !1;
|
|
3138
3138
|
b(l);
|
|
3139
3139
|
const w = _(l.currentPeek());
|
|
3140
3140
|
return l.resetPeek(), w;
|
|
3141
3141
|
}
|
|
3142
3142
|
function y(l, d) {
|
|
3143
|
-
const { currentType:
|
|
3144
|
-
if (
|
|
3143
|
+
const { currentType: A } = d;
|
|
3144
|
+
if (A !== 2)
|
|
3145
3145
|
return !1;
|
|
3146
3146
|
b(l);
|
|
3147
3147
|
const w = l.currentPeek() === "-" ? l.peek() : l.currentPeek(), W = O(w);
|
|
3148
3148
|
return l.resetPeek(), W;
|
|
3149
3149
|
}
|
|
3150
3150
|
function v(l, d) {
|
|
3151
|
-
const { currentType:
|
|
3152
|
-
if (
|
|
3151
|
+
const { currentType: A } = d;
|
|
3152
|
+
if (A !== 2)
|
|
3153
3153
|
return !1;
|
|
3154
3154
|
b(l);
|
|
3155
3155
|
const w = l.currentPeek() === ss;
|
|
3156
3156
|
return l.resetPeek(), w;
|
|
3157
3157
|
}
|
|
3158
3158
|
function C(l, d) {
|
|
3159
|
-
const { currentType:
|
|
3160
|
-
if (
|
|
3159
|
+
const { currentType: A } = d;
|
|
3160
|
+
if (A !== 7)
|
|
3161
3161
|
return !1;
|
|
3162
3162
|
b(l);
|
|
3163
3163
|
const w = l.currentPeek() === ".";
|
|
3164
3164
|
return l.resetPeek(), w;
|
|
3165
3165
|
}
|
|
3166
3166
|
function h(l, d) {
|
|
3167
|
-
const { currentType:
|
|
3168
|
-
if (
|
|
3167
|
+
const { currentType: A } = d;
|
|
3168
|
+
if (A !== 8)
|
|
3169
3169
|
return !1;
|
|
3170
3170
|
b(l);
|
|
3171
3171
|
const w = _(l.currentPeek());
|
|
3172
3172
|
return l.resetPeek(), w;
|
|
3173
3173
|
}
|
|
3174
3174
|
function x(l, d) {
|
|
3175
|
-
const { currentType:
|
|
3176
|
-
if (!(
|
|
3175
|
+
const { currentType: A } = d;
|
|
3176
|
+
if (!(A === 7 || A === 11))
|
|
3177
3177
|
return !1;
|
|
3178
3178
|
b(l);
|
|
3179
3179
|
const w = l.currentPeek() === ":";
|
|
3180
3180
|
return l.resetPeek(), w;
|
|
3181
3181
|
}
|
|
3182
3182
|
function M(l, d) {
|
|
3183
|
-
const { currentType:
|
|
3184
|
-
if (
|
|
3183
|
+
const { currentType: A } = d;
|
|
3184
|
+
if (A !== 9)
|
|
3185
3185
|
return !1;
|
|
3186
3186
|
const w = () => {
|
|
3187
3187
|
const K = l.currentPeek();
|
|
@@ -3195,15 +3195,15 @@ function Ac(e, t = {}) {
|
|
|
3195
3195
|
return l.resetPeek(), d;
|
|
3196
3196
|
}
|
|
3197
3197
|
function P(l, d = !0) {
|
|
3198
|
-
const
|
|
3198
|
+
const A = (W = !1, K = "") => {
|
|
3199
3199
|
const V = l.currentPeek();
|
|
3200
|
-
return V === "{" || V === "@" || !V ? W : V === "|" ? !(K === Se || K === ie) : V === Se ? (l.peek(),
|
|
3201
|
-
}, w =
|
|
3200
|
+
return V === "{" || V === "@" || !V ? W : V === "|" ? !(K === Se || K === ie) : V === Se ? (l.peek(), A(!0, Se)) : V === ie ? (l.peek(), A(!0, ie)) : !0;
|
|
3201
|
+
}, w = A();
|
|
3202
3202
|
return d && l.resetPeek(), w;
|
|
3203
3203
|
}
|
|
3204
3204
|
function k(l, d) {
|
|
3205
|
-
const
|
|
3206
|
-
return
|
|
3205
|
+
const A = l.currentChar();
|
|
3206
|
+
return A === Re ? Re : d(A) ? (l.next(), A) : null;
|
|
3207
3207
|
}
|
|
3208
3208
|
function q(l) {
|
|
3209
3209
|
const d = l.charCodeAt(0);
|
|
@@ -3245,62 +3245,62 @@ function Ac(e, t = {}) {
|
|
|
3245
3245
|
return k(l, Z);
|
|
3246
3246
|
}
|
|
3247
3247
|
function le(l) {
|
|
3248
|
-
let d = "",
|
|
3248
|
+
let d = "", A = "";
|
|
3249
3249
|
for (; d = ee(l); )
|
|
3250
|
-
|
|
3251
|
-
return
|
|
3250
|
+
A += d;
|
|
3251
|
+
return A;
|
|
3252
3252
|
}
|
|
3253
3253
|
function Oe(l) {
|
|
3254
3254
|
let d = "";
|
|
3255
3255
|
for (; ; ) {
|
|
3256
|
-
const
|
|
3257
|
-
if (
|
|
3256
|
+
const A = l.currentChar();
|
|
3257
|
+
if (A === "\\") {
|
|
3258
3258
|
const w = l.peek();
|
|
3259
|
-
w === "{" || w === "}" || w === "@" || w === "|" || w === "\\" ? (d +=
|
|
3259
|
+
w === "{" || w === "}" || w === "@" || w === "|" || w === "\\" ? (d += A + w, l.next(), l.next()) : (l.resetPeek(), d += A, l.next());
|
|
3260
3260
|
} else {
|
|
3261
|
-
if (
|
|
3261
|
+
if (A === "{" || A === "}" || A === "@" || A === "|" || !A)
|
|
3262
3262
|
break;
|
|
3263
|
-
if (
|
|
3263
|
+
if (A === Se || A === ie)
|
|
3264
3264
|
if (P(l))
|
|
3265
|
-
d +=
|
|
3265
|
+
d += A, l.next();
|
|
3266
3266
|
else {
|
|
3267
3267
|
if (I(l))
|
|
3268
3268
|
break;
|
|
3269
|
-
d +=
|
|
3269
|
+
d += A, l.next();
|
|
3270
3270
|
}
|
|
3271
3271
|
else
|
|
3272
|
-
d +=
|
|
3272
|
+
d += A, l.next();
|
|
3273
3273
|
}
|
|
3274
3274
|
}
|
|
3275
3275
|
return d;
|
|
3276
3276
|
}
|
|
3277
3277
|
function Ve(l) {
|
|
3278
3278
|
N(l);
|
|
3279
|
-
let d = "",
|
|
3279
|
+
let d = "", A = "";
|
|
3280
3280
|
for (; d = z(l); )
|
|
3281
|
-
|
|
3281
|
+
A += d;
|
|
3282
3282
|
const w = l.currentChar();
|
|
3283
3283
|
if (w && w !== "}" && w !== Re && w !== Se && w !== ie && w !== " ") {
|
|
3284
3284
|
const W = Rt(l);
|
|
3285
|
-
return
|
|
3285
|
+
return p(F.INVALID_TOKEN_IN_PLACEHOLDER, o(), 0, A + W), A + W;
|
|
3286
3286
|
}
|
|
3287
|
-
return l.currentChar() === Re &&
|
|
3287
|
+
return l.currentChar() === Re && p(F.UNTERMINATED_CLOSING_BRACE, o(), 0), A;
|
|
3288
3288
|
}
|
|
3289
3289
|
function Fe(l) {
|
|
3290
3290
|
N(l);
|
|
3291
3291
|
let d = "";
|
|
3292
|
-
return l.currentChar() === "-" ? (l.next(), d += `-${le(l)}`) : d += le(l), l.currentChar() === Re &&
|
|
3292
|
+
return l.currentChar() === "-" ? (l.next(), d += `-${le(l)}`) : d += le(l), l.currentChar() === Re && p(F.UNTERMINATED_CLOSING_BRACE, o(), 0), d;
|
|
3293
3293
|
}
|
|
3294
3294
|
function Qe(l) {
|
|
3295
3295
|
return l !== ss && l !== ie;
|
|
3296
3296
|
}
|
|
3297
3297
|
function yr(l) {
|
|
3298
|
-
N(l),
|
|
3299
|
-
let d = "",
|
|
3298
|
+
N(l), E(l, "'");
|
|
3299
|
+
let d = "", A = "";
|
|
3300
3300
|
for (; d = k(l, Qe); )
|
|
3301
|
-
d === "\\" ?
|
|
3301
|
+
d === "\\" ? A += mn(l) : A += d;
|
|
3302
3302
|
const w = l.currentChar();
|
|
3303
|
-
return w === ie || w === Re ? (
|
|
3303
|
+
return w === ie || w === Re ? (p(F.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, o(), 0), w === ie && (l.next(), E(l, "'")), A) : (E(l, "'"), A);
|
|
3304
3304
|
}
|
|
3305
3305
|
function mn(l) {
|
|
3306
3306
|
const d = l.currentChar();
|
|
@@ -3313,16 +3313,16 @@ function Ac(e, t = {}) {
|
|
|
3313
3313
|
case "U":
|
|
3314
3314
|
return Lt(l, d, 6);
|
|
3315
3315
|
default:
|
|
3316
|
-
return
|
|
3316
|
+
return p(F.UNKNOWN_ESCAPE_SEQUENCE, o(), 0, d), "";
|
|
3317
3317
|
}
|
|
3318
3318
|
}
|
|
3319
|
-
function Lt(l, d,
|
|
3320
|
-
|
|
3319
|
+
function Lt(l, d, A) {
|
|
3320
|
+
E(l, d);
|
|
3321
3321
|
let w = "";
|
|
3322
|
-
for (let W = 0; W <
|
|
3322
|
+
for (let W = 0; W < A; W++) {
|
|
3323
3323
|
const K = ge(l);
|
|
3324
3324
|
if (!K) {
|
|
3325
|
-
|
|
3325
|
+
p(F.INVALID_UNICODE_ESCAPE_SEQUENCE, o(), 0, `\\${d}${w}${l.currentChar()}`);
|
|
3326
3326
|
break;
|
|
3327
3327
|
}
|
|
3328
3328
|
w += K;
|
|
@@ -3334,27 +3334,27 @@ function Ac(e, t = {}) {
|
|
|
3334
3334
|
}
|
|
3335
3335
|
function Rt(l) {
|
|
3336
3336
|
N(l);
|
|
3337
|
-
let d = "",
|
|
3337
|
+
let d = "", A = "";
|
|
3338
3338
|
for (; d = k(l, _n); )
|
|
3339
|
-
|
|
3340
|
-
return
|
|
3339
|
+
A += d;
|
|
3340
|
+
return A;
|
|
3341
3341
|
}
|
|
3342
3342
|
function hn(l) {
|
|
3343
|
-
let d = "",
|
|
3343
|
+
let d = "", A = "";
|
|
3344
3344
|
for (; d = se(l); )
|
|
3345
|
-
|
|
3346
|
-
return
|
|
3345
|
+
A += d;
|
|
3346
|
+
return A;
|
|
3347
3347
|
}
|
|
3348
3348
|
function En(l) {
|
|
3349
|
-
const d = (
|
|
3349
|
+
const d = (A) => {
|
|
3350
3350
|
const w = l.currentChar();
|
|
3351
|
-
return w === "{" || w === "@" || w === "|" || w === "(" || w === ")" || !w || w === Se ?
|
|
3351
|
+
return w === "{" || w === "@" || w === "|" || w === "(" || w === ")" || !w || w === Se ? A : (A += w, l.next(), d(A));
|
|
3352
3352
|
};
|
|
3353
3353
|
return d("");
|
|
3354
3354
|
}
|
|
3355
3355
|
function lt(l) {
|
|
3356
3356
|
N(l);
|
|
3357
|
-
const d =
|
|
3357
|
+
const d = E(
|
|
3358
3358
|
l,
|
|
3359
3359
|
"|"
|
|
3360
3360
|
/* TokenChars.Pipe */
|
|
@@ -3362,107 +3362,107 @@ function Ac(e, t = {}) {
|
|
|
3362
3362
|
return N(l), d;
|
|
3363
3363
|
}
|
|
3364
3364
|
function ut(l, d) {
|
|
3365
|
-
let
|
|
3365
|
+
let A = null;
|
|
3366
3366
|
switch (l.currentChar()) {
|
|
3367
3367
|
case "{":
|
|
3368
|
-
return d.braceNest >= 1 &&
|
|
3368
|
+
return d.braceNest >= 1 && p(F.NOT_ALLOW_NEST_PLACEHOLDER, o(), 0), l.next(), A = m(
|
|
3369
3369
|
d,
|
|
3370
3370
|
2,
|
|
3371
3371
|
"{"
|
|
3372
3372
|
/* TokenChars.BraceLeft */
|
|
3373
|
-
), N(l), d.braceNest++,
|
|
3373
|
+
), N(l), d.braceNest++, A;
|
|
3374
3374
|
case "}":
|
|
3375
|
-
return d.braceNest > 0 && d.currentType === 2 &&
|
|
3375
|
+
return d.braceNest > 0 && d.currentType === 2 && p(F.EMPTY_PLACEHOLDER, o(), 0), l.next(), A = m(
|
|
3376
3376
|
d,
|
|
3377
3377
|
3,
|
|
3378
3378
|
"}"
|
|
3379
3379
|
/* TokenChars.BraceRight */
|
|
3380
|
-
), d.braceNest--, d.braceNest > 0 && N(l), d.inLinked && d.braceNest === 0 && (d.inLinked = !1),
|
|
3380
|
+
), d.braceNest--, d.braceNest > 0 && N(l), d.inLinked && d.braceNest === 0 && (d.inLinked = !1), A;
|
|
3381
3381
|
case "@":
|
|
3382
|
-
return d.braceNest > 0 &&
|
|
3382
|
+
return d.braceNest > 0 && p(F.UNTERMINATED_CLOSING_BRACE, o(), 0), A = $e(l, d) || L(d), d.braceNest = 0, A;
|
|
3383
3383
|
default: {
|
|
3384
3384
|
let W = !0, K = !0, V = !0;
|
|
3385
3385
|
if (I(l))
|
|
3386
|
-
return d.braceNest > 0 &&
|
|
3386
|
+
return d.braceNest > 0 && p(F.UNTERMINATED_CLOSING_BRACE, o(), 0), A = m(d, 1, lt(l)), d.braceNest = 0, d.inLinked = !1, A;
|
|
3387
3387
|
if (d.braceNest > 0 && (d.currentType === 4 || d.currentType === 5 || d.currentType === 6))
|
|
3388
|
-
return
|
|
3389
|
-
if (W =
|
|
3390
|
-
return
|
|
3388
|
+
return p(F.UNTERMINATED_CLOSING_BRACE, o(), 0), d.braceNest = 0, ft(l, d);
|
|
3389
|
+
if (W = T(l, d))
|
|
3390
|
+
return A = m(d, 4, Ve(l)), N(l), A;
|
|
3391
3391
|
if (K = y(l, d))
|
|
3392
|
-
return
|
|
3392
|
+
return A = m(d, 5, Fe(l)), N(l), A;
|
|
3393
3393
|
if (V = v(l, d))
|
|
3394
|
-
return
|
|
3394
|
+
return A = m(d, 6, yr(l)), N(l), A;
|
|
3395
3395
|
if (!W && !K && !V)
|
|
3396
|
-
return
|
|
3396
|
+
return A = m(d, 12, Rt(l)), p(F.INVALID_TOKEN_IN_PLACEHOLDER, o(), 0, A.value), N(l), A;
|
|
3397
3397
|
break;
|
|
3398
3398
|
}
|
|
3399
3399
|
}
|
|
3400
|
-
return
|
|
3400
|
+
return A;
|
|
3401
3401
|
}
|
|
3402
3402
|
function $e(l, d) {
|
|
3403
|
-
const { currentType:
|
|
3403
|
+
const { currentType: A } = d;
|
|
3404
3404
|
let w = null;
|
|
3405
3405
|
const W = l.currentChar();
|
|
3406
|
-
switch ((
|
|
3406
|
+
switch ((A === 7 || A === 8 || A === 11 || A === 9) && (W === ie || W === Se) && p(F.INVALID_LINKED_FORMAT, o(), 0), W) {
|
|
3407
3407
|
case "@":
|
|
3408
|
-
return l.next(), w =
|
|
3408
|
+
return l.next(), w = m(
|
|
3409
3409
|
d,
|
|
3410
3410
|
7,
|
|
3411
3411
|
"@"
|
|
3412
3412
|
/* TokenChars.LinkedAlias */
|
|
3413
3413
|
), d.inLinked = !0, w;
|
|
3414
3414
|
case ".":
|
|
3415
|
-
return N(l), l.next(),
|
|
3415
|
+
return N(l), l.next(), m(
|
|
3416
3416
|
d,
|
|
3417
3417
|
8,
|
|
3418
3418
|
"."
|
|
3419
3419
|
/* TokenChars.LinkedDot */
|
|
3420
3420
|
);
|
|
3421
3421
|
case ":":
|
|
3422
|
-
return N(l), l.next(),
|
|
3422
|
+
return N(l), l.next(), m(
|
|
3423
3423
|
d,
|
|
3424
3424
|
9,
|
|
3425
3425
|
":"
|
|
3426
3426
|
/* TokenChars.LinkedDelimiter */
|
|
3427
3427
|
);
|
|
3428
3428
|
default:
|
|
3429
|
-
return I(l) ? (w =
|
|
3429
|
+
return I(l) ? (w = m(d, 1, lt(l)), d.braceNest = 0, d.inLinked = !1, w) : C(l, d) || x(l, d) ? (N(l), $e(l, d)) : h(l, d) ? (N(l), m(d, 11, hn(l))) : M(l, d) ? (N(l), W === "{" ? ut(l, d) || w : m(d, 10, En(l))) : (A === 7 && p(F.INVALID_LINKED_FORMAT, o(), 0), d.braceNest = 0, d.inLinked = !1, ft(l, d));
|
|
3430
3430
|
}
|
|
3431
3431
|
}
|
|
3432
3432
|
function ft(l, d) {
|
|
3433
|
-
let
|
|
3433
|
+
let A = {
|
|
3434
3434
|
type: 13
|
|
3435
3435
|
/* TokenTypes.EOF */
|
|
3436
3436
|
};
|
|
3437
3437
|
if (d.braceNest > 0)
|
|
3438
|
-
return ut(l, d) ||
|
|
3438
|
+
return ut(l, d) || L(d);
|
|
3439
3439
|
if (d.inLinked)
|
|
3440
|
-
return $e(l, d) ||
|
|
3440
|
+
return $e(l, d) || L(d);
|
|
3441
3441
|
switch (l.currentChar()) {
|
|
3442
3442
|
case "{":
|
|
3443
|
-
return ut(l, d) ||
|
|
3443
|
+
return ut(l, d) || L(d);
|
|
3444
3444
|
case "}":
|
|
3445
|
-
return
|
|
3445
|
+
return p(F.UNBALANCED_CLOSING_BRACE, o(), 0), l.next(), m(
|
|
3446
3446
|
d,
|
|
3447
3447
|
3,
|
|
3448
3448
|
"}"
|
|
3449
3449
|
/* TokenChars.BraceRight */
|
|
3450
3450
|
);
|
|
3451
3451
|
case "@":
|
|
3452
|
-
return $e(l, d) ||
|
|
3452
|
+
return $e(l, d) || L(d);
|
|
3453
3453
|
default: {
|
|
3454
3454
|
if (I(l))
|
|
3455
|
-
return
|
|
3455
|
+
return A = m(d, 1, lt(l)), d.braceNest = 0, d.inLinked = !1, A;
|
|
3456
3456
|
if (P(l))
|
|
3457
|
-
return
|
|
3457
|
+
return m(d, 0, Oe(l));
|
|
3458
3458
|
break;
|
|
3459
3459
|
}
|
|
3460
3460
|
}
|
|
3461
|
-
return
|
|
3461
|
+
return A;
|
|
3462
3462
|
}
|
|
3463
3463
|
function gn() {
|
|
3464
|
-
const { currentType: l, offset: d, startLoc:
|
|
3465
|
-
return c.lastType = l, c.lastOffset = d, c.lastStartLoc =
|
|
3464
|
+
const { currentType: l, offset: d, startLoc: A, endLoc: w } = c;
|
|
3465
|
+
return c.lastType = l, c.lastOffset = d, c.lastStartLoc = A, c.lastEndLoc = w, c.offset = s(), c.startLoc = o(), r.currentChar() === Re ? m(
|
|
3466
3466
|
c,
|
|
3467
3467
|
13
|
|
3468
3468
|
/* TokenTypes.EOF */
|
|
@@ -3494,87 +3494,87 @@ function Ic(e, t, n) {
|
|
|
3494
3494
|
}
|
|
3495
3495
|
function Pc(e = {}) {
|
|
3496
3496
|
const t = e.location !== !1, { onError: n } = e;
|
|
3497
|
-
function r(_, O,
|
|
3497
|
+
function r(_, O, T, y, ...v) {
|
|
3498
3498
|
const C = _.currentPosition();
|
|
3499
3499
|
if (C.offset += y, C.column += y, n) {
|
|
3500
|
-
const h = t ? Kn(
|
|
3500
|
+
const h = t ? Kn(T, C) : null, x = ct(O, h, {
|
|
3501
3501
|
domain: Lc,
|
|
3502
3502
|
args: v
|
|
3503
3503
|
});
|
|
3504
3504
|
n(x);
|
|
3505
3505
|
}
|
|
3506
3506
|
}
|
|
3507
|
-
function s(_, O,
|
|
3507
|
+
function s(_, O, T) {
|
|
3508
3508
|
const y = { type: _ };
|
|
3509
|
-
return t && (y.start = O, y.end = O, y.loc = { start:
|
|
3509
|
+
return t && (y.start = O, y.end = O, y.loc = { start: T, end: T }), y;
|
|
3510
3510
|
}
|
|
3511
|
-
function o(_, O,
|
|
3512
|
-
t && (_.end = O, _.loc && (_.loc.end =
|
|
3511
|
+
function o(_, O, T, y) {
|
|
3512
|
+
t && (_.end = O, _.loc && (_.loc.end = T));
|
|
3513
3513
|
}
|
|
3514
3514
|
function i(_, O) {
|
|
3515
|
-
const
|
|
3515
|
+
const T = _.context(), y = s(3, T.offset, T.startLoc);
|
|
3516
3516
|
return y.value = O.replace(vc, Cc), o(y, _.currentOffset(), _.currentPosition()), y;
|
|
3517
3517
|
}
|
|
3518
3518
|
function a(_, O) {
|
|
3519
|
-
const
|
|
3519
|
+
const T = _.context(), { lastOffset: y, lastStartLoc: v } = T, C = s(5, y, v);
|
|
3520
3520
|
return C.index = parseInt(O, 10), _.nextToken(), o(C, _.currentOffset(), _.currentPosition()), C;
|
|
3521
3521
|
}
|
|
3522
3522
|
function c(_, O) {
|
|
3523
|
-
const
|
|
3523
|
+
const T = _.context(), { lastOffset: y, lastStartLoc: v } = T, C = s(4, y, v);
|
|
3524
3524
|
return C.key = O, _.nextToken(), o(C, _.currentOffset(), _.currentPosition()), C;
|
|
3525
3525
|
}
|
|
3526
3526
|
function u(_, O) {
|
|
3527
|
-
const
|
|
3527
|
+
const T = _.context(), { lastOffset: y, lastStartLoc: v } = T, C = s(9, y, v);
|
|
3528
3528
|
return C.value = O.replace(Rc, Ic), _.nextToken(), o(C, _.currentOffset(), _.currentPosition()), C;
|
|
3529
3529
|
}
|
|
3530
3530
|
function f(_) {
|
|
3531
|
-
const O = _.nextToken(),
|
|
3532
|
-
return O.type !== 11 ? (r(_, F.UNEXPECTED_EMPTY_LINKED_MODIFIER,
|
|
3531
|
+
const O = _.nextToken(), T = _.context(), { lastOffset: y, lastStartLoc: v } = T, C = s(8, y, v);
|
|
3532
|
+
return O.type !== 11 ? (r(_, F.UNEXPECTED_EMPTY_LINKED_MODIFIER, T.lastStartLoc, 0), C.value = "", o(C, y, v), {
|
|
3533
3533
|
nextConsumeToken: O,
|
|
3534
3534
|
node: C
|
|
3535
|
-
}) : (O.value == null && r(_, F.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
3535
|
+
}) : (O.value == null && r(_, F.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, Te(O)), C.value = O.value || "", o(C, _.currentOffset(), _.currentPosition()), {
|
|
3536
3536
|
node: C
|
|
3537
3537
|
});
|
|
3538
3538
|
}
|
|
3539
|
-
function
|
|
3540
|
-
const
|
|
3539
|
+
function p(_, O) {
|
|
3540
|
+
const T = _.context(), y = s(7, T.offset, T.startLoc);
|
|
3541
3541
|
return y.value = O, o(y, _.currentOffset(), _.currentPosition()), y;
|
|
3542
3542
|
}
|
|
3543
|
-
function
|
|
3544
|
-
const O = _.context(),
|
|
3543
|
+
function m(_) {
|
|
3544
|
+
const O = _.context(), T = s(6, O.offset, O.startLoc);
|
|
3545
3545
|
let y = _.nextToken();
|
|
3546
3546
|
if (y.type === 8) {
|
|
3547
3547
|
const v = f(_);
|
|
3548
|
-
|
|
3548
|
+
T.modifier = v.node, y = v.nextConsumeToken || _.nextToken();
|
|
3549
3549
|
}
|
|
3550
3550
|
switch (y.type !== 9 && r(_, F.UNEXPECTED_LEXICAL_ANALYSIS, O.lastStartLoc, 0, Te(y)), y = _.nextToken(), y.type === 2 && (y = _.nextToken()), y.type) {
|
|
3551
3551
|
case 10:
|
|
3552
|
-
y.value == null && r(_, F.UNEXPECTED_LEXICAL_ANALYSIS, O.lastStartLoc, 0, Te(y)),
|
|
3552
|
+
y.value == null && r(_, F.UNEXPECTED_LEXICAL_ANALYSIS, O.lastStartLoc, 0, Te(y)), T.key = p(_, y.value || "");
|
|
3553
3553
|
break;
|
|
3554
3554
|
case 4:
|
|
3555
|
-
y.value == null && r(_, F.UNEXPECTED_LEXICAL_ANALYSIS, O.lastStartLoc, 0, Te(y)),
|
|
3555
|
+
y.value == null && r(_, F.UNEXPECTED_LEXICAL_ANALYSIS, O.lastStartLoc, 0, Te(y)), T.key = c(_, y.value || "");
|
|
3556
3556
|
break;
|
|
3557
3557
|
case 5:
|
|
3558
|
-
y.value == null && r(_, F.UNEXPECTED_LEXICAL_ANALYSIS, O.lastStartLoc, 0, Te(y)),
|
|
3558
|
+
y.value == null && r(_, F.UNEXPECTED_LEXICAL_ANALYSIS, O.lastStartLoc, 0, Te(y)), T.key = a(_, y.value || "");
|
|
3559
3559
|
break;
|
|
3560
3560
|
case 6:
|
|
3561
|
-
y.value == null && r(_, F.UNEXPECTED_LEXICAL_ANALYSIS, O.lastStartLoc, 0, Te(y)),
|
|
3561
|
+
y.value == null && r(_, F.UNEXPECTED_LEXICAL_ANALYSIS, O.lastStartLoc, 0, Te(y)), T.key = u(_, y.value || "");
|
|
3562
3562
|
break;
|
|
3563
3563
|
default: {
|
|
3564
3564
|
r(_, F.UNEXPECTED_EMPTY_LINKED_KEY, O.lastStartLoc, 0);
|
|
3565
3565
|
const v = _.context(), C = s(7, v.offset, v.startLoc);
|
|
3566
|
-
return C.value = "", o(C, v.offset, v.startLoc),
|
|
3566
|
+
return C.value = "", o(C, v.offset, v.startLoc), T.key = C, o(T, v.offset, v.startLoc), {
|
|
3567
3567
|
nextConsumeToken: y,
|
|
3568
|
-
node:
|
|
3568
|
+
node: T
|
|
3569
3569
|
};
|
|
3570
3570
|
}
|
|
3571
3571
|
}
|
|
3572
|
-
return o(
|
|
3573
|
-
node:
|
|
3572
|
+
return o(T, _.currentOffset(), _.currentPosition()), {
|
|
3573
|
+
node: T
|
|
3574
3574
|
};
|
|
3575
3575
|
}
|
|
3576
|
-
function
|
|
3577
|
-
const O = _.context(),
|
|
3576
|
+
function L(_) {
|
|
3577
|
+
const O = _.context(), T = O.currentType === 1 ? _.currentOffset() : O.offset, y = O.currentType === 1 ? O.endLoc : O.startLoc, v = s(2, T, y);
|
|
3578
3578
|
v.items = [];
|
|
3579
3579
|
let C = null;
|
|
3580
3580
|
do {
|
|
@@ -3593,7 +3593,7 @@ function Pc(e = {}) {
|
|
|
3593
3593
|
M.value == null && r(_, F.UNEXPECTED_LEXICAL_ANALYSIS, O.lastStartLoc, 0, Te(M)), v.items.push(u(_, M.value || ""));
|
|
3594
3594
|
break;
|
|
3595
3595
|
case 7: {
|
|
3596
|
-
const I =
|
|
3596
|
+
const I = m(_);
|
|
3597
3597
|
v.items.push(I.node), C = I.nextConsumeToken || null;
|
|
3598
3598
|
break;
|
|
3599
3599
|
}
|
|
@@ -3602,24 +3602,24 @@ function Pc(e = {}) {
|
|
|
3602
3602
|
const h = O.currentType === 1 ? O.lastOffset : _.currentOffset(), x = O.currentType === 1 ? O.lastEndLoc : _.currentPosition();
|
|
3603
3603
|
return o(v, h, x), v;
|
|
3604
3604
|
}
|
|
3605
|
-
function
|
|
3605
|
+
function E(_, O, T, y) {
|
|
3606
3606
|
const v = _.context();
|
|
3607
3607
|
let C = y.items.length === 0;
|
|
3608
|
-
const h = s(1, O,
|
|
3608
|
+
const h = s(1, O, T);
|
|
3609
3609
|
h.cases = [], h.cases.push(y);
|
|
3610
3610
|
do {
|
|
3611
|
-
const x =
|
|
3611
|
+
const x = L(_);
|
|
3612
3612
|
C || (C = x.items.length === 0), h.cases.push(x);
|
|
3613
3613
|
} while (v.currentType !== 13);
|
|
3614
|
-
return C && r(_, F.MUST_HAVE_MESSAGES_IN_PLURAL,
|
|
3614
|
+
return C && r(_, F.MUST_HAVE_MESSAGES_IN_PLURAL, T, 0), o(h, _.currentOffset(), _.currentPosition()), h;
|
|
3615
3615
|
}
|
|
3616
3616
|
function b(_) {
|
|
3617
|
-
const O = _.context(), { offset:
|
|
3618
|
-
return O.currentType === 13 ? v :
|
|
3617
|
+
const O = _.context(), { offset: T, startLoc: y } = O, v = L(_);
|
|
3618
|
+
return O.currentType === 13 ? v : E(_, T, y, v);
|
|
3619
3619
|
}
|
|
3620
3620
|
function N(_) {
|
|
3621
|
-
const O = Ac(_, re({}, e)),
|
|
3622
|
-
return t && y.loc && (y.loc.source = _), y.body = b(O), e.onCacheKey && (y.cacheKey = e.onCacheKey(_)),
|
|
3621
|
+
const O = Ac(_, re({}, e)), T = O.context(), y = s(0, T.offset, T.startLoc);
|
|
3622
|
+
return t && y.loc && (y.loc.source = _), y.body = b(O), e.onCacheKey && (y.cacheKey = e.onCacheKey(_)), T.currentType !== 13 && r(O, F.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, _[T.offset] || ""), o(y, O.currentOffset(), O.currentPosition()), y;
|
|
3623
3623
|
}
|
|
3624
3624
|
return { parse: N };
|
|
3625
3625
|
}
|
|
@@ -3795,19 +3795,19 @@ function Mc(e, t) {
|
|
|
3795
3795
|
const N = ++i.indentLevel;
|
|
3796
3796
|
b && u(N);
|
|
3797
3797
|
}
|
|
3798
|
-
function
|
|
3798
|
+
function p(b = !0) {
|
|
3799
3799
|
const N = --i.indentLevel;
|
|
3800
3800
|
b && u(N);
|
|
3801
3801
|
}
|
|
3802
|
-
function
|
|
3802
|
+
function m() {
|
|
3803
3803
|
u(i.indentLevel);
|
|
3804
3804
|
}
|
|
3805
3805
|
return {
|
|
3806
3806
|
context: a,
|
|
3807
3807
|
push: c,
|
|
3808
3808
|
indent: f,
|
|
3809
|
-
deindent:
|
|
3810
|
-
newline:
|
|
3809
|
+
deindent: p,
|
|
3810
|
+
newline: m,
|
|
3811
3811
|
helper: (b) => `_${b}`,
|
|
3812
3812
|
needIndent: () => i.needIndent
|
|
3813
3813
|
};
|
|
@@ -4406,55 +4406,55 @@ function hl(e) {
|
|
|
4406
4406
|
}
|
|
4407
4407
|
function El(e) {
|
|
4408
4408
|
const t = [];
|
|
4409
|
-
let n = -1, r = 0, s = 0, o, i, a, c, u, f,
|
|
4410
|
-
const
|
|
4411
|
-
|
|
4409
|
+
let n = -1, r = 0, s = 0, o, i, a, c, u, f, p;
|
|
4410
|
+
const m = [];
|
|
4411
|
+
m[
|
|
4412
4412
|
0
|
|
4413
4413
|
/* Actions.APPEND */
|
|
4414
4414
|
] = () => {
|
|
4415
4415
|
i === void 0 ? i = a : i += a;
|
|
4416
|
-
},
|
|
4416
|
+
}, m[
|
|
4417
4417
|
1
|
|
4418
4418
|
/* Actions.PUSH */
|
|
4419
4419
|
] = () => {
|
|
4420
4420
|
i !== void 0 && (t.push(i), i = void 0);
|
|
4421
|
-
},
|
|
4421
|
+
}, m[
|
|
4422
4422
|
2
|
|
4423
4423
|
/* Actions.INC_SUB_PATH_DEPTH */
|
|
4424
4424
|
] = () => {
|
|
4425
|
-
|
|
4425
|
+
m[
|
|
4426
4426
|
0
|
|
4427
4427
|
/* Actions.APPEND */
|
|
4428
4428
|
](), s++;
|
|
4429
|
-
},
|
|
4429
|
+
}, m[
|
|
4430
4430
|
3
|
|
4431
4431
|
/* Actions.PUSH_SUB_PATH */
|
|
4432
4432
|
] = () => {
|
|
4433
4433
|
if (s > 0)
|
|
4434
|
-
s--, r = 4,
|
|
4434
|
+
s--, r = 4, m[
|
|
4435
4435
|
0
|
|
4436
4436
|
/* Actions.APPEND */
|
|
4437
4437
|
]();
|
|
4438
4438
|
else {
|
|
4439
4439
|
if (s = 0, i === void 0 || (i = hl(i), i === !1))
|
|
4440
4440
|
return !1;
|
|
4441
|
-
|
|
4441
|
+
m[
|
|
4442
4442
|
1
|
|
4443
4443
|
/* Actions.PUSH */
|
|
4444
4444
|
]();
|
|
4445
4445
|
}
|
|
4446
4446
|
};
|
|
4447
|
-
function
|
|
4448
|
-
const
|
|
4449
|
-
if (r === 5 &&
|
|
4450
|
-
return n++, a = "\\" +
|
|
4447
|
+
function L() {
|
|
4448
|
+
const E = e[n + 1];
|
|
4449
|
+
if (r === 5 && E === "'" || r === 6 && E === '"')
|
|
4450
|
+
return n++, a = "\\" + E, m[
|
|
4451
4451
|
0
|
|
4452
4452
|
/* Actions.APPEND */
|
|
4453
4453
|
](), !0;
|
|
4454
4454
|
}
|
|
4455
4455
|
for (; r !== null; )
|
|
4456
|
-
if (n++, o = e[n], !(o === "\\" &&
|
|
4457
|
-
if (c = _l(o),
|
|
4456
|
+
if (n++, o = e[n], !(o === "\\" && L())) {
|
|
4457
|
+
if (c = _l(o), p = xe[r], u = p[c] || p.l || 8, u === 8 || (r = u[0], u[1] !== void 0 && (f = m[u[1]], f && (a = o, f() === !1))))
|
|
4458
4458
|
return;
|
|
4459
4459
|
if (r === 7)
|
|
4460
4460
|
return t;
|
|
@@ -4537,7 +4537,7 @@ const ds = (e) => {
|
|
|
4537
4537
|
}, vl = () => Lo;
|
|
4538
4538
|
let ps = 0;
|
|
4539
4539
|
function Cl(e = {}) {
|
|
4540
|
-
const t = G(e.onWarn) ? e.onWarn : Le, n = D(e.version) ? e.version : Nl, r = D(e.locale) || G(e.locale) ? e.locale : Gt, s = G(r) ? Gt : r, o = J(e.fallbackLocale) || j(e.fallbackLocale) || D(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, i = j(e.messages) ? e.messages : In(s), a = j(e.datetimeFormats) ? e.datetimeFormats : In(s), c = j(e.numberFormats) ? e.numberFormats : In(s), u = re(H(), e.modifiers, Ol()), f = e.pluralRules || H(),
|
|
4540
|
+
const t = G(e.onWarn) ? e.onWarn : Le, n = D(e.version) ? e.version : Nl, r = D(e.locale) || G(e.locale) ? e.locale : Gt, s = G(r) ? Gt : r, o = J(e.fallbackLocale) || j(e.fallbackLocale) || D(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s, i = j(e.messages) ? e.messages : In(s), a = j(e.datetimeFormats) ? e.datetimeFormats : In(s), c = j(e.numberFormats) ? e.numberFormats : In(s), u = re(H(), e.modifiers, Ol()), f = e.pluralRules || H(), p = G(e.missing) ? e.missing : null, m = X(e.missingWarn) || Wt(e.missingWarn) ? e.missingWarn : !0, L = X(e.fallbackWarn) || Wt(e.fallbackWarn) ? e.fallbackWarn : !0, E = !!e.fallbackFormat, b = !!e.unresolving, N = G(e.postTranslation) ? e.postTranslation : null, _ = j(e.processor) ? e.processor : null, O = X(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, T = !!e.escapeParameter, y = G(e.messageCompiler) ? e.messageCompiler : Oo;
|
|
4541
4541
|
process.env.NODE_ENV !== "production" && G(e.messageCompiler) && nc(Ie(te.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
4542
4542
|
const v = G(e.messageResolver) ? e.messageResolver : So || gl, C = G(e.localeFallbacker) ? e.localeFallbacker : To || ll, h = B(e.fallbackContext) ? e.fallbackContext : void 0, x = e, M = B(x.__datetimeFormatters) ? x.__datetimeFormatters : /* @__PURE__ */ new Map(), I = B(x.__numberFormatters) ? x.__numberFormatters : /* @__PURE__ */ new Map(), P = B(x.__meta) ? x.__meta : {};
|
|
4543
4543
|
ps++;
|
|
@@ -4549,15 +4549,15 @@ function Cl(e = {}) {
|
|
|
4549
4549
|
messages: i,
|
|
4550
4550
|
modifiers: u,
|
|
4551
4551
|
pluralRules: f,
|
|
4552
|
-
missing:
|
|
4553
|
-
missingWarn:
|
|
4554
|
-
fallbackWarn:
|
|
4555
|
-
fallbackFormat:
|
|
4552
|
+
missing: p,
|
|
4553
|
+
missingWarn: m,
|
|
4554
|
+
fallbackWarn: L,
|
|
4555
|
+
fallbackFormat: E,
|
|
4556
4556
|
unresolving: b,
|
|
4557
4557
|
postTranslation: N,
|
|
4558
4558
|
processor: _,
|
|
4559
4559
|
warnHtmlMessage: O,
|
|
4560
|
-
escapeParameter:
|
|
4560
|
+
escapeParameter: T,
|
|
4561
4561
|
messageCompiler: y,
|
|
4562
4562
|
messageResolver: v,
|
|
4563
4563
|
localeFallbacker: C,
|
|
@@ -4619,18 +4619,18 @@ function _s(e, ...t) {
|
|
|
4619
4619
|
return process.env.NODE_ENV !== "production" && o(Ie(te.INVALID_DATE_ARGUMENT, {
|
|
4620
4620
|
value: String(t[0])
|
|
4621
4621
|
})), ot;
|
|
4622
|
-
const [c, u, f,
|
|
4622
|
+
const [c, u, f, p] = Qn(...t), m = X(f.missingWarn) ? f.missingWarn : e.missingWarn, L = X(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, E = !!f.part, b = hr(e, f), N = i(
|
|
4623
4623
|
e,
|
|
4624
4624
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
4625
4625
|
s,
|
|
4626
4626
|
b
|
|
4627
4627
|
);
|
|
4628
4628
|
if (!D(c) || c === "")
|
|
4629
|
-
return new Intl.DateTimeFormat(b.replace(/!/g, ""),
|
|
4630
|
-
let _ = {}, O,
|
|
4629
|
+
return new Intl.DateTimeFormat(b.replace(/!/g, ""), p).format(u);
|
|
4630
|
+
let _ = {}, O, T = null, y = b, v = null;
|
|
4631
4631
|
const C = "datetime format";
|
|
4632
4632
|
for (let M = 0; M < N.length; M++) {
|
|
4633
|
-
if (O = v = N[M], process.env.NODE_ENV !== "production" && b !== O && dn(
|
|
4633
|
+
if (O = v = N[M], process.env.NODE_ENV !== "production" && b !== O && dn(L, c) && o(Ie(te.FALLBACK_TO_DATE_FORMAT, {
|
|
4634
4634
|
key: c,
|
|
4635
4635
|
target: O
|
|
4636
4636
|
})), process.env.NODE_ENV !== "production" && b !== O) {
|
|
@@ -4643,16 +4643,16 @@ function _s(e, ...t) {
|
|
|
4643
4643
|
groupId: `${C}:${c}`
|
|
4644
4644
|
});
|
|
4645
4645
|
}
|
|
4646
|
-
if (_ = n[O] || {},
|
|
4646
|
+
if (_ = n[O] || {}, T = _[c], j(T))
|
|
4647
4647
|
break;
|
|
4648
|
-
Er(e, c, O,
|
|
4648
|
+
Er(e, c, O, m, C), y = v;
|
|
4649
4649
|
}
|
|
4650
|
-
if (!j(
|
|
4650
|
+
if (!j(T) || !D(O))
|
|
4651
4651
|
return r ? fn : c;
|
|
4652
4652
|
let h = `${O}__${c}`;
|
|
4653
|
-
un(
|
|
4653
|
+
un(p) || (h = `${h}__${JSON.stringify(p)}`);
|
|
4654
4654
|
let x = a.get(h);
|
|
4655
|
-
return x || (x = new Intl.DateTimeFormat(O, re({},
|
|
4655
|
+
return x || (x = new Intl.DateTimeFormat(O, re({}, T, p)), a.set(h, x)), E ? x.formatToParts(u) : x.format(u);
|
|
4656
4656
|
}
|
|
4657
4657
|
const Io = [
|
|
4658
4658
|
"localeMatcher",
|
|
@@ -4717,18 +4717,18 @@ function Es(e, ...t) {
|
|
|
4717
4717
|
return process.env.NODE_ENV !== "production" && o(Ie(te.INVALID_NUMBER_ARGUMENT, {
|
|
4718
4718
|
value: String(t[0])
|
|
4719
4719
|
})), ot;
|
|
4720
|
-
const [c, u, f,
|
|
4720
|
+
const [c, u, f, p] = zn(...t), m = X(f.missingWarn) ? f.missingWarn : e.missingWarn, L = X(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, E = !!f.part, b = hr(e, f), N = i(
|
|
4721
4721
|
e,
|
|
4722
4722
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
4723
4723
|
s,
|
|
4724
4724
|
b
|
|
4725
4725
|
);
|
|
4726
4726
|
if (!D(c) || c === "")
|
|
4727
|
-
return new Intl.NumberFormat(b.replace(/!/g, ""),
|
|
4728
|
-
let _ = {}, O,
|
|
4727
|
+
return new Intl.NumberFormat(b.replace(/!/g, ""), p).format(u);
|
|
4728
|
+
let _ = {}, O, T = null, y = b, v = null;
|
|
4729
4729
|
const C = "number format";
|
|
4730
4730
|
for (let M = 0; M < N.length; M++) {
|
|
4731
|
-
if (O = v = N[M], process.env.NODE_ENV !== "production" && b !== O && dn(
|
|
4731
|
+
if (O = v = N[M], process.env.NODE_ENV !== "production" && b !== O && dn(L, c) && o(Ie(te.FALLBACK_TO_NUMBER_FORMAT, {
|
|
4732
4732
|
key: c,
|
|
4733
4733
|
target: O
|
|
4734
4734
|
})), process.env.NODE_ENV !== "production" && b !== O) {
|
|
@@ -4741,16 +4741,16 @@ function Es(e, ...t) {
|
|
|
4741
4741
|
groupId: `${C}:${c}`
|
|
4742
4742
|
});
|
|
4743
4743
|
}
|
|
4744
|
-
if (_ = n[O] || {},
|
|
4744
|
+
if (_ = n[O] || {}, T = _[c], j(T))
|
|
4745
4745
|
break;
|
|
4746
|
-
Er(e, c, O,
|
|
4746
|
+
Er(e, c, O, m, C), y = v;
|
|
4747
4747
|
}
|
|
4748
|
-
if (!j(
|
|
4748
|
+
if (!j(T) || !D(O))
|
|
4749
4749
|
return r ? fn : c;
|
|
4750
4750
|
let h = `${O}__${c}`;
|
|
4751
|
-
un(
|
|
4751
|
+
un(p) || (h = `${h}__${JSON.stringify(p)}`);
|
|
4752
4752
|
let x = a.get(h);
|
|
4753
|
-
return x || (x = new Intl.NumberFormat(O, re({},
|
|
4753
|
+
return x || (x = new Intl.NumberFormat(O, re({}, T, p)), a.set(h, x)), E ? x.formatToParts(u) : x.format(u);
|
|
4754
4754
|
}
|
|
4755
4755
|
const Po = [
|
|
4756
4756
|
"localeMatcher",
|
|
@@ -4804,41 +4804,41 @@ function Ml(e = {}) {
|
|
|
4804
4804
|
ne(e.pluralIndex) && (c.count ||= e.pluralIndex, c.n ||= e.pluralIndex);
|
|
4805
4805
|
const u = (_) => c[_];
|
|
4806
4806
|
function f(_, O) {
|
|
4807
|
-
const
|
|
4808
|
-
return
|
|
4807
|
+
const T = G(e.messages) ? e.messages(_, !!O) : B(e.messages) ? e.messages[_] : !1;
|
|
4808
|
+
return T || (e.parent ? e.parent.message(_) : wl);
|
|
4809
4809
|
}
|
|
4810
|
-
const
|
|
4810
|
+
const p = (_) => e.modifiers ? e.modifiers[_] : Pl, m = G(e.processor?.normalize) ? e.processor.normalize : kl, L = G(e.processor?.interpolate) ? e.processor.interpolate : Fl, E = D(e.processor?.type) ? e.processor.type : Dl, N = {
|
|
4811
4811
|
list: a,
|
|
4812
4812
|
named: u,
|
|
4813
4813
|
plural: o,
|
|
4814
4814
|
linked: (_, ...O) => {
|
|
4815
|
-
const [
|
|
4815
|
+
const [T, y] = O;
|
|
4816
4816
|
let v = "text", C = "";
|
|
4817
|
-
O.length === 1 ? B(
|
|
4817
|
+
O.length === 1 ? B(T) ? (C = T.modifier || C, v = T.type || v) : D(T) && (C = T || C) : O.length === 2 && (D(T) && (C = T || C), D(y) && (v = y || v));
|
|
4818
4818
|
const h = f(_, !0)(N), x = h === "" || h === void 0 ? _ : h, M = (
|
|
4819
4819
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
4820
4820
|
v === "vnode" && J(x) && C ? x[0] : x
|
|
4821
4821
|
);
|
|
4822
|
-
return C ?
|
|
4822
|
+
return C ? p(C)(M, v) : M;
|
|
4823
4823
|
},
|
|
4824
4824
|
message: f,
|
|
4825
|
-
type:
|
|
4826
|
-
interpolate:
|
|
4827
|
-
normalize:
|
|
4825
|
+
type: E,
|
|
4826
|
+
interpolate: L,
|
|
4827
|
+
normalize: m,
|
|
4828
4828
|
values: re(H(), i, c)
|
|
4829
4829
|
};
|
|
4830
4830
|
return N;
|
|
4831
4831
|
}
|
|
4832
4832
|
const bs = () => "", he = (e) => G(e);
|
|
4833
4833
|
function ys(e, ...t) {
|
|
4834
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: o, fallbackLocale: i, messages: a } = e, [c, u] = Zn(...t), f = X(u.missingWarn) ? u.missingWarn : e.missingWarn,
|
|
4835
|
-
|
|
4836
|
-
let [_, O,
|
|
4834
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: o, fallbackLocale: i, messages: a } = e, [c, u] = Zn(...t), f = X(u.missingWarn) ? u.missingWarn : e.missingWarn, p = X(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, m = X(u.escapeParameter) ? u.escapeParameter : e.escapeParameter, L = !!u.resolvedMessage, E = D(u.default) || X(u.default) ? X(u.default) ? o ? c : () => c : u.default : n ? o ? c : () => c : null, b = n || E != null && (D(E) || G(E)), N = hr(e, u);
|
|
4835
|
+
m && xl(u);
|
|
4836
|
+
let [_, O, T] = L ? [
|
|
4837
4837
|
c,
|
|
4838
4838
|
N,
|
|
4839
4839
|
a[N] || H()
|
|
4840
|
-
] : wo(e, c, N, i,
|
|
4841
|
-
if (!
|
|
4840
|
+
] : wo(e, c, N, i, p, f), y = _, v = c;
|
|
4841
|
+
if (!L && !(D(y) || be(y) || he(y)) && b && (y = E, v = y), !L && (!(D(y) || be(y) || he(y)) || !D(O)))
|
|
4842
4842
|
return s ? fn : c;
|
|
4843
4843
|
if (process.env.NODE_ENV !== "production" && D(y) && e.messageCompiler == null)
|
|
4844
4844
|
return Le(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${c}'.`), c;
|
|
@@ -4848,9 +4848,9 @@ function ys(e, ...t) {
|
|
|
4848
4848
|
}, x = he(y) ? y : Do(e, c, O, y, v, h);
|
|
4849
4849
|
if (C)
|
|
4850
4850
|
return y;
|
|
4851
|
-
const M = jl(e, O,
|
|
4851
|
+
const M = jl(e, O, T, u), I = Ml(M), P = Vl(e, x, I);
|
|
4852
4852
|
let k = r ? r(P, c) : P;
|
|
4853
|
-
if (
|
|
4853
|
+
if (m && D(k) && (k = ac(k)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
4854
4854
|
const q = {
|
|
4855
4855
|
timestamp: Date.now(),
|
|
4856
4856
|
key: D(c) ? c : he(y) ? y.key : "",
|
|
@@ -4869,74 +4869,74 @@ function xl(e) {
|
|
|
4869
4869
|
}
|
|
4870
4870
|
function wo(e, t, n, r, s, o) {
|
|
4871
4871
|
const { messages: i, onWarn: a, messageResolver: c, localeFallbacker: u } = e, f = u(e, r, n);
|
|
4872
|
-
let
|
|
4872
|
+
let p = H(), m, L = null, E = n, b = null;
|
|
4873
4873
|
const N = "translate";
|
|
4874
4874
|
for (let _ = 0; _ < f.length; _++) {
|
|
4875
|
-
if (
|
|
4875
|
+
if (m = b = f[_], process.env.NODE_ENV !== "production" && n !== m && !vo(n, m) && dn(s, t) && a(Ie(te.FALLBACK_TO_TRANSLATE, {
|
|
4876
4876
|
key: t,
|
|
4877
|
-
target:
|
|
4878
|
-
})), process.env.NODE_ENV !== "production" && n !==
|
|
4877
|
+
target: m
|
|
4878
|
+
})), process.env.NODE_ENV !== "production" && n !== m) {
|
|
4879
4879
|
const v = e.__v_emitter;
|
|
4880
4880
|
v && v.emit("fallback", {
|
|
4881
4881
|
type: N,
|
|
4882
4882
|
key: t,
|
|
4883
|
-
from:
|
|
4883
|
+
from: E,
|
|
4884
4884
|
to: b,
|
|
4885
4885
|
groupId: `${N}:${t}`
|
|
4886
4886
|
});
|
|
4887
4887
|
}
|
|
4888
|
-
|
|
4889
|
-
let O = null,
|
|
4890
|
-
if (process.env.NODE_ENV !== "production" && Pe && (O = window.performance.now(),
|
|
4888
|
+
p = i[m] || H();
|
|
4889
|
+
let O = null, T, y;
|
|
4890
|
+
if (process.env.NODE_ENV !== "production" && Pe && (O = window.performance.now(), T = "intlify-message-resolve-start", y = "intlify-message-resolve-end", de && de(T)), (L = c(p, t)) === null && (L = p[t]), process.env.NODE_ENV !== "production" && Pe) {
|
|
4891
4891
|
const v = window.performance.now(), C = e.__v_emitter;
|
|
4892
|
-
C && O &&
|
|
4892
|
+
C && O && L && C.emit("message-resolve", {
|
|
4893
4893
|
type: "message-resolve",
|
|
4894
4894
|
key: t,
|
|
4895
|
-
message:
|
|
4895
|
+
message: L,
|
|
4896
4896
|
time: v - O,
|
|
4897
4897
|
groupId: `${N}:${t}`
|
|
4898
|
-
}),
|
|
4898
|
+
}), T && y && de && Je && (de(y), Je("intlify message resolve", T, y));
|
|
4899
4899
|
}
|
|
4900
|
-
if (D(
|
|
4900
|
+
if (D(L) || be(L) || he(L))
|
|
4901
4901
|
break;
|
|
4902
|
-
if (!Il(
|
|
4902
|
+
if (!Il(m, f)) {
|
|
4903
4903
|
const v = Er(
|
|
4904
4904
|
e,
|
|
4905
4905
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
4906
4906
|
t,
|
|
4907
|
-
|
|
4907
|
+
m,
|
|
4908
4908
|
o,
|
|
4909
4909
|
N
|
|
4910
4910
|
);
|
|
4911
|
-
v !== t && (
|
|
4911
|
+
v !== t && (L = v);
|
|
4912
4912
|
}
|
|
4913
|
-
|
|
4913
|
+
E = b;
|
|
4914
4914
|
}
|
|
4915
|
-
return [
|
|
4915
|
+
return [L, m, p];
|
|
4916
4916
|
}
|
|
4917
4917
|
function Do(e, t, n, r, s, o) {
|
|
4918
4918
|
const { messageCompiler: i, warnHtmlMessage: a } = e;
|
|
4919
4919
|
if (he(r)) {
|
|
4920
|
-
const
|
|
4921
|
-
return
|
|
4920
|
+
const m = r;
|
|
4921
|
+
return m.locale = m.locale || n, m.key = m.key || t, m;
|
|
4922
4922
|
}
|
|
4923
4923
|
if (i == null) {
|
|
4924
|
-
const
|
|
4925
|
-
return
|
|
4924
|
+
const m = (() => r);
|
|
4925
|
+
return m.locale = n, m.key = t, m;
|
|
4926
4926
|
}
|
|
4927
4927
|
let c = null, u, f;
|
|
4928
4928
|
process.env.NODE_ENV !== "production" && Pe && (c = window.performance.now(), u = "intlify-message-compilation-start", f = "intlify-message-compilation-end", de && de(u));
|
|
4929
|
-
const
|
|
4929
|
+
const p = i(r, $l(e, n, s, r, a, o));
|
|
4930
4930
|
if (process.env.NODE_ENV !== "production" && Pe) {
|
|
4931
|
-
const
|
|
4932
|
-
|
|
4931
|
+
const m = window.performance.now(), L = e.__v_emitter;
|
|
4932
|
+
L && c && L.emit("message-compilation", {
|
|
4933
4933
|
type: "message-compilation",
|
|
4934
4934
|
message: r,
|
|
4935
|
-
time:
|
|
4935
|
+
time: m - c,
|
|
4936
4936
|
groupId: `translate:${t}`
|
|
4937
4937
|
}), u && f && de && Je && (de(f), Je("intlify message compilation", u, f));
|
|
4938
4938
|
}
|
|
4939
|
-
return
|
|
4939
|
+
return p.locale = n, p.key = t, p.source = r, p;
|
|
4940
4940
|
}
|
|
4941
4941
|
function Vl(e, t, n) {
|
|
4942
4942
|
let r = null, s, o;
|
|
@@ -4991,34 +4991,34 @@ function Bl(e) {
|
|
|
4991
4991
|
return e.loc.source;
|
|
4992
4992
|
}
|
|
4993
4993
|
function jl(e, t, n, r) {
|
|
4994
|
-
const { modifiers: s, pluralRules: o, messageResolver: i, fallbackLocale: a, fallbackWarn: c, missingWarn: u, fallbackContext: f } = e,
|
|
4994
|
+
const { modifiers: s, pluralRules: o, messageResolver: i, fallbackLocale: a, fallbackWarn: c, missingWarn: u, fallbackContext: f } = e, m = {
|
|
4995
4995
|
locale: t,
|
|
4996
4996
|
modifiers: s,
|
|
4997
4997
|
pluralRules: o,
|
|
4998
|
-
messages: (
|
|
4999
|
-
let b = i(n,
|
|
5000
|
-
if (b == null && (f ||
|
|
4998
|
+
messages: (L, E) => {
|
|
4999
|
+
let b = i(n, L);
|
|
5000
|
+
if (b == null && (f || E)) {
|
|
5001
5001
|
const [, , N] = wo(
|
|
5002
5002
|
f || e,
|
|
5003
5003
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
5004
|
-
|
|
5004
|
+
L,
|
|
5005
5005
|
t,
|
|
5006
5006
|
a,
|
|
5007
5007
|
c,
|
|
5008
5008
|
u
|
|
5009
5009
|
);
|
|
5010
|
-
b = i(N,
|
|
5010
|
+
b = i(N, L);
|
|
5011
5011
|
}
|
|
5012
5012
|
if (D(b) || be(b)) {
|
|
5013
5013
|
let N = !1;
|
|
5014
|
-
const O = Do(e,
|
|
5014
|
+
const O = Do(e, L, t, b, L, () => {
|
|
5015
5015
|
N = !0;
|
|
5016
5016
|
});
|
|
5017
5017
|
return N ? bs : O;
|
|
5018
5018
|
} else return he(b) ? b : bs;
|
|
5019
5019
|
}
|
|
5020
5020
|
};
|
|
5021
|
-
return e.processor && (
|
|
5021
|
+
return e.processor && (m.processor = e.processor), r.list && (m.list = r.list), r.named && (m.named = r.named), ne(r.plural) && (m.pluralIndex = r.plural), m;
|
|
5022
5022
|
}
|
|
5023
5023
|
qc();
|
|
5024
5024
|
const Hl = "11.3.0";
|
|
@@ -5190,8 +5190,8 @@ function Ql(e = {}) {
|
|
|
5190
5190
|
), c = o(
|
|
5191
5191
|
// prettier-ignore
|
|
5192
5192
|
t && i ? t.fallbackLocale.value : D(e.fallbackLocale) || J(e.fallbackLocale) || j(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a.value
|
|
5193
|
-
), u = o(Fo(a.value, e)), f = o(j(e.datetimeFormats) ? e.datetimeFormats : { [a.value]: {} }),
|
|
5194
|
-
let
|
|
5193
|
+
), u = o(Fo(a.value, e)), f = o(j(e.datetimeFormats) ? e.datetimeFormats : { [a.value]: {} }), p = o(j(e.numberFormats) ? e.numberFormats : { [a.value]: {} });
|
|
5194
|
+
let m = t ? t.missingWarn : X(e.missingWarn) || Wt(e.missingWarn) ? e.missingWarn : !0, L = t ? t.fallbackWarn : X(e.fallbackWarn) || Wt(e.fallbackWarn) ? e.fallbackWarn : !0, E = t ? t.fallbackRoot : X(e.fallbackRoot) ? e.fallbackRoot : !0, b = !!e.fallbackFormat, N = G(e.missing) ? e.missing : null, _ = G(e.missing) ? As(e.missing) : null, O = G(e.postTranslation) ? e.postTranslation : null, T = t ? t.warnHtmlMessage : X(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, y = !!e.escapeParameter;
|
|
5195
5195
|
const v = t ? t.modifiers : j(e.modifiers) ? e.modifiers : {};
|
|
5196
5196
|
let C = e.pluralRules || t && t.pluralRules, h;
|
|
5197
5197
|
h = (() => {
|
|
@@ -5204,18 +5204,18 @@ function Ql(e = {}) {
|
|
|
5204
5204
|
modifiers: v,
|
|
5205
5205
|
pluralRules: C,
|
|
5206
5206
|
missing: _ === null ? void 0 : _,
|
|
5207
|
-
missingWarn:
|
|
5208
|
-
fallbackWarn:
|
|
5207
|
+
missingWarn: m,
|
|
5208
|
+
fallbackWarn: L,
|
|
5209
5209
|
fallbackFormat: b,
|
|
5210
5210
|
unresolving: !0,
|
|
5211
5211
|
postTranslation: O === null ? void 0 : O,
|
|
5212
|
-
warnHtmlMessage:
|
|
5212
|
+
warnHtmlMessage: T,
|
|
5213
5213
|
escapeParameter: y,
|
|
5214
5214
|
messageResolver: e.messageResolver,
|
|
5215
5215
|
messageCompiler: e.messageCompiler,
|
|
5216
5216
|
__meta: { framework: "vue" }
|
|
5217
5217
|
};
|
|
5218
|
-
S.datetimeFormats = f.value, S.numberFormats =
|
|
5218
|
+
S.datetimeFormats = f.value, S.numberFormats = p.value, S.__datetimeFormatters = j(h) ? h.__datetimeFormatters : void 0, S.__numberFormatters = j(h) ? h.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (S.__v_emitter = j(h) ? h.__v_emitter : void 0);
|
|
5219
5219
|
const R = Cl(S);
|
|
5220
5220
|
return r && ds(R), R;
|
|
5221
5221
|
})(), pt(h, a.value, c.value);
|
|
@@ -5225,7 +5225,7 @@ function Ql(e = {}) {
|
|
|
5225
5225
|
c.value,
|
|
5226
5226
|
u.value,
|
|
5227
5227
|
f.value,
|
|
5228
|
-
|
|
5228
|
+
p.value
|
|
5229
5229
|
];
|
|
5230
5230
|
}
|
|
5231
5231
|
const I = Ue({
|
|
@@ -5238,7 +5238,7 @@ function Ql(e = {}) {
|
|
|
5238
5238
|
set: (S) => {
|
|
5239
5239
|
h.fallbackLocale = S, c.value = S, pt(h, a.value, S);
|
|
5240
5240
|
}
|
|
5241
|
-
}), k = Ue(() => u.value), q = /* @__PURE__ */ Ue(() => f.value), se = /* @__PURE__ */ Ue(() =>
|
|
5241
|
+
}), k = Ue(() => u.value), q = /* @__PURE__ */ Ue(() => f.value), se = /* @__PURE__ */ Ue(() => p.value);
|
|
5242
5242
|
function Ne() {
|
|
5243
5243
|
return G(O) ? O : null;
|
|
5244
5244
|
}
|
|
@@ -5265,19 +5265,19 @@ function Ql(e = {}) {
|
|
|
5265
5265
|
if ($ !== "translate exists" && // for not `te` (e.g `t`)
|
|
5266
5266
|
ne(pe) && pe === fn || $ === "translate exists" && !pe) {
|
|
5267
5267
|
const [He, Vo] = R();
|
|
5268
|
-
if (process.env.NODE_ENV !== "production" && t && D(He) && Z($, Vo) && (
|
|
5268
|
+
if (process.env.NODE_ENV !== "production" && t && D(He) && Z($, Vo) && (E && (dn(L, He) || Ro(m, He)) && Le(Yt(Ae.FALLBACK_TO_ROOT, {
|
|
5269
5269
|
key: He,
|
|
5270
5270
|
type: $
|
|
5271
5271
|
})), process.env.NODE_ENV !== "production")) {
|
|
5272
5272
|
const { __v_emitter: Nr } = h;
|
|
5273
|
-
Nr &&
|
|
5273
|
+
Nr && E && Nr.emit("fallback", {
|
|
5274
5274
|
type: $,
|
|
5275
5275
|
key: He,
|
|
5276
5276
|
to: "global",
|
|
5277
5277
|
groupId: `${$}:${He}`
|
|
5278
5278
|
});
|
|
5279
5279
|
}
|
|
5280
|
-
return t &&
|
|
5280
|
+
return t && E ? Y(t) : Be(He);
|
|
5281
5281
|
} else {
|
|
5282
5282
|
if (je(pe))
|
|
5283
5283
|
return pe;
|
|
@@ -5384,17 +5384,17 @@ function Ql(e = {}) {
|
|
|
5384
5384
|
function d(S, R) {
|
|
5385
5385
|
f.value[S] = R, h.datetimeFormats = f.value, hs(h, S, R);
|
|
5386
5386
|
}
|
|
5387
|
-
function
|
|
5387
|
+
function A(S, R) {
|
|
5388
5388
|
f.value[S] = re(f.value[S] || {}, R), h.datetimeFormats = f.value, hs(h, S, R);
|
|
5389
5389
|
}
|
|
5390
5390
|
function w(S) {
|
|
5391
|
-
return
|
|
5391
|
+
return p.value[S] || {};
|
|
5392
5392
|
}
|
|
5393
5393
|
function W(S, R) {
|
|
5394
|
-
|
|
5394
|
+
p.value[S] = R, h.numberFormats = p.value, gs(h, S, R);
|
|
5395
5395
|
}
|
|
5396
5396
|
function K(S, R) {
|
|
5397
|
-
|
|
5397
|
+
p.value[S] = re(p.value[S] || {}, R), h.numberFormats = p.value, gs(h, S, R);
|
|
5398
5398
|
}
|
|
5399
5399
|
Ts++, t && Pe && (Dn(t.locale, (S) => {
|
|
5400
5400
|
i && (a.value = S, h.locale = S, pt(h, a.value, c.value));
|
|
@@ -5425,22 +5425,22 @@ function Ql(e = {}) {
|
|
|
5425
5425
|
return r;
|
|
5426
5426
|
},
|
|
5427
5427
|
get missingWarn() {
|
|
5428
|
-
return
|
|
5428
|
+
return m;
|
|
5429
5429
|
},
|
|
5430
5430
|
set missingWarn(S) {
|
|
5431
|
-
|
|
5431
|
+
m = S, h.missingWarn = m;
|
|
5432
5432
|
},
|
|
5433
5433
|
get fallbackWarn() {
|
|
5434
|
-
return
|
|
5434
|
+
return L;
|
|
5435
5435
|
},
|
|
5436
5436
|
set fallbackWarn(S) {
|
|
5437
|
-
|
|
5437
|
+
L = S, h.fallbackWarn = L;
|
|
5438
5438
|
},
|
|
5439
5439
|
get fallbackRoot() {
|
|
5440
|
-
return
|
|
5440
|
+
return E;
|
|
5441
5441
|
},
|
|
5442
5442
|
set fallbackRoot(S) {
|
|
5443
|
-
|
|
5443
|
+
E = S;
|
|
5444
5444
|
},
|
|
5445
5445
|
get fallbackFormat() {
|
|
5446
5446
|
return b;
|
|
@@ -5449,10 +5449,10 @@ function Ql(e = {}) {
|
|
|
5449
5449
|
b = S, h.fallbackFormat = b;
|
|
5450
5450
|
},
|
|
5451
5451
|
get warnHtmlMessage() {
|
|
5452
|
-
return
|
|
5452
|
+
return T;
|
|
5453
5453
|
},
|
|
5454
5454
|
set warnHtmlMessage(S) {
|
|
5455
|
-
|
|
5455
|
+
T = S, h.warnHtmlMessage = S;
|
|
5456
5456
|
},
|
|
5457
5457
|
get escapeParameter() {
|
|
5458
5458
|
return y;
|
|
@@ -5470,7 +5470,7 @@ function Ql(e = {}) {
|
|
|
5470
5470
|
setMissingHandler: ee,
|
|
5471
5471
|
[Gl]: hn
|
|
5472
5472
|
};
|
|
5473
|
-
return V.datetimeFormats = q, V.numberFormats = se, V.rt = Oe, V.te = En, V.tm = ut, V.d = Ve, V.n = Fe, V.getDateTimeFormat = l, V.setDateTimeFormat = d, V.mergeDateTimeFormat =
|
|
5473
|
+
return V.datetimeFormats = q, V.numberFormats = se, V.rt = Oe, V.te = En, V.tm = ut, V.d = Ve, V.n = Fe, V.getDateTimeFormat = l, V.setDateTimeFormat = d, V.mergeDateTimeFormat = A, V.getNumberFormat = w, V.setNumberFormat = W, V.mergeNumberFormat = K, V[ko] = n, V[er] = Lt, V[tr] = Rt, V[nr] = _n, process.env.NODE_ENV !== "production" && (V[rr] = (S) => {
|
|
5474
5474
|
h.__v_emitter = S;
|
|
5475
5475
|
}, V[sr] = () => {
|
|
5476
5476
|
h.__v_emitter = void 0;
|
|
@@ -5527,15 +5527,15 @@ function xo(e, t, n, r) {
|
|
|
5527
5527
|
return () => {
|
|
5528
5528
|
const i = { part: !0 };
|
|
5529
5529
|
let a = H();
|
|
5530
|
-
e.locale && (i.locale = e.locale), D(e.format) ? i.key = e.format : B(e.format) && (D(e.format.key) && (i.key = e.format.key), a = Object.keys(e.format).reduce((
|
|
5530
|
+
e.locale && (i.locale = e.locale), D(e.format) ? i.key = e.format : B(e.format) && (D(e.format.key) && (i.key = e.format.key), a = Object.keys(e.format).reduce((m, L) => n.includes(L) ? re(H(), m, { [L]: e.format[L] }) : m, H()));
|
|
5531
5531
|
const c = r(e.value, i, a);
|
|
5532
5532
|
let u = [i.key];
|
|
5533
|
-
J(c) ? u = c.map((
|
|
5534
|
-
const
|
|
5535
|
-
return Zl(b) && (b[0].key = `${
|
|
5533
|
+
J(c) ? u = c.map((m, L) => {
|
|
5534
|
+
const E = s[m.type], b = E ? E({ [m.type]: m.value, index: L, parts: c }) : [m.value];
|
|
5535
|
+
return Zl(b) && (b[0].key = `${m.type}-${L}`), b;
|
|
5536
5536
|
}) : D(c) && (u = [c]);
|
|
5537
|
-
const f = re(H(), o),
|
|
5538
|
-
return Ps(
|
|
5537
|
+
const f = re(H(), o), p = D(e.tag) || B(e.tag) ? e.tag : Mo();
|
|
5538
|
+
return Ps(p, f, u);
|
|
5539
5539
|
};
|
|
5540
5540
|
}
|
|
5541
5541
|
re({
|
|
@@ -5659,8 +5659,8 @@ function cu(e) {
|
|
|
5659
5659
|
__i18n: au().global
|
|
5660
5660
|
});
|
|
5661
5661
|
function s(...c) {
|
|
5662
|
-
const [u, f,
|
|
5663
|
-
return t(typeof f == "number" ? `${e}.${u}` : `${e}.${u}`, f,
|
|
5662
|
+
const [u, f, p] = c;
|
|
5663
|
+
return t(typeof f == "number" ? `${e}.${u}` : `${e}.${u}`, f, p);
|
|
5664
5664
|
}
|
|
5665
5665
|
function o(c) {
|
|
5666
5666
|
return n(`${e}.${c}`);
|
|
@@ -5685,49 +5685,49 @@ const lu = /* @__PURE__ */ new Set([
|
|
|
5685
5685
|
function uu(e) {
|
|
5686
5686
|
return Q.isAxiosError(e) && e.response?.status != null && lu.has(e.response.status);
|
|
5687
5687
|
}
|
|
5688
|
-
function fu(e
|
|
5689
|
-
const { t
|
|
5690
|
-
async function
|
|
5688
|
+
function fu(e) {
|
|
5689
|
+
const { t } = cu(e);
|
|
5690
|
+
async function n(p, m, L) {
|
|
5691
5691
|
try {
|
|
5692
|
-
return await Za(
|
|
5693
|
-
} catch (
|
|
5694
|
-
return uu(
|
|
5692
|
+
return await Za(p, m, L), !0;
|
|
5693
|
+
} catch (E) {
|
|
5694
|
+
return uu(E) ? E.response.data.error : t("validation.unknownError");
|
|
5695
5695
|
}
|
|
5696
5696
|
}
|
|
5697
|
-
function
|
|
5698
|
-
return p == null || p === "" ?
|
|
5697
|
+
function r(p) {
|
|
5698
|
+
return p == null || p === "" ? t("validation.required") : !0;
|
|
5699
5699
|
}
|
|
5700
|
-
function
|
|
5701
|
-
return typeof p != "string" || !/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(p) ?
|
|
5700
|
+
function s(p) {
|
|
5701
|
+
return typeof p != "string" || !/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(p) ? t("validation.email") : !0;
|
|
5702
5702
|
}
|
|
5703
|
-
function
|
|
5704
|
-
return p != null && p.length <
|
|
5703
|
+
function o(p, m) {
|
|
5704
|
+
return p != null && p.length < m ? t("validation.minLength", { min: m }) : !0;
|
|
5705
5705
|
}
|
|
5706
|
-
function
|
|
5707
|
-
return p != null && p.length >
|
|
5706
|
+
function i(p, m) {
|
|
5707
|
+
return p != null && p.length > m ? t("validation.maxLength", { max: m }) : !0;
|
|
5708
5708
|
}
|
|
5709
|
-
function
|
|
5710
|
-
return
|
|
5709
|
+
function a(p, m) {
|
|
5710
|
+
return m > p ? t("validation.min", { min: m }) : !0;
|
|
5711
5711
|
}
|
|
5712
|
-
function
|
|
5713
|
-
return p >
|
|
5712
|
+
function c(p, m) {
|
|
5713
|
+
return p > m ? t("validation.max", { max: m }) : !0;
|
|
5714
5714
|
}
|
|
5715
|
-
function
|
|
5716
|
-
return new RegExp(
|
|
5715
|
+
function u(p, m) {
|
|
5716
|
+
return new RegExp(m).test(p) ? !0 : t("validation.pattern", { pattern: m.toString() });
|
|
5717
5717
|
}
|
|
5718
|
-
function
|
|
5719
|
-
return p == null ? !0 : (typeof p == "object" ?
|
|
5718
|
+
function f(p, m) {
|
|
5719
|
+
return p == null ? !0 : (typeof p == "object" ? m.some((E) => Yn(p, E)) : m.some((E) => E != null && String(E) === String(p))) ? t("validation.unique") : !0;
|
|
5720
5720
|
}
|
|
5721
5721
|
return {
|
|
5722
|
-
validateFromApi:
|
|
5723
|
-
required:
|
|
5724
|
-
email:
|
|
5725
|
-
minLength:
|
|
5726
|
-
maxLength:
|
|
5727
|
-
min:
|
|
5728
|
-
max:
|
|
5729
|
-
pattern:
|
|
5730
|
-
unique:
|
|
5722
|
+
validateFromApi: n,
|
|
5723
|
+
required: r,
|
|
5724
|
+
email: s,
|
|
5725
|
+
minLength: o,
|
|
5726
|
+
maxLength: i,
|
|
5727
|
+
min: a,
|
|
5728
|
+
max: c,
|
|
5729
|
+
pattern: u,
|
|
5730
|
+
unique: f
|
|
5731
5731
|
};
|
|
5732
5732
|
}
|
|
5733
5733
|
function vf() {
|
|
@@ -5771,17 +5771,17 @@ function du(e, t) {
|
|
|
5771
5771
|
max: c,
|
|
5772
5772
|
pattern: u,
|
|
5773
5773
|
unique: f
|
|
5774
|
-
} = fu(e
|
|
5774
|
+
} = fu(`${e}.fields.${t}`);
|
|
5775
5775
|
return {
|
|
5776
|
-
validateFromApi: n,
|
|
5776
|
+
validateFromApi: (p) => n(e, t, p),
|
|
5777
5777
|
required: r,
|
|
5778
5778
|
email: s,
|
|
5779
|
-
min: (
|
|
5780
|
-
max: (
|
|
5781
|
-
minLength: (
|
|
5782
|
-
maxLength: (
|
|
5783
|
-
pattern: (
|
|
5784
|
-
unique: (
|
|
5779
|
+
min: (p) => (m) => a(typeof m == "string" ? parseFloat(m) : m, p),
|
|
5780
|
+
max: (p) => (m) => c(typeof m == "string" ? parseFloat(m) : m, p),
|
|
5781
|
+
minLength: (p) => (m) => o(m, p),
|
|
5782
|
+
maxLength: (p) => (m) => i(m, p),
|
|
5783
|
+
pattern: (p) => (m) => u(m, p),
|
|
5784
|
+
unique: (p) => (m) => f(m, p)
|
|
5785
5785
|
};
|
|
5786
5786
|
}
|
|
5787
5787
|
function If(e, t, n) {
|