strapi-plugin-navigation 3.3.5 → 3.3.7
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/admin/index.js +2 -2
- package/dist/admin/index.mjs +513 -507
- package/dist/server/index.js +17 -17
- package/dist/server/index.mjs +412 -411
- package/dist/server/src/repositories/navigation-item.d.ts +1 -1
- package/package.json +1 -1
package/dist/server/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import he, { uniqBy as uu, isNil as Ke, find as
|
|
1
|
+
import he, { uniqBy as uu, isNil as Ke, find as Kn, includes as lu, last as Wn, capitalize as fu, once as li, omit as vn, isEmpty as Ye, get as fn, toString as pu, pick as Ca, differenceBy as du, upperFirst as Xi, isObject as mr, isArray as jr, isString as Zi, zipWith as hu, first as gr, cloneDeep as mu, isNaN as gu } from "lodash";
|
|
2
2
|
import * as y from "zod";
|
|
3
3
|
import { z as Ra } from "zod";
|
|
4
|
-
import { union as yu, getOr as vu, curry as De, isObject as $e, isNil as X, clone as wu, isArray as We, pick as Ji, isEmpty as ze, cloneDeep as fi, omit as Eu, trim as wn, isString as Ue, pipe as bu, split as
|
|
4
|
+
import { union as yu, getOr as vu, curry as De, isObject as $e, isNil as X, clone as wu, isArray as We, pick as Ji, isEmpty as ze, cloneDeep as fi, omit as Eu, trim as wn, isString as Ue, pipe as bu, split as Hr, map as Su, flatten as xu, first as Fa, identity as _u, constant as Br, join as Au, eq as Tu, get as eo } from "lodash/fp";
|
|
5
5
|
import to from "crypto";
|
|
6
6
|
import En from "child_process";
|
|
7
7
|
import bn from "lodash/has";
|
|
@@ -9,13 +9,13 @@ import $a from "lodash/mapValues";
|
|
|
9
9
|
import no from "lodash/snakeCase";
|
|
10
10
|
import Cu from "lodash/camelCase";
|
|
11
11
|
import Ru from "lodash/mapKeys";
|
|
12
|
-
import
|
|
12
|
+
import zn from "os";
|
|
13
13
|
import Ee from "path";
|
|
14
14
|
import Xe from "fs";
|
|
15
15
|
import Ia from "assert";
|
|
16
16
|
import Fu from "events";
|
|
17
17
|
import $u from "buffer";
|
|
18
|
-
import
|
|
18
|
+
import Yn from "stream";
|
|
19
19
|
import ut from "util";
|
|
20
20
|
import Iu from "constants";
|
|
21
21
|
import "node:stream";
|
|
@@ -199,7 +199,7 @@ const pi = y.object({
|
|
|
199
199
|
Xu,
|
|
200
200
|
Vu
|
|
201
201
|
])
|
|
202
|
-
),
|
|
202
|
+
), Ur = y.object({
|
|
203
203
|
kind: Gu,
|
|
204
204
|
collectionName: y.string(),
|
|
205
205
|
info: qu,
|
|
@@ -223,7 +223,7 @@ const pi = y.object({
|
|
|
223
223
|
pluginOptions: y.record(y.string(), y.any()).optional(),
|
|
224
224
|
isSingle: y.boolean().optional()
|
|
225
225
|
});
|
|
226
|
-
|
|
226
|
+
Ur.pick({
|
|
227
227
|
info: !0,
|
|
228
228
|
kind: !0,
|
|
229
229
|
attributes: !0,
|
|
@@ -232,55 +232,55 @@ Br.pick({
|
|
|
232
232
|
const qt = (e, t) => (n) => {
|
|
233
233
|
t(n(e()));
|
|
234
234
|
};
|
|
235
|
-
let
|
|
235
|
+
let Gr = Du;
|
|
236
236
|
const tl = qt(
|
|
237
|
-
() => Ur,
|
|
238
|
-
(e) => {
|
|
239
|
-
Ur = e;
|
|
240
|
-
}
|
|
241
|
-
);
|
|
242
|
-
let Gr = Na;
|
|
243
|
-
const nl = qt(
|
|
244
237
|
() => Gr,
|
|
245
238
|
(e) => {
|
|
246
239
|
Gr = e;
|
|
247
240
|
}
|
|
248
241
|
);
|
|
249
|
-
let qr =
|
|
250
|
-
const
|
|
242
|
+
let qr = Na;
|
|
243
|
+
const nl = qt(
|
|
251
244
|
() => qr,
|
|
252
245
|
(e) => {
|
|
253
246
|
qr = e;
|
|
254
247
|
}
|
|
255
248
|
);
|
|
256
|
-
let Kr =
|
|
257
|
-
const
|
|
249
|
+
let Kr = Oa;
|
|
250
|
+
const rl = qt(
|
|
258
251
|
() => Kr,
|
|
259
252
|
(e) => {
|
|
260
253
|
Kr = e;
|
|
261
254
|
}
|
|
262
255
|
);
|
|
263
|
-
let Wr =
|
|
264
|
-
const
|
|
256
|
+
let Wr = Hu;
|
|
257
|
+
const il = qt(
|
|
265
258
|
() => Wr,
|
|
266
259
|
(e) => {
|
|
267
260
|
Wr = e;
|
|
268
261
|
}
|
|
262
|
+
);
|
|
263
|
+
let zr = Uu;
|
|
264
|
+
const ol = qt(
|
|
265
|
+
() => zr,
|
|
266
|
+
(e) => {
|
|
267
|
+
zr = e;
|
|
268
|
+
}
|
|
269
269
|
), Ce = {
|
|
270
270
|
get configSchema() {
|
|
271
|
-
return
|
|
271
|
+
return Gr;
|
|
272
272
|
},
|
|
273
273
|
get navigationItemAdditionalField() {
|
|
274
|
-
return
|
|
274
|
+
return qr;
|
|
275
275
|
},
|
|
276
276
|
get navigationItemCustomField() {
|
|
277
|
-
return
|
|
277
|
+
return Kr;
|
|
278
278
|
},
|
|
279
279
|
get createNavigationSchema() {
|
|
280
|
-
return
|
|
280
|
+
return Wr;
|
|
281
281
|
},
|
|
282
282
|
get updateNavigationSchema() {
|
|
283
|
-
return
|
|
283
|
+
return zr;
|
|
284
284
|
}
|
|
285
285
|
}, al = /^(?<type>[a-z0-9-]+)\:{2}(?<api>[a-z0-9-]+)\.{1}(?<contentType>[a-z0-9-]+)$/i, sl = [
|
|
286
286
|
"beforeCreate",
|
|
@@ -328,7 +328,7 @@ const ol = qt(
|
|
|
328
328
|
if (t.length !== uu(t, "name").length)
|
|
329
329
|
throw new Error("All names of custom fields must be unique.");
|
|
330
330
|
if (!Ke(
|
|
331
|
-
|
|
331
|
+
Kn(
|
|
332
332
|
t,
|
|
333
333
|
(n) => typeof n == "object" && lu(oo, n.name)
|
|
334
334
|
)
|
|
@@ -368,7 +368,7 @@ function ne({ strapi: e }, t) {
|
|
|
368
368
|
const en = (e) => e === "*" ? "*" : typeof e == "string" ? [e] : e === !1 ? [] : e === !0 ? "*" : e, hl = (e = "") => {
|
|
369
369
|
const t = !!Da.find((r) => e.includes(r)), n = !Ma.find((r) => e.includes(r) || e === r);
|
|
370
370
|
return !!e && t && n;
|
|
371
|
-
}, ml = (e = "") =>
|
|
371
|
+
}, ml = (e = "") => Wn(e) === "s" ? e.substr(0, e.length - 1) : e, gl = li((e) => ({
|
|
372
372
|
find(t, n) {
|
|
373
373
|
const {
|
|
374
374
|
audienceModel: { uid: r }
|
|
@@ -422,7 +422,7 @@ const en = (e) => e === "*" ? "*" : typeof e == "string" ? [e] : e === !1 ? [] :
|
|
|
422
422
|
},
|
|
423
423
|
find({ filters: t, locale: n, limit: r, order: i, populate: a }) {
|
|
424
424
|
const { itemModel: o } = ye(e);
|
|
425
|
-
return e.strapi.documents(o.uid).findMany({ filters: t, locale: n, limit: r, populate: a, orderBy: i }).then((s) => s.map(
|
|
425
|
+
return e.strapi.documents(o.uid).findMany({ filters: t, locale: n, limit: r, populate: a, orderBy: i }).then((s) => s.map(xn)).then(ro.parse).then((s) => s.map(Sn));
|
|
426
426
|
},
|
|
427
427
|
findV4({ filters: t, locale: n, limit: r, order: i, populate: a }) {
|
|
428
428
|
const { itemModel: o } = ye(e);
|
|
@@ -462,8 +462,9 @@ const en = (e) => e === "*" ? "*" : typeof e == "string" ? [e] : e === !1 ? [] :
|
|
|
462
462
|
...n,
|
|
463
463
|
items: t.map(Sn),
|
|
464
464
|
related: e ? vn(e, yl) : void 0
|
|
465
|
-
}),
|
|
466
|
-
...
|
|
465
|
+
}), xn = ({ related: e, parent: t, ...n }) => ({
|
|
466
|
+
...n,
|
|
467
|
+
parent: t && xn(t),
|
|
467
468
|
related: e?.[0]
|
|
468
469
|
});
|
|
469
470
|
class At extends Error {
|
|
@@ -471,7 +472,7 @@ class At extends Error {
|
|
|
471
472
|
super(t), this.additionalInfo = n, this.type = "NavigationError";
|
|
472
473
|
}
|
|
473
474
|
}
|
|
474
|
-
class
|
|
475
|
+
class yr extends At {
|
|
475
476
|
constructor() {
|
|
476
477
|
super(...arguments), this.type = "FillNavigationError";
|
|
477
478
|
}
|
|
@@ -487,7 +488,7 @@ const ao = (e) => e === !0 ? !0 : Array.isArray(e) ? e.includes("items") : !1, S
|
|
|
487
488
|
return e.strapi.documents(o.uid).findMany({ filters: t, locale: n, limit: r, populate: a, orderBy: i }).then(
|
|
488
489
|
(s) => s.map(({ items: c, ...f }) => ({
|
|
489
490
|
...f,
|
|
490
|
-
items: c?.map(
|
|
491
|
+
items: c?.map(xn)
|
|
491
492
|
}))
|
|
492
493
|
).then(
|
|
493
494
|
(s) => s.map(({ items: c, ...f }) => ({
|
|
@@ -498,7 +499,7 @@ const ao = (e) => e === !0 ? !0 : Array.isArray(e) ? e.includes("items") : !1, S
|
|
|
498
499
|
},
|
|
499
500
|
findOne({ locale: t, filters: n, populate: r }) {
|
|
500
501
|
const { masterModel: i } = ye(e);
|
|
501
|
-
return e.strapi.documents(i.uid).findOne({ documentId: n.documentId, locale: t, populate: r }).then((a) => a && { ...a, items: a.items?.map(
|
|
502
|
+
return e.strapi.documents(i.uid).findOne({ documentId: n.documentId, locale: t, populate: r }).then((a) => a && { ...a, items: a.items?.map(xn) }).then((a) => tt(ao(r)).parse(a)).then((a) => ({
|
|
502
503
|
...a,
|
|
503
504
|
items: a.items?.map(Sn)
|
|
504
505
|
}));
|
|
@@ -1649,14 +1650,14 @@ const Rf = {
|
|
|
1649
1650
|
attribute: S,
|
|
1650
1651
|
path: x
|
|
1651
1652
|
};
|
|
1652
|
-
const
|
|
1653
|
+
const k = S.relation.toLowerCase().startsWith("morph") ? c : f(a(S.target));
|
|
1653
1654
|
We(T) ? d[w] = await nn(T.map((A, _) => {
|
|
1654
1655
|
const O = {
|
|
1655
1656
|
...x,
|
|
1656
1657
|
rawWithIndices: X(x.rawWithIndices) ? `${_}` : `${x.rawWithIndices}.${_}`
|
|
1657
1658
|
};
|
|
1658
|
-
return
|
|
1659
|
-
})) : d[w] = await
|
|
1659
|
+
return k(e, O, A);
|
|
1660
|
+
})) : d[w] = await k(e, x, T);
|
|
1660
1661
|
continue;
|
|
1661
1662
|
}
|
|
1662
1663
|
if (Lf(S)) {
|
|
@@ -1665,10 +1666,10 @@ const Rf = {
|
|
|
1665
1666
|
key: w,
|
|
1666
1667
|
attribute: S,
|
|
1667
1668
|
path: x
|
|
1668
|
-
}, We(T) ? d[w] = await nn(T.map((I,
|
|
1669
|
+
}, We(T) ? d[w] = await nn(T.map((I, k) => {
|
|
1669
1670
|
const A = {
|
|
1670
1671
|
...x,
|
|
1671
|
-
rawWithIndices: X(x.rawWithIndices) ? `${
|
|
1672
|
+
rawWithIndices: X(x.rawWithIndices) ? `${k}` : `${x.rawWithIndices}.${k}`
|
|
1672
1673
|
};
|
|
1673
1674
|
return u(e, A, I);
|
|
1674
1675
|
})) : d[w] = await u(e, x, T);
|
|
@@ -1682,12 +1683,12 @@ const Rf = {
|
|
|
1682
1683
|
path: x
|
|
1683
1684
|
};
|
|
1684
1685
|
const I = a(S.component);
|
|
1685
|
-
We(T) ? d[w] = await nn(T.map((
|
|
1686
|
+
We(T) ? d[w] = await nn(T.map((k, A) => {
|
|
1686
1687
|
const _ = {
|
|
1687
1688
|
...x,
|
|
1688
1689
|
rawWithIndices: X(x.rawWithIndices) ? `${A}` : `${x.rawWithIndices}.${A}`
|
|
1689
1690
|
};
|
|
1690
|
-
return l(e, _, I,
|
|
1691
|
+
return l(e, _, I, k);
|
|
1691
1692
|
})) : d[w] = await l(e, x, I, T);
|
|
1692
1693
|
continue;
|
|
1693
1694
|
}
|
|
@@ -1697,10 +1698,10 @@ const Rf = {
|
|
|
1697
1698
|
key: w,
|
|
1698
1699
|
attribute: S,
|
|
1699
1700
|
path: x
|
|
1700
|
-
}, d[w] = await nn(T.map((I,
|
|
1701
|
+
}, d[w] = await nn(T.map((I, k) => {
|
|
1701
1702
|
const A = {
|
|
1702
1703
|
...x,
|
|
1703
|
-
rawWithIndices: X(x.rawWithIndices) ? `${
|
|
1704
|
+
rawWithIndices: X(x.rawWithIndices) ? `${k}` : `${x.rawWithIndices}.${k}`
|
|
1704
1705
|
};
|
|
1705
1706
|
return p(e, A, I);
|
|
1706
1707
|
}));
|
|
@@ -1870,9 +1871,9 @@ var jf = { exports: {} };
|
|
|
1870
1871
|
i.exports = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");
|
|
1871
1872
|
}, function(i, a, o) {
|
|
1872
1873
|
var s = o(2), c = o(6), f = o(7), u = o(5), l = "prototype", p = function(d, h, m) {
|
|
1873
|
-
var g, w, S, x = d & p.F, C = d & p.G, T = d & p.S, I = d & p.P,
|
|
1874
|
+
var g, w, S, x = d & p.F, C = d & p.G, T = d & p.S, I = d & p.P, k = d & p.B, A = d & p.W, _ = C ? c : c[h] || (c[h] = {}), O = _[l], v = C ? s : T ? s[h] : (s[h] || {})[l];
|
|
1874
1875
|
C && (m = h);
|
|
1875
|
-
for (g in m) w = !x && v && v[g] !== void 0, w && g in _ || (S = w ? v[g] : m[g], _[g] = C && typeof v[g] != "function" ? m[g] :
|
|
1876
|
+
for (g in m) w = !x && v && v[g] !== void 0, w && g in _ || (S = w ? v[g] : m[g], _[g] = C && typeof v[g] != "function" ? m[g] : k && w ? f(S, s) : A && v[g] == S ? (function(M) {
|
|
1876
1877
|
var j = function(G, E, b) {
|
|
1877
1878
|
if (this instanceof M) {
|
|
1878
1879
|
switch (arguments.length) {
|
|
@@ -1911,8 +1912,8 @@ var jf = { exports: {} };
|
|
|
1911
1912
|
var s = o(28), c = o(23), f = o(57), u = o(5), l = o(8), p = o(10), d = o(45), h = o(18), m = o(52), g = o(1)("iterator"), w = !([].keys && "next" in [].keys()), S = "@@iterator", x = "keys", C = "values", T = function() {
|
|
1912
1913
|
return this;
|
|
1913
1914
|
};
|
|
1914
|
-
i.exports = function(I,
|
|
1915
|
-
d(A,
|
|
1915
|
+
i.exports = function(I, k, A, _, O, v, M) {
|
|
1916
|
+
d(A, k, _);
|
|
1916
1917
|
var j, G, E, b = function(L) {
|
|
1917
1918
|
if (!w && L in q) return q[L];
|
|
1918
1919
|
switch (L) {
|
|
@@ -1928,11 +1929,11 @@ var jf = { exports: {} };
|
|
|
1928
1929
|
return function() {
|
|
1929
1930
|
return new A(this, L);
|
|
1930
1931
|
};
|
|
1931
|
-
}, F =
|
|
1932
|
-
if (R && (E = m(R.call(new I())), E !== Object.prototype && (h(E, F, !0), s || l(E, g) || u(E, g, T))),
|
|
1932
|
+
}, F = k + " Iterator", D = O == C, H = !1, q = I.prototype, z = q[g] || q[S] || O && q[O], J = z || b(O), Ae = O ? D ? b("entries") : J : void 0, R = k == "Array" && q.entries || z;
|
|
1933
|
+
if (R && (E = m(R.call(new I())), E !== Object.prototype && (h(E, F, !0), s || l(E, g) || u(E, g, T))), D && z && z.name !== C && (H = !0, J = function() {
|
|
1933
1934
|
return z.call(this);
|
|
1934
|
-
}), s && !M || !w && !H && q[g] || u(q, g, J), p[
|
|
1935
|
-
else c(c.P + c.F * (w || H),
|
|
1935
|
+
}), s && !M || !w && !H && q[g] || u(q, g, J), p[k] = J, p[F] = T, O) if (j = { values: D ? J : b(C), keys: v ? J : b(x), entries: Ae }, M) for (G in j) G in q || f(q, G, j[G]);
|
|
1936
|
+
else c(c.P + c.F * (w || H), k, j);
|
|
1936
1937
|
return j;
|
|
1937
1938
|
};
|
|
1938
1939
|
}, function(i, a) {
|
|
@@ -1949,7 +1950,7 @@ var jf = { exports: {} };
|
|
|
1949
1950
|
var _ = C[A];
|
|
1950
1951
|
delete C[A], _();
|
|
1951
1952
|
}
|
|
1952
|
-
},
|
|
1953
|
+
}, k = function(A) {
|
|
1953
1954
|
I.call(A.data);
|
|
1954
1955
|
};
|
|
1955
1956
|
g && w || (g = function(A) {
|
|
@@ -1961,9 +1962,9 @@ var jf = { exports: {} };
|
|
|
1961
1962
|
delete C[A];
|
|
1962
1963
|
}, o(11)(m) == "process" ? s = function(A) {
|
|
1963
1964
|
m.nextTick(u(I, A, 1));
|
|
1964
|
-
} : S ? (c = new S(), f = c.port2, c.port1.onmessage =
|
|
1965
|
+
} : S ? (c = new S(), f = c.port2, c.port1.onmessage = k, s = u(f.postMessage, f, 1)) : h.addEventListener && typeof postMessage == "function" && !h.importScripts ? (s = function(A) {
|
|
1965
1966
|
h.postMessage(A + "", "*");
|
|
1966
|
-
}, h.addEventListener("message",
|
|
1967
|
+
}, h.addEventListener("message", k, !1)) : s = T in d("script") ? function(A) {
|
|
1967
1968
|
p.appendChild(d("script"))[T] = function() {
|
|
1968
1969
|
p.removeChild(this), I.call(A);
|
|
1969
1970
|
};
|
|
@@ -2018,9 +2019,9 @@ var jf = { exports: {} };
|
|
|
2018
2019
|
return T ? I : f(I);
|
|
2019
2020
|
}
|
|
2020
2021
|
function p(T) {
|
|
2021
|
-
return new h.default(function(I,
|
|
2022
|
+
return new h.default(function(I, k) {
|
|
2022
2023
|
return (0, m.exec)(C[S], {}, function(A, _, O) {
|
|
2023
|
-
if (A) return
|
|
2024
|
+
if (A) return k(new Error("Error while obtaining machine id: " + A.stack));
|
|
2024
2025
|
var v = u(_.toString());
|
|
2025
2026
|
return I(T ? v : f(v));
|
|
2026
2027
|
});
|
|
@@ -2055,13 +2056,13 @@ var jf = { exports: {} };
|
|
|
2055
2056
|
};
|
|
2056
2057
|
}, function(i, m, o) {
|
|
2057
2058
|
var s = o(7), c = o(44), f = o(43), u = o(3), l = o(31), p = o(64), d = {}, h = {}, m = i.exports = function(g, w, S, x, C) {
|
|
2058
|
-
var T, I,
|
|
2059
|
+
var T, I, k, A, _ = C ? function() {
|
|
2059
2060
|
return g;
|
|
2060
2061
|
} : p(g), O = s(S, x, w ? 2 : 1), v = 0;
|
|
2061
2062
|
if (typeof _ != "function") throw TypeError(g + " is not iterable!");
|
|
2062
2063
|
if (f(_)) {
|
|
2063
2064
|
for (T = l(g.length); T > v; v++) if (A = w ? O(u(I = g[v])[0], I[1]) : O(g[v]), A === d || A === h) return A;
|
|
2064
|
-
} else for (
|
|
2065
|
+
} else for (k = _.call(g); !(I = k.next()).done; ) if (A = c(k, O, I.value, w), A === d || A === h) return A;
|
|
2065
2066
|
};
|
|
2066
2067
|
m.BREAK = d, m.RETURN = h;
|
|
2067
2068
|
}, function(i, a) {
|
|
@@ -2289,7 +2290,7 @@ var jf = { exports: {} };
|
|
|
2289
2290
|
}, "values"), f.Arguments = f.Array, s("keys"), s("values"), s("entries");
|
|
2290
2291
|
}, function(i, a) {
|
|
2291
2292
|
}, function(i, a, o) {
|
|
2292
|
-
var s, c, f, u = o(28), l = o(2), p = o(7), d = o(21), h = o(23), m = o(9), g = (o(3), o(14)), w = o(38), S = o(40), x = (o(58).set, o(60)), C = o(30).set, T = o(48)(), I = "Promise",
|
|
2293
|
+
var s, c, f, u = o(28), l = o(2), p = o(7), d = o(21), h = o(23), m = o(9), g = (o(3), o(14)), w = o(38), S = o(40), x = (o(58).set, o(60)), C = o(30).set, T = o(48)(), I = "Promise", k = l.TypeError, _ = l.process, A = l[I], _ = l.process, O = d(_) == "process", v = function() {
|
|
2293
2294
|
}, M = !!(function() {
|
|
2294
2295
|
try {
|
|
2295
2296
|
var R = A.resolve(1), L = (R.constructor = {})[o(1)("species")] = function(N) {
|
|
@@ -2308,7 +2309,7 @@ var jf = { exports: {} };
|
|
|
2308
2309
|
}, b = c = function(R) {
|
|
2309
2310
|
var L, N;
|
|
2310
2311
|
this.promise = new R(function(Y, se) {
|
|
2311
|
-
if (L !== void 0 || N !== void 0) throw
|
|
2312
|
+
if (L !== void 0 || N !== void 0) throw k("Bad Promise constructor");
|
|
2312
2313
|
L = Y, N = se;
|
|
2313
2314
|
}), this.resolve = g(L), this.reject = g(N);
|
|
2314
2315
|
}, F = function(R) {
|
|
@@ -2317,7 +2318,7 @@ var jf = { exports: {} };
|
|
|
2317
2318
|
} catch (L) {
|
|
2318
2319
|
return { error: L };
|
|
2319
2320
|
}
|
|
2320
|
-
},
|
|
2321
|
+
}, D = function(R, L) {
|
|
2321
2322
|
if (!R._n) {
|
|
2322
2323
|
R._n = !0;
|
|
2323
2324
|
var N = R._c;
|
|
@@ -2325,7 +2326,7 @@ var jf = { exports: {} };
|
|
|
2325
2326
|
for (var Y = R._v, se = R._s == 1, P = 0, W = function($) {
|
|
2326
2327
|
var U, Q, ie = se ? $.ok : $.fail, V = $.resolve, Oe = $.reject, je = $.domain;
|
|
2327
2328
|
try {
|
|
2328
|
-
ie ? (se || (R._h == 2 && z(R), R._h = 1), ie === !0 ? U = Y : (je && je.enter(), U = ie(Y), je && je.exit()), U === $.promise ? Oe(
|
|
2329
|
+
ie ? (se || (R._h == 2 && z(R), R._h = 1), ie === !0 ? U = Y : (je && je.enter(), U = ie(Y), je && je.exit()), U === $.promise ? Oe(k("Promise-chain cycle")) : (Q = G(U)) ? Q.call(U, V, Oe) : V(U)) : Oe(Y);
|
|
2329
2330
|
} catch (cu) {
|
|
2330
2331
|
Oe(cu);
|
|
2331
2332
|
}
|
|
@@ -2351,13 +2352,13 @@ var jf = { exports: {} };
|
|
|
2351
2352
|
});
|
|
2352
2353
|
}, J = function(R) {
|
|
2353
2354
|
var L = this;
|
|
2354
|
-
L._d || (L._d = !0, L = L._w || L, L._v = R, L._s = 2, L._a || (L._a = L._c.slice()),
|
|
2355
|
+
L._d || (L._d = !0, L = L._w || L, L._v = R, L._s = 2, L._a || (L._a = L._c.slice()), D(L, !0));
|
|
2355
2356
|
}, Ae = function(R) {
|
|
2356
2357
|
var L, N = this;
|
|
2357
2358
|
if (!N._d) {
|
|
2358
2359
|
N._d = !0, N = N._w || N;
|
|
2359
2360
|
try {
|
|
2360
|
-
if (N === R) throw
|
|
2361
|
+
if (N === R) throw k("Promise can't be resolved itself");
|
|
2361
2362
|
(L = G(R)) ? T(function() {
|
|
2362
2363
|
var Y = { _w: N, _d: !1 };
|
|
2363
2364
|
try {
|
|
@@ -2365,7 +2366,7 @@ var jf = { exports: {} };
|
|
|
2365
2366
|
} catch (se) {
|
|
2366
2367
|
J.call(Y, se);
|
|
2367
2368
|
}
|
|
2368
|
-
}) : (N._v = R, N._s = 1,
|
|
2369
|
+
}) : (N._v = R, N._s = 1, D(N, !1));
|
|
2369
2370
|
} catch (Y) {
|
|
2370
2371
|
J.call({ _w: N, _d: !1 }, Y);
|
|
2371
2372
|
}
|
|
@@ -2382,7 +2383,7 @@ var jf = { exports: {} };
|
|
|
2382
2383
|
this._c = [], this._a = void 0, this._s = 0, this._d = !1, this._v = void 0, this._h = 0, this._n = !1;
|
|
2383
2384
|
}, s.prototype = o(56)(A.prototype, { then: function(R, L) {
|
|
2384
2385
|
var N = E(x(this, A));
|
|
2385
|
-
return N.ok = typeof R != "function" || R, N.fail = typeof L == "function" && L, N.domain = O ? _.domain : void 0, this._c.push(N), this._a && this._a.push(N), this._s &&
|
|
2386
|
+
return N.ok = typeof R != "function" || R, N.fail = typeof L == "function" && L, N.domain = O ? _.domain : void 0, this._c.push(N), this._a && this._a.push(N), this._s && D(this, !1), N.promise;
|
|
2386
2387
|
}, catch: function(R) {
|
|
2387
2388
|
return this.then(void 0, R);
|
|
2388
2389
|
} }), b = function() {
|
|
@@ -2554,7 +2555,7 @@ const Yf = Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
|
2554
2555
|
object: Jr,
|
|
2555
2556
|
array: pn,
|
|
2556
2557
|
boolean: zf
|
|
2557
|
-
}),
|
|
2558
|
+
}), Qn = ((e) => e && e.__isYupSchema__);
|
|
2558
2559
|
class Qf {
|
|
2559
2560
|
constructor(t, n) {
|
|
2560
2561
|
if (this.refs = t, this.refs = t, typeof n == "function") {
|
|
@@ -2577,7 +2578,7 @@ class Qf {
|
|
|
2577
2578
|
resolve(t, n) {
|
|
2578
2579
|
let r = this.refs.map((a) => a.getValue(n?.value, n?.parent, n?.context)), i = this.fn.apply(t, r.concat(t, n));
|
|
2579
2580
|
if (i === void 0 || i === t) return t;
|
|
2580
|
-
if (!
|
|
2581
|
+
if (!Qn(i)) throw new TypeError("conditions must return a schema object");
|
|
2581
2582
|
return i.resolve(n);
|
|
2582
2583
|
}
|
|
2583
2584
|
}
|
|
@@ -2617,7 +2618,7 @@ const Xf = (e) => {
|
|
|
2617
2618
|
t || (t = !0, e(...n));
|
|
2618
2619
|
};
|
|
2619
2620
|
};
|
|
2620
|
-
function
|
|
2621
|
+
function _n(e, t) {
|
|
2621
2622
|
let {
|
|
2622
2623
|
endEarly: n,
|
|
2623
2624
|
tests: r,
|
|
@@ -2663,7 +2664,7 @@ It.prototype.set = function(e, t) {
|
|
|
2663
2664
|
};
|
|
2664
2665
|
var Zf = /[^.^\]^[]+|(?=\[\]|\.\.)/g, Jf = /^\d+$/, ep = /^\d/, tp = /[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g, np = /^\s*(['"]?)(.*?)(\1)\s*$/, hi = 512, co = new It(hi);
|
|
2665
2666
|
new It(hi);
|
|
2666
|
-
var uo = new It(hi),
|
|
2667
|
+
var uo = new It(hi), Vn = {
|
|
2667
2668
|
split: ti,
|
|
2668
2669
|
getter: function(e, t) {
|
|
2669
2670
|
var n = rp(e);
|
|
@@ -2716,7 +2717,7 @@ class at {
|
|
|
2716
2717
|
if (this.key = t.trim(), t === "") throw new TypeError("ref must be a non-empty string");
|
|
2717
2718
|
this.isContext = this.key[0] === rn.context, this.isValue = this.key[0] === rn.value, this.isSibling = !this.isContext && !this.isValue;
|
|
2718
2719
|
let r = this.isContext ? rn.context : this.isValue ? rn.value : "";
|
|
2719
|
-
this.path = this.key.slice(r.length), this.getter = this.path &&
|
|
2720
|
+
this.path = this.key.slice(r.length), this.getter = this.path && Vn.getter(this.path, !0), this.map = n.map;
|
|
2720
2721
|
}
|
|
2721
2722
|
getValue(t, n, r) {
|
|
2722
2723
|
let i = this.isContext ? r : this.isValue ? t : n;
|
|
@@ -2749,15 +2750,15 @@ class at {
|
|
|
2749
2750
|
}
|
|
2750
2751
|
}
|
|
2751
2752
|
at.prototype.__isYupRef = !0;
|
|
2752
|
-
function
|
|
2753
|
-
return
|
|
2753
|
+
function An() {
|
|
2754
|
+
return An = Object.assign || function(e) {
|
|
2754
2755
|
for (var t = 1; t < arguments.length; t++) {
|
|
2755
2756
|
var n = arguments[t];
|
|
2756
2757
|
for (var r in n)
|
|
2757
2758
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
2758
2759
|
}
|
|
2759
2760
|
return e;
|
|
2760
|
-
},
|
|
2761
|
+
}, An.apply(this, arguments);
|
|
2761
2762
|
}
|
|
2762
2763
|
function cp(e, t) {
|
|
2763
2764
|
if (e == null) return {};
|
|
@@ -2790,15 +2791,15 @@ function on(e) {
|
|
|
2790
2791
|
return at.isRef(I) ? I.getValue(i, m, g) : I;
|
|
2791
2792
|
}
|
|
2792
2793
|
function S(I = {}) {
|
|
2793
|
-
const
|
|
2794
|
+
const k = $a(An({
|
|
2794
2795
|
value: i,
|
|
2795
2796
|
originalValue: c,
|
|
2796
2797
|
label: o,
|
|
2797
2798
|
path: I.path || a
|
|
2798
|
-
}, d, I.params), w), A = new de(de.formatError(I.message || h,
|
|
2799
|
-
return A.params =
|
|
2799
|
+
}, d, I.params), w), A = new de(de.formatError(I.message || h, k), i, k.path, I.type || l);
|
|
2800
|
+
return A.params = k, A;
|
|
2800
2801
|
}
|
|
2801
|
-
let x =
|
|
2802
|
+
let x = An({
|
|
2802
2803
|
path: a,
|
|
2803
2804
|
parent: m,
|
|
2804
2805
|
type: l,
|
|
@@ -2833,7 +2834,7 @@ function on(e) {
|
|
|
2833
2834
|
let up = (e) => e.substr(0, e.length - 1).substr(1);
|
|
2834
2835
|
function lp(e, t, n, r = n) {
|
|
2835
2836
|
let i, a, o;
|
|
2836
|
-
return t ? (
|
|
2837
|
+
return t ? (Vn.forEach(t, (s, c, f) => {
|
|
2837
2838
|
let u = c ? up(s) : s;
|
|
2838
2839
|
if (e = e.resolve({
|
|
2839
2840
|
context: r,
|
|
@@ -2860,7 +2861,7 @@ function lp(e, t, n, r = n) {
|
|
|
2860
2861
|
schema: e
|
|
2861
2862
|
};
|
|
2862
2863
|
}
|
|
2863
|
-
class
|
|
2864
|
+
class Tn {
|
|
2864
2865
|
constructor() {
|
|
2865
2866
|
this.list = /* @__PURE__ */ new Set(), this.refs = /* @__PURE__ */ new Map();
|
|
2866
2867
|
}
|
|
@@ -2889,7 +2890,7 @@ class An {
|
|
|
2889
2890
|
return !1;
|
|
2890
2891
|
}
|
|
2891
2892
|
clone() {
|
|
2892
|
-
const t = new
|
|
2893
|
+
const t = new Tn();
|
|
2893
2894
|
return t.list = new Set(this.list), t.refs = new Map(this.refs), t;
|
|
2894
2895
|
}
|
|
2895
2896
|
merge(t, n) {
|
|
@@ -2909,7 +2910,7 @@ function Te() {
|
|
|
2909
2910
|
}
|
|
2910
2911
|
class me {
|
|
2911
2912
|
constructor(t) {
|
|
2912
|
-
this.deps = [], this.conditions = [], this._whitelist = new
|
|
2913
|
+
this.deps = [], this.conditions = [], this._whitelist = new Tn(), this._blacklist = new Tn(), this.exclusiveTests = /* @__PURE__ */ Object.create(null), this.tests = [], this.transforms = [], this.withMutation(() => {
|
|
2913
2914
|
this.typeError(Je.notType);
|
|
2914
2915
|
}), this.type = t?.type || "mixed", this.spec = Te({
|
|
2915
2916
|
strip: !1,
|
|
@@ -3023,7 +3024,7 @@ attempted value: ${a}
|
|
|
3023
3024
|
sync: i,
|
|
3024
3025
|
from: o
|
|
3025
3026
|
}, p = [];
|
|
3026
|
-
this._typeError && p.push(this._typeError), this._whitelistError && p.push(this._whitelistError), this._blacklistError && p.push(this._blacklistError),
|
|
3027
|
+
this._typeError && p.push(this._typeError), this._whitelistError && p.push(this._whitelistError), this._blacklistError && p.push(this._blacklistError), _n({
|
|
3027
3028
|
args: l,
|
|
3028
3029
|
value: u,
|
|
3029
3030
|
path: a,
|
|
@@ -3031,7 +3032,7 @@ attempted value: ${a}
|
|
|
3031
3032
|
endEarly: f
|
|
3032
3033
|
}, (d) => {
|
|
3033
3034
|
if (d) return void r(d, u);
|
|
3034
|
-
|
|
3035
|
+
_n({
|
|
3035
3036
|
tests: this.tests,
|
|
3036
3037
|
args: l,
|
|
3037
3038
|
path: a,
|
|
@@ -3255,10 +3256,10 @@ for (const e of ["equals", "is"]) me.prototype[e] = me.prototype.oneOf;
|
|
|
3255
3256
|
for (const e of ["not", "nope"]) me.prototype[e] = me.prototype.notOneOf;
|
|
3256
3257
|
me.prototype.optional = me.prototype.notRequired;
|
|
3257
3258
|
const ts = me;
|
|
3258
|
-
function
|
|
3259
|
+
function Xn() {
|
|
3259
3260
|
return new ts();
|
|
3260
3261
|
}
|
|
3261
|
-
|
|
3262
|
+
Xn.prototype = ts.prototype;
|
|
3262
3263
|
const ge = ((e) => e == null);
|
|
3263
3264
|
let fp = /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i, pp = /^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i, dp = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i, hp = (e) => ge(e) || e === e.trim(), mp = {}.toString();
|
|
3264
3265
|
function mi() {
|
|
@@ -3514,12 +3515,12 @@ const _p = /* @__PURE__ */ Xa(xp);
|
|
|
3514
3515
|
function Ap(e, t = []) {
|
|
3515
3516
|
let n = [], r = [];
|
|
3516
3517
|
function i(a, o) {
|
|
3517
|
-
var s =
|
|
3518
|
+
var s = Vn.split(a)[0];
|
|
3518
3519
|
~r.indexOf(s) || r.push(s), ~t.indexOf(`${o}-${s}`) || n.push([o, s]);
|
|
3519
3520
|
}
|
|
3520
3521
|
for (const a in e) if (bn(e, a)) {
|
|
3521
3522
|
let o = e[a];
|
|
3522
|
-
~r.indexOf(a) || r.push(a), at.isRef(o) && o.isSibling ? i(o.path, a) :
|
|
3523
|
+
~r.indexOf(a) || r.push(a), at.isRef(o) && o.isSibling ? i(o.path, a) : Qn(o) && "deps" in o && o.deps.forEach((s) => i(s, a));
|
|
3523
3524
|
}
|
|
3524
3525
|
return _p.array(r, n).reverse();
|
|
3525
3526
|
}
|
|
@@ -3641,7 +3642,7 @@ class as extends me {
|
|
|
3641
3642
|
}
|
|
3642
3643
|
m(null);
|
|
3643
3644
|
});
|
|
3644
|
-
|
|
3645
|
+
_n({
|
|
3645
3646
|
tests: p,
|
|
3646
3647
|
value: l,
|
|
3647
3648
|
errors: i,
|
|
@@ -3699,7 +3700,7 @@ class as extends me {
|
|
|
3699
3700
|
return n.withMutation(() => n.shape(r));
|
|
3700
3701
|
}
|
|
3701
3702
|
from(t, n, r) {
|
|
3702
|
-
let i =
|
|
3703
|
+
let i = Vn.getter(t, !0);
|
|
3703
3704
|
return this.transform((a) => {
|
|
3704
3705
|
if (a == null) return a;
|
|
3705
3706
|
let o = a;
|
|
@@ -3748,15 +3749,15 @@ function ss(e) {
|
|
|
3748
3749
|
return new as(e);
|
|
3749
3750
|
}
|
|
3750
3751
|
ss.prototype = as.prototype;
|
|
3751
|
-
function
|
|
3752
|
-
return
|
|
3752
|
+
function Cn() {
|
|
3753
|
+
return Cn = Object.assign || function(e) {
|
|
3753
3754
|
for (var t = 1; t < arguments.length; t++) {
|
|
3754
3755
|
var n = arguments[t];
|
|
3755
3756
|
for (var r in n)
|
|
3756
3757
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
3757
3758
|
}
|
|
3758
3759
|
return e;
|
|
3759
|
-
},
|
|
3760
|
+
}, Cn.apply(this, arguments);
|
|
3760
3761
|
}
|
|
3761
3762
|
function cs(e) {
|
|
3762
3763
|
return new us(e);
|
|
@@ -3787,7 +3788,7 @@ class us extends me {
|
|
|
3787
3788
|
if (!this._typeCheck(r) || !this.innerType) return r;
|
|
3788
3789
|
let i = !1;
|
|
3789
3790
|
const a = r.map((o, s) => {
|
|
3790
|
-
const c = this.innerType.cast(o,
|
|
3791
|
+
const c = this.innerType.cast(o, Cn({}, n, {
|
|
3791
3792
|
path: `${n.path || ""}[${s}]`
|
|
3792
3793
|
}));
|
|
3793
3794
|
return c !== o && (i = !0), c;
|
|
@@ -3812,7 +3813,7 @@ class us extends me {
|
|
|
3812
3813
|
l = l || d;
|
|
3813
3814
|
let h = new Array(d.length);
|
|
3814
3815
|
for (let m = 0; m < d.length; m++) {
|
|
3815
|
-
let g = d[m], w = `${n.path || ""}[${m}]`, S =
|
|
3816
|
+
let g = d[m], w = `${n.path || ""}[${m}]`, S = Cn({}, n, {
|
|
3816
3817
|
path: w,
|
|
3817
3818
|
strict: !0,
|
|
3818
3819
|
parent: d,
|
|
@@ -3821,7 +3822,7 @@ class us extends me {
|
|
|
3821
3822
|
});
|
|
3822
3823
|
h[m] = (x, C) => c.validate(g, S, C);
|
|
3823
3824
|
}
|
|
3824
|
-
|
|
3825
|
+
_n({
|
|
3825
3826
|
path: s,
|
|
3826
3827
|
value: d,
|
|
3827
3828
|
errors: o,
|
|
@@ -3843,7 +3844,7 @@ class us extends me {
|
|
|
3843
3844
|
}
|
|
3844
3845
|
of(t) {
|
|
3845
3846
|
let n = this.clone();
|
|
3846
|
-
if (!
|
|
3847
|
+
if (!Qn(t)) throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: " + Tt(t));
|
|
3847
3848
|
return n.innerType = t, n;
|
|
3848
3849
|
}
|
|
3849
3850
|
length(t, n = pn.length) {
|
|
@@ -3916,7 +3917,7 @@ function Rp(e) {
|
|
|
3916
3917
|
});
|
|
3917
3918
|
}
|
|
3918
3919
|
function lt(e, t, n) {
|
|
3919
|
-
if (!e || !
|
|
3920
|
+
if (!e || !Qn(e.prototype)) throw new TypeError("You must provide a yup schema constructor function");
|
|
3920
3921
|
if (typeof t != "string") throw new TypeError("A Method name must be provided");
|
|
3921
3922
|
if (typeof n != "function") throw new TypeError("Method function must be provided");
|
|
3922
3923
|
e.prototype[t] = n;
|
|
@@ -4269,15 +4270,15 @@ const Wp = [
|
|
|
4269
4270
|
"$in",
|
|
4270
4271
|
"$notIn",
|
|
4271
4272
|
"$between"
|
|
4272
|
-
],
|
|
4273
|
+
], Rn = {
|
|
4273
4274
|
where: zp,
|
|
4274
4275
|
cast: Yp,
|
|
4275
4276
|
group: Wp,
|
|
4276
4277
|
array: Qp
|
|
4277
|
-
}, Vp = Object.fromEntries(Object.entries(
|
|
4278
|
+
}, Vp = Object.fromEntries(Object.entries(Rn).map(([e, t]) => [
|
|
4278
4279
|
e,
|
|
4279
4280
|
t.map((n) => n.toLowerCase())
|
|
4280
|
-
])), Xp = (e, t) => e in t, Zp = (e, t, n = !1) => n ? Vp[e]?.includes(t.toLowerCase()) ?? !1 : Xp(e,
|
|
4281
|
+
])), Xp = (e, t) => e in t, Zp = (e, t, n = !1) => n ? Vp[e]?.includes(t.toLowerCase()) ?? !1 : Xp(e, Rn) ? Rn[e]?.includes(t) ?? !1 : !1, Jp = (e, t = !1) => Object.keys(Rn).some((n) => Zp(n, e, t));
|
|
4281
4282
|
var ed = (e, t = 1, n) => {
|
|
4282
4283
|
if (n = {
|
|
4283
4284
|
indent: " ",
|
|
@@ -4300,7 +4301,7 @@ var ed = (e, t = 1, n) => {
|
|
|
4300
4301
|
const r = n.includeEmptyLines ? /^/gm : /^(?!\s*$)/gm;
|
|
4301
4302
|
return e.replace(r, n.indent.repeat(t));
|
|
4302
4303
|
};
|
|
4303
|
-
const ho =
|
|
4304
|
+
const ho = zn, mo = /\s+at.*(?:\(|\s)(.*)\)?/, td = /^(?:(?:(?:node|(?:internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)\.js:\d+:\d+)|native)/, nd = typeof ho.homedir > "u" ? "" : ho.homedir();
|
|
4304
4305
|
var rd = (e, t) => (t = Object.assign({ pretty: !1 }, t), e.replace(/\\/g, "/").split(`
|
|
4305
4306
|
`).filter((n) => {
|
|
4306
4307
|
const r = n.match(mo);
|
|
@@ -4359,7 +4360,7 @@ var ld = async (e, t, {
|
|
|
4359
4360
|
;
|
|
4360
4361
|
});
|
|
4361
4362
|
const fd = /* @__PURE__ */ Xa(ld);
|
|
4362
|
-
function
|
|
4363
|
+
function Zn(...e) {
|
|
4363
4364
|
const [t, ...n] = e;
|
|
4364
4365
|
return async (...r) => {
|
|
4365
4366
|
let i = await t.apply(t, r);
|
|
@@ -4369,7 +4370,7 @@ function Xn(...e) {
|
|
|
4369
4370
|
};
|
|
4370
4371
|
}
|
|
4371
4372
|
De(fd);
|
|
4372
|
-
const
|
|
4373
|
+
const Jn = ({ key: e, attribute: t }, { remove: n }) => {
|
|
4373
4374
|
t?.type === "password" && n(e);
|
|
4374
4375
|
}, Kt = ({ schema: e, key: t, attribute: n }, { remove: r }) => {
|
|
4375
4376
|
if (!n)
|
|
@@ -4396,7 +4397,7 @@ const Zn = ({ key: e, attribute: t }, { remove: n }) => {
|
|
|
4396
4397
|
raw: null,
|
|
4397
4398
|
attribute: null
|
|
4398
4399
|
};
|
|
4399
|
-
var
|
|
4400
|
+
var er = (() => {
|
|
4400
4401
|
const e = {
|
|
4401
4402
|
parsers: [],
|
|
4402
4403
|
interceptors: [],
|
|
@@ -4432,11 +4433,11 @@ var Jn = (() => {
|
|
|
4432
4433
|
getModel: c,
|
|
4433
4434
|
parent: o
|
|
4434
4435
|
}, w = {
|
|
4435
|
-
remove(
|
|
4436
|
-
l = u.remove(
|
|
4436
|
+
remove(k) {
|
|
4437
|
+
l = u.remove(k, l);
|
|
4437
4438
|
},
|
|
4438
|
-
set(
|
|
4439
|
-
l = u.set(
|
|
4439
|
+
set(k, A) {
|
|
4440
|
+
l = u.set(k, A, l);
|
|
4440
4441
|
},
|
|
4441
4442
|
recurse: t
|
|
4442
4443
|
};
|
|
@@ -4455,15 +4456,15 @@ var Jn = (() => {
|
|
|
4455
4456
|
getModel: c,
|
|
4456
4457
|
parent: o
|
|
4457
4458
|
}), C = x();
|
|
4458
|
-
if (e.ignore.some((
|
|
4459
|
+
if (e.ignore.some((k) => k(C)))
|
|
4459
4460
|
continue;
|
|
4460
4461
|
const I = [
|
|
4461
4462
|
...e.handlers.common,
|
|
4462
4463
|
...e.handlers.attributes
|
|
4463
4464
|
];
|
|
4464
|
-
for await (const
|
|
4465
|
+
for await (const k of I) {
|
|
4465
4466
|
const A = x();
|
|
4466
|
-
await
|
|
4467
|
+
await k.predicate(A) && await k.handler(A, Ji([
|
|
4467
4468
|
"recurse",
|
|
4468
4469
|
"set"
|
|
4469
4470
|
], w));
|
|
@@ -4514,7 +4515,7 @@ var Jn = (() => {
|
|
|
4514
4515
|
}
|
|
4515
4516
|
};
|
|
4516
4517
|
});
|
|
4517
|
-
const hd = (e) => $e(e), md =
|
|
4518
|
+
const hd = (e) => $e(e), md = er().intercept(
|
|
4518
4519
|
// Intercept filters arrays and apply the traversal to each one individually
|
|
4519
4520
|
We,
|
|
4520
4521
|
async (e, t, n, { recurse: r }) => Promise.all(n.map((i, a) => {
|
|
@@ -4606,7 +4607,7 @@ var ft = De(md.traverse);
|
|
|
4606
4607
|
const gd = {
|
|
4607
4608
|
asc: "asc",
|
|
4608
4609
|
desc: "desc"
|
|
4609
|
-
}, yd = Object.values(gd), vd = (e) => yd.includes(e.toLowerCase()), wd = (e) => Array.isArray(e) && e.every(Ue), Ed = (e) => Array.isArray(e) && e.every($e), bd = (e) => Ue(e) && e.split(",").length > 1, Sd = (e) => $e(e), xd =
|
|
4610
|
+
}, yd = Object.values(gd), vd = (e) => yd.includes(e.toLowerCase()), wd = (e) => Array.isArray(e) && e.every(Ue), Ed = (e) => Array.isArray(e) && e.every($e), bd = (e) => Ue(e) && e.split(",").length > 1, Sd = (e) => $e(e), xd = er().intercept(
|
|
4610
4611
|
// String with chained sorts (foo,bar,foobar) => split, map(recurse), then recompose
|
|
4611
4612
|
bd,
|
|
4612
4613
|
async (e, t, n, { recurse: r }) => Promise.all(n.split(",").map(wn).map((i) => r(e, t, i))).then((i) => i.filter((a) => !ze(a)).join(","))
|
|
@@ -4619,7 +4620,7 @@ const gd = {
|
|
|
4619
4620
|
Ed,
|
|
4620
4621
|
async (e, t, n, { recurse: r }) => Promise.all(n.map((i) => r(e, t, i))).then((i) => i.filter((a) => !ze(a)))
|
|
4621
4622
|
).parse(Ue, () => {
|
|
4622
|
-
const e = bu(
|
|
4623
|
+
const e = bu(Hr("."), Su(Hr(":")), xu), t = (n) => {
|
|
4623
4624
|
if (n.length !== 0)
|
|
4624
4625
|
return n.reduce((r, i) => ze(i) ? r : r === "" ? i : vd(i) ? `${r}:${i}` : `${r}.${i}`, "");
|
|
4625
4626
|
};
|
|
@@ -4705,7 +4706,7 @@ const gd = {
|
|
|
4705
4706
|
c(e, l);
|
|
4706
4707
|
});
|
|
4707
4708
|
var pt = De(xd.traverse);
|
|
4708
|
-
const go = (e) => ({ key: t, attribute: n }) => !n && e === t, ps = (e) => e === "*", _d = (e) => Ue(e) && !ps(e), Ad = (e) => We(e) && e.every(Ue), yo = (e) => $e(e), Td =
|
|
4709
|
+
const go = (e) => ({ key: t, attribute: n }) => !n && e === t, ps = (e) => e === "*", _d = (e) => Ue(e) && !ps(e), Ad = (e) => We(e) && e.every(Ue), yo = (e) => $e(e), Td = er().intercept(_d, async (e, t, n, { recurse: r }) => {
|
|
4709
4710
|
const i = Rd([
|
|
4710
4711
|
n
|
|
4711
4712
|
]), a = await r(e, t, i), [o] = Cd(a);
|
|
@@ -4729,15 +4730,15 @@ const go = (e) => ({ key: t, attribute: n }) => !n && e === t, ps = (e) => e ===
|
|
|
4729
4730
|
* '*' isn't a key/value structure, but we need to simulate at least one to enable
|
|
4730
4731
|
* the data traversal. We're using '' since it represents a falsy string value
|
|
4731
4732
|
*/
|
|
4732
|
-
keys:
|
|
4733
|
+
keys: Br([
|
|
4733
4734
|
""
|
|
4734
4735
|
]),
|
|
4735
4736
|
/**
|
|
4736
4737
|
* Removing '*' means setting it to undefined, regardless of the given key
|
|
4737
4738
|
*/
|
|
4738
|
-
remove:
|
|
4739
|
+
remove: Br(void 0)
|
|
4739
4740
|
})).parse(Ue, () => {
|
|
4740
|
-
const e =
|
|
4741
|
+
const e = Hr("."), t = Au(".");
|
|
4741
4742
|
return {
|
|
4742
4743
|
transform: wn,
|
|
4743
4744
|
remove(n, r) {
|
|
@@ -4896,7 +4897,7 @@ const go = (e) => ({ key: t, attribute: n }) => !n && e === t, ps = (e) => e ===
|
|
|
4896
4897
|
s(e, u);
|
|
4897
4898
|
}
|
|
4898
4899
|
});
|
|
4899
|
-
var
|
|
4900
|
+
var vr = De(Td.traverse);
|
|
4900
4901
|
const Cd = (e) => {
|
|
4901
4902
|
const t = [];
|
|
4902
4903
|
function n(r, i) {
|
|
@@ -4915,7 +4916,7 @@ const Cd = (e) => {
|
|
|
4915
4916
|
}), n(r[a].populate, o));
|
|
4916
4917
|
}
|
|
4917
4918
|
return e.forEach((r) => n(t, r.split("."))), t;
|
|
4918
|
-
}, Fd = (e) => We(e) && e.every(Ue), $d =
|
|
4919
|
+
}, Fd = (e) => We(e) && e.every(Ue), $d = er().intercept(Fd, async (e, t, n, { recurse: r }) => Promise.all(n.map((i) => r(e, t, i)))).intercept((e) => Ue(e) && e.includes(","), (e, t, n, { recurse: r }) => Promise.all(n.split(",").map((i) => r(e, t, i)))).intercept((e) => Tu("*", e), Br("*")).parse(Ue, () => ({
|
|
4919
4920
|
transform: wn,
|
|
4920
4921
|
remove(e, t) {
|
|
4921
4922
|
return t === e ? void 0 : t;
|
|
@@ -4932,23 +4933,23 @@ const Cd = (e) => {
|
|
|
4932
4933
|
return e === t ? t : void 0;
|
|
4933
4934
|
}
|
|
4934
4935
|
}));
|
|
4935
|
-
var
|
|
4936
|
-
const { ID_ATTRIBUTE:
|
|
4936
|
+
var wr = De($d.traverse);
|
|
4937
|
+
const { ID_ATTRIBUTE: Fn, DOC_ID_ATTRIBUTE: $n } = Of, Id = async (e, t) => {
|
|
4937
4938
|
if (!e.schema)
|
|
4938
4939
|
throw new Error("Missing schema in defaultSanitizeOutput");
|
|
4939
4940
|
return Mf((...n) => {
|
|
4940
|
-
|
|
4941
|
+
Jn(...n), Kt(...n);
|
|
4941
4942
|
}, e, t);
|
|
4942
4943
|
}, Od = De((e, t) => {
|
|
4943
4944
|
if (!e.schema)
|
|
4944
4945
|
throw new Error("Missing schema in defaultSanitizeFilters");
|
|
4945
|
-
return
|
|
4946
|
+
return Zn(
|
|
4946
4947
|
// Remove keys that are not attributes or valid operators
|
|
4947
4948
|
ft(({ key: n, attribute: r }, { remove: i }) => {
|
|
4948
4949
|
const a = !!r;
|
|
4949
4950
|
[
|
|
4950
|
-
|
|
4951
|
-
|
|
4951
|
+
Fn,
|
|
4952
|
+
$n
|
|
4952
4953
|
].includes(n) || !a && !Jp(n) && i(n);
|
|
4953
4954
|
}, e),
|
|
4954
4955
|
// Remove dynamic zones from filters
|
|
@@ -4956,7 +4957,7 @@ const { ID_ATTRIBUTE: Rn, DOC_ID_ATTRIBUTE: Fn } = Of, Id = async (e, t) => {
|
|
|
4956
4957
|
// Remove morpTo relations from filters
|
|
4957
4958
|
ft(ls, e),
|
|
4958
4959
|
// Remove passwords from filters
|
|
4959
|
-
ft(
|
|
4960
|
+
ft(Jn, e),
|
|
4960
4961
|
// Remove private from filters
|
|
4961
4962
|
ft(Kt, e),
|
|
4962
4963
|
// Remove empty objects
|
|
@@ -4967,12 +4968,12 @@ const { ID_ATTRIBUTE: Rn, DOC_ID_ATTRIBUTE: Fn } = Of, Id = async (e, t) => {
|
|
|
4967
4968
|
}), Nd = De((e, t) => {
|
|
4968
4969
|
if (!e.schema)
|
|
4969
4970
|
throw new Error("Missing schema in defaultSanitizeSort");
|
|
4970
|
-
return
|
|
4971
|
+
return Zn(
|
|
4971
4972
|
// Remove non attribute keys
|
|
4972
4973
|
pt(({ key: n, attribute: r }, { remove: i }) => {
|
|
4973
4974
|
[
|
|
4974
|
-
|
|
4975
|
-
|
|
4975
|
+
Fn,
|
|
4976
|
+
$n
|
|
4976
4977
|
].includes(n) || r || i(n);
|
|
4977
4978
|
}, e),
|
|
4978
4979
|
// Remove dynamic zones from sort
|
|
@@ -4982,39 +4983,39 @@ const { ID_ATTRIBUTE: Rn, DOC_ID_ATTRIBUTE: Fn } = Of, Id = async (e, t) => {
|
|
|
4982
4983
|
// Remove private from sort
|
|
4983
4984
|
pt(Kt, e),
|
|
4984
4985
|
// Remove passwords from filters
|
|
4985
|
-
pt(
|
|
4986
|
+
pt(Jn, e),
|
|
4986
4987
|
// Remove keys for empty non-scalar values
|
|
4987
4988
|
pt(({ key: n, attribute: r, value: i }, { remove: a }) => {
|
|
4988
4989
|
[
|
|
4989
|
-
|
|
4990
|
-
|
|
4990
|
+
Fn,
|
|
4991
|
+
$n
|
|
4991
4992
|
].includes(n) || !Ya(r) && ze(i) && a(n);
|
|
4992
4993
|
}, e)
|
|
4993
4994
|
)(t);
|
|
4994
4995
|
}), Pd = De((e, t) => {
|
|
4995
4996
|
if (!e.schema)
|
|
4996
4997
|
throw new Error("Missing schema in defaultSanitizeFields");
|
|
4997
|
-
return
|
|
4998
|
+
return Zn(
|
|
4998
4999
|
// Only keep scalar attributes
|
|
4999
|
-
|
|
5000
|
+
wr(({ key: n, attribute: r }, { remove: i }) => {
|
|
5000
5001
|
[
|
|
5001
|
-
|
|
5002
|
-
|
|
5002
|
+
Fn,
|
|
5003
|
+
$n
|
|
5003
5004
|
].includes(n) || (X(r) || !Ya(r)) && i(n);
|
|
5004
5005
|
}, e),
|
|
5005
5006
|
// Remove private fields
|
|
5006
|
-
|
|
5007
|
+
wr(Kt, e),
|
|
5007
5008
|
// Remove password fields
|
|
5008
|
-
|
|
5009
|
+
wr(Jn, e),
|
|
5009
5010
|
// Remove nil values from fields array
|
|
5010
5011
|
(n) => We(n) ? n.filter((r) => !X(r)) : n
|
|
5011
5012
|
)(t);
|
|
5012
5013
|
}), Ld = De((e, t) => {
|
|
5013
5014
|
if (!e.schema)
|
|
5014
5015
|
throw new Error("Missing schema in defaultSanitizePopulate");
|
|
5015
|
-
return
|
|
5016
|
-
|
|
5017
|
-
|
|
5016
|
+
return Zn(
|
|
5017
|
+
vr(pd, e),
|
|
5018
|
+
vr(async ({ key: n, value: r, schema: i, attribute: a, getModel: o, path: s }, { set: c }) => {
|
|
5018
5019
|
if (a)
|
|
5019
5020
|
return;
|
|
5020
5021
|
const f = {
|
|
@@ -5042,13 +5043,13 @@ const { ID_ATTRIBUTE: Rn, DOC_ID_ATTRIBUTE: Fn } = Of, Id = async (e, t) => {
|
|
|
5042
5043
|
}, r));
|
|
5043
5044
|
}, e),
|
|
5044
5045
|
// Remove private fields
|
|
5045
|
-
|
|
5046
|
+
vr(Kt, e)
|
|
5046
5047
|
)(t);
|
|
5047
5048
|
});
|
|
5048
|
-
var Wt = { exports: {} }, Ot = { exports: {} },
|
|
5049
|
+
var Wt = { exports: {} }, Ot = { exports: {} }, Er, vo;
|
|
5049
5050
|
function kd() {
|
|
5050
|
-
if (vo) return
|
|
5051
|
-
vo = 1,
|
|
5051
|
+
if (vo) return Er;
|
|
5052
|
+
vo = 1, Er = r, r.sync = i;
|
|
5052
5053
|
var e = Xe;
|
|
5053
5054
|
function t(a, o) {
|
|
5054
5055
|
var s = o.pathExt !== void 0 ? o.pathExt : process.env.PATHEXT;
|
|
@@ -5072,12 +5073,12 @@ function kd() {
|
|
|
5072
5073
|
function i(a, o) {
|
|
5073
5074
|
return n(e.statSync(a), a, o);
|
|
5074
5075
|
}
|
|
5075
|
-
return
|
|
5076
|
+
return Er;
|
|
5076
5077
|
}
|
|
5077
|
-
var
|
|
5078
|
+
var br, wo;
|
|
5078
5079
|
function Dd() {
|
|
5079
|
-
if (wo) return
|
|
5080
|
-
wo = 1,
|
|
5080
|
+
if (wo) return br;
|
|
5081
|
+
wo = 1, br = t, t.sync = n;
|
|
5081
5082
|
var e = Xe;
|
|
5082
5083
|
function t(a, o, s) {
|
|
5083
5084
|
e.stat(a, function(c, f) {
|
|
@@ -5094,10 +5095,10 @@ function Dd() {
|
|
|
5094
5095
|
var s = a.mode, c = a.uid, f = a.gid, u = o.uid !== void 0 ? o.uid : process.getuid && process.getuid(), l = o.gid !== void 0 ? o.gid : process.getgid && process.getgid(), p = parseInt("100", 8), d = parseInt("010", 8), h = parseInt("001", 8), m = p | d, g = s & h || s & d && f === l || s & p && c === u || s & m && u === 0;
|
|
5095
5096
|
return g;
|
|
5096
5097
|
}
|
|
5097
|
-
return
|
|
5098
|
+
return br;
|
|
5098
5099
|
}
|
|
5099
|
-
var
|
|
5100
|
-
process.platform === "win32" || ve.TESTING_WINDOWS ?
|
|
5100
|
+
var In;
|
|
5101
|
+
process.platform === "win32" || ve.TESTING_WINDOWS ? In = kd() : In = Dd();
|
|
5101
5102
|
var Md = vi;
|
|
5102
5103
|
vi.sync = jd;
|
|
5103
5104
|
function vi(e, t, n) {
|
|
@@ -5110,13 +5111,13 @@ function vi(e, t, n) {
|
|
|
5110
5111
|
});
|
|
5111
5112
|
});
|
|
5112
5113
|
}
|
|
5113
|
-
|
|
5114
|
+
In(e, t || {}, function(r, i) {
|
|
5114
5115
|
r && (r.code === "EACCES" || t && t.ignoreErrors) && (r = null, i = !1), n(r, i);
|
|
5115
5116
|
});
|
|
5116
5117
|
}
|
|
5117
5118
|
function jd(e, t) {
|
|
5118
5119
|
try {
|
|
5119
|
-
return
|
|
5120
|
+
return In.sync(e, t || {});
|
|
5120
5121
|
} catch (n) {
|
|
5121
5122
|
if (t && t.ignoreErrors || n.code === "EACCES")
|
|
5122
5123
|
return !1;
|
|
@@ -5231,12 +5232,12 @@ var Xd = (e = "") => {
|
|
|
5231
5232
|
const [n, r] = t[0].replace(/#! ?/, "").split(" "), i = n.split("/").pop();
|
|
5232
5233
|
return i === "env" ? r : r ? `${i} ${r}` : i;
|
|
5233
5234
|
};
|
|
5234
|
-
const
|
|
5235
|
+
const Sr = Xe, Zd = Xd;
|
|
5235
5236
|
function Jd(e) {
|
|
5236
5237
|
const n = Buffer.alloc(150);
|
|
5237
5238
|
let r;
|
|
5238
5239
|
try {
|
|
5239
|
-
r =
|
|
5240
|
+
r = Sr.openSync(e, "r"), Sr.readSync(r, n, 0, 150, 0), Sr.closeSync(r);
|
|
5240
5241
|
} catch {
|
|
5241
5242
|
}
|
|
5242
5243
|
return Zd(n.toString());
|
|
@@ -5354,7 +5355,7 @@ Ai.exports;
|
|
|
5354
5355
|
return i.path = a[o], a[o] = e.exports(i), a;
|
|
5355
5356
|
};
|
|
5356
5357
|
})(Ai);
|
|
5357
|
-
var gh = Ai.exports,
|
|
5358
|
+
var gh = Ai.exports, tr = { exports: {} }, Ti = { exports: {} };
|
|
5358
5359
|
const xs = (e, t) => {
|
|
5359
5360
|
for (const n of Reflect.ownKeys(t))
|
|
5360
5361
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
|
|
@@ -5363,29 +5364,29 @@ const xs = (e, t) => {
|
|
|
5363
5364
|
Ti.exports = xs;
|
|
5364
5365
|
Ti.exports.default = xs;
|
|
5365
5366
|
var yh = Ti.exports;
|
|
5366
|
-
const vh = yh,
|
|
5367
|
+
const vh = yh, On = /* @__PURE__ */ new WeakMap(), _s = (e, t = {}) => {
|
|
5367
5368
|
if (typeof e != "function")
|
|
5368
5369
|
throw new TypeError("Expected a function");
|
|
5369
5370
|
let n, r = 0;
|
|
5370
5371
|
const i = e.displayName || e.name || "<anonymous>", a = function(...o) {
|
|
5371
|
-
if (
|
|
5372
|
+
if (On.set(a, ++r), r === 1)
|
|
5372
5373
|
n = e.apply(this, o), e = null;
|
|
5373
5374
|
else if (t.throw === !0)
|
|
5374
5375
|
throw new Error(`Function \`${i}\` can only be called once`);
|
|
5375
5376
|
return n;
|
|
5376
5377
|
};
|
|
5377
|
-
return vh(a, e),
|
|
5378
|
+
return vh(a, e), On.set(a, r), a;
|
|
5378
5379
|
};
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
if (!
|
|
5380
|
+
tr.exports = _s;
|
|
5381
|
+
tr.exports.default = _s;
|
|
5382
|
+
tr.exports.callCount = (e) => {
|
|
5383
|
+
if (!On.has(e))
|
|
5383
5384
|
throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);
|
|
5384
|
-
return
|
|
5385
|
+
return On.get(e);
|
|
5385
5386
|
};
|
|
5386
|
-
var wh =
|
|
5387
|
-
Object.defineProperty(
|
|
5388
|
-
|
|
5387
|
+
var wh = tr.exports, Ct = {}, nr = {}, rr = {};
|
|
5388
|
+
Object.defineProperty(rr, "__esModule", { value: !0 });
|
|
5389
|
+
rr.SIGNALS = void 0;
|
|
5389
5390
|
const Eh = [
|
|
5390
5391
|
{
|
|
5391
5392
|
name: "SIGHUP",
|
|
@@ -5657,7 +5658,7 @@ const Eh = [
|
|
|
5657
5658
|
standard: "other"
|
|
5658
5659
|
}
|
|
5659
5660
|
];
|
|
5660
|
-
|
|
5661
|
+
rr.SIGNALS = Eh;
|
|
5661
5662
|
var st = {};
|
|
5662
5663
|
Object.defineProperty(st, "__esModule", { value: !0 });
|
|
5663
5664
|
st.SIGRTMAX = st.getRealtimeSignals = void 0;
|
|
@@ -5676,14 +5677,14 @@ const Sh = function(e, t) {
|
|
|
5676
5677
|
};
|
|
5677
5678
|
}, As = 34, Ts = 64;
|
|
5678
5679
|
st.SIGRTMAX = Ts;
|
|
5679
|
-
Object.defineProperty(
|
|
5680
|
-
|
|
5681
|
-
var xh =
|
|
5680
|
+
Object.defineProperty(nr, "__esModule", { value: !0 });
|
|
5681
|
+
nr.getSignals = void 0;
|
|
5682
|
+
var xh = zn, _h = rr, Ah = st;
|
|
5682
5683
|
const Th = function() {
|
|
5683
5684
|
const e = (0, Ah.getRealtimeSignals)();
|
|
5684
5685
|
return [..._h.SIGNALS, ...e].map(Ch);
|
|
5685
5686
|
};
|
|
5686
|
-
|
|
5687
|
+
nr.getSignals = Th;
|
|
5687
5688
|
const Ch = function({
|
|
5688
5689
|
name: e,
|
|
5689
5690
|
number: t,
|
|
@@ -5699,7 +5700,7 @@ const Ch = function({
|
|
|
5699
5700
|
};
|
|
5700
5701
|
Object.defineProperty(Ct, "__esModule", { value: !0 });
|
|
5701
5702
|
Ct.signalsByNumber = Ct.signalsByName = void 0;
|
|
5702
|
-
var Rh =
|
|
5703
|
+
var Rh = zn, Cs = nr, Fh = st;
|
|
5703
5704
|
const $h = function() {
|
|
5704
5705
|
return (0, Cs.getSignals)().reduce(Ih, {});
|
|
5705
5706
|
}, Ih = function(e, { name: t, number: n, description: r, supported: i, action: a, forced: o, standard: s }) {
|
|
@@ -5774,7 +5775,7 @@ Ci.exports.node = (e) => {
|
|
|
5774
5775
|
const t = Rs(e);
|
|
5775
5776
|
return t === "ipc" ? "ipc" : t === void 0 || typeof t == "string" ? [t, t, t, "ipc"] : t.includes("ipc") ? t : [...t, "ipc"];
|
|
5776
5777
|
};
|
|
5777
|
-
var Uh = Ci.exports, wt = { exports: {} },
|
|
5778
|
+
var Uh = Ci.exports, wt = { exports: {} }, xr = { exports: {} }, _o;
|
|
5778
5779
|
function Gh() {
|
|
5779
5780
|
return _o || (_o = 1, (function(e) {
|
|
5780
5781
|
e.exports = [
|
|
@@ -5802,7 +5803,7 @@ function Gh() {
|
|
|
5802
5803
|
"SIGSTKFLT",
|
|
5803
5804
|
"SIGUNUSED"
|
|
5804
5805
|
);
|
|
5805
|
-
})(
|
|
5806
|
+
})(xr)), xr.exports;
|
|
5806
5807
|
}
|
|
5807
5808
|
var ee = ve.process;
|
|
5808
5809
|
const Ze = function(e) {
|
|
@@ -5825,27 +5826,27 @@ else {
|
|
|
5825
5826
|
var n = "exit";
|
|
5826
5827
|
t && t.alwaysLast && (n = "afterexit");
|
|
5827
5828
|
var r = function() {
|
|
5828
|
-
ue.removeListener(n, e), ue.listeners("exit").length === 0 && ue.listeners("afterexit").length === 0 &&
|
|
5829
|
+
ue.removeListener(n, e), ue.listeners("exit").length === 0 && ue.listeners("afterexit").length === 0 && _r();
|
|
5829
5830
|
};
|
|
5830
5831
|
return ue.on(n, e), r;
|
|
5831
5832
|
};
|
|
5832
|
-
var
|
|
5833
|
+
var _r = function() {
|
|
5833
5834
|
!Lt || !Ze(ve.process) || (Lt = !1, Pt.forEach(function(t) {
|
|
5834
5835
|
try {
|
|
5835
|
-
ee.removeListener(t,
|
|
5836
|
+
ee.removeListener(t, Ar[t]);
|
|
5836
5837
|
} catch {
|
|
5837
5838
|
}
|
|
5838
|
-
}), ee.emit =
|
|
5839
|
+
}), ee.emit = Tr, ee.reallyExit = To, ue.count -= 1);
|
|
5839
5840
|
};
|
|
5840
|
-
wt.exports.unload =
|
|
5841
|
+
wt.exports.unload = _r;
|
|
5841
5842
|
var dt = function(t, n, r) {
|
|
5842
5843
|
ue.emitted[t] || (ue.emitted[t] = !0, ue.emit(t, n, r));
|
|
5843
|
-
},
|
|
5844
|
+
}, Ar = {};
|
|
5844
5845
|
Pt.forEach(function(e) {
|
|
5845
|
-
|
|
5846
|
+
Ar[e] = function() {
|
|
5846
5847
|
if (Ze(ve.process)) {
|
|
5847
5848
|
var n = ee.listeners(e);
|
|
5848
|
-
n.length === ue.count && (
|
|
5849
|
+
n.length === ue.count && (_r(), dt("exit", null, e), dt("afterexit", null, e), Kh && e === "SIGHUP" && (e = "SIGINT"), ee.kill(ee.pid, e));
|
|
5849
5850
|
}
|
|
5850
5851
|
};
|
|
5851
5852
|
}), wt.exports.signals = function() {
|
|
@@ -5854,7 +5855,7 @@ else {
|
|
|
5854
5855
|
var Lt = !1, Ao = function() {
|
|
5855
5856
|
Lt || !Ze(ve.process) || (Lt = !0, ue.count += 1, Pt = Pt.filter(function(t) {
|
|
5856
5857
|
try {
|
|
5857
|
-
return ee.on(t,
|
|
5858
|
+
return ee.on(t, Ar[t]), !0;
|
|
5858
5859
|
} catch {
|
|
5859
5860
|
return !1;
|
|
5860
5861
|
}
|
|
@@ -5864,17 +5865,17 @@ else {
|
|
|
5864
5865
|
var To = ee.reallyExit, Wh = function(t) {
|
|
5865
5866
|
Ze(ve.process) && (ee.exitCode = t || /* istanbul ignore next */
|
|
5866
5867
|
0, dt("exit", ee.exitCode, null), dt("afterexit", ee.exitCode, null), To.call(ee, ee.exitCode));
|
|
5867
|
-
},
|
|
5868
|
+
}, Tr = ee.emit, zh = function(t, n) {
|
|
5868
5869
|
if (t === "exit" && Ze(ve.process)) {
|
|
5869
5870
|
n !== void 0 && (ee.exitCode = n);
|
|
5870
|
-
var r =
|
|
5871
|
+
var r = Tr.apply(this, arguments);
|
|
5871
5872
|
return dt("exit", ee.exitCode, null), dt("afterexit", ee.exitCode, null), r;
|
|
5872
5873
|
} else
|
|
5873
|
-
return
|
|
5874
|
+
return Tr.apply(this, arguments);
|
|
5874
5875
|
};
|
|
5875
5876
|
}
|
|
5876
5877
|
var Yh = wt.exports;
|
|
5877
|
-
const Qh =
|
|
5878
|
+
const Qh = zn, Vh = Yh, Xh = 1e3 * 5, Zh = (e, t = "SIGTERM", n = {}) => {
|
|
5878
5879
|
const r = e(t);
|
|
5879
5880
|
return Jh(e, t, n, r), r;
|
|
5880
5881
|
}, Jh = (e, t, n, r) => {
|
|
@@ -5932,7 +5933,7 @@ Le.readable = (e) => Le(e) && e.readable !== !1 && typeof e._read == "function"
|
|
|
5932
5933
|
Le.duplex = (e) => Le.writable(e) && Le.readable(e);
|
|
5933
5934
|
Le.transform = (e) => Le.duplex(e) && typeof e._transform == "function";
|
|
5934
5935
|
var um = Le, zt = { exports: {} };
|
|
5935
|
-
const { PassThrough: lm } =
|
|
5936
|
+
const { PassThrough: lm } = Yn;
|
|
5936
5937
|
var fm = (e) => {
|
|
5937
5938
|
e = { ...e };
|
|
5938
5939
|
const { array: t } = e;
|
|
@@ -5948,7 +5949,7 @@ var fm = (e) => {
|
|
|
5948
5949
|
s.push(c), i ? o = s.length : o += c.length;
|
|
5949
5950
|
}), a.getBufferedValue = () => t ? s : r ? Buffer.concat(s, o) : s.join(""), a.getBufferedLength = () => o, a;
|
|
5950
5951
|
};
|
|
5951
|
-
const { constants: pm } = $u, dm =
|
|
5952
|
+
const { constants: pm } = $u, dm = Yn, { promisify: hm } = ut, mm = fm, gm = hm(dm.pipeline);
|
|
5952
5953
|
class Fs extends Error {
|
|
5953
5954
|
constructor() {
|
|
5954
5955
|
super("maxBuffer exceeded"), this.name = "MaxBufferError";
|
|
@@ -5982,7 +5983,7 @@ zt.exports.buffer = (e, t) => Ri(e, { ...t, encoding: "buffer" });
|
|
|
5982
5983
|
zt.exports.array = (e, t) => Ri(e, { ...t, array: !0 });
|
|
5983
5984
|
zt.exports.MaxBufferError = Fs;
|
|
5984
5985
|
var ym = zt.exports;
|
|
5985
|
-
const { PassThrough: vm } =
|
|
5986
|
+
const { PassThrough: vm } = Yn;
|
|
5986
5987
|
var wm = function() {
|
|
5987
5988
|
var e = [], t = new vm({ objectMode: !0 });
|
|
5988
5989
|
return t.setMaxListeners(0), t.add = n, t.isEmpty = r, t.on("unpipe", i), Array.prototype.slice.call(arguments).forEach(n), t;
|
|
@@ -6005,7 +6006,7 @@ const $s = um, Co = ym, Em = wm, bm = (e, t) => {
|
|
|
6005
6006
|
return;
|
|
6006
6007
|
const n = Em();
|
|
6007
6008
|
return e.stdout && n.add(e.stdout), e.stderr && n.add(e.stderr), n;
|
|
6008
|
-
},
|
|
6009
|
+
}, Cr = async (e, t) => {
|
|
6009
6010
|
if (e) {
|
|
6010
6011
|
e.destroy();
|
|
6011
6012
|
try {
|
|
@@ -6014,19 +6015,19 @@ const $s = um, Co = ym, Em = wm, bm = (e, t) => {
|
|
|
6014
6015
|
return n.bufferedData;
|
|
6015
6016
|
}
|
|
6016
6017
|
}
|
|
6017
|
-
},
|
|
6018
|
+
}, Rr = (e, { encoding: t, buffer: n, maxBuffer: r }) => {
|
|
6018
6019
|
if (!(!e || !n))
|
|
6019
6020
|
return t ? Co(e, { encoding: t, maxBuffer: r }) : Co.buffer(e, { maxBuffer: r });
|
|
6020
6021
|
}, xm = async ({ stdout: e, stderr: t, all: n }, { encoding: r, buffer: i, maxBuffer: a }, o) => {
|
|
6021
|
-
const s =
|
|
6022
|
+
const s = Rr(e, { encoding: r, buffer: i, maxBuffer: a }), c = Rr(t, { encoding: r, buffer: i, maxBuffer: a }), f = Rr(n, { encoding: r, buffer: i, maxBuffer: a * 2 });
|
|
6022
6023
|
try {
|
|
6023
6024
|
return await Promise.all([o, s, c, f]);
|
|
6024
6025
|
} catch (u) {
|
|
6025
6026
|
return Promise.all([
|
|
6026
6027
|
{ error: u, signal: u.signal, timedOut: u.timedOut },
|
|
6027
|
-
|
|
6028
|
-
|
|
6029
|
-
|
|
6028
|
+
Cr(e, s),
|
|
6029
|
+
Cr(t, c),
|
|
6030
|
+
Cr(n, f)
|
|
6030
6031
|
]);
|
|
6031
6032
|
}
|
|
6032
6033
|
}, _m = ({ input: e }) => {
|
|
@@ -6075,7 +6076,7 @@ var Mm = {
|
|
|
6075
6076
|
getEscapedCommand: Lm,
|
|
6076
6077
|
parseCommand: Dm
|
|
6077
6078
|
};
|
|
6078
|
-
const jm = Ee, ii = En, Hm = hh, Bm = mh, Um = gh, Gm = wh,
|
|
6079
|
+
const jm = Ee, ii = En, Hm = hh, Bm = mh, Um = gh, Gm = wh, Nn = Hh, Os = Uh, { spawnedKill: qm, spawnedCancel: Km, setupTimeout: Wm, validateTimeout: zm, setExitHandler: Ym } = cm, { handleInput: Qm, getSpawnedResult: Vm, makeAllStream: Xm, validateInputSync: Zm } = Am, { mergePromise: Ro, getSpawnedPromise: Jm } = $m, { joinCommand: Ns, parseCommand: Ps, getEscapedCommand: Ls } = Mm, eg = 1e3 * 1e3 * 100, tg = ({ env: e, extendEnv: t, preferLocal: n, localDir: r, execPath: i }) => {
|
|
6079
6080
|
const a = t ? { ...process.env, ...e } : e;
|
|
6080
6081
|
return n ? Um.env({ env: a, cwd: r, execPath: i }) : a;
|
|
6081
6082
|
}, ks = (e, t, n = {}) => {
|
|
@@ -6095,14 +6096,14 @@ const jm = Ee, ii = En, Hm = hh, Bm = mh, Um = gh, Gm = wh, On = Hh, Os = Uh, {
|
|
|
6095
6096
|
windowsHide: !0,
|
|
6096
6097
|
...n
|
|
6097
6098
|
}, n.env = tg(n), n.stdio = Os(n), process.platform === "win32" && jm.basename(e, ".exe") === "cmd" && t.unshift("/q"), { file: e, args: t, options: n, parsed: r };
|
|
6098
|
-
}, Mt = (e, t, n) => typeof t != "string" && !Buffer.isBuffer(t) ? n === void 0 ? void 0 : "" : e.stripFinalNewline ? Bm(t) : t,
|
|
6099
|
+
}, Mt = (e, t, n) => typeof t != "string" && !Buffer.isBuffer(t) ? n === void 0 ? void 0 : "" : e.stripFinalNewline ? Bm(t) : t, ir = (e, t, n) => {
|
|
6099
6100
|
const r = ks(e, t, n), i = Ns(e, t), a = Ls(e, t);
|
|
6100
6101
|
zm(r.options);
|
|
6101
6102
|
let o;
|
|
6102
6103
|
try {
|
|
6103
6104
|
o = ii.spawn(r.file, r.args, r.options);
|
|
6104
6105
|
} catch (d) {
|
|
6105
|
-
const h = new ii.ChildProcess(), m = Promise.reject(
|
|
6106
|
+
const h = new ii.ChildProcess(), m = Promise.reject(Nn({
|
|
6106
6107
|
error: d,
|
|
6107
6108
|
stdout: "",
|
|
6108
6109
|
stderr: "",
|
|
@@ -6121,7 +6122,7 @@ const jm = Ee, ii = En, Hm = hh, Bm = mh, Um = gh, Gm = wh, On = Hh, Os = Uh, {
|
|
|
6121
6122
|
const p = Gm(async () => {
|
|
6122
6123
|
const [{ error: d, exitCode: h, signal: m, timedOut: g }, w, S, x] = await Vm(o, r.options, f), C = Mt(r.options, w), T = Mt(r.options, S), I = Mt(r.options, x);
|
|
6123
6124
|
if (d || h !== 0 || m !== null) {
|
|
6124
|
-
const
|
|
6125
|
+
const k = Nn({
|
|
6125
6126
|
error: d,
|
|
6126
6127
|
exitCode: h,
|
|
6127
6128
|
signal: m,
|
|
@@ -6136,8 +6137,8 @@ const jm = Ee, ii = En, Hm = hh, Bm = mh, Um = gh, Gm = wh, On = Hh, Os = Uh, {
|
|
|
6136
6137
|
killed: o.killed
|
|
6137
6138
|
});
|
|
6138
6139
|
if (!r.options.reject)
|
|
6139
|
-
return
|
|
6140
|
-
throw
|
|
6140
|
+
return k;
|
|
6141
|
+
throw k;
|
|
6141
6142
|
}
|
|
6142
6143
|
return {
|
|
6143
6144
|
command: i,
|
|
@@ -6154,7 +6155,7 @@ const jm = Ee, ii = En, Hm = hh, Bm = mh, Um = gh, Gm = wh, On = Hh, Os = Uh, {
|
|
|
6154
6155
|
});
|
|
6155
6156
|
return Qm(o, r.options.input), o.all = Xm(o, r.options), Ro(o, p);
|
|
6156
6157
|
};
|
|
6157
|
-
Wt.exports =
|
|
6158
|
+
Wt.exports = ir;
|
|
6158
6159
|
Wt.exports.sync = (e, t, n) => {
|
|
6159
6160
|
const r = ks(e, t, n), i = Ns(e, t), a = Ls(e, t);
|
|
6160
6161
|
Zm(r.options);
|
|
@@ -6162,7 +6163,7 @@ Wt.exports.sync = (e, t, n) => {
|
|
|
6162
6163
|
try {
|
|
6163
6164
|
o = ii.spawnSync(r.file, r.args, r.options);
|
|
6164
6165
|
} catch (f) {
|
|
6165
|
-
throw
|
|
6166
|
+
throw Nn({
|
|
6166
6167
|
error: f,
|
|
6167
6168
|
stdout: "",
|
|
6168
6169
|
stderr: "",
|
|
@@ -6177,7 +6178,7 @@ Wt.exports.sync = (e, t, n) => {
|
|
|
6177
6178
|
}
|
|
6178
6179
|
const s = Mt(r.options, o.stdout, o.error), c = Mt(r.options, o.stderr, o.error);
|
|
6179
6180
|
if (o.error || o.status !== 0 || o.signal !== null) {
|
|
6180
|
-
const f =
|
|
6181
|
+
const f = Nn({
|
|
6181
6182
|
stdout: s,
|
|
6182
6183
|
stderr: c,
|
|
6183
6184
|
error: o.error,
|
|
@@ -6208,11 +6209,11 @@ Wt.exports.sync = (e, t, n) => {
|
|
|
6208
6209
|
};
|
|
6209
6210
|
Wt.exports.command = (e, t) => {
|
|
6210
6211
|
const [n, ...r] = Ps(e);
|
|
6211
|
-
return
|
|
6212
|
+
return ir(n, r, t);
|
|
6212
6213
|
};
|
|
6213
6214
|
Wt.exports.commandSync = (e, t) => {
|
|
6214
6215
|
const [n, ...r] = Ps(e);
|
|
6215
|
-
return
|
|
6216
|
+
return ir.sync(n, r, t);
|
|
6216
6217
|
};
|
|
6217
6218
|
Wt.exports.node = (e, t, n = {}) => {
|
|
6218
6219
|
t && !Array.isArray(t) && typeof t == "object" && (n = t, t = []);
|
|
@@ -6220,7 +6221,7 @@ Wt.exports.node = (e, t, n = {}) => {
|
|
|
6220
6221
|
nodePath: a = process.execPath,
|
|
6221
6222
|
nodeOptions: o = i
|
|
6222
6223
|
} = n;
|
|
6223
|
-
return
|
|
6224
|
+
return ir(
|
|
6224
6225
|
a,
|
|
6225
6226
|
[
|
|
6226
6227
|
...o,
|
|
@@ -6237,7 +6238,7 @@ Wt.exports.node = (e, t, n = {}) => {
|
|
|
6237
6238
|
}
|
|
6238
6239
|
);
|
|
6239
6240
|
};
|
|
6240
|
-
var xe = {},
|
|
6241
|
+
var xe = {}, or = { exports: {} }, Ds = { exports: {} }, Fi = { exports: {} }, $i = { exports: {} }, Ii = { exports: {} }, Oi = { exports: {} };
|
|
6241
6242
|
const Ms = (e, ...t) => new Promise((n) => {
|
|
6242
6243
|
n(e(...t));
|
|
6243
6244
|
});
|
|
@@ -6304,7 +6305,7 @@ const og = async (e, t) => t(await e), ag = async (e) => {
|
|
|
6304
6305
|
$i.exports = Bs;
|
|
6305
6306
|
$i.exports.default = Bs;
|
|
6306
6307
|
var sg = $i.exports;
|
|
6307
|
-
const Us = Ee,
|
|
6308
|
+
const Us = Ee, Pn = Xe, { promisify: Gs } = ut, cg = sg, ug = Gs(Pn.stat), lg = Gs(Pn.lstat), qs = {
|
|
6308
6309
|
directory: "isDirectory",
|
|
6309
6310
|
file: "isFile"
|
|
6310
6311
|
};
|
|
@@ -6337,7 +6338,7 @@ Fi.exports.sync = (e, t) => {
|
|
|
6337
6338
|
type: "file",
|
|
6338
6339
|
...t
|
|
6339
6340
|
}, Ks(t);
|
|
6340
|
-
const n = t.allowSymlinks ?
|
|
6341
|
+
const n = t.allowSymlinks ? Pn.statSync : Pn.lstatSync;
|
|
6341
6342
|
for (const r of e)
|
|
6342
6343
|
try {
|
|
6343
6344
|
const i = n(Us.resolve(t.cwd, r));
|
|
@@ -6408,13 +6409,13 @@ const Qs = Ee, Vs = hg, Xs = async (e) => {
|
|
|
6408
6409
|
const t = await Vs("package.json", { cwd: e });
|
|
6409
6410
|
return t && Qs.dirname(t);
|
|
6410
6411
|
};
|
|
6411
|
-
|
|
6412
|
-
|
|
6413
|
-
|
|
6412
|
+
or.exports = Xs;
|
|
6413
|
+
or.exports.default = Xs;
|
|
6414
|
+
or.exports.sync = (e) => {
|
|
6414
6415
|
const t = Vs.sync("package.json", { cwd: e });
|
|
6415
6416
|
return t && Qs.dirname(t);
|
|
6416
6417
|
};
|
|
6417
|
-
var mg =
|
|
6418
|
+
var mg = or.exports, ar = {};
|
|
6418
6419
|
(function(e) {
|
|
6419
6420
|
e.isInteger = (t) => typeof t == "number" ? Number.isInteger(t) : typeof t == "string" && t.trim() !== "" ? Number.isInteger(Number(t)) : !1, e.find = (t, n) => t.nodes.find((r) => r.type === n), e.exceedsLimit = (t, n, r = 1, i) => i === !1 || !e.isInteger(t) || !e.isInteger(n) ? !1 : (Number(n) - Number(t)) / Number(r) >= i, e.escapeNode = (t, n = 0, r) => {
|
|
6420
6421
|
const i = t.nodes[n];
|
|
@@ -6433,8 +6434,8 @@ var mg = ir.exports, or = {};
|
|
|
6433
6434
|
};
|
|
6434
6435
|
return r(t), n;
|
|
6435
6436
|
};
|
|
6436
|
-
})(
|
|
6437
|
-
const $o =
|
|
6437
|
+
})(ar);
|
|
6438
|
+
const $o = ar;
|
|
6438
6439
|
var Pi = (e, t = {}) => {
|
|
6439
6440
|
const n = (r, i = {}) => {
|
|
6440
6441
|
const a = t.escapeInvalid && $o.isInvalidBrace(i), o = r.invalid === !0 && t.escapeInvalid === !0;
|
|
@@ -6490,7 +6491,7 @@ const Io = gg, rt = (e, t, n) => {
|
|
|
6490
6491
|
return u >= 0 && (d = Oo(f, u, p, r)), p.negatives = h, p.positives = d, p.result = yg(h, d), r.capture === !0 ? p.result = `(${p.result})` : r.wrap !== !1 && d.length + h.length > 1 && (p.result = `(?:${p.result})`), rt.cache[c] = p, p.result;
|
|
6491
6492
|
};
|
|
6492
6493
|
function yg(e, t, n) {
|
|
6493
|
-
let r =
|
|
6494
|
+
let r = Fr(e, t, "-", !1) || [], i = Fr(t, e, "", !1) || [], a = Fr(e, t, "-?", !0) || [];
|
|
6494
6495
|
return r.concat(a).concat(i).join("|");
|
|
6495
6496
|
}
|
|
6496
6497
|
function vg(e, t) {
|
|
@@ -6523,7 +6524,7 @@ function Oo(e, t, n, r) {
|
|
|
6523
6524
|
}
|
|
6524
6525
|
return a;
|
|
6525
6526
|
}
|
|
6526
|
-
function
|
|
6527
|
+
function Fr(e, t, n, r, i) {
|
|
6527
6528
|
let a = [];
|
|
6528
6529
|
for (let o of e) {
|
|
6529
6530
|
let { string: s } = o;
|
|
@@ -6582,7 +6583,7 @@ var _g = rt;
|
|
|
6582
6583
|
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
6583
6584
|
* Licensed under the MIT License.
|
|
6584
6585
|
*/
|
|
6585
|
-
const Ag = ut, Zs = _g, Mo = (e) => e !== null && typeof e == "object" && !Array.isArray(e), Tg = (e) => (t) => e === !0 ? Number(t) : String(t),
|
|
6586
|
+
const Ag = ut, Zs = _g, Mo = (e) => e !== null && typeof e == "object" && !Array.isArray(e), Tg = (e) => (t) => e === !0 ? Number(t) : String(t), $r = (e) => typeof e == "number" || typeof e == "string" && e !== "", jt = (e) => Number.isInteger(+e), Ir = (e) => {
|
|
6586
6587
|
let t = `${e}`, n = -1;
|
|
6587
6588
|
if (t[0] === "-" && (t = t.slice(1)), t === "0") return !1;
|
|
6588
6589
|
for (; t[++n] === "0"; ) ;
|
|
@@ -6593,14 +6594,14 @@ const Ag = ut, Zs = _g, Mo = (e) => e !== null && typeof e == "object" && !Array
|
|
|
6593
6594
|
r && (e = e.slice(1)), e = r + e.padStart(r ? t - 1 : t, "0");
|
|
6594
6595
|
}
|
|
6595
6596
|
return n === !1 ? String(e) : e;
|
|
6596
|
-
},
|
|
6597
|
+
}, Ln = (e, t) => {
|
|
6597
6598
|
let n = e[0] === "-" ? "-" : "";
|
|
6598
6599
|
for (n && (e = e.slice(1), t--); e.length < t; ) e = "0" + e;
|
|
6599
6600
|
return n ? "-" + e : e;
|
|
6600
6601
|
}, Fg = (e, t, n) => {
|
|
6601
6602
|
e.negatives.sort((s, c) => s < c ? -1 : s > c ? 1 : 0), e.positives.sort((s, c) => s < c ? -1 : s > c ? 1 : 0);
|
|
6602
6603
|
let r = t.capture ? "" : "?:", i = "", a = "", o;
|
|
6603
|
-
return e.positives.length && (i = e.positives.map((s) =>
|
|
6604
|
+
return e.positives.length && (i = e.positives.map((s) => Ln(String(s), n)).join("|")), e.negatives.length && (a = `-(${r}${e.negatives.map((s) => Ln(String(s), n)).join("|")})`), i && a ? o = `${i}|${a}` : o = i || a, t.wrap ? `(${r}${o})` : o;
|
|
6604
6605
|
}, Js = (e, t, n, r) => {
|
|
6605
6606
|
if (n)
|
|
6606
6607
|
return Zs(e, t, { wrap: !1, ...r });
|
|
@@ -6630,9 +6631,9 @@ const Ag = ut, Zs = _g, Mo = (e) => e !== null && typeof e == "object" && !Array
|
|
|
6630
6631
|
i === 0 && (i = 0), a === 0 && (a = 0);
|
|
6631
6632
|
let o = i > a, s = String(e), c = String(t), f = String(n);
|
|
6632
6633
|
n = Math.max(Math.abs(n), 1);
|
|
6633
|
-
let u =
|
|
6634
|
+
let u = Ir(s) || Ir(c) || Ir(f), l = u ? Math.max(s.length, c.length, f.length) : 0, p = u === !1 && Cg(e, t, r) === !1, d = r.transform || Tg(p);
|
|
6634
6635
|
if (r.toRegex && n === 1)
|
|
6635
|
-
return Js(
|
|
6636
|
+
return Js(Ln(e, l), Ln(t, l), !0, r);
|
|
6636
6637
|
let h = { negatives: [], positives: [] }, m = (S) => h[S < 0 ? "negatives" : "positives"].push(Math.abs(S)), g = [], w = 0;
|
|
6637
6638
|
for (; o ? i >= a : i <= a; )
|
|
6638
6639
|
r.toRegex === !0 && n > 1 ? m(i) : g.push(Rg(d(i, w), l, p)), i = o ? i - n : i + n, w++;
|
|
@@ -6648,9 +6649,9 @@ const Ag = ut, Zs = _g, Mo = (e) => e !== null && typeof e == "object" && !Array
|
|
|
6648
6649
|
u.push(i(a, l)), a = s ? a - n : a + n, l++;
|
|
6649
6650
|
return r.toRegex === !0 ? ec(u, null, { wrap: !1, options: r }) : u;
|
|
6650
6651
|
}, hn = (e, t, n, r = {}) => {
|
|
6651
|
-
if (t == null &&
|
|
6652
|
+
if (t == null && $r(e))
|
|
6652
6653
|
return [e];
|
|
6653
|
-
if (
|
|
6654
|
+
if (!$r(e) || !$r(t))
|
|
6654
6655
|
return nc(e, t, r);
|
|
6655
6656
|
if (typeof n == "function")
|
|
6656
6657
|
return hn(e, t, 1, { transform: n });
|
|
@@ -6660,7 +6661,7 @@ const Ag = ut, Zs = _g, Mo = (e) => e !== null && typeof e == "object" && !Array
|
|
|
6660
6661
|
return i.capture === !0 && (i.wrap = !0), n = n || i.step || 1, jt(n) ? jt(e) && jt(t) ? Ig(e, t, n, i) : Og(e, t, Math.max(Math.abs(n), 1), i) : n != null && !Mo(n) ? $g(n, i) : hn(e, t, 1, n);
|
|
6661
6662
|
};
|
|
6662
6663
|
var rc = hn;
|
|
6663
|
-
const Ng = rc, jo =
|
|
6664
|
+
const Ng = rc, jo = ar, Pg = (e, t = {}) => {
|
|
6664
6665
|
const n = (r, i = {}) => {
|
|
6665
6666
|
const a = jo.isInvalidBrace(i), o = r.invalid === !0 && t.escapeInvalid === !0, s = a === !0 || o === !0, c = t.escapeInvalid === !0 ? "\\" : "";
|
|
6666
6667
|
let f = "";
|
|
@@ -6689,7 +6690,7 @@ const Ng = rc, jo = or, Pg = (e, t = {}) => {
|
|
|
6689
6690
|
return n(e);
|
|
6690
6691
|
};
|
|
6691
6692
|
var Lg = Pg;
|
|
6692
|
-
const kg = rc, Ho = Pi, bt =
|
|
6693
|
+
const kg = rc, Ho = Pi, bt = ar, et = (e = "", t = "", n = !1) => {
|
|
6693
6694
|
const r = [];
|
|
6694
6695
|
if (e = [].concat(e), t = [].concat(t), !t.length) return e;
|
|
6695
6696
|
if (!e.length)
|
|
@@ -6781,7 +6782,7 @@ var Mg = Dg, jg = {
|
|
|
6781
6782
|
};
|
|
6782
6783
|
const Hg = Pi, {
|
|
6783
6784
|
MAX_LENGTH: Bo,
|
|
6784
|
-
CHAR_BACKSLASH:
|
|
6785
|
+
CHAR_BACKSLASH: Or,
|
|
6785
6786
|
/* \ */
|
|
6786
6787
|
CHAR_BACKTICK: Bg,
|
|
6787
6788
|
/* ` */
|
|
@@ -6826,7 +6827,7 @@ const Hg = Pi, {
|
|
|
6826
6827
|
};
|
|
6827
6828
|
for (h({ type: "bos" }); u < f; )
|
|
6828
6829
|
if (o = a[a.length - 1], p = d(), !(p === Xg || p === Vg)) {
|
|
6829
|
-
if (p ===
|
|
6830
|
+
if (p === Or) {
|
|
6830
6831
|
h({ type: "text", value: (t.keepEscaping ? p : "") + d() });
|
|
6831
6832
|
continue;
|
|
6832
6833
|
}
|
|
@@ -6842,7 +6843,7 @@ const Hg = Pi, {
|
|
|
6842
6843
|
c++;
|
|
6843
6844
|
continue;
|
|
6844
6845
|
}
|
|
6845
|
-
if (m ===
|
|
6846
|
+
if (m === Or) {
|
|
6846
6847
|
p += d();
|
|
6847
6848
|
continue;
|
|
6848
6849
|
}
|
|
@@ -6868,7 +6869,7 @@ const Hg = Pi, {
|
|
|
6868
6869
|
const m = p;
|
|
6869
6870
|
let g;
|
|
6870
6871
|
for (t.keepQuotes !== !0 && (p = ""); u < f && (g = d()); ) {
|
|
6871
|
-
if (g ===
|
|
6872
|
+
if (g === Or) {
|
|
6872
6873
|
p += g + d();
|
|
6873
6874
|
continue;
|
|
6874
6875
|
}
|
|
@@ -6972,11 +6973,11 @@ _e.expand = (e, t = {}) => {
|
|
|
6972
6973
|
};
|
|
6973
6974
|
_e.create = (e, t = {}) => e === "" || e.length < 3 ? [e] : t.expand !== !0 ? _e.compile(e, t) : _e.expand(e, t);
|
|
6974
6975
|
var ry = _e, Yt = {};
|
|
6975
|
-
const iy = Ee, Ne = "\\\\/", Ko = `[^${Ne}]`, He = "\\.", oy = "\\+", ay = "\\?",
|
|
6976
|
+
const iy = Ee, Ne = "\\\\/", Ko = `[^${Ne}]`, He = "\\.", oy = "\\+", ay = "\\?", sr = "\\/", sy = "(?=.)", ic = "[^/]", Li = `(?:${sr}|$)`, oc = `(?:^|${sr})`, ki = `${He}{1,2}${Li}`, cy = `(?!${He})`, uy = `(?!${oc}${ki})`, ly = `(?!${He}{0,1}${Li})`, fy = `(?!${ki})`, py = `[^.${sr}]`, dy = `${ic}*?`, ac = {
|
|
6976
6977
|
DOT_LITERAL: He,
|
|
6977
6978
|
PLUS_LITERAL: oy,
|
|
6978
6979
|
QMARK_LITERAL: ay,
|
|
6979
|
-
SLASH_LITERAL:
|
|
6980
|
+
SLASH_LITERAL: sr,
|
|
6980
6981
|
ONE_CHAR: sy,
|
|
6981
6982
|
QMARK: ic,
|
|
6982
6983
|
END_ANCHOR: Li,
|
|
@@ -7017,7 +7018,7 @@ const iy = Ee, Ne = "\\\\/", Ko = `[^${Ne}]`, He = "\\.", oy = "\\+", ay = "\\?"
|
|
|
7017
7018
|
word: "A-Za-z0-9_",
|
|
7018
7019
|
xdigit: "A-Fa-f0-9"
|
|
7019
7020
|
};
|
|
7020
|
-
var
|
|
7021
|
+
var cr = {
|
|
7021
7022
|
MAX_LENGTH: 1024 * 64,
|
|
7022
7023
|
POSIX_REGEX_SOURCE: my,
|
|
7023
7024
|
// regular expressions
|
|
@@ -7148,7 +7149,7 @@ var sr = {
|
|
|
7148
7149
|
REGEX_REMOVE_BACKSLASH: i,
|
|
7149
7150
|
REGEX_SPECIAL_CHARS: a,
|
|
7150
7151
|
REGEX_SPECIAL_CHARS_GLOBAL: o
|
|
7151
|
-
} =
|
|
7152
|
+
} = cr;
|
|
7152
7153
|
e.isObject = (s) => s !== null && typeof s == "object" && !Array.isArray(s), e.hasRegexChars = (s) => a.test(s), e.isRegexChar = (s) => s.length === 1 && e.hasRegexChars(s), e.escapeRegex = (s) => s.replace(o, "\\$1"), e.toPosixSlashes = (s) => s.replace(r, "/"), e.removeBackslashes = (s) => s.replace(i, (c) => c === "\\" ? "" : c), e.supportsLookbehinds = () => {
|
|
7153
7154
|
const s = process.version.slice(1).split(".").map(Number);
|
|
7154
7155
|
return s.length === 3 && s[0] >= 9 || s[0] === 8 && s[1] >= 10;
|
|
@@ -7165,7 +7166,7 @@ var sr = {
|
|
|
7165
7166
|
};
|
|
7166
7167
|
})(Yt);
|
|
7167
7168
|
const Wo = Yt, {
|
|
7168
|
-
CHAR_ASTERISK:
|
|
7169
|
+
CHAR_ASTERISK: Nr,
|
|
7169
7170
|
/* * */
|
|
7170
7171
|
CHAR_AT: gy,
|
|
7171
7172
|
/* @ */
|
|
@@ -7173,15 +7174,15 @@ const Wo = Yt, {
|
|
|
7173
7174
|
/* \ */
|
|
7174
7175
|
CHAR_COMMA: yy,
|
|
7175
7176
|
/* , */
|
|
7176
|
-
CHAR_DOT:
|
|
7177
|
+
CHAR_DOT: Pr,
|
|
7177
7178
|
/* . */
|
|
7178
|
-
CHAR_EXCLAMATION_MARK:
|
|
7179
|
+
CHAR_EXCLAMATION_MARK: Lr,
|
|
7179
7180
|
/* ! */
|
|
7180
7181
|
CHAR_FORWARD_SLASH: sc,
|
|
7181
7182
|
/* / */
|
|
7182
|
-
CHAR_LEFT_CURLY_BRACE:
|
|
7183
|
+
CHAR_LEFT_CURLY_BRACE: kr,
|
|
7183
7184
|
/* { */
|
|
7184
|
-
CHAR_LEFT_PARENTHESES:
|
|
7185
|
+
CHAR_LEFT_PARENTHESES: Dr,
|
|
7185
7186
|
/* ( */
|
|
7186
7187
|
CHAR_LEFT_SQUARE_BRACKET: vy,
|
|
7187
7188
|
/* [ */
|
|
@@ -7195,30 +7196,30 @@ const Wo = Yt, {
|
|
|
7195
7196
|
/* ) */
|
|
7196
7197
|
CHAR_RIGHT_SQUARE_BRACKET: by
|
|
7197
7198
|
/* ] */
|
|
7198
|
-
} =
|
|
7199
|
+
} = cr, Qo = (e) => e === sc || e === Dt, Vo = (e) => {
|
|
7199
7200
|
e.isPrefix !== !0 && (e.depth = e.isGlobstar ? 1 / 0 : 1);
|
|
7200
7201
|
}, Sy = (e, t) => {
|
|
7201
7202
|
const n = t || {}, r = e.length - 1, i = n.parts === !0 || n.scanToEnd === !0, a = [], o = [], s = [];
|
|
7202
|
-
let c = e, f = -1, u = 0, l = 0, p = !1, d = !1, h = !1, m = !1, g = !1, w = !1, S = !1, x = !1, C = !1, T = !1, I = 0,
|
|
7203
|
-
const O = () => f >= r, v = () => c.charCodeAt(f + 1), M = () => (
|
|
7203
|
+
let c = e, f = -1, u = 0, l = 0, p = !1, d = !1, h = !1, m = !1, g = !1, w = !1, S = !1, x = !1, C = !1, T = !1, I = 0, k, A, _ = { value: "", depth: 0, isGlob: !1 };
|
|
7204
|
+
const O = () => f >= r, v = () => c.charCodeAt(f + 1), M = () => (k = A, c.charCodeAt(++f));
|
|
7204
7205
|
for (; f < r; ) {
|
|
7205
7206
|
A = M();
|
|
7206
7207
|
let F;
|
|
7207
7208
|
if (A === Dt) {
|
|
7208
|
-
S = _.backslashes = !0, A = M(), A ===
|
|
7209
|
+
S = _.backslashes = !0, A = M(), A === kr && (w = !0);
|
|
7209
7210
|
continue;
|
|
7210
7211
|
}
|
|
7211
|
-
if (w === !0 || A ===
|
|
7212
|
+
if (w === !0 || A === kr) {
|
|
7212
7213
|
for (I++; O() !== !0 && (A = M()); ) {
|
|
7213
7214
|
if (A === Dt) {
|
|
7214
7215
|
S = _.backslashes = !0, M();
|
|
7215
7216
|
continue;
|
|
7216
7217
|
}
|
|
7217
|
-
if (A ===
|
|
7218
|
+
if (A === kr) {
|
|
7218
7219
|
I++;
|
|
7219
7220
|
continue;
|
|
7220
7221
|
}
|
|
7221
|
-
if (w !== !0 && A ===
|
|
7222
|
+
if (w !== !0 && A === Pr && (A = M()) === Pr) {
|
|
7222
7223
|
if (p = _.isBrace = !0, h = _.isGlob = !0, T = !0, i === !0)
|
|
7223
7224
|
continue;
|
|
7224
7225
|
break;
|
|
@@ -7239,15 +7240,15 @@ const Wo = Yt, {
|
|
|
7239
7240
|
}
|
|
7240
7241
|
if (A === sc) {
|
|
7241
7242
|
if (a.push(f), o.push(_), _ = { value: "", depth: 0, isGlob: !1 }, T === !0) continue;
|
|
7242
|
-
if (
|
|
7243
|
+
if (k === Pr && f === u + 1) {
|
|
7243
7244
|
u += 2;
|
|
7244
7245
|
continue;
|
|
7245
7246
|
}
|
|
7246
7247
|
l = f + 1;
|
|
7247
7248
|
continue;
|
|
7248
7249
|
}
|
|
7249
|
-
if (n.noext !== !0 && (A === wy || A === gy || A ===
|
|
7250
|
-
if (h = _.isGlob = !0, m = _.isExtglob = !0, T = !0, A ===
|
|
7250
|
+
if (n.noext !== !0 && (A === wy || A === gy || A === Nr || A === zo || A === Lr) === !0 && v() === Dr) {
|
|
7251
|
+
if (h = _.isGlob = !0, m = _.isExtglob = !0, T = !0, A === Lr && f === u && (C = !0), i === !0) {
|
|
7251
7252
|
for (; O() !== !0 && (A = M()); ) {
|
|
7252
7253
|
if (A === Dt) {
|
|
7253
7254
|
S = _.backslashes = !0, A = M();
|
|
@@ -7262,8 +7263,8 @@ const Wo = Yt, {
|
|
|
7262
7263
|
}
|
|
7263
7264
|
break;
|
|
7264
7265
|
}
|
|
7265
|
-
if (A ===
|
|
7266
|
-
if (
|
|
7266
|
+
if (A === Nr) {
|
|
7267
|
+
if (k === Nr && (g = _.isGlobstar = !0), h = _.isGlob = !0, T = !0, i === !0)
|
|
7267
7268
|
continue;
|
|
7268
7269
|
break;
|
|
7269
7270
|
}
|
|
@@ -7287,14 +7288,14 @@ const Wo = Yt, {
|
|
|
7287
7288
|
continue;
|
|
7288
7289
|
break;
|
|
7289
7290
|
}
|
|
7290
|
-
if (n.nonegate !== !0 && A ===
|
|
7291
|
+
if (n.nonegate !== !0 && A === Lr && f === u) {
|
|
7291
7292
|
x = _.negated = !0, u++;
|
|
7292
7293
|
continue;
|
|
7293
7294
|
}
|
|
7294
|
-
if (n.noparen !== !0 && A ===
|
|
7295
|
+
if (n.noparen !== !0 && A === Dr) {
|
|
7295
7296
|
if (h = _.isGlob = !0, i === !0) {
|
|
7296
7297
|
for (; O() !== !0 && (A = M()); ) {
|
|
7297
|
-
if (A ===
|
|
7298
|
+
if (A === Dr) {
|
|
7298
7299
|
S = _.backslashes = !0, A = M();
|
|
7299
7300
|
continue;
|
|
7300
7301
|
}
|
|
@@ -7332,26 +7333,26 @@ const Wo = Yt, {
|
|
|
7332
7333
|
};
|
|
7333
7334
|
if (n.tokens === !0 && (b.maxDepth = 0, Qo(A) || o.push(_), b.tokens = o), n.parts === !0 || n.tokens === !0) {
|
|
7334
7335
|
let F;
|
|
7335
|
-
for (let
|
|
7336
|
-
const H = F ? F + 1 : u, q = a[
|
|
7337
|
-
n.tokens && (
|
|
7336
|
+
for (let D = 0; D < a.length; D++) {
|
|
7337
|
+
const H = F ? F + 1 : u, q = a[D], z = e.slice(H, q);
|
|
7338
|
+
n.tokens && (D === 0 && u !== 0 ? (o[D].isPrefix = !0, o[D].value = G) : o[D].value = z, Vo(o[D]), b.maxDepth += o[D].depth), (D !== 0 || z !== "") && s.push(z), F = q;
|
|
7338
7339
|
}
|
|
7339
7340
|
if (F && F + 1 < e.length) {
|
|
7340
|
-
const
|
|
7341
|
-
s.push(
|
|
7341
|
+
const D = e.slice(F + 1);
|
|
7342
|
+
s.push(D), n.tokens && (o[o.length - 1].value = D, Vo(o[o.length - 1]), b.maxDepth += o[o.length - 1].depth);
|
|
7342
7343
|
}
|
|
7343
7344
|
b.slashes = a, b.parts = s;
|
|
7344
7345
|
}
|
|
7345
7346
|
return b;
|
|
7346
7347
|
};
|
|
7347
7348
|
var xy = Sy;
|
|
7348
|
-
const
|
|
7349
|
-
MAX_LENGTH:
|
|
7349
|
+
const kn = cr, be = Yt, {
|
|
7350
|
+
MAX_LENGTH: Dn,
|
|
7350
7351
|
POSIX_REGEX_SOURCE: _y,
|
|
7351
7352
|
REGEX_NON_SPECIAL_CHARS: Ay,
|
|
7352
7353
|
REGEX_SPECIAL_CHARS_BACKREF: Ty,
|
|
7353
7354
|
REPLACEMENTS: cc
|
|
7354
|
-
} =
|
|
7355
|
+
} = kn, Cy = (e, t) => {
|
|
7355
7356
|
if (typeof t.expandRange == "function")
|
|
7356
7357
|
return t.expandRange(...e, t);
|
|
7357
7358
|
e.sort();
|
|
@@ -7366,11 +7367,11 @@ const Ln = sr, be = Yt, {
|
|
|
7366
7367
|
if (typeof e != "string")
|
|
7367
7368
|
throw new TypeError("Expected a string");
|
|
7368
7369
|
e = cc[e] || e;
|
|
7369
|
-
const n = { ...t }, r = typeof n.maxLength == "number" ? Math.min(
|
|
7370
|
+
const n = { ...t }, r = typeof n.maxLength == "number" ? Math.min(Dn, n.maxLength) : Dn;
|
|
7370
7371
|
let i = e.length;
|
|
7371
7372
|
if (i > r)
|
|
7372
7373
|
throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${r}`);
|
|
7373
|
-
const a = { type: "bos", value: "", output: n.prepend || "" }, o = [a], s = n.capture ? "" : "?:", c = be.isWindows(t), f =
|
|
7374
|
+
const a = { type: "bos", value: "", output: n.prepend || "" }, o = [a], s = n.capture ? "" : "?:", c = be.isWindows(t), f = kn.globChars(c), u = kn.extglobChars(f), {
|
|
7374
7375
|
DOT_LITERAL: l,
|
|
7375
7376
|
PLUS_LITERAL: p,
|
|
7376
7377
|
SLASH_LITERAL: d,
|
|
@@ -7383,8 +7384,8 @@ const Ln = sr, be = Yt, {
|
|
|
7383
7384
|
QMARK_NO_DOT: C,
|
|
7384
7385
|
STAR: T,
|
|
7385
7386
|
START_ANCHOR: I
|
|
7386
|
-
} = f,
|
|
7387
|
-
let O = n.bash === !0 ?
|
|
7387
|
+
} = f, k = (P) => `(${s}(?:(?!${I}${P.dot ? m : l}).)*?)`, A = n.dot ? "" : g, _ = n.dot ? x : C;
|
|
7388
|
+
let O = n.bash === !0 ? k(n) : T;
|
|
7388
7389
|
n.capture && (O = `(${O})`), typeof n.noext == "boolean" && (n.noextglob = n.noext);
|
|
7389
7390
|
const v = {
|
|
7390
7391
|
input: e,
|
|
@@ -7406,13 +7407,13 @@ const Ln = sr, be = Yt, {
|
|
|
7406
7407
|
e = be.removePrefix(e, v), i = e.length;
|
|
7407
7408
|
const M = [], j = [], G = [];
|
|
7408
7409
|
let E = a, b;
|
|
7409
|
-
const F = () => v.index === i - 1,
|
|
7410
|
+
const F = () => v.index === i - 1, D = v.peek = (P = 1) => e[v.index + P], H = v.advance = () => e[++v.index] || "", q = () => e.slice(v.index + 1), z = (P = "", W = 0) => {
|
|
7410
7411
|
v.consumed += P, v.index += W;
|
|
7411
7412
|
}, J = (P) => {
|
|
7412
7413
|
v.output += P.output != null ? P.output : P.value, z(P.value);
|
|
7413
7414
|
}, Ae = () => {
|
|
7414
7415
|
let P = 1;
|
|
7415
|
-
for (;
|
|
7416
|
+
for (; D() === "!" && (D(2) !== "(" || D(3) === "?"); )
|
|
7416
7417
|
H(), v.start++, P++;
|
|
7417
7418
|
return P % 2 === 0 ? !1 : (v.negated = !0, v.start++, !0);
|
|
7418
7419
|
}, R = (P) => {
|
|
@@ -7438,7 +7439,7 @@ const Ln = sr, be = Yt, {
|
|
|
7438
7439
|
let W = P.close + (n.capture ? ")" : ""), $;
|
|
7439
7440
|
if (P.type === "negate") {
|
|
7440
7441
|
let U = O;
|
|
7441
|
-
if (P.inner && P.inner.length > 1 && P.inner.includes("/") && (U =
|
|
7442
|
+
if (P.inner && P.inner.length > 1 && P.inner.includes("/") && (U = k(n)), (U !== O || F() || /^\)+$/.test(q())) && (W = P.close = `)$))${U}`), P.inner.includes("*") && ($ = q()) && /^\.[^\\/.]+$/.test($)) {
|
|
7442
7443
|
const Q = Di($, { ...t, fastpaths: !1 }).output;
|
|
7443
7444
|
W = P.close = `)${Q})${U})`;
|
|
7444
7445
|
}
|
|
@@ -7454,7 +7455,7 @@ const Ln = sr, be = Yt, {
|
|
|
7454
7455
|
if (b = H(), b === "\0")
|
|
7455
7456
|
continue;
|
|
7456
7457
|
if (b === "\\") {
|
|
7457
|
-
const $ =
|
|
7458
|
+
const $ = D();
|
|
7458
7459
|
if ($ === "/" && n.bash !== !0 || $ === "." || $ === ";")
|
|
7459
7460
|
continue;
|
|
7460
7461
|
if (!$) {
|
|
@@ -7479,7 +7480,7 @@ const Ln = sr, be = Yt, {
|
|
|
7479
7480
|
}
|
|
7480
7481
|
}
|
|
7481
7482
|
}
|
|
7482
|
-
(b === "[" &&
|
|
7483
|
+
(b === "[" && D() !== ":" || b === "-" && D() === "]") && (b = `\\${b}`), b === "]" && (E.value === "[" || E.value === "[^") && (b = `\\${b}`), n.posix === !0 && b === "!" && E.value === "[" && (b = "^"), E.value += b, J({ value: b });
|
|
7483
7484
|
continue;
|
|
7484
7485
|
}
|
|
7485
7486
|
if (v.quotes === 1 && b !== '"') {
|
|
@@ -7605,12 +7606,12 @@ const Ln = sr, be = Yt, {
|
|
|
7605
7606
|
continue;
|
|
7606
7607
|
}
|
|
7607
7608
|
if (b === "?") {
|
|
7608
|
-
if (!(E && E.value === "(") && n.noextglob !== !0 &&
|
|
7609
|
+
if (!(E && E.value === "(") && n.noextglob !== !0 && D() === "(" && D(2) !== "?") {
|
|
7609
7610
|
Y("qmark", b);
|
|
7610
7611
|
continue;
|
|
7611
7612
|
}
|
|
7612
7613
|
if (E && E.type === "paren") {
|
|
7613
|
-
const U =
|
|
7614
|
+
const U = D();
|
|
7614
7615
|
let Q = b;
|
|
7615
7616
|
if (U === "<" && !be.supportsLookbehinds())
|
|
7616
7617
|
throw new Error("Node.js v10 or higher is required for regex lookbehinds");
|
|
@@ -7625,7 +7626,7 @@ const Ln = sr, be = Yt, {
|
|
|
7625
7626
|
continue;
|
|
7626
7627
|
}
|
|
7627
7628
|
if (b === "!") {
|
|
7628
|
-
if (n.noextglob !== !0 &&
|
|
7629
|
+
if (n.noextglob !== !0 && D() === "(" && (D(2) !== "?" || !/[!=<:]/.test(D(3)))) {
|
|
7629
7630
|
Y("negate", b);
|
|
7630
7631
|
continue;
|
|
7631
7632
|
}
|
|
@@ -7635,7 +7636,7 @@ const Ln = sr, be = Yt, {
|
|
|
7635
7636
|
}
|
|
7636
7637
|
}
|
|
7637
7638
|
if (b === "+") {
|
|
7638
|
-
if (n.noextglob !== !0 &&
|
|
7639
|
+
if (n.noextglob !== !0 && D() === "(" && D(2) !== "?") {
|
|
7639
7640
|
Y("plus", b);
|
|
7640
7641
|
continue;
|
|
7641
7642
|
}
|
|
@@ -7651,7 +7652,7 @@ const Ln = sr, be = Yt, {
|
|
|
7651
7652
|
continue;
|
|
7652
7653
|
}
|
|
7653
7654
|
if (b === "@") {
|
|
7654
|
-
if (n.noextglob !== !0 &&
|
|
7655
|
+
if (n.noextglob !== !0 && D() === "(" && D(2) !== "?") {
|
|
7655
7656
|
N({ type: "at", extglob: !0, value: b, output: "" });
|
|
7656
7657
|
continue;
|
|
7657
7658
|
}
|
|
@@ -7695,23 +7696,23 @@ const Ln = sr, be = Yt, {
|
|
|
7695
7696
|
P = P.slice(3), z("/**", 3);
|
|
7696
7697
|
}
|
|
7697
7698
|
if ($.type === "bos" && F()) {
|
|
7698
|
-
E.type = "globstar", E.value += b, E.output =
|
|
7699
|
+
E.type = "globstar", E.value += b, E.output = k(n), v.output = E.output, v.globstar = !0, z(b);
|
|
7699
7700
|
continue;
|
|
7700
7701
|
}
|
|
7701
7702
|
if ($.type === "slash" && $.prev.type !== "bos" && !ie && F()) {
|
|
7702
|
-
v.output = v.output.slice(0, -($.output + E.output).length), $.output = `(?:${$.output}`, E.type = "globstar", E.output =
|
|
7703
|
+
v.output = v.output.slice(0, -($.output + E.output).length), $.output = `(?:${$.output}`, E.type = "globstar", E.output = k(n) + (n.strictSlashes ? ")" : "|$)"), E.value += b, v.globstar = !0, v.output += $.output + E.output, z(b);
|
|
7703
7704
|
continue;
|
|
7704
7705
|
}
|
|
7705
7706
|
if ($.type === "slash" && $.prev.type !== "bos" && P[0] === "/") {
|
|
7706
7707
|
const je = P[1] !== void 0 ? "|$" : "";
|
|
7707
|
-
v.output = v.output.slice(0, -($.output + E.output).length), $.output = `(?:${$.output}`, E.type = "globstar", E.output = `${
|
|
7708
|
+
v.output = v.output.slice(0, -($.output + E.output).length), $.output = `(?:${$.output}`, E.type = "globstar", E.output = `${k(n)}${d}|${d}${je})`, E.value += b, v.output += $.output + E.output, v.globstar = !0, z(b + H()), N({ type: "slash", value: "/", output: "" });
|
|
7708
7709
|
continue;
|
|
7709
7710
|
}
|
|
7710
7711
|
if ($.type === "bos" && P[0] === "/") {
|
|
7711
|
-
E.type = "globstar", E.value += b, E.output = `(?:^|${d}|${
|
|
7712
|
+
E.type = "globstar", E.value += b, E.output = `(?:^|${d}|${k(n)}${d})`, v.output = E.output, v.globstar = !0, z(b + H()), N({ type: "slash", value: "/", output: "" });
|
|
7712
7713
|
continue;
|
|
7713
7714
|
}
|
|
7714
|
-
v.output = v.output.slice(0, -E.output.length), E.type = "globstar", E.output =
|
|
7715
|
+
v.output = v.output.slice(0, -E.output.length), E.type = "globstar", E.output = k(n), E.value += b, v.output += E.output, v.globstar = !0, z(b);
|
|
7715
7716
|
continue;
|
|
7716
7717
|
}
|
|
7717
7718
|
const W = { type: "star", value: b, output: O };
|
|
@@ -7723,7 +7724,7 @@ const Ln = sr, be = Yt, {
|
|
|
7723
7724
|
W.output = b, N(W);
|
|
7724
7725
|
continue;
|
|
7725
7726
|
}
|
|
7726
|
-
(v.index === v.start || E.type === "slash" || E.type === "dot") && (E.type === "dot" ? (v.output += w, E.output += w) : n.dot === !0 ? (v.output += S, E.output += S) : (v.output += A, E.output += A),
|
|
7727
|
+
(v.index === v.start || E.type === "slash" || E.type === "dot") && (E.type === "dot" ? (v.output += w, E.output += w) : n.dot === !0 ? (v.output += S, E.output += S) : (v.output += A, E.output += A), D() !== "*" && (v.output += h, E.output += h)), N(W);
|
|
7727
7728
|
}
|
|
7728
7729
|
for (; v.brackets > 0; ) {
|
|
7729
7730
|
if (n.strictBrackets === !0) throw new SyntaxError(ht("closing", "]"));
|
|
@@ -7745,7 +7746,7 @@ const Ln = sr, be = Yt, {
|
|
|
7745
7746
|
return v;
|
|
7746
7747
|
};
|
|
7747
7748
|
Di.fastpaths = (e, t) => {
|
|
7748
|
-
const n = { ...t }, r = typeof n.maxLength == "number" ? Math.min(
|
|
7749
|
+
const n = { ...t }, r = typeof n.maxLength == "number" ? Math.min(Dn, n.maxLength) : Dn, i = e.length;
|
|
7749
7750
|
if (i > r)
|
|
7750
7751
|
throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${r}`);
|
|
7751
7752
|
e = cc[e] || e;
|
|
@@ -7759,7 +7760,7 @@ Di.fastpaths = (e, t) => {
|
|
|
7759
7760
|
NO_DOTS_SLASH: p,
|
|
7760
7761
|
STAR: d,
|
|
7761
7762
|
START_ANCHOR: h
|
|
7762
|
-
} =
|
|
7763
|
+
} = kn.globChars(a), m = n.dot ? l : u, g = n.dot ? p : u, w = n.capture ? "" : "?:", S = { negated: !1, prefix: "" };
|
|
7763
7764
|
let x = n.bash === !0 ? ".*?" : d;
|
|
7764
7765
|
n.capture && (x = `(${x})`);
|
|
7765
7766
|
const C = (A) => A.noglobstar === !0 ? x : `(${w}(?:(?!${h}${A.dot ? f : o}).)*?)`, T = (A) => {
|
|
@@ -7788,11 +7789,11 @@ Di.fastpaths = (e, t) => {
|
|
|
7788
7789
|
}
|
|
7789
7790
|
}
|
|
7790
7791
|
}, I = be.removePrefix(e, S);
|
|
7791
|
-
let
|
|
7792
|
-
return
|
|
7792
|
+
let k = T(I);
|
|
7793
|
+
return k && n.strictSlashes !== !0 && (k += `${s}?`), k;
|
|
7793
7794
|
};
|
|
7794
7795
|
var Ry = Di;
|
|
7795
|
-
const Fy = Ee, $y = xy, oi = Ry, Mi = Yt, Iy =
|
|
7796
|
+
const Fy = Ee, $y = xy, oi = Ry, Mi = Yt, Iy = cr, Oy = (e) => e && typeof e == "object" && !Array.isArray(e), oe = (e, t, n = !1) => {
|
|
7796
7797
|
if (Array.isArray(e)) {
|
|
7797
7798
|
const u = e.map((p) => oe(p, t, n));
|
|
7798
7799
|
return (p) => {
|
|
@@ -7967,29 +7968,29 @@ var Ly = Z, ji = ve && ve.__importDefault || function(e) {
|
|
|
7967
7968
|
};
|
|
7968
7969
|
Object.defineProperty(xe, "__esModule", { value: !0 });
|
|
7969
7970
|
xe.readPackageJSON = xe.extractWorkspaces = xe.isMatchWorkspaces = xe.checkWorkspaces = xe.findWorkspaceRoot = void 0;
|
|
7970
|
-
const
|
|
7971
|
+
const Mn = ji(Ee), ky = ji(mg), Zo = Xe, Dy = ji(Ly);
|
|
7971
7972
|
function Ge(e) {
|
|
7972
7973
|
e || (e = process.cwd());
|
|
7973
7974
|
let t = ky.default.sync(e);
|
|
7974
7975
|
if (!t)
|
|
7975
7976
|
return null;
|
|
7976
|
-
e =
|
|
7977
|
+
e = Mn.default.normalize(t);
|
|
7977
7978
|
let n = null, r = e;
|
|
7978
7979
|
do {
|
|
7979
|
-
const i =
|
|
7980
|
-
|
|
7980
|
+
const i = lr(r);
|
|
7981
|
+
ur(i);
|
|
7981
7982
|
let { done: a, found: o } = pc(r, e);
|
|
7982
7983
|
if (a)
|
|
7983
7984
|
return o;
|
|
7984
|
-
n = r, r =
|
|
7985
|
+
n = r, r = Mn.default.dirname(r);
|
|
7985
7986
|
} while (r !== n);
|
|
7986
7987
|
return null;
|
|
7987
7988
|
}
|
|
7988
7989
|
xe.findWorkspaceRoot = Ge;
|
|
7989
7990
|
function pc(e, t) {
|
|
7990
|
-
const n =
|
|
7991
|
+
const n = lr(e), r = ur(n);
|
|
7991
7992
|
let i = !1, a, o;
|
|
7992
|
-
return r && (i = !0, o =
|
|
7993
|
+
return r && (i = !0, o = Mn.default.relative(e, t), o === "" || Hi(o, r) ? a = e : a = null), {
|
|
7993
7994
|
done: i,
|
|
7994
7995
|
found: a,
|
|
7995
7996
|
relativePath: o
|
|
@@ -8000,19 +8001,19 @@ function Hi(e, t) {
|
|
|
8000
8001
|
return Dy.default([e], t).length > 0;
|
|
8001
8002
|
}
|
|
8002
8003
|
xe.isMatchWorkspaces = Hi;
|
|
8003
|
-
function
|
|
8004
|
+
function ur(e) {
|
|
8004
8005
|
const t = (e || {}).workspaces;
|
|
8005
8006
|
return t && t.packages || (Array.isArray(t) ? t : null);
|
|
8006
8007
|
}
|
|
8007
|
-
xe.extractWorkspaces =
|
|
8008
|
-
function
|
|
8009
|
-
const t =
|
|
8008
|
+
xe.extractWorkspaces = ur;
|
|
8009
|
+
function lr(e) {
|
|
8010
|
+
const t = Mn.default.join(e, "package.json");
|
|
8010
8011
|
return Zo.existsSync(t) ? JSON.parse(Zo.readFileSync(t, "utf8")) : null;
|
|
8011
8012
|
}
|
|
8012
|
-
xe.readPackageJSON =
|
|
8013
|
+
xe.readPackageJSON = lr;
|
|
8013
8014
|
Ge.findWorkspaceRoot = Ge;
|
|
8014
|
-
Ge.readPackageJSON =
|
|
8015
|
-
Ge.extractWorkspaces =
|
|
8015
|
+
Ge.readPackageJSON = lr;
|
|
8016
|
+
Ge.extractWorkspaces = ur;
|
|
8016
8017
|
Ge.isMatchWorkspaces = Hi;
|
|
8017
8018
|
Ge.default = Ge;
|
|
8018
8019
|
xe.default = Ge;
|
|
@@ -8119,7 +8120,7 @@ const Wy = async (e, t) => t(await e), zy = async (e) => {
|
|
|
8119
8120
|
}
|
|
8120
8121
|
};
|
|
8121
8122
|
var Qy = Yy;
|
|
8122
|
-
const hc = Ee,
|
|
8123
|
+
const hc = Ee, jn = Xe, { promisify: mc } = ut, Vy = Qy, Xy = mc(jn.stat), Zy = mc(jn.lstat), gc = {
|
|
8123
8124
|
directory: "isDirectory",
|
|
8124
8125
|
file: "isFile"
|
|
8125
8126
|
};
|
|
@@ -8152,7 +8153,7 @@ Bi.exports.sync = (e, t) => {
|
|
|
8152
8153
|
type: "file",
|
|
8153
8154
|
...t
|
|
8154
8155
|
}, yc(t);
|
|
8155
|
-
const n = t.allowSymlinks ?
|
|
8156
|
+
const n = t.allowSymlinks ? jn.statSync : jn.lstatSync;
|
|
8156
8157
|
for (const r of e)
|
|
8157
8158
|
try {
|
|
8158
8159
|
const i = n(hc.resolve(t.cwd, r));
|
|
@@ -8388,7 +8389,7 @@ function rv(e) {
|
|
|
8388
8389
|
return !!(l && (u.code === "EINVAL" || u.code === "EPERM"));
|
|
8389
8390
|
}
|
|
8390
8391
|
}
|
|
8391
|
-
var ta =
|
|
8392
|
+
var ta = Yn.Stream, iv = ov;
|
|
8392
8393
|
function ov(e) {
|
|
8393
8394
|
return {
|
|
8394
8395
|
ReadStream: t,
|
|
@@ -8459,8 +8460,8 @@ function cv(e) {
|
|
|
8459
8460
|
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(e, n));
|
|
8460
8461
|
}), t;
|
|
8461
8462
|
}
|
|
8462
|
-
var te = Xe, uv = nv, lv = iv, fv = av, sn = ut, le,
|
|
8463
|
-
typeof Symbol == "function" && typeof Symbol.for == "function" ? (le = Symbol.for("graceful-fs.queue"),
|
|
8463
|
+
var te = Xe, uv = nv, lv = iv, fv = av, sn = ut, le, Hn;
|
|
8464
|
+
typeof Symbol == "function" && typeof Symbol.for == "function" ? (le = Symbol.for("graceful-fs.queue"), Hn = Symbol.for("graceful-fs.previous")) : (le = "___graceful-fs.queue", Hn = "___graceful-fs.previous");
|
|
8464
8465
|
function pv() {
|
|
8465
8466
|
}
|
|
8466
8467
|
function Ec(e, t) {
|
|
@@ -8484,14 +8485,14 @@ if (!te[le]) {
|
|
|
8484
8485
|
i || na(), typeof r == "function" && r.apply(this, arguments);
|
|
8485
8486
|
});
|
|
8486
8487
|
}
|
|
8487
|
-
return Object.defineProperty(t,
|
|
8488
|
+
return Object.defineProperty(t, Hn, {
|
|
8488
8489
|
value: e
|
|
8489
8490
|
}), t;
|
|
8490
8491
|
})(te.close), te.closeSync = (function(e) {
|
|
8491
8492
|
function t(n) {
|
|
8492
8493
|
e.apply(te, arguments), na();
|
|
8493
8494
|
}
|
|
8494
|
-
return Object.defineProperty(t,
|
|
8495
|
+
return Object.defineProperty(t, Hn, {
|
|
8495
8496
|
value: e
|
|
8496
8497
|
}), t;
|
|
8497
8498
|
})(te.closeSync), /\bgfs4\b/i.test(process.env.NODE_DEBUG || "") && process.on("exit", function() {
|
|
@@ -8517,9 +8518,9 @@ function Ui(e) {
|
|
|
8517
8518
|
e.writeFile = i;
|
|
8518
8519
|
function i(_, O, v, M) {
|
|
8519
8520
|
return typeof v == "function" && (M = v, v = null), j(_, O, v, M);
|
|
8520
|
-
function j(G, E, b, F,
|
|
8521
|
+
function j(G, E, b, F, D) {
|
|
8521
8522
|
return r(G, E, b, function(H) {
|
|
8522
|
-
H && (H.code === "EMFILE" || H.code === "ENFILE") ? mt([j, [G, E, b, F], H,
|
|
8523
|
+
H && (H.code === "EMFILE" || H.code === "ENFILE") ? mt([j, [G, E, b, F], H, D || Date.now(), Date.now()]) : typeof F == "function" && F.apply(this, arguments);
|
|
8523
8524
|
});
|
|
8524
8525
|
}
|
|
8525
8526
|
}
|
|
@@ -8527,9 +8528,9 @@ function Ui(e) {
|
|
|
8527
8528
|
a && (e.appendFile = o);
|
|
8528
8529
|
function o(_, O, v, M) {
|
|
8529
8530
|
return typeof v == "function" && (M = v, v = null), j(_, O, v, M);
|
|
8530
|
-
function j(G, E, b, F,
|
|
8531
|
+
function j(G, E, b, F, D) {
|
|
8531
8532
|
return a(G, E, b, function(H) {
|
|
8532
|
-
H && (H.code === "EMFILE" || H.code === "ENFILE") ? mt([j, [G, E, b, F], H,
|
|
8533
|
+
H && (H.code === "EMFILE" || H.code === "ENFILE") ? mt([j, [G, E, b, F], H, D || Date.now(), Date.now()]) : typeof F == "function" && F.apply(this, arguments);
|
|
8533
8534
|
});
|
|
8534
8535
|
}
|
|
8535
8536
|
}
|
|
@@ -8537,9 +8538,9 @@ function Ui(e) {
|
|
|
8537
8538
|
s && (e.copyFile = c);
|
|
8538
8539
|
function c(_, O, v, M) {
|
|
8539
8540
|
return typeof v == "function" && (M = v, v = 0), j(_, O, v, M);
|
|
8540
|
-
function j(G, E, b, F,
|
|
8541
|
+
function j(G, E, b, F, D) {
|
|
8541
8542
|
return s(G, E, b, function(H) {
|
|
8542
|
-
H && (H.code === "EMFILE" || H.code === "ENFILE") ? mt([j, [G, E, b, F], H,
|
|
8543
|
+
H && (H.code === "EMFILE" || H.code === "ENFILE") ? mt([j, [G, E, b, F], H, D || Date.now(), Date.now()]) : typeof F == "function" && F.apply(this, arguments);
|
|
8543
8544
|
});
|
|
8544
8545
|
}
|
|
8545
8546
|
}
|
|
@@ -8548,31 +8549,31 @@ function Ui(e) {
|
|
|
8548
8549
|
var u = /^v[0-5]\./;
|
|
8549
8550
|
function l(_, O, v) {
|
|
8550
8551
|
typeof O == "function" && (v = O, O = null);
|
|
8551
|
-
var M = u.test(process.version) ? function(E, b, F,
|
|
8552
|
+
var M = u.test(process.version) ? function(E, b, F, D) {
|
|
8552
8553
|
return f(E, j(
|
|
8553
8554
|
E,
|
|
8554
8555
|
b,
|
|
8555
8556
|
F,
|
|
8556
|
-
|
|
8557
|
+
D
|
|
8557
8558
|
));
|
|
8558
|
-
} : function(E, b, F,
|
|
8559
|
+
} : function(E, b, F, D) {
|
|
8559
8560
|
return f(E, b, j(
|
|
8560
8561
|
E,
|
|
8561
8562
|
b,
|
|
8562
8563
|
F,
|
|
8563
|
-
|
|
8564
|
+
D
|
|
8564
8565
|
));
|
|
8565
8566
|
};
|
|
8566
8567
|
return M(_, O, v);
|
|
8567
8568
|
function j(G, E, b, F) {
|
|
8568
|
-
return function(
|
|
8569
|
-
|
|
8569
|
+
return function(D, H) {
|
|
8570
|
+
D && (D.code === "EMFILE" || D.code === "ENFILE") ? mt([
|
|
8570
8571
|
M,
|
|
8571
8572
|
[G, E, b],
|
|
8572
|
-
|
|
8573
|
+
D,
|
|
8573
8574
|
F || Date.now(),
|
|
8574
8575
|
Date.now()
|
|
8575
|
-
]) : (H && H.sort && H.sort(), typeof b == "function" && b.call(this,
|
|
8576
|
+
]) : (H && H.sort && H.sort(), typeof b == "function" && b.call(this, D, H));
|
|
8576
8577
|
};
|
|
8577
8578
|
}
|
|
8578
8579
|
}
|
|
@@ -8648,13 +8649,13 @@ function Ui(e) {
|
|
|
8648
8649
|
function I(_, O) {
|
|
8649
8650
|
return new e.WriteStream(_, O);
|
|
8650
8651
|
}
|
|
8651
|
-
var
|
|
8652
|
+
var k = e.open;
|
|
8652
8653
|
e.open = A;
|
|
8653
8654
|
function A(_, O, v, M) {
|
|
8654
8655
|
return typeof v == "function" && (M = v, v = null), j(_, O, v, M);
|
|
8655
|
-
function j(G, E, b, F,
|
|
8656
|
-
return
|
|
8657
|
-
H && (H.code === "EMFILE" || H.code === "ENFILE") ? mt([j, [G, E, b, F], H,
|
|
8656
|
+
function j(G, E, b, F, D) {
|
|
8657
|
+
return k(G, E, b, function(H, q) {
|
|
8658
|
+
H && (H.code === "EMFILE" || H.code === "ENFILE") ? mt([j, [G, E, b, F], H, D || Date.now(), Date.now()]) : typeof F == "function" && F.apply(this, arguments);
|
|
8658
8659
|
});
|
|
8659
8660
|
}
|
|
8660
8661
|
}
|
|
@@ -9319,25 +9320,25 @@ var J0 = new Y0("tag:yaml.org,2002:js/regexp", {
|
|
|
9319
9320
|
construct: V0,
|
|
9320
9321
|
predicate: Z0,
|
|
9321
9322
|
represent: X0
|
|
9322
|
-
}),
|
|
9323
|
+
}), Bn;
|
|
9323
9324
|
try {
|
|
9324
9325
|
var ew = Rc;
|
|
9325
|
-
|
|
9326
|
+
Bn = ew("esprima");
|
|
9326
9327
|
} catch {
|
|
9327
|
-
typeof window < "u" && (
|
|
9328
|
+
typeof window < "u" && (Bn = window.esprima);
|
|
9328
9329
|
}
|
|
9329
9330
|
var tw = ce;
|
|
9330
9331
|
function nw(e) {
|
|
9331
9332
|
if (e === null) return !1;
|
|
9332
9333
|
try {
|
|
9333
|
-
var t = "(" + e + ")", n =
|
|
9334
|
+
var t = "(" + e + ")", n = Bn.parse(t, { range: !0 });
|
|
9334
9335
|
return !(n.type !== "Program" || n.body.length !== 1 || n.body[0].type !== "ExpressionStatement" || n.body[0].expression.type !== "ArrowFunctionExpression" && n.body[0].expression.type !== "FunctionExpression");
|
|
9335
9336
|
} catch {
|
|
9336
9337
|
return !1;
|
|
9337
9338
|
}
|
|
9338
9339
|
}
|
|
9339
9340
|
function rw(e) {
|
|
9340
|
-
var t = "(" + e + ")", n =
|
|
9341
|
+
var t = "(" + e + ")", n = Bn.parse(t, { range: !0 }), r = [], i;
|
|
9341
9342
|
if (n.type !== "Program" || n.body.length !== 1 || n.body[0].type !== "ExpressionStatement" || n.body[0].expression.type !== "ArrowFunctionExpression" && n.body[0].expression.type !== "FunctionExpression")
|
|
9342
9343
|
throw new Error("Failed to resolve function");
|
|
9343
9344
|
return n.body[0].expression.params.forEach(function(a) {
|
|
@@ -9356,7 +9357,7 @@ var aw = new tw("tag:yaml.org,2002:js/function", {
|
|
|
9356
9357
|
construct: rw,
|
|
9357
9358
|
predicate: ow,
|
|
9358
9359
|
represent: iw
|
|
9359
|
-
}), sa = Nt,
|
|
9360
|
+
}), sa = Nt, fr = sa.DEFAULT = new sa({
|
|
9360
9361
|
include: [
|
|
9361
9362
|
Xt
|
|
9362
9363
|
],
|
|
@@ -9365,7 +9366,7 @@ var aw = new tw("tag:yaml.org,2002:js/function", {
|
|
|
9365
9366
|
J0,
|
|
9366
9367
|
aw
|
|
9367
9368
|
]
|
|
9368
|
-
}), Be = Re, Fc = Vt, sw = bv, $c = Xt, cw =
|
|
9369
|
+
}), Be = Re, Fc = Vt, sw = bv, $c = Xt, cw = fr, Ve = Object.prototype.hasOwnProperty, Un = 1, Ic = 2, Oc = 3, Gn = 4, Mr = 1, uw = 2, ca = 3, lw = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, fw = /[\x85\u2028\u2029]/, pw = /[,\[\]\{\}]/, Nc = /^(?:!|!!|![a-z\-]+!)$/i, Pc = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
9369
9370
|
function ua(e) {
|
|
9370
9371
|
return Object.prototype.toString.call(e);
|
|
9371
9372
|
}
|
|
@@ -9424,13 +9425,13 @@ function Mc(e, t) {
|
|
|
9424
9425
|
function B(e, t) {
|
|
9425
9426
|
throw Mc(e, t);
|
|
9426
9427
|
}
|
|
9427
|
-
function
|
|
9428
|
+
function qn(e, t) {
|
|
9428
9429
|
e.onWarning && e.onWarning.call(null, Mc(e, t));
|
|
9429
9430
|
}
|
|
9430
9431
|
var fa = {
|
|
9431
9432
|
YAML: function(t, n, r) {
|
|
9432
9433
|
var i, a, o;
|
|
9433
|
-
t.version !== null && B(t, "duplication of %YAML directive"), r.length !== 1 && B(t, "YAML directive accepts exactly one argument"), i = /^([0-9]+)\.([0-9]+)$/.exec(r[0]), i === null && B(t, "ill-formed argument of the YAML directive"), a = parseInt(i[1], 10), o = parseInt(i[2], 10), a !== 1 && B(t, "unacceptable YAML version of the document"), t.version = r[0], t.checkLineBreaks = o < 2, o !== 1 && o !== 2 &&
|
|
9434
|
+
t.version !== null && B(t, "duplication of %YAML directive"), r.length !== 1 && B(t, "YAML directive accepts exactly one argument"), i = /^([0-9]+)\.([0-9]+)$/.exec(r[0]), i === null && B(t, "ill-formed argument of the YAML directive"), a = parseInt(i[1], 10), o = parseInt(i[2], 10), a !== 1 && B(t, "unacceptable YAML version of the document"), t.version = r[0], t.checkLineBreaks = o < 2, o !== 1 && o !== 2 && qn(t, "unsupported YAML version of the document");
|
|
9434
9435
|
},
|
|
9435
9436
|
TAG: function(t, n, r) {
|
|
9436
9437
|
var i, a;
|
|
@@ -9485,9 +9486,9 @@ function ae(e, t, n) {
|
|
|
9485
9486
|
else
|
|
9486
9487
|
break;
|
|
9487
9488
|
}
|
|
9488
|
-
return n !== -1 && r !== 0 && e.lineIndent < n &&
|
|
9489
|
+
return n !== -1 && r !== 0 && e.lineIndent < n && qn(e, "deficient indentation"), r;
|
|
9489
9490
|
}
|
|
9490
|
-
function
|
|
9491
|
+
function pr(e) {
|
|
9491
9492
|
var t = e.position, n;
|
|
9492
9493
|
return n = e.input.charCodeAt(t), !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || we(n)));
|
|
9493
9494
|
}
|
|
@@ -9507,7 +9508,7 @@ function vw(e, t, n) {
|
|
|
9507
9508
|
if (r = e.input.charCodeAt(e.position - 1), we(r))
|
|
9508
9509
|
break;
|
|
9509
9510
|
} else {
|
|
9510
|
-
if (e.position === e.lineStart &&
|
|
9511
|
+
if (e.position === e.lineStart && pr(e) || n && xt(d))
|
|
9511
9512
|
break;
|
|
9512
9513
|
if (ke(d))
|
|
9513
9514
|
if (c = e.line, f = e.lineStart, u = e.lineIndent, ae(e, !1, -1), e.lineIndent >= t) {
|
|
@@ -9532,7 +9533,7 @@ function ww(e, t) {
|
|
|
9532
9533
|
r = e.position, e.position++, i = e.position;
|
|
9533
9534
|
else
|
|
9534
9535
|
return !0;
|
|
9535
|
-
else ke(n) ? (Qe(e, r, i, !0), Yi(e, ae(e, !1, t)), r = i = e.position) : e.position === e.lineStart &&
|
|
9536
|
+
else ke(n) ? (Qe(e, r, i, !0), Yi(e, ae(e, !1, t)), r = i = e.position) : e.position === e.lineStart && pr(e) ? B(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
|
|
9536
9537
|
B(e, "unexpected end of the stream within a single quoted scalar");
|
|
9537
9538
|
}
|
|
9538
9539
|
function Ew(e, t) {
|
|
@@ -9554,7 +9555,7 @@ function Ew(e, t) {
|
|
|
9554
9555
|
} else
|
|
9555
9556
|
B(e, "unknown escape sequence");
|
|
9556
9557
|
n = r = e.position;
|
|
9557
|
-
} else ke(s) ? (Qe(e, n, r, !0), Yi(e, ae(e, !1, t)), n = r = e.position) : e.position === e.lineStart &&
|
|
9558
|
+
} else ke(s) ? (Qe(e, n, r, !0), Yi(e, ae(e, !1, t)), n = r = e.position) : e.position === e.lineStart && pr(e) ? B(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
|
|
9558
9559
|
}
|
|
9559
9560
|
B(e, "unexpected end of the stream within a double quoted scalar");
|
|
9560
9561
|
}
|
|
@@ -9569,12 +9570,12 @@ function bw(e, t) {
|
|
|
9569
9570
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = a), g = e.input.charCodeAt(++e.position); g !== 0; ) {
|
|
9570
9571
|
if (ae(e, !0, t), g = e.input.charCodeAt(e.position), g === c)
|
|
9571
9572
|
return e.position++, e.tag = i, e.anchor = o, e.kind = l ? "mapping" : "sequence", e.result = a, !0;
|
|
9572
|
-
n || B(e, "missed comma between flow collection entries"), h = d = m = null, f = u = !1, g === 63 && (s = e.input.charCodeAt(e.position + 1), we(s) && (f = u = !0, e.position++, ae(e, !0, t))), r = e.line, Rt(e, t,
|
|
9573
|
+
n || B(e, "missed comma between flow collection entries"), h = d = m = null, f = u = !1, g === 63 && (s = e.input.charCodeAt(e.position + 1), we(s) && (f = u = !0, e.position++, ae(e, !0, t))), r = e.line, Rt(e, t, Un, !1, !0), h = e.tag, d = e.result, ae(e, !0, t), g = e.input.charCodeAt(e.position), (u || e.line === r) && g === 58 && (f = !0, g = e.input.charCodeAt(++e.position), ae(e, !0, t), Rt(e, t, Un, !1, !0), m = e.result), l ? _t(e, a, p, h, d, m) : f ? a.push(_t(e, null, p, h, d, m)) : a.push(d), ae(e, !0, t), g = e.input.charCodeAt(e.position), g === 44 ? (n = !0, g = e.input.charCodeAt(++e.position)) : n = !1;
|
|
9573
9574
|
}
|
|
9574
9575
|
B(e, "unexpected end of the stream within a flow collection");
|
|
9575
9576
|
}
|
|
9576
9577
|
function Sw(e, t) {
|
|
9577
|
-
var n, r, i =
|
|
9578
|
+
var n, r, i = Mr, a = !1, o = !1, s = t, c = 0, f = !1, u, l;
|
|
9578
9579
|
if (l = e.input.charCodeAt(e.position), l === 124)
|
|
9579
9580
|
r = !1;
|
|
9580
9581
|
else if (l === 62)
|
|
@@ -9583,7 +9584,7 @@ function Sw(e, t) {
|
|
|
9583
9584
|
return !1;
|
|
9584
9585
|
for (e.kind = "scalar", e.result = ""; l !== 0; )
|
|
9585
9586
|
if (l = e.input.charCodeAt(++e.position), l === 43 || l === 45)
|
|
9586
|
-
|
|
9587
|
+
Mr === i ? i = l === 43 ? ca : uw : B(e, "repeat of a chomping mode identifier");
|
|
9587
9588
|
else if ((u = mw(l)) >= 0)
|
|
9588
9589
|
u === 0 ? B(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? B(e, "repeat of an indentation width identifier") : (s = t + u - 1, o = !0);
|
|
9589
9590
|
else
|
|
@@ -9606,7 +9607,7 @@ function Sw(e, t) {
|
|
|
9606
9607
|
}
|
|
9607
9608
|
if (e.lineIndent < s) {
|
|
9608
9609
|
i === ca ? e.result += Be.repeat(`
|
|
9609
|
-
`, a ? 1 + c : c) : i ===
|
|
9610
|
+
`, a ? 1 + c : c) : i === Mr && a && (e.result += `
|
|
9610
9611
|
`);
|
|
9611
9612
|
break;
|
|
9612
9613
|
}
|
|
@@ -9655,7 +9656,7 @@ function xw(e, t, n) {
|
|
|
9655
9656
|
return e.tag = s, e.anchor = c, !0;
|
|
9656
9657
|
else
|
|
9657
9658
|
break;
|
|
9658
|
-
if ((e.line === a || e.lineIndent > t) && (Rt(e, t,
|
|
9659
|
+
if ((e.line === a || e.lineIndent > t) && (Rt(e, t, Gn, !0, i) && (h ? p = e.result : d = e.result), h || (_t(e, f, u, l, p, d, a, o), l = p = d = null), ae(e, !0, -1), g = e.input.charCodeAt(e.position)), e.lineIndent > t && g !== 0)
|
|
9659
9660
|
B(e, "bad indentation of a mapping entry");
|
|
9660
9661
|
else if (e.lineIndent < t)
|
|
9661
9662
|
break;
|
|
@@ -9693,10 +9694,10 @@ function Tw(e) {
|
|
|
9693
9694
|
}
|
|
9694
9695
|
function Rt(e, t, n, r, i) {
|
|
9695
9696
|
var a, o, s, c = 1, f = !1, u = !1, l, p, d, h, m;
|
|
9696
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = s =
|
|
9697
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = s = Gn === n || Oc === n, r && ae(e, !0, -1) && (f = !0, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)), c === 1)
|
|
9697
9698
|
for (; _w(e) || Aw(e); )
|
|
9698
9699
|
ae(e, !0, -1) ? (f = !0, s = a, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)) : s = !1;
|
|
9699
|
-
if (s && (s = f || i), (c === 1 ||
|
|
9700
|
+
if (s && (s = f || i), (c === 1 || Gn === n) && (Un === n || Ic === n ? h = t : h = t + 1, m = e.position - e.lineStart, c === 1 ? s && (da(e, m) || xw(e, m, h)) || bw(e, h) ? u = !0 : (o && Sw(e, h) || ww(e, h) || Ew(e, h) ? u = !0 : Tw(e) ? (u = !0, (e.tag !== null || e.anchor !== null) && B(e, "alias node should not have any properties")) : vw(e, h, Un === n) && (u = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (u = s && da(e, m))), e.tag !== null && e.tag !== "!")
|
|
9700
9701
|
if (e.tag === "?") {
|
|
9701
9702
|
for (e.result !== null && e.kind !== "scalar" && B(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), l = 0, p = e.implicitTypes.length; l < p; l += 1)
|
|
9702
9703
|
if (d = e.implicitTypes[l], d.resolve(e.result)) {
|
|
@@ -9725,9 +9726,9 @@ function Cw(e) {
|
|
|
9725
9726
|
o = e.input.charCodeAt(++e.position);
|
|
9726
9727
|
i.push(e.input.slice(n, e.position));
|
|
9727
9728
|
}
|
|
9728
|
-
o !== 0 && zi(e), Ve.call(fa, r) ? fa[r](e, r, i) :
|
|
9729
|
+
o !== 0 && zi(e), Ve.call(fa, r) ? fa[r](e, r, i) : qn(e, 'unknown document directive "' + r + '"');
|
|
9729
9730
|
}
|
|
9730
|
-
if (ae(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, ae(e, !0, -1)) : a && B(e, "directives end mark is expected"), Rt(e, e.lineIndent - 1,
|
|
9731
|
+
if (ae(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, ae(e, !0, -1)) : a && B(e, "directives end mark is expected"), Rt(e, e.lineIndent - 1, Gn, !1, !0), ae(e, !0, -1), e.checkLineBreaks && fw.test(e.input.slice(t, e.position)) && qn(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && pr(e)) {
|
|
9731
9732
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, ae(e, !0, -1));
|
|
9732
9733
|
return;
|
|
9733
9734
|
}
|
|
@@ -9772,7 +9773,7 @@ Qt.loadAll = Hc;
|
|
|
9772
9773
|
Qt.load = Bc;
|
|
9773
9774
|
Qt.safeLoadAll = Rw;
|
|
9774
9775
|
Qt.safeLoad = Fw;
|
|
9775
|
-
var Qi = {}, Zt = Re, Jt = Vt, $w =
|
|
9776
|
+
var Qi = {}, Zt = Re, Jt = Vt, $w = fr, Iw = Xt, Uc = Object.prototype.toString, Gc = Object.prototype.hasOwnProperty, Ow = 9, Gt = 10, Nw = 13, Pw = 32, Lw = 33, kw = 34, qc = 35, Dw = 37, Mw = 38, jw = 39, Hw = 42, Kc = 44, Bw = 45, Wc = 58, Uw = 61, Gw = 62, qw = 63, Kw = 64, zc = 91, Yc = 93, Ww = 96, Qc = 123, zw = 124, Vc = 125, fe = {};
|
|
9776
9777
|
fe[0] = "\\0";
|
|
9777
9778
|
fe[7] = "\\a";
|
|
9778
9779
|
fe[8] = "\\b";
|
|
@@ -10056,8 +10057,8 @@ function uE(e, t) {
|
|
|
10056
10057
|
}
|
|
10057
10058
|
Qi.dump = nu;
|
|
10058
10059
|
Qi.safeDump = uE;
|
|
10059
|
-
var
|
|
10060
|
-
function
|
|
10060
|
+
var dr = Qt, ru = Qi;
|
|
10061
|
+
function hr(e) {
|
|
10061
10062
|
return function() {
|
|
10062
10063
|
throw new Error("Function " + e + " is deprecated and cannot be used.");
|
|
10063
10064
|
};
|
|
@@ -10068,21 +10069,21 @@ re.FAILSAFE_SCHEMA = Ki;
|
|
|
10068
10069
|
re.JSON_SCHEMA = _c;
|
|
10069
10070
|
re.CORE_SCHEMA = Ac;
|
|
10070
10071
|
re.DEFAULT_SAFE_SCHEMA = Xt;
|
|
10071
|
-
re.DEFAULT_FULL_SCHEMA =
|
|
10072
|
-
re.load =
|
|
10073
|
-
re.loadAll =
|
|
10074
|
-
re.safeLoad =
|
|
10075
|
-
re.safeLoadAll =
|
|
10072
|
+
re.DEFAULT_FULL_SCHEMA = fr;
|
|
10073
|
+
re.load = dr.load;
|
|
10074
|
+
re.loadAll = dr.loadAll;
|
|
10075
|
+
re.safeLoad = dr.safeLoad;
|
|
10076
|
+
re.safeLoadAll = dr.safeLoadAll;
|
|
10076
10077
|
re.dump = ru.dump;
|
|
10077
10078
|
re.safeDump = ru.safeDump;
|
|
10078
10079
|
re.YAMLException = Vt;
|
|
10079
10080
|
re.MINIMAL_SCHEMA = Ki;
|
|
10080
10081
|
re.SAFE_SCHEMA = Xt;
|
|
10081
|
-
re.DEFAULT_SCHEMA =
|
|
10082
|
-
re.scan =
|
|
10083
|
-
re.parse =
|
|
10084
|
-
re.compose =
|
|
10085
|
-
re.addConstructor =
|
|
10082
|
+
re.DEFAULT_SCHEMA = fr;
|
|
10083
|
+
re.scan = hr("scan");
|
|
10084
|
+
re.parse = hr("parse");
|
|
10085
|
+
re.compose = hr("compose");
|
|
10086
|
+
re.addConstructor = hr("addConstructor");
|
|
10086
10087
|
var lE = re, fE = lE;
|
|
10087
10088
|
const iu = bc, pE = hv, dE = mv, hE = fE, ou = (e) => hE.safeLoad(dE(e));
|
|
10088
10089
|
wc.exports = (e) => pE(iu.readFile)(e, "utf8").then((t) => ou(t));
|
|
@@ -10112,13 +10113,13 @@ function Sa(e, t) {
|
|
|
10112
10113
|
}, 2);
|
|
10113
10114
|
}
|
|
10114
10115
|
const xE = (e) => !he.isNil(e), _E = (e) => !he.isNull(e);
|
|
10115
|
-
lt(
|
|
10116
|
+
lt(Xn, "notNil", function(t = "${path} must be defined.") {
|
|
10116
10117
|
return this.test("defined", t, xE);
|
|
10117
10118
|
});
|
|
10118
|
-
lt(
|
|
10119
|
+
lt(Xn, "notNull", function(t = "${path} cannot be null.") {
|
|
10119
10120
|
return this.test("defined", t, _E);
|
|
10120
10121
|
});
|
|
10121
|
-
lt(
|
|
10122
|
+
lt(Xn, "isFunction", function(t = "${path} is not a function") {
|
|
10122
10123
|
return this.test("is a function", t, (n) => he.isUndefined(n) || he.isFunction(n));
|
|
10123
10124
|
});
|
|
10124
10125
|
lt(mi, "isCamelCase", function(t = "${path} is not in camel case (anExampleOfCamelCase)") {
|
|
@@ -10253,11 +10254,11 @@ const un = (e, t, n) => {
|
|
|
10253
10254
|
contentTypes: await this.configContentTypes({ viaSettingsPage: t }),
|
|
10254
10255
|
contentTypesNameFields: {
|
|
10255
10256
|
default: ul,
|
|
10256
|
-
...
|
|
10257
|
+
...mr(f) ? f : {}
|
|
10257
10258
|
},
|
|
10258
|
-
contentTypesPopulate:
|
|
10259
|
+
contentTypesPopulate: mr(c) ? c : {},
|
|
10259
10260
|
defaultContentType: u,
|
|
10260
|
-
pathDefaultFields:
|
|
10261
|
+
pathDefaultFields: mr(l) ? l : {},
|
|
10261
10262
|
allowedLevels: p,
|
|
10262
10263
|
additionalFields: t ? o : o.filter((S) => typeof S == "string" || !!S.enabled),
|
|
10263
10264
|
gql: {
|
|
@@ -10289,7 +10290,7 @@ const un = (e, t, n) => {
|
|
|
10289
10290
|
i.contentTypes.filter(
|
|
10290
10291
|
(o) => !!e.strapi.contentTypes[o] && hl(o)
|
|
10291
10292
|
).map(async (o) => {
|
|
10292
|
-
const s =
|
|
10293
|
+
const s = Ur.parse(strapi.contentTypes[o]), { kind: c, options: f, uid: u } = s, l = f?.draftAndPublish, p = c === io.SINGLE, d = p && l, h = (m) => ({
|
|
10293
10294
|
key: o,
|
|
10294
10295
|
available: m
|
|
10295
10296
|
});
|
|
@@ -10306,7 +10307,7 @@ const un = (e, t, n) => {
|
|
|
10306
10307
|
)).reduce((o, s) => {
|
|
10307
10308
|
if (!s?.key)
|
|
10308
10309
|
return o;
|
|
10309
|
-
const { key: c, available: f } = s, u =
|
|
10310
|
+
const { key: c, available: f } = s, u = Ur.parse(e.strapi.contentTypes[c]), l = (u.associations || []).find(
|
|
10310
10311
|
({ model: q }) => q === "navigationitem"
|
|
10311
10312
|
), {
|
|
10312
10313
|
uid: p,
|
|
@@ -10321,16 +10322,16 @@ const un = (e, t, n) => {
|
|
|
10321
10322
|
} = u, T = f && !d?.hidden;
|
|
10322
10323
|
if (!T)
|
|
10323
10324
|
return o;
|
|
10324
|
-
const { visible: I = !0 } = C["content-manager"] || {}, { description:
|
|
10325
|
+
const { visible: I = !0 } = C["content-manager"] || {}, { description: k = "", displayName: A = "" } = h, _ = Kn(
|
|
10325
10326
|
fn(e.strapi.api, `[${g}].config.routes`, []),
|
|
10326
10327
|
(q) => q.handler.includes(".find")
|
|
10327
|
-
), O = _ && _.path.split("/")[1], v = O && O !== w ? O : w || g, M = x === io.SINGLE, j = M ? v : Nu(v), G = ml(g), E = typeof p == "string" ?
|
|
10328
|
+
), O = _ && _.path.split("/")[1], v = O && O !== w ? O : w || g, M = x === io.SINGLE, j = M ? v : Nu(v), G = ml(g), E = typeof p == "string" ? Wn(p.split(".")).split("-") : [], b = E.length > 1 ? E.reduce((q, z) => `${q}${Xi(z)}`, "") : Xi(g), H = e.strapi.plugin("graphql")?.service("utils")?.naming?.getTypeName(u) || "";
|
|
10328
10329
|
return o.push({
|
|
10329
10330
|
uid: p,
|
|
10330
10331
|
name: G,
|
|
10331
10332
|
draftAndPublish: d?.draftAndPublish,
|
|
10332
10333
|
isSingle: M,
|
|
10333
|
-
description:
|
|
10334
|
+
description: k,
|
|
10334
10335
|
collectionName: m,
|
|
10335
10336
|
contentTypeName: b,
|
|
10336
10337
|
label: A,
|
|
@@ -10568,11 +10569,11 @@ const un = (e, t, n) => {
|
|
|
10568
10569
|
}) {
|
|
10569
10570
|
const r = ne(e, "common"), i = t.items ?? [], a = Se(e);
|
|
10570
10571
|
if (n.items?.length)
|
|
10571
|
-
throw new
|
|
10572
|
+
throw new yr("Current navigation is non-empty");
|
|
10572
10573
|
if (!n.locale)
|
|
10573
|
-
throw new
|
|
10574
|
+
throw new yr("Current navigation does not have specified locale");
|
|
10574
10575
|
if (!i.length)
|
|
10575
|
-
throw new
|
|
10576
|
+
throw new yr("Source navigation is empty");
|
|
10576
10577
|
const o = au({
|
|
10577
10578
|
master: n,
|
|
10578
10579
|
locale: n.locale,
|
|
@@ -10655,7 +10656,7 @@ const un = (e, t, n) => {
|
|
|
10655
10656
|
return await n.clearByRegexp([r]), { success: !0 };
|
|
10656
10657
|
}
|
|
10657
10658
|
}), xa = (e, t = {}, n = []) => {
|
|
10658
|
-
const { title: r, related: i } = e, a =
|
|
10659
|
+
const { title: r, related: i } = e, a = jr(i) ? Wn(i) : i;
|
|
10659
10660
|
if (r)
|
|
10660
10661
|
return Zi(r) && !Ye(r) ? r : void 0;
|
|
10661
10662
|
if (a) {
|
|
@@ -10663,7 +10664,7 @@ const un = (e, t, n) => {
|
|
|
10663
10664
|
return Zi(o) && !Ye(o) ? o : void 0;
|
|
10664
10665
|
}
|
|
10665
10666
|
}, FE = (e, t = {}, n = []) => {
|
|
10666
|
-
const { __contentType: r } = e, i =
|
|
10667
|
+
const { __contentType: r } = e, i = Kn(n, (o) => o.contentTypeName === r), { default: a = [] } = t;
|
|
10667
10668
|
return fn(t, `${i ? i.collectionName : ""}`, a).map((o) => e[o]).filter((o) => o)[0] || "";
|
|
10668
10669
|
}, _a = (e, t) => {
|
|
10669
10670
|
const n = su(e), r = t ? n.filter(({ path: a }) => a.includes(t)) : n, i = r.find(({ path: a }) => a === t);
|
|
@@ -10688,7 +10689,7 @@ const un = (e, t, n) => {
|
|
|
10688
10689
|
];
|
|
10689
10690
|
}, []), $E = (e, t) => {
|
|
10690
10691
|
const n = hu(e, t, (r, i) => Ke(r) ? -1 : Ke(i) ? 1 : r - i);
|
|
10691
|
-
return
|
|
10692
|
+
return Kn(n, (r) => r !== 0) || 0;
|
|
10692
10693
|
}, IE = (e) => ({
|
|
10693
10694
|
async readAll({ locale: t, orderBy: n = "createdAt", orderDirection: r = "DESC" }) {
|
|
10694
10695
|
return Se(e).find({
|
|
@@ -10855,7 +10856,7 @@ const un = (e, t, n) => {
|
|
|
10855
10856
|
}) : m = await d.find({
|
|
10856
10857
|
filters: p,
|
|
10857
10858
|
limit: 1
|
|
10858
|
-
}),
|
|
10859
|
+
}), jr(m) && (m = gr(m)), m && m.documentId) {
|
|
10859
10860
|
const g = await h.find({
|
|
10860
10861
|
filters: {
|
|
10861
10862
|
master: Ca(m, ["slug", "id"]),
|
|
@@ -10879,10 +10880,10 @@ const un = (e, t, n) => {
|
|
|
10879
10880
|
), I = (_) => c && _ ? {
|
|
10880
10881
|
documentId: _.documentId,
|
|
10881
10882
|
..._
|
|
10882
|
-
} : _,
|
|
10883
|
+
} : _, k = C.filter(
|
|
10883
10884
|
(_) => typeof _ != "string"
|
|
10884
10885
|
), A = (_) => (O, v) => {
|
|
10885
|
-
const M =
|
|
10886
|
+
const M = k.find(({ name: G }) => G === v);
|
|
10886
10887
|
let j = _.additionalFields?.[v];
|
|
10887
10888
|
if (j)
|
|
10888
10889
|
switch (M?.type) {
|
|
@@ -10898,10 +10899,10 @@ const un = (e, t, n) => {
|
|
|
10898
10899
|
switch (s) {
|
|
10899
10900
|
case "TREE":
|
|
10900
10901
|
case "RFR":
|
|
10901
|
-
const _ = async (F,
|
|
10902
|
-
const H = F.type === "EXTERNAL", q = H ? void 0 : `${
|
|
10903
|
-
query: (
|
|
10904
|
-
}) : void 0, J =
|
|
10902
|
+
const _ = async (F, D = "") => {
|
|
10903
|
+
const H = F.type === "EXTERNAL", q = H ? void 0 : `${D === "/" ? "" : D}/${gr(F.path) === "/" ? F.path.substring(1) : F.path}`, z = typeof q == "string" ? await l.getSlug({
|
|
10904
|
+
query: (gr(q) === "/" ? q.substring(1) : q).replace(/\//g, "-")
|
|
10905
|
+
}) : void 0, J = jr(F.related) ? Wn(F.related) : F.related, Ae = I(J), R = T.reduce(A(F), {});
|
|
10905
10906
|
return {
|
|
10906
10907
|
id: F.id,
|
|
10907
10908
|
documentId: F.documentId,
|
|
@@ -10940,16 +10941,16 @@ const un = (e, t, n) => {
|
|
|
10940
10941
|
enabledCustomFieldsNames: T
|
|
10941
10942
|
}) : j;
|
|
10942
10943
|
default:
|
|
10943
|
-
const G = Ke(o) ? w : _a(w, o).items, E = /* @__PURE__ */ new Map(), b = (F,
|
|
10944
|
-
const H =
|
|
10944
|
+
const G = Ke(o) ? w : _a(w, o).items, E = /* @__PURE__ */ new Map(), b = (F, D = E) => {
|
|
10945
|
+
const H = D.get(F);
|
|
10945
10946
|
if (!Ke(H)) return H;
|
|
10946
10947
|
const q = G.find((R) => R.documentId === F);
|
|
10947
10948
|
if (Ke(q)) return [];
|
|
10948
|
-
const { order: z, parent: J } = q, Ae = J ? b(J.documentId,
|
|
10949
|
-
return
|
|
10949
|
+
const { order: z, parent: J } = q, Ae = J ? b(J.documentId, D).concat(z) : [z];
|
|
10950
|
+
return D.set(F, Ae), Ae;
|
|
10950
10951
|
};
|
|
10951
10952
|
return G.map((F) => {
|
|
10952
|
-
const
|
|
10953
|
+
const D = T.reduce(
|
|
10953
10954
|
A(F),
|
|
10954
10955
|
{}
|
|
10955
10956
|
);
|
|
@@ -10959,10 +10960,10 @@ const un = (e, t, n) => {
|
|
|
10959
10960
|
title: xa(F, x, S) || "",
|
|
10960
10961
|
related: I(F.related),
|
|
10961
10962
|
items: null,
|
|
10962
|
-
additionalFields:
|
|
10963
|
+
additionalFields: D
|
|
10963
10964
|
};
|
|
10964
10965
|
}).sort(
|
|
10965
|
-
(F,
|
|
10966
|
+
(F, D) => $E(b(F.documentId), b(D.documentId))
|
|
10966
10967
|
);
|
|
10967
10968
|
}
|
|
10968
10969
|
}
|
|
@@ -11183,21 +11184,21 @@ const un = (e, t, n) => {
|
|
|
11183
11184
|
});
|
|
11184
11185
|
for (const f of r) {
|
|
11185
11186
|
t.create = !0;
|
|
11186
|
-
const { parent: u, master: l, items: p, documentId: d, id: h, related: m, autoSync: g, ...w } = f,
|
|
11187
|
+
const { parent: u, master: l, items: p, documentId: d, id: h, related: m, autoSync: g, ...w } = f, S = g ? await NE(
|
|
11187
11188
|
e,
|
|
11188
11189
|
m,
|
|
11189
11190
|
n?.locale || "en",
|
|
11190
11191
|
s,
|
|
11191
11192
|
c
|
|
11192
|
-
) : {}, C = d && h ? {
|
|
11193
|
+
) : {}, x = w.title || S?.title, C = w.path || S?.path, T = d && h ? {
|
|
11193
11194
|
...w,
|
|
11194
11195
|
documentId: d,
|
|
11195
11196
|
id: h,
|
|
11196
11197
|
master: n ? n.id : void 0,
|
|
11197
11198
|
parent: i ? i.id : void 0,
|
|
11198
11199
|
autoSync: g,
|
|
11199
|
-
title:
|
|
11200
|
-
path:
|
|
11200
|
+
title: x,
|
|
11201
|
+
path: C,
|
|
11201
11202
|
related: m
|
|
11202
11203
|
} : {
|
|
11203
11204
|
...w,
|
|
@@ -11206,21 +11207,21 @@ const un = (e, t, n) => {
|
|
|
11206
11207
|
master: n ? n.id : void 0,
|
|
11207
11208
|
parent: i ? i.id : void 0,
|
|
11208
11209
|
autoSync: g,
|
|
11209
|
-
title:
|
|
11210
|
-
path:
|
|
11210
|
+
title: x,
|
|
11211
|
+
path: C,
|
|
11211
11212
|
related: m
|
|
11212
|
-
},
|
|
11213
|
-
item:
|
|
11213
|
+
}, I = await Pe(e).save({
|
|
11214
|
+
item: T,
|
|
11214
11215
|
locale: n?.locale
|
|
11215
11216
|
});
|
|
11216
11217
|
if (f.items?.length) {
|
|
11217
|
-
const
|
|
11218
|
+
const k = await this.createBranch({
|
|
11218
11219
|
action: {},
|
|
11219
11220
|
masterEntity: n,
|
|
11220
11221
|
navigationItems: f.items,
|
|
11221
|
-
parentItem:
|
|
11222
|
+
parentItem: I
|
|
11222
11223
|
});
|
|
11223
|
-
a = a.concat(
|
|
11224
|
+
a = a.concat(k).concat([t]);
|
|
11224
11225
|
} else
|
|
11225
11226
|
a.push(t);
|
|
11226
11227
|
}
|
|
@@ -11315,14 +11316,14 @@ const un = (e, t, n) => {
|
|
|
11315
11316
|
navigationItems: t,
|
|
11316
11317
|
id: n
|
|
11317
11318
|
}) {
|
|
11318
|
-
return t?.reduce((r, i) => (n && i.parent?.id !== n || r.push({
|
|
11319
|
+
return (t?.reduce((r, i) => (n && i.parent?.id !== n || r.push({
|
|
11319
11320
|
...vn(i, ["related", "items"]),
|
|
11320
11321
|
related: i.related,
|
|
11321
11322
|
items: this.buildNestedStructure({
|
|
11322
11323
|
navigationItems: t,
|
|
11323
11324
|
id: i.id
|
|
11324
11325
|
})
|
|
11325
|
-
}), r), []) ?? [];
|
|
11326
|
+
}), r), []) ?? [])?.sort((r, i) => r.order - i.order) ?? [];
|
|
11326
11327
|
},
|
|
11327
11328
|
async readLocale() {
|
|
11328
11329
|
const t = strapi.plugin("i18n").service("locales");
|