strapi-plugin-comments 3.0.8 → 3.0.10
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/README.md +1 -1
- package/dist/_chunks/{en-DCsHR-ue.mjs → en-BtJqEJGe.mjs} +2 -0
- package/dist/_chunks/en-CNvRvaLL.js +1 -0
- package/dist/_chunks/fr-Bh0tVDIQ.js +1 -0
- package/dist/_chunks/{fr-DC9DGoT1.mjs → fr-n-k7Rsq9.mjs} +106 -55
- package/dist/_chunks/index-3aTvO9o4.js +2221 -0
- package/dist/_chunks/{index-Dz0m9-CE.mjs → index-B3sOw8of.mjs} +11781 -11717
- package/dist/_chunks/{index-B5PjDM8c.js → index-BkeaCrYD.js} +1 -1
- package/dist/_chunks/{index-C9SDOq14.mjs → index-BmZpl8oj.mjs} +8398 -8287
- package/dist/_chunks/{index-C06AHjYM.js → index-C1iG6Vvf.js} +44 -44
- package/dist/_chunks/index-CdurBq-v.js +18 -0
- package/dist/_chunks/{index-BS9J96Lh.mjs → index-CzOGwAt4.mjs} +466 -462
- package/dist/_chunks/{index-iv4k-YuD.mjs → index-DG6A3YTl.mjs} +20 -20
- package/dist/_chunks/pl-DoXe0BV9.js +1 -0
- package/dist/_chunks/{pl-DZiVsGIg.mjs → pl-_wkGtdQj.mjs} +2 -0
- package/dist/_chunks/{pt-BR-CW4ugNZj.mjs → pt-BR-Bx1qSZ0Z.mjs} +2 -0
- package/dist/_chunks/pt-BR-CLvbSGaH.js +1 -0
- package/dist/_chunks/{ru-CfKjYq3M.mjs → ru-BuUj7OWH.mjs} +2 -0
- package/dist/_chunks/ru-eLIDfsd3.js +1 -0
- package/dist/_chunks/tr-BX-_IBUR.js +1 -0
- package/dist/_chunks/{tr-BQR2hK7S.mjs → tr-CloK8CbW.mjs} +2 -0
- package/dist/_chunks/zh-Hans-DusBjCtd.js +1 -0
- package/dist/_chunks/{zh-Hans-lNqOn5JS.mjs → zh-Hans-Isi-yCnI.mjs} +2 -0
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/api/schemas.d.ts +21 -21
- package/dist/admin/src/components/ActionButton/index.d.ts +4 -2
- package/dist/admin/src/components/CommentStatusFilters/index.d.ts +6 -0
- package/dist/admin/src/components/DiscussionThreadItem/DiscussionThreadItemFooter.d.ts +1 -1
- package/dist/admin/src/components/DiscussionThreadItem/index.d.ts +2 -2
- package/dist/admin/src/components/IconButtonGroup/index.d.ts +5 -2
- package/dist/admin/src/components/StatusBadge/index.d.ts +1 -1
- package/dist/admin/src/components/Wysiwyg/EditorLayout.d.ts +1 -1
- package/dist/admin/src/components/Wysiwyg/WysiwygStyles.d.ts +4 -4
- package/dist/admin/src/hooks/useCommentsAll.d.ts +2 -2
- package/dist/admin/src/translations/en.d.ts +2 -0
- package/dist/admin/src/translations/fr.d.ts +52 -0
- package/dist/admin/src/translations/pl.d.ts +2 -0
- package/dist/admin/src/translations/pt-BR.d.ts +2 -0
- package/dist/admin/src/translations/ru.d.ts +2 -0
- package/dist/admin/src/translations/tr.d.ts +2 -0
- package/dist/admin/src/translations/zh-Hans.d.ts +2 -0
- package/dist/server/index.js +31 -31
- package/dist/server/index.mjs +1290 -1264
- package/dist/server/src/@types/controllers.d.ts +1 -0
- package/dist/server/src/controllers/index.d.ts +66 -0
- package/dist/server/src/graphql/getResolversConfig.d.ts +4 -4
- package/dist/server/src/index.d.ts +572 -1
- package/dist/server/src/services/admin/admin.service.d.ts +68 -1
- package/dist/server/src/services/admin/utils.d.ts +1 -8
- package/dist/server/src/services/client.service.d.ts +67 -0
- package/dist/server/src/services/common.service.d.ts +1 -0
- package/dist/server/src/services/index.d.ts +506 -1
- package/dist/server/src/validators/api/controllers/admin.controller.validator.d.ts +1504 -6
- package/dist/server/src/validators/api/controllers/client.controller.validator.d.ts +66 -0
- package/dist/server/src/validators/repositories/comment.validator.d.ts +57 -57
- package/dist/server/src/validators/utils.d.ts +1238 -4
- package/package.json +14 -14
- package/dist/_chunks/en-CgUbWvmQ.js +0 -1
- package/dist/_chunks/fr-BXfxIXq1.js +0 -1
- package/dist/_chunks/index-BGCzzYSK.js +0 -2175
- package/dist/_chunks/index-Chf4p7eV.js +0 -18
- package/dist/_chunks/pl-Bl4yP3sZ.js +0 -1
- package/dist/_chunks/pt-BR-D9T5g0JT.js +0 -1
- package/dist/_chunks/ru-DIZ4pV4l.js +0 -1
- package/dist/_chunks/tr-Dl2hdLCx.js +0 -1
- package/dist/_chunks/zh-Hans-BZhnqfei.js +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsx as _, jsxs as
|
|
2
|
-
import { ab as tn, ac as $r, l as wr, ad as nn, ae as it, af as
|
|
1
|
+
import { jsx as _, jsxs as Ae } from "react/jsx-runtime";
|
|
2
|
+
import { ab as tn, ac as $r, l as wr, ad as nn, ae as it, af as an, ag as ee, ah as Rr, ai as lt, p as on, aj as V, F as ln, ak as un, T as cn, e as Cr } from "./index-B3sOw8of.mjs";
|
|
3
3
|
import { useQuery as fn, QueryClientProvider as sn, QueryClient as pn } from "@tanstack/react-query";
|
|
4
|
-
import * as
|
|
4
|
+
import * as oe from "react";
|
|
5
5
|
import { useMemo as ut, createContext as yn, useState as Tr } from "react";
|
|
6
6
|
import { getFetchClient as dn, useRBAC as mn } from "@strapi/strapi/admin";
|
|
7
|
-
import { z as
|
|
7
|
+
import { z as o } from "zod";
|
|
8
8
|
var ce = TypeError;
|
|
9
9
|
const vn = {}, gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10
10
|
__proto__: null,
|
|
11
11
|
default: vn
|
|
12
12
|
}, Symbol.toStringTag, { value: "Module" })), hn = /* @__PURE__ */ tn(gn);
|
|
13
|
-
var dr = typeof Map == "function" && Map.prototype, Le = Object.getOwnPropertyDescriptor && dr ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Re = dr && Le && typeof Le.get == "function" ? Le.get : null, _r = dr && Map.prototype.forEach, mr = typeof Set == "function" && Set.prototype, Be = Object.getOwnPropertyDescriptor && mr ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Ce = mr && Be && typeof Be.get == "function" ? Be.get : null, Ir = mr && Set.prototype.forEach, Sn = typeof WeakMap == "function" && WeakMap.prototype, se = Sn ? WeakMap.prototype.has : null, bn = typeof WeakSet == "function" && WeakSet.prototype, pe = bn ? WeakSet.prototype.has : null,
|
|
13
|
+
var dr = typeof Map == "function" && Map.prototype, Le = Object.getOwnPropertyDescriptor && dr ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Re = dr && Le && typeof Le.get == "function" ? Le.get : null, _r = dr && Map.prototype.forEach, mr = typeof Set == "function" && Set.prototype, Be = Object.getOwnPropertyDescriptor && mr ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Ce = mr && Be && typeof Be.get == "function" ? Be.get : null, Ir = mr && Set.prototype.forEach, Sn = typeof WeakMap == "function" && WeakMap.prototype, se = Sn ? WeakMap.prototype.has : null, bn = typeof WeakSet == "function" && WeakSet.prototype, pe = bn ? WeakSet.prototype.has : null, An = typeof WeakRef == "function" && WeakRef.prototype, Nr = An ? WeakRef.prototype.deref : null, En = Boolean.prototype.valueOf, On = Object.prototype.toString, Pn = Function.prototype.toString, $n = String.prototype.match, vr = String.prototype.slice, H = String.prototype.replace, wn = String.prototype.toUpperCase, xr = String.prototype.toLowerCase, ct = RegExp.prototype.test, Fr = Array.prototype.concat, L = Array.prototype.join, Rn = Array.prototype.slice, Mr = Math.floor, ar = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Ue = Object.getOwnPropertySymbols, or = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, ie = typeof Symbol == "function" && typeof Symbol.iterator == "object", ye = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === ie || !0) ? Symbol.toStringTag : null, ft = Object.prototype.propertyIsEnumerable, Dr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(r) {
|
|
14
14
|
return r.__proto__;
|
|
15
15
|
} : null);
|
|
16
16
|
function Lr(r, e) {
|
|
@@ -20,8 +20,8 @@ function Lr(r, e) {
|
|
|
20
20
|
if (typeof r == "number") {
|
|
21
21
|
var n = r < 0 ? -Mr(-r) : Mr(r);
|
|
22
22
|
if (n !== r) {
|
|
23
|
-
var
|
|
24
|
-
return H.call(
|
|
23
|
+
var a = String(n), i = vr.call(e, a.length + 1);
|
|
24
|
+
return H.call(a, t, "$&_") + "." + H.call(H.call(i, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
return H.call(e, t, "$&_");
|
|
@@ -34,7 +34,7 @@ var ir = hn, Br = ir.custom, Ur = yt(Br) ? Br : null, st = {
|
|
|
34
34
|
__proto__: null,
|
|
35
35
|
double: /(["\\])/g,
|
|
36
36
|
single: /(['\\])/g
|
|
37
|
-
}, Ne = function r(e, t, n,
|
|
37
|
+
}, Ne = function r(e, t, n, a) {
|
|
38
38
|
var i = t || {};
|
|
39
39
|
if (U(i, "quoteStyle") && !U(st, i.quoteStyle))
|
|
40
40
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
@@ -70,25 +70,25 @@ var ir = hn, Br = ir.custom, Ur = yt(Br) ? Br : null, st = {
|
|
|
70
70
|
if (typeof n > "u" && (n = 0), n >= p && p > 0 && typeof e == "object")
|
|
71
71
|
return lr(e) ? "[Array]" : "[Object]";
|
|
72
72
|
var y = zn(i, n);
|
|
73
|
-
if (typeof
|
|
74
|
-
|
|
75
|
-
else if (dt(
|
|
73
|
+
if (typeof a > "u")
|
|
74
|
+
a = [];
|
|
75
|
+
else if (dt(a, e) >= 0)
|
|
76
76
|
return "[Circular]";
|
|
77
77
|
function m(x, G, Z) {
|
|
78
|
-
if (G && (
|
|
78
|
+
if (G && (a = Rn.call(a), a.push(G)), Z) {
|
|
79
79
|
var j = {
|
|
80
80
|
depth: i.depth
|
|
81
81
|
};
|
|
82
|
-
return U(i, "quoteStyle") && (j.quoteStyle = i.quoteStyle), r(x, j, n + 1,
|
|
82
|
+
return U(i, "quoteStyle") && (j.quoteStyle = i.quoteStyle), r(x, j, n + 1, a);
|
|
83
83
|
}
|
|
84
|
-
return r(x, i, n + 1,
|
|
84
|
+
return r(x, i, n + 1, a);
|
|
85
85
|
}
|
|
86
86
|
if (typeof e == "function" && !qr(e)) {
|
|
87
|
-
var h = Ln(e), v =
|
|
87
|
+
var h = Ln(e), v = Ee(e, m);
|
|
88
88
|
return "[Function" + (h ? ": " + h : " (anonymous)") + "]" + (v.length > 0 ? " { " + L.call(v, ", ") + " }" : "");
|
|
89
89
|
}
|
|
90
90
|
if (yt(e)) {
|
|
91
|
-
var P = ie ? H.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") :
|
|
91
|
+
var P = ie ? H.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : or.call(e);
|
|
92
92
|
return typeof e == "object" && !ie ? fe(P) : P;
|
|
93
93
|
}
|
|
94
94
|
if (Gn(e)) {
|
|
@@ -99,11 +99,11 @@ var ir = hn, Br = ir.custom, Ur = yt(Br) ? Br : null, st = {
|
|
|
99
99
|
if (lr(e)) {
|
|
100
100
|
if (e.length === 0)
|
|
101
101
|
return "[]";
|
|
102
|
-
var O =
|
|
102
|
+
var O = Ee(e, m);
|
|
103
103
|
return y && !Vn(O) ? "[" + ur(O, y) + "]" : "[ " + L.call(O, ", ") + " ]";
|
|
104
104
|
}
|
|
105
105
|
if (In(e)) {
|
|
106
|
-
var $ =
|
|
106
|
+
var $ = Ee(e, m);
|
|
107
107
|
return !("cause" in Error.prototype) && "cause" in e && !ft.call(e, "cause") ? "{ [" + String(e) + "] " + L.call(Fr.call("[cause]: " + m(e.cause), $), ", ") + " }" : $.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + L.call($, ", ") + " }";
|
|
108
108
|
}
|
|
109
109
|
if (typeof e == "object" && c) {
|
|
@@ -133,9 +133,9 @@ var ir = hn, Br = ir.custom, Ur = yt(Br) ? Br : null, st = {
|
|
|
133
133
|
if (xn(e))
|
|
134
134
|
return fe(m(Number(e)));
|
|
135
135
|
if (Mn(e))
|
|
136
|
-
return fe(m(
|
|
136
|
+
return fe(m(ar.call(e)));
|
|
137
137
|
if (Fn(e))
|
|
138
|
-
return fe(
|
|
138
|
+
return fe(En.call(e));
|
|
139
139
|
if (Nn(e))
|
|
140
140
|
return fe(m(String(e)));
|
|
141
141
|
if (typeof window < "u" && e === window)
|
|
@@ -143,14 +143,14 @@ var ir = hn, Br = ir.custom, Ur = yt(Br) ? Br : null, st = {
|
|
|
143
143
|
if (typeof globalThis < "u" && e === globalThis || typeof $r < "u" && e === $r)
|
|
144
144
|
return "{ [object globalThis] }";
|
|
145
145
|
if (!_n(e) && !qr(e)) {
|
|
146
|
-
var B =
|
|
146
|
+
var B = Ee(e, m), M = Dr ? Dr(e) === Object.prototype : e instanceof Object || e.constructor === Object, W = e instanceof Object ? "" : "null prototype", k = !M && ye && Object(e) === e && ye in e ? vr.call(Y(e), 8, -1) : W ? "Object" : "", K = M || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", N = K + (k || W ? "[" + L.call(Fr.call([], k || [], W || []), ": ") + "] " : "");
|
|
147
147
|
return B.length === 0 ? N + "{}" : y ? N + "{" + ur(B, y) + "}" : N + "{ " + L.call(B, ", ") + " }";
|
|
148
148
|
}
|
|
149
149
|
return String(e);
|
|
150
150
|
};
|
|
151
151
|
function pt(r, e, t) {
|
|
152
|
-
var n = t.quoteStyle || e,
|
|
153
|
-
return
|
|
152
|
+
var n = t.quoteStyle || e, a = st[n];
|
|
153
|
+
return a + r + a;
|
|
154
154
|
}
|
|
155
155
|
function Tn(r) {
|
|
156
156
|
return H.call(String(r), /"/g, """);
|
|
@@ -184,19 +184,19 @@ function yt(r) {
|
|
|
184
184
|
return r && typeof r == "object" && r instanceof Symbol;
|
|
185
185
|
if (typeof r == "symbol")
|
|
186
186
|
return !0;
|
|
187
|
-
if (!r || typeof r != "object" || !
|
|
187
|
+
if (!r || typeof r != "object" || !or)
|
|
188
188
|
return !1;
|
|
189
189
|
try {
|
|
190
|
-
return
|
|
190
|
+
return or.call(r), !0;
|
|
191
191
|
} catch {
|
|
192
192
|
}
|
|
193
193
|
return !1;
|
|
194
194
|
}
|
|
195
195
|
function Mn(r) {
|
|
196
|
-
if (!r || typeof r != "object" || !
|
|
196
|
+
if (!r || typeof r != "object" || !ar)
|
|
197
197
|
return !1;
|
|
198
198
|
try {
|
|
199
|
-
return
|
|
199
|
+
return ar.call(r), !0;
|
|
200
200
|
} catch {
|
|
201
201
|
}
|
|
202
202
|
return !1;
|
|
@@ -301,9 +301,9 @@ function mt(r, e) {
|
|
|
301
301
|
var t = r.length - e.maxStringLength, n = "... " + t + " more character" + (t > 1 ? "s" : "");
|
|
302
302
|
return mt(vr.call(r, 0, e.maxStringLength), e) + n;
|
|
303
303
|
}
|
|
304
|
-
var
|
|
305
|
-
|
|
306
|
-
var i = H.call(H.call(r,
|
|
304
|
+
var a = Cn[e.quoteStyle || "single"];
|
|
305
|
+
a.lastIndex = 0;
|
|
306
|
+
var i = H.call(H.call(r, a, "\\$1"), /[\x00-\x1f]/g, jn);
|
|
307
307
|
return pt(i, "single", e);
|
|
308
308
|
}
|
|
309
309
|
function jn(r) {
|
|
@@ -323,8 +323,8 @@ function qe(r) {
|
|
|
323
323
|
return r + " { ? }";
|
|
324
324
|
}
|
|
325
325
|
function Wr(r, e, t, n) {
|
|
326
|
-
var
|
|
327
|
-
return r + " (" + e + ") {" +
|
|
326
|
+
var a = n ? ur(t, n) : L.call(t, ", ");
|
|
327
|
+
return r + " (" + e + ") {" + a + "}";
|
|
328
328
|
}
|
|
329
329
|
function Vn(r) {
|
|
330
330
|
for (var e = 0; e < r.length; e++)
|
|
@@ -354,12 +354,12 @@ function ur(r, e) {
|
|
|
354
354
|
return t + L.call(r, "," + t) + `
|
|
355
355
|
` + e.prev;
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function Ee(r, e) {
|
|
358
358
|
var t = lr(r), n = [];
|
|
359
359
|
if (t) {
|
|
360
360
|
n.length = r.length;
|
|
361
|
-
for (var
|
|
362
|
-
n[
|
|
361
|
+
for (var a = 0; a < r.length; a++)
|
|
362
|
+
n[a] = U(r, a) ? e(r[a], r) : "";
|
|
363
363
|
}
|
|
364
364
|
var i = typeof Ue == "function" ? Ue(r) : [], c;
|
|
365
365
|
if (ie) {
|
|
@@ -375,10 +375,10 @@ function Ae(r, e) {
|
|
|
375
375
|
return n;
|
|
376
376
|
}
|
|
377
377
|
var Hn = Ne, Yn = ce, xe = function(r, e, t) {
|
|
378
|
-
for (var n = r,
|
|
379
|
-
if (
|
|
380
|
-
return n.next =
|
|
381
|
-
r.next, r.next =
|
|
378
|
+
for (var n = r, a; (a = n.next) != null; n = a)
|
|
379
|
+
if (a.key === e)
|
|
380
|
+
return n.next = a.next, t || (a.next = /** @type {NonNullable<typeof list.next>} */
|
|
381
|
+
r.next, r.next = a), a;
|
|
382
382
|
}, Kn = function(r, e) {
|
|
383
383
|
if (r) {
|
|
384
384
|
var t = xe(r, e);
|
|
@@ -405,8 +405,8 @@ var Hn = Ne, Yn = ce, xe = function(r, e, t) {
|
|
|
405
405
|
throw new Yn("Side channel does not contain " + Hn(n));
|
|
406
406
|
},
|
|
407
407
|
delete: function(n) {
|
|
408
|
-
var
|
|
409
|
-
return i &&
|
|
408
|
+
var a = e && e.next, i = Xn(e, n);
|
|
409
|
+
return i && a && a === i && (e = void 0), !!i;
|
|
410
410
|
},
|
|
411
411
|
get: function(n) {
|
|
412
412
|
return Kn(e, n);
|
|
@@ -414,23 +414,23 @@ var Hn = Ne, Yn = ce, xe = function(r, e, t) {
|
|
|
414
414
|
has: function(n) {
|
|
415
415
|
return Jn(e, n);
|
|
416
416
|
},
|
|
417
|
-
set: function(n,
|
|
417
|
+
set: function(n, a) {
|
|
418
418
|
e || (e = {
|
|
419
419
|
next: void 0
|
|
420
420
|
}), Qn(
|
|
421
421
|
/** @type {NonNullable<typeof $o>} */
|
|
422
422
|
e,
|
|
423
423
|
n,
|
|
424
|
-
|
|
424
|
+
a
|
|
425
425
|
);
|
|
426
426
|
}
|
|
427
427
|
};
|
|
428
428
|
return t;
|
|
429
|
-
}, vt = Object,
|
|
429
|
+
}, vt = Object, ea = Error, ra = EvalError, ta = RangeError, na = ReferenceError, aa = SyntaxError, oa = URIError, ia = Math.abs, la = Math.floor, ua = Math.max, ca = Math.min, fa = Math.pow, sa = Math.round, pa = Number.isNaN || function(e) {
|
|
430
430
|
return e !== e;
|
|
431
|
-
},
|
|
432
|
-
return
|
|
433
|
-
},
|
|
431
|
+
}, ya = pa, da = function(e) {
|
|
432
|
+
return ya(e) || e === 0 ? e : e < 0 ? -1 : 1;
|
|
433
|
+
}, ma = Object.getOwnPropertyDescriptor, Pe = ma;
|
|
434
434
|
if (Pe)
|
|
435
435
|
try {
|
|
436
436
|
Pe([], "length");
|
|
@@ -444,8 +444,8 @@ if ($e)
|
|
|
444
444
|
} catch {
|
|
445
445
|
$e = !1;
|
|
446
446
|
}
|
|
447
|
-
var
|
|
448
|
-
function
|
|
447
|
+
var va = $e, We, kr;
|
|
448
|
+
function ga() {
|
|
449
449
|
return kr || (kr = 1, We = function() {
|
|
450
450
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
451
451
|
return !1;
|
|
@@ -454,8 +454,8 @@ function ho() {
|
|
|
454
454
|
var e = {}, t = Symbol("test"), n = Object(t);
|
|
455
455
|
if (typeof t == "string" || Object.prototype.toString.call(t) !== "[object Symbol]" || Object.prototype.toString.call(n) !== "[object Symbol]")
|
|
456
456
|
return !1;
|
|
457
|
-
var
|
|
458
|
-
e[t] =
|
|
457
|
+
var a = 42;
|
|
458
|
+
e[t] = a;
|
|
459
459
|
for (var i in e)
|
|
460
460
|
return !1;
|
|
461
461
|
if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0)
|
|
@@ -468,17 +468,17 @@ function ho() {
|
|
|
468
468
|
/** @type {PropertyDescriptor} */
|
|
469
469
|
Object.getOwnPropertyDescriptor(e, t)
|
|
470
470
|
);
|
|
471
|
-
if (l.value !==
|
|
471
|
+
if (l.value !== a || l.enumerable !== !0)
|
|
472
472
|
return !1;
|
|
473
473
|
}
|
|
474
474
|
return !0;
|
|
475
475
|
}), We;
|
|
476
476
|
}
|
|
477
477
|
var ke, Gr;
|
|
478
|
-
function
|
|
478
|
+
function ha() {
|
|
479
479
|
if (Gr) return ke;
|
|
480
480
|
Gr = 1;
|
|
481
|
-
var r = typeof Symbol < "u" && Symbol, e =
|
|
481
|
+
var r = typeof Symbol < "u" && Symbol, e = ga();
|
|
482
482
|
return ke = function() {
|
|
483
483
|
return typeof r != "function" || typeof Symbol != "function" || typeof r("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
|
|
484
484
|
}, ke;
|
|
@@ -495,10 +495,10 @@ function St() {
|
|
|
495
495
|
return je = r.getPrototypeOf || null, je;
|
|
496
496
|
}
|
|
497
497
|
var Ve, zr;
|
|
498
|
-
function
|
|
498
|
+
function Sa() {
|
|
499
499
|
if (zr) return Ve;
|
|
500
500
|
zr = 1;
|
|
501
|
-
var r = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, t = Math.max, n = "[object Function]",
|
|
501
|
+
var r = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, t = Math.max, n = "[object Function]", a = function(f, u) {
|
|
502
502
|
for (var p = [], y = 0; y < f.length; y += 1)
|
|
503
503
|
p[y] = f[y];
|
|
504
504
|
for (var m = 0; m < u.length; m += 1)
|
|
@@ -521,13 +521,13 @@ function bo() {
|
|
|
521
521
|
if (this instanceof y) {
|
|
522
522
|
var g = u.apply(
|
|
523
523
|
this,
|
|
524
|
-
|
|
524
|
+
a(p, arguments)
|
|
525
525
|
);
|
|
526
526
|
return Object(g) === g ? g : this;
|
|
527
527
|
}
|
|
528
528
|
return u.apply(
|
|
529
529
|
f,
|
|
530
|
-
|
|
530
|
+
a(p, arguments)
|
|
531
531
|
);
|
|
532
532
|
}, h = t(0, u.length - p.length), v = [], P = 0; P < h; P++)
|
|
533
533
|
v[P] = "$" + P;
|
|
@@ -543,7 +543,7 @@ var ze, Hr;
|
|
|
543
543
|
function Fe() {
|
|
544
544
|
if (Hr) return ze;
|
|
545
545
|
Hr = 1;
|
|
546
|
-
var r =
|
|
546
|
+
var r = Sa();
|
|
547
547
|
return ze = Function.prototype.bind || r, ze;
|
|
548
548
|
}
|
|
549
549
|
var He, Yr;
|
|
@@ -554,15 +554,15 @@ var Ye, Kr;
|
|
|
554
554
|
function bt() {
|
|
555
555
|
return Kr || (Kr = 1, Ye = Function.prototype.apply), Ye;
|
|
556
556
|
}
|
|
557
|
-
var
|
|
557
|
+
var ba = typeof Reflect < "u" && Reflect && Reflect.apply, Aa = Fe(), Ea = bt(), Oa = gr(), Pa = ba, $a = Pa || Aa.call(Oa, Ea), wa = Fe(), Ra = ce, Ca = gr(), Ta = $a, At = function(e) {
|
|
558
558
|
if (e.length < 1 || typeof e[0] != "function")
|
|
559
|
-
throw new
|
|
560
|
-
return
|
|
559
|
+
throw new Ra("a function is required");
|
|
560
|
+
return Ta(wa, Ca, e);
|
|
561
561
|
}, Ke, Qr;
|
|
562
|
-
function
|
|
562
|
+
function _a() {
|
|
563
563
|
if (Qr) return Ke;
|
|
564
564
|
Qr = 1;
|
|
565
|
-
var r =
|
|
565
|
+
var r = At, e = gt, t;
|
|
566
566
|
try {
|
|
567
567
|
t = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
568
568
|
[].__proto__ === Array.prototype;
|
|
@@ -574,44 +574,44 @@ function Io() {
|
|
|
574
574
|
Object.prototype,
|
|
575
575
|
/** @type {keyof typeof Object.prototype} */
|
|
576
576
|
"__proto__"
|
|
577
|
-
),
|
|
577
|
+
), a = Object, i = a.getPrototypeOf;
|
|
578
578
|
return Ke = n && typeof n.get == "function" ? r([n.get]) : typeof i == "function" ? (
|
|
579
579
|
/** @type {import('./get')} */
|
|
580
580
|
function(l) {
|
|
581
|
-
return i(l == null ? l :
|
|
581
|
+
return i(l == null ? l : a(l));
|
|
582
582
|
}
|
|
583
583
|
) : !1, Ke;
|
|
584
584
|
}
|
|
585
585
|
var Qe, Jr;
|
|
586
|
-
function
|
|
586
|
+
function Ia() {
|
|
587
587
|
if (Jr) return Qe;
|
|
588
588
|
Jr = 1;
|
|
589
|
-
var r = ht(), e = St(), t =
|
|
590
|
-
return Qe = r ? function(
|
|
591
|
-
return r(
|
|
592
|
-
} : e ? function(
|
|
593
|
-
if (!
|
|
589
|
+
var r = ht(), e = St(), t = _a();
|
|
590
|
+
return Qe = r ? function(a) {
|
|
591
|
+
return r(a);
|
|
592
|
+
} : e ? function(a) {
|
|
593
|
+
if (!a || typeof a != "object" && typeof a != "function")
|
|
594
594
|
throw new TypeError("getProto: not an object");
|
|
595
|
-
return e(
|
|
596
|
-
} : t ? function(
|
|
597
|
-
return t(
|
|
595
|
+
return e(a);
|
|
596
|
+
} : t ? function(a) {
|
|
597
|
+
return t(a);
|
|
598
598
|
} : null, Qe;
|
|
599
599
|
}
|
|
600
600
|
var Je, Xr;
|
|
601
|
-
function
|
|
601
|
+
function Na() {
|
|
602
602
|
if (Xr) return Je;
|
|
603
603
|
Xr = 1;
|
|
604
604
|
var r = Function.prototype.call, e = Object.prototype.hasOwnProperty, t = Fe();
|
|
605
605
|
return Je = t.call(r, e), Je;
|
|
606
606
|
}
|
|
607
|
-
var S,
|
|
607
|
+
var S, xa = vt, Fa = ea, Ma = ra, Da = ta, La = na, le = aa, ae = ce, Ba = oa, Ua = ia, qa = la, Wa = ua, ka = ca, Ga = fa, ja = sa, Va = da, Et = Function, Xe = function(r) {
|
|
608
608
|
try {
|
|
609
|
-
return
|
|
609
|
+
return Et('"use strict"; return (' + r + ").constructor;")();
|
|
610
610
|
} catch {
|
|
611
611
|
}
|
|
612
|
-
}, me = gt,
|
|
613
|
-
throw new
|
|
614
|
-
},
|
|
612
|
+
}, me = gt, za = va, Ze = function() {
|
|
613
|
+
throw new ae();
|
|
614
|
+
}, Ha = me ? function() {
|
|
615
615
|
try {
|
|
616
616
|
return arguments.callee, Ze;
|
|
617
617
|
} catch {
|
|
@@ -621,7 +621,7 @@ var S, Fo = vt, Mo = eo, Do = ro, Lo = to, Bo = no, le = oo, oe = ce, Uo = ao, q
|
|
|
621
621
|
return Ze;
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
|
-
}() : Ze, re =
|
|
624
|
+
}() : Ze, re = ha()(), R = Ia(), Ya = St(), Ka = ht(), Ot = bt(), ve = gr(), ne = {}, Qa = typeof Uint8Array > "u" || !R ? S : R(Uint8Array), J = {
|
|
625
625
|
__proto__: null,
|
|
626
626
|
"%AggregateError%": typeof AggregateError > "u" ? S : AggregateError,
|
|
627
627
|
"%Array%": Array,
|
|
@@ -643,14 +643,15 @@ var S, Fo = vt, Mo = eo, Do = ro, Lo = to, Bo = no, le = oo, oe = ce, Uo = ao, q
|
|
|
643
643
|
"%decodeURIComponent%": decodeURIComponent,
|
|
644
644
|
"%encodeURI%": encodeURI,
|
|
645
645
|
"%encodeURIComponent%": encodeURIComponent,
|
|
646
|
-
"%Error%":
|
|
646
|
+
"%Error%": Fa,
|
|
647
647
|
"%eval%": eval,
|
|
648
648
|
// eslint-disable-line no-eval
|
|
649
|
-
"%EvalError%":
|
|
649
|
+
"%EvalError%": Ma,
|
|
650
|
+
"%Float16Array%": typeof Float16Array > "u" ? S : Float16Array,
|
|
650
651
|
"%Float32Array%": typeof Float32Array > "u" ? S : Float32Array,
|
|
651
652
|
"%Float64Array%": typeof Float64Array > "u" ? S : Float64Array,
|
|
652
653
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? S : FinalizationRegistry,
|
|
653
|
-
"%Function%":
|
|
654
|
+
"%Function%": Et,
|
|
654
655
|
"%GeneratorFunction%": ne,
|
|
655
656
|
"%Int8Array%": typeof Int8Array > "u" ? S : Int8Array,
|
|
656
657
|
"%Int16Array%": typeof Int16Array > "u" ? S : Int16Array,
|
|
@@ -663,14 +664,14 @@ var S, Fo = vt, Mo = eo, Do = ro, Lo = to, Bo = no, le = oo, oe = ce, Uo = ao, q
|
|
|
663
664
|
"%MapIteratorPrototype%": typeof Map > "u" || !re || !R ? S : R((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
664
665
|
"%Math%": Math,
|
|
665
666
|
"%Number%": Number,
|
|
666
|
-
"%Object%":
|
|
667
|
+
"%Object%": xa,
|
|
667
668
|
"%Object.getOwnPropertyDescriptor%": me,
|
|
668
669
|
"%parseFloat%": parseFloat,
|
|
669
670
|
"%parseInt%": parseInt,
|
|
670
671
|
"%Promise%": typeof Promise > "u" ? S : Promise,
|
|
671
672
|
"%Proxy%": typeof Proxy > "u" ? S : Proxy,
|
|
672
|
-
"%RangeError%":
|
|
673
|
-
"%ReferenceError%":
|
|
673
|
+
"%RangeError%": Da,
|
|
674
|
+
"%ReferenceError%": La,
|
|
674
675
|
"%Reflect%": typeof Reflect > "u" ? S : Reflect,
|
|
675
676
|
"%RegExp%": RegExp,
|
|
676
677
|
"%Set%": typeof Set > "u" ? S : Set,
|
|
@@ -680,38 +681,38 @@ var S, Fo = vt, Mo = eo, Do = ro, Lo = to, Bo = no, le = oo, oe = ce, Uo = ao, q
|
|
|
680
681
|
"%StringIteratorPrototype%": re && R ? R(""[Symbol.iterator]()) : S,
|
|
681
682
|
"%Symbol%": re ? Symbol : S,
|
|
682
683
|
"%SyntaxError%": le,
|
|
683
|
-
"%ThrowTypeError%":
|
|
684
|
-
"%TypedArray%":
|
|
685
|
-
"%TypeError%":
|
|
684
|
+
"%ThrowTypeError%": Ha,
|
|
685
|
+
"%TypedArray%": Qa,
|
|
686
|
+
"%TypeError%": ae,
|
|
686
687
|
"%Uint8Array%": typeof Uint8Array > "u" ? S : Uint8Array,
|
|
687
688
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? S : Uint8ClampedArray,
|
|
688
689
|
"%Uint16Array%": typeof Uint16Array > "u" ? S : Uint16Array,
|
|
689
690
|
"%Uint32Array%": typeof Uint32Array > "u" ? S : Uint32Array,
|
|
690
|
-
"%URIError%":
|
|
691
|
+
"%URIError%": Ba,
|
|
691
692
|
"%WeakMap%": typeof WeakMap > "u" ? S : WeakMap,
|
|
692
693
|
"%WeakRef%": typeof WeakRef > "u" ? S : WeakRef,
|
|
693
694
|
"%WeakSet%": typeof WeakSet > "u" ? S : WeakSet,
|
|
694
695
|
"%Function.prototype.call%": ve,
|
|
695
696
|
"%Function.prototype.apply%": Ot,
|
|
696
|
-
"%Object.defineProperty%":
|
|
697
|
-
"%Object.getPrototypeOf%":
|
|
698
|
-
"%Math.abs%":
|
|
699
|
-
"%Math.floor%":
|
|
700
|
-
"%Math.max%":
|
|
701
|
-
"%Math.min%":
|
|
702
|
-
"%Math.pow%":
|
|
703
|
-
"%Math.round%":
|
|
704
|
-
"%Math.sign%":
|
|
705
|
-
"%Reflect.getPrototypeOf%":
|
|
697
|
+
"%Object.defineProperty%": za,
|
|
698
|
+
"%Object.getPrototypeOf%": Ya,
|
|
699
|
+
"%Math.abs%": Ua,
|
|
700
|
+
"%Math.floor%": qa,
|
|
701
|
+
"%Math.max%": Wa,
|
|
702
|
+
"%Math.min%": ka,
|
|
703
|
+
"%Math.pow%": Ga,
|
|
704
|
+
"%Math.round%": ja,
|
|
705
|
+
"%Math.sign%": Va,
|
|
706
|
+
"%Reflect.getPrototypeOf%": Ka
|
|
706
707
|
};
|
|
707
708
|
if (R)
|
|
708
709
|
try {
|
|
709
710
|
null.error;
|
|
710
711
|
} catch (r) {
|
|
711
|
-
var
|
|
712
|
-
J["%Error.prototype%"] =
|
|
712
|
+
var Ja = R(R(r));
|
|
713
|
+
J["%Error.prototype%"] = Ja;
|
|
713
714
|
}
|
|
714
|
-
var
|
|
715
|
+
var Xa = function r(e) {
|
|
715
716
|
var t;
|
|
716
717
|
if (e === "%AsyncFunction%")
|
|
717
718
|
t = Xe("async function () {}");
|
|
@@ -723,8 +724,8 @@ var Zo = function r(e) {
|
|
|
723
724
|
var n = r("%AsyncGeneratorFunction%");
|
|
724
725
|
n && (t = n.prototype);
|
|
725
726
|
} else if (e === "%AsyncIteratorPrototype%") {
|
|
726
|
-
var
|
|
727
|
-
|
|
727
|
+
var a = r("%AsyncGenerator%");
|
|
728
|
+
a && R && (t = R(a.prototype));
|
|
728
729
|
}
|
|
729
730
|
return J[e] = t, t;
|
|
730
731
|
}, Zr = {
|
|
@@ -780,24 +781,24 @@ var Zo = function r(e) {
|
|
|
780
781
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
781
782
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
782
783
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
783
|
-
}, ge = Fe(), Te =
|
|
784
|
+
}, ge = Fe(), Te = Na(), Za = ge.call(ve, Array.prototype.concat), eo = ge.call(Ot, Array.prototype.splice), et = ge.call(ve, String.prototype.replace), _e = ge.call(ve, String.prototype.slice), ro = ge.call(ve, RegExp.prototype.exec), to = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, no = /\\(\\)?/g, ao = function(e) {
|
|
784
785
|
var t = _e(e, 0, 1), n = _e(e, -1);
|
|
785
786
|
if (t === "%" && n !== "%")
|
|
786
787
|
throw new le("invalid intrinsic syntax, expected closing `%`");
|
|
787
788
|
if (n === "%" && t !== "%")
|
|
788
789
|
throw new le("invalid intrinsic syntax, expected opening `%`");
|
|
789
|
-
var
|
|
790
|
-
return et(e,
|
|
791
|
-
|
|
792
|
-
}),
|
|
793
|
-
},
|
|
794
|
-
var n = e,
|
|
795
|
-
if (Te(Zr, n) && (
|
|
790
|
+
var a = [];
|
|
791
|
+
return et(e, to, function(i, c, l, f) {
|
|
792
|
+
a[a.length] = l ? et(f, no, "$1") : c || i;
|
|
793
|
+
}), a;
|
|
794
|
+
}, oo = function(e, t) {
|
|
795
|
+
var n = e, a;
|
|
796
|
+
if (Te(Zr, n) && (a = Zr[n], n = "%" + a[0] + "%"), Te(J, n)) {
|
|
796
797
|
var i = J[n];
|
|
797
|
-
if (i === ne && (i =
|
|
798
|
-
throw new
|
|
798
|
+
if (i === ne && (i = Xa(n)), typeof i > "u" && !t)
|
|
799
|
+
throw new ae("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
799
800
|
return {
|
|
800
|
-
alias:
|
|
801
|
+
alias: a,
|
|
801
802
|
name: n,
|
|
802
803
|
value: i
|
|
803
804
|
};
|
|
@@ -805,23 +806,23 @@ var Zo = function r(e) {
|
|
|
805
806
|
throw new le("intrinsic " + e + " does not exist!");
|
|
806
807
|
}, hr = function(e, t) {
|
|
807
808
|
if (typeof e != "string" || e.length === 0)
|
|
808
|
-
throw new
|
|
809
|
+
throw new ae("intrinsic name must be a non-empty string");
|
|
809
810
|
if (arguments.length > 1 && typeof t != "boolean")
|
|
810
|
-
throw new
|
|
811
|
-
if (
|
|
811
|
+
throw new ae('"allowMissing" argument must be a boolean');
|
|
812
|
+
if (ro(/^%?[^%]*%?$/, e) === null)
|
|
812
813
|
throw new le("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
813
|
-
var n =
|
|
814
|
-
u && (
|
|
814
|
+
var n = ao(e), a = n.length > 0 ? n[0] : "", i = oo("%" + a + "%", t), c = i.name, l = i.value, f = !1, u = i.alias;
|
|
815
|
+
u && (a = u[0], eo(n, Za([0, 1], u)));
|
|
815
816
|
for (var p = 1, y = !0; p < n.length; p += 1) {
|
|
816
817
|
var m = n[p], h = _e(m, 0, 1), v = _e(m, -1);
|
|
817
818
|
if ((h === '"' || h === "'" || h === "`" || v === '"' || v === "'" || v === "`") && h !== v)
|
|
818
819
|
throw new le("property names with quotes must have matching quotes");
|
|
819
|
-
if ((m === "constructor" || !y) && (f = !0),
|
|
820
|
+
if ((m === "constructor" || !y) && (f = !0), a += "." + m, c = "%" + a + "%", Te(J, c))
|
|
820
821
|
l = J[c];
|
|
821
822
|
else if (l != null) {
|
|
822
823
|
if (!(m in l)) {
|
|
823
824
|
if (!t)
|
|
824
|
-
throw new
|
|
825
|
+
throw new ae("base intrinsic for " + e + " exists, but the property is not available.");
|
|
825
826
|
return;
|
|
826
827
|
}
|
|
827
828
|
if (me && p + 1 >= n.length) {
|
|
@@ -833,71 +834,74 @@ var Zo = function r(e) {
|
|
|
833
834
|
}
|
|
834
835
|
}
|
|
835
836
|
return l;
|
|
836
|
-
}, Pt = hr, $t =
|
|
837
|
+
}, Pt = hr, $t = At, io = $t([Pt("%String.prototype.indexOf%")]), wt = function(e, t) {
|
|
837
838
|
var n = (
|
|
838
|
-
/** @type {
|
|
839
|
+
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
839
840
|
Pt(e, !!t)
|
|
840
841
|
);
|
|
841
|
-
return typeof n == "function" &&
|
|
842
|
-
|
|
842
|
+
return typeof n == "function" && io(e, ".prototype.") > -1 ? $t(
|
|
843
|
+
/** @type {const} */
|
|
844
|
+
[n]
|
|
845
|
+
) : n;
|
|
846
|
+
}, lo = hr, he = wt, uo = Ne, co = ce, rt = lo("%Map%", !0), fo = he("Map.prototype.get", !0), so = he("Map.prototype.set", !0), po = he("Map.prototype.has", !0), yo = he("Map.prototype.delete", !0), mo = he("Map.prototype.size", !0), Rt = !!rt && /** @type {Exclude<import('.'), false>} */
|
|
843
847
|
function() {
|
|
844
848
|
var e, t = {
|
|
845
849
|
assert: function(n) {
|
|
846
850
|
if (!t.has(n))
|
|
847
|
-
throw new
|
|
851
|
+
throw new co("Side channel does not contain " + uo(n));
|
|
848
852
|
},
|
|
849
853
|
delete: function(n) {
|
|
850
854
|
if (e) {
|
|
851
|
-
var
|
|
852
|
-
return
|
|
855
|
+
var a = yo(e, n);
|
|
856
|
+
return mo(e) === 0 && (e = void 0), a;
|
|
853
857
|
}
|
|
854
858
|
return !1;
|
|
855
859
|
},
|
|
856
860
|
get: function(n) {
|
|
857
861
|
if (e)
|
|
858
|
-
return
|
|
862
|
+
return fo(e, n);
|
|
859
863
|
},
|
|
860
864
|
has: function(n) {
|
|
861
|
-
return e ?
|
|
865
|
+
return e ? po(e, n) : !1;
|
|
862
866
|
},
|
|
863
|
-
set: function(n,
|
|
864
|
-
e || (e = new rt()),
|
|
867
|
+
set: function(n, a) {
|
|
868
|
+
e || (e = new rt()), so(e, n, a);
|
|
865
869
|
}
|
|
866
870
|
};
|
|
867
871
|
return t;
|
|
868
|
-
},
|
|
872
|
+
}, vo = hr, Me = wt, go = Ne, Oe = Rt, ho = ce, te = vo("%WeakMap%", !0), So = Me("WeakMap.prototype.get", !0), bo = Me("WeakMap.prototype.set", !0), Ao = Me("WeakMap.prototype.has", !0), Eo = Me("WeakMap.prototype.delete", !0), Oo = te ? (
|
|
869
873
|
/** @type {Exclude<import('.'), false>} */
|
|
870
874
|
function() {
|
|
871
875
|
var e, t, n = {
|
|
872
|
-
assert: function(
|
|
873
|
-
if (!n.has(
|
|
874
|
-
throw new
|
|
876
|
+
assert: function(a) {
|
|
877
|
+
if (!n.has(a))
|
|
878
|
+
throw new ho("Side channel does not contain " + go(a));
|
|
875
879
|
},
|
|
876
|
-
delete: function(
|
|
877
|
-
if (te &&
|
|
880
|
+
delete: function(a) {
|
|
881
|
+
if (te && a && (typeof a == "object" || typeof a == "function")) {
|
|
878
882
|
if (e)
|
|
879
|
-
return
|
|
883
|
+
return Eo(e, a);
|
|
880
884
|
} else if (Oe && t)
|
|
881
|
-
return t.delete(
|
|
885
|
+
return t.delete(a);
|
|
882
886
|
return !1;
|
|
883
887
|
},
|
|
884
|
-
get: function(
|
|
885
|
-
return te &&
|
|
888
|
+
get: function(a) {
|
|
889
|
+
return te && a && (typeof a == "object" || typeof a == "function") && e ? So(e, a) : t && t.get(a);
|
|
886
890
|
},
|
|
887
|
-
has: function(
|
|
888
|
-
return te &&
|
|
891
|
+
has: function(a) {
|
|
892
|
+
return te && a && (typeof a == "object" || typeof a == "function") && e ? Ao(e, a) : !!t && t.has(a);
|
|
889
893
|
},
|
|
890
|
-
set: function(
|
|
891
|
-
te &&
|
|
894
|
+
set: function(a, i) {
|
|
895
|
+
te && a && (typeof a == "object" || typeof a == "function") ? (e || (e = new te()), bo(e, a, i)) : Oe && (t || (t = Oe()), t.set(a, i));
|
|
892
896
|
}
|
|
893
897
|
};
|
|
894
898
|
return n;
|
|
895
899
|
}
|
|
896
|
-
) : Oe,
|
|
900
|
+
) : Oe, Po = ce, $o = Ne, wo = Zn, Ro = Rt, Co = Oo, To = Co || Ro || wo, _o = function() {
|
|
897
901
|
var e, t = {
|
|
898
902
|
assert: function(n) {
|
|
899
903
|
if (!t.has(n))
|
|
900
|
-
throw new
|
|
904
|
+
throw new Po("Side channel does not contain " + $o(n));
|
|
901
905
|
},
|
|
902
906
|
delete: function(n) {
|
|
903
907
|
return !!e && e.delete(n);
|
|
@@ -908,19 +912,19 @@ function() {
|
|
|
908
912
|
has: function(n) {
|
|
909
913
|
return !!e && e.has(n);
|
|
910
914
|
},
|
|
911
|
-
set: function(n,
|
|
912
|
-
e || (e =
|
|
915
|
+
set: function(n, a) {
|
|
916
|
+
e || (e = To()), e.set(n, a);
|
|
913
917
|
}
|
|
914
918
|
};
|
|
915
919
|
return t;
|
|
916
|
-
},
|
|
920
|
+
}, Io = String.prototype.replace, No = /%20/g, er = {
|
|
917
921
|
RFC1738: "RFC1738",
|
|
918
922
|
RFC3986: "RFC3986"
|
|
919
923
|
}, Sr = {
|
|
920
924
|
default: er.RFC3986,
|
|
921
925
|
formatters: {
|
|
922
926
|
RFC1738: function(r) {
|
|
923
|
-
return
|
|
927
|
+
return Io.call(r, No, "+");
|
|
924
928
|
},
|
|
925
929
|
RFC3986: function(r) {
|
|
926
930
|
return String(r);
|
|
@@ -928,24 +932,24 @@ function() {
|
|
|
928
932
|
},
|
|
929
933
|
RFC1738: er.RFC1738,
|
|
930
934
|
RFC3986: er.RFC3986
|
|
931
|
-
},
|
|
935
|
+
}, xo = Sr, rr = Object.prototype.hasOwnProperty, Q = Array.isArray, D = function() {
|
|
932
936
|
for (var r = [], e = 0; e < 256; ++e)
|
|
933
937
|
r.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
934
938
|
return r;
|
|
935
|
-
}(),
|
|
939
|
+
}(), Fo = function(e) {
|
|
936
940
|
for (; e.length > 1; ) {
|
|
937
941
|
var t = e.pop(), n = t.obj[t.prop];
|
|
938
942
|
if (Q(n)) {
|
|
939
|
-
for (var
|
|
940
|
-
typeof n[i] < "u" &&
|
|
941
|
-
t.obj[t.prop] =
|
|
943
|
+
for (var a = [], i = 0; i < n.length; ++i)
|
|
944
|
+
typeof n[i] < "u" && a.push(n[i]);
|
|
945
|
+
t.obj[t.prop] = a;
|
|
942
946
|
}
|
|
943
947
|
}
|
|
944
948
|
}, Ct = function(e, t) {
|
|
945
|
-
for (var n = t && t.plainObjects ? /* @__PURE__ */ Object.create(null) : {},
|
|
946
|
-
typeof e[
|
|
949
|
+
for (var n = t && t.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, a = 0; a < e.length; ++a)
|
|
950
|
+
typeof e[a] < "u" && (n[a] = e[a]);
|
|
947
951
|
return n;
|
|
948
|
-
},
|
|
952
|
+
}, Mo = function r(e, t, n) {
|
|
949
953
|
if (!t)
|
|
950
954
|
return e;
|
|
951
955
|
if (typeof t != "object") {
|
|
@@ -959,8 +963,8 @@ function() {
|
|
|
959
963
|
}
|
|
960
964
|
if (!e || typeof e != "object")
|
|
961
965
|
return [e].concat(t);
|
|
962
|
-
var
|
|
963
|
-
return Q(e) && !Q(t) && (
|
|
966
|
+
var a = e;
|
|
967
|
+
return Q(e) && !Q(t) && (a = Ct(e, n)), Q(e) && Q(t) ? (t.forEach(function(i, c) {
|
|
964
968
|
if (rr.call(e, c)) {
|
|
965
969
|
var l = e[c];
|
|
966
970
|
l && typeof l == "object" && i && typeof i == "object" ? e[c] = r(l, i, n) : e.push(i);
|
|
@@ -969,12 +973,12 @@ function() {
|
|
|
969
973
|
}), e) : Object.keys(t).reduce(function(i, c) {
|
|
970
974
|
var l = t[c];
|
|
971
975
|
return rr.call(i, c) ? i[c] = r(i[c], l, n) : i[c] = l, i;
|
|
972
|
-
},
|
|
973
|
-
},
|
|
974
|
-
return Object.keys(t).reduce(function(n,
|
|
975
|
-
return n[
|
|
976
|
+
}, a);
|
|
977
|
+
}, Do = function(e, t) {
|
|
978
|
+
return Object.keys(t).reduce(function(n, a) {
|
|
979
|
+
return n[a] = t[a], n;
|
|
976
980
|
}, e);
|
|
977
|
-
},
|
|
981
|
+
}, Lo = function(r, e, t) {
|
|
978
982
|
var n = r.replace(/\+/g, " ");
|
|
979
983
|
if (t === "iso-8859-1")
|
|
980
984
|
return n.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
@@ -983,7 +987,7 @@ function() {
|
|
|
983
987
|
} catch {
|
|
984
988
|
return n;
|
|
985
989
|
}
|
|
986
|
-
},
|
|
990
|
+
}, Bo = function(e, t, n, a, i) {
|
|
987
991
|
if (e.length === 0)
|
|
988
992
|
return e;
|
|
989
993
|
var c = e;
|
|
@@ -993,7 +997,7 @@ function() {
|
|
|
993
997
|
});
|
|
994
998
|
for (var l = "", f = 0; f < c.length; ++f) {
|
|
995
999
|
var u = c.charCodeAt(f);
|
|
996
|
-
if (u === 45 || u === 46 || u === 95 || u === 126 || u >= 48 && u <= 57 || u >= 65 && u <= 90 || u >= 97 && u <= 122 || i ===
|
|
1000
|
+
if (u === 45 || u === 46 || u === 95 || u === 126 || u >= 48 && u <= 57 || u >= 65 && u <= 90 || u >= 97 && u <= 122 || i === xo.RFC1738 && (u === 40 || u === 41)) {
|
|
997
1001
|
l += c.charAt(f);
|
|
998
1002
|
continue;
|
|
999
1003
|
}
|
|
@@ -1012,38 +1016,38 @@ function() {
|
|
|
1012
1016
|
f += 1, u = 65536 + ((u & 1023) << 10 | c.charCodeAt(f) & 1023), l += D[240 | u >> 18] + D[128 | u >> 12 & 63] + D[128 | u >> 6 & 63] + D[128 | u & 63];
|
|
1013
1017
|
}
|
|
1014
1018
|
return l;
|
|
1015
|
-
},
|
|
1016
|
-
for (var t = [{ obj: { o: e }, prop: "o" }], n = [],
|
|
1017
|
-
for (var i = t[
|
|
1019
|
+
}, Uo = function(e) {
|
|
1020
|
+
for (var t = [{ obj: { o: e }, prop: "o" }], n = [], a = 0; a < t.length; ++a)
|
|
1021
|
+
for (var i = t[a], c = i.obj[i.prop], l = Object.keys(c), f = 0; f < l.length; ++f) {
|
|
1018
1022
|
var u = l[f], p = c[u];
|
|
1019
1023
|
typeof p == "object" && p !== null && n.indexOf(p) === -1 && (t.push({ obj: c, prop: u }), n.push(p));
|
|
1020
1024
|
}
|
|
1021
|
-
return
|
|
1022
|
-
},
|
|
1025
|
+
return Fo(t), e;
|
|
1026
|
+
}, qo = function(e) {
|
|
1023
1027
|
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
1024
|
-
},
|
|
1028
|
+
}, Wo = function(e) {
|
|
1025
1029
|
return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
|
|
1026
|
-
},
|
|
1030
|
+
}, ko = function(e, t) {
|
|
1027
1031
|
return [].concat(e, t);
|
|
1028
|
-
},
|
|
1032
|
+
}, Go = function(e, t) {
|
|
1029
1033
|
if (Q(e)) {
|
|
1030
|
-
for (var n = [],
|
|
1031
|
-
n.push(t(e[
|
|
1034
|
+
for (var n = [], a = 0; a < e.length; a += 1)
|
|
1035
|
+
n.push(t(e[a]));
|
|
1032
1036
|
return n;
|
|
1033
1037
|
}
|
|
1034
1038
|
return t(e);
|
|
1035
1039
|
}, Tt = {
|
|
1036
1040
|
arrayToObject: Ct,
|
|
1037
|
-
assign:
|
|
1038
|
-
combine:
|
|
1039
|
-
compact:
|
|
1040
|
-
decode:
|
|
1041
|
-
encode:
|
|
1042
|
-
isBuffer:
|
|
1043
|
-
isRegExp:
|
|
1044
|
-
maybeMap:
|
|
1045
|
-
merge:
|
|
1046
|
-
}, _t =
|
|
1041
|
+
assign: Do,
|
|
1042
|
+
combine: ko,
|
|
1043
|
+
compact: Uo,
|
|
1044
|
+
decode: Lo,
|
|
1045
|
+
encode: Bo,
|
|
1046
|
+
isBuffer: Wo,
|
|
1047
|
+
isRegExp: qo,
|
|
1048
|
+
maybeMap: Go,
|
|
1049
|
+
merge: Mo
|
|
1050
|
+
}, _t = _o, we = Tt, de = Sr, jo = Object.prototype.hasOwnProperty, tt = {
|
|
1047
1051
|
brackets: function(e) {
|
|
1048
1052
|
return e + "[]";
|
|
1049
1053
|
},
|
|
@@ -1054,9 +1058,9 @@ function() {
|
|
|
1054
1058
|
repeat: function(e) {
|
|
1055
1059
|
return e;
|
|
1056
1060
|
}
|
|
1057
|
-
}, q = Array.isArray,
|
|
1058
|
-
|
|
1059
|
-
},
|
|
1061
|
+
}, q = Array.isArray, Vo = Array.prototype.push, It = function(r, e) {
|
|
1062
|
+
Vo.apply(r, q(e) ? e : [e]);
|
|
1063
|
+
}, zo = Date.prototype.toISOString, nt = de.default, T = {
|
|
1060
1064
|
addQueryPrefix: !1,
|
|
1061
1065
|
allowDots: !1,
|
|
1062
1066
|
charset: "utf-8",
|
|
@@ -1070,13 +1074,13 @@ function() {
|
|
|
1070
1074
|
// deprecated
|
|
1071
1075
|
indices: !1,
|
|
1072
1076
|
serializeDate: function(e) {
|
|
1073
|
-
return
|
|
1077
|
+
return zo.call(e);
|
|
1074
1078
|
},
|
|
1075
1079
|
skipNulls: !1,
|
|
1076
1080
|
strictNullHandling: !1
|
|
1077
|
-
},
|
|
1081
|
+
}, Ho = function(e) {
|
|
1078
1082
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
1079
|
-
}, tr = {},
|
|
1083
|
+
}, tr = {}, Yo = function r(e, t, n, a, i, c, l, f, u, p, y, m, h, v, P, C) {
|
|
1080
1084
|
for (var g = e, I = C, O = 0, $ = !1; (I = I.get(tr)) !== void 0 && !$; ) {
|
|
1081
1085
|
var s = I.get(e);
|
|
1082
1086
|
if (O += 1, typeof s < "u") {
|
|
@@ -1093,7 +1097,7 @@ function() {
|
|
|
1093
1097
|
return l && !v ? l(t, T.encoder, P, "key", m) : t;
|
|
1094
1098
|
g = "";
|
|
1095
1099
|
}
|
|
1096
|
-
if (
|
|
1100
|
+
if (Ho(g) || we.isBuffer(g)) {
|
|
1097
1101
|
if (l) {
|
|
1098
1102
|
var F = v ? t : l(t, T.encoder, P, "key", m);
|
|
1099
1103
|
return [h(F) + "=" + h(l(g, T.encoder, P, "value", m))];
|
|
@@ -1112,7 +1116,7 @@ function() {
|
|
|
1112
1116
|
var W = Object.keys(g);
|
|
1113
1117
|
M = u ? W.sort(u) : W;
|
|
1114
1118
|
}
|
|
1115
|
-
for (var k =
|
|
1119
|
+
for (var k = a && q(g) && g.length === 1 ? t + "[]" : t, K = 0; K < M.length; ++K) {
|
|
1116
1120
|
var N = M[K], x = typeof N == "object" && typeof N.value < "u" ? N.value : g[N];
|
|
1117
1121
|
if (!(c && x === null)) {
|
|
1118
1122
|
var G = q(g) ? typeof n == "function" ? n(k, N) : k : k + (p ? "." + N : "[" + N + "]");
|
|
@@ -1122,7 +1126,7 @@ function() {
|
|
|
1122
1126
|
x,
|
|
1123
1127
|
G,
|
|
1124
1128
|
n,
|
|
1125
|
-
|
|
1129
|
+
a,
|
|
1126
1130
|
i,
|
|
1127
1131
|
c,
|
|
1128
1132
|
n === "comma" && v && q(g) ? null : l,
|
|
@@ -1139,7 +1143,7 @@ function() {
|
|
|
1139
1143
|
}
|
|
1140
1144
|
}
|
|
1141
1145
|
return B;
|
|
1142
|
-
},
|
|
1146
|
+
}, Ko = function(e) {
|
|
1143
1147
|
if (!e)
|
|
1144
1148
|
return T;
|
|
1145
1149
|
if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
|
|
@@ -1149,11 +1153,11 @@ function() {
|
|
|
1149
1153
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
1150
1154
|
var n = de.default;
|
|
1151
1155
|
if (typeof e.format < "u") {
|
|
1152
|
-
if (!
|
|
1156
|
+
if (!jo.call(de.formatters, e.format))
|
|
1153
1157
|
throw new TypeError("Unknown format option provided.");
|
|
1154
1158
|
n = e.format;
|
|
1155
1159
|
}
|
|
1156
|
-
var
|
|
1160
|
+
var a = de.formatters[n], i = T.filter;
|
|
1157
1161
|
return (typeof e.filter == "function" || q(e.filter)) && (i = e.filter), {
|
|
1158
1162
|
addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : T.addQueryPrefix,
|
|
1159
1163
|
allowDots: typeof e.allowDots > "u" ? T.allowDots : !!e.allowDots,
|
|
@@ -1165,15 +1169,15 @@ function() {
|
|
|
1165
1169
|
encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : T.encodeValuesOnly,
|
|
1166
1170
|
filter: i,
|
|
1167
1171
|
format: n,
|
|
1168
|
-
formatter:
|
|
1172
|
+
formatter: a,
|
|
1169
1173
|
serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : T.serializeDate,
|
|
1170
1174
|
skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : T.skipNulls,
|
|
1171
1175
|
sort: typeof e.sort == "function" ? e.sort : null,
|
|
1172
1176
|
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : T.strictNullHandling
|
|
1173
1177
|
};
|
|
1174
|
-
},
|
|
1175
|
-
var t = r, n =
|
|
1176
|
-
typeof n.filter == "function" ? (i = n.filter, t = i("", t)) : q(n.filter) && (i = n.filter,
|
|
1178
|
+
}, Qo = function(r, e) {
|
|
1179
|
+
var t = r, n = Ko(e), a, i;
|
|
1180
|
+
typeof n.filter == "function" ? (i = n.filter, t = i("", t)) : q(n.filter) && (i = n.filter, a = i);
|
|
1177
1181
|
var c = [];
|
|
1178
1182
|
if (typeof t != "object" || t === null)
|
|
1179
1183
|
return "";
|
|
@@ -1183,10 +1187,10 @@ function() {
|
|
|
1183
1187
|
if (e && "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
|
|
1184
1188
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
1185
1189
|
var u = f === "comma" && e && e.commaRoundTrip;
|
|
1186
|
-
|
|
1187
|
-
for (var p = _t(), y = 0; y <
|
|
1188
|
-
var m =
|
|
1189
|
-
n.skipNulls && t[m] === null || It(c,
|
|
1190
|
+
a || (a = Object.keys(t)), n.sort && a.sort(n.sort);
|
|
1191
|
+
for (var p = _t(), y = 0; y < a.length; ++y) {
|
|
1192
|
+
var m = a[y];
|
|
1193
|
+
n.skipNulls && t[m] === null || It(c, Yo(
|
|
1190
1194
|
t[m],
|
|
1191
1195
|
m,
|
|
1192
1196
|
f,
|
|
@@ -1207,7 +1211,7 @@ function() {
|
|
|
1207
1211
|
}
|
|
1208
1212
|
var h = c.join(n.delimiter), v = n.addQueryPrefix === !0 ? "?" : "";
|
|
1209
1213
|
return n.charsetSentinel && (n.charset === "iso-8859-1" ? v += "utf8=%26%2310003%3B&" : v += "utf8=%E2%9C%93&"), h.length > 0 ? v + h : "";
|
|
1210
|
-
}, ue = Tt, cr = Object.prototype.hasOwnProperty,
|
|
1214
|
+
}, ue = Tt, cr = Object.prototype.hasOwnProperty, Jo = Array.isArray, w = {
|
|
1211
1215
|
allowDots: !1,
|
|
1212
1216
|
allowPrototypes: !1,
|
|
1213
1217
|
allowSparse: !1,
|
|
@@ -1224,17 +1228,17 @@ function() {
|
|
|
1224
1228
|
parseArrays: !0,
|
|
1225
1229
|
plainObjects: !1,
|
|
1226
1230
|
strictNullHandling: !1
|
|
1227
|
-
},
|
|
1231
|
+
}, Xo = function(r) {
|
|
1228
1232
|
return r.replace(/&#(\d+);/g, function(e, t) {
|
|
1229
1233
|
return String.fromCharCode(parseInt(t, 10));
|
|
1230
1234
|
});
|
|
1231
1235
|
}, Nt = function(r, e) {
|
|
1232
1236
|
return r && typeof r == "string" && e.comma && r.indexOf(",") > -1 ? r.split(",") : r;
|
|
1233
|
-
},
|
|
1234
|
-
var n = {},
|
|
1237
|
+
}, Zo = "utf8=%26%2310003%3B", ei = "utf8=%E2%9C%93", ri = function(e, t) {
|
|
1238
|
+
var n = {}, a = t.ignoreQueryPrefix ? e.replace(/^\?/, "") : e, i = t.parameterLimit === 1 / 0 ? void 0 : t.parameterLimit, c = a.split(t.delimiter, i), l = -1, f, u = t.charset;
|
|
1235
1239
|
if (t.charsetSentinel)
|
|
1236
1240
|
for (f = 0; f < c.length; ++f)
|
|
1237
|
-
c[f].indexOf("utf8=") === 0 && (c[f] === ei ? u = "utf-8" : c[f] ===
|
|
1241
|
+
c[f].indexOf("utf8=") === 0 && (c[f] === ei ? u = "utf-8" : c[f] === Zo && (u = "iso-8859-1"), l = f, f = c.length);
|
|
1238
1242
|
for (f = 0; f < c.length; ++f)
|
|
1239
1243
|
if (f !== l) {
|
|
1240
1244
|
var p = c[f], y = p.indexOf("]="), m = y === -1 ? p.indexOf("=") : y + 1, h, v;
|
|
@@ -1243,23 +1247,23 @@ function() {
|
|
|
1243
1247
|
function(P) {
|
|
1244
1248
|
return t.decoder(P, w.decoder, u, "value");
|
|
1245
1249
|
}
|
|
1246
|
-
)), v && t.interpretNumericEntities && u === "iso-8859-1" && (v =
|
|
1250
|
+
)), v && t.interpretNumericEntities && u === "iso-8859-1" && (v = Xo(v)), p.indexOf("[]=") > -1 && (v = Jo(v) ? [v] : v), cr.call(n, h) ? n[h] = ue.combine(n[h], v) : n[h] = v;
|
|
1247
1251
|
}
|
|
1248
1252
|
return n;
|
|
1249
1253
|
}, ti = function(r, e, t, n) {
|
|
1250
|
-
for (var
|
|
1254
|
+
for (var a = n ? e : Nt(e, t), i = r.length - 1; i >= 0; --i) {
|
|
1251
1255
|
var c, l = r[i];
|
|
1252
1256
|
if (l === "[]" && t.parseArrays)
|
|
1253
|
-
c = [].concat(
|
|
1257
|
+
c = [].concat(a);
|
|
1254
1258
|
else {
|
|
1255
1259
|
c = t.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
1256
1260
|
var f = l.charAt(0) === "[" && l.charAt(l.length - 1) === "]" ? l.slice(1, -1) : l, u = parseInt(f, 10);
|
|
1257
|
-
!t.parseArrays && f === "" ? c = { 0:
|
|
1261
|
+
!t.parseArrays && f === "" ? c = { 0: a } : !isNaN(u) && l !== f && String(u) === f && u >= 0 && t.parseArrays && u <= t.arrayLimit ? (c = [], c[u] = a) : f !== "__proto__" && (c[f] = a);
|
|
1258
1262
|
}
|
|
1259
|
-
|
|
1263
|
+
a = c;
|
|
1260
1264
|
}
|
|
1261
|
-
return
|
|
1262
|
-
}, ni = function(e, t, n,
|
|
1265
|
+
return a;
|
|
1266
|
+
}, ni = function(e, t, n, a) {
|
|
1263
1267
|
if (e) {
|
|
1264
1268
|
var i = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, c = /(\[[^[\]]*])/, l = /(\[[^[\]]*])/g, f = n.depth > 0 && c.exec(i), u = f ? i.slice(0, f.index) : i, p = [];
|
|
1265
1269
|
if (u) {
|
|
@@ -1272,9 +1276,9 @@ function() {
|
|
|
1272
1276
|
return;
|
|
1273
1277
|
p.push(f[1]);
|
|
1274
1278
|
}
|
|
1275
|
-
return f && p.push("[" + i.slice(f.index) + "]"), ti(p, t, n,
|
|
1279
|
+
return f && p.push("[" + i.slice(f.index) + "]"), ti(p, t, n, a);
|
|
1276
1280
|
}
|
|
1277
|
-
},
|
|
1281
|
+
}, ai = function(e) {
|
|
1278
1282
|
if (!e)
|
|
1279
1283
|
return w;
|
|
1280
1284
|
if (e.decoder !== null && e.decoder !== void 0 && typeof e.decoder != "function")
|
|
@@ -1301,16 +1305,16 @@ function() {
|
|
|
1301
1305
|
plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : w.plainObjects,
|
|
1302
1306
|
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : w.strictNullHandling
|
|
1303
1307
|
};
|
|
1304
|
-
},
|
|
1305
|
-
var t =
|
|
1308
|
+
}, oi = function(r, e) {
|
|
1309
|
+
var t = ai(e);
|
|
1306
1310
|
if (r === "" || r === null || typeof r > "u")
|
|
1307
1311
|
return t.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
1308
|
-
for (var n = typeof r == "string" ? ri(r, t) : r,
|
|
1312
|
+
for (var n = typeof r == "string" ? ri(r, t) : r, a = t.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, i = Object.keys(n), c = 0; c < i.length; ++c) {
|
|
1309
1313
|
var l = i[c], f = ni(l, n[l], t, typeof r == "string");
|
|
1310
|
-
|
|
1314
|
+
a = ue.merge(a, f, t);
|
|
1311
1315
|
}
|
|
1312
|
-
return t.allowSparse === !0 ?
|
|
1313
|
-
}, ii =
|
|
1316
|
+
return t.allowSparse === !0 ? a : ue.compact(a);
|
|
1317
|
+
}, ii = Qo, li = oi, ui = Sr, nr = {
|
|
1314
1318
|
formats: ui,
|
|
1315
1319
|
parse: li,
|
|
1316
1320
|
stringify: ii
|
|
@@ -1333,208 +1337,208 @@ const z = {
|
|
|
1333
1337
|
REMOVED: "REMOVED",
|
|
1334
1338
|
TO_REVIEW: "TO_REVIEW",
|
|
1335
1339
|
UNKNOWN: "UNKNOWN"
|
|
1336
|
-
}, fi =
|
|
1337
|
-
entryLabel:
|
|
1338
|
-
approvalFlow:
|
|
1339
|
-
blockedAuthorProps:
|
|
1340
|
-
reportReasons:
|
|
1341
|
-
BAD_LANGUAGE:
|
|
1342
|
-
DISCRIMINATION:
|
|
1343
|
-
OTHER:
|
|
1340
|
+
}, fi = o.object({
|
|
1341
|
+
entryLabel: o.record(o.array(o.string())),
|
|
1342
|
+
approvalFlow: o.array(o.string()),
|
|
1343
|
+
blockedAuthorProps: o.array(o.string()),
|
|
1344
|
+
reportReasons: o.object({
|
|
1345
|
+
BAD_LANGUAGE: o.literal("BAD_LANGUAGE"),
|
|
1346
|
+
DISCRIMINATION: o.literal("DISCRIMINATION"),
|
|
1347
|
+
OTHER: o.literal("OTHER")
|
|
1344
1348
|
}),
|
|
1345
|
-
regex:
|
|
1346
|
-
uid:
|
|
1347
|
-
relatedUid:
|
|
1348
|
-
email:
|
|
1349
|
-
sorting:
|
|
1349
|
+
regex: o.object({
|
|
1350
|
+
uid: o.string(),
|
|
1351
|
+
relatedUid: o.string(),
|
|
1352
|
+
email: o.string(),
|
|
1353
|
+
sorting: o.string()
|
|
1350
1354
|
}),
|
|
1351
|
-
enabledCollections:
|
|
1352
|
-
moderatorRoles:
|
|
1353
|
-
isGQLPluginEnabled:
|
|
1354
|
-
badWords:
|
|
1355
|
-
gql:
|
|
1356
|
-
auth:
|
|
1355
|
+
enabledCollections: o.array(o.string()),
|
|
1356
|
+
moderatorRoles: o.array(o.string()),
|
|
1357
|
+
isGQLPluginEnabled: o.boolean(),
|
|
1358
|
+
badWords: o.boolean().nullable().optional(),
|
|
1359
|
+
gql: o.object({
|
|
1360
|
+
auth: o.boolean().nullable()
|
|
1357
1361
|
}).optional(),
|
|
1358
|
-
client:
|
|
1359
|
-
url:
|
|
1360
|
-
contactEmail:
|
|
1362
|
+
client: o.object({
|
|
1363
|
+
url: o.string().nullable(),
|
|
1364
|
+
contactEmail: o.string().nullable()
|
|
1361
1365
|
}).default({ url: null, contactEmail: null })
|
|
1362
|
-
}), Ft =
|
|
1363
|
-
|
|
1364
|
-
id:
|
|
1365
|
-
uid:
|
|
1366
|
-
documentId:
|
|
1367
|
-
createdAt:
|
|
1368
|
-
updatedAt:
|
|
1369
|
-
publishedAt:
|
|
1370
|
-
locale:
|
|
1366
|
+
}), Ft = o.intersection(
|
|
1367
|
+
o.object({
|
|
1368
|
+
id: o.number(),
|
|
1369
|
+
uid: o.string(),
|
|
1370
|
+
documentId: o.string(),
|
|
1371
|
+
createdAt: o.string(),
|
|
1372
|
+
updatedAt: o.string(),
|
|
1373
|
+
publishedAt: o.string().nullable(),
|
|
1374
|
+
locale: o.string().nullable().optional()
|
|
1371
1375
|
}),
|
|
1372
|
-
|
|
1373
|
-
), si =
|
|
1374
|
-
id:
|
|
1375
|
-
name:
|
|
1376
|
-
email:
|
|
1377
|
-
avatar:
|
|
1378
|
-
|
|
1379
|
-
url:
|
|
1376
|
+
o.record(o.unknown())
|
|
1377
|
+
), si = o.object({
|
|
1378
|
+
id: o.union([o.number(), o.string()]),
|
|
1379
|
+
name: o.string().optional().nullable(),
|
|
1380
|
+
email: o.string(),
|
|
1381
|
+
avatar: o.union([
|
|
1382
|
+
o.object({
|
|
1383
|
+
url: o.string()
|
|
1380
1384
|
}),
|
|
1381
|
-
|
|
1382
|
-
url:
|
|
1383
|
-
formats:
|
|
1384
|
-
thumbnail:
|
|
1385
|
-
url:
|
|
1385
|
+
o.object({
|
|
1386
|
+
url: o.string(),
|
|
1387
|
+
formats: o.object({
|
|
1388
|
+
thumbnail: o.object({
|
|
1389
|
+
url: o.string()
|
|
1386
1390
|
}).nullable()
|
|
1387
1391
|
})
|
|
1388
1392
|
}),
|
|
1389
|
-
|
|
1393
|
+
o.string()
|
|
1390
1394
|
]).nullable().optional()
|
|
1391
|
-
}), Mt =
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
]), Dt =
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
]), pi =
|
|
1405
|
-
id:
|
|
1395
|
+
}), Mt = o.union([
|
|
1396
|
+
o.literal(z.PENDING),
|
|
1397
|
+
o.literal(z.APPROVED),
|
|
1398
|
+
o.literal(z.REJECTED),
|
|
1399
|
+
o.literal(z.BLOCKED),
|
|
1400
|
+
o.literal(z.OPEN),
|
|
1401
|
+
o.literal(z.REMOVED),
|
|
1402
|
+
o.literal(z.TO_REVIEW),
|
|
1403
|
+
o.literal(z.UNKNOWN)
|
|
1404
|
+
]), Dt = o.union([
|
|
1405
|
+
o.literal("BAD_LANGUAGE"),
|
|
1406
|
+
o.literal("DISCRIMINATION"),
|
|
1407
|
+
o.literal("OTHER")
|
|
1408
|
+
]), pi = o.object({
|
|
1409
|
+
id: o.number(),
|
|
1406
1410
|
reason: Dt,
|
|
1407
|
-
content:
|
|
1408
|
-
resolved:
|
|
1409
|
-
createdAt:
|
|
1410
|
-
updatedAt:
|
|
1411
|
-
}), Ie =
|
|
1412
|
-
id:
|
|
1413
|
-
content:
|
|
1414
|
-
blocked:
|
|
1415
|
-
blockedThread:
|
|
1416
|
-
blockReason:
|
|
1417
|
-
isAdminComment:
|
|
1418
|
-
removed:
|
|
1411
|
+
content: o.string(),
|
|
1412
|
+
resolved: o.boolean(),
|
|
1413
|
+
createdAt: o.string(),
|
|
1414
|
+
updatedAt: o.string().nullable()
|
|
1415
|
+
}), Ie = o.object({
|
|
1416
|
+
id: o.number(),
|
|
1417
|
+
content: o.string(),
|
|
1418
|
+
blocked: o.boolean().nullable(),
|
|
1419
|
+
blockedThread: o.boolean().nullable(),
|
|
1420
|
+
blockReason: o.string().nullable(),
|
|
1421
|
+
isAdminComment: o.boolean().nullable(),
|
|
1422
|
+
removed: o.boolean().nullable(),
|
|
1419
1423
|
approvalStatus: Mt.nullable(),
|
|
1420
|
-
createdAt:
|
|
1421
|
-
updatedAt:
|
|
1422
|
-
reports:
|
|
1424
|
+
createdAt: o.string(),
|
|
1425
|
+
updatedAt: o.string(),
|
|
1426
|
+
reports: o.array(pi).nullable().optional(),
|
|
1423
1427
|
author: si,
|
|
1424
|
-
gotThread:
|
|
1425
|
-
threadFirstItemId:
|
|
1426
|
-
}), Lt =
|
|
1427
|
-
page:
|
|
1428
|
-
pageSize:
|
|
1429
|
-
pageCount:
|
|
1430
|
-
total:
|
|
1428
|
+
gotThread: o.boolean().nullable().optional(),
|
|
1429
|
+
threadFirstItemId: o.number().nullable().optional()
|
|
1430
|
+
}), Lt = o.object({
|
|
1431
|
+
page: o.number(),
|
|
1432
|
+
pageSize: o.number(),
|
|
1433
|
+
pageCount: o.number(),
|
|
1434
|
+
total: o.number()
|
|
1431
1435
|
});
|
|
1432
1436
|
function fr() {
|
|
1433
1437
|
return Ie.extend({
|
|
1434
|
-
related: Ft,
|
|
1435
|
-
documentId:
|
|
1436
|
-
threadOf:
|
|
1437
|
-
() => Ie.merge(
|
|
1438
|
+
related: Ft.optional(),
|
|
1439
|
+
documentId: o.string(),
|
|
1440
|
+
threadOf: o.lazy(
|
|
1441
|
+
() => Ie.merge(o.object({ related: o.string(), threadOf: Bt.nullable().optional(), documentId: o.string().optional() }))
|
|
1438
1442
|
).nullable().optional()
|
|
1439
1443
|
});
|
|
1440
1444
|
}
|
|
1441
|
-
const Bt = fr(), yi =
|
|
1445
|
+
const Bt = fr(), yi = o.object({
|
|
1442
1446
|
pagination: Lt,
|
|
1443
|
-
result:
|
|
1444
|
-
}), di =
|
|
1447
|
+
result: o.array(Bt)
|
|
1448
|
+
}), di = o.object({
|
|
1445
1449
|
entity: Ft,
|
|
1446
1450
|
selected: Ie.merge(
|
|
1447
|
-
|
|
1448
|
-
related:
|
|
1449
|
-
threadOf: fr().omit({ related: !0 }).merge(
|
|
1451
|
+
o.object({
|
|
1452
|
+
related: o.string(),
|
|
1453
|
+
threadOf: fr().omit({ related: !0 }).merge(o.object({ related: o.string() })).nullable().optional()
|
|
1450
1454
|
})
|
|
1451
1455
|
).nullable(),
|
|
1452
|
-
level:
|
|
1453
|
-
}), Ut =
|
|
1454
|
-
apiID:
|
|
1455
|
-
uid:
|
|
1456
|
-
schema:
|
|
1457
|
-
attributes:
|
|
1458
|
-
collectionName:
|
|
1459
|
-
description:
|
|
1460
|
-
displayName:
|
|
1461
|
-
draftAndPublish:
|
|
1462
|
-
kind:
|
|
1463
|
-
pluralName:
|
|
1464
|
-
singularName:
|
|
1465
|
-
visible:
|
|
1456
|
+
level: o.array(fr().omit({ threadOf: !0, related: !0 }))
|
|
1457
|
+
}), Ut = o.object({
|
|
1458
|
+
apiID: o.string(),
|
|
1459
|
+
uid: o.string(),
|
|
1460
|
+
schema: o.object({
|
|
1461
|
+
attributes: o.record(o.object({ type: o.union([o.literal("string"), o.string()]) })),
|
|
1462
|
+
collectionName: o.string(),
|
|
1463
|
+
description: o.string(),
|
|
1464
|
+
displayName: o.string(),
|
|
1465
|
+
draftAndPublish: o.boolean(),
|
|
1466
|
+
kind: o.string(),
|
|
1467
|
+
pluralName: o.string(),
|
|
1468
|
+
singularName: o.string(),
|
|
1469
|
+
visible: o.boolean()
|
|
1466
1470
|
})
|
|
1467
|
-
}), mi =
|
|
1471
|
+
}), mi = o.object({
|
|
1468
1472
|
data: Ut
|
|
1469
|
-
}), vi =
|
|
1470
|
-
data:
|
|
1471
|
-
}), gi =
|
|
1472
|
-
author:
|
|
1473
|
-
content:
|
|
1474
|
-
id:
|
|
1473
|
+
}), vi = o.object({
|
|
1474
|
+
data: o.array(Ut)
|
|
1475
|
+
}), gi = o.object({
|
|
1476
|
+
author: o.unknown(),
|
|
1477
|
+
content: o.string(),
|
|
1478
|
+
id: o.number(),
|
|
1475
1479
|
approvalStatus: Mt.nullable().optional(),
|
|
1476
1480
|
reason: Dt,
|
|
1477
|
-
reports:
|
|
1478
|
-
resolved:
|
|
1479
|
-
updatedAt:
|
|
1480
|
-
createdAt:
|
|
1481
|
+
reports: o.array(o.unknown()),
|
|
1482
|
+
resolved: o.boolean().optional(),
|
|
1483
|
+
updatedAt: o.string().nullable(),
|
|
1484
|
+
createdAt: o.string(),
|
|
1481
1485
|
related: Ie
|
|
1482
|
-
}), hi =
|
|
1486
|
+
}), hi = o.object({
|
|
1483
1487
|
pagination: Lt,
|
|
1484
|
-
result:
|
|
1485
|
-
}), Si =
|
|
1486
|
-
id:
|
|
1487
|
-
documentId:
|
|
1488
|
-
name:
|
|
1489
|
-
code:
|
|
1490
|
-
description:
|
|
1491
|
-
createdAt:
|
|
1492
|
-
updatedAt:
|
|
1493
|
-
publishedAt:
|
|
1494
|
-
locale:
|
|
1495
|
-
usersCount:
|
|
1496
|
-
}), bi =
|
|
1497
|
-
data:
|
|
1488
|
+
result: o.array(gi)
|
|
1489
|
+
}), Si = o.object({
|
|
1490
|
+
id: o.number(),
|
|
1491
|
+
documentId: o.string(),
|
|
1492
|
+
name: o.string(),
|
|
1493
|
+
code: o.string(),
|
|
1494
|
+
description: o.string(),
|
|
1495
|
+
createdAt: o.string(),
|
|
1496
|
+
updatedAt: o.string(),
|
|
1497
|
+
publishedAt: o.string(),
|
|
1498
|
+
locale: o.string().nullable(),
|
|
1499
|
+
usersCount: o.number()
|
|
1500
|
+
}), bi = o.object({
|
|
1501
|
+
data: o.array(
|
|
1498
1502
|
Si
|
|
1499
1503
|
)
|
|
1500
|
-
}),
|
|
1501
|
-
data:
|
|
1502
|
-
id:
|
|
1503
|
-
documentId:
|
|
1504
|
-
firstname:
|
|
1505
|
-
lastname:
|
|
1506
|
-
username:
|
|
1507
|
-
email:
|
|
1508
|
-
isActive:
|
|
1509
|
-
blocked:
|
|
1510
|
-
preferedLanguage:
|
|
1511
|
-
createdAt:
|
|
1512
|
-
updatedAt:
|
|
1513
|
-
publishedAt:
|
|
1514
|
-
locale:
|
|
1515
|
-
roles:
|
|
1516
|
-
|
|
1517
|
-
id:
|
|
1518
|
-
name:
|
|
1519
|
-
description:
|
|
1520
|
-
code:
|
|
1504
|
+
}), Ai = o.object({
|
|
1505
|
+
data: o.object({
|
|
1506
|
+
id: o.number(),
|
|
1507
|
+
documentId: o.string(),
|
|
1508
|
+
firstname: o.string(),
|
|
1509
|
+
lastname: o.string(),
|
|
1510
|
+
username: o.string().nullable(),
|
|
1511
|
+
email: o.string(),
|
|
1512
|
+
isActive: o.boolean(),
|
|
1513
|
+
blocked: o.boolean(),
|
|
1514
|
+
preferedLanguage: o.string().nullable(),
|
|
1515
|
+
createdAt: o.string(),
|
|
1516
|
+
updatedAt: o.string(),
|
|
1517
|
+
publishedAt: o.string(),
|
|
1518
|
+
locale: o.null(),
|
|
1519
|
+
roles: o.array(
|
|
1520
|
+
o.object({
|
|
1521
|
+
id: o.number(),
|
|
1522
|
+
name: o.string(),
|
|
1523
|
+
description: o.string(),
|
|
1524
|
+
code: o.string()
|
|
1521
1525
|
})
|
|
1522
1526
|
)
|
|
1523
1527
|
})
|
|
1524
|
-
}),
|
|
1528
|
+
}), E = "comments", Ei = wr.once((r) => ({
|
|
1525
1529
|
config: {
|
|
1526
1530
|
getKey() {
|
|
1527
|
-
return [
|
|
1531
|
+
return [E, "config"];
|
|
1528
1532
|
},
|
|
1529
1533
|
async query() {
|
|
1530
|
-
const e = await r.get(`/${
|
|
1534
|
+
const e = await r.get(`/${E}/settings/config`);
|
|
1531
1535
|
return fi.parseAsync(e.data);
|
|
1532
1536
|
}
|
|
1533
1537
|
},
|
|
1534
1538
|
contentTypeBuilder: {
|
|
1535
1539
|
single: {
|
|
1536
1540
|
getKey(e, t) {
|
|
1537
|
-
return [
|
|
1541
|
+
return [E, "moderate", "content-type", t, e];
|
|
1538
1542
|
},
|
|
1539
1543
|
async query(e) {
|
|
1540
1544
|
const t = await r.get(`/content-type-builder/content-types/${e}`);
|
|
@@ -1543,7 +1547,7 @@ const Bt = fr(), yi = a.object({
|
|
|
1543
1547
|
},
|
|
1544
1548
|
all: {
|
|
1545
1549
|
getKey() {
|
|
1546
|
-
return [
|
|
1550
|
+
return [E, "moderate", "content-types"];
|
|
1547
1551
|
},
|
|
1548
1552
|
async query() {
|
|
1549
1553
|
const e = await r.get("/content-type-builder/content-types");
|
|
@@ -1553,7 +1557,7 @@ const Bt = fr(), yi = a.object({
|
|
|
1553
1557
|
},
|
|
1554
1558
|
roles: {
|
|
1555
1559
|
getKey() {
|
|
1556
|
-
return [
|
|
1560
|
+
return [E, "moderate", "roles"];
|
|
1557
1561
|
},
|
|
1558
1562
|
async query() {
|
|
1559
1563
|
const e = await r.get("/admin/roles");
|
|
@@ -1562,100 +1566,100 @@ const Bt = fr(), yi = a.object({
|
|
|
1562
1566
|
},
|
|
1563
1567
|
user: {
|
|
1564
1568
|
getKey() {
|
|
1565
|
-
return [
|
|
1569
|
+
return [E, "moderate", "user"];
|
|
1566
1570
|
},
|
|
1567
1571
|
async query() {
|
|
1568
1572
|
const e = await r.get("/admin/users/me");
|
|
1569
|
-
return
|
|
1573
|
+
return Ai.parseAsync(e.data).then((t) => t.data);
|
|
1570
1574
|
}
|
|
1571
1575
|
},
|
|
1572
1576
|
comments: {
|
|
1573
1577
|
findAll: {
|
|
1574
1578
|
getKey(e) {
|
|
1575
|
-
return [
|
|
1579
|
+
return [E, "moderate", "all", e ? JSON.stringify(e) : void 0].filter(Boolean);
|
|
1576
1580
|
},
|
|
1577
1581
|
async query(e) {
|
|
1578
|
-
const t = await r.get(`/${
|
|
1582
|
+
const t = await r.get(`/${E}/moderate/all?${nr.stringify(e, { encode: !1 })}`);
|
|
1579
1583
|
return yi.parseAsync(t.data);
|
|
1580
1584
|
}
|
|
1581
1585
|
},
|
|
1582
1586
|
findOne: {
|
|
1583
1587
|
getKey(e, t) {
|
|
1584
|
-
return [
|
|
1588
|
+
return [E, "details", e?.toString(), t ? JSON.stringify(t) : void 0].filter(Boolean);
|
|
1585
1589
|
},
|
|
1586
1590
|
async query(e, t) {
|
|
1587
|
-
const n = wr.isEmpty(t) ? "" : `?${nr.stringify(t, { encode: !1 })}`,
|
|
1588
|
-
return di.parseAsync(
|
|
1591
|
+
const n = wr.isEmpty(t) ? "" : `?${nr.stringify(t, { encode: !1 })}`, a = await r.get(`/${E}/moderate/single/${e}${n}`);
|
|
1592
|
+
return di.parseAsync(a.data);
|
|
1589
1593
|
}
|
|
1590
1594
|
},
|
|
1591
1595
|
approve(e) {
|
|
1592
|
-
return r.put(`/${
|
|
1596
|
+
return r.put(`/${E}/moderate/single/${e}/approve`);
|
|
1593
1597
|
},
|
|
1594
1598
|
reject(e) {
|
|
1595
|
-
return r.put(`/${
|
|
1599
|
+
return r.put(`/${E}/moderate/single/${e}/reject`);
|
|
1596
1600
|
},
|
|
1597
1601
|
block(e) {
|
|
1598
|
-
return r.put(`/${
|
|
1602
|
+
return r.put(`/${E}/moderate/single/${e}/block`);
|
|
1599
1603
|
},
|
|
1600
1604
|
unblock(e) {
|
|
1601
|
-
return r.put(`/${
|
|
1605
|
+
return r.put(`/${E}/moderate/single/${e}/unblock`);
|
|
1602
1606
|
},
|
|
1603
1607
|
blockThread(e) {
|
|
1604
|
-
return r.put(`/${
|
|
1608
|
+
return r.put(`/${E}/moderate/thread/${e}/block`);
|
|
1605
1609
|
},
|
|
1606
1610
|
unBlockThread(e) {
|
|
1607
|
-
return r.put(`/${
|
|
1611
|
+
return r.put(`/${E}/moderate/thread/${e}/unblock`);
|
|
1608
1612
|
},
|
|
1609
1613
|
delete(e) {
|
|
1610
|
-
return r.del(`/${
|
|
1614
|
+
return r.del(`/${E}/moderate/single/${e}/delete`);
|
|
1611
1615
|
},
|
|
1612
1616
|
postComment({ id: e, content: t, author: n }) {
|
|
1613
|
-
return r.post(`/${
|
|
1617
|
+
return r.post(`/${E}/moderate/thread/${e}/postComment`, { content: t, author: n });
|
|
1614
1618
|
},
|
|
1615
1619
|
updateComment({ id: e, content: t }) {
|
|
1616
|
-
return r.put(`/${
|
|
1620
|
+
return r.put(`/${E}/moderate/single/${e}/update`, { content: t });
|
|
1617
1621
|
}
|
|
1618
1622
|
},
|
|
1619
1623
|
reports: {
|
|
1620
1624
|
findAll: {
|
|
1621
1625
|
getKey(e) {
|
|
1622
|
-
return [
|
|
1626
|
+
return [E, "moderate", "reports", e ? JSON.stringify(e) : void 0].filter(Boolean);
|
|
1623
1627
|
},
|
|
1624
1628
|
async query(e) {
|
|
1625
|
-
const t = await r.get(`/${
|
|
1629
|
+
const t = await r.get(`/${E}/moderate/reports${e ? `?${nr.stringify(e, { encode: !1 })}` : ""}`);
|
|
1626
1630
|
return hi.parseAsync(t.data);
|
|
1627
1631
|
}
|
|
1628
1632
|
},
|
|
1629
1633
|
resolve({ id: e, reportId: t }) {
|
|
1630
|
-
return r.put(`/${
|
|
1634
|
+
return r.put(`/${E}/moderate/single/${e}/report/${t}/resolve`);
|
|
1631
1635
|
},
|
|
1632
1636
|
resolveMultipleReports({ reportIds: e }) {
|
|
1633
|
-
return r.put(`/${
|
|
1637
|
+
return r.put(`/${E}/moderate/multiple/report/resolve`, { reportIds: e });
|
|
1634
1638
|
},
|
|
1635
1639
|
resolveCommentMultipleReports({ id: e, reportIds: t }) {
|
|
1636
|
-
return r.put(`/${
|
|
1640
|
+
return r.put(`/${E}/moderate/single/${e}/report/resolve`, { reportIds: t });
|
|
1637
1641
|
},
|
|
1638
1642
|
resolveAllAbuseReportsForComment(e) {
|
|
1639
|
-
return r.put(`/${
|
|
1643
|
+
return r.put(`/${E}/moderate/all/${e}/report/resolve`);
|
|
1640
1644
|
},
|
|
1641
1645
|
resolveAllAbuseReportsForThread(e) {
|
|
1642
|
-
return r.put(`/${
|
|
1646
|
+
return r.put(`/${E}/moderate/thread/${e}/report/resolve-thread`);
|
|
1643
1647
|
}
|
|
1644
1648
|
},
|
|
1645
1649
|
settings: {
|
|
1646
1650
|
update(e) {
|
|
1647
|
-
return r.put(`/${
|
|
1651
|
+
return r.put(`/${E}/settings/config`, e);
|
|
1648
1652
|
},
|
|
1649
1653
|
restore() {
|
|
1650
|
-
return r.del(`/${
|
|
1654
|
+
return r.del(`/${E}/settings/config`);
|
|
1651
1655
|
},
|
|
1652
1656
|
restart() {
|
|
1653
|
-
return r.post(`/${
|
|
1657
|
+
return r.post(`/${E}/settings/restart`);
|
|
1654
1658
|
}
|
|
1655
1659
|
}
|
|
1656
1660
|
})), Oi = () => {
|
|
1657
1661
|
const r = dn();
|
|
1658
|
-
return ut(() =>
|
|
1662
|
+
return ut(() => Ei(r), [r]);
|
|
1659
1663
|
}, Pi = yn(null), $i = ({ children: r }) => {
|
|
1660
1664
|
const e = Oi(), { data: t } = fn({
|
|
1661
1665
|
queryKey: e.user.getKey(),
|
|
@@ -1664,7 +1668,7 @@ const Bt = fr(), yi = a.object({
|
|
|
1664
1668
|
return t ? /* @__PURE__ */ _(Pi.Provider, { value: t, children: r }) : null;
|
|
1665
1669
|
};
|
|
1666
1670
|
console.log("!!darkTheme", !!it);
|
|
1667
|
-
console.log("!!lightTheme", !!
|
|
1671
|
+
console.log("!!lightTheme", !!an);
|
|
1668
1672
|
const wi = new pn({
|
|
1669
1673
|
defaultOptions: {
|
|
1670
1674
|
queries: {
|
|
@@ -1688,7 +1692,7 @@ const wi = new pn({
|
|
|
1688
1692
|
allowedActions: {
|
|
1689
1693
|
canCommentsModerate: t,
|
|
1690
1694
|
canCommentsRead: n,
|
|
1691
|
-
canReportsRead:
|
|
1695
|
+
canReportsRead: a,
|
|
1692
1696
|
canSettingsChange: i,
|
|
1693
1697
|
canSettingsRead: c,
|
|
1694
1698
|
canReportsReview: l
|
|
@@ -1696,9 +1700,9 @@ const wi = new pn({
|
|
|
1696
1700
|
} = mn(r);
|
|
1697
1701
|
return {
|
|
1698
1702
|
isLoadingForPermissions: e,
|
|
1699
|
-
canAccess: n ||
|
|
1703
|
+
canAccess: n || a || c,
|
|
1700
1704
|
canModerate: t,
|
|
1701
|
-
canAccessReports:
|
|
1705
|
+
canAccessReports: a,
|
|
1702
1706
|
canReviewReports: l,
|
|
1703
1707
|
canSettings: c,
|
|
1704
1708
|
canSettingsChange: i
|
|
@@ -1713,11 +1717,11 @@ var sr = { exports: {} }, b = {};
|
|
|
1713
1717
|
* This source code is licensed under the MIT license found in the
|
|
1714
1718
|
* LICENSE file in the root directory of this source tree.
|
|
1715
1719
|
*/
|
|
1716
|
-
var
|
|
1720
|
+
var at;
|
|
1717
1721
|
function Ri() {
|
|
1718
|
-
if (
|
|
1719
|
-
|
|
1720
|
-
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107,
|
|
1722
|
+
if (at) return b;
|
|
1723
|
+
at = 1;
|
|
1724
|
+
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, a = r ? Symbol.for("react.strict_mode") : 60108, i = r ? Symbol.for("react.profiler") : 60114, c = r ? Symbol.for("react.provider") : 60109, l = r ? Symbol.for("react.context") : 60110, f = r ? Symbol.for("react.async_mode") : 60111, u = r ? Symbol.for("react.concurrent_mode") : 60111, p = r ? Symbol.for("react.forward_ref") : 60112, y = r ? Symbol.for("react.suspense") : 60113, m = r ? Symbol.for("react.suspense_list") : 60120, h = r ? Symbol.for("react.memo") : 60115, v = r ? Symbol.for("react.lazy") : 60116, P = r ? Symbol.for("react.block") : 60121, C = r ? Symbol.for("react.fundamental") : 60117, g = r ? Symbol.for("react.responder") : 60118, I = r ? Symbol.for("react.scope") : 60119;
|
|
1721
1725
|
function O(s) {
|
|
1722
1726
|
if (typeof s == "object" && s !== null) {
|
|
1723
1727
|
var F = s.$$typeof;
|
|
@@ -1728,7 +1732,7 @@ function Ri() {
|
|
|
1728
1732
|
case u:
|
|
1729
1733
|
case n:
|
|
1730
1734
|
case i:
|
|
1731
|
-
case
|
|
1735
|
+
case a:
|
|
1732
1736
|
case y:
|
|
1733
1737
|
return s;
|
|
1734
1738
|
default:
|
|
@@ -1751,7 +1755,7 @@ function Ri() {
|
|
|
1751
1755
|
function $(s) {
|
|
1752
1756
|
return O(s) === u;
|
|
1753
1757
|
}
|
|
1754
|
-
return b.AsyncMode = f, b.ConcurrentMode = u, b.ContextConsumer = l, b.ContextProvider = c, b.Element = e, b.ForwardRef = p, b.Fragment = n, b.Lazy = v, b.Memo = h, b.Portal = t, b.Profiler = i, b.StrictMode =
|
|
1758
|
+
return b.AsyncMode = f, b.ConcurrentMode = u, b.ContextConsumer = l, b.ContextProvider = c, b.Element = e, b.ForwardRef = p, b.Fragment = n, b.Lazy = v, b.Memo = h, b.Portal = t, b.Profiler = i, b.StrictMode = a, b.Suspense = y, b.isAsyncMode = function(s) {
|
|
1755
1759
|
return $(s) || O(s) === f;
|
|
1756
1760
|
}, b.isConcurrentMode = $, b.isContextConsumer = function(s) {
|
|
1757
1761
|
return O(s) === l;
|
|
@@ -1772,14 +1776,14 @@ function Ri() {
|
|
|
1772
1776
|
}, b.isProfiler = function(s) {
|
|
1773
1777
|
return O(s) === i;
|
|
1774
1778
|
}, b.isStrictMode = function(s) {
|
|
1775
|
-
return O(s) ===
|
|
1779
|
+
return O(s) === a;
|
|
1776
1780
|
}, b.isSuspense = function(s) {
|
|
1777
1781
|
return O(s) === y;
|
|
1778
1782
|
}, b.isValidElementType = function(s) {
|
|
1779
|
-
return typeof s == "string" || typeof s == "function" || s === n || s === u || s === i || s ===
|
|
1783
|
+
return typeof s == "string" || typeof s == "function" || s === n || s === u || s === i || s === a || s === y || s === m || typeof s == "object" && s !== null && (s.$$typeof === v || s.$$typeof === h || s.$$typeof === c || s.$$typeof === l || s.$$typeof === p || s.$$typeof === C || s.$$typeof === g || s.$$typeof === I || s.$$typeof === P);
|
|
1780
1784
|
}, b.typeOf = O, b;
|
|
1781
1785
|
}
|
|
1782
|
-
var
|
|
1786
|
+
var A = {};
|
|
1783
1787
|
/** @license React v16.13.1
|
|
1784
1788
|
* react-is.development.js
|
|
1785
1789
|
*
|
|
@@ -1788,13 +1792,13 @@ var E = {};
|
|
|
1788
1792
|
* This source code is licensed under the MIT license found in the
|
|
1789
1793
|
* LICENSE file in the root directory of this source tree.
|
|
1790
1794
|
*/
|
|
1791
|
-
var
|
|
1795
|
+
var ot;
|
|
1792
1796
|
function Ci() {
|
|
1793
|
-
return
|
|
1794
|
-
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107,
|
|
1797
|
+
return ot || (ot = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1798
|
+
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, a = r ? Symbol.for("react.strict_mode") : 60108, i = r ? Symbol.for("react.profiler") : 60114, c = r ? Symbol.for("react.provider") : 60109, l = r ? Symbol.for("react.context") : 60110, f = r ? Symbol.for("react.async_mode") : 60111, u = r ? Symbol.for("react.concurrent_mode") : 60111, p = r ? Symbol.for("react.forward_ref") : 60112, y = r ? Symbol.for("react.suspense") : 60113, m = r ? Symbol.for("react.suspense_list") : 60120, h = r ? Symbol.for("react.memo") : 60115, v = r ? Symbol.for("react.lazy") : 60116, P = r ? Symbol.for("react.block") : 60121, C = r ? Symbol.for("react.fundamental") : 60117, g = r ? Symbol.for("react.responder") : 60118, I = r ? Symbol.for("react.scope") : 60119;
|
|
1795
1799
|
function O(d) {
|
|
1796
1800
|
return typeof d == "string" || typeof d == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1797
|
-
d === n || d === u || d === i || d ===
|
|
1801
|
+
d === n || d === u || d === i || d === a || d === y || d === m || typeof d == "object" && d !== null && (d.$$typeof === v || d.$$typeof === h || d.$$typeof === c || d.$$typeof === l || d.$$typeof === p || d.$$typeof === C || d.$$typeof === g || d.$$typeof === I || d.$$typeof === P);
|
|
1798
1802
|
}
|
|
1799
1803
|
function $(d) {
|
|
1800
1804
|
if (typeof d == "object" && d !== null) {
|
|
@@ -1807,7 +1811,7 @@ function Ci() {
|
|
|
1807
1811
|
case u:
|
|
1808
1812
|
case n:
|
|
1809
1813
|
case i:
|
|
1810
|
-
case
|
|
1814
|
+
case a:
|
|
1811
1815
|
case y:
|
|
1812
1816
|
return be;
|
|
1813
1817
|
default:
|
|
@@ -1828,9 +1832,9 @@ function Ci() {
|
|
|
1828
1832
|
}
|
|
1829
1833
|
}
|
|
1830
1834
|
}
|
|
1831
|
-
var s = f, F = u, B = l, M = c, W = e, k = p, K = n, N = v, x = h, G = t, Z = i, j =
|
|
1835
|
+
var s = f, F = u, B = l, M = c, W = e, k = p, K = n, N = v, x = h, G = t, Z = i, j = a, Gt = y, Er = !1;
|
|
1832
1836
|
function jt(d) {
|
|
1833
|
-
return
|
|
1837
|
+
return Er || (Er = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), Or(d) || $(d) === f;
|
|
1834
1838
|
}
|
|
1835
1839
|
function Or(d) {
|
|
1836
1840
|
return $(d) === u;
|
|
@@ -1863,13 +1867,13 @@ function Ci() {
|
|
|
1863
1867
|
return $(d) === i;
|
|
1864
1868
|
}
|
|
1865
1869
|
function en(d) {
|
|
1866
|
-
return $(d) ===
|
|
1870
|
+
return $(d) === a;
|
|
1867
1871
|
}
|
|
1868
1872
|
function rn(d) {
|
|
1869
1873
|
return $(d) === y;
|
|
1870
1874
|
}
|
|
1871
|
-
|
|
1872
|
-
}()),
|
|
1875
|
+
A.AsyncMode = s, A.ConcurrentMode = F, A.ContextConsumer = B, A.ContextProvider = M, A.Element = W, A.ForwardRef = k, A.Fragment = K, A.Lazy = N, A.Memo = x, A.Portal = G, A.Profiler = Z, A.StrictMode = j, A.Suspense = Gt, A.isAsyncMode = jt, A.isConcurrentMode = Or, A.isContextConsumer = Vt, A.isContextProvider = zt, A.isElement = Ht, A.isForwardRef = Yt, A.isFragment = Kt, A.isLazy = Qt, A.isMemo = Jt, A.isPortal = Xt, A.isProfiler = Zt, A.isStrictMode = en, A.isSuspense = rn, A.isValidElementType = O, A.typeOf = $;
|
|
1876
|
+
}()), A;
|
|
1873
1877
|
}
|
|
1874
1878
|
process.env.NODE_ENV === "production" ? sr.exports = Ri() : sr.exports = Ci();
|
|
1875
1879
|
var Ti = sr.exports, qt = Ti, _i = {
|
|
@@ -1909,13 +1913,13 @@ var xi = function(r) {
|
|
|
1909
1913
|
function Di(r) {
|
|
1910
1914
|
Ni(r, "[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.");
|
|
1911
1915
|
}
|
|
1912
|
-
Rr(Rr({}, Mi), { textComponent:
|
|
1913
|
-
var br = typeof window < "u" && !window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__ ? window.__REACT_INTL_CONTEXT__ || (window.__REACT_INTL_CONTEXT__ =
|
|
1916
|
+
Rr(Rr({}, Mi), { textComponent: oe.Fragment });
|
|
1917
|
+
var br = typeof window < "u" && !window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__ ? window.__REACT_INTL_CONTEXT__ || (window.__REACT_INTL_CONTEXT__ = oe.createContext(null)) : oe.createContext(null);
|
|
1914
1918
|
br.Consumer;
|
|
1915
1919
|
br.Provider;
|
|
1916
1920
|
var Li = br;
|
|
1917
|
-
function
|
|
1918
|
-
var r =
|
|
1921
|
+
function Ar() {
|
|
1922
|
+
var r = oe.useContext(Li);
|
|
1919
1923
|
return Di(r), r;
|
|
1920
1924
|
}
|
|
1921
1925
|
var pr;
|
|
@@ -1928,21 +1932,21 @@ var yr;
|
|
|
1928
1932
|
})(yr || (yr = {}));
|
|
1929
1933
|
function kt(r) {
|
|
1930
1934
|
var e = function(t) {
|
|
1931
|
-
var n =
|
|
1935
|
+
var n = Ar(), a = t.value, i = t.children, c = lt(t, ["value", "children"]), l = typeof a == "string" ? new Date(a || 0) : a, f = r === "formatDate" ? n.formatDateToParts(l, c) : n.formatTimeToParts(l, c);
|
|
1932
1936
|
return i(f);
|
|
1933
1937
|
};
|
|
1934
1938
|
return e.displayName = yr[r], e;
|
|
1935
1939
|
}
|
|
1936
1940
|
function Se(r) {
|
|
1937
1941
|
var e = function(t) {
|
|
1938
|
-
var n =
|
|
1942
|
+
var n = Ar(), a = t.value, i = t.children, c = lt(
|
|
1939
1943
|
t,
|
|
1940
1944
|
["value", "children"]
|
|
1941
|
-
), l = n[r](
|
|
1945
|
+
), l = n[r](a, c);
|
|
1942
1946
|
if (typeof i == "function")
|
|
1943
1947
|
return i(l);
|
|
1944
|
-
var f = n.textComponent ||
|
|
1945
|
-
return
|
|
1948
|
+
var f = n.textComponent || oe.Fragment;
|
|
1949
|
+
return oe.createElement(f, null, l);
|
|
1946
1950
|
};
|
|
1947
1951
|
return e.displayName = pr[r], e;
|
|
1948
1952
|
}
|
|
@@ -1954,11 +1958,11 @@ Se("formatDisplayName");
|
|
|
1954
1958
|
kt("formatDate");
|
|
1955
1959
|
kt("formatTime");
|
|
1956
1960
|
const Hi = (r, e = "", t = !0) => {
|
|
1957
|
-
const { formatMessage: n } =
|
|
1958
|
-
let
|
|
1959
|
-
return typeof r == "string" ?
|
|
1961
|
+
const { formatMessage: n } = Ar();
|
|
1962
|
+
let a = "";
|
|
1963
|
+
return typeof r == "string" ? a = r : a = r?.id.toString() || a, n(
|
|
1960
1964
|
{
|
|
1961
|
-
id: `${t ?
|
|
1965
|
+
id: `${t ? on : "app.components"}.${a}`,
|
|
1962
1966
|
defaultMessage: e
|
|
1963
1967
|
},
|
|
1964
1968
|
typeof r == "string" ? void 0 : r?.props
|
|
@@ -1968,22 +1972,22 @@ const Hi = (r, e = "", t = !0) => {
|
|
|
1968
1972
|
onConfirm: e,
|
|
1969
1973
|
Trigger: t,
|
|
1970
1974
|
labelConfirm: n,
|
|
1971
|
-
iconConfirm:
|
|
1975
|
+
iconConfirm: a,
|
|
1972
1976
|
labelCancel: i,
|
|
1973
1977
|
children: c
|
|
1974
1978
|
}) => {
|
|
1975
1979
|
const [l, f] = Tr(!1), [u, p] = Tr(!1), y = () => f((h) => !h), m = async () => {
|
|
1976
1980
|
p(!0), await e(), p(!1), y();
|
|
1977
1981
|
};
|
|
1978
|
-
return /* @__PURE__ */
|
|
1982
|
+
return /* @__PURE__ */ Ae(V.Root, { open: l, children: [
|
|
1979
1983
|
/* @__PURE__ */ _(V.Trigger, { children: /* @__PURE__ */ _(t, { onClick: y }) }),
|
|
1980
|
-
/* @__PURE__ */
|
|
1984
|
+
/* @__PURE__ */ Ae(V.Content, { children: [
|
|
1981
1985
|
/* @__PURE__ */ _(V.Header, { children: r }),
|
|
1982
|
-
/* @__PURE__ */ _(V.Body, { children: /* @__PURE__ */
|
|
1986
|
+
/* @__PURE__ */ _(V.Body, { children: /* @__PURE__ */ Ae(ln, { justifyContent: "center", direction: "column", children: [
|
|
1983
1987
|
/* @__PURE__ */ _(un, { fill: "danger500", stroke: "danger500", height: "24", width: "24" }),
|
|
1984
1988
|
/* @__PURE__ */ _(cn, { id: "confirm-description", children: c })
|
|
1985
1989
|
] }) }),
|
|
1986
|
-
/* @__PURE__ */
|
|
1990
|
+
/* @__PURE__ */ Ae(V.Footer, { children: [
|
|
1987
1991
|
/* @__PURE__ */ _(V.Cancel, { children: /* @__PURE__ */ _(
|
|
1988
1992
|
Cr,
|
|
1989
1993
|
{
|
|
@@ -2000,7 +2004,7 @@ const Hi = (r, e = "", t = !0) => {
|
|
|
2000
2004
|
variant: "danger-light",
|
|
2001
2005
|
loading: u,
|
|
2002
2006
|
disabled: u,
|
|
2003
|
-
startIcon:
|
|
2007
|
+
startIcon: a,
|
|
2004
2008
|
children: n
|
|
2005
2009
|
}
|
|
2006
2010
|
) })
|
|
@@ -2013,7 +2017,7 @@ export {
|
|
|
2013
2017
|
ji as R,
|
|
2014
2018
|
Pi as U,
|
|
2015
2019
|
zi as a,
|
|
2016
|
-
|
|
2020
|
+
Ar as b,
|
|
2017
2021
|
ci as c,
|
|
2018
2022
|
Yi as d,
|
|
2019
2023
|
Vi as e,
|