@qikdev/sdk 0.3.0 → 0.4.0
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 +416 -407
- package/package.json +1 -1
- package/src/api/qik.access.js +20 -0
- package/src/version.js +1 -1
package/dist/main.js
CHANGED
|
@@ -69,14 +69,14 @@ function Xr() {
|
|
|
69
69
|
if (Or) return Ye;
|
|
70
70
|
Or = 1;
|
|
71
71
|
var e = "Function.prototype.bind called on incompatible ", r = Object.prototype.toString, a = Math.max, t = "[object Function]", n = function(p, y) {
|
|
72
|
-
for (var w = [],
|
|
73
|
-
w[
|
|
72
|
+
for (var w = [], v = 0; v < p.length; v += 1)
|
|
73
|
+
w[v] = p[v];
|
|
74
74
|
for (var u = 0; u < y.length; u += 1)
|
|
75
75
|
w[u + p.length] = y[u];
|
|
76
76
|
return w;
|
|
77
77
|
}, o = function(p, y) {
|
|
78
|
-
for (var w = [],
|
|
79
|
-
w[u] = p[
|
|
78
|
+
for (var w = [], v = y, u = 0; v < p.length; v += 1, u += 1)
|
|
79
|
+
w[u] = p[v];
|
|
80
80
|
return w;
|
|
81
81
|
}, m = function(l, p) {
|
|
82
82
|
for (var y = "", w = 0; w < l.length; w += 1)
|
|
@@ -87,8 +87,8 @@ function Xr() {
|
|
|
87
87
|
var y = this;
|
|
88
88
|
if (typeof y != "function" || r.apply(y) !== t)
|
|
89
89
|
throw new TypeError(e + y);
|
|
90
|
-
for (var w = o(arguments, 1),
|
|
91
|
-
if (this instanceof
|
|
90
|
+
for (var w = o(arguments, 1), v, u = function() {
|
|
91
|
+
if (this instanceof v) {
|
|
92
92
|
var c = y.apply(
|
|
93
93
|
this,
|
|
94
94
|
n(w, arguments)
|
|
@@ -101,12 +101,12 @@ function Xr() {
|
|
|
101
101
|
);
|
|
102
102
|
}, s = a(0, y.length - w.length), i = [], S = 0; S < s; S++)
|
|
103
103
|
i[S] = "$" + S;
|
|
104
|
-
if (
|
|
104
|
+
if (v = Function("binder", "return function (" + m(i, ",") + "){ return binder.apply(this,arguments); }")(u), y.prototype) {
|
|
105
105
|
var f = function() {
|
|
106
106
|
};
|
|
107
|
-
f.prototype = y.prototype,
|
|
107
|
+
f.prototype = y.prototype, v.prototype = new f(), f.prototype = null;
|
|
108
108
|
}
|
|
109
|
-
return
|
|
109
|
+
return v;
|
|
110
110
|
}, Ye;
|
|
111
111
|
}
|
|
112
112
|
var Xe, Mr;
|
|
@@ -153,7 +153,7 @@ function hr() {
|
|
|
153
153
|
}
|
|
154
154
|
})() : m, p = Yr()(), y = Object.getPrototypeOf || function($) {
|
|
155
155
|
return $.__proto__;
|
|
156
|
-
}, w = {},
|
|
156
|
+
}, w = {}, v = typeof Uint8Array > "u" ? e : y(Uint8Array), u = {
|
|
157
157
|
"%AggregateError%": typeof AggregateError > "u" ? e : AggregateError,
|
|
158
158
|
"%Array%": Array,
|
|
159
159
|
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? e : ArrayBuffer,
|
|
@@ -209,7 +209,7 @@ function hr() {
|
|
|
209
209
|
"%Symbol%": p ? Symbol : e,
|
|
210
210
|
"%SyntaxError%": r,
|
|
211
211
|
"%ThrowTypeError%": l,
|
|
212
|
-
"%TypedArray%":
|
|
212
|
+
"%TypedArray%": v,
|
|
213
213
|
"%TypeError%": t,
|
|
214
214
|
"%Uint8Array%": typeof Uint8Array > "u" ? e : Uint8Array,
|
|
215
215
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? e : Uint8ClampedArray,
|
|
@@ -228,11 +228,11 @@ function hr() {
|
|
|
228
228
|
else if (L === "%AsyncGeneratorFunction%")
|
|
229
229
|
F = n("async function* () {}");
|
|
230
230
|
else if (L === "%AsyncGenerator%") {
|
|
231
|
-
var
|
|
232
|
-
|
|
231
|
+
var R = $("%AsyncGeneratorFunction%");
|
|
232
|
+
R && (F = R.prototype);
|
|
233
233
|
} else if (L === "%AsyncIteratorPrototype%") {
|
|
234
|
-
var
|
|
235
|
-
|
|
234
|
+
var T = $("%AsyncGenerator%");
|
|
235
|
+
T && (F = y(T.prototype));
|
|
236
236
|
}
|
|
237
237
|
return u[L] = F, F;
|
|
238
238
|
}, i = {
|
|
@@ -287,25 +287,25 @@ function hr() {
|
|
|
287
287
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
288
288
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
289
289
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
290
|
-
}, S = yr(), f = et(), c = S.call(Function.call, Array.prototype.concat),
|
|
291
|
-
var F =
|
|
292
|
-
if (F === "%" &&
|
|
290
|
+
}, S = yr(), f = et(), c = S.call(Function.call, Array.prototype.concat), A = S.call(Function.apply, Array.prototype.splice), b = S.call(Function.call, String.prototype.replace), P = S.call(Function.call, String.prototype.slice), x = S.call(Function.call, RegExp.prototype.exec), k = /[^%.[\]]+|\[(?:(-?\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
|
-
var
|
|
297
|
-
return
|
|
298
|
-
|
|
299
|
-
}),
|
|
296
|
+
var T = [];
|
|
297
|
+
return b(L, k, function(U, z, _, Z) {
|
|
298
|
+
T[T.length] = _ ? b(Z, N, "$1") : z || U;
|
|
299
|
+
}), T;
|
|
300
300
|
}, V = function(L, F) {
|
|
301
|
-
var
|
|
302
|
-
if (f(i,
|
|
303
|
-
var U = u[
|
|
304
|
-
if (U === w && (U = s(
|
|
301
|
+
var R = L, T;
|
|
302
|
+
if (f(i, R) && (T = i[R], R = "%" + T[0] + "%"), f(u, R)) {
|
|
303
|
+
var U = u[R];
|
|
304
|
+
if (U === w && (U = s(R)), typeof U > "u" && !F)
|
|
305
305
|
throw new t("intrinsic " + L + " exists, but is not available. Please file an issue!");
|
|
306
306
|
return {
|
|
307
|
-
alias:
|
|
308
|
-
name:
|
|
307
|
+
alias: T,
|
|
308
|
+
name: R,
|
|
309
309
|
value: U
|
|
310
310
|
};
|
|
311
311
|
}
|
|
@@ -318,13 +318,13 @@ function hr() {
|
|
|
318
318
|
throw new t('"allowMissing" argument must be a boolean');
|
|
319
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 && (
|
|
323
|
-
for (var ne = 1, X = !0; ne <
|
|
324
|
-
var W =
|
|
321
|
+
var R = M(L), T = R.length > 0 ? R[0] : "", U = V("%" + T + "%", F), z = U.name, _ = U.value, Z = !1, Q = U.alias;
|
|
322
|
+
Q && (T = Q[0], A(R, c([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
|
-
if ((W === "constructor" || !X) && (Z = !0),
|
|
327
|
+
if ((W === "constructor" || !X) && (Z = !0), T += "." + W, z = "%" + T + "%", f(u, z))
|
|
328
328
|
_ = u[z];
|
|
329
329
|
else if (_ != null) {
|
|
330
330
|
if (!(W in _)) {
|
|
@@ -332,7 +332,7 @@ function hr() {
|
|
|
332
332
|
throw new t("base intrinsic for " + L + " exists, but the property is not available.");
|
|
333
333
|
return;
|
|
334
334
|
}
|
|
335
|
-
if (o && ne + 1 >=
|
|
335
|
+
if (o && ne + 1 >= R.length) {
|
|
336
336
|
var te = o(_, 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%"), o = a("%Reflect.apply%", !0) || r.call(n, t), m = a("%Object.getOwnPropertyDescriptor%", !0), l = a("%Object.defineProperty%", !0), p = a("%Math.max%");
|
|
350
350
|
if (l)
|
|
351
351
|
try {
|
|
@@ -353,14 +353,14 @@ function rt() {
|
|
|
353
353
|
} catch {
|
|
354
354
|
l = null;
|
|
355
355
|
}
|
|
356
|
-
e.exports = function(
|
|
356
|
+
e.exports = function(v) {
|
|
357
357
|
var u = o(r, n, arguments);
|
|
358
358
|
if (m && l) {
|
|
359
359
|
var s = m(u, "length");
|
|
360
360
|
s.configurable && l(
|
|
361
361
|
u,
|
|
362
362
|
"length",
|
|
363
|
-
{ value: 1 + p(0,
|
|
363
|
+
{ value: 1 + p(0, v.length - (arguments.length - 1)) }
|
|
364
364
|
);
|
|
365
365
|
}
|
|
366
366
|
return u;
|
|
@@ -371,10 +371,10 @@ function rt() {
|
|
|
371
371
|
l ? l(e.exports, "apply", { value: y }) : e.exports.apply = y;
|
|
372
372
|
})(tr)), tr.exports;
|
|
373
373
|
}
|
|
374
|
-
var ar,
|
|
374
|
+
var ar, Tr;
|
|
375
375
|
function tt() {
|
|
376
|
-
if (
|
|
377
|
-
|
|
376
|
+
if (Tr) return ar;
|
|
377
|
+
Tr = 1;
|
|
378
378
|
var e = hr(), r = rt(), a = r(e("String.prototype.indexOf"));
|
|
379
379
|
return ar = function(n, o) {
|
|
380
380
|
var m = e(n, !!o);
|
|
@@ -389,7 +389,7 @@ 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, o = Object.getOwnPropertyDescriptor && n ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, m = n && o && typeof o.get == "function" ? o.get : null, l = n && Set.prototype.forEach, p = typeof WeakMap == "function" && WeakMap.prototype, y = p ? WeakMap.prototype.has : null, w = typeof WeakSet == "function" && WeakSet.prototype,
|
|
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, o = Object.getOwnPropertyDescriptor && n ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, m = n && o && typeof o.get == "function" ? o.get : null, l = n && Set.prototype.forEach, p = typeof WeakMap == "function" && WeakMap.prototype, y = p ? WeakMap.prototype.has : null, w = typeof WeakSet == "function" && WeakSet.prototype, v = w ? WeakSet.prototype.has : null, u = typeof WeakRef == "function" && WeakRef.prototype, s = u ? WeakRef.prototype.deref : null, i = Boolean.prototype.valueOf, S = Object.prototype.toString, f = Function.prototype.toString, c = String.prototype.match, A = String.prototype.slice, b = String.prototype.replace, P = String.prototype.toUpperCase, x = String.prototype.toLowerCase, k = 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, T = typeof Symbol == "function" && typeof Symbol.iterator == "object", U = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === T || !0) ? Symbol.toStringTag : null, z = Object.prototype.propertyIsEnumerable, _ = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(h) {
|
|
393
393
|
return h.__proto__;
|
|
394
394
|
} : null);
|
|
395
395
|
function Z(h, g) {
|
|
@@ -399,27 +399,27 @@ function ot() {
|
|
|
399
399
|
if (typeof h == "number") {
|
|
400
400
|
var d = h < 0 ? -$(-h) : $(h);
|
|
401
401
|
if (d !== h) {
|
|
402
|
-
var E = String(d),
|
|
403
|
-
return
|
|
402
|
+
var E = String(d), C = A.call(g, E.length + 1);
|
|
403
|
+
return b.call(E, D, "$&_") + "." + b.call(b.call(C, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
|
-
return
|
|
406
|
+
return b.call(g, D, "$&_");
|
|
407
407
|
}
|
|
408
408
|
var Q = it, ne = Q.custom, X = se(ne) ? ne : null;
|
|
409
409
|
nr = function h(g, D, d, E) {
|
|
410
|
-
var
|
|
411
|
-
if (J(
|
|
410
|
+
var C = D || {};
|
|
411
|
+
if (J(C, "quoteStyle") && C.quoteStyle !== "single" && C.quoteStyle !== "double")
|
|
412
412
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
413
|
-
if (J(
|
|
413
|
+
if (J(C, "maxStringLength") && (typeof C.maxStringLength == "number" ? C.maxStringLength < 0 && C.maxStringLength !== 1 / 0 : C.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(C, "customInspect") ? C.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(C, "indent") && C.indent !== null && C.indent !== " " && !(parseInt(C.indent, 10) === C.indent && C.indent > 0))
|
|
419
419
|
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
420
|
-
if (J(
|
|
420
|
+
if (J(C, "numericSeparator") && typeof C.numericSeparator != "boolean")
|
|
421
421
|
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
422
|
-
var ae =
|
|
422
|
+
var ae = C.numericSeparator;
|
|
423
423
|
if (typeof g > "u")
|
|
424
424
|
return "undefined";
|
|
425
425
|
if (g === null)
|
|
@@ -427,7 +427,7 @@ function ot() {
|
|
|
427
427
|
if (typeof g == "boolean")
|
|
428
428
|
return g ? "true" : "false";
|
|
429
429
|
if (typeof g == "string")
|
|
430
|
-
return Ce(g,
|
|
430
|
+
return Ce(g, C);
|
|
431
431
|
if (typeof g == "number") {
|
|
432
432
|
if (g === 0)
|
|
433
433
|
return 1 / 0 / g > 0 ? "0" : "-0";
|
|
@@ -438,10 +438,10 @@ function ot() {
|
|
|
438
438
|
var O = String(g) + "n";
|
|
439
439
|
return ae ? Z(g, O) : O;
|
|
440
440
|
}
|
|
441
|
-
var B = typeof
|
|
441
|
+
var B = typeof C.depth > "u" ? 5 : C.depth;
|
|
442
442
|
if (typeof d > "u" && (d = 0), d >= B && B > 0 && typeof g == "object")
|
|
443
443
|
return re(g) ? "[Array]" : "[Object]";
|
|
444
|
-
var j = Le(
|
|
444
|
+
var j = Le(C, d);
|
|
445
445
|
if (typeof E > "u")
|
|
446
446
|
E = [];
|
|
447
447
|
else if (xe(E, g) >= 0)
|
|
@@ -449,23 +449,23 @@ 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: C.depth
|
|
453
453
|
};
|
|
454
|
-
return J(
|
|
454
|
+
return J(C, "quoteStyle") && (xr.quoteStyle = C.quoteStyle), h(Me, xr, d + 1, E);
|
|
455
455
|
}
|
|
456
|
-
return h(Me,
|
|
456
|
+
return h(Me, C, d + 1, E);
|
|
457
457
|
}
|
|
458
458
|
if (typeof g == "function" && !ce(g)) {
|
|
459
459
|
var Y = Ie(g), we = ge(g, H);
|
|
460
460
|
return "[Function" + (Y ? ": " + Y : " (anonymous)") + "]" + (we.length > 0 ? " { " + M.call(we, ", ") + " }" : "");
|
|
461
461
|
}
|
|
462
462
|
if (se(g)) {
|
|
463
|
-
var Ar =
|
|
464
|
-
return typeof g == "object" && !
|
|
463
|
+
var Ar = T ? b.call(String(g), /^(Symbol\(.*\))_[^)]*$/, "$1") : R.call(g);
|
|
464
|
+
return typeof g == "object" && !T ? le(Ar) : Ar;
|
|
465
465
|
}
|
|
466
466
|
if (_e(g)) {
|
|
467
467
|
for (var Fe = "<" + x.call(String(g.nodeName)), ze = g.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", C);
|
|
469
469
|
return Fe += ">", g.childNodes && g.childNodes.length && (Fe += "..."), Fe += "</" + x.call(String(g.nodeName)) + ">", Fe;
|
|
470
470
|
}
|
|
471
471
|
if (re(g)) {
|
|
@@ -490,7 +490,7 @@ function ot() {
|
|
|
490
490
|
br.push(H(Be, g, !0) + " => " + H(Me, g));
|
|
491
491
|
}), Se("Map", a.call(g), br, j);
|
|
492
492
|
}
|
|
493
|
-
if (
|
|
493
|
+
if (Re(g)) {
|
|
494
494
|
var Sr = [];
|
|
495
495
|
return l.call(g, function(Me) {
|
|
496
496
|
Sr.push(H(Me, g));
|
|
@@ -498,7 +498,7 @@ function ot() {
|
|
|
498
498
|
}
|
|
499
499
|
if (me(g))
|
|
500
500
|
return fe("WeakMap");
|
|
501
|
-
if (
|
|
501
|
+
if (Te(g))
|
|
502
502
|
return fe("WeakSet");
|
|
503
503
|
if (Pe(g))
|
|
504
504
|
return fe("WeakRef");
|
|
@@ -511,7 +511,7 @@ function ot() {
|
|
|
511
511
|
if (oe(g))
|
|
512
512
|
return le(H(String(g)));
|
|
513
513
|
if (!te(g) && !ce(g)) {
|
|
514
|
-
var He = ge(g, H), wr = _ ? _(g) === Object.prototype : g instanceof Object || g.constructor === Object, Je = g instanceof Object ? "" : "null prototype", Er = !wr && U && Object(g) === g && U in g ?
|
|
514
|
+
var He = ge(g, H), wr = _ ? _(g) === Object.prototype : g instanceof Object || g.constructor === Object, Je = g instanceof Object ? "" : "null prototype", Er = !wr && U && Object(g) === g && U in g ? A.call(ee(g), 8, -1) : Je ? "Object" : "", Hr = wr || typeof g.constructor != "function" ? "" : g.constructor.name ? g.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(g);
|
|
@@ -521,7 +521,7 @@ function ot() {
|
|
|
521
521
|
return d + h + d;
|
|
522
522
|
}
|
|
523
523
|
function ie(h) {
|
|
524
|
-
return
|
|
524
|
+
return b.call(String(h), /"/g, """);
|
|
525
525
|
}
|
|
526
526
|
function re(h) {
|
|
527
527
|
return ee(h) === "[object Array]" && (!U || !(typeof h == "object" && U in h));
|
|
@@ -545,14 +545,14 @@ function ot() {
|
|
|
545
545
|
return ee(h) === "[object Boolean]" && (!U || !(typeof h == "object" && U in h));
|
|
546
546
|
}
|
|
547
547
|
function se(h) {
|
|
548
|
-
if (
|
|
548
|
+
if (T)
|
|
549
549
|
return h && typeof h == "object" && h instanceof Symbol;
|
|
550
550
|
if (typeof h == "symbol")
|
|
551
551
|
return !0;
|
|
552
|
-
if (!h || typeof h != "object" || !
|
|
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;
|
|
@@ -610,7 +610,7 @@ function ot() {
|
|
|
610
610
|
try {
|
|
611
611
|
y.call(h, y);
|
|
612
612
|
try {
|
|
613
|
-
|
|
613
|
+
v.call(h, v);
|
|
614
614
|
} catch {
|
|
615
615
|
return !0;
|
|
616
616
|
}
|
|
@@ -628,7 +628,7 @@ function ot() {
|
|
|
628
628
|
}
|
|
629
629
|
return !1;
|
|
630
630
|
}
|
|
631
|
-
function
|
|
631
|
+
function Re(h) {
|
|
632
632
|
if (!m || !h || typeof h != "object")
|
|
633
633
|
return !1;
|
|
634
634
|
try {
|
|
@@ -643,11 +643,11 @@ function ot() {
|
|
|
643
643
|
}
|
|
644
644
|
return !1;
|
|
645
645
|
}
|
|
646
|
-
function
|
|
647
|
-
if (!
|
|
646
|
+
function Te(h) {
|
|
647
|
+
if (!v || !h || typeof h != "object")
|
|
648
648
|
return !1;
|
|
649
649
|
try {
|
|
650
|
-
|
|
650
|
+
v.call(h, v);
|
|
651
651
|
try {
|
|
652
652
|
y.call(h, y);
|
|
653
653
|
} catch {
|
|
@@ -664,9 +664,9 @@ function ot() {
|
|
|
664
664
|
function Ce(h, g) {
|
|
665
665
|
if (h.length > g.maxStringLength) {
|
|
666
666
|
var D = h.length - g.maxStringLength, d = "... " + D + " more character" + (D > 1 ? "s" : "");
|
|
667
|
-
return Ce(
|
|
667
|
+
return Ce(A.call(h, 0, g.maxStringLength), g) + d;
|
|
668
668
|
}
|
|
669
|
-
var E =
|
|
669
|
+
var E = b.call(b.call(h, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Ne);
|
|
670
670
|
return W(E, "single", g);
|
|
671
671
|
}
|
|
672
672
|
function Ne(h) {
|
|
@@ -677,7 +677,7 @@ function ot() {
|
|
|
677
677
|
12: "f",
|
|
678
678
|
13: "r"
|
|
679
679
|
}[g];
|
|
680
|
-
return D ? "\\" + D : "\\x" + (g < 16 ? "0" : "") +
|
|
680
|
+
return D ? "\\" + D : "\\x" + (g < 16 ? "0" : "") + P.call(g.toString(16));
|
|
681
681
|
}
|
|
682
682
|
function le(h) {
|
|
683
683
|
return "Object(" + h + ")";
|
|
@@ -724,17 +724,17 @@ function ot() {
|
|
|
724
724
|
for (var E = 0; E < h.length; E++)
|
|
725
725
|
d[E] = J(h, E) ? g(h[E], h) : "";
|
|
726
726
|
}
|
|
727
|
-
var
|
|
728
|
-
if (
|
|
727
|
+
var C = typeof F == "function" ? F(h) : [], G;
|
|
728
|
+
if (T) {
|
|
729
729
|
G = {};
|
|
730
|
-
for (var ae = 0; ae <
|
|
731
|
-
G["$" +
|
|
730
|
+
for (var ae = 0; ae < C.length; ae++)
|
|
731
|
+
G["$" + C[ae]] = C[ae];
|
|
732
732
|
}
|
|
733
733
|
for (var K in h)
|
|
734
|
-
J(h, K) && (D && String(Number(K)) === K && K < h.length ||
|
|
734
|
+
J(h, K) && (D && String(Number(K)) === K && K < h.length || T && G["$" + K] instanceof Symbol || (k.call(/[^\w$]/, K) ? d.push(g(K, h) + ": " + g(h[K], h)) : d.push(K + ": " + g(h[K], h))));
|
|
735
735
|
if (typeof F == "function")
|
|
736
|
-
for (var O = 0; O <
|
|
737
|
-
z.call(h,
|
|
736
|
+
for (var O = 0; O < C.length; O++)
|
|
737
|
+
z.call(h, C[O]) && d.push("[" + g(C[O]) + "]: " + g(h[C[O]], h));
|
|
738
738
|
return d;
|
|
739
739
|
}
|
|
740
740
|
return nr;
|
|
@@ -743,28 +743,28 @@ var ir, Nr;
|
|
|
743
743
|
function st() {
|
|
744
744
|
if (Nr) return ir;
|
|
745
745
|
Nr = 1;
|
|
746
|
-
var e = hr(), r = tt(), a = /* @__PURE__ */ ot(), t = e("%TypeError%"), n = e("%WeakMap%", !0), o = e("%Map%", !0), m = r("WeakMap.prototype.get", !0), l = r("WeakMap.prototype.set", !0), p = r("WeakMap.prototype.has", !0), y = r("Map.prototype.get", !0), w = r("Map.prototype.set", !0),
|
|
747
|
-
for (var
|
|
748
|
-
if (
|
|
749
|
-
return
|
|
746
|
+
var e = hr(), r = tt(), a = /* @__PURE__ */ ot(), t = e("%TypeError%"), n = e("%WeakMap%", !0), o = e("%Map%", !0), m = r("WeakMap.prototype.get", !0), l = r("WeakMap.prototype.set", !0), p = r("WeakMap.prototype.has", !0), y = r("Map.prototype.get", !0), w = r("Map.prototype.set", !0), v = r("Map.prototype.has", !0), u = function(f, c) {
|
|
747
|
+
for (var A = f, b; (b = A.next) !== null; A = b)
|
|
748
|
+
if (b.key === c)
|
|
749
|
+
return A.next = b.next, b.next = f.next, f.next = b, b;
|
|
750
750
|
}, s = function(f, c) {
|
|
751
|
+
var A = u(f, c);
|
|
752
|
+
return A && A.value;
|
|
753
|
+
}, i = function(f, c, A) {
|
|
751
754
|
var b = u(f, c);
|
|
752
|
-
|
|
753
|
-
}, i = function(f, c, b) {
|
|
754
|
-
var v = u(f, c);
|
|
755
|
-
v ? v.value = b : f.next = {
|
|
755
|
+
b ? b.value = A : f.next = {
|
|
756
756
|
// eslint-disable-line no-param-reassign
|
|
757
757
|
key: c,
|
|
758
758
|
next: f.next,
|
|
759
|
-
value:
|
|
759
|
+
value: A
|
|
760
760
|
};
|
|
761
761
|
}, S = function(f, c) {
|
|
762
762
|
return !!u(f, c);
|
|
763
763
|
};
|
|
764
764
|
return ir = function() {
|
|
765
|
-
var c,
|
|
765
|
+
var c, A, b, P = {
|
|
766
766
|
assert: function(x) {
|
|
767
|
-
if (!
|
|
767
|
+
if (!P.has(x))
|
|
768
768
|
throw new t("Side channel does not contain " + a(x));
|
|
769
769
|
},
|
|
770
770
|
get: function(x) {
|
|
@@ -772,27 +772,27 @@ function st() {
|
|
|
772
772
|
if (c)
|
|
773
773
|
return m(c, x);
|
|
774
774
|
} else if (o) {
|
|
775
|
-
if (
|
|
776
|
-
return y(
|
|
777
|
-
} else if (
|
|
778
|
-
return s(
|
|
775
|
+
if (A)
|
|
776
|
+
return y(A, x);
|
|
777
|
+
} else if (b)
|
|
778
|
+
return s(b, x);
|
|
779
779
|
},
|
|
780
780
|
has: function(x) {
|
|
781
781
|
if (n && x && (typeof x == "object" || typeof x == "function")) {
|
|
782
782
|
if (c)
|
|
783
783
|
return p(c, x);
|
|
784
784
|
} else if (o) {
|
|
785
|
-
if (
|
|
786
|
-
return A
|
|
787
|
-
} else if (
|
|
788
|
-
return S(
|
|
785
|
+
if (A)
|
|
786
|
+
return v(A, x);
|
|
787
|
+
} else if (b)
|
|
788
|
+
return S(b, x);
|
|
789
789
|
return !1;
|
|
790
790
|
},
|
|
791
791
|
set: function(x, k) {
|
|
792
|
-
n && x && (typeof x == "object" || typeof x == "function") ? (c || (c = new n()), l(c, x, k)) : o ? (
|
|
792
|
+
n && x && (typeof x == "object" || typeof x == "function") ? (c || (c = new n()), l(c, x, k)) : o ? (A || (A = new o()), w(A, x, k)) : (b || (b = { key: {}, next: null }), i(b, x, k));
|
|
793
793
|
}
|
|
794
794
|
};
|
|
795
|
-
return
|
|
795
|
+
return P;
|
|
796
796
|
}, ir;
|
|
797
797
|
}
|
|
798
798
|
var or, Lr;
|
|
@@ -827,66 +827,66 @@ function Wr() {
|
|
|
827
827
|
return S;
|
|
828
828
|
})(), n = function(f) {
|
|
829
829
|
for (; f.length > 1; ) {
|
|
830
|
-
var c = f.pop(),
|
|
831
|
-
if (a(
|
|
832
|
-
for (var
|
|
833
|
-
typeof
|
|
834
|
-
c.obj[c.prop] =
|
|
830
|
+
var c = f.pop(), A = c.obj[c.prop];
|
|
831
|
+
if (a(A)) {
|
|
832
|
+
for (var b = [], P = 0; P < A.length; ++P)
|
|
833
|
+
typeof A[P] < "u" && b.push(A[P]);
|
|
834
|
+
c.obj[c.prop] = b;
|
|
835
835
|
}
|
|
836
836
|
}
|
|
837
837
|
}, o = function(f, c) {
|
|
838
|
-
for (var
|
|
839
|
-
typeof f[
|
|
840
|
-
return
|
|
841
|
-
}, m = function S(f, c,
|
|
838
|
+
for (var A = c && c.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, b = 0; b < f.length; ++b)
|
|
839
|
+
typeof f[b] < "u" && (A[b] = f[b]);
|
|
840
|
+
return A;
|
|
841
|
+
}, m = function S(f, c, A) {
|
|
842
842
|
if (!c)
|
|
843
843
|
return f;
|
|
844
844
|
if (typeof c != "object") {
|
|
845
845
|
if (a(f))
|
|
846
846
|
f.push(c);
|
|
847
847
|
else if (f && typeof f == "object")
|
|
848
|
-
(
|
|
848
|
+
(A && (A.plainObjects || A.allowPrototypes) || !r.call(Object.prototype, c)) && (f[c] = !0);
|
|
849
849
|
else
|
|
850
850
|
return [f, c];
|
|
851
851
|
return f;
|
|
852
852
|
}
|
|
853
853
|
if (!f || typeof f != "object")
|
|
854
854
|
return [f].concat(c);
|
|
855
|
-
var
|
|
856
|
-
return a(f) && !a(c) && (
|
|
855
|
+
var b = f;
|
|
856
|
+
return a(f) && !a(c) && (b = o(f, A)), a(f) && a(c) ? (c.forEach(function(P, x) {
|
|
857
857
|
if (r.call(f, x)) {
|
|
858
858
|
var k = f[x];
|
|
859
|
-
k && typeof k == "object" &&
|
|
859
|
+
k && typeof k == "object" && P && typeof P == "object" ? f[x] = S(k, P, A) : f.push(P);
|
|
860
860
|
} else
|
|
861
|
-
f[x] =
|
|
862
|
-
}), f) : Object.keys(c).reduce(function(
|
|
861
|
+
f[x] = P;
|
|
862
|
+
}), f) : Object.keys(c).reduce(function(P, x) {
|
|
863
863
|
var k = c[x];
|
|
864
|
-
return r.call(
|
|
865
|
-
},
|
|
864
|
+
return r.call(P, x) ? P[x] = S(P[x], k, A) : P[x] = k, P;
|
|
865
|
+
}, b);
|
|
866
866
|
}, l = function(f, c) {
|
|
867
|
-
return Object.keys(c).reduce(function(
|
|
868
|
-
return b
|
|
867
|
+
return Object.keys(c).reduce(function(A, b) {
|
|
868
|
+
return A[b] = c[b], A;
|
|
869
869
|
}, f);
|
|
870
870
|
}, p = function(S, f, c) {
|
|
871
|
-
var
|
|
871
|
+
var A = S.replace(/\+/g, " ");
|
|
872
872
|
if (c === "iso-8859-1")
|
|
873
|
-
return
|
|
873
|
+
return A.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
874
874
|
try {
|
|
875
|
-
return decodeURIComponent(
|
|
875
|
+
return decodeURIComponent(A);
|
|
876
876
|
} catch {
|
|
877
|
-
return
|
|
877
|
+
return A;
|
|
878
878
|
}
|
|
879
|
-
}, y = function(f, c,
|
|
879
|
+
}, y = function(f, c, A, b, P) {
|
|
880
880
|
if (f.length === 0)
|
|
881
881
|
return f;
|
|
882
882
|
var x = f;
|
|
883
|
-
if (typeof f == "symbol" ? x = Symbol.prototype.toString.call(f) : typeof f != "string" && (x = String(f)),
|
|
883
|
+
if (typeof f == "symbol" ? x = Symbol.prototype.toString.call(f) : typeof f != "string" && (x = String(f)), A === "iso-8859-1")
|
|
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
887
|
for (var k = "", N = 0; N < x.length; ++N) {
|
|
888
888
|
var M = x.charCodeAt(N);
|
|
889
|
-
if (M === 45 || M === 46 || M === 95 || M === 126 || M >= 48 && M <= 57 || M >= 65 && M <= 90 || M >= 97 && M <= 122 ||
|
|
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
890
|
k += x.charAt(N);
|
|
891
891
|
continue;
|
|
892
892
|
}
|
|
@@ -906,13 +906,13 @@ function Wr() {
|
|
|
906
906
|
}
|
|
907
907
|
return k;
|
|
908
908
|
}, w = function(f) {
|
|
909
|
-
for (var c = [{ obj: { o: f }, prop: "o" }],
|
|
910
|
-
for (var
|
|
909
|
+
for (var c = [{ obj: { o: f }, prop: "o" }], A = [], b = 0; b < c.length; ++b)
|
|
910
|
+
for (var P = c[b], x = P.obj[P.prop], k = Object.keys(x), N = 0; N < k.length; ++N) {
|
|
911
911
|
var M = k[N], V = x[M];
|
|
912
|
-
typeof V == "object" && V !== null &&
|
|
912
|
+
typeof V == "object" && V !== null && A.indexOf(V) === -1 && (c.push({ obj: x, prop: M }), A.push(V));
|
|
913
913
|
}
|
|
914
914
|
return n(c), f;
|
|
915
|
-
},
|
|
915
|
+
}, v = function(f) {
|
|
916
916
|
return Object.prototype.toString.call(f) === "[object RegExp]";
|
|
917
917
|
}, u = function(f) {
|
|
918
918
|
return !f || typeof f != "object" ? !1 : !!(f.constructor && f.constructor.isBuffer && f.constructor.isBuffer(f));
|
|
@@ -920,9 +920,9 @@ function Wr() {
|
|
|
920
920
|
return [].concat(f, c);
|
|
921
921
|
}, i = function(f, c) {
|
|
922
922
|
if (a(f)) {
|
|
923
|
-
for (var
|
|
924
|
-
|
|
925
|
-
return
|
|
923
|
+
for (var A = [], b = 0; b < f.length; b += 1)
|
|
924
|
+
A.push(c(f[b]));
|
|
925
|
+
return A;
|
|
926
926
|
}
|
|
927
927
|
return c(f);
|
|
928
928
|
};
|
|
@@ -934,7 +934,7 @@ function Wr() {
|
|
|
934
934
|
decode: p,
|
|
935
935
|
encode: y,
|
|
936
936
|
isBuffer: u,
|
|
937
|
-
isRegExp:
|
|
937
|
+
isRegExp: v,
|
|
938
938
|
maybeMap: i,
|
|
939
939
|
merge: m
|
|
940
940
|
}, sr;
|
|
@@ -948,15 +948,15 @@ function ut() {
|
|
|
948
948
|
return c + "[]";
|
|
949
949
|
},
|
|
950
950
|
comma: "comma",
|
|
951
|
-
indices: function(c,
|
|
952
|
-
return c + "[" +
|
|
951
|
+
indices: function(c, A) {
|
|
952
|
+
return c + "[" + A + "]";
|
|
953
953
|
},
|
|
954
954
|
repeat: function(c) {
|
|
955
955
|
return c;
|
|
956
956
|
}
|
|
957
957
|
}, o = Array.isArray, m = String.prototype.split, l = Array.prototype.push, p = function(f, c) {
|
|
958
958
|
l.apply(f, o(c) ? c : [c]);
|
|
959
|
-
}, y = Date.prototype.toISOString, w = a.default,
|
|
959
|
+
}, y = Date.prototype.toISOString, w = a.default, v = {
|
|
960
960
|
addQueryPrefix: !1,
|
|
961
961
|
allowDots: !1,
|
|
962
962
|
charset: "utf-8",
|
|
@@ -976,7 +976,7 @@ function ut() {
|
|
|
976
976
|
strictNullHandling: !1
|
|
977
977
|
}, u = function(c) {
|
|
978
978
|
return typeof c == "string" || typeof c == "number" || typeof c == "boolean" || typeof c == "symbol" || typeof c == "bigint";
|
|
979
|
-
}, s = {}, i = function f(c,
|
|
979
|
+
}, s = {}, i = function f(c, A, b, P, x, k, N, M, V, $, L, F, R, T, U, z) {
|
|
980
980
|
for (var _ = c, Z = z, Q = 0, ne = !1; (Z = Z.get(s)) !== void 0 && !ne; ) {
|
|
981
981
|
var X = Z.get(c);
|
|
982
982
|
if (Q += 1, typeof X < "u") {
|
|
@@ -986,30 +986,30 @@ function ut() {
|
|
|
986
986
|
}
|
|
987
987
|
typeof Z.get(s) > "u" && (Q = 0);
|
|
988
988
|
}
|
|
989
|
-
if (typeof M == "function" ? _ = M(
|
|
989
|
+
if (typeof M == "function" ? _ = M(A, _) : _ instanceof Date ? _ = L(_) : b === "comma" && o(_) && (_ = r.maybeMap(_, function(ee) {
|
|
990
990
|
return ee instanceof Date ? L(ee) : ee;
|
|
991
991
|
})), _ === null) {
|
|
992
992
|
if (x)
|
|
993
|
-
return N && !
|
|
993
|
+
return N && !T ? N(A, v.encoder, U, "key", F) : A;
|
|
994
994
|
_ = "";
|
|
995
995
|
}
|
|
996
996
|
if (u(_) || r.isBuffer(_)) {
|
|
997
997
|
if (N) {
|
|
998
|
-
var W =
|
|
999
|
-
if (
|
|
998
|
+
var W = T ? A : N(A, v.encoder, U, "key", F);
|
|
999
|
+
if (b === "comma" && T) {
|
|
1000
1000
|
for (var ie = m.call(String(_), ","), re = "", te = 0; te < ie.length; ++te)
|
|
1001
|
-
re += (te === 0 ? "" : ",") +
|
|
1002
|
-
return [
|
|
1001
|
+
re += (te === 0 ? "" : ",") + R(N(ie[te], v.encoder, U, "value", F));
|
|
1002
|
+
return [R(W) + (P && o(_) && ie.length === 1 ? "[]" : "") + "=" + re];
|
|
1003
1003
|
}
|
|
1004
|
-
return [
|
|
1004
|
+
return [R(W) + "=" + R(N(_, v.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")
|
|
1010
1010
|
return ce;
|
|
1011
1011
|
var ue;
|
|
1012
|
-
if (
|
|
1012
|
+
if (b === "comma" && o(_))
|
|
1013
1013
|
ue = [{ value: _.length > 0 ? _.join(",") || null : void 0 }];
|
|
1014
1014
|
else if (o(M))
|
|
1015
1015
|
ue = M;
|
|
@@ -1017,17 +1017,17 @@ function ut() {
|
|
|
1017
1017
|
var oe = Object.keys(_);
|
|
1018
1018
|
ue = V ? oe.sort(V) : oe;
|
|
1019
1019
|
}
|
|
1020
|
-
for (var de =
|
|
1020
|
+
for (var de = P && o(_) && _.length === 1 ? A + "[]" : A, pe = 0; pe < ue.length; ++pe) {
|
|
1021
1021
|
var se = ue[pe], ye = typeof se == "object" && typeof se.value < "u" ? se.value : _[se];
|
|
1022
1022
|
if (!(k && ye === null)) {
|
|
1023
|
-
var be = o(_) ? typeof
|
|
1023
|
+
var be = o(_) ? typeof b == "function" ? b(de, se) : de : de + ($ ? "." + se : "[" + se + "]");
|
|
1024
1024
|
z.set(c, Q);
|
|
1025
1025
|
var J = e();
|
|
1026
1026
|
J.set(s, z), p(ce, f(
|
|
1027
1027
|
ye,
|
|
1028
1028
|
be,
|
|
1029
|
-
|
|
1030
|
-
|
|
1029
|
+
b,
|
|
1030
|
+
P,
|
|
1031
1031
|
x,
|
|
1032
1032
|
k,
|
|
1033
1033
|
N,
|
|
@@ -1036,8 +1036,8 @@ function ut() {
|
|
|
1036
1036
|
$,
|
|
1037
1037
|
L,
|
|
1038
1038
|
F,
|
|
1039
|
-
T,
|
|
1040
1039
|
R,
|
|
1040
|
+
T,
|
|
1041
1041
|
U,
|
|
1042
1042
|
J
|
|
1043
1043
|
));
|
|
@@ -1046,42 +1046,42 @@ function ut() {
|
|
|
1046
1046
|
return ce;
|
|
1047
1047
|
}, S = function(c) {
|
|
1048
1048
|
if (!c)
|
|
1049
|
-
return
|
|
1049
|
+
return v;
|
|
1050
1050
|
if (c.encoder !== null && typeof c.encoder < "u" && typeof c.encoder != "function")
|
|
1051
1051
|
throw new TypeError("Encoder has to be a function.");
|
|
1052
|
-
var
|
|
1052
|
+
var A = c.charset || v.charset;
|
|
1053
1053
|
if (typeof c.charset < "u" && c.charset !== "utf-8" && c.charset !== "iso-8859-1")
|
|
1054
1054
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
1055
|
-
var
|
|
1055
|
+
var b = a.default;
|
|
1056
1056
|
if (typeof c.format < "u") {
|
|
1057
1057
|
if (!t.call(a.formatters, c.format))
|
|
1058
1058
|
throw new TypeError("Unknown format option provided.");
|
|
1059
|
-
|
|
1059
|
+
b = c.format;
|
|
1060
1060
|
}
|
|
1061
|
-
var
|
|
1061
|
+
var P = a.formatters[b], x = v.filter;
|
|
1062
1062
|
return (typeof c.filter == "function" || o(c.filter)) && (x = c.filter), {
|
|
1063
|
-
addQueryPrefix: typeof c.addQueryPrefix == "boolean" ? c.addQueryPrefix :
|
|
1064
|
-
allowDots: typeof c.allowDots > "u" ?
|
|
1065
|
-
charset:
|
|
1066
|
-
charsetSentinel: typeof c.charsetSentinel == "boolean" ? c.charsetSentinel :
|
|
1067
|
-
delimiter: typeof c.delimiter > "u" ?
|
|
1068
|
-
encode: typeof c.encode == "boolean" ? c.encode :
|
|
1069
|
-
encoder: typeof c.encoder == "function" ? c.encoder :
|
|
1070
|
-
encodeValuesOnly: typeof c.encodeValuesOnly == "boolean" ? c.encodeValuesOnly :
|
|
1063
|
+
addQueryPrefix: typeof c.addQueryPrefix == "boolean" ? c.addQueryPrefix : v.addQueryPrefix,
|
|
1064
|
+
allowDots: typeof c.allowDots > "u" ? v.allowDots : !!c.allowDots,
|
|
1065
|
+
charset: A,
|
|
1066
|
+
charsetSentinel: typeof c.charsetSentinel == "boolean" ? c.charsetSentinel : v.charsetSentinel,
|
|
1067
|
+
delimiter: typeof c.delimiter > "u" ? v.delimiter : c.delimiter,
|
|
1068
|
+
encode: typeof c.encode == "boolean" ? c.encode : v.encode,
|
|
1069
|
+
encoder: typeof c.encoder == "function" ? c.encoder : v.encoder,
|
|
1070
|
+
encodeValuesOnly: typeof c.encodeValuesOnly == "boolean" ? c.encodeValuesOnly : v.encodeValuesOnly,
|
|
1071
1071
|
filter: x,
|
|
1072
|
-
format:
|
|
1073
|
-
formatter:
|
|
1074
|
-
serializeDate: typeof c.serializeDate == "function" ? c.serializeDate :
|
|
1075
|
-
skipNulls: typeof c.skipNulls == "boolean" ? c.skipNulls :
|
|
1072
|
+
format: b,
|
|
1073
|
+
formatter: P,
|
|
1074
|
+
serializeDate: typeof c.serializeDate == "function" ? c.serializeDate : v.serializeDate,
|
|
1075
|
+
skipNulls: typeof c.skipNulls == "boolean" ? c.skipNulls : v.skipNulls,
|
|
1076
1076
|
sort: typeof c.sort == "function" ? c.sort : null,
|
|
1077
|
-
strictNullHandling: typeof c.strictNullHandling == "boolean" ? c.strictNullHandling :
|
|
1077
|
+
strictNullHandling: typeof c.strictNullHandling == "boolean" ? c.strictNullHandling : v.strictNullHandling
|
|
1078
1078
|
};
|
|
1079
1079
|
};
|
|
1080
1080
|
return ur = function(f, c) {
|
|
1081
|
-
var
|
|
1082
|
-
typeof
|
|
1081
|
+
var A = f, b = S(c), P, x;
|
|
1082
|
+
typeof b.filter == "function" ? (x = b.filter, A = x("", A)) : o(b.filter) && (x = b.filter, P = x);
|
|
1083
1083
|
var k = [];
|
|
1084
|
-
if (typeof
|
|
1084
|
+
if (typeof A != "object" || A === null)
|
|
1085
1085
|
return "";
|
|
1086
1086
|
var N;
|
|
1087
1087
|
c && c.arrayFormat in n ? N = c.arrayFormat : c && "indices" in c ? N = c.indices ? "indices" : "repeat" : N = "indices";
|
|
@@ -1089,30 +1089,30 @@ function ut() {
|
|
|
1089
1089
|
if (c && "commaRoundTrip" in c && typeof c.commaRoundTrip != "boolean")
|
|
1090
1090
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
1091
1091
|
var V = M === "comma" && c && c.commaRoundTrip;
|
|
1092
|
-
|
|
1093
|
-
for (var $ = e(), L = 0; L <
|
|
1094
|
-
var F =
|
|
1095
|
-
|
|
1096
|
-
|
|
1092
|
+
P || (P = Object.keys(A)), b.sort && P.sort(b.sort);
|
|
1093
|
+
for (var $ = e(), L = 0; L < P.length; ++L) {
|
|
1094
|
+
var F = P[L];
|
|
1095
|
+
b.skipNulls && A[F] === null || p(k, i(
|
|
1096
|
+
A[F],
|
|
1097
1097
|
F,
|
|
1098
1098
|
M,
|
|
1099
1099
|
V,
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1100
|
+
b.strictNullHandling,
|
|
1101
|
+
b.skipNulls,
|
|
1102
|
+
b.encode ? b.encoder : null,
|
|
1103
|
+
b.filter,
|
|
1104
|
+
b.sort,
|
|
1105
|
+
b.allowDots,
|
|
1106
|
+
b.serializeDate,
|
|
1107
|
+
b.format,
|
|
1108
|
+
b.formatter,
|
|
1109
|
+
b.encodeValuesOnly,
|
|
1110
|
+
b.charset,
|
|
1111
1111
|
$
|
|
1112
1112
|
));
|
|
1113
1113
|
}
|
|
1114
|
-
var
|
|
1115
|
-
return
|
|
1114
|
+
var R = k.join(b.delimiter), T = b.addQueryPrefix === !0 ? "?" : "";
|
|
1115
|
+
return b.charsetSentinel && (b.charset === "iso-8859-1" ? T += "utf8=%26%2310003%3B&" : T += "utf8=%E2%9C%93&"), R.length > 0 ? T + R : "";
|
|
1116
1116
|
}, ur;
|
|
1117
1117
|
}
|
|
1118
1118
|
var cr, $r;
|
|
@@ -1143,13 +1143,13 @@ function ct() {
|
|
|
1143
1143
|
}, o = function(u, s) {
|
|
1144
1144
|
return u && typeof u == "string" && s.comma && u.indexOf(",") > -1 ? u.split(",") : u;
|
|
1145
1145
|
}, m = "utf8=%26%2310003%3B", l = "utf8=%E2%9C%93", p = function(s, i) {
|
|
1146
|
-
var S = {}, f = i.ignoreQueryPrefix ? s.replace(/^\?/, "") : s, c = i.parameterLimit === 1 / 0 ? void 0 : i.parameterLimit,
|
|
1146
|
+
var S = {}, f = i.ignoreQueryPrefix ? s.replace(/^\?/, "") : s, c = i.parameterLimit === 1 / 0 ? void 0 : i.parameterLimit, A = f.split(i.delimiter, c), b = -1, P, x = i.charset;
|
|
1147
1147
|
if (i.charsetSentinel)
|
|
1148
|
-
for (
|
|
1149
|
-
|
|
1150
|
-
for (
|
|
1151
|
-
if (
|
|
1152
|
-
var k =
|
|
1148
|
+
for (P = 0; P < A.length; ++P)
|
|
1149
|
+
A[P].indexOf("utf8=") === 0 && (A[P] === l ? x = "utf-8" : A[P] === m && (x = "iso-8859-1"), b = P, P = A.length);
|
|
1150
|
+
for (P = 0; P < A.length; ++P)
|
|
1151
|
+
if (P !== b) {
|
|
1152
|
+
var k = A[P], N = k.indexOf("]="), M = N === -1 ? k.indexOf("=") : N + 1, V, $;
|
|
1153
1153
|
M === -1 ? (V = i.decoder(k, t.decoder, x, "key"), $ = i.strictNullHandling ? null : "") : (V = i.decoder(k.slice(0, M), t.decoder, x, "key"), $ = e.maybeMap(
|
|
1154
1154
|
o(k.slice(M + 1), i),
|
|
1155
1155
|
function(L) {
|
|
@@ -1160,33 +1160,33 @@ function ct() {
|
|
|
1160
1160
|
return S;
|
|
1161
1161
|
}, y = function(u, s, i, S) {
|
|
1162
1162
|
for (var f = S ? s : o(s, i), c = u.length - 1; c >= 0; --c) {
|
|
1163
|
-
var
|
|
1164
|
-
if (
|
|
1165
|
-
|
|
1163
|
+
var A, b = u[c];
|
|
1164
|
+
if (b === "[]" && i.parseArrays)
|
|
1165
|
+
A = [].concat(f);
|
|
1166
1166
|
else {
|
|
1167
|
-
|
|
1168
|
-
var
|
|
1169
|
-
!i.parseArrays &&
|
|
1167
|
+
A = i.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
1168
|
+
var P = b.charAt(0) === "[" && b.charAt(b.length - 1) === "]" ? b.slice(1, -1) : b, x = parseInt(P, 10);
|
|
1169
|
+
!i.parseArrays && P === "" ? A = { 0: f } : !isNaN(x) && b !== P && String(x) === P && x >= 0 && i.parseArrays && x <= i.arrayLimit ? (A = [], A[x] = f) : P !== "__proto__" && (A[P] = f);
|
|
1170
1170
|
}
|
|
1171
|
-
f =
|
|
1171
|
+
f = A;
|
|
1172
1172
|
}
|
|
1173
1173
|
return f;
|
|
1174
1174
|
}, w = function(s, i, S, f) {
|
|
1175
1175
|
if (s) {
|
|
1176
|
-
var c = S.allowDots ? s.replace(/\.([^.[]+)/g, "[$1]") : s,
|
|
1176
|
+
var c = S.allowDots ? s.replace(/\.([^.[]+)/g, "[$1]") : s, A = /(\[[^[\]]*])/, b = /(\[[^[\]]*])/g, P = S.depth > 0 && A.exec(c), x = P ? c.slice(0, P.index) : c, k = [];
|
|
1177
1177
|
if (x) {
|
|
1178
1178
|
if (!S.plainObjects && r.call(Object.prototype, x) && !S.allowPrototypes)
|
|
1179
1179
|
return;
|
|
1180
1180
|
k.push(x);
|
|
1181
1181
|
}
|
|
1182
|
-
for (var N = 0; S.depth > 0 && (
|
|
1183
|
-
if (N += 1, !S.plainObjects && r.call(Object.prototype,
|
|
1182
|
+
for (var N = 0; S.depth > 0 && (P = b.exec(c)) !== null && N < S.depth; ) {
|
|
1183
|
+
if (N += 1, !S.plainObjects && r.call(Object.prototype, P[1].slice(1, -1)) && !S.allowPrototypes)
|
|
1184
1184
|
return;
|
|
1185
|
-
k.push(
|
|
1185
|
+
k.push(P[1]);
|
|
1186
1186
|
}
|
|
1187
|
-
return
|
|
1187
|
+
return P && k.push("[" + c.slice(P.index) + "]"), y(k, i, S, f);
|
|
1188
1188
|
}
|
|
1189
|
-
},
|
|
1189
|
+
}, v = function(s) {
|
|
1190
1190
|
if (!s)
|
|
1191
1191
|
return t;
|
|
1192
1192
|
if (s.decoder !== null && s.decoder !== void 0 && typeof s.decoder != "function")
|
|
@@ -1215,12 +1215,12 @@ function ct() {
|
|
|
1215
1215
|
};
|
|
1216
1216
|
};
|
|
1217
1217
|
return cr = function(u, s) {
|
|
1218
|
-
var i =
|
|
1218
|
+
var i = v(s);
|
|
1219
1219
|
if (u === "" || u === null || typeof u > "u")
|
|
1220
1220
|
return i.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
1221
|
-
for (var S = typeof u == "string" ? p(u, i) : u, f = i.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, c = Object.keys(S),
|
|
1222
|
-
var
|
|
1223
|
-
f = e.merge(f,
|
|
1221
|
+
for (var S = typeof u == "string" ? p(u, i) : u, f = i.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, c = Object.keys(S), A = 0; A < c.length; ++A) {
|
|
1222
|
+
var b = c[A], P = w(b, S[b], i, typeof u == "string");
|
|
1223
|
+
f = e.merge(f, P, i);
|
|
1224
1224
|
}
|
|
1225
1225
|
return i.allowSparse === !0 ? f : e.compact(f);
|
|
1226
1226
|
}, cr;
|
|
@@ -1237,7 +1237,7 @@ function lt() {
|
|
|
1237
1237
|
}, lr;
|
|
1238
1238
|
}
|
|
1239
1239
|
var ft = lt();
|
|
1240
|
-
const dt = /* @__PURE__ */ mr(ft), vr = "0.
|
|
1240
|
+
const dt = /* @__PURE__ */ mr(ft), vr = "0.4.0", pt = Ee.CancelToken;
|
|
1241
1241
|
var mt = function(e) {
|
|
1242
1242
|
var r;
|
|
1243
1243
|
typeof window < "u" && (r = e.cache.get("api"));
|
|
@@ -1257,7 +1257,7 @@ var mt = function(e) {
|
|
|
1257
1257
|
}
|
|
1258
1258
|
const n = {}, m = l(function(p) {
|
|
1259
1259
|
var y = t(p);
|
|
1260
|
-
return n[y] || (n[y] = new Promise(function(w,
|
|
1260
|
+
return n[y] || (n[y] = new Promise(function(w, v) {
|
|
1261
1261
|
var u, s;
|
|
1262
1262
|
switch (String(p.method).toLowerCase()) {
|
|
1263
1263
|
case "post":
|
|
@@ -1272,18 +1272,18 @@ var mt = function(e) {
|
|
|
1272
1272
|
delete n[y], w(i);
|
|
1273
1273
|
},
|
|
1274
1274
|
function(i) {
|
|
1275
|
-
delete n[y],
|
|
1275
|
+
delete n[y], v(i);
|
|
1276
1276
|
}
|
|
1277
1277
|
));
|
|
1278
1278
|
})), n[y];
|
|
1279
1279
|
});
|
|
1280
1280
|
m.generateEndpointURL = function(p, y, w) {
|
|
1281
1281
|
w = w || {}, y = y || {};
|
|
1282
|
-
var
|
|
1282
|
+
var v;
|
|
1283
1283
|
const u = w.file && e.fileAPI || e.apiURL;
|
|
1284
|
-
w.withoutToken || (delete y.access_token,
|
|
1284
|
+
w.withoutToken || (delete y.access_token, v = e.auth.getCurrentToken()), p[0] == "/" && p.slice(1);
|
|
1285
1285
|
var s = e.utils.mapParameters(y);
|
|
1286
|
-
|
|
1286
|
+
v ? s = s ? `?access_token=${v}&${s}` : `?access_token=${v}` : s = s ? `?${s}` : "";
|
|
1287
1287
|
var i = `${u}${p}${s}`;
|
|
1288
1288
|
return i;
|
|
1289
1289
|
}, m.wasCancelled = function(p) {
|
|
@@ -1291,24 +1291,24 @@ var mt = function(e) {
|
|
|
1291
1291
|
};
|
|
1292
1292
|
function l(p) {
|
|
1293
1293
|
var y = Ee.create({
|
|
1294
|
-
paramsSerializer: (
|
|
1294
|
+
paramsSerializer: (v) => dt.stringify(v, { arrayFormat: "repeat" }),
|
|
1295
1295
|
adapter: p
|
|
1296
1296
|
});
|
|
1297
|
-
y.defaults.baseURL = e.apiURL, y.defaults.headers.common.Accept = "application/json", y.interceptors.request.use(function(
|
|
1298
|
-
if (t(
|
|
1299
|
-
return
|
|
1300
|
-
if (
|
|
1297
|
+
y.defaults.baseURL = e.apiURL, y.defaults.headers.common.Accept = "application/json", y.interceptors.request.use(function(v) {
|
|
1298
|
+
if (t(v), v.withoutToken)
|
|
1299
|
+
return v;
|
|
1300
|
+
if (v.headers["qik-request-date"] = (/* @__PURE__ */ new Date()).getTime(), Intl) {
|
|
1301
1301
|
const s = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
1302
|
-
s && (
|
|
1302
|
+
s && (v.headers["qik-request-timezone"] = s);
|
|
1303
1303
|
}
|
|
1304
|
-
|
|
1304
|
+
v.headers["qik-api-version"] = vr, e?.socket?.windowID && (v.headers["qik-socket-window"] = e.socket.windowID);
|
|
1305
1305
|
var u = e.auth.getCurrentToken();
|
|
1306
|
-
return u && (
|
|
1306
|
+
return u && (v.headers.Authorization = `Bearer ${u}`, v.params && v.params.access_token && delete v.params.access_token), v;
|
|
1307
1307
|
});
|
|
1308
1308
|
let w = 0;
|
|
1309
1309
|
return y.interceptors.response.use(
|
|
1310
|
-
function(
|
|
1311
|
-
var u =
|
|
1310
|
+
function(v) {
|
|
1311
|
+
var u = v.config, s = v.status;
|
|
1312
1312
|
switch (s) {
|
|
1313
1313
|
case 204:
|
|
1314
1314
|
if (w < 5)
|
|
@@ -1320,12 +1320,12 @@ var mt = function(e) {
|
|
|
1320
1320
|
console.log("Failed after 5 retries"), w = 0;
|
|
1321
1321
|
break;
|
|
1322
1322
|
}
|
|
1323
|
-
return
|
|
1323
|
+
return v;
|
|
1324
1324
|
},
|
|
1325
|
-
function(
|
|
1326
|
-
if (Ee.isCancel(
|
|
1327
|
-
return Promise.reject(
|
|
1328
|
-
var u =
|
|
1325
|
+
function(v) {
|
|
1326
|
+
if (Ee.isCancel(v))
|
|
1327
|
+
return Promise.reject(v);
|
|
1328
|
+
var u = v?.response?.status || v.status;
|
|
1329
1329
|
switch (u) {
|
|
1330
1330
|
case 401:
|
|
1331
1331
|
break;
|
|
@@ -1334,13 +1334,13 @@ var mt = function(e) {
|
|
|
1334
1334
|
if (w < 5)
|
|
1335
1335
|
return w++, new Promise(function(s, i) {
|
|
1336
1336
|
setTimeout(function() {
|
|
1337
|
-
return y.request(
|
|
1337
|
+
return y.request(v.config).then(s, i);
|
|
1338
1338
|
}, 800);
|
|
1339
1339
|
});
|
|
1340
1340
|
console.log("Failed after 5 retries"), w = 0;
|
|
1341
1341
|
break;
|
|
1342
1342
|
}
|
|
1343
|
-
return Promise.reject(
|
|
1343
|
+
return Promise.reject(v);
|
|
1344
1344
|
}
|
|
1345
1345
|
), y;
|
|
1346
1346
|
}
|
|
@@ -1349,7 +1349,7 @@ var mt = function(e) {
|
|
|
1349
1349
|
function yt() {
|
|
1350
1350
|
if (Gr) return fr;
|
|
1351
1351
|
Gr = 1;
|
|
1352
|
-
var e = "Expected a function", r = "__lodash_hash_undefined__", a = "[object Function]", t = "[object GeneratorFunction]", n = "[object Symbol]", o = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, m = /^\w*$/, l = /^\./, p = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, y = /[\\^$.*+?()[\]{}|]/g, w = /\\(\\)?/g,
|
|
1352
|
+
var e = "Expected a function", r = "__lodash_hash_undefined__", a = "[object Function]", t = "[object GeneratorFunction]", n = "[object Symbol]", o = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, m = /^\w*$/, l = /^\./, p = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, y = /[\\^$.*+?()[\]{}|]/g, w = /\\(\\)?/g, v = /^\[object .+?Constructor\]$/, u = typeof Ae == "object" && Ae && Ae.Object === Object && Ae, s = typeof self == "object" && self && self.Object === Object && self, i = u || s || Function("return this")();
|
|
1353
1353
|
function S(d, E) {
|
|
1354
1354
|
return d?.[E];
|
|
1355
1355
|
}
|
|
@@ -1362,45 +1362,45 @@ function yt() {
|
|
|
1362
1362
|
}
|
|
1363
1363
|
return E;
|
|
1364
1364
|
}
|
|
1365
|
-
var c = Array.prototype,
|
|
1366
|
-
var d = /[^.]+$/.exec(
|
|
1365
|
+
var c = Array.prototype, A = Function.prototype, b = Object.prototype, P = i["__core-js_shared__"], x = (function() {
|
|
1366
|
+
var d = /[^.]+$/.exec(P && P.keys && P.keys.IE_PROTO || "");
|
|
1367
1367
|
return d ? "Symbol(src)_1." + d : "";
|
|
1368
|
-
})(), k =
|
|
1368
|
+
})(), k = A.toString, N = b.hasOwnProperty, M = b.toString, V = RegExp(
|
|
1369
1369
|
"^" + k.call(N).replace(y, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1370
|
-
), $ = i.Symbol, L = c.splice, F = Pe(i, "Map"),
|
|
1370
|
+
), $ = i.Symbol, L = c.splice, F = Pe(i, "Map"), R = Pe(Object, "create"), T = $ ? $.prototype : void 0, U = T ? T.toString : void 0;
|
|
1371
1371
|
function z(d) {
|
|
1372
|
-
var E = -1,
|
|
1373
|
-
for (this.clear(); ++E <
|
|
1372
|
+
var E = -1, C = d ? d.length : 0;
|
|
1373
|
+
for (this.clear(); ++E < C; ) {
|
|
1374
1374
|
var G = d[E];
|
|
1375
1375
|
this.set(G[0], G[1]);
|
|
1376
1376
|
}
|
|
1377
1377
|
}
|
|
1378
1378
|
function _() {
|
|
1379
|
-
this.__data__ =
|
|
1379
|
+
this.__data__ = R ? R(null) : {};
|
|
1380
1380
|
}
|
|
1381
1381
|
function Z(d) {
|
|
1382
1382
|
return this.has(d) && delete this.__data__[d];
|
|
1383
1383
|
}
|
|
1384
1384
|
function Q(d) {
|
|
1385
1385
|
var E = this.__data__;
|
|
1386
|
-
if (
|
|
1387
|
-
var
|
|
1388
|
-
return
|
|
1386
|
+
if (R) {
|
|
1387
|
+
var C = E[d];
|
|
1388
|
+
return C === r ? void 0 : C;
|
|
1389
1389
|
}
|
|
1390
1390
|
return N.call(E, d) ? E[d] : void 0;
|
|
1391
1391
|
}
|
|
1392
1392
|
function ne(d) {
|
|
1393
1393
|
var E = this.__data__;
|
|
1394
|
-
return
|
|
1394
|
+
return R ? E[d] !== void 0 : N.call(E, d);
|
|
1395
1395
|
}
|
|
1396
1396
|
function X(d, E) {
|
|
1397
|
-
var
|
|
1398
|
-
return
|
|
1397
|
+
var C = this.__data__;
|
|
1398
|
+
return C[d] = R && E === void 0 ? r : E, this;
|
|
1399
1399
|
}
|
|
1400
1400
|
z.prototype.clear = _, z.prototype.delete = Z, z.prototype.get = Q, z.prototype.has = ne, z.prototype.set = X;
|
|
1401
1401
|
function W(d) {
|
|
1402
|
-
var E = -1,
|
|
1403
|
-
for (this.clear(); ++E <
|
|
1402
|
+
var E = -1, C = d ? d.length : 0;
|
|
1403
|
+
for (this.clear(); ++E < C; ) {
|
|
1404
1404
|
var G = d[E];
|
|
1405
1405
|
this.set(G[0], G[1]);
|
|
1406
1406
|
}
|
|
@@ -1409,27 +1409,27 @@ function yt() {
|
|
|
1409
1409
|
this.__data__ = [];
|
|
1410
1410
|
}
|
|
1411
1411
|
function re(d) {
|
|
1412
|
-
var E = this.__data__,
|
|
1413
|
-
if (
|
|
1412
|
+
var E = this.__data__, C = J(E, d);
|
|
1413
|
+
if (C < 0)
|
|
1414
1414
|
return !1;
|
|
1415
1415
|
var G = E.length - 1;
|
|
1416
|
-
return
|
|
1416
|
+
return C == G ? E.pop() : L.call(E, C, 1), !0;
|
|
1417
1417
|
}
|
|
1418
1418
|
function te(d) {
|
|
1419
|
-
var E = this.__data__,
|
|
1420
|
-
return
|
|
1419
|
+
var E = this.__data__, C = J(E, d);
|
|
1420
|
+
return C < 0 ? void 0 : E[C][1];
|
|
1421
1421
|
}
|
|
1422
1422
|
function ce(d) {
|
|
1423
1423
|
return J(this.__data__, d) > -1;
|
|
1424
1424
|
}
|
|
1425
1425
|
function ue(d, E) {
|
|
1426
|
-
var
|
|
1427
|
-
return G < 0 ?
|
|
1426
|
+
var C = this.__data__, G = J(C, d);
|
|
1427
|
+
return G < 0 ? C.push([d, E]) : C[G][1] = E, this;
|
|
1428
1428
|
}
|
|
1429
1429
|
W.prototype.clear = ie, W.prototype.delete = re, W.prototype.get = te, W.prototype.has = ce, W.prototype.set = ue;
|
|
1430
1430
|
function oe(d) {
|
|
1431
|
-
var E = -1,
|
|
1432
|
-
for (this.clear(); ++E <
|
|
1431
|
+
var E = -1, C = d ? d.length : 0;
|
|
1432
|
+
for (this.clear(); ++E < C; ) {
|
|
1433
1433
|
var G = d[E];
|
|
1434
1434
|
this.set(G[0], G[1]);
|
|
1435
1435
|
}
|
|
@@ -1455,21 +1455,21 @@ function yt() {
|
|
|
1455
1455
|
}
|
|
1456
1456
|
oe.prototype.clear = de, oe.prototype.delete = pe, oe.prototype.get = se, oe.prototype.has = ye, oe.prototype.set = be;
|
|
1457
1457
|
function J(d, E) {
|
|
1458
|
-
for (var
|
|
1459
|
-
if (Se(d[
|
|
1460
|
-
return
|
|
1458
|
+
for (var C = d.length; C--; )
|
|
1459
|
+
if (Se(d[C][0], E))
|
|
1460
|
+
return C;
|
|
1461
1461
|
return -1;
|
|
1462
1462
|
}
|
|
1463
1463
|
function ee(d, E) {
|
|
1464
|
-
E =
|
|
1465
|
-
for (var
|
|
1466
|
-
d = d[Ne(E[
|
|
1467
|
-
return
|
|
1464
|
+
E = Re(E, d) ? [E] : ke(E);
|
|
1465
|
+
for (var C = 0, G = E.length; d != null && C < G; )
|
|
1466
|
+
d = d[Ne(E[C++])];
|
|
1467
|
+
return C && C == G ? d : void 0;
|
|
1468
1468
|
}
|
|
1469
1469
|
function Ie(d) {
|
|
1470
1470
|
if (!he(d) || _e(d))
|
|
1471
1471
|
return !1;
|
|
1472
|
-
var E = Le(d) || f(d) ? V :
|
|
1472
|
+
var E = Le(d) || f(d) ? V : v;
|
|
1473
1473
|
return E.test(le(d));
|
|
1474
1474
|
}
|
|
1475
1475
|
function xe(d) {
|
|
@@ -1484,20 +1484,20 @@ function yt() {
|
|
|
1484
1484
|
return Oe(d) ? d : Ce(d);
|
|
1485
1485
|
}
|
|
1486
1486
|
function me(d, E) {
|
|
1487
|
-
var
|
|
1488
|
-
return
|
|
1487
|
+
var C = d.__data__;
|
|
1488
|
+
return Te(E) ? C[typeof E == "string" ? "string" : "hash"] : C.map;
|
|
1489
1489
|
}
|
|
1490
1490
|
function Pe(d, E) {
|
|
1491
|
-
var
|
|
1492
|
-
return Ie(
|
|
1491
|
+
var C = S(d, E);
|
|
1492
|
+
return Ie(C) ? C : void 0;
|
|
1493
1493
|
}
|
|
1494
|
-
function
|
|
1494
|
+
function Re(d, E) {
|
|
1495
1495
|
if (Oe(d))
|
|
1496
1496
|
return !1;
|
|
1497
|
-
var
|
|
1498
|
-
return
|
|
1497
|
+
var C = typeof d;
|
|
1498
|
+
return C == "number" || C == "symbol" || C == "boolean" || d == null || h(d) ? !0 : m.test(d) || !o.test(d) || E != null && d in Object(E);
|
|
1499
1499
|
}
|
|
1500
|
-
function
|
|
1500
|
+
function Te(d) {
|
|
1501
1501
|
var E = typeof d;
|
|
1502
1502
|
return E == "string" || E == "number" || E == "symbol" || E == "boolean" ? d !== "__proto__" : d === null;
|
|
1503
1503
|
}
|
|
@@ -1507,8 +1507,8 @@ function yt() {
|
|
|
1507
1507
|
var Ce = fe(function(d) {
|
|
1508
1508
|
d = g(d);
|
|
1509
1509
|
var E = [];
|
|
1510
|
-
return l.test(d) && E.push(""), d.replace(p, function(
|
|
1511
|
-
E.push(ae ? K.replace(w, "$1") : G ||
|
|
1510
|
+
return l.test(d) && E.push(""), d.replace(p, function(C, G, ae, K) {
|
|
1511
|
+
E.push(ae ? K.replace(w, "$1") : G || C);
|
|
1512
1512
|
}), E;
|
|
1513
1513
|
});
|
|
1514
1514
|
function Ne(d) {
|
|
@@ -1533,14 +1533,14 @@ function yt() {
|
|
|
1533
1533
|
function fe(d, E) {
|
|
1534
1534
|
if (typeof d != "function" || E && typeof E != "function")
|
|
1535
1535
|
throw new TypeError(e);
|
|
1536
|
-
var
|
|
1537
|
-
var G = arguments, ae = E ? E.apply(this, G) : G[0], K =
|
|
1536
|
+
var C = function() {
|
|
1537
|
+
var G = arguments, ae = E ? E.apply(this, G) : G[0], K = C.cache;
|
|
1538
1538
|
if (K.has(ae))
|
|
1539
1539
|
return K.get(ae);
|
|
1540
1540
|
var O = d.apply(this, G);
|
|
1541
|
-
return
|
|
1541
|
+
return C.cache = K.set(ae, O), O;
|
|
1542
1542
|
};
|
|
1543
|
-
return
|
|
1543
|
+
return C.cache = new (fe.Cache || oe)(), C;
|
|
1544
1544
|
}
|
|
1545
1545
|
fe.Cache = oe;
|
|
1546
1546
|
function Se(d, E) {
|
|
@@ -1564,9 +1564,9 @@ function yt() {
|
|
|
1564
1564
|
function g(d) {
|
|
1565
1565
|
return d == null ? "" : xe(d);
|
|
1566
1566
|
}
|
|
1567
|
-
function D(d, E,
|
|
1567
|
+
function D(d, E, C) {
|
|
1568
1568
|
var G = d == null ? void 0 : ee(d, E);
|
|
1569
|
-
return G === void 0 ?
|
|
1569
|
+
return G === void 0 ? C : G;
|
|
1570
1570
|
}
|
|
1571
1571
|
return fr = D, fr;
|
|
1572
1572
|
}
|
|
@@ -1576,14 +1576,14 @@ var dr, Dr;
|
|
|
1576
1576
|
function gt() {
|
|
1577
1577
|
if (Dr) return dr;
|
|
1578
1578
|
Dr = 1;
|
|
1579
|
-
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", o = "\\u20d0-\\u20f0", m = "\\u2700-\\u27bf", l = "a-z\\xdf-\\xf6\\xf8-\\xff", p = "\\xac\\xb1\\xd7\\xf7", y = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", w = "\\u2000-\\u206f",
|
|
1579
|
+
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", o = "\\u20d0-\\u20f0", m = "\\u2700-\\u27bf", l = "a-z\\xdf-\\xf6\\xf8-\\xff", p = "\\xac\\xb1\\xd7\\xf7", y = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", w = "\\u2000-\\u206f", v = " \\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", s = "\\ufe0e\\ufe0f", i = p + y + w + v, S = "['’]", f = "[" + t + "]", c = "[" + i + "]", A = "[" + n + o + "]", b = "\\d+", P = "[" + m + "]", x = "[" + l + "]", k = "[^" + t + i + b + m + l + u + "]", N = "\\ud83c[\\udffb-\\udfff]", M = "(?:" + A + "|" + N + ")", V = "[^" + t + "]", $ = "(?:\\ud83c[\\udde6-\\uddff]){2}", L = "[\\ud800-\\udbff][\\udc00-\\udfff]", F = "[" + u + "]", R = "\\u200d", T = "(?:" + x + "|" + k + ")", U = "(?:" + F + "|" + k + ")", z = "(?:" + S + "(?:d|ll|m|re|s|t|ve))?", _ = "(?:" + S + "(?:D|LL|M|RE|S|T|VE))?", Z = M + "?", Q = "[" + s + "]?", ne = "(?:" + R + "(?:" + [V, $, L].join("|") + ")" + Q + Z + ")*", X = Q + Z + ne, W = "(?:" + [P, $, L].join("|") + ")" + X, ie = "(?:" + [V + A + "?", A, $, L, f].join("|") + ")", re = RegExp(S, "g"), te = RegExp(A, "g"), ce = RegExp(N + "(?=" + N + ")|" + ie + X, "g"), ue = RegExp([
|
|
1580
1580
|
F + "?" + x + "+" + z + "(?=" + [c, F, "$"].join("|") + ")",
|
|
1581
|
-
U + "+" + _ + "(?=" + [c, F +
|
|
1582
|
-
F + "?" +
|
|
1581
|
+
U + "+" + _ + "(?=" + [c, F + T, "$"].join("|") + ")",
|
|
1582
|
+
F + "?" + T + "+" + z,
|
|
1583
1583
|
F + "+" + _,
|
|
1584
|
-
|
|
1584
|
+
b,
|
|
1585
1585
|
W
|
|
1586
|
-
].join("|"), "g"), oe = RegExp("[" +
|
|
1586
|
+
].join("|"), "g"), oe = RegExp("[" + R + t + n + o + s + "]"), 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 = {
|
|
1587
1587
|
// Latin-1 Supplement block.
|
|
1588
1588
|
À: "A",
|
|
1589
1589
|
Á: "A",
|
|
@@ -1800,10 +1800,10 @@ function gt() {
|
|
|
1800
1800
|
function Pe(O) {
|
|
1801
1801
|
return de.test(O);
|
|
1802
1802
|
}
|
|
1803
|
-
function Te(O) {
|
|
1804
|
-
return me(O) ? Re(O) : ee(O);
|
|
1805
|
-
}
|
|
1806
1803
|
function Re(O) {
|
|
1804
|
+
return me(O) ? Te(O) : ee(O);
|
|
1805
|
+
}
|
|
1806
|
+
function Te(O) {
|
|
1807
1807
|
return O.match(ce) || [];
|
|
1808
1808
|
}
|
|
1809
1809
|
function _e(O) {
|
|
@@ -1832,7 +1832,7 @@ function gt() {
|
|
|
1832
1832
|
function ge(O) {
|
|
1833
1833
|
return function(B) {
|
|
1834
1834
|
B = d(B);
|
|
1835
|
-
var j = me(B) ?
|
|
1835
|
+
var j = me(B) ? Re(B) : void 0, H = j ? j[0] : B.charAt(0), Y = j ? he(j, 1).join("") : B.slice(1);
|
|
1836
1836
|
return H[O]() + Y;
|
|
1837
1837
|
};
|
|
1838
1838
|
}
|
|
@@ -1851,9 +1851,9 @@ function gt() {
|
|
|
1851
1851
|
return O == null ? "" : Le(O);
|
|
1852
1852
|
}
|
|
1853
1853
|
var E = h(function(O, B, j) {
|
|
1854
|
-
return B = B.toLowerCase(), O + (j ?
|
|
1854
|
+
return B = B.toLowerCase(), O + (j ? C(B) : B);
|
|
1855
1855
|
});
|
|
1856
|
-
function
|
|
1856
|
+
function C(O) {
|
|
1857
1857
|
return ae(d(O).toLowerCase());
|
|
1858
1858
|
}
|
|
1859
1859
|
function G(O) {
|
|
@@ -2187,18 +2187,18 @@ I.mapFields = function(e, r) {
|
|
|
2187
2187
|
var a = [], t = [], n = [], o = 1, m = r.depth, l = r.arrayDelimeter || "[]";
|
|
2188
2188
|
e.forEach(p);
|
|
2189
2189
|
function p(y, w) {
|
|
2190
|
-
var
|
|
2191
|
-
f.trail = t.slice(), f.trail.push(
|
|
2192
|
-
var
|
|
2190
|
+
var v = y.key, u = y.type == "group", s = y.minimum === y.maximum && y.minimum === 1, i = y.asObject, S = u && !i, f = r.original ? y : I.clone(y);
|
|
2191
|
+
f.trail = t.slice(), f.trail.push(v), f.path = f.trail.join("."), f.titles = n.slice(), f.titles.push(y.filterTitle || y.title || ""), (!S || r.includeLayout) && a.push(f);
|
|
2192
|
+
var A = m && o >= m;
|
|
2193
2193
|
if (y.fields && y.fields.length)
|
|
2194
2194
|
if (S)
|
|
2195
2195
|
y.fields.forEach(p);
|
|
2196
2196
|
else {
|
|
2197
|
-
if (
|
|
2197
|
+
if (A)
|
|
2198
2198
|
return;
|
|
2199
2199
|
o++;
|
|
2200
|
-
let
|
|
2201
|
-
r.includeArrayDelimeter && (s || (
|
|
2200
|
+
let b = v;
|
|
2201
|
+
r.includeArrayDelimeter && (s || (b = `${v}${l}`)), t.push(b), n.push(y.filterTitle || y.title), y.fields.forEach(p), o--, t.pop(), n.pop();
|
|
2202
2202
|
}
|
|
2203
2203
|
}
|
|
2204
2204
|
return a;
|
|
@@ -2316,8 +2316,8 @@ I.hash = function(e, r) {
|
|
|
2316
2316
|
I.extractFromArray = function(e, r, a, t, n, o, m) {
|
|
2317
2317
|
m = m || {}, a && (m.sum = a), t && (m.flatten = !0), n && (m.unique = !0), o && (m.excludeNull = !0);
|
|
2318
2318
|
var l = e.reduce(function(p, y) {
|
|
2319
|
-
var w = je(y, r),
|
|
2320
|
-
return m.excludeNull &&
|
|
2319
|
+
var w = je(y, r), v = !w && w !== !1 && w !== 0;
|
|
2320
|
+
return m.excludeNull && v || p.push(w), p;
|
|
2321
2321
|
}, []);
|
|
2322
2322
|
return m.flatten && (l = l.flat()), m.unique && (l = [...new Set(l)]), m.sum && (l = l.reduce(function(p, y) {
|
|
2323
2323
|
return p + y;
|
|
@@ -2645,26 +2645,26 @@ var Pt = function(e) {
|
|
|
2645
2645
|
}, t.changeOrganisation = function(l, p) {
|
|
2646
2646
|
l = e.utils.id(l), p || (p = {});
|
|
2647
2647
|
var y = !0;
|
|
2648
|
-
return p.disableAutoAuthentication && (y = !1), new Promise(function(w,
|
|
2648
|
+
return p.disableAutoAuthentication && (y = !1), new Promise(function(w, v) {
|
|
2649
2649
|
e.api.post(`/user/switch/${l}`).then(function(u) {
|
|
2650
2650
|
y && (e.cache.reset(), t.set(u.data)), w(u.data);
|
|
2651
|
-
}).catch(
|
|
2651
|
+
}).catch(v);
|
|
2652
2652
|
});
|
|
2653
2653
|
}, t.impersonate = function(l, p) {
|
|
2654
2654
|
l = e.utils.id(l), p || (p = {});
|
|
2655
2655
|
var y = !0;
|
|
2656
2656
|
p.disableAutoAuthentication && (y = !1);
|
|
2657
2657
|
var w = e.api.post(`/user/impersonate/${l}`);
|
|
2658
|
-
return w.then(function(
|
|
2659
|
-
y && (e.cache.reset(), t.set(
|
|
2660
|
-
}, function(
|
|
2658
|
+
return w.then(function(v) {
|
|
2659
|
+
y && (e.cache.reset(), t.set(v.data));
|
|
2660
|
+
}, function(v) {
|
|
2661
2661
|
}), w;
|
|
2662
2662
|
}, t.login = async function(l, p) {
|
|
2663
2663
|
p || (p = {});
|
|
2664
2664
|
var y = !0;
|
|
2665
2665
|
p.disableAutoAuthentication && (y = !1);
|
|
2666
|
-
var w = new Promise(
|
|
2667
|
-
function
|
|
2666
|
+
var w = new Promise(v);
|
|
2667
|
+
function v(u, s) {
|
|
2668
2668
|
if (!l)
|
|
2669
2669
|
return s({
|
|
2670
2670
|
message: "Login requires an email and password"
|
|
@@ -2691,8 +2691,8 @@ var Pt = function(e) {
|
|
|
2691
2691
|
p || (p = {});
|
|
2692
2692
|
var y = !0;
|
|
2693
2693
|
p.disableAutoAuthentication && (y = !1);
|
|
2694
|
-
var w = new Promise(
|
|
2695
|
-
function
|
|
2694
|
+
var w = new Promise(v);
|
|
2695
|
+
function v(u, s) {
|
|
2696
2696
|
if (!l)
|
|
2697
2697
|
return s({
|
|
2698
2698
|
message: "Signup details are required"
|
|
@@ -2736,30 +2736,30 @@ var Pt = function(e) {
|
|
|
2736
2736
|
var y = {
|
|
2737
2737
|
bypassInterceptor: !0
|
|
2738
2738
|
};
|
|
2739
|
-
return new Promise(function(w,
|
|
2739
|
+
return new Promise(function(w, v) {
|
|
2740
2740
|
e.api.get(p.url || `${e.apiURL}/user/reset/${l}`, y).then(function(u) {
|
|
2741
2741
|
return w(u.data);
|
|
2742
|
-
},
|
|
2742
|
+
}, v);
|
|
2743
2743
|
});
|
|
2744
2744
|
}, t.updateUserWithToken = async function(l, p, y) {
|
|
2745
2745
|
y || (y = {});
|
|
2746
2746
|
var w = !0;
|
|
2747
|
-
return y.disableAutoAuthentication && (w = !1), new Promise(function(
|
|
2747
|
+
return y.disableAutoAuthentication && (w = !1), new Promise(function(v, u) {
|
|
2748
2748
|
var s = {
|
|
2749
2749
|
bypassInterceptor: !0
|
|
2750
2750
|
};
|
|
2751
2751
|
e.api.post(y.url || `${e.apiURL}/user/reset/${l}`, p, s).then(function(i) {
|
|
2752
|
-
return w && (e.cache.reset(), t.set(i.data)),
|
|
2752
|
+
return w && (e.cache.reset(), t.set(i.data)), v(i.data);
|
|
2753
2753
|
}, u);
|
|
2754
2754
|
});
|
|
2755
2755
|
}, t.sendResetPasswordRequest = function(l, p) {
|
|
2756
2756
|
return p || (p = {}), l ? !l.email || !l.email.length ? Promise.reject({
|
|
2757
2757
|
message: "An email address is required for password reset"
|
|
2758
2758
|
}) : new Promise(function(y, w) {
|
|
2759
|
-
var
|
|
2759
|
+
var v = {
|
|
2760
2760
|
bypassInterceptor: !0
|
|
2761
2761
|
};
|
|
2762
|
-
e.api.post(p.url || `${e.apiURL}/user/forgot`, l,
|
|
2762
|
+
e.api.post(p.url || `${e.apiURL}/user/forgot`, l, v).then(y, w);
|
|
2763
2763
|
}) : Promise.reject({
|
|
2764
2764
|
message: "Please provide your account details to reset your password"
|
|
2765
2765
|
});
|
|
@@ -2772,10 +2772,10 @@ var Pt = function(e) {
|
|
|
2772
2772
|
var { token: w } = p;
|
|
2773
2773
|
if (!w)
|
|
2774
2774
|
return Promise.reject("No token");
|
|
2775
|
-
var
|
|
2776
|
-
|
|
2775
|
+
var v = /* @__PURE__ */ new Date();
|
|
2776
|
+
v.setSeconds(v.getSeconds() + a);
|
|
2777
2777
|
var u = new Date(w.expires);
|
|
2778
|
-
return l ? await t.refreshAccessToken(w.refreshToken) :
|
|
2778
|
+
return l ? await t.refreshAccessToken(w.refreshToken) : v < u ? w : await t.refreshAccessToken(w.refreshToken);
|
|
2779
2779
|
};
|
|
2780
2780
|
const m = {};
|
|
2781
2781
|
return t.refreshAccessToken = async function(l) {
|
|
@@ -2783,7 +2783,7 @@ var Pt = function(e) {
|
|
|
2783
2783
|
return m.inflightRefreshRequest;
|
|
2784
2784
|
const p = r.isCookieMode && r.isCookieMode();
|
|
2785
2785
|
return m.inflightRefreshRequest = new Promise(function(y, w) {
|
|
2786
|
-
let
|
|
2786
|
+
let v = {}, u = {
|
|
2787
2787
|
bypassInterceptor: !0,
|
|
2788
2788
|
withoutToken: !0
|
|
2789
2789
|
};
|
|
@@ -2792,9 +2792,9 @@ var Pt = function(e) {
|
|
|
2792
2792
|
else {
|
|
2793
2793
|
if (!l)
|
|
2794
2794
|
return m.inflightRefreshRequest = null, w(new Error("No refresh token provided for localStorage mode"));
|
|
2795
|
-
|
|
2795
|
+
v.refreshToken = l;
|
|
2796
2796
|
}
|
|
2797
|
-
e.api.post("/user/refresh",
|
|
2797
|
+
e.api.post("/user/refresh", v, u).then(function(i) {
|
|
2798
2798
|
if (!i || !i.data)
|
|
2799
2799
|
return m.inflightRefreshRequest = null, w(new Error("Invalid refresh response"));
|
|
2800
2800
|
if (t.set(i.data), o(), p)
|
|
@@ -2846,13 +2846,13 @@ var Pt = function(e) {
|
|
|
2846
2846
|
var p = l;
|
|
2847
2847
|
if (r.isCookieMode && r.isCookieMode())
|
|
2848
2848
|
return p.withCredentials || (p.withCredentials = !0), p;
|
|
2849
|
-
var w = t.getCurrentUser(),
|
|
2849
|
+
var w = t.getCurrentUser(), v, u, s;
|
|
2850
2850
|
if (w) {
|
|
2851
2851
|
var { token: i } = w;
|
|
2852
|
-
i && (
|
|
2852
|
+
i && (v = i.accessToken, u = i.refreshToken, s = i.expires);
|
|
2853
2853
|
}
|
|
2854
|
-
if (
|
|
2855
|
-
p.headers.Authorization = `Bearer ${
|
|
2854
|
+
if (v)
|
|
2855
|
+
p.headers.Authorization = `Bearer ${v}`;
|
|
2856
2856
|
else
|
|
2857
2857
|
return p;
|
|
2858
2858
|
if (!u)
|
|
@@ -2860,11 +2860,11 @@ var Pt = function(e) {
|
|
|
2860
2860
|
var S = /* @__PURE__ */ new Date();
|
|
2861
2861
|
S.setSeconds(S.getSeconds() + a);
|
|
2862
2862
|
var f = new Date(s);
|
|
2863
|
-
return S < f ? p : new Promise(async function(c,
|
|
2864
|
-
await t.refreshAccessToken(u).then(function(
|
|
2865
|
-
return p.headers.Authorization = `Bearer ${
|
|
2866
|
-
}).catch(function(
|
|
2867
|
-
return b
|
|
2863
|
+
return S < f ? p : new Promise(async function(c, A) {
|
|
2864
|
+
await t.refreshAccessToken(u).then(function(b) {
|
|
2865
|
+
return p.headers.Authorization = `Bearer ${b}`, c(p);
|
|
2866
|
+
}).catch(function(b) {
|
|
2867
|
+
return A(b);
|
|
2868
2868
|
});
|
|
2869
2869
|
});
|
|
2870
2870
|
},
|
|
@@ -3139,8 +3139,8 @@ var Ue = {}, Ot = {
|
|
|
3139
3139
|
var p = r.hashPermissions(a), y = n || o;
|
|
3140
3140
|
if (!y)
|
|
3141
3141
|
return l;
|
|
3142
|
-
let w = n ? p[`${n}.${t}`] || [] : [],
|
|
3143
|
-
l = [...w, ...
|
|
3142
|
+
let w = n ? p[`${n}.${t}`] || [] : [], v = o ? p[`${o}.${t}`] || [] : [];
|
|
3143
|
+
l = [...w, ...v];
|
|
3144
3144
|
}
|
|
3145
3145
|
return l || [];
|
|
3146
3146
|
}, r.isOwner = function(a, t) {
|
|
@@ -3150,10 +3150,10 @@ var Ue = {}, Ot = {
|
|
|
3150
3150
|
var l = m.userOwners || [], p = e.utils.ids([...l, m.userAuthor]), y = e.utils.hash(p);
|
|
3151
3151
|
if (y[n])
|
|
3152
3152
|
return !0;
|
|
3153
|
-
var w = m.personaOwners || [],
|
|
3153
|
+
var w = m.personaOwners || [], v = e.utils.ids([
|
|
3154
3154
|
...w,
|
|
3155
3155
|
m.personaAuthor
|
|
3156
|
-
]), u = e.utils.hash(
|
|
3156
|
+
]), u = e.utils.hash(v);
|
|
3157
3157
|
return u[o] ? !0 : r.isAssignee(a, t);
|
|
3158
3158
|
}, r.isAssignee = function(a, t) {
|
|
3159
3159
|
const n = e.utils.ids(a?.profiles);
|
|
@@ -3184,36 +3184,45 @@ var Ue = {}, Ot = {
|
|
|
3184
3184
|
var l = t.meta?.type, p = t.meta?.definition || l;
|
|
3185
3185
|
if (!p)
|
|
3186
3186
|
return !1;
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3187
|
+
if ((n == "listany" || o == "listown") && l === "scope") {
|
|
3188
|
+
var y = e.utils.id(t);
|
|
3189
|
+
return !!a.permissions[y];
|
|
3190
|
+
}
|
|
3191
|
+
var w = e.utils.ids(t.meta.scopes || []);
|
|
3192
|
+
l === "scope" && (w = [
|
|
3193
|
+
...e.utils.ids(t.path || []),
|
|
3194
|
+
e.utils.id(t)
|
|
3195
|
+
]);
|
|
3196
|
+
var v, u = `access-${a?.cacheKey}-${n}-${p}-${l}`;
|
|
3197
|
+
if (m.cache[u])
|
|
3198
|
+
v = m.cache[u];
|
|
3190
3199
|
else {
|
|
3191
|
-
var
|
|
3200
|
+
var s = e.utils.ids(
|
|
3192
3201
|
r.actionableScopes(a, n, p, l, m)
|
|
3193
3202
|
);
|
|
3194
|
-
|
|
3203
|
+
v = e.utils.hash(s), m.cache[u] = v;
|
|
3195
3204
|
}
|
|
3196
|
-
if (
|
|
3197
|
-
var
|
|
3198
|
-
return
|
|
3205
|
+
if (v) {
|
|
3206
|
+
var i = w.some(function(P) {
|
|
3207
|
+
return v[P];
|
|
3199
3208
|
});
|
|
3200
|
-
if (
|
|
3209
|
+
if (i)
|
|
3201
3210
|
return !0;
|
|
3202
3211
|
}
|
|
3203
|
-
var
|
|
3204
|
-
if (
|
|
3205
|
-
var
|
|
3206
|
-
if (m.cache[
|
|
3207
|
-
|
|
3212
|
+
var S = r.isOwner(a, t);
|
|
3213
|
+
if (S) {
|
|
3214
|
+
var f, c = `access-${a?.cacheKey}-${o}-${p}-${l}`;
|
|
3215
|
+
if (m.cache[c])
|
|
3216
|
+
f = m.cache[c];
|
|
3208
3217
|
else {
|
|
3209
|
-
var
|
|
3218
|
+
var A = e.utils.ids(
|
|
3210
3219
|
r.actionableScopes(a, o, p, l, m)
|
|
3211
3220
|
);
|
|
3212
|
-
|
|
3221
|
+
f = e.utils.hash(A), m.cache[c] = f;
|
|
3213
3222
|
}
|
|
3214
|
-
if (
|
|
3215
|
-
var b =
|
|
3216
|
-
return
|
|
3223
|
+
if (f) {
|
|
3224
|
+
var b = w.some(function(P) {
|
|
3225
|
+
return f[P];
|
|
3217
3226
|
});
|
|
3218
3227
|
if (b)
|
|
3219
3228
|
return !0;
|
|
@@ -3329,22 +3338,22 @@ function It(e) {
|
|
|
3329
3338
|
});
|
|
3330
3339
|
}
|
|
3331
3340
|
async function l({ _s: u, _k: s, types: i }) {
|
|
3332
|
-
function S(
|
|
3333
|
-
if (typeof
|
|
3334
|
-
return u[parseInt(
|
|
3335
|
-
if (Array.isArray(
|
|
3336
|
-
if (
|
|
3337
|
-
const
|
|
3338
|
-
for (const [
|
|
3339
|
-
|
|
3340
|
-
return
|
|
3341
|
+
function S(A) {
|
|
3342
|
+
if (typeof A == "string" && A[0] === "~")
|
|
3343
|
+
return u[parseInt(A.slice(1))];
|
|
3344
|
+
if (Array.isArray(A)) return A.map(S);
|
|
3345
|
+
if (A && typeof A == "object") {
|
|
3346
|
+
const b = {};
|
|
3347
|
+
for (const [P, x] of Object.entries(A))
|
|
3348
|
+
b[s[P] || P] = S(x);
|
|
3349
|
+
return b;
|
|
3341
3350
|
}
|
|
3342
|
-
return
|
|
3351
|
+
return A;
|
|
3343
3352
|
}
|
|
3344
3353
|
const f = 50, c = [];
|
|
3345
|
-
for (let
|
|
3346
|
-
const
|
|
3347
|
-
c.push(...
|
|
3354
|
+
for (let A = 0; A < i.length; A += f) {
|
|
3355
|
+
const b = i.slice(A, A + f);
|
|
3356
|
+
c.push(...b.map(S)), A + f < i.length && await m();
|
|
3348
3357
|
}
|
|
3349
3358
|
return c;
|
|
3350
3359
|
}
|
|
@@ -3358,11 +3367,11 @@ function It(e) {
|
|
|
3358
3367
|
o = null, r.loadingGlossary = !1;
|
|
3359
3368
|
};
|
|
3360
3369
|
r.loadingGlossary = !0;
|
|
3361
|
-
const
|
|
3362
|
-
o = e.api.get(
|
|
3370
|
+
const P = S ? "/glossary/compressed" : "/glossary";
|
|
3371
|
+
o = e.api.get(P, { cache: !1 }), o.then(x, x);
|
|
3363
3372
|
}
|
|
3364
|
-
const { data:
|
|
3365
|
-
n.set("glossary",
|
|
3373
|
+
const { data: A } = await o, b = A._s && A._k && A.types ? await l(A) : A;
|
|
3374
|
+
n.set("glossary", b), s = b, e.dispatch("glossary", b);
|
|
3366
3375
|
}
|
|
3367
3376
|
if (u.hash) {
|
|
3368
3377
|
var c = e.utils.hash(s, "key");
|
|
@@ -3411,7 +3420,7 @@ function It(e) {
|
|
|
3411
3420
|
}
|
|
3412
3421
|
return w.data;
|
|
3413
3422
|
};
|
|
3414
|
-
function
|
|
3423
|
+
function v(u) {
|
|
3415
3424
|
var { minimum: s, maximum: i } = u;
|
|
3416
3425
|
return s = e.utils.parseInt(s), s = Math.max(s, 0), i = e.utils.parseInt(i), i = Math.max(i, 0), i == 0 || (i = Math.max(i, s)), { minimum: s, maximum: i };
|
|
3417
3426
|
}
|
|
@@ -3438,7 +3447,7 @@ function It(e) {
|
|
|
3438
3447
|
}
|
|
3439
3448
|
}, r.validateField = function(u, s, i) {
|
|
3440
3449
|
i = i || {};
|
|
3441
|
-
var S = s.type || "string", { minimum: f, maximum: c } =
|
|
3450
|
+
var S = s.type || "string", { minimum: f, maximum: c } = v(s), A = s.type == "group" && s.asObject, b = A ? f === c && c === 1 : c === 1, P = !b, x = e.utils.exists(u);
|
|
3442
3451
|
if (f) {
|
|
3443
3452
|
if (!x)
|
|
3444
3453
|
return {
|
|
@@ -3450,7 +3459,7 @@ function It(e) {
|
|
|
3450
3459
|
return {
|
|
3451
3460
|
valid: !0
|
|
3452
3461
|
};
|
|
3453
|
-
if (
|
|
3462
|
+
if (P) {
|
|
3454
3463
|
if (!Array.isArray(u))
|
|
3455
3464
|
return f ? {
|
|
3456
3465
|
valid: !1,
|
|
@@ -3462,9 +3471,9 @@ function It(e) {
|
|
|
3462
3471
|
status: 400
|
|
3463
3472
|
});
|
|
3464
3473
|
var k = u;
|
|
3465
|
-
if (k = k.filter(function(
|
|
3466
|
-
var
|
|
3467
|
-
return !
|
|
3474
|
+
if (k = k.filter(function(R) {
|
|
3475
|
+
var T = R == null || R === "";
|
|
3476
|
+
return !T;
|
|
3468
3477
|
}), f == c && f && k.length != f)
|
|
3469
3478
|
return {
|
|
3470
3479
|
valid: !1,
|
|
@@ -3484,19 +3493,19 @@ function It(e) {
|
|
|
3484
3493
|
status: 400
|
|
3485
3494
|
};
|
|
3486
3495
|
var N;
|
|
3487
|
-
if (k.find(function(
|
|
3488
|
-
var
|
|
3489
|
-
s.type === "group" && (
|
|
3496
|
+
if (k.find(function(R) {
|
|
3497
|
+
var T = S;
|
|
3498
|
+
s.type === "group" && (T = "object"), s.type === "reference" && s.widget === "form" && (T = "object");
|
|
3490
3499
|
var U = e.utils.isValidValue(
|
|
3491
|
-
T,
|
|
3492
3500
|
R,
|
|
3501
|
+
T,
|
|
3493
3502
|
i.strict
|
|
3494
3503
|
);
|
|
3495
3504
|
if (!U)
|
|
3496
3505
|
return N = !0, !0;
|
|
3497
3506
|
if (s.validation) {
|
|
3498
3507
|
var z = r.meetsValidationRequirements(
|
|
3499
|
-
|
|
3508
|
+
R,
|
|
3500
3509
|
S,
|
|
3501
3510
|
s.validation
|
|
3502
3511
|
);
|
|
@@ -3529,12 +3538,12 @@ function It(e) {
|
|
|
3529
3538
|
},
|
|
3530
3539
|
status: 400
|
|
3531
3540
|
};
|
|
3532
|
-
let
|
|
3533
|
-
const
|
|
3534
|
-
if (String(s.minValue) && (
|
|
3541
|
+
let R = !1;
|
|
3542
|
+
const T = {};
|
|
3543
|
+
if (String(s.minValue) && (T.minValue = parseInt(s.minValue), R = !0), String(s.maxValue) && (T.maxValue = parseInt(s.maxValue), R = !0), String(s.minLength) && (T.minLength = parseInt(s.minLength), R = !0), String(s.maxLength) && (T.maxLength = parseInt(s.maxLength), R = !0), R) {
|
|
3535
3544
|
const U = Object.assign(
|
|
3536
3545
|
{},
|
|
3537
|
-
|
|
3546
|
+
T,
|
|
3538
3547
|
s.validation || {}
|
|
3539
3548
|
);
|
|
3540
3549
|
var F = r.meetsValidationRequirements(
|
|
@@ -3579,8 +3588,8 @@ function It(e) {
|
|
|
3579
3588
|
const c = e.api.CancelToken.source();
|
|
3580
3589
|
return i.config.cancelToken = c.token, {
|
|
3581
3590
|
promise: e.api.post(S, s, i.config),
|
|
3582
|
-
cancel(
|
|
3583
|
-
c.cancel(
|
|
3591
|
+
cancel(b) {
|
|
3592
|
+
c.cancel(b || "Operation canceled by the user.");
|
|
3584
3593
|
}
|
|
3585
3594
|
};
|
|
3586
3595
|
} else {
|
|
@@ -3633,7 +3642,7 @@ function kt(e) {
|
|
|
3633
3642
|
})), a;
|
|
3634
3643
|
}, r;
|
|
3635
3644
|
}
|
|
3636
|
-
function
|
|
3645
|
+
function Rt(e) {
|
|
3637
3646
|
var r = {};
|
|
3638
3647
|
function a() {
|
|
3639
3648
|
return !(typeof window > "u" || !window.navigator || !window.navigator.geolocation);
|
|
@@ -3642,7 +3651,7 @@ function Tt(e) {
|
|
|
3642
3651
|
function l(i) {
|
|
3643
3652
|
return i * (Math.PI / 180);
|
|
3644
3653
|
}
|
|
3645
|
-
var p = 6371e3, y = l(o - t), w = l(m - n),
|
|
3654
|
+
var p = 6371e3, y = l(o - t), w = l(m - n), v = Math.sin(y / 2) * Math.sin(y / 2) + Math.cos(l(t)) * Math.cos(l(o)) * Math.sin(w / 2) * Math.sin(w / 2), u = 2 * Math.atan2(Math.sqrt(v), Math.sqrt(1 - v)), s = p * u;
|
|
3646
3655
|
return s;
|
|
3647
3656
|
}, r.getPosition = async function() {
|
|
3648
3657
|
return a() ? (console.log("qik:geo: getting location"), new Promise(function(t, n) {
|
|
@@ -4376,7 +4385,7 @@ function Tt(e) {
|
|
|
4376
4385
|
}
|
|
4377
4386
|
}, r;
|
|
4378
4387
|
}
|
|
4379
|
-
const
|
|
4388
|
+
const Tt = function(e, r) {
|
|
4380
4389
|
if (r = r || "production", !e.auth)
|
|
4381
4390
|
throw new Error("Can't Instantiate QikSocket before QikAuth exists");
|
|
4382
4391
|
const a = e.utils.guid();
|
|
@@ -4409,7 +4418,7 @@ const Rt = function(e, r) {
|
|
|
4409
4418
|
function w(i) {
|
|
4410
4419
|
console.log("[event] socketError", event), t.debug && console.log("[socket] Error", i), l.dispatch("error", i);
|
|
4411
4420
|
}
|
|
4412
|
-
function
|
|
4421
|
+
function v(i) {
|
|
4413
4422
|
const S = JSON.parse(i.data);
|
|
4414
4423
|
t.debug && console.log("[socket] message received", S), l.dispatch("message", S), S.channel && l.dispatch(S.channel, S);
|
|
4415
4424
|
}
|
|
@@ -4434,7 +4443,7 @@ const Rt = function(e, r) {
|
|
|
4434
4443
|
t.debug && console.log("[socket] - Must be authenticated to connect to socket");
|
|
4435
4444
|
return;
|
|
4436
4445
|
}
|
|
4437
|
-
return n = new WebSocket(`${t.url}?access_token=${i}&windowid=${a}`), n.addEventListener("close", y), n.addEventListener("error", w), n.addEventListener("open", p), n.addEventListener("message",
|
|
4446
|
+
return n = new WebSocket(`${t.url}?access_token=${i}&windowid=${a}`), n.addEventListener("close", y), n.addEventListener("error", w), n.addEventListener("open", p), n.addEventListener("message", v), t.debug && console.log("[socket] - Connected with event listeners"), s();
|
|
4438
4447
|
}, t.reconnect = async function() {
|
|
4439
4448
|
if (t.connected)
|
|
4440
4449
|
return;
|
|
@@ -4449,7 +4458,7 @@ const Rt = function(e, r) {
|
|
|
4449
4458
|
return;
|
|
4450
4459
|
}
|
|
4451
4460
|
const i = t.autoreconnect;
|
|
4452
|
-
t.autoreconnect = !1, n.close(), n.removeEventListener("close", y), n.removeEventListener("error", w), n.removeEventListener("open", p), n.removeEventListener("message",
|
|
4461
|
+
t.autoreconnect = !1, n.close(), n.removeEventListener("close", y), n.removeEventListener("error", w), n.removeEventListener("open", p), n.removeEventListener("message", v), n = null, y({ wasClean: !0 }), t.autoreconnect = i;
|
|
4453
4462
|
}, t.disconnect = t.close, t.subscribe = async function(i) {
|
|
4454
4463
|
if (!n) {
|
|
4455
4464
|
console.log("[socket] - Can't subscribe to channel as socket is not connected");
|
|
@@ -4521,7 +4530,7 @@ function Ft(e) {
|
|
|
4521
4530
|
value: p,
|
|
4522
4531
|
writable: !1
|
|
4523
4532
|
});
|
|
4524
|
-
const y = new
|
|
4533
|
+
const y = new Tt(r);
|
|
4525
4534
|
Object.defineProperty(r, "socket", {
|
|
4526
4535
|
value: y,
|
|
4527
4536
|
writable: !1
|
|
@@ -4531,12 +4540,12 @@ function Ft(e) {
|
|
|
4531
4540
|
value: w,
|
|
4532
4541
|
writable: !1
|
|
4533
4542
|
});
|
|
4534
|
-
const
|
|
4543
|
+
const v = new kt(r);
|
|
4535
4544
|
Object.defineProperty(r, "system", {
|
|
4536
|
-
value:
|
|
4545
|
+
value: v,
|
|
4537
4546
|
writable: !1
|
|
4538
4547
|
});
|
|
4539
|
-
const u = new
|
|
4548
|
+
const u = new Rt(r);
|
|
4540
4549
|
Object.defineProperty(r, "geo", {
|
|
4541
4550
|
value: u,
|
|
4542
4551
|
writable: !1
|