@qikdev/sdk 1.0.6 → 1.0.8
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/main.js +546 -526
- package/package.json +1 -1
- package/src/api/qik.auth.js +2 -1
- package/src/api/qik.socket.js +20 -10
- package/src/api/qik.utils.js +39 -5
- package/src/version.js +1 -1
package/dist/main.js
CHANGED
|
@@ -55,19 +55,19 @@ function Qr() {
|
|
|
55
55
|
return !0;
|
|
56
56
|
}), Ze;
|
|
57
57
|
}
|
|
58
|
-
var Qe,
|
|
58
|
+
var Qe, Or;
|
|
59
59
|
function Yr() {
|
|
60
|
-
if (
|
|
61
|
-
|
|
60
|
+
if (Or) return Qe;
|
|
61
|
+
Or = 1;
|
|
62
62
|
var e = typeof Symbol < "u" && Symbol, r = Qr();
|
|
63
63
|
return Qe = function() {
|
|
64
64
|
return typeof e != "function" || typeof Symbol != "function" || typeof e("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : r();
|
|
65
65
|
}, Qe;
|
|
66
66
|
}
|
|
67
|
-
var Ye,
|
|
67
|
+
var Ye, Cr;
|
|
68
68
|
function Xr() {
|
|
69
|
-
if (
|
|
70
|
-
|
|
69
|
+
if (Cr) return Ye;
|
|
70
|
+
Cr = 1;
|
|
71
71
|
var e = "Function.prototype.bind called on incompatible ", r = Object.prototype.toString, a = Math.max, t = "[object Function]", n = function(p, m) {
|
|
72
72
|
for (var w = [], b = 0; b < p.length; b += 1)
|
|
73
73
|
w[b] = p[b];
|
|
@@ -99,8 +99,8 @@ function Xr() {
|
|
|
99
99
|
p,
|
|
100
100
|
n(w, arguments)
|
|
101
101
|
);
|
|
102
|
-
}, o = a(0, m.length - w.length), f = [],
|
|
103
|
-
f[
|
|
102
|
+
}, o = a(0, m.length - w.length), f = [], g = 0; g < o; g++)
|
|
103
|
+
f[g] = "$" + g;
|
|
104
104
|
if (b = Function("binder", "return function (" + y(f, ",") + "){ return binder.apply(this,arguments); }")(u), m.prototype) {
|
|
105
105
|
var c = function() {
|
|
106
106
|
};
|
|
@@ -116,10 +116,10 @@ function yr() {
|
|
|
116
116
|
var e = Xr();
|
|
117
117
|
return Xe = Function.prototype.bind || e, Xe;
|
|
118
118
|
}
|
|
119
|
-
var er,
|
|
119
|
+
var er, Ir;
|
|
120
120
|
function et() {
|
|
121
|
-
if (
|
|
122
|
-
|
|
121
|
+
if (Ir) return er;
|
|
122
|
+
Ir = 1;
|
|
123
123
|
var e = yr();
|
|
124
124
|
return er = e.call(Function.call, Object.prototype.hasOwnProperty), er;
|
|
125
125
|
}
|
|
@@ -219,22 +219,22 @@ function hr() {
|
|
|
219
219
|
"%WeakMap%": typeof WeakMap > "u" ? e : WeakMap,
|
|
220
220
|
"%WeakRef%": typeof WeakRef > "u" ? e : WeakRef,
|
|
221
221
|
"%WeakSet%": typeof WeakSet > "u" ? e : WeakSet
|
|
222
|
-
}, o = function $(
|
|
222
|
+
}, o = function $(L) {
|
|
223
223
|
var F;
|
|
224
|
-
if (
|
|
224
|
+
if (L === "%AsyncFunction%")
|
|
225
225
|
F = n("async function () {}");
|
|
226
|
-
else if (
|
|
226
|
+
else if (L === "%GeneratorFunction%")
|
|
227
227
|
F = n("function* () {}");
|
|
228
|
-
else if (
|
|
228
|
+
else if (L === "%AsyncGeneratorFunction%")
|
|
229
229
|
F = n("async function* () {}");
|
|
230
|
-
else if (
|
|
231
|
-
var
|
|
232
|
-
|
|
233
|
-
} else if (
|
|
230
|
+
else if (L === "%AsyncGenerator%") {
|
|
231
|
+
var R = $("%AsyncGeneratorFunction%");
|
|
232
|
+
R && (F = R.prototype);
|
|
233
|
+
} else if (L === "%AsyncIteratorPrototype%") {
|
|
234
234
|
var k = $("%AsyncGenerator%");
|
|
235
235
|
k && (F = m(k.prototype));
|
|
236
236
|
}
|
|
237
|
-
return u[
|
|
237
|
+
return u[L] = F, F;
|
|
238
238
|
}, f = {
|
|
239
239
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
240
240
|
"%ArrayPrototype%": ["Array", "prototype"],
|
|
@@ -287,41 +287,41 @@ function hr() {
|
|
|
287
287
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
288
288
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
289
289
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
290
|
-
},
|
|
291
|
-
var F = P(
|
|
292
|
-
if (F === "%" &&
|
|
290
|
+
}, g = yr(), c = et(), s = g.call(Function.call, Array.prototype.concat), A = g.call(Function.apply, Array.prototype.splice), S = g.call(Function.call, String.prototype.replace), P = g.call(Function.call, String.prototype.slice), x = g.call(Function.call, RegExp.prototype.exec), T = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, N = /\\(\\)?/g, M = function(L) {
|
|
291
|
+
var F = P(L, 0, 1), R = P(L, -1);
|
|
292
|
+
if (F === "%" && R !== "%")
|
|
293
293
|
throw new r("invalid intrinsic syntax, expected closing `%`");
|
|
294
|
-
if (
|
|
294
|
+
if (R === "%" && F !== "%")
|
|
295
295
|
throw new r("invalid intrinsic syntax, expected opening `%`");
|
|
296
296
|
var k = [];
|
|
297
|
-
return S(
|
|
298
|
-
k[k.length] = _ ? S(Z,
|
|
297
|
+
return S(L, T, function(U, z, _, Z) {
|
|
298
|
+
k[k.length] = _ ? S(Z, N, "$1") : z || U;
|
|
299
299
|
}), k;
|
|
300
|
-
}, V = function(
|
|
301
|
-
var
|
|
302
|
-
if (c(f,
|
|
303
|
-
var U = u[
|
|
304
|
-
if (U === w && (U = o(
|
|
305
|
-
throw new t("intrinsic " +
|
|
300
|
+
}, V = function(L, F) {
|
|
301
|
+
var R = L, k;
|
|
302
|
+
if (c(f, R) && (k = f[R], R = "%" + k[0] + "%"), c(u, R)) {
|
|
303
|
+
var U = u[R];
|
|
304
|
+
if (U === w && (U = o(R)), typeof U > "u" && !F)
|
|
305
|
+
throw new t("intrinsic " + L + " exists, but is not available. Please file an issue!");
|
|
306
306
|
return {
|
|
307
307
|
alias: k,
|
|
308
|
-
name:
|
|
308
|
+
name: R,
|
|
309
309
|
value: U
|
|
310
310
|
};
|
|
311
311
|
}
|
|
312
|
-
throw new r("intrinsic " +
|
|
312
|
+
throw new r("intrinsic " + L + " does not exist!");
|
|
313
313
|
};
|
|
314
|
-
return rr = function(
|
|
315
|
-
if (typeof
|
|
314
|
+
return rr = function(L, F) {
|
|
315
|
+
if (typeof L != "string" || L.length === 0)
|
|
316
316
|
throw new t("intrinsic name must be a non-empty string");
|
|
317
317
|
if (arguments.length > 1 && typeof F != "boolean")
|
|
318
318
|
throw new t('"allowMissing" argument must be a boolean');
|
|
319
|
-
if (x(/^%?[^%]*%?$/,
|
|
319
|
+
if (x(/^%?[^%]*%?$/, L) === null)
|
|
320
320
|
throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
321
|
-
var
|
|
322
|
-
Q && (k = Q[0], A(
|
|
323
|
-
for (var ne = 1, X = !0; ne <
|
|
324
|
-
var W =
|
|
321
|
+
var R = M(L), k = R.length > 0 ? R[0] : "", U = V("%" + k + "%", F), z = U.name, _ = U.value, Z = !1, Q = U.alias;
|
|
322
|
+
Q && (k = Q[0], A(R, s([0, 1], Q)));
|
|
323
|
+
for (var ne = 1, X = !0; ne < R.length; ne += 1) {
|
|
324
|
+
var W = R[ne], ie = P(W, 0, 1), re = P(W, -1);
|
|
325
325
|
if ((ie === '"' || ie === "'" || ie === "`" || re === '"' || re === "'" || re === "`") && ie !== re)
|
|
326
326
|
throw new r("property names with quotes must have matching quotes");
|
|
327
327
|
if ((W === "constructor" || !X) && (Z = !0), k += "." + W, z = "%" + k + "%", c(u, z))
|
|
@@ -329,10 +329,10 @@ function hr() {
|
|
|
329
329
|
else if (_ != null) {
|
|
330
330
|
if (!(W in _)) {
|
|
331
331
|
if (!F)
|
|
332
|
-
throw new t("base intrinsic for " +
|
|
332
|
+
throw new t("base intrinsic for " + L + " exists, but the property is not available.");
|
|
333
333
|
return;
|
|
334
334
|
}
|
|
335
|
-
if (i && ne + 1 >=
|
|
335
|
+
if (i && ne + 1 >= R.length) {
|
|
336
336
|
var te = i(_, W);
|
|
337
337
|
X = !!te, X && "get" in te && !("originalValue" in te.get) ? _ = te.get : _ = _[W];
|
|
338
338
|
} else
|
|
@@ -343,9 +343,9 @@ function hr() {
|
|
|
343
343
|
return _;
|
|
344
344
|
}, rr;
|
|
345
345
|
}
|
|
346
|
-
var tr = { exports: {} },
|
|
346
|
+
var tr = { exports: {} }, Rr;
|
|
347
347
|
function rt() {
|
|
348
|
-
return
|
|
348
|
+
return Rr || (Rr = 1, (function(e) {
|
|
349
349
|
var r = yr(), a = hr(), t = a("%Function.prototype.apply%"), n = a("%Function.prototype.call%"), i = a("%Reflect.apply%", !0) || r.call(n, t), y = a("%Object.getOwnPropertyDescriptor%", !0), l = a("%Object.defineProperty%", !0), p = a("%Math.max%");
|
|
350
350
|
if (l)
|
|
351
351
|
try {
|
|
@@ -389,37 +389,37 @@ var nr, _r;
|
|
|
389
389
|
function ot() {
|
|
390
390
|
if (_r) return nr;
|
|
391
391
|
_r = 1;
|
|
392
|
-
var e = typeof Map == "function" && Map.prototype, r = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, a = e && r && typeof r.get == "function" ? r.get : null, t = e && Map.prototype.forEach, n = typeof Set == "function" && Set.prototype, i = Object.getOwnPropertyDescriptor && n ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, y = n && i && typeof i.get == "function" ? i.get : null, l = n && Set.prototype.forEach, p = typeof WeakMap == "function" && WeakMap.prototype, m = p ? WeakMap.prototype.has : null, w = typeof WeakSet == "function" && WeakSet.prototype, b = w ? WeakSet.prototype.has : null, u = typeof WeakRef == "function" && WeakRef.prototype, o = u ? WeakRef.prototype.deref : null, f = Boolean.prototype.valueOf,
|
|
393
|
-
return
|
|
392
|
+
var e = typeof Map == "function" && Map.prototype, r = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, a = e && r && typeof r.get == "function" ? r.get : null, t = e && Map.prototype.forEach, n = typeof Set == "function" && Set.prototype, i = Object.getOwnPropertyDescriptor && n ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, y = n && i && typeof i.get == "function" ? i.get : null, l = n && Set.prototype.forEach, p = typeof WeakMap == "function" && WeakMap.prototype, m = p ? WeakMap.prototype.has : null, w = typeof WeakSet == "function" && WeakSet.prototype, b = w ? WeakSet.prototype.has : null, u = typeof WeakRef == "function" && WeakRef.prototype, o = u ? WeakRef.prototype.deref : null, f = Boolean.prototype.valueOf, g = Object.prototype.toString, c = Function.prototype.toString, s = String.prototype.match, A = String.prototype.slice, S = String.prototype.replace, P = String.prototype.toUpperCase, x = String.prototype.toLowerCase, T = RegExp.prototype.test, N = Array.prototype.concat, M = Array.prototype.join, V = Array.prototype.slice, $ = Math.floor, L = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, F = Object.getOwnPropertySymbols, R = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, k = typeof Symbol == "function" && typeof Symbol.iterator == "object", U = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === k || !0) ? Symbol.toStringTag : null, z = Object.prototype.propertyIsEnumerable, _ = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(h) {
|
|
393
|
+
return h.__proto__;
|
|
394
394
|
} : null);
|
|
395
|
-
function Z(
|
|
396
|
-
if (
|
|
395
|
+
function Z(h, v) {
|
|
396
|
+
if (h === 1 / 0 || h === -1 / 0 || h !== h || h && h > -1e3 && h < 1e3 || T.call(/e/, v))
|
|
397
397
|
return v;
|
|
398
398
|
var D = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
399
|
-
if (typeof
|
|
400
|
-
var d =
|
|
401
|
-
if (d !==
|
|
402
|
-
var E = String(d),
|
|
403
|
-
return S.call(E, D, "$&_") + "." + S.call(S.call(
|
|
399
|
+
if (typeof h == "number") {
|
|
400
|
+
var d = h < 0 ? -$(-h) : $(h);
|
|
401
|
+
if (d !== h) {
|
|
402
|
+
var E = String(d), O = A.call(v, E.length + 1);
|
|
403
|
+
return S.call(E, D, "$&_") + "." + S.call(S.call(O, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
406
|
return S.call(v, D, "$&_");
|
|
407
407
|
}
|
|
408
408
|
var Q = it, ne = Q.custom, X = se(ne) ? ne : null;
|
|
409
|
-
nr = function
|
|
410
|
-
var
|
|
411
|
-
if (J(
|
|
409
|
+
nr = function h(v, D, d, E) {
|
|
410
|
+
var O = D || {};
|
|
411
|
+
if (J(O, "quoteStyle") && O.quoteStyle !== "single" && O.quoteStyle !== "double")
|
|
412
412
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
413
|
-
if (J(
|
|
413
|
+
if (J(O, "maxStringLength") && (typeof O.maxStringLength == "number" ? O.maxStringLength < 0 && O.maxStringLength !== 1 / 0 : O.maxStringLength !== null))
|
|
414
414
|
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
415
|
-
var G = J(
|
|
415
|
+
var G = J(O, "customInspect") ? O.customInspect : !0;
|
|
416
416
|
if (typeof G != "boolean" && G !== "symbol")
|
|
417
417
|
throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
|
|
418
|
-
if (J(
|
|
418
|
+
if (J(O, "indent") && O.indent !== null && O.indent !== " " && !(parseInt(O.indent, 10) === O.indent && O.indent > 0))
|
|
419
419
|
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
420
|
-
if (J(
|
|
420
|
+
if (J(O, "numericSeparator") && typeof O.numericSeparator != "boolean")
|
|
421
421
|
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
422
|
-
var ae =
|
|
422
|
+
var ae = O.numericSeparator;
|
|
423
423
|
if (typeof v > "u")
|
|
424
424
|
return "undefined";
|
|
425
425
|
if (v === null)
|
|
@@ -427,7 +427,7 @@ function ot() {
|
|
|
427
427
|
if (typeof v == "boolean")
|
|
428
428
|
return v ? "true" : "false";
|
|
429
429
|
if (typeof v == "string")
|
|
430
|
-
return
|
|
430
|
+
return Oe(v, O);
|
|
431
431
|
if (typeof v == "number") {
|
|
432
432
|
if (v === 0)
|
|
433
433
|
return 1 / 0 / v > 0 ? "0" : "-0";
|
|
@@ -435,13 +435,13 @@ function ot() {
|
|
|
435
435
|
return ae ? Z(v, K) : K;
|
|
436
436
|
}
|
|
437
437
|
if (typeof v == "bigint") {
|
|
438
|
-
var
|
|
439
|
-
return ae ? Z(v,
|
|
438
|
+
var C = String(v) + "n";
|
|
439
|
+
return ae ? Z(v, C) : C;
|
|
440
440
|
}
|
|
441
|
-
var B = typeof
|
|
441
|
+
var B = typeof O.depth > "u" ? 5 : O.depth;
|
|
442
442
|
if (typeof d > "u" && (d = 0), d >= B && B > 0 && typeof v == "object")
|
|
443
443
|
return re(v) ? "[Array]" : "[Object]";
|
|
444
|
-
var j =
|
|
444
|
+
var j = Le(O, d);
|
|
445
445
|
if (typeof E > "u")
|
|
446
446
|
E = [];
|
|
447
447
|
else if (xe(E, v) >= 0)
|
|
@@ -449,34 +449,34 @@ function ot() {
|
|
|
449
449
|
function H(Me, Be, Jr) {
|
|
450
450
|
if (Be && (E = V.call(E), E.push(Be)), Jr) {
|
|
451
451
|
var xr = {
|
|
452
|
-
depth:
|
|
452
|
+
depth: O.depth
|
|
453
453
|
};
|
|
454
|
-
return J(
|
|
454
|
+
return J(O, "quoteStyle") && (xr.quoteStyle = O.quoteStyle), h(Me, xr, d + 1, E);
|
|
455
455
|
}
|
|
456
|
-
return
|
|
456
|
+
return h(Me, O, d + 1, E);
|
|
457
457
|
}
|
|
458
458
|
if (typeof v == "function" && !ce(v)) {
|
|
459
|
-
var Y =
|
|
459
|
+
var Y = Ie(v), Ee = ge(v, H);
|
|
460
460
|
return "[Function" + (Y ? ": " + Y : " (anonymous)") + "]" + (Ee.length > 0 ? " { " + M.call(Ee, ", ") + " }" : "");
|
|
461
461
|
}
|
|
462
462
|
if (se(v)) {
|
|
463
|
-
var Ar = k ? S.call(String(v), /^(Symbol\(.*\))_[^)]*$/, "$1") :
|
|
463
|
+
var Ar = k ? S.call(String(v), /^(Symbol\(.*\))_[^)]*$/, "$1") : R.call(v);
|
|
464
464
|
return typeof v == "object" && !k ? le(Ar) : Ar;
|
|
465
465
|
}
|
|
466
466
|
if (_e(v)) {
|
|
467
467
|
for (var Fe = "<" + x.call(String(v.nodeName)), ze = v.attributes || [], $e = 0; $e < ze.length; $e++)
|
|
468
|
-
Fe += " " + ze[$e].name + "=" + W(ie(ze[$e].value), "double",
|
|
468
|
+
Fe += " " + ze[$e].name + "=" + W(ie(ze[$e].value), "double", O);
|
|
469
469
|
return Fe += ">", v.childNodes && v.childNodes.length && (Fe += "..."), Fe += "</" + x.call(String(v.nodeName)) + ">", Fe;
|
|
470
470
|
}
|
|
471
471
|
if (re(v)) {
|
|
472
472
|
if (v.length === 0)
|
|
473
473
|
return "[]";
|
|
474
474
|
var We = ge(v, H);
|
|
475
|
-
return j && !
|
|
475
|
+
return j && !Ce(We) ? "[" + he(We, j) + "]" : "[ " + M.call(We, ", ") + " ]";
|
|
476
476
|
}
|
|
477
477
|
if (ue(v)) {
|
|
478
478
|
var Ke = ge(v, H);
|
|
479
|
-
return !("cause" in Error.prototype) && "cause" in v && !z.call(v, "cause") ? "{ [" + String(v) + "] " + M.call(
|
|
479
|
+
return !("cause" in Error.prototype) && "cause" in v && !z.call(v, "cause") ? "{ [" + String(v) + "] " + M.call(N.call("[cause]: " + H(v.cause), Ke), ", ") + " }" : Ke.length === 0 ? "[" + String(v) + "]" : "{ [" + String(v) + "] " + M.call(Ke, ", ") + " }";
|
|
480
480
|
}
|
|
481
481
|
if (typeof v == "object" && G) {
|
|
482
482
|
if (X && typeof v[X] == "function" && Q)
|
|
@@ -490,7 +490,7 @@ function ot() {
|
|
|
490
490
|
br.push(H(Be, v, !0) + " => " + H(Me, v));
|
|
491
491
|
}), we("Map", a.call(v), br, j);
|
|
492
492
|
}
|
|
493
|
-
if (
|
|
493
|
+
if (Re(v)) {
|
|
494
494
|
var Sr = [];
|
|
495
495
|
return l.call(v, function(Me) {
|
|
496
496
|
Sr.push(H(Me, v));
|
|
@@ -505,172 +505,172 @@ function ot() {
|
|
|
505
505
|
if (de(v))
|
|
506
506
|
return le(H(Number(v)));
|
|
507
507
|
if (ye(v))
|
|
508
|
-
return le(H(
|
|
508
|
+
return le(H(L.call(v)));
|
|
509
509
|
if (pe(v))
|
|
510
510
|
return le(f.call(v));
|
|
511
511
|
if (oe(v))
|
|
512
512
|
return le(H(String(v)));
|
|
513
513
|
if (!te(v) && !ce(v)) {
|
|
514
|
-
var He = ge(v, H), wr = _ ? _(v) === Object.prototype : v instanceof Object || v.constructor === Object, Je = v instanceof Object ? "" : "null prototype", Er = !wr && U && Object(v) === v && U in v ? A.call(ee(v), 8, -1) : Je ? "Object" : "", Hr = wr || typeof v.constructor != "function" ? "" : v.constructor.name ? v.constructor.name + " " : "", qe = Hr + (Er || Je ? "[" + M.call(
|
|
514
|
+
var He = ge(v, H), wr = _ ? _(v) === Object.prototype : v instanceof Object || v.constructor === Object, Je = v instanceof Object ? "" : "null prototype", Er = !wr && U && Object(v) === v && U in v ? A.call(ee(v), 8, -1) : Je ? "Object" : "", Hr = wr || typeof v.constructor != "function" ? "" : v.constructor.name ? v.constructor.name + " " : "", qe = Hr + (Er || Je ? "[" + M.call(N.call([], Er || [], Je || []), ": ") + "] " : "");
|
|
515
515
|
return He.length === 0 ? qe + "{}" : j ? qe + "{" + he(He, j) + "}" : qe + "{ " + M.call(He, ", ") + " }";
|
|
516
516
|
}
|
|
517
517
|
return String(v);
|
|
518
518
|
};
|
|
519
|
-
function W(
|
|
519
|
+
function W(h, v, D) {
|
|
520
520
|
var d = (D.quoteStyle || v) === "double" ? '"' : "'";
|
|
521
|
-
return d +
|
|
521
|
+
return d + h + d;
|
|
522
522
|
}
|
|
523
|
-
function ie(
|
|
524
|
-
return S.call(String(
|
|
523
|
+
function ie(h) {
|
|
524
|
+
return S.call(String(h), /"/g, """);
|
|
525
525
|
}
|
|
526
|
-
function re(
|
|
527
|
-
return ee(
|
|
526
|
+
function re(h) {
|
|
527
|
+
return ee(h) === "[object Array]" && (!U || !(typeof h == "object" && U in h));
|
|
528
528
|
}
|
|
529
|
-
function te(
|
|
530
|
-
return ee(
|
|
529
|
+
function te(h) {
|
|
530
|
+
return ee(h) === "[object Date]" && (!U || !(typeof h == "object" && U in h));
|
|
531
531
|
}
|
|
532
|
-
function ce(
|
|
533
|
-
return ee(
|
|
532
|
+
function ce(h) {
|
|
533
|
+
return ee(h) === "[object RegExp]" && (!U || !(typeof h == "object" && U in h));
|
|
534
534
|
}
|
|
535
|
-
function ue(
|
|
536
|
-
return ee(
|
|
535
|
+
function ue(h) {
|
|
536
|
+
return ee(h) === "[object Error]" && (!U || !(typeof h == "object" && U in h));
|
|
537
537
|
}
|
|
538
|
-
function oe(
|
|
539
|
-
return ee(
|
|
538
|
+
function oe(h) {
|
|
539
|
+
return ee(h) === "[object String]" && (!U || !(typeof h == "object" && U in h));
|
|
540
540
|
}
|
|
541
|
-
function de(
|
|
542
|
-
return ee(
|
|
541
|
+
function de(h) {
|
|
542
|
+
return ee(h) === "[object Number]" && (!U || !(typeof h == "object" && U in h));
|
|
543
543
|
}
|
|
544
|
-
function pe(
|
|
545
|
-
return ee(
|
|
544
|
+
function pe(h) {
|
|
545
|
+
return ee(h) === "[object Boolean]" && (!U || !(typeof h == "object" && U in h));
|
|
546
546
|
}
|
|
547
|
-
function se(
|
|
547
|
+
function se(h) {
|
|
548
548
|
if (k)
|
|
549
|
-
return
|
|
550
|
-
if (typeof
|
|
549
|
+
return h && typeof h == "object" && h instanceof Symbol;
|
|
550
|
+
if (typeof h == "symbol")
|
|
551
551
|
return !0;
|
|
552
|
-
if (!
|
|
552
|
+
if (!h || typeof h != "object" || !R)
|
|
553
553
|
return !1;
|
|
554
554
|
try {
|
|
555
|
-
return
|
|
555
|
+
return R.call(h), !0;
|
|
556
556
|
} catch {
|
|
557
557
|
}
|
|
558
558
|
return !1;
|
|
559
559
|
}
|
|
560
|
-
function ye(
|
|
561
|
-
if (!
|
|
560
|
+
function ye(h) {
|
|
561
|
+
if (!h || typeof h != "object" || !L)
|
|
562
562
|
return !1;
|
|
563
563
|
try {
|
|
564
|
-
return
|
|
564
|
+
return L.call(h), !0;
|
|
565
565
|
} catch {
|
|
566
566
|
}
|
|
567
567
|
return !1;
|
|
568
568
|
}
|
|
569
|
-
var Se = Object.prototype.hasOwnProperty || function(
|
|
570
|
-
return
|
|
569
|
+
var Se = Object.prototype.hasOwnProperty || function(h) {
|
|
570
|
+
return h in this;
|
|
571
571
|
};
|
|
572
|
-
function J(
|
|
573
|
-
return Se.call(
|
|
572
|
+
function J(h, v) {
|
|
573
|
+
return Se.call(h, v);
|
|
574
574
|
}
|
|
575
|
-
function ee(
|
|
576
|
-
return
|
|
575
|
+
function ee(h) {
|
|
576
|
+
return g.call(h);
|
|
577
577
|
}
|
|
578
|
-
function
|
|
579
|
-
if (
|
|
580
|
-
return
|
|
581
|
-
var v = s.call(c.call(
|
|
578
|
+
function Ie(h) {
|
|
579
|
+
if (h.name)
|
|
580
|
+
return h.name;
|
|
581
|
+
var v = s.call(c.call(h), /^function\s*([\w$]+)/);
|
|
582
582
|
return v ? v[1] : null;
|
|
583
583
|
}
|
|
584
|
-
function xe(
|
|
585
|
-
if (
|
|
586
|
-
return
|
|
587
|
-
for (var D = 0, d =
|
|
588
|
-
if (
|
|
584
|
+
function xe(h, v) {
|
|
585
|
+
if (h.indexOf)
|
|
586
|
+
return h.indexOf(v);
|
|
587
|
+
for (var D = 0, d = h.length; D < d; D++)
|
|
588
|
+
if (h[D] === v)
|
|
589
589
|
return D;
|
|
590
590
|
return -1;
|
|
591
591
|
}
|
|
592
|
-
function Te(
|
|
593
|
-
if (!a || !
|
|
592
|
+
function Te(h) {
|
|
593
|
+
if (!a || !h || typeof h != "object")
|
|
594
594
|
return !1;
|
|
595
595
|
try {
|
|
596
|
-
a.call(
|
|
596
|
+
a.call(h);
|
|
597
597
|
try {
|
|
598
|
-
y.call(
|
|
598
|
+
y.call(h);
|
|
599
599
|
} catch {
|
|
600
600
|
return !0;
|
|
601
601
|
}
|
|
602
|
-
return
|
|
602
|
+
return h instanceof Map;
|
|
603
603
|
} catch {
|
|
604
604
|
}
|
|
605
605
|
return !1;
|
|
606
606
|
}
|
|
607
|
-
function me(
|
|
608
|
-
if (!m || !
|
|
607
|
+
function me(h) {
|
|
608
|
+
if (!m || !h || typeof h != "object")
|
|
609
609
|
return !1;
|
|
610
610
|
try {
|
|
611
|
-
m.call(
|
|
611
|
+
m.call(h, m);
|
|
612
612
|
try {
|
|
613
|
-
b.call(
|
|
613
|
+
b.call(h, b);
|
|
614
614
|
} catch {
|
|
615
615
|
return !0;
|
|
616
616
|
}
|
|
617
|
-
return
|
|
617
|
+
return h instanceof WeakMap;
|
|
618
618
|
} catch {
|
|
619
619
|
}
|
|
620
620
|
return !1;
|
|
621
621
|
}
|
|
622
|
-
function Pe(
|
|
623
|
-
if (!o || !
|
|
622
|
+
function Pe(h) {
|
|
623
|
+
if (!o || !h || typeof h != "object")
|
|
624
624
|
return !1;
|
|
625
625
|
try {
|
|
626
|
-
return o.call(
|
|
626
|
+
return o.call(h), !0;
|
|
627
627
|
} catch {
|
|
628
628
|
}
|
|
629
629
|
return !1;
|
|
630
630
|
}
|
|
631
|
-
function
|
|
632
|
-
if (!y || !
|
|
631
|
+
function Re(h) {
|
|
632
|
+
if (!y || !h || typeof h != "object")
|
|
633
633
|
return !1;
|
|
634
634
|
try {
|
|
635
|
-
y.call(
|
|
635
|
+
y.call(h);
|
|
636
636
|
try {
|
|
637
|
-
a.call(
|
|
637
|
+
a.call(h);
|
|
638
638
|
} catch {
|
|
639
639
|
return !0;
|
|
640
640
|
}
|
|
641
|
-
return
|
|
641
|
+
return h instanceof Set;
|
|
642
642
|
} catch {
|
|
643
643
|
}
|
|
644
644
|
return !1;
|
|
645
645
|
}
|
|
646
|
-
function ke(
|
|
647
|
-
if (!b || !
|
|
646
|
+
function ke(h) {
|
|
647
|
+
if (!b || !h || typeof h != "object")
|
|
648
648
|
return !1;
|
|
649
649
|
try {
|
|
650
|
-
b.call(
|
|
650
|
+
b.call(h, b);
|
|
651
651
|
try {
|
|
652
|
-
m.call(
|
|
652
|
+
m.call(h, m);
|
|
653
653
|
} catch {
|
|
654
654
|
return !0;
|
|
655
655
|
}
|
|
656
|
-
return
|
|
656
|
+
return h instanceof WeakSet;
|
|
657
657
|
} catch {
|
|
658
658
|
}
|
|
659
659
|
return !1;
|
|
660
660
|
}
|
|
661
|
-
function _e(
|
|
662
|
-
return !
|
|
661
|
+
function _e(h) {
|
|
662
|
+
return !h || typeof h != "object" ? !1 : typeof HTMLElement < "u" && h instanceof HTMLElement ? !0 : typeof h.nodeName == "string" && typeof h.getAttribute == "function";
|
|
663
663
|
}
|
|
664
|
-
function
|
|
665
|
-
if (
|
|
666
|
-
var D =
|
|
667
|
-
return
|
|
664
|
+
function Oe(h, v) {
|
|
665
|
+
if (h.length > v.maxStringLength) {
|
|
666
|
+
var D = h.length - v.maxStringLength, d = "... " + D + " more character" + (D > 1 ? "s" : "");
|
|
667
|
+
return Oe(A.call(h, 0, v.maxStringLength), v) + d;
|
|
668
668
|
}
|
|
669
|
-
var E = S.call(S.call(
|
|
669
|
+
var E = S.call(S.call(h, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Ne);
|
|
670
670
|
return W(E, "single", v);
|
|
671
671
|
}
|
|
672
|
-
function
|
|
673
|
-
var v =
|
|
672
|
+
function Ne(h) {
|
|
673
|
+
var v = h.charCodeAt(0), D = {
|
|
674
674
|
8: "b",
|
|
675
675
|
9: "t",
|
|
676
676
|
10: "n",
|
|
@@ -679,29 +679,29 @@ function ot() {
|
|
|
679
679
|
}[v];
|
|
680
680
|
return D ? "\\" + D : "\\x" + (v < 16 ? "0" : "") + P.call(v.toString(16));
|
|
681
681
|
}
|
|
682
|
-
function le(
|
|
683
|
-
return "Object(" +
|
|
682
|
+
function le(h) {
|
|
683
|
+
return "Object(" + h + ")";
|
|
684
684
|
}
|
|
685
|
-
function fe(
|
|
686
|
-
return
|
|
685
|
+
function fe(h) {
|
|
686
|
+
return h + " { ? }";
|
|
687
687
|
}
|
|
688
|
-
function we(
|
|
688
|
+
function we(h, v, D, d) {
|
|
689
689
|
var E = d ? he(D, d) : M.call(D, ", ");
|
|
690
|
-
return
|
|
690
|
+
return h + " (" + v + ") {" + E + "}";
|
|
691
691
|
}
|
|
692
|
-
function
|
|
693
|
-
for (var v = 0; v <
|
|
694
|
-
if (xe(
|
|
692
|
+
function Ce(h) {
|
|
693
|
+
for (var v = 0; v < h.length; v++)
|
|
694
|
+
if (xe(h[v], `
|
|
695
695
|
`) >= 0)
|
|
696
696
|
return !1;
|
|
697
697
|
return !0;
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function Le(h, v) {
|
|
700
700
|
var D;
|
|
701
|
-
if (
|
|
701
|
+
if (h.indent === " ")
|
|
702
702
|
D = " ";
|
|
703
|
-
else if (typeof
|
|
704
|
-
D = M.call(Array(
|
|
703
|
+
else if (typeof h.indent == "number" && h.indent > 0)
|
|
704
|
+
D = M.call(Array(h.indent + 1), " ");
|
|
705
705
|
else
|
|
706
706
|
return null;
|
|
707
707
|
return {
|
|
@@ -709,40 +709,40 @@ function ot() {
|
|
|
709
709
|
prev: M.call(Array(v + 1), D)
|
|
710
710
|
};
|
|
711
711
|
}
|
|
712
|
-
function he(
|
|
713
|
-
if (
|
|
712
|
+
function he(h, v) {
|
|
713
|
+
if (h.length === 0)
|
|
714
714
|
return "";
|
|
715
715
|
var D = `
|
|
716
716
|
` + v.prev + v.base;
|
|
717
|
-
return D + M.call(
|
|
717
|
+
return D + M.call(h, "," + D) + `
|
|
718
718
|
` + v.prev;
|
|
719
719
|
}
|
|
720
|
-
function ge(
|
|
721
|
-
var D = re(
|
|
720
|
+
function ge(h, v) {
|
|
721
|
+
var D = re(h), d = [];
|
|
722
722
|
if (D) {
|
|
723
|
-
d.length =
|
|
724
|
-
for (var E = 0; E <
|
|
725
|
-
d[E] = J(
|
|
723
|
+
d.length = h.length;
|
|
724
|
+
for (var E = 0; E < h.length; E++)
|
|
725
|
+
d[E] = J(h, E) ? v(h[E], h) : "";
|
|
726
726
|
}
|
|
727
|
-
var
|
|
727
|
+
var O = typeof F == "function" ? F(h) : [], G;
|
|
728
728
|
if (k) {
|
|
729
729
|
G = {};
|
|
730
|
-
for (var ae = 0; ae <
|
|
731
|
-
G["$" +
|
|
730
|
+
for (var ae = 0; ae < O.length; ae++)
|
|
731
|
+
G["$" + O[ae]] = O[ae];
|
|
732
732
|
}
|
|
733
|
-
for (var K in
|
|
734
|
-
J(
|
|
733
|
+
for (var K in h)
|
|
734
|
+
J(h, K) && (D && String(Number(K)) === K && K < h.length || k && G["$" + K] instanceof Symbol || (T.call(/[^\w$]/, K) ? d.push(v(K, h) + ": " + v(h[K], h)) : d.push(K + ": " + v(h[K], h))));
|
|
735
735
|
if (typeof F == "function")
|
|
736
|
-
for (var
|
|
737
|
-
z.call(
|
|
736
|
+
for (var C = 0; C < O.length; C++)
|
|
737
|
+
z.call(h, O[C]) && d.push("[" + v(O[C]) + "]: " + v(h[O[C]], h));
|
|
738
738
|
return d;
|
|
739
739
|
}
|
|
740
740
|
return nr;
|
|
741
741
|
}
|
|
742
|
-
var ir,
|
|
742
|
+
var ir, Nr;
|
|
743
743
|
function st() {
|
|
744
|
-
if (
|
|
745
|
-
|
|
744
|
+
if (Nr) return ir;
|
|
745
|
+
Nr = 1;
|
|
746
746
|
var e = hr(), r = tt(), a = /* @__PURE__ */ ot(), t = e("%TypeError%"), n = e("%WeakMap%", !0), i = e("%Map%", !0), y = r("WeakMap.prototype.get", !0), l = r("WeakMap.prototype.set", !0), p = r("WeakMap.prototype.has", !0), m = r("Map.prototype.get", !0), w = r("Map.prototype.set", !0), b = r("Map.prototype.has", !0), u = function(c, s) {
|
|
747
747
|
for (var A = c, S; (S = A.next) !== null; A = S)
|
|
748
748
|
if (S.key === s)
|
|
@@ -758,7 +758,7 @@ function st() {
|
|
|
758
758
|
next: c.next,
|
|
759
759
|
value: A
|
|
760
760
|
};
|
|
761
|
-
},
|
|
761
|
+
}, g = function(c, s) {
|
|
762
762
|
return !!u(c, s);
|
|
763
763
|
};
|
|
764
764
|
return ir = function() {
|
|
@@ -785,7 +785,7 @@ function st() {
|
|
|
785
785
|
if (A)
|
|
786
786
|
return b(A, x);
|
|
787
787
|
} else if (S)
|
|
788
|
-
return
|
|
788
|
+
return g(S, x);
|
|
789
789
|
return !1;
|
|
790
790
|
},
|
|
791
791
|
set: function(x, T) {
|
|
@@ -795,10 +795,10 @@ function st() {
|
|
|
795
795
|
return P;
|
|
796
796
|
}, ir;
|
|
797
797
|
}
|
|
798
|
-
var or,
|
|
798
|
+
var or, Lr;
|
|
799
799
|
function gr() {
|
|
800
|
-
if (
|
|
801
|
-
|
|
800
|
+
if (Lr) return or;
|
|
801
|
+
Lr = 1;
|
|
802
802
|
var e = String.prototype.replace, r = /%20/g, a = {
|
|
803
803
|
RFC1738: "RFC1738",
|
|
804
804
|
RFC3986: "RFC3986"
|
|
@@ -822,9 +822,9 @@ function Wr() {
|
|
|
822
822
|
if (Fr) return sr;
|
|
823
823
|
Fr = 1;
|
|
824
824
|
var e = gr(), r = Object.prototype.hasOwnProperty, a = Array.isArray, t = (function() {
|
|
825
|
-
for (var
|
|
826
|
-
|
|
827
|
-
return
|
|
825
|
+
for (var g = [], c = 0; c < 256; ++c)
|
|
826
|
+
g.push("%" + ((c < 16 ? "0" : "") + c.toString(16)).toUpperCase());
|
|
827
|
+
return g;
|
|
828
828
|
})(), n = function(c) {
|
|
829
829
|
for (; c.length > 1; ) {
|
|
830
830
|
var s = c.pop(), A = s.obj[s.prop];
|
|
@@ -838,7 +838,7 @@ function Wr() {
|
|
|
838
838
|
for (var A = s && s.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, S = 0; S < c.length; ++S)
|
|
839
839
|
typeof c[S] < "u" && (A[S] = c[S]);
|
|
840
840
|
return A;
|
|
841
|
-
}, y = function
|
|
841
|
+
}, y = function g(c, s, A) {
|
|
842
842
|
if (!s)
|
|
843
843
|
return c;
|
|
844
844
|
if (typeof s != "object") {
|
|
@@ -856,19 +856,19 @@ function Wr() {
|
|
|
856
856
|
return a(c) && !a(s) && (S = i(c, A)), a(c) && a(s) ? (s.forEach(function(P, x) {
|
|
857
857
|
if (r.call(c, x)) {
|
|
858
858
|
var T = c[x];
|
|
859
|
-
T && typeof T == "object" && P && typeof P == "object" ? c[x] =
|
|
859
|
+
T && typeof T == "object" && P && typeof P == "object" ? c[x] = g(T, P, A) : c.push(P);
|
|
860
860
|
} else
|
|
861
861
|
c[x] = P;
|
|
862
862
|
}), c) : Object.keys(s).reduce(function(P, x) {
|
|
863
863
|
var T = s[x];
|
|
864
|
-
return r.call(P, x) ? P[x] =
|
|
864
|
+
return r.call(P, x) ? P[x] = g(P[x], T, A) : P[x] = T, P;
|
|
865
865
|
}, S);
|
|
866
866
|
}, l = function(c, s) {
|
|
867
867
|
return Object.keys(s).reduce(function(A, S) {
|
|
868
868
|
return A[S] = s[S], A;
|
|
869
869
|
}, c);
|
|
870
|
-
}, p = function(
|
|
871
|
-
var A =
|
|
870
|
+
}, p = function(g, c, s) {
|
|
871
|
+
var A = g.replace(/\+/g, " ");
|
|
872
872
|
if (s === "iso-8859-1")
|
|
873
873
|
return A.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
874
874
|
try {
|
|
@@ -884,10 +884,10 @@ function Wr() {
|
|
|
884
884
|
return escape(x).replace(/%u[0-9a-f]{4}/gi, function(V) {
|
|
885
885
|
return "%26%23" + parseInt(V.slice(2), 16) + "%3B";
|
|
886
886
|
});
|
|
887
|
-
for (var T = "",
|
|
888
|
-
var M = x.charCodeAt(
|
|
887
|
+
for (var T = "", N = 0; N < x.length; ++N) {
|
|
888
|
+
var M = x.charCodeAt(N);
|
|
889
889
|
if (M === 45 || M === 46 || M === 95 || M === 126 || M >= 48 && M <= 57 || M >= 65 && M <= 90 || M >= 97 && M <= 122 || P === e.RFC1738 && (M === 40 || M === 41)) {
|
|
890
|
-
T += x.charAt(
|
|
890
|
+
T += x.charAt(N);
|
|
891
891
|
continue;
|
|
892
892
|
}
|
|
893
893
|
if (M < 128) {
|
|
@@ -902,13 +902,13 @@ function Wr() {
|
|
|
902
902
|
T = T + (t[224 | M >> 12] + t[128 | M >> 6 & 63] + t[128 | M & 63]);
|
|
903
903
|
continue;
|
|
904
904
|
}
|
|
905
|
-
|
|
905
|
+
N += 1, M = 65536 + ((M & 1023) << 10 | x.charCodeAt(N) & 1023), T += t[240 | M >> 18] + t[128 | M >> 12 & 63] + t[128 | M >> 6 & 63] + t[128 | M & 63];
|
|
906
906
|
}
|
|
907
907
|
return T;
|
|
908
908
|
}, w = function(c) {
|
|
909
909
|
for (var s = [{ obj: { o: c }, prop: "o" }], A = [], S = 0; S < s.length; ++S)
|
|
910
|
-
for (var P = s[S], x = P.obj[P.prop], T = Object.keys(x),
|
|
911
|
-
var M = T[
|
|
910
|
+
for (var P = s[S], x = P.obj[P.prop], T = Object.keys(x), N = 0; N < T.length; ++N) {
|
|
911
|
+
var M = T[N], V = x[M];
|
|
912
912
|
typeof V == "object" && V !== null && A.indexOf(V) === -1 && (s.push({ obj: x, prop: M }), A.push(V));
|
|
913
913
|
}
|
|
914
914
|
return n(s), c;
|
|
@@ -976,7 +976,7 @@ function ut() {
|
|
|
976
976
|
strictNullHandling: !1
|
|
977
977
|
}, u = function(s) {
|
|
978
978
|
return typeof s == "string" || typeof s == "number" || typeof s == "boolean" || typeof s == "symbol" || typeof s == "bigint";
|
|
979
|
-
}, o = {}, f = function c(s, A, S, P, x, T,
|
|
979
|
+
}, o = {}, f = function c(s, A, S, P, x, T, N, M, V, $, L, F, R, k, U, z) {
|
|
980
980
|
for (var _ = s, Z = z, Q = 0, ne = !1; (Z = Z.get(o)) !== void 0 && !ne; ) {
|
|
981
981
|
var X = Z.get(s);
|
|
982
982
|
if (Q += 1, typeof X < "u") {
|
|
@@ -986,24 +986,24 @@ function ut() {
|
|
|
986
986
|
}
|
|
987
987
|
typeof Z.get(o) > "u" && (Q = 0);
|
|
988
988
|
}
|
|
989
|
-
if (typeof M == "function" ? _ = M(A, _) : _ instanceof Date ? _ =
|
|
990
|
-
return ee instanceof Date ?
|
|
989
|
+
if (typeof M == "function" ? _ = M(A, _) : _ instanceof Date ? _ = L(_) : S === "comma" && i(_) && (_ = r.maybeMap(_, function(ee) {
|
|
990
|
+
return ee instanceof Date ? L(ee) : ee;
|
|
991
991
|
})), _ === null) {
|
|
992
992
|
if (x)
|
|
993
|
-
return
|
|
993
|
+
return N && !k ? N(A, b.encoder, U, "key", F) : A;
|
|
994
994
|
_ = "";
|
|
995
995
|
}
|
|
996
996
|
if (u(_) || r.isBuffer(_)) {
|
|
997
|
-
if (
|
|
998
|
-
var W = k ? A :
|
|
997
|
+
if (N) {
|
|
998
|
+
var W = k ? A : N(A, b.encoder, U, "key", F);
|
|
999
999
|
if (S === "comma" && k) {
|
|
1000
1000
|
for (var ie = y.call(String(_), ","), re = "", te = 0; te < ie.length; ++te)
|
|
1001
|
-
re += (te === 0 ? "" : ",") +
|
|
1002
|
-
return [
|
|
1001
|
+
re += (te === 0 ? "" : ",") + R(N(ie[te], b.encoder, U, "value", F));
|
|
1002
|
+
return [R(W) + (P && i(_) && ie.length === 1 ? "[]" : "") + "=" + re];
|
|
1003
1003
|
}
|
|
1004
|
-
return [
|
|
1004
|
+
return [R(W) + "=" + R(N(_, b.encoder, U, "value", F))];
|
|
1005
1005
|
}
|
|
1006
|
-
return [
|
|
1006
|
+
return [R(A) + "=" + R(String(_))];
|
|
1007
1007
|
}
|
|
1008
1008
|
var ce = [];
|
|
1009
1009
|
if (typeof _ > "u")
|
|
@@ -1030,13 +1030,13 @@ function ut() {
|
|
|
1030
1030
|
P,
|
|
1031
1031
|
x,
|
|
1032
1032
|
T,
|
|
1033
|
-
|
|
1033
|
+
N,
|
|
1034
1034
|
M,
|
|
1035
1035
|
V,
|
|
1036
1036
|
$,
|
|
1037
|
-
|
|
1037
|
+
L,
|
|
1038
1038
|
F,
|
|
1039
|
-
|
|
1039
|
+
R,
|
|
1040
1040
|
k,
|
|
1041
1041
|
U,
|
|
1042
1042
|
J
|
|
@@ -1044,7 +1044,7 @@ function ut() {
|
|
|
1044
1044
|
}
|
|
1045
1045
|
}
|
|
1046
1046
|
return ce;
|
|
1047
|
-
},
|
|
1047
|
+
}, g = function(s) {
|
|
1048
1048
|
if (!s)
|
|
1049
1049
|
return b;
|
|
1050
1050
|
if (s.encoder !== null && typeof s.encoder < "u" && typeof s.encoder != "function")
|
|
@@ -1078,20 +1078,20 @@ function ut() {
|
|
|
1078
1078
|
};
|
|
1079
1079
|
};
|
|
1080
1080
|
return ur = function(c, s) {
|
|
1081
|
-
var A = c, S =
|
|
1081
|
+
var A = c, S = g(s), P, x;
|
|
1082
1082
|
typeof S.filter == "function" ? (x = S.filter, A = x("", A)) : i(S.filter) && (x = S.filter, P = x);
|
|
1083
1083
|
var T = [];
|
|
1084
1084
|
if (typeof A != "object" || A === null)
|
|
1085
1085
|
return "";
|
|
1086
|
-
var
|
|
1087
|
-
s && s.arrayFormat in n ?
|
|
1088
|
-
var M = n[
|
|
1086
|
+
var N;
|
|
1087
|
+
s && s.arrayFormat in n ? N = s.arrayFormat : s && "indices" in s ? N = s.indices ? "indices" : "repeat" : N = "indices";
|
|
1088
|
+
var M = n[N];
|
|
1089
1089
|
if (s && "commaRoundTrip" in s && typeof s.commaRoundTrip != "boolean")
|
|
1090
1090
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
1091
1091
|
var V = M === "comma" && s && s.commaRoundTrip;
|
|
1092
1092
|
P || (P = Object.keys(A)), S.sort && P.sort(S.sort);
|
|
1093
|
-
for (var $ = e(),
|
|
1094
|
-
var F = P[
|
|
1093
|
+
for (var $ = e(), L = 0; L < P.length; ++L) {
|
|
1094
|
+
var F = P[L];
|
|
1095
1095
|
S.skipNulls && A[F] === null || p(T, f(
|
|
1096
1096
|
A[F],
|
|
1097
1097
|
F,
|
|
@@ -1111,8 +1111,8 @@ function ut() {
|
|
|
1111
1111
|
$
|
|
1112
1112
|
));
|
|
1113
1113
|
}
|
|
1114
|
-
var
|
|
1115
|
-
return S.charsetSentinel && (S.charset === "iso-8859-1" ? k += "utf8=%26%2310003%3B&" : k += "utf8=%E2%9C%93&"),
|
|
1114
|
+
var R = T.join(S.delimiter), k = S.addQueryPrefix === !0 ? "?" : "";
|
|
1115
|
+
return S.charsetSentinel && (S.charset === "iso-8859-1" ? k += "utf8=%26%2310003%3B&" : k += "utf8=%E2%9C%93&"), R.length > 0 ? k + R : "";
|
|
1116
1116
|
}, ur;
|
|
1117
1117
|
}
|
|
1118
1118
|
var cr, $r;
|
|
@@ -1143,23 +1143,23 @@ function ct() {
|
|
|
1143
1143
|
}, i = function(u, o) {
|
|
1144
1144
|
return u && typeof u == "string" && o.comma && u.indexOf(",") > -1 ? u.split(",") : u;
|
|
1145
1145
|
}, y = "utf8=%26%2310003%3B", l = "utf8=%E2%9C%93", p = function(o, f) {
|
|
1146
|
-
var
|
|
1146
|
+
var g = {}, c = f.ignoreQueryPrefix ? o.replace(/^\?/, "") : o, s = f.parameterLimit === 1 / 0 ? void 0 : f.parameterLimit, A = c.split(f.delimiter, s), S = -1, P, x = f.charset;
|
|
1147
1147
|
if (f.charsetSentinel)
|
|
1148
1148
|
for (P = 0; P < A.length; ++P)
|
|
1149
1149
|
A[P].indexOf("utf8=") === 0 && (A[P] === l ? x = "utf-8" : A[P] === y && (x = "iso-8859-1"), S = P, P = A.length);
|
|
1150
1150
|
for (P = 0; P < A.length; ++P)
|
|
1151
1151
|
if (P !== S) {
|
|
1152
|
-
var T = A[P],
|
|
1152
|
+
var T = A[P], N = T.indexOf("]="), M = N === -1 ? T.indexOf("=") : N + 1, V, $;
|
|
1153
1153
|
M === -1 ? (V = f.decoder(T, t.decoder, x, "key"), $ = f.strictNullHandling ? null : "") : (V = f.decoder(T.slice(0, M), t.decoder, x, "key"), $ = e.maybeMap(
|
|
1154
1154
|
i(T.slice(M + 1), f),
|
|
1155
|
-
function(
|
|
1156
|
-
return f.decoder(
|
|
1155
|
+
function(L) {
|
|
1156
|
+
return f.decoder(L, t.decoder, x, "value");
|
|
1157
1157
|
}
|
|
1158
|
-
)), $ && f.interpretNumericEntities && x === "iso-8859-1" && ($ = n($)), T.indexOf("[]=") > -1 && ($ = a($) ? [$] : $), r.call(
|
|
1158
|
+
)), $ && f.interpretNumericEntities && x === "iso-8859-1" && ($ = n($)), T.indexOf("[]=") > -1 && ($ = a($) ? [$] : $), r.call(g, V) ? g[V] = e.combine(g[V], $) : g[V] = $;
|
|
1159
1159
|
}
|
|
1160
|
-
return
|
|
1161
|
-
}, m = function(u, o, f,
|
|
1162
|
-
for (var c =
|
|
1160
|
+
return g;
|
|
1161
|
+
}, m = function(u, o, f, g) {
|
|
1162
|
+
for (var c = g ? o : i(o, f), s = u.length - 1; s >= 0; --s) {
|
|
1163
1163
|
var A, S = u[s];
|
|
1164
1164
|
if (S === "[]" && f.parseArrays)
|
|
1165
1165
|
A = [].concat(c);
|
|
@@ -1171,20 +1171,20 @@ function ct() {
|
|
|
1171
1171
|
c = A;
|
|
1172
1172
|
}
|
|
1173
1173
|
return c;
|
|
1174
|
-
}, w = function(o, f,
|
|
1174
|
+
}, w = function(o, f, g, c) {
|
|
1175
1175
|
if (o) {
|
|
1176
|
-
var s =
|
|
1176
|
+
var s = g.allowDots ? o.replace(/\.([^.[]+)/g, "[$1]") : o, A = /(\[[^[\]]*])/, S = /(\[[^[\]]*])/g, P = g.depth > 0 && A.exec(s), x = P ? s.slice(0, P.index) : s, T = [];
|
|
1177
1177
|
if (x) {
|
|
1178
|
-
if (!
|
|
1178
|
+
if (!g.plainObjects && r.call(Object.prototype, x) && !g.allowPrototypes)
|
|
1179
1179
|
return;
|
|
1180
1180
|
T.push(x);
|
|
1181
1181
|
}
|
|
1182
|
-
for (var
|
|
1183
|
-
if (
|
|
1182
|
+
for (var N = 0; g.depth > 0 && (P = S.exec(s)) !== null && N < g.depth; ) {
|
|
1183
|
+
if (N += 1, !g.plainObjects && r.call(Object.prototype, P[1].slice(1, -1)) && !g.allowPrototypes)
|
|
1184
1184
|
return;
|
|
1185
1185
|
T.push(P[1]);
|
|
1186
1186
|
}
|
|
1187
|
-
return P && T.push("[" + s.slice(P.index) + "]"), m(T, f,
|
|
1187
|
+
return P && T.push("[" + s.slice(P.index) + "]"), m(T, f, g, c);
|
|
1188
1188
|
}
|
|
1189
1189
|
}, b = function(o) {
|
|
1190
1190
|
if (!o)
|
|
@@ -1218,8 +1218,8 @@ function ct() {
|
|
|
1218
1218
|
var f = b(o);
|
|
1219
1219
|
if (u === "" || u === null || typeof u > "u")
|
|
1220
1220
|
return f.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
1221
|
-
for (var
|
|
1222
|
-
var S = s[A], P = w(S,
|
|
1221
|
+
for (var g = typeof u == "string" ? p(u, f) : u, c = f.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, s = Object.keys(g), A = 0; A < s.length; ++A) {
|
|
1222
|
+
var S = s[A], P = w(S, g[S], f, typeof u == "string");
|
|
1223
1223
|
c = e.merge(c, P, f);
|
|
1224
1224
|
}
|
|
1225
1225
|
return f.allowSparse === !0 ? c : e.compact(c);
|
|
@@ -1237,7 +1237,7 @@ function lt() {
|
|
|
1237
1237
|
}, lr;
|
|
1238
1238
|
}
|
|
1239
1239
|
var ft = lt();
|
|
1240
|
-
const dt = /* @__PURE__ */ mr(ft), vr = "1.0.
|
|
1240
|
+
const dt = /* @__PURE__ */ mr(ft), vr = "1.0.8", pt = Ae.CancelToken;
|
|
1241
1241
|
var mt = function(e) {
|
|
1242
1242
|
var r;
|
|
1243
1243
|
typeof window < "u" && (r = e.cache.get("api"));
|
|
@@ -1314,9 +1314,9 @@ var mt = function(e) {
|
|
|
1314
1314
|
switch (o) {
|
|
1315
1315
|
case 204:
|
|
1316
1316
|
if (w < 5)
|
|
1317
|
-
return w++, new Promise(function(f,
|
|
1317
|
+
return w++, new Promise(function(f, g) {
|
|
1318
1318
|
setTimeout(function() {
|
|
1319
|
-
return m.request(u).then(f,
|
|
1319
|
+
return m.request(u).then(f, g);
|
|
1320
1320
|
}, 800);
|
|
1321
1321
|
});
|
|
1322
1322
|
console.log("Failed after 5 retries"), w = 0;
|
|
@@ -1337,11 +1337,11 @@ var mt = function(e) {
|
|
|
1337
1337
|
var f = parseInt(
|
|
1338
1338
|
b?.response?.headers?.["retry-after"],
|
|
1339
1339
|
10
|
|
1340
|
-
),
|
|
1340
|
+
), g = Number.isFinite(f) ? f * 1e3 : 800 * o.__retry429, c = Math.floor(Math.random() * 500);
|
|
1341
1341
|
return new Promise(function(s, A) {
|
|
1342
1342
|
setTimeout(function() {
|
|
1343
1343
|
return m.request(o).then(s, A);
|
|
1344
|
-
},
|
|
1344
|
+
}, g + c);
|
|
1345
1345
|
});
|
|
1346
1346
|
}
|
|
1347
1347
|
break;
|
|
@@ -1367,7 +1367,7 @@ function yt() {
|
|
|
1367
1367
|
if (Gr) return fr;
|
|
1368
1368
|
Gr = 1;
|
|
1369
1369
|
var e = "Expected a function", r = "__lodash_hash_undefined__", a = "[object Function]", t = "[object GeneratorFunction]", n = "[object Symbol]", i = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, y = /^\w*$/, l = /^\./, p = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, m = /[\\^$.*+?()[\]{}|]/g, w = /\\(\\)?/g, b = /^\[object .+?Constructor\]$/, u = typeof be == "object" && be && be.Object === Object && be, o = typeof self == "object" && self && self.Object === Object && self, f = u || o || Function("return this")();
|
|
1370
|
-
function
|
|
1370
|
+
function g(d, E) {
|
|
1371
1371
|
return d?.[E];
|
|
1372
1372
|
}
|
|
1373
1373
|
function c(d) {
|
|
@@ -1382,42 +1382,42 @@ function yt() {
|
|
|
1382
1382
|
var s = Array.prototype, A = Function.prototype, S = Object.prototype, P = f["__core-js_shared__"], x = (function() {
|
|
1383
1383
|
var d = /[^.]+$/.exec(P && P.keys && P.keys.IE_PROTO || "");
|
|
1384
1384
|
return d ? "Symbol(src)_1." + d : "";
|
|
1385
|
-
})(), T = A.toString,
|
|
1386
|
-
"^" + T.call(
|
|
1387
|
-
), $ = f.Symbol,
|
|
1385
|
+
})(), T = A.toString, N = S.hasOwnProperty, M = S.toString, V = RegExp(
|
|
1386
|
+
"^" + T.call(N).replace(m, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1387
|
+
), $ = f.Symbol, L = s.splice, F = Pe(f, "Map"), R = Pe(Object, "create"), k = $ ? $.prototype : void 0, U = k ? k.toString : void 0;
|
|
1388
1388
|
function z(d) {
|
|
1389
|
-
var E = -1,
|
|
1390
|
-
for (this.clear(); ++E <
|
|
1389
|
+
var E = -1, O = d ? d.length : 0;
|
|
1390
|
+
for (this.clear(); ++E < O; ) {
|
|
1391
1391
|
var G = d[E];
|
|
1392
1392
|
this.set(G[0], G[1]);
|
|
1393
1393
|
}
|
|
1394
1394
|
}
|
|
1395
1395
|
function _() {
|
|
1396
|
-
this.__data__ =
|
|
1396
|
+
this.__data__ = R ? R(null) : {};
|
|
1397
1397
|
}
|
|
1398
1398
|
function Z(d) {
|
|
1399
1399
|
return this.has(d) && delete this.__data__[d];
|
|
1400
1400
|
}
|
|
1401
1401
|
function Q(d) {
|
|
1402
1402
|
var E = this.__data__;
|
|
1403
|
-
if (
|
|
1404
|
-
var
|
|
1405
|
-
return
|
|
1403
|
+
if (R) {
|
|
1404
|
+
var O = E[d];
|
|
1405
|
+
return O === r ? void 0 : O;
|
|
1406
1406
|
}
|
|
1407
|
-
return
|
|
1407
|
+
return N.call(E, d) ? E[d] : void 0;
|
|
1408
1408
|
}
|
|
1409
1409
|
function ne(d) {
|
|
1410
1410
|
var E = this.__data__;
|
|
1411
|
-
return
|
|
1411
|
+
return R ? E[d] !== void 0 : N.call(E, d);
|
|
1412
1412
|
}
|
|
1413
1413
|
function X(d, E) {
|
|
1414
|
-
var
|
|
1415
|
-
return
|
|
1414
|
+
var O = this.__data__;
|
|
1415
|
+
return O[d] = R && E === void 0 ? r : E, this;
|
|
1416
1416
|
}
|
|
1417
1417
|
z.prototype.clear = _, z.prototype.delete = Z, z.prototype.get = Q, z.prototype.has = ne, z.prototype.set = X;
|
|
1418
1418
|
function W(d) {
|
|
1419
|
-
var E = -1,
|
|
1420
|
-
for (this.clear(); ++E <
|
|
1419
|
+
var E = -1, O = d ? d.length : 0;
|
|
1420
|
+
for (this.clear(); ++E < O; ) {
|
|
1421
1421
|
var G = d[E];
|
|
1422
1422
|
this.set(G[0], G[1]);
|
|
1423
1423
|
}
|
|
@@ -1426,27 +1426,27 @@ function yt() {
|
|
|
1426
1426
|
this.__data__ = [];
|
|
1427
1427
|
}
|
|
1428
1428
|
function re(d) {
|
|
1429
|
-
var E = this.__data__,
|
|
1430
|
-
if (
|
|
1429
|
+
var E = this.__data__, O = J(E, d);
|
|
1430
|
+
if (O < 0)
|
|
1431
1431
|
return !1;
|
|
1432
1432
|
var G = E.length - 1;
|
|
1433
|
-
return
|
|
1433
|
+
return O == G ? E.pop() : L.call(E, O, 1), !0;
|
|
1434
1434
|
}
|
|
1435
1435
|
function te(d) {
|
|
1436
|
-
var E = this.__data__,
|
|
1437
|
-
return
|
|
1436
|
+
var E = this.__data__, O = J(E, d);
|
|
1437
|
+
return O < 0 ? void 0 : E[O][1];
|
|
1438
1438
|
}
|
|
1439
1439
|
function ce(d) {
|
|
1440
1440
|
return J(this.__data__, d) > -1;
|
|
1441
1441
|
}
|
|
1442
1442
|
function ue(d, E) {
|
|
1443
|
-
var
|
|
1444
|
-
return G < 0 ?
|
|
1443
|
+
var O = this.__data__, G = J(O, d);
|
|
1444
|
+
return G < 0 ? O.push([d, E]) : O[G][1] = E, this;
|
|
1445
1445
|
}
|
|
1446
1446
|
W.prototype.clear = ie, W.prototype.delete = re, W.prototype.get = te, W.prototype.has = ce, W.prototype.set = ue;
|
|
1447
1447
|
function oe(d) {
|
|
1448
|
-
var E = -1,
|
|
1449
|
-
for (this.clear(); ++E <
|
|
1448
|
+
var E = -1, O = d ? d.length : 0;
|
|
1449
|
+
for (this.clear(); ++E < O; ) {
|
|
1450
1450
|
var G = d[E];
|
|
1451
1451
|
this.set(G[0], G[1]);
|
|
1452
1452
|
}
|
|
@@ -1472,47 +1472,47 @@ function yt() {
|
|
|
1472
1472
|
}
|
|
1473
1473
|
oe.prototype.clear = de, oe.prototype.delete = pe, oe.prototype.get = se, oe.prototype.has = ye, oe.prototype.set = Se;
|
|
1474
1474
|
function J(d, E) {
|
|
1475
|
-
for (var
|
|
1476
|
-
if (we(d[
|
|
1477
|
-
return
|
|
1475
|
+
for (var O = d.length; O--; )
|
|
1476
|
+
if (we(d[O][0], E))
|
|
1477
|
+
return O;
|
|
1478
1478
|
return -1;
|
|
1479
1479
|
}
|
|
1480
1480
|
function ee(d, E) {
|
|
1481
|
-
E =
|
|
1482
|
-
for (var
|
|
1483
|
-
d = d[
|
|
1484
|
-
return
|
|
1481
|
+
E = Re(E, d) ? [E] : Te(E);
|
|
1482
|
+
for (var O = 0, G = E.length; d != null && O < G; )
|
|
1483
|
+
d = d[Ne(E[O++])];
|
|
1484
|
+
return O && O == G ? d : void 0;
|
|
1485
1485
|
}
|
|
1486
|
-
function
|
|
1486
|
+
function Ie(d) {
|
|
1487
1487
|
if (!he(d) || _e(d))
|
|
1488
1488
|
return !1;
|
|
1489
|
-
var E =
|
|
1489
|
+
var E = Le(d) || c(d) ? V : b;
|
|
1490
1490
|
return E.test(le(d));
|
|
1491
1491
|
}
|
|
1492
1492
|
function xe(d) {
|
|
1493
1493
|
if (typeof d == "string")
|
|
1494
1494
|
return d;
|
|
1495
|
-
if (
|
|
1495
|
+
if (h(d))
|
|
1496
1496
|
return U ? U.call(d) : "";
|
|
1497
1497
|
var E = d + "";
|
|
1498
1498
|
return E == "0" && 1 / d == -1 / 0 ? "-0" : E;
|
|
1499
1499
|
}
|
|
1500
1500
|
function Te(d) {
|
|
1501
|
-
return
|
|
1501
|
+
return Ce(d) ? d : Oe(d);
|
|
1502
1502
|
}
|
|
1503
1503
|
function me(d, E) {
|
|
1504
|
-
var
|
|
1505
|
-
return ke(E) ?
|
|
1504
|
+
var O = d.__data__;
|
|
1505
|
+
return ke(E) ? O[typeof E == "string" ? "string" : "hash"] : O.map;
|
|
1506
1506
|
}
|
|
1507
1507
|
function Pe(d, E) {
|
|
1508
|
-
var
|
|
1509
|
-
return
|
|
1508
|
+
var O = g(d, E);
|
|
1509
|
+
return Ie(O) ? O : void 0;
|
|
1510
1510
|
}
|
|
1511
|
-
function
|
|
1512
|
-
if (
|
|
1511
|
+
function Re(d, E) {
|
|
1512
|
+
if (Ce(d))
|
|
1513
1513
|
return !1;
|
|
1514
|
-
var
|
|
1515
|
-
return
|
|
1514
|
+
var O = typeof d;
|
|
1515
|
+
return O == "number" || O == "symbol" || O == "boolean" || d == null || h(d) ? !0 : y.test(d) || !i.test(d) || E != null && d in Object(E);
|
|
1516
1516
|
}
|
|
1517
1517
|
function ke(d) {
|
|
1518
1518
|
var E = typeof d;
|
|
@@ -1521,15 +1521,15 @@ function yt() {
|
|
|
1521
1521
|
function _e(d) {
|
|
1522
1522
|
return !!x && x in d;
|
|
1523
1523
|
}
|
|
1524
|
-
var
|
|
1524
|
+
var Oe = fe(function(d) {
|
|
1525
1525
|
d = v(d);
|
|
1526
1526
|
var E = [];
|
|
1527
|
-
return l.test(d) && E.push(""), d.replace(p, function(
|
|
1528
|
-
E.push(ae ? K.replace(w, "$1") : G ||
|
|
1527
|
+
return l.test(d) && E.push(""), d.replace(p, function(O, G, ae, K) {
|
|
1528
|
+
E.push(ae ? K.replace(w, "$1") : G || O);
|
|
1529
1529
|
}), E;
|
|
1530
1530
|
});
|
|
1531
|
-
function
|
|
1532
|
-
if (typeof d == "string" ||
|
|
1531
|
+
function Ne(d) {
|
|
1532
|
+
if (typeof d == "string" || h(d))
|
|
1533
1533
|
return d;
|
|
1534
1534
|
var E = d + "";
|
|
1535
1535
|
return E == "0" && 1 / d == -1 / 0 ? "-0" : E;
|
|
@@ -1550,21 +1550,21 @@ function yt() {
|
|
|
1550
1550
|
function fe(d, E) {
|
|
1551
1551
|
if (typeof d != "function" || E && typeof E != "function")
|
|
1552
1552
|
throw new TypeError(e);
|
|
1553
|
-
var
|
|
1554
|
-
var G = arguments, ae = E ? E.apply(this, G) : G[0], K =
|
|
1553
|
+
var O = function() {
|
|
1554
|
+
var G = arguments, ae = E ? E.apply(this, G) : G[0], K = O.cache;
|
|
1555
1555
|
if (K.has(ae))
|
|
1556
1556
|
return K.get(ae);
|
|
1557
|
-
var
|
|
1558
|
-
return
|
|
1557
|
+
var C = d.apply(this, G);
|
|
1558
|
+
return O.cache = K.set(ae, C), C;
|
|
1559
1559
|
};
|
|
1560
|
-
return
|
|
1560
|
+
return O.cache = new (fe.Cache || oe)(), O;
|
|
1561
1561
|
}
|
|
1562
1562
|
fe.Cache = oe;
|
|
1563
1563
|
function we(d, E) {
|
|
1564
1564
|
return d === E || d !== d && E !== E;
|
|
1565
1565
|
}
|
|
1566
|
-
var
|
|
1567
|
-
function
|
|
1566
|
+
var Ce = Array.isArray;
|
|
1567
|
+
function Le(d) {
|
|
1568
1568
|
var E = he(d) ? M.call(d) : "";
|
|
1569
1569
|
return E == a || E == t;
|
|
1570
1570
|
}
|
|
@@ -1575,15 +1575,15 @@ function yt() {
|
|
|
1575
1575
|
function ge(d) {
|
|
1576
1576
|
return !!d && typeof d == "object";
|
|
1577
1577
|
}
|
|
1578
|
-
function
|
|
1578
|
+
function h(d) {
|
|
1579
1579
|
return typeof d == "symbol" || ge(d) && M.call(d) == n;
|
|
1580
1580
|
}
|
|
1581
1581
|
function v(d) {
|
|
1582
1582
|
return d == null ? "" : xe(d);
|
|
1583
1583
|
}
|
|
1584
|
-
function D(d, E,
|
|
1584
|
+
function D(d, E, O) {
|
|
1585
1585
|
var G = d == null ? void 0 : ee(d, E);
|
|
1586
|
-
return G === void 0 ?
|
|
1586
|
+
return G === void 0 ? O : G;
|
|
1587
1587
|
}
|
|
1588
1588
|
return fr = D, fr;
|
|
1589
1589
|
}
|
|
@@ -1593,14 +1593,14 @@ var dr, Dr;
|
|
|
1593
1593
|
function gt() {
|
|
1594
1594
|
if (Dr) return dr;
|
|
1595
1595
|
Dr = 1;
|
|
1596
|
-
var e = "[object Symbol]", r = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, a = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, t = "\\ud800-\\udfff", n = "\\u0300-\\u036f\\ufe20-\\ufe23", i = "\\u20d0-\\u20f0", y = "\\u2700-\\u27bf", l = "a-z\\xdf-\\xf6\\xf8-\\xff", p = "\\xac\\xb1\\xd7\\xf7", m = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", w = "\\u2000-\\u206f", b = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", u = "A-Z\\xc0-\\xd6\\xd8-\\xde", o = "\\ufe0e\\ufe0f", f = p + m + w + b,
|
|
1596
|
+
var e = "[object Symbol]", r = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, a = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, t = "\\ud800-\\udfff", n = "\\u0300-\\u036f\\ufe20-\\ufe23", i = "\\u20d0-\\u20f0", y = "\\u2700-\\u27bf", l = "a-z\\xdf-\\xf6\\xf8-\\xff", p = "\\xac\\xb1\\xd7\\xf7", m = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", w = "\\u2000-\\u206f", b = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", u = "A-Z\\xc0-\\xd6\\xd8-\\xde", o = "\\ufe0e\\ufe0f", f = p + m + w + b, g = "['’]", c = "[" + t + "]", s = "[" + f + "]", A = "[" + n + i + "]", S = "\\d+", P = "[" + y + "]", x = "[" + l + "]", T = "[^" + t + f + S + y + l + u + "]", N = "\\ud83c[\\udffb-\\udfff]", M = "(?:" + A + "|" + N + ")", V = "[^" + t + "]", $ = "(?:\\ud83c[\\udde6-\\uddff]){2}", L = "[\\ud800-\\udbff][\\udc00-\\udfff]", F = "[" + u + "]", R = "\\u200d", k = "(?:" + x + "|" + T + ")", U = "(?:" + F + "|" + T + ")", z = "(?:" + g + "(?:d|ll|m|re|s|t|ve))?", _ = "(?:" + g + "(?:D|LL|M|RE|S|T|VE))?", Z = M + "?", Q = "[" + o + "]?", ne = "(?:" + R + "(?:" + [V, $, L].join("|") + ")" + Q + Z + ")*", X = Q + Z + ne, W = "(?:" + [P, $, L].join("|") + ")" + X, ie = "(?:" + [V + A + "?", A, $, L, c].join("|") + ")", re = RegExp(g, "g"), te = RegExp(A, "g"), ce = RegExp(N + "(?=" + N + ")|" + ie + X, "g"), ue = RegExp([
|
|
1597
1597
|
F + "?" + x + "+" + z + "(?=" + [s, F, "$"].join("|") + ")",
|
|
1598
1598
|
U + "+" + _ + "(?=" + [s, F + k, "$"].join("|") + ")",
|
|
1599
1599
|
F + "?" + k + "+" + z,
|
|
1600
1600
|
F + "+" + _,
|
|
1601
1601
|
S,
|
|
1602
1602
|
W
|
|
1603
|
-
].join("|"), "g"), oe = RegExp("[" +
|
|
1603
|
+
].join("|"), "g"), oe = RegExp("[" + R + t + n + i + o + "]"), de = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, pe = {
|
|
1604
1604
|
// Latin-1 Supplement block.
|
|
1605
1605
|
À: "A",
|
|
1606
1606
|
Á: "A",
|
|
@@ -1794,91 +1794,91 @@ function gt() {
|
|
|
1794
1794
|
ʼn: "'n",
|
|
1795
1795
|
ſ: "ss"
|
|
1796
1796
|
}, se = typeof be == "object" && be && be.Object === Object && be, ye = typeof self == "object" && self && self.Object === Object && self, Se = se || ye || Function("return this")();
|
|
1797
|
-
function J(
|
|
1798
|
-
for (var Y = -1, Ee =
|
|
1799
|
-
j = B(j,
|
|
1797
|
+
function J(C, B, j, H) {
|
|
1798
|
+
for (var Y = -1, Ee = C ? C.length : 0; ++Y < Ee; )
|
|
1799
|
+
j = B(j, C[Y], Y, C);
|
|
1800
1800
|
return j;
|
|
1801
1801
|
}
|
|
1802
|
-
function ee(
|
|
1803
|
-
return
|
|
1802
|
+
function ee(C) {
|
|
1803
|
+
return C.split("");
|
|
1804
1804
|
}
|
|
1805
|
-
function
|
|
1806
|
-
return
|
|
1805
|
+
function Ie(C) {
|
|
1806
|
+
return C.match(r) || [];
|
|
1807
1807
|
}
|
|
1808
|
-
function xe(
|
|
1808
|
+
function xe(C) {
|
|
1809
1809
|
return function(B) {
|
|
1810
|
-
return
|
|
1810
|
+
return C?.[B];
|
|
1811
1811
|
};
|
|
1812
1812
|
}
|
|
1813
1813
|
var Te = xe(pe);
|
|
1814
|
-
function me(
|
|
1815
|
-
return oe.test(
|
|
1814
|
+
function me(C) {
|
|
1815
|
+
return oe.test(C);
|
|
1816
1816
|
}
|
|
1817
|
-
function Pe(
|
|
1818
|
-
return de.test(
|
|
1817
|
+
function Pe(C) {
|
|
1818
|
+
return de.test(C);
|
|
1819
1819
|
}
|
|
1820
|
-
function
|
|
1821
|
-
return me(
|
|
1820
|
+
function Re(C) {
|
|
1821
|
+
return me(C) ? ke(C) : ee(C);
|
|
1822
1822
|
}
|
|
1823
|
-
function ke(
|
|
1824
|
-
return
|
|
1823
|
+
function ke(C) {
|
|
1824
|
+
return C.match(ce) || [];
|
|
1825
1825
|
}
|
|
1826
|
-
function _e(
|
|
1827
|
-
return
|
|
1826
|
+
function _e(C) {
|
|
1827
|
+
return C.match(ue) || [];
|
|
1828
1828
|
}
|
|
1829
|
-
var
|
|
1830
|
-
function
|
|
1831
|
-
var H = -1, Y =
|
|
1829
|
+
var Oe = Object.prototype, Ne = Oe.toString, le = Se.Symbol, fe = le ? le.prototype : void 0, we = fe ? fe.toString : void 0;
|
|
1830
|
+
function Ce(C, B, j) {
|
|
1831
|
+
var H = -1, Y = C.length;
|
|
1832
1832
|
B < 0 && (B = -B > Y ? 0 : Y + B), j = j > Y ? Y : j, j < 0 && (j += Y), Y = B > j ? 0 : j - B >>> 0, B >>>= 0;
|
|
1833
1833
|
for (var Ee = Array(Y); ++H < Y; )
|
|
1834
|
-
Ee[H] =
|
|
1834
|
+
Ee[H] = C[H + B];
|
|
1835
1835
|
return Ee;
|
|
1836
1836
|
}
|
|
1837
|
-
function
|
|
1838
|
-
if (typeof
|
|
1839
|
-
return
|
|
1840
|
-
if (D(
|
|
1841
|
-
return we ? we.call(
|
|
1842
|
-
var B =
|
|
1843
|
-
return B == "0" && 1 /
|
|
1837
|
+
function Le(C) {
|
|
1838
|
+
if (typeof C == "string")
|
|
1839
|
+
return C;
|
|
1840
|
+
if (D(C))
|
|
1841
|
+
return we ? we.call(C) : "";
|
|
1842
|
+
var B = C + "";
|
|
1843
|
+
return B == "0" && 1 / C == -1 / 0 ? "-0" : B;
|
|
1844
1844
|
}
|
|
1845
|
-
function he(
|
|
1846
|
-
var H =
|
|
1847
|
-
return j = j === void 0 ? H : j, !B && j >= H ?
|
|
1845
|
+
function he(C, B, j) {
|
|
1846
|
+
var H = C.length;
|
|
1847
|
+
return j = j === void 0 ? H : j, !B && j >= H ? C : Ce(C, B, j);
|
|
1848
1848
|
}
|
|
1849
|
-
function ge(
|
|
1849
|
+
function ge(C) {
|
|
1850
1850
|
return function(B) {
|
|
1851
1851
|
B = d(B);
|
|
1852
|
-
var j = me(B) ?
|
|
1853
|
-
return H[
|
|
1852
|
+
var j = me(B) ? Re(B) : void 0, H = j ? j[0] : B.charAt(0), Y = j ? he(j, 1).join("") : B.slice(1);
|
|
1853
|
+
return H[C]() + Y;
|
|
1854
1854
|
};
|
|
1855
1855
|
}
|
|
1856
|
-
function
|
|
1856
|
+
function h(C) {
|
|
1857
1857
|
return function(B) {
|
|
1858
|
-
return J(K(G(B).replace(re, "")),
|
|
1858
|
+
return J(K(G(B).replace(re, "")), C, "");
|
|
1859
1859
|
};
|
|
1860
1860
|
}
|
|
1861
|
-
function v(
|
|
1862
|
-
return !!
|
|
1861
|
+
function v(C) {
|
|
1862
|
+
return !!C && typeof C == "object";
|
|
1863
1863
|
}
|
|
1864
|
-
function D(
|
|
1865
|
-
return typeof
|
|
1864
|
+
function D(C) {
|
|
1865
|
+
return typeof C == "symbol" || v(C) && Ne.call(C) == e;
|
|
1866
1866
|
}
|
|
1867
|
-
function d(
|
|
1868
|
-
return
|
|
1867
|
+
function d(C) {
|
|
1868
|
+
return C == null ? "" : Le(C);
|
|
1869
1869
|
}
|
|
1870
|
-
var E =
|
|
1871
|
-
return B = B.toLowerCase(),
|
|
1870
|
+
var E = h(function(C, B, j) {
|
|
1871
|
+
return B = B.toLowerCase(), C + (j ? O(B) : B);
|
|
1872
1872
|
});
|
|
1873
|
-
function C
|
|
1874
|
-
return ae(d(
|
|
1873
|
+
function O(C) {
|
|
1874
|
+
return ae(d(C).toLowerCase());
|
|
1875
1875
|
}
|
|
1876
|
-
function G(
|
|
1877
|
-
return
|
|
1876
|
+
function G(C) {
|
|
1877
|
+
return C = d(C), C && C.replace(a, Te).replace(te, "");
|
|
1878
1878
|
}
|
|
1879
1879
|
var ae = ge("toUpperCase");
|
|
1880
|
-
function K(
|
|
1881
|
-
return
|
|
1880
|
+
function K(C, B, j) {
|
|
1881
|
+
return C = d(C), B = B, B === void 0 ? Pe(C) ? _e(C) : Ie(C) : C.match(B) || [];
|
|
1882
1882
|
}
|
|
1883
1883
|
return dr = E, dr;
|
|
1884
1884
|
}
|
|
@@ -1898,8 +1898,8 @@ function bt() {
|
|
|
1898
1898
|
return ve.isBrowser = r, ve.isWebWorker = t, ve.isNode = a, ve.isJsDom = n, ve.isDeno = i, ve;
|
|
1899
1899
|
}
|
|
1900
1900
|
bt();
|
|
1901
|
-
const
|
|
1902
|
-
|
|
1901
|
+
const I = {}, Ge = {};
|
|
1902
|
+
I.loadExternalScript = function(e) {
|
|
1903
1903
|
if (Ge[e])
|
|
1904
1904
|
return Ge[e];
|
|
1905
1905
|
const r = Ge[e] = new Promise(a);
|
|
@@ -1914,7 +1914,7 @@ R.loadExternalScript = function(e) {
|
|
|
1914
1914
|
return r;
|
|
1915
1915
|
};
|
|
1916
1916
|
const Vr = {};
|
|
1917
|
-
|
|
1917
|
+
I.loadExternalStyle = function(e) {
|
|
1918
1918
|
const r = new Promise(a);
|
|
1919
1919
|
function a(t, n) {
|
|
1920
1920
|
if (!document)
|
|
@@ -1929,7 +1929,7 @@ R.loadExternalStyle = function(e) {
|
|
|
1929
1929
|
}
|
|
1930
1930
|
return r;
|
|
1931
1931
|
};
|
|
1932
|
-
|
|
1932
|
+
I.exists = function(e) {
|
|
1933
1933
|
var r;
|
|
1934
1934
|
if (Array.isArray(e) || e === 0)
|
|
1935
1935
|
return !0;
|
|
@@ -1951,7 +1951,7 @@ R.exists = function(e) {
|
|
|
1951
1951
|
}
|
|
1952
1952
|
return !r;
|
|
1953
1953
|
};
|
|
1954
|
-
|
|
1954
|
+
I.parseDate = function(e) {
|
|
1955
1955
|
if (e) {
|
|
1956
1956
|
if (e instanceof Date)
|
|
1957
1957
|
return e;
|
|
@@ -1960,32 +1960,48 @@ R.parseDate = function(e) {
|
|
|
1960
1960
|
return r;
|
|
1961
1961
|
}
|
|
1962
1962
|
};
|
|
1963
|
-
|
|
1963
|
+
I.parseURL = function(e) {
|
|
1964
1964
|
if (!e)
|
|
1965
1965
|
return !1;
|
|
1966
1966
|
if (e.startsWith("/") || e.startsWith("://") || e.startsWith("mailto:") || e.startsWith("tel:") || e.startsWith("sms:"))
|
|
1967
1967
|
return e;
|
|
1968
|
-
var a =
|
|
1968
|
+
var a = I.parseEmail(e);
|
|
1969
1969
|
if (a && a === e)
|
|
1970
1970
|
return `mailto:${a}`;
|
|
1971
|
-
const t = (
|
|
1971
|
+
const t = (m) => /^https?:\/\//i.test(m) ? m : `http://${m}`;
|
|
1972
1972
|
e = t(e), e = e.replace(/\s/g, "");
|
|
1973
|
-
var n =
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1973
|
+
var n = String(e).replace(/^https?:\/\//i, "").split(/[/?#]/)[0], i = n.lastIndexOf(":");
|
|
1974
|
+
if (i !== -1) {
|
|
1975
|
+
if (!/^\d+$/.test(n.slice(i + 1)))
|
|
1976
|
+
return !1;
|
|
1977
|
+
n = n.slice(0, i);
|
|
1978
|
+
}
|
|
1979
|
+
if (!n)
|
|
1980
|
+
return !1;
|
|
1981
|
+
var y = n.split("."), l = y.length === 4 && y.every(function(m) {
|
|
1982
|
+
return /^\d{1,3}$/.test(m);
|
|
1983
|
+
});
|
|
1984
|
+
if (!l) {
|
|
1985
|
+
if (y.length < 2)
|
|
1986
|
+
return !1;
|
|
1987
|
+
var p = y.every(function(m) {
|
|
1988
|
+
return /^[a-z\d]([a-z\d-]*[a-z\d])?$/i.test(m);
|
|
1989
|
+
});
|
|
1990
|
+
if (!p || !/^[a-z]{2,}$/i.test(y[y.length - 1]))
|
|
1991
|
+
return !1;
|
|
1992
|
+
}
|
|
1993
|
+
return t(e);
|
|
1978
1994
|
};
|
|
1979
|
-
|
|
1995
|
+
I.parseNumber = function(e, r) {
|
|
1980
1996
|
if (!e || (e = Number(e), isNaN(e)))
|
|
1981
1997
|
return 0;
|
|
1982
1998
|
if (r) {
|
|
1983
1999
|
var a = e.toFixed(r);
|
|
1984
|
-
e =
|
|
2000
|
+
e = I.parseNumber(a);
|
|
1985
2001
|
}
|
|
1986
2002
|
return e;
|
|
1987
2003
|
};
|
|
1988
|
-
|
|
2004
|
+
I.isValidEmailAddress = function(e) {
|
|
1989
2005
|
var r = /^[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/;
|
|
1990
2006
|
if (!e) return !1;
|
|
1991
2007
|
var a = e.split("@");
|
|
@@ -1998,48 +2014,48 @@ R.isValidEmailAddress = function(e) {
|
|
|
1998
2014
|
return y.length > 63;
|
|
1999
2015
|
}) || !r.test(e));
|
|
2000
2016
|
};
|
|
2001
|
-
|
|
2017
|
+
I.parseEmail = function(e) {
|
|
2002
2018
|
if (!e)
|
|
2003
2019
|
return !1;
|
|
2004
|
-
var r = String(e).toLowerCase(), a =
|
|
2020
|
+
var r = String(e).toLowerCase(), a = I.isValidEmailAddress(r);
|
|
2005
2021
|
return a ? r : !1;
|
|
2006
2022
|
};
|
|
2007
|
-
|
|
2023
|
+
I.parseInt = function(e) {
|
|
2008
2024
|
return !e || (e = parseInt(e), isNaN(e)) ? 0 : e;
|
|
2009
2025
|
};
|
|
2010
|
-
|
|
2026
|
+
I.cleanValue = function(e, r, a) {
|
|
2011
2027
|
a || (a = {});
|
|
2012
|
-
var t =
|
|
2028
|
+
var t = I.exists(e);
|
|
2013
2029
|
if (a.strict && t && r != "boolean")
|
|
2014
2030
|
return e;
|
|
2015
2031
|
switch (r) {
|
|
2016
2032
|
case "reference":
|
|
2017
|
-
return
|
|
2033
|
+
return I.id(e, !0);
|
|
2018
2034
|
case "boolean":
|
|
2019
|
-
return
|
|
2035
|
+
return I.parseBoolean(e);
|
|
2020
2036
|
case "url":
|
|
2021
|
-
return
|
|
2037
|
+
return I.parseURL(e);
|
|
2022
2038
|
case "key":
|
|
2023
|
-
return
|
|
2039
|
+
return I.machineName(e);
|
|
2024
2040
|
case "email":
|
|
2025
|
-
return
|
|
2041
|
+
return I.parseEmail(e);
|
|
2026
2042
|
case "date":
|
|
2027
|
-
var n =
|
|
2043
|
+
var n = I.parseDate(e, a);
|
|
2028
2044
|
return n === void 0 ? void 0 : n;
|
|
2029
2045
|
case "number":
|
|
2030
2046
|
case "decimal":
|
|
2031
2047
|
case "float":
|
|
2032
|
-
var i =
|
|
2048
|
+
var i = I.parseNumber(e);
|
|
2033
2049
|
return String(i) == String(Number(e)) ? i : void 0;
|
|
2034
2050
|
case "integer":
|
|
2035
|
-
var i =
|
|
2051
|
+
var i = I.parseInt(e);
|
|
2036
2052
|
return String(i) == String(parseInt(e)) ? i : void 0;
|
|
2037
2053
|
case "group":
|
|
2038
2054
|
return e;
|
|
2039
2055
|
case "object":
|
|
2040
2056
|
return typeof e == "object" && e !== null && !Array.isArray(e) ? e : void 0;
|
|
2041
2057
|
case "string":
|
|
2042
|
-
if (
|
|
2058
|
+
if (I.exists(e)) {
|
|
2043
2059
|
var y = String(e);
|
|
2044
2060
|
return y == "[object Object]" ? void 0 : y;
|
|
2045
2061
|
} else
|
|
@@ -2059,39 +2075,39 @@ R.cleanValue = function(e, r, a) {
|
|
|
2059
2075
|
return String(e);
|
|
2060
2076
|
}
|
|
2061
2077
|
};
|
|
2062
|
-
|
|
2063
|
-
var t =
|
|
2078
|
+
I.isValidValue = function(e, r, a) {
|
|
2079
|
+
var t = I.exists(e), n = typeof e == "number", i = !1;
|
|
2064
2080
|
if (!t)
|
|
2065
2081
|
return !1;
|
|
2066
2082
|
switch (r) {
|
|
2067
2083
|
case "url":
|
|
2068
|
-
a ? i = e.startsWith("/") || e.startsWith("://") || e.startsWith("http://") || e.startsWith("https://") : i = String(e) ===
|
|
2084
|
+
a ? i = e.startsWith("/") || e.startsWith("://") || e.startsWith("http://") || e.startsWith("https://") : i = String(e) === I.parseURL(e);
|
|
2069
2085
|
break;
|
|
2070
2086
|
case "key":
|
|
2071
|
-
i = String(e) ===
|
|
2087
|
+
i = String(e) === I.machineName(e);
|
|
2072
2088
|
break;
|
|
2073
2089
|
case "date":
|
|
2074
2090
|
if (a && (typeof e != "object" || !(e instanceof Date)))
|
|
2075
2091
|
return !1;
|
|
2076
|
-
var y =
|
|
2092
|
+
var y = I.parseDate(e);
|
|
2077
2093
|
return y !== void 0;
|
|
2078
2094
|
case "email":
|
|
2079
|
-
a ? i = e ===
|
|
2095
|
+
a ? i = e === I.parseEmail(e) : i = String(e).toLowerCase() === I.parseEmail(e);
|
|
2080
2096
|
break;
|
|
2081
2097
|
case "number":
|
|
2082
2098
|
case "decimal":
|
|
2083
2099
|
case "float":
|
|
2084
|
-
a ? i = n && Number(e) ===
|
|
2100
|
+
a ? i = n && Number(e) === I.parseNumber(e) : i = Number(e) === I.parseNumber(e);
|
|
2085
2101
|
break;
|
|
2086
2102
|
case "integer":
|
|
2087
|
-
a ? i = n && Number(e) ===
|
|
2103
|
+
a ? i = n && Number(e) === I.parseInt(e) : i = Number(e) === I.parseInt(e);
|
|
2088
2104
|
break;
|
|
2089
2105
|
case "boolean":
|
|
2090
|
-
var y =
|
|
2106
|
+
var y = I.parseBoolean(e);
|
|
2091
2107
|
a ? (e === !0 || e === !1) && (i = e === y) : i = y === !0 || y === !1;
|
|
2092
2108
|
break;
|
|
2093
2109
|
case "reference":
|
|
2094
|
-
a ? i = String(e) ===
|
|
2110
|
+
a ? i = String(e) === I.id(e) : i = !!I.id(e);
|
|
2095
2111
|
break;
|
|
2096
2112
|
case "string":
|
|
2097
2113
|
var l = String(e);
|
|
@@ -2111,7 +2127,7 @@ R.isValidValue = function(e, r, a) {
|
|
|
2111
2127
|
}
|
|
2112
2128
|
return i;
|
|
2113
2129
|
};
|
|
2114
|
-
|
|
2130
|
+
I.parseBoolean = function(e) {
|
|
2115
2131
|
switch (String(e).toLowerCase()) {
|
|
2116
2132
|
case "true":
|
|
2117
2133
|
case "y":
|
|
@@ -2134,10 +2150,10 @@ R.parseBoolean = function(e) {
|
|
|
2134
2150
|
}
|
|
2135
2151
|
return !!e;
|
|
2136
2152
|
};
|
|
2137
|
-
|
|
2153
|
+
I.clone = function(e) {
|
|
2138
2154
|
return JSON.parse(JSON.stringify(e));
|
|
2139
2155
|
};
|
|
2140
|
-
|
|
2156
|
+
I.getAllFields = function(e) {
|
|
2141
2157
|
const r = e.definesType === "profile" || e.key === "profile", a = e.definesType === "submission";
|
|
2142
2158
|
var t = [...e.fields], n = e.definedFields || [];
|
|
2143
2159
|
if (n.length)
|
|
@@ -2189,7 +2205,7 @@ R.getAllFields = function(e) {
|
|
|
2189
2205
|
maximum: 1,
|
|
2190
2206
|
type: "date"
|
|
2191
2207
|
}));
|
|
2192
|
-
var l =
|
|
2208
|
+
var l = I.mapFields(t).filter(function(p) {
|
|
2193
2209
|
var m = p.type == "group" && p.asObject && p.minimum == 1 && p.maximum == 1;
|
|
2194
2210
|
return !m;
|
|
2195
2211
|
}).map(function(p) {
|
|
@@ -2199,16 +2215,16 @@ R.getAllFields = function(e) {
|
|
|
2199
2215
|
});
|
|
2200
2216
|
return l;
|
|
2201
2217
|
};
|
|
2202
|
-
|
|
2218
|
+
I.mapFields = function(e, r) {
|
|
2203
2219
|
r || (r = {});
|
|
2204
2220
|
var a = [], t = [], n = [], i = 1, y = r.depth, l = r.arrayDelimeter || "[]";
|
|
2205
2221
|
e.forEach(p);
|
|
2206
2222
|
function p(m, w) {
|
|
2207
|
-
var b = m.key, u = m.type == "group", o = m.minimum === m.maximum && m.minimum === 1, f = m.asObject,
|
|
2208
|
-
c.trail = t.slice(), c.trail.push(b), c.path = c.trail.join("."), c.titles = n.slice(), c.titles.push(m.filterTitle || m.title || ""), (!
|
|
2223
|
+
var b = m.key, u = m.type == "group", o = m.minimum === m.maximum && m.minimum === 1, f = m.asObject, g = u && !f, c = r.original ? m : I.clone(m);
|
|
2224
|
+
c.trail = t.slice(), c.trail.push(b), c.path = c.trail.join("."), c.titles = n.slice(), c.titles.push(m.filterTitle || m.title || ""), (!g || r.includeLayout) && a.push(c);
|
|
2209
2225
|
var A = y && i >= y;
|
|
2210
2226
|
if (m.fields && m.fields.length)
|
|
2211
|
-
if (
|
|
2227
|
+
if (g)
|
|
2212
2228
|
m.fields.forEach(p);
|
|
2213
2229
|
else {
|
|
2214
2230
|
if (A)
|
|
@@ -2220,7 +2236,7 @@ R.mapFields = function(e, r) {
|
|
|
2220
2236
|
}
|
|
2221
2237
|
return a;
|
|
2222
2238
|
};
|
|
2223
|
-
|
|
2239
|
+
I.mapParameters = function(e) {
|
|
2224
2240
|
e = e || {};
|
|
2225
2241
|
var r = [];
|
|
2226
2242
|
return Object.entries(e).forEach(function([a, t]) {
|
|
@@ -2229,13 +2245,13 @@ R.mapParameters = function(e) {
|
|
|
2229
2245
|
}) : r.push(encodeURIComponent(a) + "=" + encodeURIComponent(t)));
|
|
2230
2246
|
}), r.join("&");
|
|
2231
2247
|
};
|
|
2232
|
-
|
|
2248
|
+
I.formatCurrency = function(e, r, a) {
|
|
2233
2249
|
(!e || isNaN(e)) && (e = 0), a = a || 2;
|
|
2234
|
-
var t =
|
|
2250
|
+
var t = I.currencySymbol(r);
|
|
2235
2251
|
return `${t}${parseFloat(Number(e) / 100).toFixed(a)}`;
|
|
2236
2252
|
};
|
|
2237
|
-
|
|
2238
|
-
if (e =
|
|
2253
|
+
I.getTypeFromID = function(e) {
|
|
2254
|
+
if (e = I.id(e), !e)
|
|
2239
2255
|
return;
|
|
2240
2256
|
const r = {
|
|
2241
2257
|
21: "organisation",
|
|
@@ -2298,7 +2314,7 @@ R.getTypeFromID = function(e) {
|
|
|
2298
2314
|
return r[a];
|
|
2299
2315
|
};
|
|
2300
2316
|
const St = { gbp: "£", eur: "€" };
|
|
2301
|
-
|
|
2317
|
+
I.currencySymbol = function(e) {
|
|
2302
2318
|
return St[String(e).toLowerCase()] || "$";
|
|
2303
2319
|
};
|
|
2304
2320
|
const wt = [
|
|
@@ -2309,9 +2325,9 @@ const wt = [
|
|
|
2309
2325
|
{ code: "nzd", countries: ["NZ"] },
|
|
2310
2326
|
{ code: "sgd", countries: ["SG"] }
|
|
2311
2327
|
];
|
|
2312
|
-
|
|
2328
|
+
I.getAvailableCurrencies = function(e) {
|
|
2313
2329
|
let r = wt.map(({ code: a, countries: t }) => ({
|
|
2314
|
-
name: `${a.toUpperCase()} (${
|
|
2330
|
+
name: `${a.toUpperCase()} (${I.currencySymbol(a)})`,
|
|
2315
2331
|
value: a,
|
|
2316
2332
|
countryCode: Object.fromEntries(t.map((n) => [n, !0]))
|
|
2317
2333
|
}));
|
|
@@ -2324,13 +2340,13 @@ R.getAvailableCurrencies = function(e) {
|
|
|
2324
2340
|
}
|
|
2325
2341
|
return r;
|
|
2326
2342
|
};
|
|
2327
|
-
|
|
2343
|
+
I.hash = function(e, r) {
|
|
2328
2344
|
return e = Array.isArray(e) ? e : [], e.reduce(function(a, t) {
|
|
2329
2345
|
const n = r ? je(t, r) : t;
|
|
2330
2346
|
return a[n] = t, a;
|
|
2331
2347
|
}, {});
|
|
2332
2348
|
};
|
|
2333
|
-
|
|
2349
|
+
I.extractFromArray = function(e, r, a, t, n, i, y) {
|
|
2334
2350
|
y = y || {}, a && (y.sum = a), t && (y.flatten = !0), n && (y.unique = !0), i && (y.excludeNull = !0);
|
|
2335
2351
|
var l = e.reduce(function(p, m) {
|
|
2336
2352
|
var w = je(m, r), b = !w && w !== !1 && w !== 0;
|
|
@@ -2340,7 +2356,7 @@ R.extractFromArray = function(e, r, a, t, n, i, y) {
|
|
|
2340
2356
|
return p + m;
|
|
2341
2357
|
}, 0)), l;
|
|
2342
2358
|
};
|
|
2343
|
-
|
|
2359
|
+
I.matchInArray = function(e, r, a, t) {
|
|
2344
2360
|
var n = e.filter(function(i) {
|
|
2345
2361
|
var y = je(i, r), l;
|
|
2346
2362
|
switch (t) {
|
|
@@ -2368,53 +2384,53 @@ R.matchInArray = function(e, r, a, t) {
|
|
|
2368
2384
|
});
|
|
2369
2385
|
return n;
|
|
2370
2386
|
};
|
|
2371
|
-
|
|
2387
|
+
I.comma = function(e, r, a) {
|
|
2372
2388
|
return a && (e = e.slice(0, a)), e.filter(function(t) {
|
|
2373
2389
|
return t != null && t !== void 0 && t !== "";
|
|
2374
2390
|
}).map(function(t) {
|
|
2375
2391
|
return r && r.length ? je(t, r) : t;
|
|
2376
2392
|
}).join(", ");
|
|
2377
2393
|
};
|
|
2378
|
-
|
|
2394
|
+
I.id = function(e) {
|
|
2379
2395
|
if (e) {
|
|
2380
2396
|
var r;
|
|
2381
2397
|
e._id ? r = String(e._id) : r = String(e);
|
|
2382
|
-
var a =
|
|
2398
|
+
var a = I.isValidID(r);
|
|
2383
2399
|
if (a)
|
|
2384
2400
|
return r;
|
|
2385
2401
|
}
|
|
2386
2402
|
};
|
|
2387
|
-
|
|
2403
|
+
I.ids = function(e) {
|
|
2388
2404
|
if (!e)
|
|
2389
2405
|
return [];
|
|
2390
2406
|
var r = Object.keys(
|
|
2391
2407
|
e.reduce(function(a, t) {
|
|
2392
2408
|
if (!t)
|
|
2393
2409
|
return a;
|
|
2394
|
-
var n =
|
|
2410
|
+
var n = I.id(t);
|
|
2395
2411
|
return n && (a[n] = 1), a;
|
|
2396
2412
|
}, {})
|
|
2397
2413
|
);
|
|
2398
2414
|
return r;
|
|
2399
2415
|
};
|
|
2400
|
-
|
|
2416
|
+
I.isValidID = function(e) {
|
|
2401
2417
|
var r = new RegExp("^[0-9a-fA-F]{24}$");
|
|
2402
2418
|
return r.test(String(e));
|
|
2403
2419
|
};
|
|
2404
|
-
|
|
2420
|
+
I.errorMessage = function(e) {
|
|
2405
2421
|
if (!e)
|
|
2406
2422
|
return;
|
|
2407
2423
|
Array.isArray(e) && (e = e[0]);
|
|
2408
2424
|
let r = e?.response?.data?.message || (typeof e?.response?.data == "string" ? e.response.data : null) || e?.message || null;
|
|
2409
2425
|
return Array.isArray(r) && (r = r[0]), r || JSON.stringify(e);
|
|
2410
2426
|
};
|
|
2411
|
-
|
|
2427
|
+
I.guid = function() {
|
|
2412
2428
|
return typeof crypto < "u" && crypto.randomUUID ? crypto.randomUUID() : "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
2413
2429
|
const r = Math.random() * 16 | 0;
|
|
2414
2430
|
return (e === "x" ? r : r & 3 | 8).toString(16);
|
|
2415
2431
|
});
|
|
2416
2432
|
};
|
|
2417
|
-
|
|
2433
|
+
I.machineName = function(e) {
|
|
2418
2434
|
if (!(!e || !e.length)) {
|
|
2419
2435
|
var r = /[^a-zA-Z0-9-_]+/g;
|
|
2420
2436
|
return String(e).replace(r, " ").split("_").map((a) => At(a)).join("_");
|
|
@@ -2783,7 +2799,7 @@ var Pt = function(e) {
|
|
|
2783
2799
|
}, t.ensureValidToken = async function(l) {
|
|
2784
2800
|
var p = t.getCurrentUser();
|
|
2785
2801
|
if (!p)
|
|
2786
|
-
return Promise.reject("No user");
|
|
2802
|
+
return Promise.reject(new Error("No user"));
|
|
2787
2803
|
if (r.isCookieMode && r.isCookieMode())
|
|
2788
2804
|
return l ? await t.refreshAccessToken() : "cookie_mode_token";
|
|
2789
2805
|
var { token: w } = p;
|
|
@@ -2817,8 +2833,8 @@ var Pt = function(e) {
|
|
|
2817
2833
|
if (t.set(f.data), i(), p)
|
|
2818
2834
|
m("cookie_token_refreshed");
|
|
2819
2835
|
else {
|
|
2820
|
-
const
|
|
2821
|
-
|
|
2836
|
+
const g = f.data.token?.accessToken;
|
|
2837
|
+
g ? m(g) : w(new Error("No access token in refresh response"));
|
|
2822
2838
|
}
|
|
2823
2839
|
setTimeout(function() {
|
|
2824
2840
|
y.inflightRefreshRequest = null;
|
|
@@ -2874,10 +2890,10 @@ var Pt = function(e) {
|
|
|
2874
2890
|
return p;
|
|
2875
2891
|
if (!u)
|
|
2876
2892
|
return p;
|
|
2877
|
-
var
|
|
2878
|
-
|
|
2893
|
+
var g = /* @__PURE__ */ new Date();
|
|
2894
|
+
g.setSeconds(g.getSeconds() + a);
|
|
2879
2895
|
var c = new Date(o);
|
|
2880
|
-
return
|
|
2896
|
+
return g < c ? p : new Promise(async function(s, A) {
|
|
2881
2897
|
await t.refreshAccessToken(u).then(function(S) {
|
|
2882
2898
|
return p.headers.Authorization = `Bearer ${S}`, s(p);
|
|
2883
2899
|
}).catch(function(S) {
|
|
@@ -2993,7 +3009,7 @@ q.filterChangeString = function(e) {
|
|
|
2993
3009
|
var r = q.activeFilters(e);
|
|
2994
3010
|
return JSON.stringify(r);
|
|
2995
3011
|
};
|
|
2996
|
-
function
|
|
3012
|
+
function Ot(e) {
|
|
2997
3013
|
var r = {};
|
|
2998
3014
|
return r.downloadUrl = function(a, t, n, i) {
|
|
2999
3015
|
return i = i || {}, n = n || {}, n.download = !0, t = e.utils.id(t), e.api.generateEndpointURL(`/${a}/${t}`, n, i);
|
|
@@ -3047,7 +3063,7 @@ function Ct(e) {
|
|
|
3047
3063
|
}
|
|
3048
3064
|
}, r;
|
|
3049
3065
|
}
|
|
3050
|
-
var Ue = {},
|
|
3066
|
+
var Ue = {}, Ct = {
|
|
3051
3067
|
///////////////////////////////////////////////////
|
|
3052
3068
|
/**
|
|
3053
3069
|
* A helper function to reset all caches, useful if changing organisation or logging in or out as another user
|
|
@@ -3196,8 +3212,8 @@ var Ue = {}, Ot = {
|
|
|
3196
3212
|
if (f)
|
|
3197
3213
|
return !0;
|
|
3198
3214
|
}
|
|
3199
|
-
var
|
|
3200
|
-
if (
|
|
3215
|
+
var g = r.isOwner(a, t);
|
|
3216
|
+
if (g) {
|
|
3201
3217
|
var c, s = `access-${a?.cacheKey}-${i}-${p}-${l}`;
|
|
3202
3218
|
if (y.cache[s])
|
|
3203
3219
|
c = y.cache[s];
|
|
@@ -3293,7 +3309,7 @@ var Ue = {}, Ot = {
|
|
|
3293
3309
|
);
|
|
3294
3310
|
}, r;
|
|
3295
3311
|
};
|
|
3296
|
-
function
|
|
3312
|
+
function It(e) {
|
|
3297
3313
|
if (!e.api)
|
|
3298
3314
|
throw new Error("Can't Instantiate QikContent before QikAPI exists");
|
|
3299
3315
|
var r = {
|
|
@@ -3312,8 +3328,8 @@ function Rt(e) {
|
|
|
3312
3328
|
};
|
|
3313
3329
|
t = e.api.post("/variables", { keys: u }), t.then(c, c);
|
|
3314
3330
|
}
|
|
3315
|
-
const { data:
|
|
3316
|
-
a.data =
|
|
3331
|
+
const { data: g } = await t;
|
|
3332
|
+
a.data = g, e.dispatch("variables", g);
|
|
3317
3333
|
}
|
|
3318
3334
|
return a.data;
|
|
3319
3335
|
};
|
|
@@ -3325,14 +3341,14 @@ function Rt(e) {
|
|
|
3325
3341
|
});
|
|
3326
3342
|
}
|
|
3327
3343
|
async function l({ _s: u, _k: o, types: f }) {
|
|
3328
|
-
function
|
|
3344
|
+
function g(A) {
|
|
3329
3345
|
if (typeof A == "string" && A[0] === "~")
|
|
3330
3346
|
return u[parseInt(A.slice(1))];
|
|
3331
|
-
if (Array.isArray(A)) return A.map(
|
|
3347
|
+
if (Array.isArray(A)) return A.map(g);
|
|
3332
3348
|
if (A && typeof A == "object") {
|
|
3333
3349
|
const S = {};
|
|
3334
3350
|
for (const [P, x] of Object.entries(A))
|
|
3335
|
-
S[o[P] || P] =
|
|
3351
|
+
S[o[P] || P] = g(x);
|
|
3336
3352
|
return S;
|
|
3337
3353
|
}
|
|
3338
3354
|
return A;
|
|
@@ -3340,13 +3356,13 @@ function Rt(e) {
|
|
|
3340
3356
|
const c = 50, s = [];
|
|
3341
3357
|
for (let A = 0; A < f.length; A += c) {
|
|
3342
3358
|
const S = f.slice(A, A + c);
|
|
3343
|
-
s.push(...S.map(
|
|
3359
|
+
s.push(...S.map(g)), A + c < f.length && await y();
|
|
3344
3360
|
}
|
|
3345
3361
|
return s;
|
|
3346
3362
|
}
|
|
3347
3363
|
r.glossary = async function(u) {
|
|
3348
3364
|
u = u || {};
|
|
3349
|
-
let o = n.get("glossary"),
|
|
3365
|
+
let o = n.get("glossary"), g = !!!u.uncompressed;
|
|
3350
3366
|
var c = u.refresh || u.reload || !o;
|
|
3351
3367
|
if (c) {
|
|
3352
3368
|
if (!i) {
|
|
@@ -3354,7 +3370,7 @@ function Rt(e) {
|
|
|
3354
3370
|
i = null, r.loadingGlossary = !1;
|
|
3355
3371
|
};
|
|
3356
3372
|
r.loadingGlossary = !0;
|
|
3357
|
-
const P =
|
|
3373
|
+
const P = g ? "/glossary/compressed" : "/glossary";
|
|
3358
3374
|
i = e.api.get(P, { cache: !1 }), i.then(x, x);
|
|
3359
3375
|
}
|
|
3360
3376
|
const { data: A } = await i, S = A._s && A._k && A.types ? await l(A) : A;
|
|
@@ -3384,8 +3400,8 @@ function Rt(e) {
|
|
|
3384
3400
|
cache: !1
|
|
3385
3401
|
}), m.then(c, c);
|
|
3386
3402
|
}
|
|
3387
|
-
const { data:
|
|
3388
|
-
p.data =
|
|
3403
|
+
const { data: g } = await m;
|
|
3404
|
+
p.data = g;
|
|
3389
3405
|
}
|
|
3390
3406
|
if (u.hash) {
|
|
3391
3407
|
var f = e.utils.hash(p.data, "_id");
|
|
@@ -3399,8 +3415,8 @@ function Rt(e) {
|
|
|
3399
3415
|
var o = u.reload || u.refresh || !w.data;
|
|
3400
3416
|
if (o) {
|
|
3401
3417
|
const { data: f } = await e.api.get("/system/comparators");
|
|
3402
|
-
f.available = {}, Object.entries(f.types).forEach(([
|
|
3403
|
-
f.available[
|
|
3418
|
+
f.available = {}, Object.entries(f.types).forEach(([g, c]) => {
|
|
3419
|
+
f.available[g] = c.map(function(s) {
|
|
3404
3420
|
return f.hash[s];
|
|
3405
3421
|
});
|
|
3406
3422
|
}), w.data = f;
|
|
@@ -3413,13 +3429,13 @@ function Rt(e) {
|
|
|
3413
3429
|
}
|
|
3414
3430
|
return r.meetsValidationRequirements = function(u, o, f) {
|
|
3415
3431
|
if (f.minLength) {
|
|
3416
|
-
var
|
|
3417
|
-
if (
|
|
3432
|
+
var g = String(u).length;
|
|
3433
|
+
if (g < f.minLength)
|
|
3418
3434
|
return `Must be at least ${f.minLength} characters`;
|
|
3419
3435
|
}
|
|
3420
3436
|
if (f.maxLength) {
|
|
3421
|
-
var
|
|
3422
|
-
if (
|
|
3437
|
+
var g = String(u).length;
|
|
3438
|
+
if (g > f.maxLength)
|
|
3423
3439
|
return `Can be no more than ${f.maxLength} characters`;
|
|
3424
3440
|
}
|
|
3425
3441
|
if (f.minValue && u !== void 0) {
|
|
@@ -3434,7 +3450,7 @@ function Rt(e) {
|
|
|
3434
3450
|
}
|
|
3435
3451
|
}, r.validateField = function(u, o, f) {
|
|
3436
3452
|
f = f || {};
|
|
3437
|
-
var
|
|
3453
|
+
var g = o.type || "string", { minimum: c, maximum: s } = b(o), A = o.type == "group" && o.asObject, S = A ? c === s && s === 1 : s === 1, P = !S, x = e.utils.exists(u);
|
|
3438
3454
|
if (o.type === "boolean" && u !== !0 && (x = !1), c) {
|
|
3439
3455
|
if (!x)
|
|
3440
3456
|
return {
|
|
@@ -3458,8 +3474,8 @@ function Rt(e) {
|
|
|
3458
3474
|
status: 400
|
|
3459
3475
|
});
|
|
3460
3476
|
var T = u;
|
|
3461
|
-
if (T = T.filter(function(
|
|
3462
|
-
var k =
|
|
3477
|
+
if (T = T.filter(function(R) {
|
|
3478
|
+
var k = R == null || R === "";
|
|
3463
3479
|
return !k;
|
|
3464
3480
|
}), c == s && c && T.length != c)
|
|
3465
3481
|
return {
|
|
@@ -3479,55 +3495,55 @@ function Rt(e) {
|
|
|
3479
3495
|
message: `${o.title} requires at least ${c} values`,
|
|
3480
3496
|
status: 400
|
|
3481
3497
|
};
|
|
3482
|
-
var
|
|
3483
|
-
if (T.find(function(
|
|
3484
|
-
var k =
|
|
3498
|
+
var N;
|
|
3499
|
+
if (T.find(function(R) {
|
|
3500
|
+
var k = g;
|
|
3485
3501
|
o.type === "group" && (k = "object"), o.type === "reference" && o.widget === "form" && (k = "object");
|
|
3486
3502
|
var U = e.utils.isValidValue(
|
|
3487
|
-
|
|
3503
|
+
R,
|
|
3488
3504
|
k,
|
|
3489
3505
|
f.strict
|
|
3490
3506
|
);
|
|
3491
3507
|
if (!U)
|
|
3492
|
-
return
|
|
3508
|
+
return N = !0, !0;
|
|
3493
3509
|
if (o.validation) {
|
|
3494
3510
|
var z = r.meetsValidationRequirements(
|
|
3495
|
-
|
|
3496
|
-
|
|
3511
|
+
R,
|
|
3512
|
+
g,
|
|
3497
3513
|
o.validation
|
|
3498
3514
|
);
|
|
3499
3515
|
if (z)
|
|
3500
|
-
return
|
|
3516
|
+
return N = !0, !0;
|
|
3501
3517
|
}
|
|
3502
|
-
}),
|
|
3518
|
+
}), N)
|
|
3503
3519
|
return {
|
|
3504
3520
|
valid: !1,
|
|
3505
3521
|
message: `Invalid input for ${o.title}`,
|
|
3506
3522
|
status: 400
|
|
3507
3523
|
};
|
|
3508
3524
|
} else {
|
|
3509
|
-
var M =
|
|
3525
|
+
var M = g, V = o.widget;
|
|
3510
3526
|
M === "group" && (M = "object"), M === "reference" && V === "form" && (M = "object");
|
|
3511
|
-
var $ = r.getCleanedValue(u, M, f),
|
|
3527
|
+
var $ = r.getCleanedValue(u, M, f), L = e.utils.isValidValue(
|
|
3512
3528
|
$,
|
|
3513
3529
|
M,
|
|
3514
3530
|
f.strict
|
|
3515
3531
|
);
|
|
3516
|
-
if (!
|
|
3532
|
+
if (!L)
|
|
3517
3533
|
return {
|
|
3518
3534
|
valid: !1,
|
|
3519
3535
|
message: `Single value '${u}' is not a valid ${M} for ${o.title}`,
|
|
3520
3536
|
criteria: {
|
|
3521
|
-
isValidValue:
|
|
3537
|
+
isValidValue: L,
|
|
3522
3538
|
cleanedValue: $,
|
|
3523
|
-
fieldType:
|
|
3539
|
+
fieldType: g,
|
|
3524
3540
|
options: f
|
|
3525
3541
|
},
|
|
3526
3542
|
status: 400
|
|
3527
3543
|
};
|
|
3528
|
-
let
|
|
3544
|
+
let R = !1;
|
|
3529
3545
|
const k = {};
|
|
3530
|
-
if (String(o.minValue) && (k.minValue = parseInt(o.minValue),
|
|
3546
|
+
if (String(o.minValue) && (k.minValue = parseInt(o.minValue), R = !0), String(o.maxValue) && (k.maxValue = parseInt(o.maxValue), R = !0), String(o.minLength) && (k.minLength = parseInt(o.minLength), R = !0), String(o.maxLength) && (k.maxLength = parseInt(o.maxLength), R = !0), R) {
|
|
3531
3547
|
const U = Object.assign(
|
|
3532
3548
|
{},
|
|
3533
3549
|
k,
|
|
@@ -3535,7 +3551,7 @@ function Rt(e) {
|
|
|
3535
3551
|
);
|
|
3536
3552
|
var F = r.meetsValidationRequirements(
|
|
3537
3553
|
u,
|
|
3538
|
-
|
|
3554
|
+
g,
|
|
3539
3555
|
U
|
|
3540
3556
|
);
|
|
3541
3557
|
if (F)
|
|
@@ -3569,37 +3585,37 @@ function Rt(e) {
|
|
|
3569
3585
|
return u;
|
|
3570
3586
|
}, r.list = async function(u, o, f) {
|
|
3571
3587
|
f || (f = {});
|
|
3572
|
-
const
|
|
3588
|
+
const g = f.remoteURL || `/content/${u}/list`;
|
|
3573
3589
|
if (f.cancellable) {
|
|
3574
3590
|
f.config || (f.config = {});
|
|
3575
3591
|
const s = e.api.CancelToken.source();
|
|
3576
3592
|
return f.config.cancelToken = s.token, {
|
|
3577
|
-
promise: e.api.post(
|
|
3593
|
+
promise: e.api.post(g, o, f.config),
|
|
3578
3594
|
cancel(S) {
|
|
3579
3595
|
s.cancel(S || "Operation canceled by the user.");
|
|
3580
3596
|
}
|
|
3581
3597
|
};
|
|
3582
3598
|
} else {
|
|
3583
|
-
const { data: c } = await e.api.post(
|
|
3599
|
+
const { data: c } = await e.api.post(g, o, f.config);
|
|
3584
3600
|
return c;
|
|
3585
3601
|
}
|
|
3586
3602
|
}, r.create = async function(u, o) {
|
|
3587
3603
|
const f = { ...o };
|
|
3588
3604
|
f.meta?.scopes && (f.meta.scopes = e.utils.ids(f.meta.scopes));
|
|
3589
|
-
const { data:
|
|
3590
|
-
return
|
|
3605
|
+
const { data: g } = await e.api.post(`/content/${u}/create`, f);
|
|
3606
|
+
return g;
|
|
3591
3607
|
}, r.update = async function(u, o) {
|
|
3592
3608
|
u = e.utils.id(u);
|
|
3593
3609
|
const f = { ...o };
|
|
3594
3610
|
f.meta?.scopes && (f.meta.scopes = e.utils.ids(f.meta.scopes));
|
|
3595
|
-
const { data:
|
|
3596
|
-
return
|
|
3611
|
+
const { data: g } = await e.api.put(`/content/${u}`, f);
|
|
3612
|
+
return g;
|
|
3597
3613
|
}, r.patch = async function(u, o) {
|
|
3598
3614
|
u = e.utils.id(u);
|
|
3599
3615
|
const f = { ...o };
|
|
3600
3616
|
f.meta?.scopes && (f.meta.scopes = e.utils.ids(f.meta.scopes));
|
|
3601
|
-
const { data:
|
|
3602
|
-
return
|
|
3617
|
+
const { data: g } = await e.api.patch(`/content/${u}`, f);
|
|
3618
|
+
return g;
|
|
3603
3619
|
}, r.get = async function(u, o) {
|
|
3604
3620
|
u = e.utils.id(u), o = o || {};
|
|
3605
3621
|
const { data: f } = await e.api.get(`/content/${u}`, o);
|
|
@@ -3629,7 +3645,7 @@ function Tt(e) {
|
|
|
3629
3645
|
})), a;
|
|
3630
3646
|
}, r;
|
|
3631
3647
|
}
|
|
3632
|
-
function
|
|
3648
|
+
function Rt(e) {
|
|
3633
3649
|
var r = {};
|
|
3634
3650
|
function a() {
|
|
3635
3651
|
return !(typeof window > "u" || !window.navigator || !window.navigator.geolocation);
|
|
@@ -4384,38 +4400,47 @@ const kt = function(e, r) {
|
|
|
4384
4400
|
autoreconnect: !0
|
|
4385
4401
|
}, n, i = {};
|
|
4386
4402
|
const y = {}, l = new De();
|
|
4387
|
-
l.bootstrap(t), t.channel = async function(
|
|
4388
|
-
if (i[
|
|
4389
|
-
return i[
|
|
4403
|
+
l.bootstrap(t), t.channel = async function(g) {
|
|
4404
|
+
if (i[g])
|
|
4405
|
+
return i[g];
|
|
4390
4406
|
const c = new De();
|
|
4391
4407
|
function s(A) {
|
|
4392
4408
|
c.dispatch("message", A);
|
|
4393
4409
|
}
|
|
4394
4410
|
return c.destroy = function() {
|
|
4395
|
-
t.removeEventListener(
|
|
4396
|
-
}, i[
|
|
4411
|
+
t.removeEventListener(g, s), t.unsubscribe(g), c.removeAllListeners(), delete i[g];
|
|
4412
|
+
}, i[g] = c, t.connected || await t.connect(), t.subscribe(g), t.addEventListener(g, s), i[g];
|
|
4397
4413
|
};
|
|
4398
|
-
function p(
|
|
4399
|
-
t.debug && console.log("[socket] Connection open",
|
|
4414
|
+
function p(g) {
|
|
4415
|
+
t.debug && console.log("[socket] Connection open", g), t.connected = !0, l.dispatch("connected", g), Object.keys(y).forEach(function(c) {
|
|
4416
|
+
u({
|
|
4417
|
+
action: "subscribe",
|
|
4418
|
+
channel: c
|
|
4419
|
+
});
|
|
4420
|
+
});
|
|
4400
4421
|
}
|
|
4401
|
-
async function m(
|
|
4402
|
-
|
|
4422
|
+
async function m(g) {
|
|
4423
|
+
g.wasClean ? t.debug && console.log(`[socket] Connection closed cleanly, code=${g.code} reason=${g.reason}`) : t.debug && console.log("[socket] - connection closed due to error", g), t.connected = !1, l.dispatch("disconnected", g), n = null, t.autoreconnect && t.reconnect();
|
|
4403
4424
|
}
|
|
4404
|
-
function w(
|
|
4405
|
-
console.log("[event] socketError", event), t.debug && console.log("[socket] Error",
|
|
4425
|
+
function w(g) {
|
|
4426
|
+
console.log("[event] socketError", event), t.debug && console.log("[socket] Error", g), l.dispatch("error", g);
|
|
4406
4427
|
}
|
|
4407
|
-
function b(
|
|
4408
|
-
const c = JSON.parse(
|
|
4428
|
+
function b(g) {
|
|
4429
|
+
const c = JSON.parse(g.data);
|
|
4409
4430
|
t.debug && console.log("[socket] message received", c), l.dispatch("message", c), c.channel && l.dispatch(c.channel, c);
|
|
4410
4431
|
}
|
|
4411
|
-
async function u(
|
|
4412
|
-
n.
|
|
4432
|
+
async function u(g) {
|
|
4433
|
+
if (!n || n.readyState !== WebSocket.OPEN) {
|
|
4434
|
+
t.debug && console.log("[socket] - frame dropped, socket not open", g);
|
|
4435
|
+
return;
|
|
4436
|
+
}
|
|
4437
|
+
n.send(JSON.stringify(g));
|
|
4413
4438
|
}
|
|
4414
4439
|
function o() {
|
|
4415
|
-
return new Promise(function(
|
|
4440
|
+
return new Promise(function(g) {
|
|
4416
4441
|
function c() {
|
|
4417
4442
|
if (t.connected)
|
|
4418
|
-
return
|
|
4443
|
+
return g(n);
|
|
4419
4444
|
setTimeout(c, 1e3);
|
|
4420
4445
|
}
|
|
4421
4446
|
c();
|
|
@@ -4424,49 +4449,44 @@ const kt = function(e, r) {
|
|
|
4424
4449
|
t.connect = async function() {
|
|
4425
4450
|
if (n)
|
|
4426
4451
|
return n.connected ? (console.log("[socket] - Socket is already connected"), n) : o();
|
|
4427
|
-
const
|
|
4428
|
-
if (!
|
|
4452
|
+
const g = e.auth.getCurrentToken();
|
|
4453
|
+
if (!g) {
|
|
4429
4454
|
t.debug && console.log("[socket] - Must be authenticated to connect to socket");
|
|
4430
4455
|
return;
|
|
4431
4456
|
}
|
|
4432
|
-
return n = new WebSocket(`${t.url}?access_token=${
|
|
4457
|
+
return n = new WebSocket(`${t.url}?access_token=${g}&windowid=${a}`), n.addEventListener("close", m), n.addEventListener("error", w), n.addEventListener("open", p), n.addEventListener("message", b), t.debug && console.log("[socket] - Connected with event listeners"), o();
|
|
4433
4458
|
}, t.reconnect = async function() {
|
|
4434
|
-
if (t.connected)
|
|
4435
|
-
return;
|
|
4436
|
-
t.debug && console.log("[socket] reconnecting...");
|
|
4437
|
-
const h = await t.connect();
|
|
4438
|
-
return Object.keys(y).forEach(function(s) {
|
|
4439
|
-
t.subscribe(s);
|
|
4440
|
-
}), h;
|
|
4459
|
+
if (!t.connected)
|
|
4460
|
+
return t.debug && console.log("[socket] reconnecting..."), await t.connect();
|
|
4441
4461
|
}, t.close = async function() {
|
|
4442
4462
|
if (!n) {
|
|
4443
4463
|
console.log("[socket] - Socket is not connected");
|
|
4444
4464
|
return;
|
|
4445
4465
|
}
|
|
4446
|
-
const
|
|
4447
|
-
t.autoreconnect = !1, n.close(), n.removeEventListener("close", m), n.removeEventListener("error", w), n.removeEventListener("open", p), n.removeEventListener("message", b), n = null, m({ wasClean: !0 }), t.autoreconnect =
|
|
4448
|
-
}, t.disconnect = t.close, t.subscribe = async function(
|
|
4466
|
+
const g = t.autoreconnect;
|
|
4467
|
+
t.autoreconnect = !1, n.close(), n.removeEventListener("close", m), n.removeEventListener("error", w), n.removeEventListener("open", p), n.removeEventListener("message", b), n = null, m({ wasClean: !0 }), t.autoreconnect = g;
|
|
4468
|
+
}, t.disconnect = t.close, t.subscribe = async function(g) {
|
|
4449
4469
|
if (!n) {
|
|
4450
4470
|
console.log("[socket] - Can't subscribe to channel as socket is not connected");
|
|
4451
4471
|
return;
|
|
4452
4472
|
}
|
|
4453
4473
|
u({
|
|
4454
4474
|
action: "subscribe",
|
|
4455
|
-
channel:
|
|
4456
|
-
}), y[
|
|
4457
|
-
}, t.unsubscribe = async function(
|
|
4475
|
+
channel: g
|
|
4476
|
+
}), y[g] = !0, l.dispatch("subscribe", g), t.debug && console.log(`[socket] - subscribed to ${g}`);
|
|
4477
|
+
}, t.unsubscribe = async function(g) {
|
|
4458
4478
|
if (!n) {
|
|
4459
4479
|
console.log("[socket] - Can't unsubscribe from channel as socket is not connected");
|
|
4460
4480
|
return;
|
|
4461
4481
|
}
|
|
4462
4482
|
u({
|
|
4463
4483
|
action: "unsubscribe",
|
|
4464
|
-
channel:
|
|
4465
|
-
}), delete y[
|
|
4484
|
+
channel: g
|
|
4485
|
+
}), delete y[g], l.dispatch("unsubscribe", g), t.debug && console.log(`[socket] - unsubscribed from ${g}`);
|
|
4466
4486
|
};
|
|
4467
4487
|
let f = e.utils.id(e.auth.getCurrentUser()?.organisation);
|
|
4468
|
-
return e.auth.addEventListener("change", async function(
|
|
4469
|
-
const c = e.utils.id(
|
|
4488
|
+
return e.auth.addEventListener("change", async function(g) {
|
|
4489
|
+
const c = e.utils.id(g?.organisation);
|
|
4470
4490
|
c !== f && (f = c, n && (t.debug && console.log("[socket] - organisation changed, reconnecting"), await t.close(), await t.reconnect()));
|
|
4471
4491
|
}), t;
|
|
4472
4492
|
};
|
|
@@ -4491,10 +4511,10 @@ function Ft(e) {
|
|
|
4491
4511
|
global: {}
|
|
4492
4512
|
});
|
|
4493
4513
|
Object.defineProperty(r, "cache", {
|
|
4494
|
-
value:
|
|
4514
|
+
value: Ct,
|
|
4495
4515
|
writable: !1
|
|
4496
4516
|
});
|
|
4497
|
-
const t =
|
|
4517
|
+
const t = I;
|
|
4498
4518
|
Object.defineProperty(r, "utils", {
|
|
4499
4519
|
value: t,
|
|
4500
4520
|
writable: !1
|
|
@@ -4502,14 +4522,14 @@ function Ft(e) {
|
|
|
4502
4522
|
value: q,
|
|
4503
4523
|
writable: !1
|
|
4504
4524
|
});
|
|
4505
|
-
const i = new
|
|
4525
|
+
const i = new Ot(r);
|
|
4506
4526
|
Object.defineProperty(r, "files", {
|
|
4507
4527
|
value: i,
|
|
4508
4528
|
writable: !1
|
|
4509
4529
|
}), new De().bootstrap(r), r.error = function(f) {
|
|
4510
4530
|
return r.dispatch("error", t.errorMessage(f));
|
|
4511
|
-
}, r.notify = function(f,
|
|
4512
|
-
return r.dispatch("notification", { message: f, options:
|
|
4531
|
+
}, r.notify = function(f, g) {
|
|
4532
|
+
return r.dispatch("notification", { message: f, options: g });
|
|
4513
4533
|
};
|
|
4514
4534
|
const l = new mt(r);
|
|
4515
4535
|
Object.defineProperty(r, "api", {
|
|
@@ -4536,12 +4556,12 @@ function Ft(e) {
|
|
|
4536
4556
|
value: b,
|
|
4537
4557
|
writable: !1
|
|
4538
4558
|
});
|
|
4539
|
-
const u = new
|
|
4559
|
+
const u = new Rt(r);
|
|
4540
4560
|
Object.defineProperty(r, "geo", {
|
|
4541
4561
|
value: u,
|
|
4542
4562
|
writable: !1
|
|
4543
4563
|
});
|
|
4544
|
-
const o = new
|
|
4564
|
+
const o = new It(r);
|
|
4545
4565
|
return Object.defineProperty(r, "content", {
|
|
4546
4566
|
value: o,
|
|
4547
4567
|
writable: !1
|