@qikdev/sdk 1.0.8 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +1556 -1547
- package/package.json +1 -1
- package/src/api/qik.access.js +63 -11
- package/src/version.js +1 -1
package/dist/main.js
CHANGED
|
@@ -8,25 +8,25 @@ function Zr(e) {
|
|
|
8
8
|
if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
|
|
9
9
|
var r = e.default;
|
|
10
10
|
if (typeof r == "function") {
|
|
11
|
-
var
|
|
12
|
-
var
|
|
11
|
+
var i = function t() {
|
|
12
|
+
var a = !1;
|
|
13
13
|
try {
|
|
14
|
-
|
|
14
|
+
a = this instanceof t;
|
|
15
15
|
} catch {
|
|
16
16
|
}
|
|
17
|
-
return
|
|
17
|
+
return a ? Reflect.construct(r, arguments, this.constructor) : r.apply(this, arguments);
|
|
18
18
|
};
|
|
19
|
-
|
|
20
|
-
} else
|
|
21
|
-
return Object.defineProperty(
|
|
22
|
-
var
|
|
23
|
-
Object.defineProperty(
|
|
19
|
+
i.prototype = r.prototype;
|
|
20
|
+
} else i = {};
|
|
21
|
+
return Object.defineProperty(i, "__esModule", { value: !0 }), Object.keys(e).forEach(function(t) {
|
|
22
|
+
var a = Object.getOwnPropertyDescriptor(e, t);
|
|
23
|
+
Object.defineProperty(i, t, a.get ? a : {
|
|
24
24
|
enumerable: !0,
|
|
25
25
|
get: function() {
|
|
26
26
|
return e[t];
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
|
-
}),
|
|
29
|
+
}), i;
|
|
30
30
|
}
|
|
31
31
|
var Ze, Pr;
|
|
32
32
|
function Qr() {
|
|
@@ -35,21 +35,21 @@ function Qr() {
|
|
|
35
35
|
return !1;
|
|
36
36
|
if (typeof Symbol.iterator == "symbol")
|
|
37
37
|
return !0;
|
|
38
|
-
var r = {},
|
|
39
|
-
if (typeof
|
|
38
|
+
var r = {}, i = Symbol("test"), t = Object(i);
|
|
39
|
+
if (typeof i == "string" || Object.prototype.toString.call(i) !== "[object Symbol]" || Object.prototype.toString.call(t) !== "[object Symbol]")
|
|
40
40
|
return !1;
|
|
41
|
-
var
|
|
42
|
-
r[
|
|
43
|
-
for (
|
|
41
|
+
var a = 42;
|
|
42
|
+
r[i] = a;
|
|
43
|
+
for (i in r)
|
|
44
44
|
return !1;
|
|
45
45
|
if (typeof Object.keys == "function" && Object.keys(r).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(r).length !== 0)
|
|
46
46
|
return !1;
|
|
47
|
-
var
|
|
48
|
-
if (
|
|
47
|
+
var n = Object.getOwnPropertySymbols(r);
|
|
48
|
+
if (n.length !== 1 || n[0] !== i || !Object.prototype.propertyIsEnumerable.call(r, i))
|
|
49
49
|
return !1;
|
|
50
50
|
if (typeof Object.getOwnPropertyDescriptor == "function") {
|
|
51
|
-
var
|
|
52
|
-
if (
|
|
51
|
+
var s = Object.getOwnPropertyDescriptor(r, i);
|
|
52
|
+
if (s.value !== a || s.enumerable !== !0)
|
|
53
53
|
return !1;
|
|
54
54
|
}
|
|
55
55
|
return !0;
|
|
@@ -68,45 +68,45 @@ var Ye, Cr;
|
|
|
68
68
|
function Xr() {
|
|
69
69
|
if (Cr) return Ye;
|
|
70
70
|
Cr = 1;
|
|
71
|
-
var e = "Function.prototype.bind called on incompatible ", r = Object.prototype.toString,
|
|
72
|
-
for (var w = [],
|
|
73
|
-
w[
|
|
74
|
-
for (var u = 0; u <
|
|
75
|
-
w[u +
|
|
71
|
+
var e = "Function.prototype.bind called on incompatible ", r = Object.prototype.toString, i = Math.max, t = "[object Function]", a = function(c, p) {
|
|
72
|
+
for (var w = [], A = 0; A < c.length; A += 1)
|
|
73
|
+
w[A] = c[A];
|
|
74
|
+
for (var u = 0; u < p.length; u += 1)
|
|
75
|
+
w[u + c.length] = p[u];
|
|
76
76
|
return w;
|
|
77
|
-
},
|
|
78
|
-
for (var w = [],
|
|
79
|
-
w[u] =
|
|
77
|
+
}, n = function(c, p) {
|
|
78
|
+
for (var w = [], A = p, u = 0; A < c.length; A += 1, u += 1)
|
|
79
|
+
w[u] = c[A];
|
|
80
80
|
return w;
|
|
81
|
-
},
|
|
82
|
-
for (var
|
|
83
|
-
|
|
84
|
-
return
|
|
81
|
+
}, s = function(f, c) {
|
|
82
|
+
for (var p = "", w = 0; w < f.length; w += 1)
|
|
83
|
+
p += f[w], w + 1 < f.length && (p += c);
|
|
84
|
+
return p;
|
|
85
85
|
};
|
|
86
|
-
return Ye = function(
|
|
87
|
-
var
|
|
88
|
-
if (typeof
|
|
89
|
-
throw new TypeError(e +
|
|
90
|
-
for (var w =
|
|
91
|
-
if (this instanceof
|
|
92
|
-
var
|
|
86
|
+
return Ye = function(c) {
|
|
87
|
+
var p = this;
|
|
88
|
+
if (typeof p != "function" || r.apply(p) !== t)
|
|
89
|
+
throw new TypeError(e + p);
|
|
90
|
+
for (var w = n(arguments, 1), A, u = function() {
|
|
91
|
+
if (this instanceof A) {
|
|
92
|
+
var l = p.apply(
|
|
93
93
|
this,
|
|
94
|
-
|
|
94
|
+
a(w, arguments)
|
|
95
95
|
);
|
|
96
|
-
return Object(
|
|
96
|
+
return Object(l) === l ? l : this;
|
|
97
97
|
}
|
|
98
|
-
return
|
|
99
|
-
|
|
100
|
-
|
|
98
|
+
return p.apply(
|
|
99
|
+
c,
|
|
100
|
+
a(w, arguments)
|
|
101
101
|
);
|
|
102
|
-
}, o =
|
|
103
|
-
|
|
104
|
-
if (
|
|
105
|
-
var
|
|
102
|
+
}, o = i(0, p.length - w.length), m = [], h = 0; h < o; h++)
|
|
103
|
+
m[h] = "$" + h;
|
|
104
|
+
if (A = Function("binder", "return function (" + s(m, ",") + "){ return binder.apply(this,arguments); }")(u), p.prototype) {
|
|
105
|
+
var d = function() {
|
|
106
106
|
};
|
|
107
|
-
|
|
107
|
+
d.prototype = p.prototype, A.prototype = new d(), d.prototype = null;
|
|
108
108
|
}
|
|
109
|
-
return
|
|
109
|
+
return A;
|
|
110
110
|
}, Ye;
|
|
111
111
|
}
|
|
112
112
|
var Xe, Mr;
|
|
@@ -127,37 +127,37 @@ var rr, Tr;
|
|
|
127
127
|
function hr() {
|
|
128
128
|
if (Tr) return rr;
|
|
129
129
|
Tr = 1;
|
|
130
|
-
var e, r = SyntaxError,
|
|
130
|
+
var e, r = SyntaxError, i = Function, t = TypeError, a = function($) {
|
|
131
131
|
try {
|
|
132
|
-
return
|
|
132
|
+
return i('"use strict"; return (' + $ + ").constructor;")();
|
|
133
133
|
} catch {
|
|
134
134
|
}
|
|
135
|
-
},
|
|
136
|
-
if (
|
|
135
|
+
}, n = Object.getOwnPropertyDescriptor;
|
|
136
|
+
if (n)
|
|
137
137
|
try {
|
|
138
|
-
|
|
138
|
+
n({}, "");
|
|
139
139
|
} catch {
|
|
140
|
-
|
|
140
|
+
n = null;
|
|
141
141
|
}
|
|
142
|
-
var
|
|
142
|
+
var s = function() {
|
|
143
143
|
throw new t();
|
|
144
|
-
},
|
|
144
|
+
}, f = n ? (function() {
|
|
145
145
|
try {
|
|
146
|
-
return arguments.callee,
|
|
146
|
+
return arguments.callee, s;
|
|
147
147
|
} catch {
|
|
148
148
|
try {
|
|
149
|
-
return
|
|
149
|
+
return n(arguments, "callee").get;
|
|
150
150
|
} catch {
|
|
151
|
-
return
|
|
151
|
+
return s;
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
-
})() :
|
|
154
|
+
})() : s, c = Yr()(), p = Object.getPrototypeOf || function($) {
|
|
155
155
|
return $.__proto__;
|
|
156
|
-
}, w = {},
|
|
156
|
+
}, w = {}, A = typeof Uint8Array > "u" ? e : p(Uint8Array), u = {
|
|
157
157
|
"%AggregateError%": typeof AggregateError > "u" ? e : AggregateError,
|
|
158
158
|
"%Array%": Array,
|
|
159
159
|
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? e : ArrayBuffer,
|
|
160
|
-
"%ArrayIteratorPrototype%":
|
|
160
|
+
"%ArrayIteratorPrototype%": c ? p([][Symbol.iterator]()) : e,
|
|
161
161
|
"%AsyncFromSyncIteratorPrototype%": e,
|
|
162
162
|
"%AsyncFunction%": w,
|
|
163
163
|
"%AsyncGenerator%": w,
|
|
@@ -179,17 +179,17 @@ function hr() {
|
|
|
179
179
|
"%Float32Array%": typeof Float32Array > "u" ? e : Float32Array,
|
|
180
180
|
"%Float64Array%": typeof Float64Array > "u" ? e : Float64Array,
|
|
181
181
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? e : FinalizationRegistry,
|
|
182
|
-
"%Function%":
|
|
182
|
+
"%Function%": i,
|
|
183
183
|
"%GeneratorFunction%": w,
|
|
184
184
|
"%Int8Array%": typeof Int8Array > "u" ? e : Int8Array,
|
|
185
185
|
"%Int16Array%": typeof Int16Array > "u" ? e : Int16Array,
|
|
186
186
|
"%Int32Array%": typeof Int32Array > "u" ? e : Int32Array,
|
|
187
187
|
"%isFinite%": isFinite,
|
|
188
188
|
"%isNaN%": isNaN,
|
|
189
|
-
"%IteratorPrototype%":
|
|
189
|
+
"%IteratorPrototype%": c ? p(p([][Symbol.iterator]())) : e,
|
|
190
190
|
"%JSON%": typeof JSON == "object" ? JSON : e,
|
|
191
191
|
"%Map%": typeof Map > "u" ? e : Map,
|
|
192
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !
|
|
192
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !c ? e : p((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
193
193
|
"%Math%": Math,
|
|
194
194
|
"%Number%": Number,
|
|
195
195
|
"%Object%": Object,
|
|
@@ -202,14 +202,14 @@ function hr() {
|
|
|
202
202
|
"%Reflect%": typeof Reflect > "u" ? e : Reflect,
|
|
203
203
|
"%RegExp%": RegExp,
|
|
204
204
|
"%Set%": typeof Set > "u" ? e : Set,
|
|
205
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !
|
|
205
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !c ? e : p((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
206
206
|
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? e : SharedArrayBuffer,
|
|
207
207
|
"%String%": String,
|
|
208
|
-
"%StringIteratorPrototype%":
|
|
209
|
-
"%Symbol%":
|
|
208
|
+
"%StringIteratorPrototype%": c ? p(""[Symbol.iterator]()) : e,
|
|
209
|
+
"%Symbol%": c ? Symbol : e,
|
|
210
210
|
"%SyntaxError%": r,
|
|
211
|
-
"%ThrowTypeError%":
|
|
212
|
-
"%TypedArray%":
|
|
211
|
+
"%ThrowTypeError%": f,
|
|
212
|
+
"%TypedArray%": A,
|
|
213
213
|
"%TypeError%": t,
|
|
214
214
|
"%Uint8Array%": typeof Uint8Array > "u" ? e : Uint8Array,
|
|
215
215
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? e : Uint8ClampedArray,
|
|
@@ -222,20 +222,20 @@ function hr() {
|
|
|
222
222
|
}, o = function $(L) {
|
|
223
223
|
var F;
|
|
224
224
|
if (L === "%AsyncFunction%")
|
|
225
|
-
F =
|
|
225
|
+
F = a("async function () {}");
|
|
226
226
|
else if (L === "%GeneratorFunction%")
|
|
227
|
-
F =
|
|
227
|
+
F = a("function* () {}");
|
|
228
228
|
else if (L === "%AsyncGeneratorFunction%")
|
|
229
|
-
F =
|
|
229
|
+
F = a("async function* () {}");
|
|
230
230
|
else if (L === "%AsyncGenerator%") {
|
|
231
|
-
var
|
|
232
|
-
|
|
231
|
+
var k = $("%AsyncGeneratorFunction%");
|
|
232
|
+
k && (F = k.prototype);
|
|
233
233
|
} else if (L === "%AsyncIteratorPrototype%") {
|
|
234
|
-
var
|
|
235
|
-
|
|
234
|
+
var R = $("%AsyncGenerator%");
|
|
235
|
+
R && (F = p(R.prototype));
|
|
236
236
|
}
|
|
237
237
|
return u[L] = F, F;
|
|
238
|
-
},
|
|
238
|
+
}, m = {
|
|
239
239
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
240
240
|
"%ArrayPrototype%": ["Array", "prototype"],
|
|
241
241
|
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
|
|
@@ -287,25 +287,25 @@ function hr() {
|
|
|
287
287
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
288
288
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
289
289
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
290
|
-
},
|
|
291
|
-
var F =
|
|
292
|
-
if (F === "%" &&
|
|
290
|
+
}, h = yr(), d = et(), l = h.call(Function.call, Array.prototype.concat), v = h.call(Function.apply, Array.prototype.splice), S = h.call(Function.call, String.prototype.replace), O = h.call(Function.call, String.prototype.slice), x = h.call(Function.call, RegExp.prototype.exec), T = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, N = /\\(\\)?/g, M = function(L) {
|
|
291
|
+
var F = O(L, 0, 1), k = O(L, -1);
|
|
292
|
+
if (F === "%" && k !== "%")
|
|
293
293
|
throw new r("invalid intrinsic syntax, expected closing `%`");
|
|
294
|
-
if (
|
|
294
|
+
if (k === "%" && F !== "%")
|
|
295
295
|
throw new r("invalid intrinsic syntax, expected opening `%`");
|
|
296
|
-
var
|
|
296
|
+
var R = [];
|
|
297
297
|
return S(L, T, function(U, z, _, Z) {
|
|
298
|
-
|
|
299
|
-
}),
|
|
298
|
+
R[R.length] = _ ? S(Z, N, "$1") : z || U;
|
|
299
|
+
}), R;
|
|
300
300
|
}, V = function(L, F) {
|
|
301
|
-
var
|
|
302
|
-
if (
|
|
303
|
-
var U = u[
|
|
304
|
-
if (U === w && (U = o(
|
|
301
|
+
var k = L, R;
|
|
302
|
+
if (d(m, k) && (R = m[k], k = "%" + R[0] + "%"), d(u, k)) {
|
|
303
|
+
var U = u[k];
|
|
304
|
+
if (U === w && (U = o(k)), 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: R,
|
|
308
|
+
name: k,
|
|
309
309
|
value: U
|
|
310
310
|
};
|
|
311
311
|
}
|
|
@@ -318,67 +318,67 @@ 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
|
|
321
|
+
var k = M(L), R = k.length > 0 ? k[0] : "", U = V("%" + R + "%", F), z = U.name, _ = U.value, Z = !1, Q = U.alias;
|
|
322
|
+
Q && (R = Q[0], v(k, l([0, 1], Q)));
|
|
323
|
+
for (var ne = 1, X = !0; ne < k.length; ne += 1) {
|
|
324
|
+
var K = k[ne], ie = O(K, 0, 1), re = O(K, -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 ((
|
|
327
|
+
if ((K === "constructor" || !X) && (Z = !0), R += "." + K, z = "%" + R + "%", d(u, z))
|
|
328
328
|
_ = u[z];
|
|
329
329
|
else if (_ != null) {
|
|
330
|
-
if (!(
|
|
330
|
+
if (!(K in _)) {
|
|
331
331
|
if (!F)
|
|
332
332
|
throw new t("base intrinsic for " + L + " exists, but the property is not available.");
|
|
333
333
|
return;
|
|
334
334
|
}
|
|
335
|
-
if (
|
|
336
|
-
var te =
|
|
337
|
-
X = !!te, X && "get" in te && !("originalValue" in te.get) ? _ = te.get : _ = _[
|
|
335
|
+
if (n && ne + 1 >= k.length) {
|
|
336
|
+
var te = n(_, K);
|
|
337
|
+
X = !!te, X && "get" in te && !("originalValue" in te.get) ? _ = te.get : _ = _[K];
|
|
338
338
|
} else
|
|
339
|
-
X =
|
|
339
|
+
X = d(_, K), _ = _[K];
|
|
340
340
|
X && !Z && (u[z] = _);
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
return _;
|
|
344
344
|
}, rr;
|
|
345
345
|
}
|
|
346
|
-
var tr = { exports: {} },
|
|
346
|
+
var tr = { exports: {} }, kr;
|
|
347
347
|
function rt() {
|
|
348
|
-
return
|
|
349
|
-
var r = yr(),
|
|
350
|
-
if (
|
|
348
|
+
return kr || (kr = 1, (function(e) {
|
|
349
|
+
var r = yr(), i = hr(), t = i("%Function.prototype.apply%"), a = i("%Function.prototype.call%"), n = i("%Reflect.apply%", !0) || r.call(a, t), s = i("%Object.getOwnPropertyDescriptor%", !0), f = i("%Object.defineProperty%", !0), c = i("%Math.max%");
|
|
350
|
+
if (f)
|
|
351
351
|
try {
|
|
352
|
-
|
|
352
|
+
f({}, "a", { value: 1 });
|
|
353
353
|
} catch {
|
|
354
|
-
|
|
354
|
+
f = null;
|
|
355
355
|
}
|
|
356
|
-
e.exports = function(
|
|
357
|
-
var u =
|
|
358
|
-
if (
|
|
359
|
-
var o =
|
|
360
|
-
o.configurable &&
|
|
356
|
+
e.exports = function(A) {
|
|
357
|
+
var u = n(r, a, arguments);
|
|
358
|
+
if (s && f) {
|
|
359
|
+
var o = s(u, "length");
|
|
360
|
+
o.configurable && f(
|
|
361
361
|
u,
|
|
362
362
|
"length",
|
|
363
|
-
{ value: 1 +
|
|
363
|
+
{ value: 1 + c(0, A.length - (arguments.length - 1)) }
|
|
364
364
|
);
|
|
365
365
|
}
|
|
366
366
|
return u;
|
|
367
367
|
};
|
|
368
|
-
var
|
|
369
|
-
return
|
|
368
|
+
var p = function() {
|
|
369
|
+
return n(r, t, arguments);
|
|
370
370
|
};
|
|
371
|
-
|
|
371
|
+
f ? f(e.exports, "apply", { value: p }) : e.exports.apply = p;
|
|
372
372
|
})(tr)), tr.exports;
|
|
373
373
|
}
|
|
374
|
-
var ar,
|
|
374
|
+
var ar, Rr;
|
|
375
375
|
function tt() {
|
|
376
|
-
if (
|
|
377
|
-
|
|
378
|
-
var e = hr(), r = rt(),
|
|
379
|
-
return ar = function(
|
|
380
|
-
var
|
|
381
|
-
return typeof
|
|
376
|
+
if (Rr) return ar;
|
|
377
|
+
Rr = 1;
|
|
378
|
+
var e = hr(), r = rt(), i = r(e("String.prototype.indexOf"));
|
|
379
|
+
return ar = function(a, n) {
|
|
380
|
+
var s = e(a, !!n);
|
|
381
|
+
return typeof s == "function" && i(a, ".prototype.") > -1 ? r(s) : s;
|
|
382
382
|
}, ar;
|
|
383
383
|
}
|
|
384
384
|
const at = {}, nt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -389,353 +389,353 @@ 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,
|
|
393
|
-
return
|
|
392
|
+
var e = typeof Map == "function" && Map.prototype, r = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, i = e && r && typeof r.get == "function" ? r.get : null, t = e && Map.prototype.forEach, a = typeof Set == "function" && Set.prototype, n = Object.getOwnPropertyDescriptor && a ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, s = a && n && typeof n.get == "function" ? n.get : null, f = a && Set.prototype.forEach, c = typeof WeakMap == "function" && WeakMap.prototype, p = c ? WeakMap.prototype.has : null, w = typeof WeakSet == "function" && WeakSet.prototype, A = w ? WeakSet.prototype.has : null, u = typeof WeakRef == "function" && WeakRef.prototype, o = u ? WeakRef.prototype.deref : null, m = Boolean.prototype.valueOf, h = Object.prototype.toString, d = Function.prototype.toString, l = String.prototype.match, v = String.prototype.slice, S = String.prototype.replace, O = 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, k = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, R = typeof Symbol == "function" && typeof Symbol.iterator == "object", U = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === R || !0) ? Symbol.toStringTag : null, z = Object.prototype.propertyIsEnumerable, _ = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(g) {
|
|
393
|
+
return g.__proto__;
|
|
394
394
|
} : null);
|
|
395
|
-
function Z(
|
|
396
|
-
if (
|
|
397
|
-
return
|
|
395
|
+
function Z(g, b) {
|
|
396
|
+
if (g === 1 / 0 || g === -1 / 0 || g !== g || g && g > -1e3 && g < 1e3 || T.call(/e/, b))
|
|
397
|
+
return b;
|
|
398
398
|
var D = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
399
|
-
if (typeof
|
|
400
|
-
var
|
|
401
|
-
if (
|
|
402
|
-
var E = String(
|
|
403
|
-
return S.call(E, D, "$&_") + "." + S.call(S.call(
|
|
399
|
+
if (typeof g == "number") {
|
|
400
|
+
var y = g < 0 ? -$(-g) : $(g);
|
|
401
|
+
if (y !== g) {
|
|
402
|
+
var E = String(y), P = v.call(b, E.length + 1);
|
|
403
|
+
return S.call(E, D, "$&_") + "." + S.call(S.call(P, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
|
-
return S.call(
|
|
406
|
+
return S.call(b, 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 g(b, D, y, E) {
|
|
410
|
+
var P = D || {};
|
|
411
|
+
if (J(P, "quoteStyle") && P.quoteStyle !== "single" && P.quoteStyle !== "double")
|
|
412
412
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
413
|
-
if (J(
|
|
413
|
+
if (J(P, "maxStringLength") && (typeof P.maxStringLength == "number" ? P.maxStringLength < 0 && P.maxStringLength !== 1 / 0 : P.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(P, "customInspect") ? P.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(P, "indent") && P.indent !== null && P.indent !== " " && !(parseInt(P.indent, 10) === P.indent && P.indent > 0))
|
|
419
419
|
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
420
|
-
if (J(
|
|
420
|
+
if (J(P, "numericSeparator") && typeof P.numericSeparator != "boolean")
|
|
421
421
|
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
422
|
-
var ae =
|
|
423
|
-
if (typeof
|
|
422
|
+
var ae = P.numericSeparator;
|
|
423
|
+
if (typeof b > "u")
|
|
424
424
|
return "undefined";
|
|
425
|
-
if (
|
|
425
|
+
if (b === null)
|
|
426
426
|
return "null";
|
|
427
|
-
if (typeof
|
|
428
|
-
return
|
|
429
|
-
if (typeof
|
|
430
|
-
return Oe(
|
|
431
|
-
if (typeof
|
|
432
|
-
if (
|
|
433
|
-
return 1 / 0 /
|
|
434
|
-
var
|
|
435
|
-
return ae ? Z(
|
|
427
|
+
if (typeof b == "boolean")
|
|
428
|
+
return b ? "true" : "false";
|
|
429
|
+
if (typeof b == "string")
|
|
430
|
+
return Oe(b, P);
|
|
431
|
+
if (typeof b == "number") {
|
|
432
|
+
if (b === 0)
|
|
433
|
+
return 1 / 0 / b > 0 ? "0" : "-0";
|
|
434
|
+
var W = String(b);
|
|
435
|
+
return ae ? Z(b, W) : W;
|
|
436
436
|
}
|
|
437
|
-
if (typeof
|
|
438
|
-
var C = String(
|
|
439
|
-
return ae ? Z(
|
|
437
|
+
if (typeof b == "bigint") {
|
|
438
|
+
var C = String(b) + "n";
|
|
439
|
+
return ae ? Z(b, C) : C;
|
|
440
440
|
}
|
|
441
|
-
var B = typeof
|
|
442
|
-
if (typeof
|
|
443
|
-
return re(
|
|
444
|
-
var j = Le(
|
|
441
|
+
var B = typeof P.depth > "u" ? 5 : P.depth;
|
|
442
|
+
if (typeof y > "u" && (y = 0), y >= B && B > 0 && typeof b == "object")
|
|
443
|
+
return re(b) ? "[Array]" : "[Object]";
|
|
444
|
+
var j = Le(P, y);
|
|
445
445
|
if (typeof E > "u")
|
|
446
446
|
E = [];
|
|
447
|
-
else if (xe(E,
|
|
447
|
+
else if (xe(E, b) >= 0)
|
|
448
448
|
return "[Circular]";
|
|
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: P.depth
|
|
453
453
|
};
|
|
454
|
-
return J(
|
|
454
|
+
return J(P, "quoteStyle") && (xr.quoteStyle = P.quoteStyle), g(Me, xr, y + 1, E);
|
|
455
455
|
}
|
|
456
|
-
return
|
|
456
|
+
return g(Me, P, y + 1, E);
|
|
457
457
|
}
|
|
458
|
-
if (typeof
|
|
459
|
-
var Y = Ie(
|
|
458
|
+
if (typeof b == "function" && !ce(b)) {
|
|
459
|
+
var Y = Ie(b), Ee = ge(b, H);
|
|
460
460
|
return "[Function" + (Y ? ": " + Y : " (anonymous)") + "]" + (Ee.length > 0 ? " { " + M.call(Ee, ", ") + " }" : "");
|
|
461
461
|
}
|
|
462
|
-
if (se(
|
|
463
|
-
var Ar =
|
|
464
|
-
return typeof
|
|
462
|
+
if (se(b)) {
|
|
463
|
+
var Ar = R ? S.call(String(b), /^(Symbol\(.*\))_[^)]*$/, "$1") : k.call(b);
|
|
464
|
+
return typeof b == "object" && !R ? le(Ar) : Ar;
|
|
465
465
|
}
|
|
466
|
-
if (_e(
|
|
467
|
-
for (var Fe = "<" + x.call(String(
|
|
468
|
-
Fe += " " + ze[$e].name + "=" +
|
|
469
|
-
return Fe += ">",
|
|
466
|
+
if (_e(b)) {
|
|
467
|
+
for (var Fe = "<" + x.call(String(b.nodeName)), ze = b.attributes || [], $e = 0; $e < ze.length; $e++)
|
|
468
|
+
Fe += " " + ze[$e].name + "=" + K(ie(ze[$e].value), "double", P);
|
|
469
|
+
return Fe += ">", b.childNodes && b.childNodes.length && (Fe += "..."), Fe += "</" + x.call(String(b.nodeName)) + ">", Fe;
|
|
470
470
|
}
|
|
471
|
-
if (re(
|
|
472
|
-
if (
|
|
471
|
+
if (re(b)) {
|
|
472
|
+
if (b.length === 0)
|
|
473
473
|
return "[]";
|
|
474
|
-
var
|
|
475
|
-
return j && !Ce(
|
|
474
|
+
var Ke = ge(b, H);
|
|
475
|
+
return j && !Ce(Ke) ? "[" + he(Ke, j) + "]" : "[ " + M.call(Ke, ", ") + " ]";
|
|
476
476
|
}
|
|
477
|
-
if (ue(
|
|
478
|
-
var
|
|
479
|
-
return !("cause" in Error.prototype) && "cause" in
|
|
477
|
+
if (ue(b)) {
|
|
478
|
+
var We = ge(b, H);
|
|
479
|
+
return !("cause" in Error.prototype) && "cause" in b && !z.call(b, "cause") ? "{ [" + String(b) + "] " + M.call(N.call("[cause]: " + H(b.cause), We), ", ") + " }" : We.length === 0 ? "[" + String(b) + "]" : "{ [" + String(b) + "] " + M.call(We, ", ") + " }";
|
|
480
480
|
}
|
|
481
|
-
if (typeof
|
|
482
|
-
if (X && typeof
|
|
483
|
-
return Q(
|
|
484
|
-
if (G !== "symbol" && typeof
|
|
485
|
-
return
|
|
481
|
+
if (typeof b == "object" && G) {
|
|
482
|
+
if (X && typeof b[X] == "function" && Q)
|
|
483
|
+
return Q(b, { depth: B - y });
|
|
484
|
+
if (G !== "symbol" && typeof b.inspect == "function")
|
|
485
|
+
return b.inspect();
|
|
486
486
|
}
|
|
487
|
-
if (Te(
|
|
487
|
+
if (Te(b)) {
|
|
488
488
|
var br = [];
|
|
489
|
-
return t.call(
|
|
490
|
-
br.push(H(Be,
|
|
491
|
-
}), we("Map",
|
|
489
|
+
return t.call(b, function(Me, Be) {
|
|
490
|
+
br.push(H(Be, b, !0) + " => " + H(Me, b));
|
|
491
|
+
}), we("Map", i.call(b), br, j);
|
|
492
492
|
}
|
|
493
|
-
if (
|
|
493
|
+
if (ke(b)) {
|
|
494
494
|
var Sr = [];
|
|
495
|
-
return
|
|
496
|
-
Sr.push(H(Me,
|
|
497
|
-
}), we("Set",
|
|
495
|
+
return f.call(b, function(Me) {
|
|
496
|
+
Sr.push(H(Me, b));
|
|
497
|
+
}), we("Set", s.call(b), Sr, j);
|
|
498
498
|
}
|
|
499
|
-
if (me(
|
|
499
|
+
if (me(b))
|
|
500
500
|
return fe("WeakMap");
|
|
501
|
-
if (
|
|
501
|
+
if (Re(b))
|
|
502
502
|
return fe("WeakSet");
|
|
503
|
-
if (Pe(
|
|
503
|
+
if (Pe(b))
|
|
504
504
|
return fe("WeakRef");
|
|
505
|
-
if (de(
|
|
506
|
-
return le(H(Number(
|
|
507
|
-
if (ye(
|
|
508
|
-
return le(H(L.call(
|
|
509
|
-
if (pe(
|
|
510
|
-
return le(
|
|
511
|
-
if (oe(
|
|
512
|
-
return le(H(String(
|
|
513
|
-
if (!te(
|
|
514
|
-
var He = ge(
|
|
505
|
+
if (de(b))
|
|
506
|
+
return le(H(Number(b)));
|
|
507
|
+
if (ye(b))
|
|
508
|
+
return le(H(L.call(b)));
|
|
509
|
+
if (pe(b))
|
|
510
|
+
return le(m.call(b));
|
|
511
|
+
if (oe(b))
|
|
512
|
+
return le(H(String(b)));
|
|
513
|
+
if (!te(b) && !ce(b)) {
|
|
514
|
+
var He = ge(b, H), wr = _ ? _(b) === Object.prototype : b instanceof Object || b.constructor === Object, Je = b instanceof Object ? "" : "null prototype", Er = !wr && U && Object(b) === b && U in b ? v.call(ee(b), 8, -1) : Je ? "Object" : "", Hr = wr || typeof b.constructor != "function" ? "" : b.constructor.name ? b.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
|
-
return String(
|
|
517
|
+
return String(b);
|
|
518
518
|
};
|
|
519
|
-
function
|
|
520
|
-
var
|
|
521
|
-
return
|
|
519
|
+
function K(g, b, D) {
|
|
520
|
+
var y = (D.quoteStyle || b) === "double" ? '"' : "'";
|
|
521
|
+
return y + g + y;
|
|
522
522
|
}
|
|
523
|
-
function ie(
|
|
524
|
-
return S.call(String(
|
|
523
|
+
function ie(g) {
|
|
524
|
+
return S.call(String(g), /"/g, """);
|
|
525
525
|
}
|
|
526
|
-
function re(
|
|
527
|
-
return ee(
|
|
526
|
+
function re(g) {
|
|
527
|
+
return ee(g) === "[object Array]" && (!U || !(typeof g == "object" && U in g));
|
|
528
528
|
}
|
|
529
|
-
function te(
|
|
530
|
-
return ee(
|
|
529
|
+
function te(g) {
|
|
530
|
+
return ee(g) === "[object Date]" && (!U || !(typeof g == "object" && U in g));
|
|
531
531
|
}
|
|
532
|
-
function ce(
|
|
533
|
-
return ee(
|
|
532
|
+
function ce(g) {
|
|
533
|
+
return ee(g) === "[object RegExp]" && (!U || !(typeof g == "object" && U in g));
|
|
534
534
|
}
|
|
535
|
-
function ue(
|
|
536
|
-
return ee(
|
|
535
|
+
function ue(g) {
|
|
536
|
+
return ee(g) === "[object Error]" && (!U || !(typeof g == "object" && U in g));
|
|
537
537
|
}
|
|
538
|
-
function oe(
|
|
539
|
-
return ee(
|
|
538
|
+
function oe(g) {
|
|
539
|
+
return ee(g) === "[object String]" && (!U || !(typeof g == "object" && U in g));
|
|
540
540
|
}
|
|
541
|
-
function de(
|
|
542
|
-
return ee(
|
|
541
|
+
function de(g) {
|
|
542
|
+
return ee(g) === "[object Number]" && (!U || !(typeof g == "object" && U in g));
|
|
543
543
|
}
|
|
544
|
-
function pe(
|
|
545
|
-
return ee(
|
|
544
|
+
function pe(g) {
|
|
545
|
+
return ee(g) === "[object Boolean]" && (!U || !(typeof g == "object" && U in g));
|
|
546
546
|
}
|
|
547
|
-
function se(
|
|
548
|
-
if (
|
|
549
|
-
return
|
|
550
|
-
if (typeof
|
|
547
|
+
function se(g) {
|
|
548
|
+
if (R)
|
|
549
|
+
return g && typeof g == "object" && g instanceof Symbol;
|
|
550
|
+
if (typeof g == "symbol")
|
|
551
551
|
return !0;
|
|
552
|
-
if (!
|
|
552
|
+
if (!g || typeof g != "object" || !k)
|
|
553
553
|
return !1;
|
|
554
554
|
try {
|
|
555
|
-
return
|
|
555
|
+
return k.call(g), !0;
|
|
556
556
|
} catch {
|
|
557
557
|
}
|
|
558
558
|
return !1;
|
|
559
559
|
}
|
|
560
|
-
function ye(
|
|
561
|
-
if (!
|
|
560
|
+
function ye(g) {
|
|
561
|
+
if (!g || typeof g != "object" || !L)
|
|
562
562
|
return !1;
|
|
563
563
|
try {
|
|
564
|
-
return L.call(
|
|
564
|
+
return L.call(g), !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(g) {
|
|
570
|
+
return g in this;
|
|
571
571
|
};
|
|
572
|
-
function J(
|
|
573
|
-
return Se.call(
|
|
574
|
-
}
|
|
575
|
-
function ee(
|
|
576
|
-
return
|
|
577
|
-
}
|
|
578
|
-
function Ie(
|
|
579
|
-
if (
|
|
580
|
-
return
|
|
581
|
-
var
|
|
582
|
-
return
|
|
583
|
-
}
|
|
584
|
-
function xe(
|
|
585
|
-
if (
|
|
586
|
-
return
|
|
587
|
-
for (var D = 0,
|
|
588
|
-
if (
|
|
572
|
+
function J(g, b) {
|
|
573
|
+
return Se.call(g, b);
|
|
574
|
+
}
|
|
575
|
+
function ee(g) {
|
|
576
|
+
return h.call(g);
|
|
577
|
+
}
|
|
578
|
+
function Ie(g) {
|
|
579
|
+
if (g.name)
|
|
580
|
+
return g.name;
|
|
581
|
+
var b = l.call(d.call(g), /^function\s*([\w$]+)/);
|
|
582
|
+
return b ? b[1] : null;
|
|
583
|
+
}
|
|
584
|
+
function xe(g, b) {
|
|
585
|
+
if (g.indexOf)
|
|
586
|
+
return g.indexOf(b);
|
|
587
|
+
for (var D = 0, y = g.length; D < y; D++)
|
|
588
|
+
if (g[D] === b)
|
|
589
589
|
return D;
|
|
590
590
|
return -1;
|
|
591
591
|
}
|
|
592
|
-
function Te(
|
|
593
|
-
if (!
|
|
592
|
+
function Te(g) {
|
|
593
|
+
if (!i || !g || typeof g != "object")
|
|
594
594
|
return !1;
|
|
595
595
|
try {
|
|
596
|
-
|
|
596
|
+
i.call(g);
|
|
597
597
|
try {
|
|
598
|
-
|
|
598
|
+
s.call(g);
|
|
599
599
|
} catch {
|
|
600
600
|
return !0;
|
|
601
601
|
}
|
|
602
|
-
return
|
|
602
|
+
return g instanceof Map;
|
|
603
603
|
} catch {
|
|
604
604
|
}
|
|
605
605
|
return !1;
|
|
606
606
|
}
|
|
607
|
-
function me(
|
|
608
|
-
if (!
|
|
607
|
+
function me(g) {
|
|
608
|
+
if (!p || !g || typeof g != "object")
|
|
609
609
|
return !1;
|
|
610
610
|
try {
|
|
611
|
-
|
|
611
|
+
p.call(g, p);
|
|
612
612
|
try {
|
|
613
|
-
|
|
613
|
+
A.call(g, A);
|
|
614
614
|
} catch {
|
|
615
615
|
return !0;
|
|
616
616
|
}
|
|
617
|
-
return
|
|
617
|
+
return g instanceof WeakMap;
|
|
618
618
|
} catch {
|
|
619
619
|
}
|
|
620
620
|
return !1;
|
|
621
621
|
}
|
|
622
|
-
function Pe(
|
|
623
|
-
if (!o || !
|
|
622
|
+
function Pe(g) {
|
|
623
|
+
if (!o || !g || typeof g != "object")
|
|
624
624
|
return !1;
|
|
625
625
|
try {
|
|
626
|
-
return o.call(
|
|
626
|
+
return o.call(g), !0;
|
|
627
627
|
} catch {
|
|
628
628
|
}
|
|
629
629
|
return !1;
|
|
630
630
|
}
|
|
631
|
-
function
|
|
632
|
-
if (!
|
|
631
|
+
function ke(g) {
|
|
632
|
+
if (!s || !g || typeof g != "object")
|
|
633
633
|
return !1;
|
|
634
634
|
try {
|
|
635
|
-
|
|
635
|
+
s.call(g);
|
|
636
636
|
try {
|
|
637
|
-
|
|
637
|
+
i.call(g);
|
|
638
638
|
} catch {
|
|
639
639
|
return !0;
|
|
640
640
|
}
|
|
641
|
-
return
|
|
641
|
+
return g instanceof Set;
|
|
642
642
|
} catch {
|
|
643
643
|
}
|
|
644
644
|
return !1;
|
|
645
645
|
}
|
|
646
|
-
function
|
|
647
|
-
if (!
|
|
646
|
+
function Re(g) {
|
|
647
|
+
if (!A || !g || typeof g != "object")
|
|
648
648
|
return !1;
|
|
649
649
|
try {
|
|
650
|
-
|
|
650
|
+
A.call(g, A);
|
|
651
651
|
try {
|
|
652
|
-
|
|
652
|
+
p.call(g, p);
|
|
653
653
|
} catch {
|
|
654
654
|
return !0;
|
|
655
655
|
}
|
|
656
|
-
return
|
|
656
|
+
return g instanceof WeakSet;
|
|
657
657
|
} catch {
|
|
658
658
|
}
|
|
659
659
|
return !1;
|
|
660
660
|
}
|
|
661
|
-
function _e(
|
|
662
|
-
return !
|
|
661
|
+
function _e(g) {
|
|
662
|
+
return !g || typeof g != "object" ? !1 : typeof HTMLElement < "u" && g instanceof HTMLElement ? !0 : typeof g.nodeName == "string" && typeof g.getAttribute == "function";
|
|
663
663
|
}
|
|
664
|
-
function Oe(
|
|
665
|
-
if (
|
|
666
|
-
var D =
|
|
667
|
-
return Oe(
|
|
664
|
+
function Oe(g, b) {
|
|
665
|
+
if (g.length > b.maxStringLength) {
|
|
666
|
+
var D = g.length - b.maxStringLength, y = "... " + D + " more character" + (D > 1 ? "s" : "");
|
|
667
|
+
return Oe(v.call(g, 0, b.maxStringLength), b) + y;
|
|
668
668
|
}
|
|
669
|
-
var E = S.call(S.call(
|
|
670
|
-
return
|
|
669
|
+
var E = S.call(S.call(g, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Ne);
|
|
670
|
+
return K(E, "single", b);
|
|
671
671
|
}
|
|
672
|
-
function Ne(
|
|
673
|
-
var
|
|
672
|
+
function Ne(g) {
|
|
673
|
+
var b = g.charCodeAt(0), D = {
|
|
674
674
|
8: "b",
|
|
675
675
|
9: "t",
|
|
676
676
|
10: "n",
|
|
677
677
|
12: "f",
|
|
678
678
|
13: "r"
|
|
679
|
-
}[
|
|
680
|
-
return D ? "\\" + D : "\\x" + (
|
|
679
|
+
}[b];
|
|
680
|
+
return D ? "\\" + D : "\\x" + (b < 16 ? "0" : "") + O.call(b.toString(16));
|
|
681
681
|
}
|
|
682
|
-
function le(
|
|
683
|
-
return "Object(" +
|
|
682
|
+
function le(g) {
|
|
683
|
+
return "Object(" + g + ")";
|
|
684
684
|
}
|
|
685
|
-
function fe(
|
|
686
|
-
return
|
|
685
|
+
function fe(g) {
|
|
686
|
+
return g + " { ? }";
|
|
687
687
|
}
|
|
688
|
-
function we(
|
|
689
|
-
var E =
|
|
690
|
-
return
|
|
688
|
+
function we(g, b, D, y) {
|
|
689
|
+
var E = y ? he(D, y) : M.call(D, ", ");
|
|
690
|
+
return g + " (" + b + ") {" + E + "}";
|
|
691
691
|
}
|
|
692
|
-
function Ce(
|
|
693
|
-
for (var
|
|
694
|
-
if (xe(
|
|
692
|
+
function Ce(g) {
|
|
693
|
+
for (var b = 0; b < g.length; b++)
|
|
694
|
+
if (xe(g[b], `
|
|
695
695
|
`) >= 0)
|
|
696
696
|
return !1;
|
|
697
697
|
return !0;
|
|
698
698
|
}
|
|
699
|
-
function Le(
|
|
699
|
+
function Le(g, b) {
|
|
700
700
|
var D;
|
|
701
|
-
if (
|
|
701
|
+
if (g.indent === " ")
|
|
702
702
|
D = " ";
|
|
703
|
-
else if (typeof
|
|
704
|
-
D = M.call(Array(
|
|
703
|
+
else if (typeof g.indent == "number" && g.indent > 0)
|
|
704
|
+
D = M.call(Array(g.indent + 1), " ");
|
|
705
705
|
else
|
|
706
706
|
return null;
|
|
707
707
|
return {
|
|
708
708
|
base: D,
|
|
709
|
-
prev: M.call(Array(
|
|
709
|
+
prev: M.call(Array(b + 1), D)
|
|
710
710
|
};
|
|
711
711
|
}
|
|
712
|
-
function he(
|
|
713
|
-
if (
|
|
712
|
+
function he(g, b) {
|
|
713
|
+
if (g.length === 0)
|
|
714
714
|
return "";
|
|
715
715
|
var D = `
|
|
716
|
-
` +
|
|
717
|
-
return D + M.call(
|
|
718
|
-
` +
|
|
716
|
+
` + b.prev + b.base;
|
|
717
|
+
return D + M.call(g, "," + D) + `
|
|
718
|
+
` + b.prev;
|
|
719
719
|
}
|
|
720
|
-
function ge(
|
|
721
|
-
var D = re(
|
|
720
|
+
function ge(g, b) {
|
|
721
|
+
var D = re(g), y = [];
|
|
722
722
|
if (D) {
|
|
723
|
-
|
|
724
|
-
for (var E = 0; E <
|
|
725
|
-
|
|
723
|
+
y.length = g.length;
|
|
724
|
+
for (var E = 0; E < g.length; E++)
|
|
725
|
+
y[E] = J(g, E) ? b(g[E], g) : "";
|
|
726
726
|
}
|
|
727
|
-
var
|
|
728
|
-
if (
|
|
727
|
+
var P = typeof F == "function" ? F(g) : [], G;
|
|
728
|
+
if (R) {
|
|
729
729
|
G = {};
|
|
730
|
-
for (var ae = 0; ae <
|
|
731
|
-
G["$" +
|
|
730
|
+
for (var ae = 0; ae < P.length; ae++)
|
|
731
|
+
G["$" + P[ae]] = P[ae];
|
|
732
732
|
}
|
|
733
|
-
for (var
|
|
734
|
-
J(
|
|
733
|
+
for (var W in g)
|
|
734
|
+
J(g, W) && (D && String(Number(W)) === W && W < g.length || R && G["$" + W] instanceof Symbol || (T.call(/[^\w$]/, W) ? y.push(b(W, g) + ": " + b(g[W], g)) : y.push(W + ": " + b(g[W], g))));
|
|
735
735
|
if (typeof F == "function")
|
|
736
|
-
for (var C = 0; C <
|
|
737
|
-
z.call(
|
|
738
|
-
return
|
|
736
|
+
for (var C = 0; C < P.length; C++)
|
|
737
|
+
z.call(g, P[C]) && y.push("[" + b(P[C]) + "]: " + b(g[P[C]], g));
|
|
738
|
+
return y;
|
|
739
739
|
}
|
|
740
740
|
return nr;
|
|
741
741
|
}
|
|
@@ -743,68 +743,68 @@ var ir, Nr;
|
|
|
743
743
|
function st() {
|
|
744
744
|
if (Nr) return ir;
|
|
745
745
|
Nr = 1;
|
|
746
|
-
var e = hr(), r = tt(),
|
|
747
|
-
for (var
|
|
748
|
-
if (S.key ===
|
|
749
|
-
return
|
|
750
|
-
}, o = function(
|
|
751
|
-
var
|
|
752
|
-
return
|
|
753
|
-
},
|
|
754
|
-
var S = u(
|
|
755
|
-
S ? S.value =
|
|
746
|
+
var e = hr(), r = tt(), i = /* @__PURE__ */ ot(), t = e("%TypeError%"), a = e("%WeakMap%", !0), n = e("%Map%", !0), s = r("WeakMap.prototype.get", !0), f = r("WeakMap.prototype.set", !0), c = r("WeakMap.prototype.has", !0), p = r("Map.prototype.get", !0), w = r("Map.prototype.set", !0), A = r("Map.prototype.has", !0), u = function(d, l) {
|
|
747
|
+
for (var v = d, S; (S = v.next) !== null; v = S)
|
|
748
|
+
if (S.key === l)
|
|
749
|
+
return v.next = S.next, S.next = d.next, d.next = S, S;
|
|
750
|
+
}, o = function(d, l) {
|
|
751
|
+
var v = u(d, l);
|
|
752
|
+
return v && v.value;
|
|
753
|
+
}, m = function(d, l, v) {
|
|
754
|
+
var S = u(d, l);
|
|
755
|
+
S ? S.value = v : d.next = {
|
|
756
756
|
// eslint-disable-line no-param-reassign
|
|
757
|
-
key:
|
|
758
|
-
next:
|
|
759
|
-
value:
|
|
757
|
+
key: l,
|
|
758
|
+
next: d.next,
|
|
759
|
+
value: v
|
|
760
760
|
};
|
|
761
|
-
},
|
|
762
|
-
return !!u(
|
|
761
|
+
}, h = function(d, l) {
|
|
762
|
+
return !!u(d, l);
|
|
763
763
|
};
|
|
764
764
|
return ir = function() {
|
|
765
|
-
var
|
|
765
|
+
var l, v, S, O = {
|
|
766
766
|
assert: function(x) {
|
|
767
|
-
if (!
|
|
768
|
-
throw new t("Side channel does not contain " +
|
|
767
|
+
if (!O.has(x))
|
|
768
|
+
throw new t("Side channel does not contain " + i(x));
|
|
769
769
|
},
|
|
770
770
|
get: function(x) {
|
|
771
|
-
if (
|
|
772
|
-
if (
|
|
773
|
-
return
|
|
774
|
-
} else if (
|
|
775
|
-
if (
|
|
776
|
-
return
|
|
771
|
+
if (a && x && (typeof x == "object" || typeof x == "function")) {
|
|
772
|
+
if (l)
|
|
773
|
+
return s(l, x);
|
|
774
|
+
} else if (n) {
|
|
775
|
+
if (v)
|
|
776
|
+
return p(v, x);
|
|
777
777
|
} else if (S)
|
|
778
778
|
return o(S, x);
|
|
779
779
|
},
|
|
780
780
|
has: function(x) {
|
|
781
|
-
if (
|
|
782
|
-
if (
|
|
783
|
-
return
|
|
784
|
-
} else if (
|
|
785
|
-
if (
|
|
786
|
-
return
|
|
781
|
+
if (a && x && (typeof x == "object" || typeof x == "function")) {
|
|
782
|
+
if (l)
|
|
783
|
+
return c(l, x);
|
|
784
|
+
} else if (n) {
|
|
785
|
+
if (v)
|
|
786
|
+
return A(v, x);
|
|
787
787
|
} else if (S)
|
|
788
|
-
return
|
|
788
|
+
return h(S, x);
|
|
789
789
|
return !1;
|
|
790
790
|
},
|
|
791
791
|
set: function(x, T) {
|
|
792
|
-
|
|
792
|
+
a && x && (typeof x == "object" || typeof x == "function") ? (l || (l = new a()), f(l, x, T)) : n ? (v || (v = new n()), w(v, x, T)) : (S || (S = { key: {}, next: null }), m(S, x, T));
|
|
793
793
|
}
|
|
794
794
|
};
|
|
795
|
-
return
|
|
795
|
+
return O;
|
|
796
796
|
}, ir;
|
|
797
797
|
}
|
|
798
798
|
var or, Lr;
|
|
799
799
|
function gr() {
|
|
800
800
|
if (Lr) return or;
|
|
801
801
|
Lr = 1;
|
|
802
|
-
var e = String.prototype.replace, r = /%20/g,
|
|
802
|
+
var e = String.prototype.replace, r = /%20/g, i = {
|
|
803
803
|
RFC1738: "RFC1738",
|
|
804
804
|
RFC3986: "RFC3986"
|
|
805
805
|
};
|
|
806
806
|
return or = {
|
|
807
|
-
default:
|
|
807
|
+
default: i.RFC3986,
|
|
808
808
|
formatters: {
|
|
809
809
|
RFC1738: function(t) {
|
|
810
810
|
return e.call(t, r, "+");
|
|
@@ -813,80 +813,80 @@ function gr() {
|
|
|
813
813
|
return String(t);
|
|
814
814
|
}
|
|
815
815
|
},
|
|
816
|
-
RFC1738:
|
|
817
|
-
RFC3986:
|
|
816
|
+
RFC1738: i.RFC1738,
|
|
817
|
+
RFC3986: i.RFC3986
|
|
818
818
|
}, or;
|
|
819
819
|
}
|
|
820
820
|
var sr, Fr;
|
|
821
|
-
function
|
|
821
|
+
function Kr() {
|
|
822
822
|
if (Fr) return sr;
|
|
823
823
|
Fr = 1;
|
|
824
|
-
var e = gr(), r = Object.prototype.hasOwnProperty,
|
|
825
|
-
for (var
|
|
826
|
-
|
|
827
|
-
return
|
|
828
|
-
})(),
|
|
829
|
-
for (;
|
|
830
|
-
var
|
|
831
|
-
if (
|
|
832
|
-
for (var S = [],
|
|
833
|
-
typeof
|
|
834
|
-
|
|
824
|
+
var e = gr(), r = Object.prototype.hasOwnProperty, i = Array.isArray, t = (function() {
|
|
825
|
+
for (var h = [], d = 0; d < 256; ++d)
|
|
826
|
+
h.push("%" + ((d < 16 ? "0" : "") + d.toString(16)).toUpperCase());
|
|
827
|
+
return h;
|
|
828
|
+
})(), a = function(d) {
|
|
829
|
+
for (; d.length > 1; ) {
|
|
830
|
+
var l = d.pop(), v = l.obj[l.prop];
|
|
831
|
+
if (i(v)) {
|
|
832
|
+
for (var S = [], O = 0; O < v.length; ++O)
|
|
833
|
+
typeof v[O] < "u" && S.push(v[O]);
|
|
834
|
+
l.obj[l.prop] = S;
|
|
835
835
|
}
|
|
836
836
|
}
|
|
837
|
-
},
|
|
838
|
-
for (var
|
|
839
|
-
typeof
|
|
840
|
-
return
|
|
841
|
-
},
|
|
842
|
-
if (!
|
|
843
|
-
return
|
|
844
|
-
if (typeof
|
|
845
|
-
if (
|
|
846
|
-
|
|
847
|
-
else if (
|
|
848
|
-
(
|
|
837
|
+
}, n = function(d, l) {
|
|
838
|
+
for (var v = l && l.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, S = 0; S < d.length; ++S)
|
|
839
|
+
typeof d[S] < "u" && (v[S] = d[S]);
|
|
840
|
+
return v;
|
|
841
|
+
}, s = function h(d, l, v) {
|
|
842
|
+
if (!l)
|
|
843
|
+
return d;
|
|
844
|
+
if (typeof l != "object") {
|
|
845
|
+
if (i(d))
|
|
846
|
+
d.push(l);
|
|
847
|
+
else if (d && typeof d == "object")
|
|
848
|
+
(v && (v.plainObjects || v.allowPrototypes) || !r.call(Object.prototype, l)) && (d[l] = !0);
|
|
849
849
|
else
|
|
850
|
-
return [
|
|
851
|
-
return
|
|
850
|
+
return [d, l];
|
|
851
|
+
return d;
|
|
852
852
|
}
|
|
853
|
-
if (!
|
|
854
|
-
return [
|
|
855
|
-
var S =
|
|
856
|
-
return
|
|
857
|
-
if (r.call(
|
|
858
|
-
var T =
|
|
859
|
-
T && typeof T == "object" &&
|
|
853
|
+
if (!d || typeof d != "object")
|
|
854
|
+
return [d].concat(l);
|
|
855
|
+
var S = d;
|
|
856
|
+
return i(d) && !i(l) && (S = n(d, v)), i(d) && i(l) ? (l.forEach(function(O, x) {
|
|
857
|
+
if (r.call(d, x)) {
|
|
858
|
+
var T = d[x];
|
|
859
|
+
T && typeof T == "object" && O && typeof O == "object" ? d[x] = h(T, O, v) : d.push(O);
|
|
860
860
|
} else
|
|
861
|
-
|
|
862
|
-
}),
|
|
863
|
-
var T =
|
|
864
|
-
return r.call(
|
|
861
|
+
d[x] = O;
|
|
862
|
+
}), d) : Object.keys(l).reduce(function(O, x) {
|
|
863
|
+
var T = l[x];
|
|
864
|
+
return r.call(O, x) ? O[x] = h(O[x], T, v) : O[x] = T, O;
|
|
865
865
|
}, S);
|
|
866
|
-
},
|
|
867
|
-
return Object.keys(
|
|
868
|
-
return
|
|
869
|
-
},
|
|
870
|
-
},
|
|
871
|
-
var
|
|
872
|
-
if (
|
|
873
|
-
return
|
|
866
|
+
}, f = function(d, l) {
|
|
867
|
+
return Object.keys(l).reduce(function(v, S) {
|
|
868
|
+
return v[S] = l[S], v;
|
|
869
|
+
}, d);
|
|
870
|
+
}, c = function(h, d, l) {
|
|
871
|
+
var v = h.replace(/\+/g, " ");
|
|
872
|
+
if (l === "iso-8859-1")
|
|
873
|
+
return v.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
874
874
|
try {
|
|
875
|
-
return decodeURIComponent(
|
|
875
|
+
return decodeURIComponent(v);
|
|
876
876
|
} catch {
|
|
877
|
-
return
|
|
877
|
+
return v;
|
|
878
878
|
}
|
|
879
|
-
},
|
|
880
|
-
if (
|
|
881
|
-
return
|
|
882
|
-
var x =
|
|
883
|
-
if (typeof
|
|
879
|
+
}, p = function(d, l, v, S, O) {
|
|
880
|
+
if (d.length === 0)
|
|
881
|
+
return d;
|
|
882
|
+
var x = d;
|
|
883
|
+
if (typeof d == "symbol" ? x = Symbol.prototype.toString.call(d) : typeof d != "string" && (x = String(d)), v === "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 T = "", 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 || O === e.RFC1738 && (M === 40 || M === 41)) {
|
|
890
890
|
T += x.charAt(N);
|
|
891
891
|
continue;
|
|
892
892
|
}
|
|
@@ -905,58 +905,58 @@ function Wr() {
|
|
|
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
|
-
}, w = function(
|
|
909
|
-
for (var
|
|
910
|
-
for (var
|
|
908
|
+
}, w = function(d) {
|
|
909
|
+
for (var l = [{ obj: { o: d }, prop: "o" }], v = [], S = 0; S < l.length; ++S)
|
|
910
|
+
for (var O = l[S], x = O.obj[O.prop], T = Object.keys(x), N = 0; N < T.length; ++N) {
|
|
911
911
|
var M = T[N], V = x[M];
|
|
912
|
-
typeof V == "object" && V !== null &&
|
|
912
|
+
typeof V == "object" && V !== null && v.indexOf(V) === -1 && (l.push({ obj: x, prop: M }), v.push(V));
|
|
913
913
|
}
|
|
914
|
-
return
|
|
915
|
-
},
|
|
916
|
-
return Object.prototype.toString.call(
|
|
917
|
-
}, u = function(
|
|
918
|
-
return !
|
|
919
|
-
}, o = function(
|
|
920
|
-
return [].concat(
|
|
921
|
-
},
|
|
922
|
-
if (
|
|
923
|
-
for (var
|
|
924
|
-
|
|
925
|
-
return
|
|
914
|
+
return a(l), d;
|
|
915
|
+
}, A = function(d) {
|
|
916
|
+
return Object.prototype.toString.call(d) === "[object RegExp]";
|
|
917
|
+
}, u = function(d) {
|
|
918
|
+
return !d || typeof d != "object" ? !1 : !!(d.constructor && d.constructor.isBuffer && d.constructor.isBuffer(d));
|
|
919
|
+
}, o = function(d, l) {
|
|
920
|
+
return [].concat(d, l);
|
|
921
|
+
}, m = function(d, l) {
|
|
922
|
+
if (i(d)) {
|
|
923
|
+
for (var v = [], S = 0; S < d.length; S += 1)
|
|
924
|
+
v.push(l(d[S]));
|
|
925
|
+
return v;
|
|
926
926
|
}
|
|
927
|
-
return
|
|
927
|
+
return l(d);
|
|
928
928
|
};
|
|
929
929
|
return sr = {
|
|
930
|
-
arrayToObject:
|
|
931
|
-
assign:
|
|
930
|
+
arrayToObject: n,
|
|
931
|
+
assign: f,
|
|
932
932
|
combine: o,
|
|
933
933
|
compact: w,
|
|
934
|
-
decode:
|
|
935
|
-
encode:
|
|
934
|
+
decode: c,
|
|
935
|
+
encode: p,
|
|
936
936
|
isBuffer: u,
|
|
937
|
-
isRegExp:
|
|
938
|
-
maybeMap:
|
|
939
|
-
merge:
|
|
937
|
+
isRegExp: A,
|
|
938
|
+
maybeMap: m,
|
|
939
|
+
merge: s
|
|
940
940
|
}, sr;
|
|
941
941
|
}
|
|
942
942
|
var ur, Ur;
|
|
943
943
|
function ut() {
|
|
944
944
|
if (Ur) return ur;
|
|
945
945
|
Ur = 1;
|
|
946
|
-
var e = st(), r =
|
|
947
|
-
brackets: function(
|
|
948
|
-
return
|
|
946
|
+
var e = st(), r = Kr(), i = gr(), t = Object.prototype.hasOwnProperty, a = {
|
|
947
|
+
brackets: function(l) {
|
|
948
|
+
return l + "[]";
|
|
949
949
|
},
|
|
950
950
|
comma: "comma",
|
|
951
|
-
indices: function(
|
|
952
|
-
return
|
|
951
|
+
indices: function(l, v) {
|
|
952
|
+
return l + "[" + v + "]";
|
|
953
953
|
},
|
|
954
|
-
repeat: function(
|
|
955
|
-
return
|
|
954
|
+
repeat: function(l) {
|
|
955
|
+
return l;
|
|
956
956
|
}
|
|
957
|
-
},
|
|
958
|
-
|
|
959
|
-
},
|
|
957
|
+
}, n = Array.isArray, s = String.prototype.split, f = Array.prototype.push, c = function(d, l) {
|
|
958
|
+
f.apply(d, n(l) ? l : [l]);
|
|
959
|
+
}, p = Date.prototype.toISOString, w = i.default, A = {
|
|
960
960
|
addQueryPrefix: !1,
|
|
961
961
|
allowDots: !1,
|
|
962
962
|
charset: "utf-8",
|
|
@@ -966,19 +966,19 @@ function ut() {
|
|
|
966
966
|
encoder: r.encode,
|
|
967
967
|
encodeValuesOnly: !1,
|
|
968
968
|
format: w,
|
|
969
|
-
formatter:
|
|
969
|
+
formatter: i.formatters[w],
|
|
970
970
|
// deprecated
|
|
971
971
|
indices: !1,
|
|
972
|
-
serializeDate: function(
|
|
973
|
-
return
|
|
972
|
+
serializeDate: function(l) {
|
|
973
|
+
return p.call(l);
|
|
974
974
|
},
|
|
975
975
|
skipNulls: !1,
|
|
976
976
|
strictNullHandling: !1
|
|
977
|
-
}, u = function(
|
|
978
|
-
return typeof
|
|
979
|
-
}, o = {},
|
|
980
|
-
for (var _ =
|
|
981
|
-
var X = Z.get(
|
|
977
|
+
}, u = function(l) {
|
|
978
|
+
return typeof l == "string" || typeof l == "number" || typeof l == "boolean" || typeof l == "symbol" || typeof l == "bigint";
|
|
979
|
+
}, o = {}, m = function d(l, v, S, O, x, T, N, M, V, $, L, F, k, R, U, z) {
|
|
980
|
+
for (var _ = l, Z = z, Q = 0, ne = !1; (Z = Z.get(o)) !== void 0 && !ne; ) {
|
|
981
|
+
var X = Z.get(l);
|
|
982
982
|
if (Q += 1, typeof X < "u") {
|
|
983
983
|
if (X === Q)
|
|
984
984
|
throw new RangeError("Cyclic object value");
|
|
@@ -986,48 +986,48 @@ function ut() {
|
|
|
986
986
|
}
|
|
987
987
|
typeof Z.get(o) > "u" && (Q = 0);
|
|
988
988
|
}
|
|
989
|
-
if (typeof M == "function" ? _ = M(
|
|
989
|
+
if (typeof M == "function" ? _ = M(v, _) : _ instanceof Date ? _ = L(_) : S === "comma" && n(_) && (_ = 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 && !R ? N(v, A.encoder, U, "key", F) : v;
|
|
994
994
|
_ = "";
|
|
995
995
|
}
|
|
996
996
|
if (u(_) || r.isBuffer(_)) {
|
|
997
997
|
if (N) {
|
|
998
|
-
var
|
|
999
|
-
if (S === "comma" &&
|
|
1000
|
-
for (var ie =
|
|
1001
|
-
re += (te === 0 ? "" : ",") +
|
|
1002
|
-
return [
|
|
998
|
+
var K = R ? v : N(v, A.encoder, U, "key", F);
|
|
999
|
+
if (S === "comma" && R) {
|
|
1000
|
+
for (var ie = s.call(String(_), ","), re = "", te = 0; te < ie.length; ++te)
|
|
1001
|
+
re += (te === 0 ? "" : ",") + k(N(ie[te], A.encoder, U, "value", F));
|
|
1002
|
+
return [k(K) + (O && n(_) && ie.length === 1 ? "[]" : "") + "=" + re];
|
|
1003
1003
|
}
|
|
1004
|
-
return [
|
|
1004
|
+
return [k(K) + "=" + k(N(_, A.encoder, U, "value", F))];
|
|
1005
1005
|
}
|
|
1006
|
-
return [
|
|
1006
|
+
return [k(v) + "=" + k(String(_))];
|
|
1007
1007
|
}
|
|
1008
1008
|
var ce = [];
|
|
1009
1009
|
if (typeof _ > "u")
|
|
1010
1010
|
return ce;
|
|
1011
1011
|
var ue;
|
|
1012
|
-
if (S === "comma" &&
|
|
1012
|
+
if (S === "comma" && n(_))
|
|
1013
1013
|
ue = [{ value: _.length > 0 ? _.join(",") || null : void 0 }];
|
|
1014
|
-
else if (
|
|
1014
|
+
else if (n(M))
|
|
1015
1015
|
ue = M;
|
|
1016
1016
|
else {
|
|
1017
1017
|
var oe = Object.keys(_);
|
|
1018
1018
|
ue = V ? oe.sort(V) : oe;
|
|
1019
1019
|
}
|
|
1020
|
-
for (var de =
|
|
1020
|
+
for (var de = O && n(_) && _.length === 1 ? v + "[]" : v, 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 (!(T && ye === null)) {
|
|
1023
|
-
var Se =
|
|
1024
|
-
z.set(
|
|
1023
|
+
var Se = n(_) ? typeof S == "function" ? S(de, se) : de : de + ($ ? "." + se : "[" + se + "]");
|
|
1024
|
+
z.set(l, Q);
|
|
1025
1025
|
var J = e();
|
|
1026
|
-
J.set(o, z),
|
|
1026
|
+
J.set(o, z), c(ce, d(
|
|
1027
1027
|
ye,
|
|
1028
1028
|
Se,
|
|
1029
1029
|
S,
|
|
1030
|
-
|
|
1030
|
+
O,
|
|
1031
1031
|
x,
|
|
1032
1032
|
T,
|
|
1033
1033
|
N,
|
|
@@ -1036,64 +1036,64 @@ function ut() {
|
|
|
1036
1036
|
$,
|
|
1037
1037
|
L,
|
|
1038
1038
|
F,
|
|
1039
|
-
R,
|
|
1040
1039
|
k,
|
|
1040
|
+
R,
|
|
1041
1041
|
U,
|
|
1042
1042
|
J
|
|
1043
1043
|
));
|
|
1044
1044
|
}
|
|
1045
1045
|
}
|
|
1046
1046
|
return ce;
|
|
1047
|
-
},
|
|
1048
|
-
if (!
|
|
1049
|
-
return
|
|
1050
|
-
if (
|
|
1047
|
+
}, h = function(l) {
|
|
1048
|
+
if (!l)
|
|
1049
|
+
return A;
|
|
1050
|
+
if (l.encoder !== null && typeof l.encoder < "u" && typeof l.encoder != "function")
|
|
1051
1051
|
throw new TypeError("Encoder has to be a function.");
|
|
1052
|
-
var
|
|
1053
|
-
if (typeof
|
|
1052
|
+
var v = l.charset || A.charset;
|
|
1053
|
+
if (typeof l.charset < "u" && l.charset !== "utf-8" && l.charset !== "iso-8859-1")
|
|
1054
1054
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
1055
|
-
var S =
|
|
1056
|
-
if (typeof
|
|
1057
|
-
if (!t.call(
|
|
1055
|
+
var S = i.default;
|
|
1056
|
+
if (typeof l.format < "u") {
|
|
1057
|
+
if (!t.call(i.formatters, l.format))
|
|
1058
1058
|
throw new TypeError("Unknown format option provided.");
|
|
1059
|
-
S =
|
|
1059
|
+
S = l.format;
|
|
1060
1060
|
}
|
|
1061
|
-
var
|
|
1062
|
-
return (typeof
|
|
1063
|
-
addQueryPrefix: typeof
|
|
1064
|
-
allowDots: typeof
|
|
1065
|
-
charset:
|
|
1066
|
-
charsetSentinel: typeof
|
|
1067
|
-
delimiter: typeof
|
|
1068
|
-
encode: typeof
|
|
1069
|
-
encoder: typeof
|
|
1070
|
-
encodeValuesOnly: typeof
|
|
1061
|
+
var O = i.formatters[S], x = A.filter;
|
|
1062
|
+
return (typeof l.filter == "function" || n(l.filter)) && (x = l.filter), {
|
|
1063
|
+
addQueryPrefix: typeof l.addQueryPrefix == "boolean" ? l.addQueryPrefix : A.addQueryPrefix,
|
|
1064
|
+
allowDots: typeof l.allowDots > "u" ? A.allowDots : !!l.allowDots,
|
|
1065
|
+
charset: v,
|
|
1066
|
+
charsetSentinel: typeof l.charsetSentinel == "boolean" ? l.charsetSentinel : A.charsetSentinel,
|
|
1067
|
+
delimiter: typeof l.delimiter > "u" ? A.delimiter : l.delimiter,
|
|
1068
|
+
encode: typeof l.encode == "boolean" ? l.encode : A.encode,
|
|
1069
|
+
encoder: typeof l.encoder == "function" ? l.encoder : A.encoder,
|
|
1070
|
+
encodeValuesOnly: typeof l.encodeValuesOnly == "boolean" ? l.encodeValuesOnly : A.encodeValuesOnly,
|
|
1071
1071
|
filter: x,
|
|
1072
1072
|
format: S,
|
|
1073
|
-
formatter:
|
|
1074
|
-
serializeDate: typeof
|
|
1075
|
-
skipNulls: typeof
|
|
1076
|
-
sort: typeof
|
|
1077
|
-
strictNullHandling: typeof
|
|
1073
|
+
formatter: O,
|
|
1074
|
+
serializeDate: typeof l.serializeDate == "function" ? l.serializeDate : A.serializeDate,
|
|
1075
|
+
skipNulls: typeof l.skipNulls == "boolean" ? l.skipNulls : A.skipNulls,
|
|
1076
|
+
sort: typeof l.sort == "function" ? l.sort : null,
|
|
1077
|
+
strictNullHandling: typeof l.strictNullHandling == "boolean" ? l.strictNullHandling : A.strictNullHandling
|
|
1078
1078
|
};
|
|
1079
1079
|
};
|
|
1080
|
-
return ur = function(
|
|
1081
|
-
var
|
|
1082
|
-
typeof S.filter == "function" ? (x = S.filter,
|
|
1080
|
+
return ur = function(d, l) {
|
|
1081
|
+
var v = d, S = h(l), O, x;
|
|
1082
|
+
typeof S.filter == "function" ? (x = S.filter, v = x("", v)) : n(S.filter) && (x = S.filter, O = x);
|
|
1083
1083
|
var T = [];
|
|
1084
|
-
if (typeof
|
|
1084
|
+
if (typeof v != "object" || v === null)
|
|
1085
1085
|
return "";
|
|
1086
1086
|
var N;
|
|
1087
|
-
|
|
1088
|
-
var M =
|
|
1089
|
-
if (
|
|
1087
|
+
l && l.arrayFormat in a ? N = l.arrayFormat : l && "indices" in l ? N = l.indices ? "indices" : "repeat" : N = "indices";
|
|
1088
|
+
var M = a[N];
|
|
1089
|
+
if (l && "commaRoundTrip" in l && typeof l.commaRoundTrip != "boolean")
|
|
1090
1090
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
1091
|
-
var V = M === "comma" &&
|
|
1092
|
-
|
|
1093
|
-
for (var $ = e(), L = 0; L <
|
|
1094
|
-
var F =
|
|
1095
|
-
S.skipNulls &&
|
|
1096
|
-
|
|
1091
|
+
var V = M === "comma" && l && l.commaRoundTrip;
|
|
1092
|
+
O || (O = Object.keys(v)), S.sort && O.sort(S.sort);
|
|
1093
|
+
for (var $ = e(), L = 0; L < O.length; ++L) {
|
|
1094
|
+
var F = O[L];
|
|
1095
|
+
S.skipNulls && v[F] === null || c(T, m(
|
|
1096
|
+
v[F],
|
|
1097
1097
|
F,
|
|
1098
1098
|
M,
|
|
1099
1099
|
V,
|
|
@@ -1111,15 +1111,15 @@ function ut() {
|
|
|
1111
1111
|
$
|
|
1112
1112
|
));
|
|
1113
1113
|
}
|
|
1114
|
-
var
|
|
1115
|
-
return S.charsetSentinel && (S.charset === "iso-8859-1" ?
|
|
1114
|
+
var k = T.join(S.delimiter), R = S.addQueryPrefix === !0 ? "?" : "";
|
|
1115
|
+
return S.charsetSentinel && (S.charset === "iso-8859-1" ? R += "utf8=%26%2310003%3B&" : R += "utf8=%E2%9C%93&"), k.length > 0 ? R + k : "";
|
|
1116
1116
|
}, ur;
|
|
1117
1117
|
}
|
|
1118
1118
|
var cr, $r;
|
|
1119
1119
|
function ct() {
|
|
1120
1120
|
if ($r) return cr;
|
|
1121
1121
|
$r = 1;
|
|
1122
|
-
var e =
|
|
1122
|
+
var e = Kr(), r = Object.prototype.hasOwnProperty, i = Array.isArray, t = {
|
|
1123
1123
|
allowDots: !1,
|
|
1124
1124
|
allowPrototypes: !1,
|
|
1125
1125
|
allowSparse: !1,
|
|
@@ -1136,70 +1136,70 @@ function ct() {
|
|
|
1136
1136
|
parseArrays: !0,
|
|
1137
1137
|
plainObjects: !1,
|
|
1138
1138
|
strictNullHandling: !1
|
|
1139
|
-
},
|
|
1140
|
-
return u.replace(/&#(\d+);/g, function(o,
|
|
1141
|
-
return String.fromCharCode(parseInt(
|
|
1139
|
+
}, a = function(u) {
|
|
1140
|
+
return u.replace(/&#(\d+);/g, function(o, m) {
|
|
1141
|
+
return String.fromCharCode(parseInt(m, 10));
|
|
1142
1142
|
});
|
|
1143
|
-
},
|
|
1143
|
+
}, n = function(u, o) {
|
|
1144
1144
|
return u && typeof u == "string" && o.comma && u.indexOf(",") > -1 ? u.split(",") : u;
|
|
1145
|
-
},
|
|
1146
|
-
var
|
|
1147
|
-
if (
|
|
1148
|
-
for (
|
|
1149
|
-
|
|
1150
|
-
for (
|
|
1151
|
-
if (
|
|
1152
|
-
var T =
|
|
1153
|
-
M === -1 ? (V =
|
|
1154
|
-
|
|
1145
|
+
}, s = "utf8=%26%2310003%3B", f = "utf8=%E2%9C%93", c = function(o, m) {
|
|
1146
|
+
var h = {}, d = m.ignoreQueryPrefix ? o.replace(/^\?/, "") : o, l = m.parameterLimit === 1 / 0 ? void 0 : m.parameterLimit, v = d.split(m.delimiter, l), S = -1, O, x = m.charset;
|
|
1147
|
+
if (m.charsetSentinel)
|
|
1148
|
+
for (O = 0; O < v.length; ++O)
|
|
1149
|
+
v[O].indexOf("utf8=") === 0 && (v[O] === f ? x = "utf-8" : v[O] === s && (x = "iso-8859-1"), S = O, O = v.length);
|
|
1150
|
+
for (O = 0; O < v.length; ++O)
|
|
1151
|
+
if (O !== S) {
|
|
1152
|
+
var T = v[O], N = T.indexOf("]="), M = N === -1 ? T.indexOf("=") : N + 1, V, $;
|
|
1153
|
+
M === -1 ? (V = m.decoder(T, t.decoder, x, "key"), $ = m.strictNullHandling ? null : "") : (V = m.decoder(T.slice(0, M), t.decoder, x, "key"), $ = e.maybeMap(
|
|
1154
|
+
n(T.slice(M + 1), m),
|
|
1155
1155
|
function(L) {
|
|
1156
|
-
return
|
|
1156
|
+
return m.decoder(L, t.decoder, x, "value");
|
|
1157
1157
|
}
|
|
1158
|
-
)), $ &&
|
|
1158
|
+
)), $ && m.interpretNumericEntities && x === "iso-8859-1" && ($ = a($)), T.indexOf("[]=") > -1 && ($ = i($) ? [$] : $), r.call(h, V) ? h[V] = e.combine(h[V], $) : h[V] = $;
|
|
1159
1159
|
}
|
|
1160
|
-
return
|
|
1161
|
-
},
|
|
1162
|
-
for (var
|
|
1163
|
-
var
|
|
1164
|
-
if (S === "[]" &&
|
|
1165
|
-
|
|
1160
|
+
return h;
|
|
1161
|
+
}, p = function(u, o, m, h) {
|
|
1162
|
+
for (var d = h ? o : n(o, m), l = u.length - 1; l >= 0; --l) {
|
|
1163
|
+
var v, S = u[l];
|
|
1164
|
+
if (S === "[]" && m.parseArrays)
|
|
1165
|
+
v = [].concat(d);
|
|
1166
1166
|
else {
|
|
1167
|
-
|
|
1168
|
-
var
|
|
1169
|
-
!
|
|
1167
|
+
v = m.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
1168
|
+
var O = S.charAt(0) === "[" && S.charAt(S.length - 1) === "]" ? S.slice(1, -1) : S, x = parseInt(O, 10);
|
|
1169
|
+
!m.parseArrays && O === "" ? v = { 0: d } : !isNaN(x) && S !== O && String(x) === O && x >= 0 && m.parseArrays && x <= m.arrayLimit ? (v = [], v[x] = d) : O !== "__proto__" && (v[O] = d);
|
|
1170
1170
|
}
|
|
1171
|
-
|
|
1171
|
+
d = v;
|
|
1172
1172
|
}
|
|
1173
|
-
return
|
|
1174
|
-
}, w = function(o,
|
|
1173
|
+
return d;
|
|
1174
|
+
}, w = function(o, m, h, d) {
|
|
1175
1175
|
if (o) {
|
|
1176
|
-
var
|
|
1176
|
+
var l = h.allowDots ? o.replace(/\.([^.[]+)/g, "[$1]") : o, v = /(\[[^[\]]*])/, S = /(\[[^[\]]*])/g, O = h.depth > 0 && v.exec(l), x = O ? l.slice(0, O.index) : l, T = [];
|
|
1177
1177
|
if (x) {
|
|
1178
|
-
if (!
|
|
1178
|
+
if (!h.plainObjects && r.call(Object.prototype, x) && !h.allowPrototypes)
|
|
1179
1179
|
return;
|
|
1180
1180
|
T.push(x);
|
|
1181
1181
|
}
|
|
1182
|
-
for (var N = 0;
|
|
1183
|
-
if (N += 1, !
|
|
1182
|
+
for (var N = 0; h.depth > 0 && (O = S.exec(l)) !== null && N < h.depth; ) {
|
|
1183
|
+
if (N += 1, !h.plainObjects && r.call(Object.prototype, O[1].slice(1, -1)) && !h.allowPrototypes)
|
|
1184
1184
|
return;
|
|
1185
|
-
T.push(
|
|
1185
|
+
T.push(O[1]);
|
|
1186
1186
|
}
|
|
1187
|
-
return
|
|
1187
|
+
return O && T.push("[" + l.slice(O.index) + "]"), p(T, m, h, d);
|
|
1188
1188
|
}
|
|
1189
|
-
},
|
|
1189
|
+
}, A = function(o) {
|
|
1190
1190
|
if (!o)
|
|
1191
1191
|
return t;
|
|
1192
1192
|
if (o.decoder !== null && o.decoder !== void 0 && typeof o.decoder != "function")
|
|
1193
1193
|
throw new TypeError("Decoder has to be a function.");
|
|
1194
1194
|
if (typeof o.charset < "u" && o.charset !== "utf-8" && o.charset !== "iso-8859-1")
|
|
1195
1195
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
1196
|
-
var
|
|
1196
|
+
var m = typeof o.charset > "u" ? t.charset : o.charset;
|
|
1197
1197
|
return {
|
|
1198
1198
|
allowDots: typeof o.allowDots > "u" ? t.allowDots : !!o.allowDots,
|
|
1199
1199
|
allowPrototypes: typeof o.allowPrototypes == "boolean" ? o.allowPrototypes : t.allowPrototypes,
|
|
1200
1200
|
allowSparse: typeof o.allowSparse == "boolean" ? o.allowSparse : t.allowSparse,
|
|
1201
1201
|
arrayLimit: typeof o.arrayLimit == "number" ? o.arrayLimit : t.arrayLimit,
|
|
1202
|
-
charset:
|
|
1202
|
+
charset: m,
|
|
1203
1203
|
charsetSentinel: typeof o.charsetSentinel == "boolean" ? o.charsetSentinel : t.charsetSentinel,
|
|
1204
1204
|
comma: typeof o.comma == "boolean" ? o.comma : t.comma,
|
|
1205
1205
|
decoder: typeof o.decoder == "function" ? o.decoder : t.decoder,
|
|
@@ -1215,133 +1215,133 @@ function ct() {
|
|
|
1215
1215
|
};
|
|
1216
1216
|
};
|
|
1217
1217
|
return cr = function(u, o) {
|
|
1218
|
-
var
|
|
1218
|
+
var m = A(o);
|
|
1219
1219
|
if (u === "" || u === null || typeof u > "u")
|
|
1220
|
-
return
|
|
1221
|
-
for (var
|
|
1222
|
-
var S =
|
|
1223
|
-
|
|
1220
|
+
return m.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
1221
|
+
for (var h = typeof u == "string" ? c(u, m) : u, d = m.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, l = Object.keys(h), v = 0; v < l.length; ++v) {
|
|
1222
|
+
var S = l[v], O = w(S, h[S], m, typeof u == "string");
|
|
1223
|
+
d = e.merge(d, O, m);
|
|
1224
1224
|
}
|
|
1225
|
-
return
|
|
1225
|
+
return m.allowSparse === !0 ? d : e.compact(d);
|
|
1226
1226
|
}, cr;
|
|
1227
1227
|
}
|
|
1228
1228
|
var lr, Br;
|
|
1229
1229
|
function lt() {
|
|
1230
1230
|
if (Br) return lr;
|
|
1231
1231
|
Br = 1;
|
|
1232
|
-
var e = ut(), r = ct(),
|
|
1232
|
+
var e = ut(), r = ct(), i = gr();
|
|
1233
1233
|
return lr = {
|
|
1234
|
-
formats:
|
|
1234
|
+
formats: i,
|
|
1235
1235
|
parse: r,
|
|
1236
1236
|
stringify: e
|
|
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.10", pt = Ae.CancelToken;
|
|
1241
1241
|
var mt = function(e) {
|
|
1242
1242
|
var r;
|
|
1243
1243
|
typeof window < "u" && (r = e.cache.get("api"));
|
|
1244
|
-
const
|
|
1245
|
-
function t(
|
|
1246
|
-
var
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1244
|
+
const i = Ae.getAdapter(Ae.defaults.adapter);
|
|
1245
|
+
function t(c) {
|
|
1246
|
+
var p = [
|
|
1247
|
+
c.method,
|
|
1248
|
+
c.url,
|
|
1249
|
+
c.headers?.Authorization,
|
|
1250
|
+
c.headers.Accept,
|
|
1251
1251
|
JSON.stringify({
|
|
1252
|
-
params:
|
|
1253
|
-
data:
|
|
1252
|
+
params: c.params,
|
|
1253
|
+
data: c.data
|
|
1254
1254
|
})
|
|
1255
1255
|
].filter(Boolean).join("-");
|
|
1256
|
-
return
|
|
1256
|
+
return p;
|
|
1257
1257
|
}
|
|
1258
|
-
const
|
|
1259
|
-
var
|
|
1260
|
-
return
|
|
1258
|
+
const a = {}, s = f(function(c) {
|
|
1259
|
+
var p = t(c);
|
|
1260
|
+
return a[p] || (a[p] = new Promise(function(w, A) {
|
|
1261
1261
|
var u, o;
|
|
1262
|
-
switch (String(
|
|
1262
|
+
switch (String(c.method).toLowerCase()) {
|
|
1263
1263
|
case "post":
|
|
1264
1264
|
case "patch":
|
|
1265
1265
|
case "put":
|
|
1266
1266
|
case "delete":
|
|
1267
|
-
|
|
1267
|
+
c.cache || (c.cache = !1);
|
|
1268
1268
|
break;
|
|
1269
1269
|
}
|
|
1270
|
-
return
|
|
1271
|
-
function(
|
|
1272
|
-
delete
|
|
1270
|
+
return c.cache === !1 || (u = c.cache || r, u && (o = u.get(p))), o ? w(o) : (Object.assign(c, { adapter: i }), Ae.request(c).then(
|
|
1271
|
+
function(m) {
|
|
1272
|
+
delete a[p], w(m);
|
|
1273
1273
|
},
|
|
1274
|
-
function(
|
|
1275
|
-
delete
|
|
1274
|
+
function(m) {
|
|
1275
|
+
delete a[p], A(m);
|
|
1276
1276
|
}
|
|
1277
1277
|
));
|
|
1278
|
-
})),
|
|
1278
|
+
})), a[p];
|
|
1279
1279
|
});
|
|
1280
|
-
|
|
1281
|
-
w = w || {},
|
|
1282
|
-
var
|
|
1280
|
+
s.generateEndpointURL = function(c, p, w) {
|
|
1281
|
+
w = w || {}, p = p || {};
|
|
1282
|
+
var A;
|
|
1283
1283
|
const u = w.file && e.fileAPI || e.apiURL;
|
|
1284
|
-
w.withoutToken || (delete
|
|
1285
|
-
var o = e.utils.mapParameters(
|
|
1286
|
-
|
|
1287
|
-
var
|
|
1288
|
-
return
|
|
1289
|
-
},
|
|
1290
|
-
return Ae.isCancel(
|
|
1284
|
+
w.withoutToken || (delete p.access_token, A = e.auth.getCurrentToken()), c[0] == "/" && c.slice(1);
|
|
1285
|
+
var o = e.utils.mapParameters(p);
|
|
1286
|
+
A ? o = o ? `?access_token=${A}&${o}` : `?access_token=${A}` : o = o ? `?${o}` : "";
|
|
1287
|
+
var m = `${u}${c}${o}`;
|
|
1288
|
+
return m;
|
|
1289
|
+
}, s.wasCancelled = function(c) {
|
|
1290
|
+
return Ae.isCancel(c);
|
|
1291
1291
|
};
|
|
1292
|
-
function
|
|
1293
|
-
var
|
|
1292
|
+
function f(c) {
|
|
1293
|
+
var p = Ae.create({
|
|
1294
1294
|
paramsSerializer: {
|
|
1295
|
-
serialize: (
|
|
1295
|
+
serialize: (A) => dt.stringify(A, { arrayFormat: "repeat" })
|
|
1296
1296
|
},
|
|
1297
|
-
adapter:
|
|
1297
|
+
adapter: c
|
|
1298
1298
|
});
|
|
1299
|
-
|
|
1300
|
-
if (t(
|
|
1301
|
-
return
|
|
1302
|
-
if (
|
|
1299
|
+
p.defaults.baseURL = e.apiURL, p.defaults.headers.common.Accept = "application/json", p.interceptors.request.use(function(A) {
|
|
1300
|
+
if (t(A), A.withoutToken)
|
|
1301
|
+
return A;
|
|
1302
|
+
if (A.headers["qik-request-date"] = (/* @__PURE__ */ new Date()).getTime(), Intl) {
|
|
1303
1303
|
const o = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
1304
|
-
o && (
|
|
1304
|
+
o && (A.headers["qik-request-timezone"] = o);
|
|
1305
1305
|
}
|
|
1306
|
-
|
|
1306
|
+
A.headers["qik-api-version"] = vr, e?.socket?.windowID && (A.headers["qik-socket-window"] = e.socket.windowID);
|
|
1307
1307
|
var u = e.auth.getCurrentToken();
|
|
1308
|
-
return u && (
|
|
1308
|
+
return u && (A.headers.Authorization = `Bearer ${u}`, A.params && A.params.access_token && delete A.params.access_token), A;
|
|
1309
1309
|
});
|
|
1310
1310
|
let w = 0;
|
|
1311
|
-
return
|
|
1312
|
-
function(
|
|
1313
|
-
var u =
|
|
1311
|
+
return p.interceptors.response.use(
|
|
1312
|
+
function(A) {
|
|
1313
|
+
var u = A.config, o = A.status;
|
|
1314
1314
|
switch (o) {
|
|
1315
1315
|
case 204:
|
|
1316
1316
|
if (w < 5)
|
|
1317
|
-
return w++, new Promise(function(
|
|
1317
|
+
return w++, new Promise(function(m, h) {
|
|
1318
1318
|
setTimeout(function() {
|
|
1319
|
-
return
|
|
1319
|
+
return p.request(u).then(m, h);
|
|
1320
1320
|
}, 800);
|
|
1321
1321
|
});
|
|
1322
1322
|
console.log("Failed after 5 retries"), w = 0;
|
|
1323
1323
|
break;
|
|
1324
1324
|
}
|
|
1325
|
-
return
|
|
1325
|
+
return A;
|
|
1326
1326
|
},
|
|
1327
|
-
function(
|
|
1328
|
-
if (Ae.isCancel(
|
|
1329
|
-
return Promise.reject(
|
|
1330
|
-
var u =
|
|
1327
|
+
function(A) {
|
|
1328
|
+
if (Ae.isCancel(A))
|
|
1329
|
+
return Promise.reject(A);
|
|
1330
|
+
var u = A?.response?.status || A.status;
|
|
1331
1331
|
switch (u) {
|
|
1332
1332
|
case 401:
|
|
1333
1333
|
break;
|
|
1334
1334
|
case 429: {
|
|
1335
|
-
var o =
|
|
1335
|
+
var o = A.config || {};
|
|
1336
1336
|
if (o.__retry429 = (o.__retry429 || 0) + 1, o.__retry429 <= 3) {
|
|
1337
|
-
var
|
|
1338
|
-
|
|
1337
|
+
var m = parseInt(
|
|
1338
|
+
A?.response?.headers?.["retry-after"],
|
|
1339
1339
|
10
|
|
1340
|
-
),
|
|
1341
|
-
return new Promise(function(
|
|
1340
|
+
), h = Number.isFinite(m) ? m * 1e3 : 800 * o.__retry429, d = Math.floor(Math.random() * 500);
|
|
1341
|
+
return new Promise(function(l, v) {
|
|
1342
1342
|
setTimeout(function() {
|
|
1343
|
-
return
|
|
1344
|
-
},
|
|
1343
|
+
return p.request(o).then(l, v);
|
|
1344
|
+
}, h + d);
|
|
1345
1345
|
});
|
|
1346
1346
|
}
|
|
1347
1347
|
break;
|
|
@@ -1349,241 +1349,241 @@ var mt = function(e) {
|
|
|
1349
1349
|
case 502:
|
|
1350
1350
|
case 504:
|
|
1351
1351
|
if (w < 5)
|
|
1352
|
-
return w++, new Promise(function(
|
|
1352
|
+
return w++, new Promise(function(l, v) {
|
|
1353
1353
|
setTimeout(function() {
|
|
1354
|
-
return
|
|
1354
|
+
return p.request(A.config).then(l, v);
|
|
1355
1355
|
}, 800);
|
|
1356
1356
|
});
|
|
1357
1357
|
console.log("Failed after 5 retries"), w = 0;
|
|
1358
1358
|
break;
|
|
1359
1359
|
}
|
|
1360
|
-
return Promise.reject(
|
|
1360
|
+
return Promise.reject(A);
|
|
1361
1361
|
}
|
|
1362
|
-
),
|
|
1362
|
+
), p;
|
|
1363
1363
|
}
|
|
1364
|
-
return
|
|
1364
|
+
return s.CancelToken = pt, s.axios = Ae, s;
|
|
1365
1365
|
}, fr, Gr;
|
|
1366
1366
|
function yt() {
|
|
1367
1367
|
if (Gr) return fr;
|
|
1368
1368
|
Gr = 1;
|
|
1369
|
-
var e = "Expected a function", r = "__lodash_hash_undefined__",
|
|
1370
|
-
function
|
|
1371
|
-
return
|
|
1369
|
+
var e = "Expected a function", r = "__lodash_hash_undefined__", i = "[object Function]", t = "[object GeneratorFunction]", a = "[object Symbol]", n = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, s = /^\w*$/, f = /^\./, c = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, p = /[\\^$.*+?()[\]{}|]/g, w = /\\(\\)?/g, A = /^\[object .+?Constructor\]$/, u = typeof be == "object" && be && be.Object === Object && be, o = typeof self == "object" && self && self.Object === Object && self, m = u || o || Function("return this")();
|
|
1370
|
+
function h(y, E) {
|
|
1371
|
+
return y?.[E];
|
|
1372
1372
|
}
|
|
1373
|
-
function
|
|
1373
|
+
function d(y) {
|
|
1374
1374
|
var E = !1;
|
|
1375
|
-
if (
|
|
1375
|
+
if (y != null && typeof y.toString != "function")
|
|
1376
1376
|
try {
|
|
1377
|
-
E = !!(
|
|
1377
|
+
E = !!(y + "");
|
|
1378
1378
|
} catch {
|
|
1379
1379
|
}
|
|
1380
1380
|
return E;
|
|
1381
1381
|
}
|
|
1382
|
-
var
|
|
1383
|
-
var
|
|
1384
|
-
return
|
|
1385
|
-
})(), T =
|
|
1386
|
-
"^" + T.call(N).replace(
|
|
1387
|
-
), $ =
|
|
1388
|
-
function z(
|
|
1389
|
-
var E = -1,
|
|
1390
|
-
for (this.clear(); ++E <
|
|
1391
|
-
var G =
|
|
1382
|
+
var l = Array.prototype, v = Function.prototype, S = Object.prototype, O = m["__core-js_shared__"], x = (function() {
|
|
1383
|
+
var y = /[^.]+$/.exec(O && O.keys && O.keys.IE_PROTO || "");
|
|
1384
|
+
return y ? "Symbol(src)_1." + y : "";
|
|
1385
|
+
})(), T = v.toString, N = S.hasOwnProperty, M = S.toString, V = RegExp(
|
|
1386
|
+
"^" + T.call(N).replace(p, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1387
|
+
), $ = m.Symbol, L = l.splice, F = Pe(m, "Map"), k = Pe(Object, "create"), R = $ ? $.prototype : void 0, U = R ? R.toString : void 0;
|
|
1388
|
+
function z(y) {
|
|
1389
|
+
var E = -1, P = y ? y.length : 0;
|
|
1390
|
+
for (this.clear(); ++E < P; ) {
|
|
1391
|
+
var G = y[E];
|
|
1392
1392
|
this.set(G[0], G[1]);
|
|
1393
1393
|
}
|
|
1394
1394
|
}
|
|
1395
1395
|
function _() {
|
|
1396
|
-
this.__data__ =
|
|
1396
|
+
this.__data__ = k ? k(null) : {};
|
|
1397
1397
|
}
|
|
1398
|
-
function Z(
|
|
1399
|
-
return this.has(
|
|
1398
|
+
function Z(y) {
|
|
1399
|
+
return this.has(y) && delete this.__data__[y];
|
|
1400
1400
|
}
|
|
1401
|
-
function Q(
|
|
1401
|
+
function Q(y) {
|
|
1402
1402
|
var E = this.__data__;
|
|
1403
|
-
if (
|
|
1404
|
-
var
|
|
1405
|
-
return
|
|
1403
|
+
if (k) {
|
|
1404
|
+
var P = E[y];
|
|
1405
|
+
return P === r ? void 0 : P;
|
|
1406
1406
|
}
|
|
1407
|
-
return N.call(E,
|
|
1407
|
+
return N.call(E, y) ? E[y] : void 0;
|
|
1408
1408
|
}
|
|
1409
|
-
function ne(
|
|
1409
|
+
function ne(y) {
|
|
1410
1410
|
var E = this.__data__;
|
|
1411
|
-
return
|
|
1411
|
+
return k ? E[y] !== void 0 : N.call(E, y);
|
|
1412
1412
|
}
|
|
1413
|
-
function X(
|
|
1414
|
-
var
|
|
1415
|
-
return
|
|
1413
|
+
function X(y, E) {
|
|
1414
|
+
var P = this.__data__;
|
|
1415
|
+
return P[y] = k && 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
|
-
function
|
|
1419
|
-
var E = -1,
|
|
1420
|
-
for (this.clear(); ++E <
|
|
1421
|
-
var G =
|
|
1418
|
+
function K(y) {
|
|
1419
|
+
var E = -1, P = y ? y.length : 0;
|
|
1420
|
+
for (this.clear(); ++E < P; ) {
|
|
1421
|
+
var G = y[E];
|
|
1422
1422
|
this.set(G[0], G[1]);
|
|
1423
1423
|
}
|
|
1424
1424
|
}
|
|
1425
1425
|
function ie() {
|
|
1426
1426
|
this.__data__ = [];
|
|
1427
1427
|
}
|
|
1428
|
-
function re(
|
|
1429
|
-
var E = this.__data__,
|
|
1430
|
-
if (
|
|
1428
|
+
function re(y) {
|
|
1429
|
+
var E = this.__data__, P = J(E, y);
|
|
1430
|
+
if (P < 0)
|
|
1431
1431
|
return !1;
|
|
1432
1432
|
var G = E.length - 1;
|
|
1433
|
-
return
|
|
1433
|
+
return P == G ? E.pop() : L.call(E, P, 1), !0;
|
|
1434
1434
|
}
|
|
1435
|
-
function te(
|
|
1436
|
-
var E = this.__data__,
|
|
1437
|
-
return
|
|
1435
|
+
function te(y) {
|
|
1436
|
+
var E = this.__data__, P = J(E, y);
|
|
1437
|
+
return P < 0 ? void 0 : E[P][1];
|
|
1438
1438
|
}
|
|
1439
|
-
function ce(
|
|
1440
|
-
return J(this.__data__,
|
|
1439
|
+
function ce(y) {
|
|
1440
|
+
return J(this.__data__, y) > -1;
|
|
1441
1441
|
}
|
|
1442
|
-
function ue(
|
|
1443
|
-
var
|
|
1444
|
-
return G < 0 ?
|
|
1442
|
+
function ue(y, E) {
|
|
1443
|
+
var P = this.__data__, G = J(P, y);
|
|
1444
|
+
return G < 0 ? P.push([y, E]) : P[G][1] = E, this;
|
|
1445
1445
|
}
|
|
1446
|
-
|
|
1447
|
-
function oe(
|
|
1448
|
-
var E = -1,
|
|
1449
|
-
for (this.clear(); ++E <
|
|
1450
|
-
var G =
|
|
1446
|
+
K.prototype.clear = ie, K.prototype.delete = re, K.prototype.get = te, K.prototype.has = ce, K.prototype.set = ue;
|
|
1447
|
+
function oe(y) {
|
|
1448
|
+
var E = -1, P = y ? y.length : 0;
|
|
1449
|
+
for (this.clear(); ++E < P; ) {
|
|
1450
|
+
var G = y[E];
|
|
1451
1451
|
this.set(G[0], G[1]);
|
|
1452
1452
|
}
|
|
1453
1453
|
}
|
|
1454
1454
|
function de() {
|
|
1455
1455
|
this.__data__ = {
|
|
1456
1456
|
hash: new z(),
|
|
1457
|
-
map: new (F ||
|
|
1457
|
+
map: new (F || K)(),
|
|
1458
1458
|
string: new z()
|
|
1459
1459
|
};
|
|
1460
1460
|
}
|
|
1461
|
-
function pe(
|
|
1462
|
-
return me(this,
|
|
1461
|
+
function pe(y) {
|
|
1462
|
+
return me(this, y).delete(y);
|
|
1463
1463
|
}
|
|
1464
|
-
function se(
|
|
1465
|
-
return me(this,
|
|
1464
|
+
function se(y) {
|
|
1465
|
+
return me(this, y).get(y);
|
|
1466
1466
|
}
|
|
1467
|
-
function ye(
|
|
1468
|
-
return me(this,
|
|
1467
|
+
function ye(y) {
|
|
1468
|
+
return me(this, y).has(y);
|
|
1469
1469
|
}
|
|
1470
|
-
function Se(
|
|
1471
|
-
return me(this,
|
|
1470
|
+
function Se(y, E) {
|
|
1471
|
+
return me(this, y).set(y, E), this;
|
|
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
|
-
function J(
|
|
1475
|
-
for (var
|
|
1476
|
-
if (we(
|
|
1477
|
-
return
|
|
1474
|
+
function J(y, E) {
|
|
1475
|
+
for (var P = y.length; P--; )
|
|
1476
|
+
if (we(y[P][0], E))
|
|
1477
|
+
return P;
|
|
1478
1478
|
return -1;
|
|
1479
1479
|
}
|
|
1480
|
-
function ee(
|
|
1481
|
-
E =
|
|
1482
|
-
for (var
|
|
1483
|
-
|
|
1484
|
-
return
|
|
1480
|
+
function ee(y, E) {
|
|
1481
|
+
E = ke(E, y) ? [E] : Te(E);
|
|
1482
|
+
for (var P = 0, G = E.length; y != null && P < G; )
|
|
1483
|
+
y = y[Ne(E[P++])];
|
|
1484
|
+
return P && P == G ? y : void 0;
|
|
1485
1485
|
}
|
|
1486
|
-
function Ie(
|
|
1487
|
-
if (!he(
|
|
1486
|
+
function Ie(y) {
|
|
1487
|
+
if (!he(y) || _e(y))
|
|
1488
1488
|
return !1;
|
|
1489
|
-
var E = Le(
|
|
1490
|
-
return E.test(le(
|
|
1491
|
-
}
|
|
1492
|
-
function xe(
|
|
1493
|
-
if (typeof
|
|
1494
|
-
return
|
|
1495
|
-
if (
|
|
1496
|
-
return U ? U.call(
|
|
1497
|
-
var E =
|
|
1498
|
-
return E == "0" && 1 /
|
|
1499
|
-
}
|
|
1500
|
-
function Te(
|
|
1501
|
-
return Ce(
|
|
1502
|
-
}
|
|
1503
|
-
function me(
|
|
1504
|
-
var
|
|
1505
|
-
return
|
|
1506
|
-
}
|
|
1507
|
-
function Pe(
|
|
1508
|
-
var
|
|
1509
|
-
return Ie(
|
|
1510
|
-
}
|
|
1511
|
-
function
|
|
1512
|
-
if (Ce(
|
|
1489
|
+
var E = Le(y) || d(y) ? V : A;
|
|
1490
|
+
return E.test(le(y));
|
|
1491
|
+
}
|
|
1492
|
+
function xe(y) {
|
|
1493
|
+
if (typeof y == "string")
|
|
1494
|
+
return y;
|
|
1495
|
+
if (g(y))
|
|
1496
|
+
return U ? U.call(y) : "";
|
|
1497
|
+
var E = y + "";
|
|
1498
|
+
return E == "0" && 1 / y == -1 / 0 ? "-0" : E;
|
|
1499
|
+
}
|
|
1500
|
+
function Te(y) {
|
|
1501
|
+
return Ce(y) ? y : Oe(y);
|
|
1502
|
+
}
|
|
1503
|
+
function me(y, E) {
|
|
1504
|
+
var P = y.__data__;
|
|
1505
|
+
return Re(E) ? P[typeof E == "string" ? "string" : "hash"] : P.map;
|
|
1506
|
+
}
|
|
1507
|
+
function Pe(y, E) {
|
|
1508
|
+
var P = h(y, E);
|
|
1509
|
+
return Ie(P) ? P : void 0;
|
|
1510
|
+
}
|
|
1511
|
+
function ke(y, E) {
|
|
1512
|
+
if (Ce(y))
|
|
1513
1513
|
return !1;
|
|
1514
|
-
var
|
|
1515
|
-
return
|
|
1514
|
+
var P = typeof y;
|
|
1515
|
+
return P == "number" || P == "symbol" || P == "boolean" || y == null || g(y) ? !0 : s.test(y) || !n.test(y) || E != null && y in Object(E);
|
|
1516
1516
|
}
|
|
1517
|
-
function
|
|
1518
|
-
var E = typeof
|
|
1519
|
-
return E == "string" || E == "number" || E == "symbol" || E == "boolean" ?
|
|
1517
|
+
function Re(y) {
|
|
1518
|
+
var E = typeof y;
|
|
1519
|
+
return E == "string" || E == "number" || E == "symbol" || E == "boolean" ? y !== "__proto__" : y === null;
|
|
1520
1520
|
}
|
|
1521
|
-
function _e(
|
|
1522
|
-
return !!x && x in
|
|
1521
|
+
function _e(y) {
|
|
1522
|
+
return !!x && x in y;
|
|
1523
1523
|
}
|
|
1524
|
-
var Oe = fe(function(
|
|
1525
|
-
|
|
1524
|
+
var Oe = fe(function(y) {
|
|
1525
|
+
y = b(y);
|
|
1526
1526
|
var E = [];
|
|
1527
|
-
return
|
|
1528
|
-
E.push(ae ?
|
|
1527
|
+
return f.test(y) && E.push(""), y.replace(c, function(P, G, ae, W) {
|
|
1528
|
+
E.push(ae ? W.replace(w, "$1") : G || P);
|
|
1529
1529
|
}), E;
|
|
1530
1530
|
});
|
|
1531
|
-
function Ne(
|
|
1532
|
-
if (typeof
|
|
1533
|
-
return
|
|
1534
|
-
var E =
|
|
1535
|
-
return E == "0" && 1 /
|
|
1536
|
-
}
|
|
1537
|
-
function le(
|
|
1538
|
-
if (
|
|
1531
|
+
function Ne(y) {
|
|
1532
|
+
if (typeof y == "string" || g(y))
|
|
1533
|
+
return y;
|
|
1534
|
+
var E = y + "";
|
|
1535
|
+
return E == "0" && 1 / y == -1 / 0 ? "-0" : E;
|
|
1536
|
+
}
|
|
1537
|
+
function le(y) {
|
|
1538
|
+
if (y != null) {
|
|
1539
1539
|
try {
|
|
1540
|
-
return T.call(
|
|
1540
|
+
return T.call(y);
|
|
1541
1541
|
} catch {
|
|
1542
1542
|
}
|
|
1543
1543
|
try {
|
|
1544
|
-
return
|
|
1544
|
+
return y + "";
|
|
1545
1545
|
} catch {
|
|
1546
1546
|
}
|
|
1547
1547
|
}
|
|
1548
1548
|
return "";
|
|
1549
1549
|
}
|
|
1550
|
-
function fe(
|
|
1551
|
-
if (typeof
|
|
1550
|
+
function fe(y, E) {
|
|
1551
|
+
if (typeof y != "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],
|
|
1555
|
-
if (
|
|
1556
|
-
return
|
|
1557
|
-
var C =
|
|
1558
|
-
return
|
|
1553
|
+
var P = function() {
|
|
1554
|
+
var G = arguments, ae = E ? E.apply(this, G) : G[0], W = P.cache;
|
|
1555
|
+
if (W.has(ae))
|
|
1556
|
+
return W.get(ae);
|
|
1557
|
+
var C = y.apply(this, G);
|
|
1558
|
+
return P.cache = W.set(ae, C), C;
|
|
1559
1559
|
};
|
|
1560
|
-
return
|
|
1560
|
+
return P.cache = new (fe.Cache || oe)(), P;
|
|
1561
1561
|
}
|
|
1562
1562
|
fe.Cache = oe;
|
|
1563
|
-
function we(
|
|
1564
|
-
return
|
|
1563
|
+
function we(y, E) {
|
|
1564
|
+
return y === E || y !== y && E !== E;
|
|
1565
1565
|
}
|
|
1566
1566
|
var Ce = Array.isArray;
|
|
1567
|
-
function Le(
|
|
1568
|
-
var E = he(
|
|
1569
|
-
return E ==
|
|
1567
|
+
function Le(y) {
|
|
1568
|
+
var E = he(y) ? M.call(y) : "";
|
|
1569
|
+
return E == i || E == t;
|
|
1570
1570
|
}
|
|
1571
|
-
function he(
|
|
1572
|
-
var E = typeof
|
|
1573
|
-
return !!
|
|
1571
|
+
function he(y) {
|
|
1572
|
+
var E = typeof y;
|
|
1573
|
+
return !!y && (E == "object" || E == "function");
|
|
1574
1574
|
}
|
|
1575
|
-
function ge(
|
|
1576
|
-
return !!
|
|
1575
|
+
function ge(y) {
|
|
1576
|
+
return !!y && typeof y == "object";
|
|
1577
1577
|
}
|
|
1578
|
-
function
|
|
1579
|
-
return typeof
|
|
1578
|
+
function g(y) {
|
|
1579
|
+
return typeof y == "symbol" || ge(y) && M.call(y) == a;
|
|
1580
1580
|
}
|
|
1581
|
-
function
|
|
1582
|
-
return
|
|
1581
|
+
function b(y) {
|
|
1582
|
+
return y == null ? "" : xe(y);
|
|
1583
1583
|
}
|
|
1584
|
-
function D(
|
|
1585
|
-
var G =
|
|
1586
|
-
return G === void 0 ?
|
|
1584
|
+
function D(y, E, P) {
|
|
1585
|
+
var G = y == null ? void 0 : ee(y, E);
|
|
1586
|
+
return G === void 0 ? P : 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,
|
|
1597
|
-
F + "?" + x + "+" + z + "(?=" + [
|
|
1598
|
-
U + "+" + _ + "(?=" + [
|
|
1599
|
-
F + "?" +
|
|
1596
|
+
var e = "[object Symbol]", r = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, i = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, t = "\\ud800-\\udfff", a = "\\u0300-\\u036f\\ufe20-\\ufe23", n = "\\u20d0-\\u20f0", s = "\\u2700-\\u27bf", f = "a-z\\xdf-\\xf6\\xf8-\\xff", c = "\\xac\\xb1\\xd7\\xf7", p = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", w = "\\u2000-\\u206f", A = " \\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", m = c + p + w + A, h = "['’]", d = "[" + t + "]", l = "[" + m + "]", v = "[" + a + n + "]", S = "\\d+", O = "[" + s + "]", x = "[" + f + "]", T = "[^" + t + m + S + s + f + u + "]", N = "\\ud83c[\\udffb-\\udfff]", M = "(?:" + v + "|" + N + ")", V = "[^" + t + "]", $ = "(?:\\ud83c[\\udde6-\\uddff]){2}", L = "[\\ud800-\\udbff][\\udc00-\\udfff]", F = "[" + u + "]", k = "\\u200d", R = "(?:" + x + "|" + T + ")", U = "(?:" + F + "|" + T + ")", z = "(?:" + h + "(?:d|ll|m|re|s|t|ve))?", _ = "(?:" + h + "(?:D|LL|M|RE|S|T|VE))?", Z = M + "?", Q = "[" + o + "]?", ne = "(?:" + k + "(?:" + [V, $, L].join("|") + ")" + Q + Z + ")*", X = Q + Z + ne, K = "(?:" + [O, $, L].join("|") + ")" + X, ie = "(?:" + [V + v + "?", v, $, L, d].join("|") + ")", re = RegExp(h, "g"), te = RegExp(v, "g"), ce = RegExp(N + "(?=" + N + ")|" + ie + X, "g"), ue = RegExp([
|
|
1597
|
+
F + "?" + x + "+" + z + "(?=" + [l, F, "$"].join("|") + ")",
|
|
1598
|
+
U + "+" + _ + "(?=" + [l, F + R, "$"].join("|") + ")",
|
|
1599
|
+
F + "?" + R + "+" + z,
|
|
1600
1600
|
F + "+" + _,
|
|
1601
1601
|
S,
|
|
1602
|
-
|
|
1603
|
-
].join("|"), "g"), oe = RegExp("[" +
|
|
1602
|
+
K
|
|
1603
|
+
].join("|"), "g"), oe = RegExp("[" + k + t + a + n + 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",
|
|
@@ -1817,10 +1817,10 @@ function gt() {
|
|
|
1817
1817
|
function Pe(C) {
|
|
1818
1818
|
return de.test(C);
|
|
1819
1819
|
}
|
|
1820
|
-
function Re(C) {
|
|
1821
|
-
return me(C) ? ke(C) : ee(C);
|
|
1822
|
-
}
|
|
1823
1820
|
function ke(C) {
|
|
1821
|
+
return me(C) ? Re(C) : ee(C);
|
|
1822
|
+
}
|
|
1823
|
+
function Re(C) {
|
|
1824
1824
|
return C.match(ce) || [];
|
|
1825
1825
|
}
|
|
1826
1826
|
function _e(C) {
|
|
@@ -1848,37 +1848,37 @@ function gt() {
|
|
|
1848
1848
|
}
|
|
1849
1849
|
function ge(C) {
|
|
1850
1850
|
return function(B) {
|
|
1851
|
-
B =
|
|
1852
|
-
var j = me(B) ?
|
|
1851
|
+
B = y(B);
|
|
1852
|
+
var j = me(B) ? ke(B) : void 0, H = j ? j[0] : B.charAt(0), Y = j ? he(j, 1).join("") : B.slice(1);
|
|
1853
1853
|
return H[C]() + Y;
|
|
1854
1854
|
};
|
|
1855
1855
|
}
|
|
1856
|
-
function
|
|
1856
|
+
function g(C) {
|
|
1857
1857
|
return function(B) {
|
|
1858
|
-
return J(
|
|
1858
|
+
return J(W(G(B).replace(re, "")), C, "");
|
|
1859
1859
|
};
|
|
1860
1860
|
}
|
|
1861
|
-
function
|
|
1861
|
+
function b(C) {
|
|
1862
1862
|
return !!C && typeof C == "object";
|
|
1863
1863
|
}
|
|
1864
1864
|
function D(C) {
|
|
1865
|
-
return typeof C == "symbol" ||
|
|
1865
|
+
return typeof C == "symbol" || b(C) && Ne.call(C) == e;
|
|
1866
1866
|
}
|
|
1867
|
-
function
|
|
1867
|
+
function y(C) {
|
|
1868
1868
|
return C == null ? "" : Le(C);
|
|
1869
1869
|
}
|
|
1870
|
-
var E =
|
|
1871
|
-
return B = B.toLowerCase(), C + (j ?
|
|
1870
|
+
var E = g(function(C, B, j) {
|
|
1871
|
+
return B = B.toLowerCase(), C + (j ? P(B) : B);
|
|
1872
1872
|
});
|
|
1873
|
-
function
|
|
1874
|
-
return ae(
|
|
1873
|
+
function P(C) {
|
|
1874
|
+
return ae(y(C).toLowerCase());
|
|
1875
1875
|
}
|
|
1876
1876
|
function G(C) {
|
|
1877
|
-
return C =
|
|
1877
|
+
return C = y(C), C && C.replace(i, Te).replace(te, "");
|
|
1878
1878
|
}
|
|
1879
1879
|
var ae = ge("toUpperCase");
|
|
1880
|
-
function
|
|
1881
|
-
return C =
|
|
1880
|
+
function W(C, B, j) {
|
|
1881
|
+
return C = y(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
|
}
|
|
@@ -1890,42 +1890,42 @@ function bt() {
|
|
|
1890
1890
|
jr = 1, Object.defineProperty(ve, "__esModule", {
|
|
1891
1891
|
value: !0
|
|
1892
1892
|
});
|
|
1893
|
-
var e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(
|
|
1894
|
-
return typeof
|
|
1895
|
-
} : function(
|
|
1896
|
-
return
|
|
1897
|
-
}, r = typeof window < "u" && typeof window.document < "u",
|
|
1898
|
-
return ve.isBrowser = r, ve.isWebWorker = t, ve.isNode =
|
|
1893
|
+
var e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(s) {
|
|
1894
|
+
return typeof s;
|
|
1895
|
+
} : function(s) {
|
|
1896
|
+
return s && typeof Symbol == "function" && s.constructor === Symbol && s !== Symbol.prototype ? "symbol" : typeof s;
|
|
1897
|
+
}, r = typeof window < "u" && typeof window.document < "u", i = typeof process < "u" && process.versions != null && process.versions.node != null, t = (typeof self > "u" ? "undefined" : e(self)) === "object" && self.constructor && self.constructor.name === "DedicatedWorkerGlobalScope", a = typeof window < "u" && window.name === "nodejs" || typeof navigator < "u" && (navigator.userAgent.includes("Node.js") || navigator.userAgent.includes("jsdom")), n = typeof Deno < "u" && typeof Deno.core < "u";
|
|
1898
|
+
return ve.isBrowser = r, ve.isWebWorker = t, ve.isNode = i, ve.isJsDom = a, ve.isDeno = n, ve;
|
|
1899
1899
|
}
|
|
1900
1900
|
bt();
|
|
1901
1901
|
const I = {}, Ge = {};
|
|
1902
1902
|
I.loadExternalScript = function(e) {
|
|
1903
1903
|
if (Ge[e])
|
|
1904
1904
|
return Ge[e];
|
|
1905
|
-
const r = Ge[e] = new Promise(
|
|
1906
|
-
function
|
|
1905
|
+
const r = Ge[e] = new Promise(i);
|
|
1906
|
+
function i(t, a) {
|
|
1907
1907
|
if (!document)
|
|
1908
|
-
return delete Ge[e],
|
|
1909
|
-
var
|
|
1910
|
-
|
|
1908
|
+
return delete Ge[e], a("document is undefined");
|
|
1909
|
+
var n = document.createElement("script");
|
|
1910
|
+
n.type = "text/javascript", n.async = !0, n.onload = function() {
|
|
1911
1911
|
return console.log("Loaded external script", e), t(e);
|
|
1912
|
-
},
|
|
1912
|
+
}, n.src = e, document.head.appendChild(n);
|
|
1913
1913
|
}
|
|
1914
1914
|
return r;
|
|
1915
1915
|
};
|
|
1916
1916
|
const Vr = {};
|
|
1917
1917
|
I.loadExternalStyle = function(e) {
|
|
1918
|
-
const r = new Promise(
|
|
1919
|
-
function
|
|
1918
|
+
const r = new Promise(i);
|
|
1919
|
+
function i(t, a) {
|
|
1920
1920
|
if (!document)
|
|
1921
|
-
return
|
|
1921
|
+
return a("document is undefined");
|
|
1922
1922
|
if (Vr[e])
|
|
1923
1923
|
return t(e);
|
|
1924
1924
|
Vr[e] = !0;
|
|
1925
|
-
var
|
|
1926
|
-
|
|
1925
|
+
var n = document.createElement("link");
|
|
1926
|
+
n.setAttribute("rel", "stylesheet"), n.setAttribute("type", "text/css"), n.setAttribute("href", e), n.onload = function() {
|
|
1927
1927
|
return console.log("Loaded external stylesheet", e), t(e);
|
|
1928
|
-
}, document.head.appendChild(
|
|
1928
|
+
}, document.head.appendChild(n);
|
|
1929
1929
|
}
|
|
1930
1930
|
return r;
|
|
1931
1931
|
};
|
|
@@ -1939,8 +1939,8 @@ I.exists = function(e) {
|
|
|
1939
1939
|
r = !0;
|
|
1940
1940
|
break;
|
|
1941
1941
|
default:
|
|
1942
|
-
var
|
|
1943
|
-
switch (
|
|
1942
|
+
var i = String(e).toLowerCase();
|
|
1943
|
+
switch (i) {
|
|
1944
1944
|
case "":
|
|
1945
1945
|
case "undefined":
|
|
1946
1946
|
case "null":
|
|
@@ -1955,8 +1955,8 @@ I.parseDate = function(e) {
|
|
|
1955
1955
|
if (e) {
|
|
1956
1956
|
if (e instanceof Date)
|
|
1957
1957
|
return e;
|
|
1958
|
-
var r = new Date(e),
|
|
1959
|
-
if (
|
|
1958
|
+
var r = new Date(e), i = r instanceof Date && !isNaN(r);
|
|
1959
|
+
if (i)
|
|
1960
1960
|
return r;
|
|
1961
1961
|
}
|
|
1962
1962
|
};
|
|
@@ -1965,29 +1965,29 @@ I.parseURL = function(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
|
|
1969
|
-
if (
|
|
1970
|
-
return `mailto:${
|
|
1971
|
-
const t = (
|
|
1968
|
+
var i = I.parseEmail(e);
|
|
1969
|
+
if (i && i === e)
|
|
1970
|
+
return `mailto:${i}`;
|
|
1971
|
+
const t = (p) => /^https?:\/\//i.test(p) ? p : `http://${p}`;
|
|
1972
1972
|
e = t(e), e = e.replace(/\s/g, "");
|
|
1973
|
-
var
|
|
1974
|
-
if (
|
|
1975
|
-
if (!/^\d+$/.test(
|
|
1973
|
+
var a = String(e).replace(/^https?:\/\//i, "").split(/[/?#]/)[0], n = a.lastIndexOf(":");
|
|
1974
|
+
if (n !== -1) {
|
|
1975
|
+
if (!/^\d+$/.test(a.slice(n + 1)))
|
|
1976
1976
|
return !1;
|
|
1977
|
-
|
|
1977
|
+
a = a.slice(0, n);
|
|
1978
1978
|
}
|
|
1979
|
-
if (!
|
|
1979
|
+
if (!a)
|
|
1980
1980
|
return !1;
|
|
1981
|
-
var
|
|
1982
|
-
return /^\d{1,3}$/.test(
|
|
1981
|
+
var s = a.split("."), f = s.length === 4 && s.every(function(p) {
|
|
1982
|
+
return /^\d{1,3}$/.test(p);
|
|
1983
1983
|
});
|
|
1984
|
-
if (!
|
|
1985
|
-
if (
|
|
1984
|
+
if (!f) {
|
|
1985
|
+
if (s.length < 2)
|
|
1986
1986
|
return !1;
|
|
1987
|
-
var
|
|
1988
|
-
return /^[a-z\d]([a-z\d-]*[a-z\d])?$/i.test(
|
|
1987
|
+
var c = s.every(function(p) {
|
|
1988
|
+
return /^[a-z\d]([a-z\d-]*[a-z\d])?$/i.test(p);
|
|
1989
1989
|
});
|
|
1990
|
-
if (!
|
|
1990
|
+
if (!c || !/^[a-z]{2,}$/i.test(s[s.length - 1]))
|
|
1991
1991
|
return !1;
|
|
1992
1992
|
}
|
|
1993
1993
|
return t(e);
|
|
@@ -1996,37 +1996,37 @@ I.parseNumber = function(e, r) {
|
|
|
1996
1996
|
if (!e || (e = Number(e), isNaN(e)))
|
|
1997
1997
|
return 0;
|
|
1998
1998
|
if (r) {
|
|
1999
|
-
var
|
|
2000
|
-
e = I.parseNumber(
|
|
1999
|
+
var i = e.toFixed(r);
|
|
2000
|
+
e = I.parseNumber(i);
|
|
2001
2001
|
}
|
|
2002
2002
|
return e;
|
|
2003
2003
|
};
|
|
2004
2004
|
I.isValidEmailAddress = function(e) {
|
|
2005
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])+$/;
|
|
2006
2006
|
if (!e) return !1;
|
|
2007
|
-
var
|
|
2008
|
-
if (
|
|
2009
|
-
var t =
|
|
2007
|
+
var i = e.split("@");
|
|
2008
|
+
if (i.length !== 2) return !1;
|
|
2009
|
+
var t = i[0], a = i[1];
|
|
2010
2010
|
if (t.length > 64) return !1;
|
|
2011
|
-
if (
|
|
2012
|
-
var
|
|
2013
|
-
return !(
|
|
2014
|
-
return
|
|
2011
|
+
if (a.length > 255) return !1;
|
|
2012
|
+
var n = a.split(".");
|
|
2013
|
+
return !(n.some(function(s) {
|
|
2014
|
+
return s.length > 63;
|
|
2015
2015
|
}) || !r.test(e));
|
|
2016
2016
|
};
|
|
2017
2017
|
I.parseEmail = function(e) {
|
|
2018
2018
|
if (!e)
|
|
2019
2019
|
return !1;
|
|
2020
|
-
var r = String(e).toLowerCase(),
|
|
2021
|
-
return
|
|
2020
|
+
var r = String(e).toLowerCase(), i = I.isValidEmailAddress(r);
|
|
2021
|
+
return i ? r : !1;
|
|
2022
2022
|
};
|
|
2023
2023
|
I.parseInt = function(e) {
|
|
2024
2024
|
return !e || (e = parseInt(e), isNaN(e)) ? 0 : e;
|
|
2025
2025
|
};
|
|
2026
|
-
I.cleanValue = function(e, r,
|
|
2027
|
-
|
|
2026
|
+
I.cleanValue = function(e, r, i) {
|
|
2027
|
+
i || (i = {});
|
|
2028
2028
|
var t = I.exists(e);
|
|
2029
|
-
if (
|
|
2029
|
+
if (i.strict && t && r != "boolean")
|
|
2030
2030
|
return e;
|
|
2031
2031
|
switch (r) {
|
|
2032
2032
|
case "reference":
|
|
@@ -2040,24 +2040,24 @@ I.cleanValue = function(e, r, a) {
|
|
|
2040
2040
|
case "email":
|
|
2041
2041
|
return I.parseEmail(e);
|
|
2042
2042
|
case "date":
|
|
2043
|
-
var
|
|
2044
|
-
return
|
|
2043
|
+
var a = I.parseDate(e, i);
|
|
2044
|
+
return a === void 0 ? void 0 : a;
|
|
2045
2045
|
case "number":
|
|
2046
2046
|
case "decimal":
|
|
2047
2047
|
case "float":
|
|
2048
|
-
var
|
|
2049
|
-
return String(
|
|
2048
|
+
var n = I.parseNumber(e);
|
|
2049
|
+
return String(n) == String(Number(e)) ? n : void 0;
|
|
2050
2050
|
case "integer":
|
|
2051
|
-
var
|
|
2052
|
-
return String(
|
|
2051
|
+
var n = I.parseInt(e);
|
|
2052
|
+
return String(n) == String(parseInt(e)) ? n : void 0;
|
|
2053
2053
|
case "group":
|
|
2054
2054
|
return e;
|
|
2055
2055
|
case "object":
|
|
2056
2056
|
return typeof e == "object" && e !== null && !Array.isArray(e) ? e : void 0;
|
|
2057
2057
|
case "string":
|
|
2058
2058
|
if (I.exists(e)) {
|
|
2059
|
-
var
|
|
2060
|
-
return
|
|
2059
|
+
var s = String(e);
|
|
2060
|
+
return s == "[object Object]" ? void 0 : s;
|
|
2061
2061
|
} else
|
|
2062
2062
|
return;
|
|
2063
2063
|
// if(!data) {
|
|
@@ -2075,57 +2075,57 @@ I.cleanValue = function(e, r, a) {
|
|
|
2075
2075
|
return String(e);
|
|
2076
2076
|
}
|
|
2077
2077
|
};
|
|
2078
|
-
I.isValidValue = function(e, r,
|
|
2079
|
-
var t = I.exists(e),
|
|
2078
|
+
I.isValidValue = function(e, r, i) {
|
|
2079
|
+
var t = I.exists(e), a = typeof e == "number", n = !1;
|
|
2080
2080
|
if (!t)
|
|
2081
2081
|
return !1;
|
|
2082
2082
|
switch (r) {
|
|
2083
2083
|
case "url":
|
|
2084
|
-
|
|
2084
|
+
i ? n = e.startsWith("/") || e.startsWith("://") || e.startsWith("http://") || e.startsWith("https://") : n = String(e) === I.parseURL(e);
|
|
2085
2085
|
break;
|
|
2086
2086
|
case "key":
|
|
2087
|
-
|
|
2087
|
+
n = String(e) === I.machineName(e);
|
|
2088
2088
|
break;
|
|
2089
2089
|
case "date":
|
|
2090
|
-
if (
|
|
2090
|
+
if (i && (typeof e != "object" || !(e instanceof Date)))
|
|
2091
2091
|
return !1;
|
|
2092
|
-
var
|
|
2093
|
-
return
|
|
2092
|
+
var s = I.parseDate(e);
|
|
2093
|
+
return s !== void 0;
|
|
2094
2094
|
case "email":
|
|
2095
|
-
|
|
2095
|
+
i ? n = e === I.parseEmail(e) : n = String(e).toLowerCase() === I.parseEmail(e);
|
|
2096
2096
|
break;
|
|
2097
2097
|
case "number":
|
|
2098
2098
|
case "decimal":
|
|
2099
2099
|
case "float":
|
|
2100
|
-
|
|
2100
|
+
i ? n = a && Number(e) === I.parseNumber(e) : n = Number(e) === I.parseNumber(e);
|
|
2101
2101
|
break;
|
|
2102
2102
|
case "integer":
|
|
2103
|
-
|
|
2103
|
+
i ? n = a && Number(e) === I.parseInt(e) : n = Number(e) === I.parseInt(e);
|
|
2104
2104
|
break;
|
|
2105
2105
|
case "boolean":
|
|
2106
|
-
var
|
|
2107
|
-
|
|
2106
|
+
var s = I.parseBoolean(e);
|
|
2107
|
+
i ? (e === !0 || e === !1) && (n = e === s) : n = s === !0 || s === !1;
|
|
2108
2108
|
break;
|
|
2109
2109
|
case "reference":
|
|
2110
|
-
|
|
2110
|
+
i ? n = String(e) === I.id(e) : n = !!I.id(e);
|
|
2111
2111
|
break;
|
|
2112
2112
|
case "string":
|
|
2113
|
-
var
|
|
2114
|
-
if (
|
|
2113
|
+
var f = String(e);
|
|
2114
|
+
if (i && typeof e != "string" || f == "[object Object]")
|
|
2115
2115
|
return !1;
|
|
2116
|
-
|
|
2116
|
+
n = !0;
|
|
2117
2117
|
break;
|
|
2118
2118
|
// case 'group':
|
|
2119
2119
|
// isValidEntry = _isObject(value);
|
|
2120
2120
|
// break;
|
|
2121
2121
|
case "object":
|
|
2122
|
-
|
|
2122
|
+
n = typeof e == "object" && e !== null && !Array.isArray(e);
|
|
2123
2123
|
break;
|
|
2124
2124
|
case "array":
|
|
2125
|
-
|
|
2125
|
+
n = Array.isArray(e);
|
|
2126
2126
|
break;
|
|
2127
2127
|
}
|
|
2128
|
-
return
|
|
2128
|
+
return n;
|
|
2129
2129
|
};
|
|
2130
2130
|
I.parseBoolean = function(e) {
|
|
2131
2131
|
switch (String(e).toLowerCase()) {
|
|
@@ -2154,43 +2154,43 @@ I.clone = function(e) {
|
|
|
2154
2154
|
return JSON.parse(JSON.stringify(e));
|
|
2155
2155
|
};
|
|
2156
2156
|
I.getAllFields = function(e) {
|
|
2157
|
-
const r = e.definesType === "profile" || e.key === "profile",
|
|
2158
|
-
var t = [...e.fields],
|
|
2159
|
-
if (
|
|
2160
|
-
if (
|
|
2161
|
-
var
|
|
2157
|
+
const r = e.definesType === "profile" || e.key === "profile", i = e.definesType === "submission";
|
|
2158
|
+
var t = [...e.fields], a = e.definedFields || [];
|
|
2159
|
+
if (a.length)
|
|
2160
|
+
if (i) {
|
|
2161
|
+
var n = {
|
|
2162
2162
|
title: "Form Data",
|
|
2163
2163
|
minimum: 1,
|
|
2164
2164
|
maximum: 1,
|
|
2165
2165
|
key: "formData",
|
|
2166
2166
|
asObject: !0,
|
|
2167
2167
|
type: "group",
|
|
2168
|
-
fields:
|
|
2168
|
+
fields: a
|
|
2169
2169
|
};
|
|
2170
|
-
t.push(
|
|
2171
|
-
var
|
|
2170
|
+
t.push(n);
|
|
2171
|
+
var s = {
|
|
2172
2172
|
title: "Data",
|
|
2173
2173
|
minimum: 1,
|
|
2174
2174
|
maximum: 1,
|
|
2175
2175
|
key: "data",
|
|
2176
2176
|
asObject: !0,
|
|
2177
2177
|
type: "group",
|
|
2178
|
-
fields:
|
|
2179
|
-
return
|
|
2178
|
+
fields: a.map(function(p) {
|
|
2179
|
+
return p.type === "reference" && (p = JSON.parse(JSON.stringify(p)), delete p.fields), p;
|
|
2180
2180
|
})
|
|
2181
2181
|
};
|
|
2182
|
-
t.push(
|
|
2182
|
+
t.push(s);
|
|
2183
2183
|
} else {
|
|
2184
|
-
var
|
|
2184
|
+
var s = {
|
|
2185
2185
|
title: `${e.title}`,
|
|
2186
2186
|
minimum: 1,
|
|
2187
2187
|
maximum: 1,
|
|
2188
2188
|
key: "data",
|
|
2189
2189
|
asObject: !0,
|
|
2190
2190
|
type: "group",
|
|
2191
|
-
fields:
|
|
2191
|
+
fields: a
|
|
2192
2192
|
};
|
|
2193
|
-
t.push(
|
|
2193
|
+
t.push(s);
|
|
2194
2194
|
}
|
|
2195
2195
|
r && (t.push({
|
|
2196
2196
|
title: "Age",
|
|
@@ -2205,50 +2205,50 @@ I.getAllFields = function(e) {
|
|
|
2205
2205
|
maximum: 1,
|
|
2206
2206
|
type: "date"
|
|
2207
2207
|
}));
|
|
2208
|
-
var
|
|
2209
|
-
var
|
|
2210
|
-
return !
|
|
2211
|
-
}).map(function(
|
|
2212
|
-
return
|
|
2213
|
-
}).sort(function(
|
|
2214
|
-
return
|
|
2208
|
+
var f = I.mapFields(t).filter(function(c) {
|
|
2209
|
+
var p = c.type == "group" && c.asObject && c.minimum == 1 && c.maximum == 1;
|
|
2210
|
+
return !p;
|
|
2211
|
+
}).map(function(c) {
|
|
2212
|
+
return c.title = c.filterTitle || c.titles.filter(Boolean).join(" › "), c;
|
|
2213
|
+
}).sort(function(c, p) {
|
|
2214
|
+
return c.title < p.title ? -1 : 1;
|
|
2215
2215
|
});
|
|
2216
|
-
return
|
|
2216
|
+
return f;
|
|
2217
2217
|
};
|
|
2218
2218
|
I.mapFields = function(e, r) {
|
|
2219
2219
|
r || (r = {});
|
|
2220
|
-
var
|
|
2221
|
-
e.forEach(
|
|
2222
|
-
function p
|
|
2223
|
-
var
|
|
2224
|
-
|
|
2225
|
-
var
|
|
2226
|
-
if (
|
|
2227
|
-
if (
|
|
2228
|
-
|
|
2220
|
+
var i = [], t = [], a = [], n = 1, s = r.depth, f = r.arrayDelimeter || "[]";
|
|
2221
|
+
e.forEach(c);
|
|
2222
|
+
function c(p, w) {
|
|
2223
|
+
var A = p.key, u = p.type == "group", o = p.minimum === p.maximum && p.minimum === 1, m = p.asObject, h = u && !m, d = r.original ? p : I.clone(p);
|
|
2224
|
+
d.trail = t.slice(), d.trail.push(A), d.path = d.trail.join("."), d.titles = a.slice(), d.titles.push(p.filterTitle || p.title || ""), (!h || r.includeLayout) && i.push(d);
|
|
2225
|
+
var v = s && n >= s;
|
|
2226
|
+
if (p.fields && p.fields.length)
|
|
2227
|
+
if (h)
|
|
2228
|
+
p.fields.forEach(c);
|
|
2229
2229
|
else {
|
|
2230
|
-
if (
|
|
2230
|
+
if (v)
|
|
2231
2231
|
return;
|
|
2232
|
-
|
|
2233
|
-
let S =
|
|
2234
|
-
r.includeArrayDelimeter && (o || (S = `${
|
|
2232
|
+
n++;
|
|
2233
|
+
let S = A;
|
|
2234
|
+
r.includeArrayDelimeter && (o || (S = `${A}${f}`)), t.push(S), a.push(p.filterTitle || p.title), p.fields.forEach(c), n--, t.pop(), a.pop();
|
|
2235
2235
|
}
|
|
2236
2236
|
}
|
|
2237
|
-
return
|
|
2237
|
+
return i;
|
|
2238
2238
|
};
|
|
2239
2239
|
I.mapParameters = function(e) {
|
|
2240
2240
|
e = e || {};
|
|
2241
2241
|
var r = [];
|
|
2242
|
-
return Object.entries(e).forEach(function([
|
|
2243
|
-
t == null || t == !1 || (Array.isArray(t) ? t.forEach(function(
|
|
2244
|
-
r.push(`${
|
|
2245
|
-
}) : r.push(encodeURIComponent(
|
|
2242
|
+
return Object.entries(e).forEach(function([i, t]) {
|
|
2243
|
+
t == null || t == !1 || (Array.isArray(t) ? t.forEach(function(a) {
|
|
2244
|
+
r.push(`${i}=${encodeURIComponent(a)}`);
|
|
2245
|
+
}) : r.push(encodeURIComponent(i) + "=" + encodeURIComponent(t)));
|
|
2246
2246
|
}), r.join("&");
|
|
2247
2247
|
};
|
|
2248
|
-
I.formatCurrency = function(e, r,
|
|
2249
|
-
(!e || isNaN(e)) && (e = 0),
|
|
2248
|
+
I.formatCurrency = function(e, r, i) {
|
|
2249
|
+
(!e || isNaN(e)) && (e = 0), i = i || 2;
|
|
2250
2250
|
var t = I.currencySymbol(r);
|
|
2251
|
-
return `${t}${parseFloat(Number(e) / 100).toFixed(
|
|
2251
|
+
return `${t}${parseFloat(Number(e) / 100).toFixed(i)}`;
|
|
2252
2252
|
};
|
|
2253
2253
|
I.getTypeFromID = function(e) {
|
|
2254
2254
|
if (e = I.id(e), !e)
|
|
@@ -2310,8 +2310,8 @@ I.getTypeFromID = function(e) {
|
|
|
2310
2310
|
"4d": "paymentmethod",
|
|
2311
2311
|
"6c": "sslcertificate"
|
|
2312
2312
|
};
|
|
2313
|
-
var
|
|
2314
|
-
return r[
|
|
2313
|
+
var i = e.slice(8, 10);
|
|
2314
|
+
return r[i];
|
|
2315
2315
|
};
|
|
2316
2316
|
const St = { gbp: "£", eur: "€" };
|
|
2317
2317
|
I.currencySymbol = function(e) {
|
|
@@ -2326,66 +2326,66 @@ const wt = [
|
|
|
2326
2326
|
{ code: "sgd", countries: ["SG"] }
|
|
2327
2327
|
];
|
|
2328
2328
|
I.getAvailableCurrencies = function(e) {
|
|
2329
|
-
let r = wt.map(({ code:
|
|
2330
|
-
name: `${
|
|
2331
|
-
value:
|
|
2332
|
-
countryCode: Object.fromEntries(t.map((
|
|
2329
|
+
let r = wt.map(({ code: i, countries: t }) => ({
|
|
2330
|
+
name: `${i.toUpperCase()} (${I.currencySymbol(i)})`,
|
|
2331
|
+
value: i,
|
|
2332
|
+
countryCode: Object.fromEntries(t.map((a) => [a, !0]))
|
|
2333
2333
|
}));
|
|
2334
2334
|
if (e) {
|
|
2335
|
-
const
|
|
2336
|
-
if (
|
|
2337
|
-
const [t] = r.splice(
|
|
2335
|
+
const i = r.findIndex((t) => t.countryCode[e]);
|
|
2336
|
+
if (i > 0) {
|
|
2337
|
+
const [t] = r.splice(i, 1);
|
|
2338
2338
|
r.unshift(t);
|
|
2339
2339
|
}
|
|
2340
2340
|
}
|
|
2341
2341
|
return r;
|
|
2342
2342
|
};
|
|
2343
2343
|
I.hash = function(e, r) {
|
|
2344
|
-
return e = Array.isArray(e) ? e : [], e.reduce(function(
|
|
2345
|
-
const
|
|
2346
|
-
return a
|
|
2344
|
+
return e = Array.isArray(e) ? e : [], e.reduce(function(i, t) {
|
|
2345
|
+
const a = r ? je(t, r) : t;
|
|
2346
|
+
return i[a] = t, i;
|
|
2347
2347
|
}, {});
|
|
2348
2348
|
};
|
|
2349
|
-
I.extractFromArray = function(e, r,
|
|
2350
|
-
|
|
2351
|
-
var
|
|
2352
|
-
var w = je(
|
|
2353
|
-
return
|
|
2349
|
+
I.extractFromArray = function(e, r, i, t, a, n, s) {
|
|
2350
|
+
s = s || {}, i && (s.sum = i), t && (s.flatten = !0), a && (s.unique = !0), n && (s.excludeNull = !0);
|
|
2351
|
+
var f = e.reduce(function(c, p) {
|
|
2352
|
+
var w = je(p, r), A = !w && w !== !1 && w !== 0;
|
|
2353
|
+
return s.excludeNull && A || c.push(w), c;
|
|
2354
2354
|
}, []);
|
|
2355
|
-
return
|
|
2356
|
-
return
|
|
2357
|
-
}, 0)),
|
|
2355
|
+
return s.flatten && (f = f.flat()), s.unique && (f = [...new Set(f)]), s.sum && (f = f.reduce(function(c, p) {
|
|
2356
|
+
return c + p;
|
|
2357
|
+
}, 0)), f;
|
|
2358
2358
|
};
|
|
2359
|
-
I.matchInArray = function(e, r,
|
|
2360
|
-
var
|
|
2361
|
-
var
|
|
2359
|
+
I.matchInArray = function(e, r, i, t) {
|
|
2360
|
+
var a = e.filter(function(n) {
|
|
2361
|
+
var s = je(n, r), f;
|
|
2362
2362
|
switch (t) {
|
|
2363
2363
|
case "in":
|
|
2364
|
-
|
|
2364
|
+
f = s.includes(i);
|
|
2365
2365
|
break;
|
|
2366
2366
|
case ">=":
|
|
2367
|
-
|
|
2367
|
+
f = s >= i;
|
|
2368
2368
|
break;
|
|
2369
2369
|
case "<=":
|
|
2370
|
-
|
|
2370
|
+
f = s <= i;
|
|
2371
2371
|
break;
|
|
2372
2372
|
case "<":
|
|
2373
|
-
|
|
2373
|
+
f = s < i;
|
|
2374
2374
|
break;
|
|
2375
2375
|
case ">":
|
|
2376
|
-
|
|
2376
|
+
f = s > i;
|
|
2377
2377
|
break;
|
|
2378
2378
|
case "==":
|
|
2379
2379
|
default:
|
|
2380
|
-
|
|
2380
|
+
i === void 0 ? f = s : f = s == i;
|
|
2381
2381
|
break;
|
|
2382
2382
|
}
|
|
2383
|
-
return
|
|
2383
|
+
return f;
|
|
2384
2384
|
});
|
|
2385
|
-
return
|
|
2385
|
+
return a;
|
|
2386
2386
|
};
|
|
2387
|
-
I.comma = function(e, r,
|
|
2388
|
-
return
|
|
2387
|
+
I.comma = function(e, r, i) {
|
|
2388
|
+
return i && (e = e.slice(0, i)), e.filter(function(t) {
|
|
2389
2389
|
return t != null && t !== void 0 && t !== "";
|
|
2390
2390
|
}).map(function(t) {
|
|
2391
2391
|
return r && r.length ? je(t, r) : t;
|
|
@@ -2395,8 +2395,8 @@ I.id = function(e) {
|
|
|
2395
2395
|
if (e) {
|
|
2396
2396
|
var r;
|
|
2397
2397
|
e._id ? r = String(e._id) : r = String(e);
|
|
2398
|
-
var
|
|
2399
|
-
if (
|
|
2398
|
+
var i = I.isValidID(r);
|
|
2399
|
+
if (i)
|
|
2400
2400
|
return r;
|
|
2401
2401
|
}
|
|
2402
2402
|
};
|
|
@@ -2404,11 +2404,11 @@ I.ids = function(e) {
|
|
|
2404
2404
|
if (!e)
|
|
2405
2405
|
return [];
|
|
2406
2406
|
var r = Object.keys(
|
|
2407
|
-
e.reduce(function(
|
|
2407
|
+
e.reduce(function(i, t) {
|
|
2408
2408
|
if (!t)
|
|
2409
|
-
return
|
|
2410
|
-
var
|
|
2411
|
-
return
|
|
2409
|
+
return i;
|
|
2410
|
+
var a = I.id(t);
|
|
2411
|
+
return a && (i[a] = 1), i;
|
|
2412
2412
|
}, {})
|
|
2413
2413
|
);
|
|
2414
2414
|
return r;
|
|
@@ -2433,33 +2433,33 @@ I.guid = function() {
|
|
|
2433
2433
|
I.machineName = function(e) {
|
|
2434
2434
|
if (!(!e || !e.length)) {
|
|
2435
2435
|
var r = /[^a-zA-Z0-9-_]+/g;
|
|
2436
|
-
return String(e).replace(r, " ").split("_").map((
|
|
2436
|
+
return String(e).replace(r, " ").split("_").map((i) => At(i)).join("_");
|
|
2437
2437
|
}
|
|
2438
2438
|
};
|
|
2439
2439
|
function De() {
|
|
2440
2440
|
const e = /* @__PURE__ */ new Map(), r = {
|
|
2441
|
-
dispatch(
|
|
2442
|
-
const
|
|
2443
|
-
if (
|
|
2444
|
-
for (const
|
|
2445
|
-
|
|
2441
|
+
dispatch(i, t) {
|
|
2442
|
+
const a = e.get(i);
|
|
2443
|
+
if (a)
|
|
2444
|
+
for (const n of a)
|
|
2445
|
+
n(t);
|
|
2446
2446
|
},
|
|
2447
|
-
addEventListener(
|
|
2447
|
+
addEventListener(i, t) {
|
|
2448
2448
|
if (typeof t != "function")
|
|
2449
2449
|
throw new TypeError(
|
|
2450
2450
|
`Expected a function for addEventListener, received ${typeof t}`
|
|
2451
2451
|
);
|
|
2452
|
-
e.has(
|
|
2452
|
+
e.has(i) || e.set(i, /* @__PURE__ */ new Set()), e.get(i).add(t);
|
|
2453
2453
|
},
|
|
2454
|
-
removeEventListener(
|
|
2455
|
-
const
|
|
2456
|
-
|
|
2454
|
+
removeEventListener(i, t) {
|
|
2455
|
+
const a = e.get(i);
|
|
2456
|
+
a && (a.delete(t), a.size === 0 && e.delete(i));
|
|
2457
2457
|
},
|
|
2458
2458
|
removeAllListeners() {
|
|
2459
2459
|
e.clear();
|
|
2460
2460
|
},
|
|
2461
|
-
bootstrap(
|
|
2462
|
-
|
|
2461
|
+
bootstrap(i) {
|
|
2462
|
+
i && (i.dispatch = r.dispatch, i.addEventListener = r.addEventListener, i.removeEventListener = r.removeEventListener, i.removeAllListeners = r.removeAllListeners);
|
|
2463
2463
|
}
|
|
2464
2464
|
};
|
|
2465
2465
|
return r;
|
|
@@ -2563,8 +2563,8 @@ class Et extends Ve {
|
|
|
2563
2563
|
const r = window.location.hostname;
|
|
2564
2564
|
if (r === "localhost" || r === "127.0.0.1" || /^\d+\.\d+\.\d+\.\d+$/.test(r))
|
|
2565
2565
|
return null;
|
|
2566
|
-
const
|
|
2567
|
-
return
|
|
2566
|
+
const i = r.split(".");
|
|
2567
|
+
return i.length > 2 ? "." + i.slice(-2).join(".") : null;
|
|
2568
2568
|
}
|
|
2569
2569
|
/**
|
|
2570
2570
|
* Read a cookie value
|
|
@@ -2579,11 +2579,11 @@ class Et extends Ve {
|
|
|
2579
2579
|
* Set a cookie value (for non-httpOnly cookies only)
|
|
2580
2580
|
* @private
|
|
2581
2581
|
*/
|
|
2582
|
-
_setCookie(r,
|
|
2582
|
+
_setCookie(r, i, t = {}) {
|
|
2583
2583
|
if (typeof document > "u") return;
|
|
2584
|
-
const
|
|
2585
|
-
let
|
|
2586
|
-
|
|
2584
|
+
const a = { ...this.options, ...t };
|
|
2585
|
+
let n = `${r}=${i}`;
|
|
2586
|
+
a.domain && (n += `; Domain=${a.domain}`), a.secure && (n += "; Secure"), a.sameSite && (n += `; SameSite=${a.sameSite}`), a.maxAge && (n += `; Max-Age=${a.maxAge}`), document.cookie = n;
|
|
2587
2587
|
}
|
|
2588
2588
|
/**
|
|
2589
2589
|
* Delete a cookie
|
|
@@ -2597,7 +2597,7 @@ class Et extends Ve {
|
|
|
2597
2597
|
}
|
|
2598
2598
|
setUser(r) {
|
|
2599
2599
|
if (r) {
|
|
2600
|
-
const { token:
|
|
2600
|
+
const { token: i, ...t } = r;
|
|
2601
2601
|
this.sessionStorage.user = t;
|
|
2602
2602
|
} else
|
|
2603
2603
|
this.sessionStorage.user = null;
|
|
@@ -2619,8 +2619,8 @@ class Et extends Ve {
|
|
|
2619
2619
|
try {
|
|
2620
2620
|
const r = "qik_test_cookie";
|
|
2621
2621
|
this._setCookie(r, "test");
|
|
2622
|
-
const
|
|
2623
|
-
return this._deleteCookie(r),
|
|
2622
|
+
const i = this._getCookie(r) === "test";
|
|
2623
|
+
return this._deleteCookie(r), i;
|
|
2624
2624
|
} catch {
|
|
2625
2625
|
return !1;
|
|
2626
2626
|
}
|
|
@@ -2653,7 +2653,7 @@ var Pt = function(e) {
|
|
|
2653
2653
|
const r = xt({
|
|
2654
2654
|
useHttpOnlyCookies: e.useHttpOnlyCookies,
|
|
2655
2655
|
cookieConfig: e.cookieConfig
|
|
2656
|
-
}),
|
|
2656
|
+
}), i = 10, t = {
|
|
2657
2657
|
debug: !1,
|
|
2658
2658
|
storageAdapter: r
|
|
2659
2659
|
};
|
|
@@ -2663,257 +2663,257 @@ var Pt = function(e) {
|
|
|
2663
2663
|
},
|
|
2664
2664
|
enumerable: !0
|
|
2665
2665
|
});
|
|
2666
|
-
const
|
|
2667
|
-
|
|
2668
|
-
function
|
|
2669
|
-
var
|
|
2670
|
-
t.onChange && t.onChange(
|
|
2666
|
+
const a = new De();
|
|
2667
|
+
a.bootstrap(t);
|
|
2668
|
+
function n(f) {
|
|
2669
|
+
var c = r.getUser();
|
|
2670
|
+
t.onChange && t.onChange(c), a.dispatch("change", c, f);
|
|
2671
2671
|
}
|
|
2672
|
-
t.set = function(
|
|
2672
|
+
t.set = function(f, c, p) {
|
|
2673
2673
|
const w = r.getUser();
|
|
2674
|
-
if (JSON.stringify(w) != JSON.stringify(
|
|
2675
|
-
return
|
|
2674
|
+
if (JSON.stringify(w) != JSON.stringify(f) && (r.setUser(f), !p))
|
|
2675
|
+
return n(c);
|
|
2676
2676
|
}, t.logout = function() {
|
|
2677
|
-
return r.clearUser(), e.cache.reset(),
|
|
2678
|
-
}, t.changeOrganisation = function(
|
|
2679
|
-
|
|
2680
|
-
var
|
|
2681
|
-
return
|
|
2682
|
-
e.api.post(`/user/switch/${
|
|
2683
|
-
|
|
2684
|
-
}).catch(
|
|
2677
|
+
return r.clearUser(), e.cache.reset(), n();
|
|
2678
|
+
}, t.changeOrganisation = function(f, c) {
|
|
2679
|
+
f = e.utils.id(f), c || (c = {});
|
|
2680
|
+
var p = !0;
|
|
2681
|
+
return c.disableAutoAuthentication && (p = !1), new Promise(function(w, A) {
|
|
2682
|
+
e.api.post(`/user/switch/${f}`).then(function(u) {
|
|
2683
|
+
p && (e.cache.reset(), t.set(u.data)), w(u.data);
|
|
2684
|
+
}).catch(A);
|
|
2685
2685
|
});
|
|
2686
|
-
}, t.impersonate = function(
|
|
2687
|
-
|
|
2688
|
-
var
|
|
2689
|
-
|
|
2690
|
-
var w = e.api.post(`/user/impersonate/${
|
|
2691
|
-
return w.then(function(
|
|
2692
|
-
|
|
2693
|
-
}, function(
|
|
2686
|
+
}, t.impersonate = function(f, c) {
|
|
2687
|
+
f = e.utils.id(f), c || (c = {});
|
|
2688
|
+
var p = !0;
|
|
2689
|
+
c.disableAutoAuthentication && (p = !1);
|
|
2690
|
+
var w = e.api.post(`/user/impersonate/${f}`);
|
|
2691
|
+
return w.then(function(A) {
|
|
2692
|
+
p && (e.cache.reset(), t.set(A.data));
|
|
2693
|
+
}, function(A) {
|
|
2694
2694
|
}), w;
|
|
2695
|
-
}, t.login = async function(
|
|
2696
|
-
|
|
2697
|
-
var
|
|
2698
|
-
|
|
2699
|
-
var w = new Promise(
|
|
2700
|
-
function
|
|
2701
|
-
if (!
|
|
2695
|
+
}, t.login = async function(f, c) {
|
|
2696
|
+
c || (c = {});
|
|
2697
|
+
var p = !0;
|
|
2698
|
+
c.disableAutoAuthentication && (p = !1);
|
|
2699
|
+
var w = new Promise(A);
|
|
2700
|
+
function A(u, o) {
|
|
2701
|
+
if (!f)
|
|
2702
2702
|
return o({
|
|
2703
2703
|
message: "Login requires an email and password"
|
|
2704
2704
|
});
|
|
2705
|
-
if (!
|
|
2705
|
+
if (!f.email || !f.email.length)
|
|
2706
2706
|
return o({
|
|
2707
2707
|
message: "An email address is required to log in"
|
|
2708
2708
|
});
|
|
2709
|
-
if (!
|
|
2709
|
+
if (!f.password || !f.password.length)
|
|
2710
2710
|
return o({
|
|
2711
2711
|
message: "A password is required to log in"
|
|
2712
2712
|
});
|
|
2713
|
-
var
|
|
2713
|
+
var m = {
|
|
2714
2714
|
bypassInterceptor: !0
|
|
2715
2715
|
};
|
|
2716
|
-
r.isCookieMode && r.isCookieMode() && (
|
|
2717
|
-
var
|
|
2718
|
-
|
|
2719
|
-
|
|
2716
|
+
r.isCookieMode && r.isCookieMode() && (f.useCookies = !0, m.withCredentials = !0);
|
|
2717
|
+
var d = `${e.apiURL}/user/login`;
|
|
2718
|
+
c.url && (d = c.url), e.api.post(d, f, m).then(function(l) {
|
|
2719
|
+
p && t.set(l.data), u(l);
|
|
2720
2720
|
}, o);
|
|
2721
2721
|
}
|
|
2722
2722
|
return w;
|
|
2723
|
-
}, t.signup = async function(
|
|
2724
|
-
|
|
2725
|
-
var
|
|
2726
|
-
|
|
2727
|
-
var w = new Promise(
|
|
2728
|
-
function
|
|
2729
|
-
if (!
|
|
2723
|
+
}, t.signup = async function(f, c) {
|
|
2724
|
+
c || (c = {});
|
|
2725
|
+
var p = !0;
|
|
2726
|
+
c.disableAutoAuthentication && (p = !1);
|
|
2727
|
+
var w = new Promise(A);
|
|
2728
|
+
function A(u, o) {
|
|
2729
|
+
if (!f)
|
|
2730
2730
|
return o({
|
|
2731
2731
|
message: "Signup details are required"
|
|
2732
2732
|
});
|
|
2733
|
-
if (!
|
|
2733
|
+
if (!f.firstName || !f.firstName.length)
|
|
2734
2734
|
return o({
|
|
2735
2735
|
message: "Please provide a first name"
|
|
2736
2736
|
});
|
|
2737
|
-
if (!
|
|
2737
|
+
if (!f.lastName || !f.lastName.length)
|
|
2738
2738
|
return o({
|
|
2739
2739
|
message: "Please provide a last name"
|
|
2740
2740
|
});
|
|
2741
|
-
if (!
|
|
2741
|
+
if (!f.email || !f.email.length)
|
|
2742
2742
|
return o({
|
|
2743
2743
|
message: "An email address is required to sign up"
|
|
2744
2744
|
});
|
|
2745
|
-
if (!
|
|
2745
|
+
if (!f.password || !f.password.length)
|
|
2746
2746
|
return o({
|
|
2747
2747
|
message: "A password is required to sign up"
|
|
2748
2748
|
});
|
|
2749
|
-
if (!
|
|
2749
|
+
if (!f.confirmPassword || !f.confirmPassword.length)
|
|
2750
2750
|
return o({
|
|
2751
2751
|
message: "Please confirm your password"
|
|
2752
2752
|
});
|
|
2753
|
-
if (
|
|
2753
|
+
if (f.confirmPassword != f.password)
|
|
2754
2754
|
return o({
|
|
2755
2755
|
message: "Password and confirmation do not match"
|
|
2756
2756
|
});
|
|
2757
|
-
var
|
|
2757
|
+
var m = {
|
|
2758
2758
|
bypassInterceptor: !0
|
|
2759
2759
|
};
|
|
2760
|
-
r.isCookieMode && r.isCookieMode() && (
|
|
2761
|
-
var
|
|
2762
|
-
|
|
2763
|
-
|
|
2760
|
+
r.isCookieMode && r.isCookieMode() && (f.useCookies = !0, m.withCredentials = !0);
|
|
2761
|
+
var d = `${e.apiURL}/user/signup`;
|
|
2762
|
+
c.application && (d = `${e.domain || ""}/qik/application/signup`), c.url && (d = c.url), e.api.post(d, f, m).then(function(l) {
|
|
2763
|
+
p && t.set(l.data), u(l);
|
|
2764
2764
|
}, o);
|
|
2765
2765
|
}
|
|
2766
2766
|
return w;
|
|
2767
|
-
}, t.retrieveUserFromResetToken = async function(
|
|
2768
|
-
|
|
2769
|
-
var
|
|
2767
|
+
}, t.retrieveUserFromResetToken = async function(f, c) {
|
|
2768
|
+
c || (c = {});
|
|
2769
|
+
var p = {
|
|
2770
2770
|
bypassInterceptor: !0
|
|
2771
2771
|
};
|
|
2772
|
-
return new Promise(function(w,
|
|
2773
|
-
e.api.get(
|
|
2772
|
+
return new Promise(function(w, A) {
|
|
2773
|
+
e.api.get(c.url || `${e.apiURL}/user/reset/${f}`, p).then(function(u) {
|
|
2774
2774
|
return w(u.data);
|
|
2775
|
-
},
|
|
2775
|
+
}, A);
|
|
2776
2776
|
});
|
|
2777
|
-
}, t.updateUserWithToken = async function(
|
|
2778
|
-
|
|
2777
|
+
}, t.updateUserWithToken = async function(f, c, p) {
|
|
2778
|
+
p || (p = {});
|
|
2779
2779
|
var w = !0;
|
|
2780
|
-
return
|
|
2780
|
+
return p.disableAutoAuthentication && (w = !1), new Promise(function(A, u) {
|
|
2781
2781
|
var o = {
|
|
2782
2782
|
bypassInterceptor: !0
|
|
2783
2783
|
};
|
|
2784
|
-
e.api.post(
|
|
2785
|
-
return w && (e.cache.reset(), t.set(
|
|
2784
|
+
e.api.post(p.url || `${e.apiURL}/user/reset/${f}`, c, o).then(function(m) {
|
|
2785
|
+
return w && (e.cache.reset(), t.set(m.data)), A(m.data);
|
|
2786
2786
|
}, u);
|
|
2787
2787
|
});
|
|
2788
|
-
}, t.sendResetPasswordRequest = function(
|
|
2789
|
-
return
|
|
2788
|
+
}, t.sendResetPasswordRequest = function(f, c) {
|
|
2789
|
+
return c || (c = {}), f ? !f.email || !f.email.length ? Promise.reject({
|
|
2790
2790
|
message: "An email address is required for password reset"
|
|
2791
|
-
}) : new Promise(function(
|
|
2792
|
-
var
|
|
2791
|
+
}) : new Promise(function(p, w) {
|
|
2792
|
+
var A = {
|
|
2793
2793
|
bypassInterceptor: !0
|
|
2794
2794
|
};
|
|
2795
|
-
e.api.post(
|
|
2795
|
+
e.api.post(c.url || `${e.apiURL}/user/forgot`, f, A).then(p, w);
|
|
2796
2796
|
}) : Promise.reject({
|
|
2797
2797
|
message: "Please provide your account details to reset your password"
|
|
2798
2798
|
});
|
|
2799
|
-
}, t.ensureValidToken = async function(
|
|
2800
|
-
var
|
|
2801
|
-
if (!
|
|
2799
|
+
}, t.ensureValidToken = async function(f) {
|
|
2800
|
+
var c = t.getCurrentUser();
|
|
2801
|
+
if (!c)
|
|
2802
2802
|
return Promise.reject(new Error("No user"));
|
|
2803
2803
|
if (r.isCookieMode && r.isCookieMode())
|
|
2804
|
-
return
|
|
2805
|
-
var { token: w } =
|
|
2804
|
+
return f ? await t.refreshAccessToken() : "cookie_mode_token";
|
|
2805
|
+
var { token: w } = c;
|
|
2806
2806
|
if (!w)
|
|
2807
2807
|
return Promise.reject("No token");
|
|
2808
|
-
var
|
|
2809
|
-
|
|
2808
|
+
var A = /* @__PURE__ */ new Date();
|
|
2809
|
+
A.setSeconds(A.getSeconds() + i);
|
|
2810
2810
|
var u = new Date(w.expires);
|
|
2811
|
-
return
|
|
2811
|
+
return f ? await t.refreshAccessToken(w.refreshToken) : A < u ? w : await t.refreshAccessToken(w.refreshToken);
|
|
2812
2812
|
};
|
|
2813
|
-
const
|
|
2814
|
-
return t.refreshAccessToken = async function(
|
|
2815
|
-
if (
|
|
2816
|
-
return
|
|
2817
|
-
const
|
|
2818
|
-
return
|
|
2819
|
-
let
|
|
2813
|
+
const s = {};
|
|
2814
|
+
return t.refreshAccessToken = async function(f) {
|
|
2815
|
+
if (s.inflightRefreshRequest)
|
|
2816
|
+
return s.inflightRefreshRequest;
|
|
2817
|
+
const c = r.isCookieMode && r.isCookieMode();
|
|
2818
|
+
return s.inflightRefreshRequest = new Promise(function(p, w) {
|
|
2819
|
+
let A = {}, u = {
|
|
2820
2820
|
bypassInterceptor: !0,
|
|
2821
2821
|
withoutToken: !0
|
|
2822
2822
|
};
|
|
2823
|
-
if (
|
|
2823
|
+
if (c)
|
|
2824
2824
|
u.withCredentials = !0;
|
|
2825
2825
|
else {
|
|
2826
|
-
if (!
|
|
2827
|
-
return
|
|
2828
|
-
|
|
2826
|
+
if (!f)
|
|
2827
|
+
return s.inflightRefreshRequest = null, w(new Error("No refresh token provided for localStorage mode"));
|
|
2828
|
+
A.refreshToken = f;
|
|
2829
2829
|
}
|
|
2830
|
-
e.api.post("/user/refresh",
|
|
2831
|
-
if (!
|
|
2832
|
-
return
|
|
2833
|
-
if (t.set(
|
|
2834
|
-
|
|
2830
|
+
e.api.post("/user/refresh", A, u).then(function(m) {
|
|
2831
|
+
if (!m || !m.data)
|
|
2832
|
+
return s.inflightRefreshRequest = null, w(new Error("Invalid refresh response"));
|
|
2833
|
+
if (t.set(m.data), n(), c)
|
|
2834
|
+
p("cookie_token_refreshed");
|
|
2835
2835
|
else {
|
|
2836
|
-
const
|
|
2837
|
-
|
|
2836
|
+
const h = m.data.token?.accessToken;
|
|
2837
|
+
h ? p(h) : w(new Error("No access token in refresh response"));
|
|
2838
2838
|
}
|
|
2839
2839
|
setTimeout(function() {
|
|
2840
|
-
|
|
2840
|
+
s.inflightRefreshRequest = null;
|
|
2841
2841
|
});
|
|
2842
2842
|
}).catch(function(o) {
|
|
2843
2843
|
setTimeout(function() {
|
|
2844
|
-
|
|
2844
|
+
s.inflightRefreshRequest = null;
|
|
2845
2845
|
}), w(o);
|
|
2846
2846
|
});
|
|
2847
|
-
}),
|
|
2847
|
+
}), s.inflightRefreshRequest;
|
|
2848
2848
|
}, t.sync = function() {
|
|
2849
|
-
return e.api.get("/user").then(function(
|
|
2850
|
-
if (
|
|
2851
|
-
const
|
|
2852
|
-
if (
|
|
2853
|
-
const
|
|
2854
|
-
|
|
2849
|
+
return e.api.get("/user").then(function(f) {
|
|
2850
|
+
if (f.data) {
|
|
2851
|
+
const c = r.getUser();
|
|
2852
|
+
if (c) {
|
|
2853
|
+
const p = { ...c };
|
|
2854
|
+
p.session ? Object.assign(p.session, f.data) : p.session = f.data, t.set(p);
|
|
2855
2855
|
} else
|
|
2856
|
-
t.set(
|
|
2856
|
+
t.set(f.data);
|
|
2857
2857
|
} else
|
|
2858
2858
|
t.set(null);
|
|
2859
|
-
|
|
2860
|
-
}).catch(function(
|
|
2861
|
-
t.set(null),
|
|
2859
|
+
n();
|
|
2860
|
+
}).catch(function(f) {
|
|
2861
|
+
t.set(null), n();
|
|
2862
2862
|
});
|
|
2863
2863
|
}, t.getCurrentUser = function() {
|
|
2864
2864
|
return r.getUser();
|
|
2865
2865
|
}, t.getCurrentToken = function() {
|
|
2866
|
-
var
|
|
2867
|
-
if (
|
|
2868
|
-
return
|
|
2869
|
-
var
|
|
2870
|
-
if (!
|
|
2866
|
+
var f = r.getAccessToken();
|
|
2867
|
+
if (f)
|
|
2868
|
+
return f;
|
|
2869
|
+
var c = t.getCurrentUser();
|
|
2870
|
+
if (!c)
|
|
2871
2871
|
return e.applicationToken ? e.applicationToken : void 0;
|
|
2872
|
-
var { token:
|
|
2873
|
-
if (
|
|
2874
|
-
return
|
|
2872
|
+
var { token: p } = c;
|
|
2873
|
+
if (p)
|
|
2874
|
+
return p.accessToken;
|
|
2875
2875
|
}, e.api.interceptors.request.use(
|
|
2876
|
-
async function(
|
|
2877
|
-
if (
|
|
2878
|
-
return
|
|
2879
|
-
var
|
|
2876
|
+
async function(f) {
|
|
2877
|
+
if (f.bypassInterceptor)
|
|
2878
|
+
return f;
|
|
2879
|
+
var c = f;
|
|
2880
2880
|
if (r.isCookieMode && r.isCookieMode())
|
|
2881
|
-
return
|
|
2882
|
-
var w = t.getCurrentUser(),
|
|
2881
|
+
return c.withCredentials || (c.withCredentials = !0), c;
|
|
2882
|
+
var w = t.getCurrentUser(), A, u, o;
|
|
2883
2883
|
if (w) {
|
|
2884
|
-
var { token:
|
|
2885
|
-
|
|
2884
|
+
var { token: m } = w;
|
|
2885
|
+
m && (A = m.accessToken, u = m.refreshToken, o = m.expires);
|
|
2886
2886
|
}
|
|
2887
|
-
if (
|
|
2888
|
-
|
|
2887
|
+
if (A)
|
|
2888
|
+
c.headers.Authorization = `Bearer ${A}`;
|
|
2889
2889
|
else
|
|
2890
|
-
return
|
|
2890
|
+
return c;
|
|
2891
2891
|
if (!u)
|
|
2892
|
-
return
|
|
2893
|
-
var
|
|
2894
|
-
|
|
2895
|
-
var
|
|
2896
|
-
return
|
|
2892
|
+
return c;
|
|
2893
|
+
var h = /* @__PURE__ */ new Date();
|
|
2894
|
+
h.setSeconds(h.getSeconds() + i);
|
|
2895
|
+
var d = new Date(o);
|
|
2896
|
+
return h < d ? c : new Promise(async function(l, v) {
|
|
2897
2897
|
await t.refreshAccessToken(u).then(function(S) {
|
|
2898
|
-
return
|
|
2898
|
+
return c.headers.Authorization = `Bearer ${S}`, l(c);
|
|
2899
2899
|
}).catch(function(S) {
|
|
2900
|
-
return
|
|
2900
|
+
return v(S);
|
|
2901
2901
|
});
|
|
2902
2902
|
});
|
|
2903
2903
|
},
|
|
2904
|
-
function(
|
|
2905
|
-
return Promise.reject(
|
|
2904
|
+
function(f) {
|
|
2905
|
+
return Promise.reject(f);
|
|
2906
2906
|
}
|
|
2907
|
-
), e.api.interceptors.response.use(function(
|
|
2908
|
-
return
|
|
2909
|
-
}, function(
|
|
2910
|
-
var
|
|
2911
|
-
switch (
|
|
2907
|
+
), e.api.interceptors.response.use(function(f) {
|
|
2908
|
+
return f;
|
|
2909
|
+
}, function(f) {
|
|
2910
|
+
var c = f && f.response && f.response.status || f.status;
|
|
2911
|
+
switch (c) {
|
|
2912
2912
|
case 401:
|
|
2913
2913
|
t.logout();
|
|
2914
2914
|
break;
|
|
2915
2915
|
}
|
|
2916
|
-
return Promise.reject(
|
|
2916
|
+
return Promise.reject(f);
|
|
2917
2917
|
}), t;
|
|
2918
2918
|
}, q = {};
|
|
2919
2919
|
function pr(e) {
|
|
@@ -2922,7 +2922,7 @@ function pr(e) {
|
|
|
2922
2922
|
var r = typeof e > "u" || e === null || String(e).trim() === "";
|
|
2923
2923
|
return !!(r || e === "undefined" || e === "null");
|
|
2924
2924
|
}
|
|
2925
|
-
function
|
|
2925
|
+
function Wr(e) {
|
|
2926
2926
|
return !pr(e);
|
|
2927
2927
|
}
|
|
2928
2928
|
q.cleanKey = function(e) {
|
|
@@ -2951,59 +2951,59 @@ q.isValidFilter = function(e) {
|
|
|
2951
2951
|
case "datethismonth":
|
|
2952
2952
|
return !0;
|
|
2953
2953
|
}
|
|
2954
|
-
var
|
|
2955
|
-
return !pr(e.value) || !pr(e.value2) ||
|
|
2954
|
+
var i = (e.values || []).filter(Wr);
|
|
2955
|
+
return !pr(e.value) || !pr(e.value2) || i.length;
|
|
2956
2956
|
};
|
|
2957
2957
|
q.activeFilters = function(e) {
|
|
2958
2958
|
var r = [];
|
|
2959
|
-
return
|
|
2960
|
-
function
|
|
2959
|
+
return i(e, r), r;
|
|
2960
|
+
function i(t, a) {
|
|
2961
2961
|
if (t) {
|
|
2962
|
-
var
|
|
2963
|
-
|
|
2964
|
-
|
|
2962
|
+
var n = q.isValidFilter(t);
|
|
2963
|
+
n && a.push(t), t.filters && t.filters.length && t.filters.forEach(function(s) {
|
|
2964
|
+
i(s, a);
|
|
2965
2965
|
});
|
|
2966
2966
|
}
|
|
2967
2967
|
}
|
|
2968
2968
|
};
|
|
2969
2969
|
q.activeFilterKeys = function(e, r) {
|
|
2970
2970
|
r = r || {};
|
|
2971
|
-
var
|
|
2972
|
-
return !
|
|
2973
|
-
}).reduce(function(
|
|
2974
|
-
var
|
|
2975
|
-
return r.trimArrayDelimeters !== !1 && (
|
|
2976
|
-
}, {}),
|
|
2977
|
-
return
|
|
2971
|
+
var i = q.activeFilters(e), t = i.filter(function(n) {
|
|
2972
|
+
return !n.operator;
|
|
2973
|
+
}).reduce(function(n, s) {
|
|
2974
|
+
var f = q.cleanKey(s.key);
|
|
2975
|
+
return r.trimArrayDelimeters !== !1 && (f = f.split("[]").join("")), n[f] = !0, n;
|
|
2976
|
+
}, {}), a = Object.keys(t);
|
|
2977
|
+
return a;
|
|
2978
2978
|
};
|
|
2979
2979
|
q.activeFilterComparators = function(e) {
|
|
2980
|
-
var r = q.activeFilters(e).filter(function(
|
|
2981
|
-
return !
|
|
2982
|
-
}).reduce(function(
|
|
2983
|
-
return
|
|
2980
|
+
var r = q.activeFilters(e).filter(function(i) {
|
|
2981
|
+
return !i.operator;
|
|
2982
|
+
}).reduce(function(i, t) {
|
|
2983
|
+
return i[t.comparator] = !0, i;
|
|
2984
2984
|
}, {});
|
|
2985
2985
|
return Object.keys(r);
|
|
2986
2986
|
};
|
|
2987
2987
|
q.activeFilterOperators = function(e) {
|
|
2988
|
-
var r = q.activeFilters(e).filter(function(
|
|
2989
|
-
return
|
|
2990
|
-
}).reduce(function(
|
|
2991
|
-
return
|
|
2988
|
+
var r = q.activeFilters(e).filter(function(i) {
|
|
2989
|
+
return i.operator;
|
|
2990
|
+
}).reduce(function(i, t) {
|
|
2991
|
+
return i[t.operator] = !0, i;
|
|
2992
2992
|
}, {});
|
|
2993
2993
|
return Object.keys(r);
|
|
2994
2994
|
};
|
|
2995
2995
|
q.activeFilterValues = function(e, r) {
|
|
2996
|
-
var
|
|
2997
|
-
function t(
|
|
2998
|
-
if (
|
|
2999
|
-
return
|
|
2996
|
+
var i = q.activeFilters(e);
|
|
2997
|
+
function t(n) {
|
|
2998
|
+
if (n)
|
|
2999
|
+
return n._id || n.id || n.title || n.name || n;
|
|
3000
3000
|
}
|
|
3001
|
-
var
|
|
3002
|
-
return !
|
|
3003
|
-
}).reduce(function(
|
|
3004
|
-
return
|
|
3005
|
-
}, []).filter(
|
|
3006
|
-
return
|
|
3001
|
+
var a = i.filter(function(n) {
|
|
3002
|
+
return !n.operator;
|
|
3003
|
+
}).reduce(function(n, s) {
|
|
3004
|
+
return n = [...n, ...(s.values || []).map(t), t(s.value), t(s.value2)], n;
|
|
3005
|
+
}, []).filter(Wr);
|
|
3006
|
+
return a;
|
|
3007
3007
|
};
|
|
3008
3008
|
q.filterChangeString = function(e) {
|
|
3009
3009
|
var r = q.activeFilters(e);
|
|
@@ -3011,23 +3011,23 @@ q.filterChangeString = function(e) {
|
|
|
3011
3011
|
};
|
|
3012
3012
|
function Ot(e) {
|
|
3013
3013
|
var r = {};
|
|
3014
|
-
return r.downloadUrl = function(
|
|
3015
|
-
return
|
|
3016
|
-
}, r.duration = function(
|
|
3017
|
-
const t = Math.round(
|
|
3018
|
-
return
|
|
3019
|
-
}, r.mediaUrl = function(
|
|
3020
|
-
|
|
3021
|
-
let
|
|
3022
|
-
return
|
|
3023
|
-
}, r.filesize = function(
|
|
3024
|
-
if (
|
|
3025
|
-
var
|
|
3026
|
-
return parseFloat((
|
|
3027
|
-
}, r.getBinaryTypeFromMime = function(
|
|
3028
|
-
if (!
|
|
3014
|
+
return r.downloadUrl = function(i, t, a, n) {
|
|
3015
|
+
return n = n || {}, a = a || {}, a.download = !0, t = e.utils.id(t), e.api.generateEndpointURL(`/${i}/${t}`, a, n);
|
|
3016
|
+
}, r.duration = function(i) {
|
|
3017
|
+
const t = Math.round(i), a = Math.floor(t / 3600), n = Math.floor(t % 3600 / 60), s = t % 60;
|
|
3018
|
+
return a > 0 ? `${a}:${n.toString().padStart(2, "0")}:${s.toString().padStart(2, "0")}` : `${n}:${s.toString().padStart(2, "0")}`;
|
|
3019
|
+
}, r.mediaUrl = function(i, t, a, n) {
|
|
3020
|
+
n = n || {}, a = a || {}, t = e.utils.id(t);
|
|
3021
|
+
let s = `/${i}/${t}`;
|
|
3022
|
+
return n.extension?.length && (n.extension.includes(".") ? s = `${s}/${n.extension}` : s = `${s}/${i}.${n.extension}`), e.api.generateEndpointURL(s, a, n);
|
|
3023
|
+
}, r.filesize = function(i, t) {
|
|
3024
|
+
if (i == 0) return "0 Bytes";
|
|
3025
|
+
var a = 1024, n = t || 2, s = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], f = Math.floor(Math.log(i) / Math.log(a));
|
|
3026
|
+
return parseFloat((i / Math.pow(a, f)).toFixed(n)) + " " + s[f];
|
|
3027
|
+
}, r.getBinaryTypeFromMime = function(i) {
|
|
3028
|
+
if (!i)
|
|
3029
3029
|
return "file";
|
|
3030
|
-
switch (
|
|
3030
|
+
switch (i) {
|
|
3031
3031
|
case "image/jpeg":
|
|
3032
3032
|
case "image/png":
|
|
3033
3033
|
case "image/gif":
|
|
@@ -3050,7 +3050,7 @@ function Ot(e) {
|
|
|
3050
3050
|
case "audio/webm":
|
|
3051
3051
|
return "audio";
|
|
3052
3052
|
default:
|
|
3053
|
-
var t =
|
|
3053
|
+
var t = i.split("/")[0];
|
|
3054
3054
|
switch (t) {
|
|
3055
3055
|
case "image":
|
|
3056
3056
|
case "video":
|
|
@@ -3094,218 +3094,227 @@ var Ue = {}, Ct = {
|
|
|
3094
3094
|
"Can't Instantiate QikAccess before QikCore.utils has been initialized"
|
|
3095
3095
|
);
|
|
3096
3096
|
var r = {};
|
|
3097
|
-
|
|
3098
|
-
const
|
|
3099
|
-
return
|
|
3097
|
+
r.hasFeature = function(a, n) {
|
|
3098
|
+
const s = a?.organisation?.features || {};
|
|
3099
|
+
return s.all ? !0 : !!s[n];
|
|
3100
3100
|
}, r.isAdministrator = function(a) {
|
|
3101
3101
|
return a && a?.userType == "administrator";
|
|
3102
3102
|
}, r.getAllDescendants = function(a) {
|
|
3103
|
-
var
|
|
3104
|
-
|
|
3105
|
-
function
|
|
3106
|
-
var
|
|
3107
|
-
|
|
3108
|
-
|
|
3103
|
+
var n = /* @__PURE__ */ new Set();
|
|
3104
|
+
s(a);
|
|
3105
|
+
function s(f) {
|
|
3106
|
+
var c = e.utils.id(f);
|
|
3107
|
+
n.add(c), (f.children || []).forEach(function(p) {
|
|
3108
|
+
s(p);
|
|
3109
3109
|
});
|
|
3110
3110
|
}
|
|
3111
|
-
return
|
|
3112
|
-
}
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3111
|
+
return Array.from(n);
|
|
3112
|
+
};
|
|
3113
|
+
var i = 5e3, t = null;
|
|
3114
|
+
return r.hashPermissions = function(a) {
|
|
3115
|
+
var n = a?.cacheKey;
|
|
3116
|
+
if (n && t && t.key === n && Date.now() - t.at < i)
|
|
3117
|
+
return t.value;
|
|
3118
|
+
var s = /* @__PURE__ */ new Map();
|
|
3119
|
+
for (var f in a?.permissions || {}) {
|
|
3120
|
+
var c = a?.permissions[f], p = r.getAllDescendants(c);
|
|
3121
|
+
(c.permissions || []).forEach(function(A) {
|
|
3122
|
+
var u = s.get(A);
|
|
3123
|
+
u || (u = /* @__PURE__ */ new Set(), s.set(A, u));
|
|
3124
|
+
for (var o = 0; o < p.length; o++)
|
|
3125
|
+
u.add(p[o]);
|
|
3120
3126
|
});
|
|
3121
3127
|
}
|
|
3122
|
-
|
|
3128
|
+
var w = {};
|
|
3129
|
+
return s.forEach(function(A, u) {
|
|
3130
|
+
w[u] = Array.from(A);
|
|
3131
|
+
}), n && (t = { key: n, value: w, at: Date.now() }), w;
|
|
3123
3132
|
}, r.allUserScopes = function(a) {
|
|
3124
|
-
var
|
|
3125
|
-
function
|
|
3126
|
-
if (
|
|
3127
|
-
var
|
|
3128
|
-
|
|
3129
|
-
|
|
3133
|
+
var n = {}, s = a?.permissions || {};
|
|
3134
|
+
function f(p) {
|
|
3135
|
+
if (p) {
|
|
3136
|
+
var w = e.utils.id(p);
|
|
3137
|
+
w && (n[w] = 1, p.children && p.children.length && p.children.forEach(function(A) {
|
|
3138
|
+
f(A);
|
|
3130
3139
|
}));
|
|
3131
3140
|
}
|
|
3132
3141
|
}
|
|
3133
|
-
for (var
|
|
3134
|
-
|
|
3135
|
-
return Object.keys(
|
|
3136
|
-
}, r.actionableScopes = function(a,
|
|
3137
|
-
|
|
3138
|
-
var
|
|
3142
|
+
for (var c in s)
|
|
3143
|
+
f(s[c]);
|
|
3144
|
+
return Object.keys(n);
|
|
3145
|
+
}, r.actionableScopes = function(a, n, s, f, c) {
|
|
3146
|
+
c = c || {};
|
|
3147
|
+
var p = [];
|
|
3139
3148
|
if (a?.userType == "administrator")
|
|
3140
|
-
|
|
3149
|
+
p = r.allUserScopes(a, c);
|
|
3141
3150
|
else {
|
|
3142
|
-
var
|
|
3143
|
-
if (!
|
|
3144
|
-
return
|
|
3145
|
-
let
|
|
3146
|
-
|
|
3151
|
+
var w = r.hashPermissions(a), A = s || f;
|
|
3152
|
+
if (!A)
|
|
3153
|
+
return p;
|
|
3154
|
+
let u = s ? w[`${s}.${n}`] || [] : [], o = f ? w[`${f}.${n}`] || [] : [];
|
|
3155
|
+
p = [...u, ...o];
|
|
3147
3156
|
}
|
|
3148
|
-
return
|
|
3149
|
-
}, r.isOwner = function(a,
|
|
3150
|
-
var
|
|
3151
|
-
if (!
|
|
3157
|
+
return p || [];
|
|
3158
|
+
}, r.isOwner = function(a, n) {
|
|
3159
|
+
var s = e.utils.id(a), f = e.utils.id(a?.persona), c = n.meta;
|
|
3160
|
+
if (!c)
|
|
3152
3161
|
return !1;
|
|
3153
|
-
var
|
|
3154
|
-
if (
|
|
3162
|
+
var p = c.userOwners || [], w = e.utils.ids([...p, c.userAuthor]), A = e.utils.hash(w);
|
|
3163
|
+
if (A[s])
|
|
3155
3164
|
return !0;
|
|
3156
|
-
var
|
|
3157
|
-
...
|
|
3158
|
-
|
|
3159
|
-
]),
|
|
3160
|
-
return
|
|
3161
|
-
}, r.isAssignee = function(a,
|
|
3162
|
-
const
|
|
3163
|
-
if (!
|
|
3165
|
+
var u = c.personaOwners || [], o = e.utils.ids([
|
|
3166
|
+
...u,
|
|
3167
|
+
c.personaAuthor
|
|
3168
|
+
]), m = e.utils.hash(o);
|
|
3169
|
+
return m[f] ? !0 : r.isAssignee(a, n);
|
|
3170
|
+
}, r.isAssignee = function(a, n) {
|
|
3171
|
+
const s = e.utils.ids(a?.profiles);
|
|
3172
|
+
if (!s.length)
|
|
3164
3173
|
return !1;
|
|
3165
|
-
const
|
|
3166
|
-
if (!
|
|
3174
|
+
const f = e.utils.ids(n.assignees);
|
|
3175
|
+
if (!f.length)
|
|
3167
3176
|
return !1;
|
|
3168
|
-
const
|
|
3169
|
-
return !!
|
|
3177
|
+
const c = new Set(f);
|
|
3178
|
+
return !!s.filter((A) => c.has(A)).length;
|
|
3170
3179
|
}, r.allPermissions = function(a) {
|
|
3171
|
-
var
|
|
3172
|
-
return
|
|
3180
|
+
var n = Object.values(a?.permissions || {}).map(function(s) {
|
|
3181
|
+
return s.permissions;
|
|
3173
3182
|
}).flat();
|
|
3174
|
-
return
|
|
3175
|
-
}, r.allPermissionTypes = function(a,
|
|
3176
|
-
return
|
|
3177
|
-
var
|
|
3178
|
-
return
|
|
3179
|
-
}, {}) : r.allPermissions(a).map(function(
|
|
3180
|
-
return
|
|
3183
|
+
return n;
|
|
3184
|
+
}, r.allPermissionTypes = function(a, n) {
|
|
3185
|
+
return n ? r.allPermissions(a).reduce(function(s, f) {
|
|
3186
|
+
var c = f.split(".")[0];
|
|
3187
|
+
return s[c] = !0, s;
|
|
3188
|
+
}, {}) : r.allPermissions(a).map(function(s) {
|
|
3189
|
+
return s.split(".")[0];
|
|
3181
3190
|
});
|
|
3182
|
-
}, r.canKnowOf = function(a,
|
|
3183
|
-
return
|
|
3184
|
-
}, r.checkActionAccess = function(a,
|
|
3185
|
-
if (
|
|
3191
|
+
}, r.canKnowOf = function(a, n, s) {
|
|
3192
|
+
return s = s || {}, s.cache = s.cache || {}, r.allPermissionTypes(a, !0)[n];
|
|
3193
|
+
}, r.checkActionAccess = function(a, n, s, f, c) {
|
|
3194
|
+
if (c = c || {}, c.cache = c.cache || {}, r.isAdministrator(a))
|
|
3186
3195
|
return !0;
|
|
3187
|
-
var
|
|
3188
|
-
if (!
|
|
3196
|
+
var p = n.meta?.type, w = n.meta?.definition || p;
|
|
3197
|
+
if (!w)
|
|
3189
3198
|
return !1;
|
|
3190
|
-
if ((
|
|
3191
|
-
var
|
|
3192
|
-
return !!a.permissions[
|
|
3199
|
+
if ((s == "listany" || f == "listown") && p === "scope") {
|
|
3200
|
+
var A = e.utils.id(n);
|
|
3201
|
+
return !!a.permissions[A];
|
|
3193
3202
|
}
|
|
3194
|
-
var
|
|
3195
|
-
|
|
3196
|
-
...e.utils.ids(
|
|
3197
|
-
e.utils.id(
|
|
3203
|
+
var u = e.utils.ids(n.meta.scopes || []);
|
|
3204
|
+
p === "scope" && (u = [
|
|
3205
|
+
...e.utils.ids(n.path || []),
|
|
3206
|
+
e.utils.id(n)
|
|
3198
3207
|
]);
|
|
3199
|
-
var
|
|
3200
|
-
if (
|
|
3201
|
-
|
|
3208
|
+
var o, m = `access-${a?.cacheKey}-${s}-${w}-${p}`;
|
|
3209
|
+
if (c.cache[m])
|
|
3210
|
+
o = c.cache[m];
|
|
3202
3211
|
else {
|
|
3203
|
-
var
|
|
3204
|
-
r.actionableScopes(a,
|
|
3212
|
+
var h = e.utils.ids(
|
|
3213
|
+
r.actionableScopes(a, s, w, p, c)
|
|
3205
3214
|
);
|
|
3206
|
-
|
|
3215
|
+
o = e.utils.hash(h), c.cache[m] = o;
|
|
3207
3216
|
}
|
|
3208
|
-
if (
|
|
3209
|
-
var
|
|
3210
|
-
return
|
|
3217
|
+
if (o) {
|
|
3218
|
+
var d = u.some(function(T) {
|
|
3219
|
+
return o[T];
|
|
3211
3220
|
});
|
|
3212
|
-
if (
|
|
3221
|
+
if (d)
|
|
3213
3222
|
return !0;
|
|
3214
3223
|
}
|
|
3215
|
-
var
|
|
3216
|
-
if (
|
|
3217
|
-
var
|
|
3218
|
-
if (
|
|
3219
|
-
|
|
3224
|
+
var l = r.isOwner(a, n);
|
|
3225
|
+
if (l) {
|
|
3226
|
+
var v, S = `access-${a?.cacheKey}-${f}-${w}-${p}`;
|
|
3227
|
+
if (c.cache[S])
|
|
3228
|
+
v = c.cache[S];
|
|
3220
3229
|
else {
|
|
3221
|
-
var
|
|
3222
|
-
r.actionableScopes(a,
|
|
3230
|
+
var O = e.utils.ids(
|
|
3231
|
+
r.actionableScopes(a, f, w, p, c)
|
|
3223
3232
|
);
|
|
3224
|
-
|
|
3233
|
+
v = e.utils.hash(O), c.cache[S] = v;
|
|
3225
3234
|
}
|
|
3226
|
-
if (
|
|
3227
|
-
var
|
|
3228
|
-
return
|
|
3235
|
+
if (v) {
|
|
3236
|
+
var x = u.some(function(T) {
|
|
3237
|
+
return v[T];
|
|
3229
3238
|
});
|
|
3230
|
-
if (
|
|
3239
|
+
if (x)
|
|
3231
3240
|
return !0;
|
|
3232
3241
|
}
|
|
3233
3242
|
}
|
|
3234
3243
|
return !1;
|
|
3235
|
-
}, r.has = function(a,
|
|
3244
|
+
}, r.has = function(a, n) {
|
|
3236
3245
|
if (r.isAdministrator(a))
|
|
3237
3246
|
return !0;
|
|
3238
|
-
var
|
|
3239
|
-
return n
|
|
3240
|
-
}, r.canCreate = function(a,
|
|
3241
|
-
if (
|
|
3247
|
+
var s = r.hashPermissions(a);
|
|
3248
|
+
return s[n];
|
|
3249
|
+
}, r.canCreate = function(a, n, s, f) {
|
|
3250
|
+
if (f = f || {}, f.cache = f.cache || {}, r.isAdministrator(a))
|
|
3242
3251
|
return !0;
|
|
3243
|
-
var
|
|
3252
|
+
var c = r.actionableScopes(
|
|
3244
3253
|
a,
|
|
3245
3254
|
"create",
|
|
3246
|
-
|
|
3247
|
-
|
|
3255
|
+
n,
|
|
3256
|
+
s
|
|
3248
3257
|
);
|
|
3249
|
-
return
|
|
3250
|
-
}, r.canListItem = function(a,
|
|
3251
|
-
|
|
3252
|
-
var
|
|
3258
|
+
return c.length;
|
|
3259
|
+
}, r.canListItem = function(a, n, s) {
|
|
3260
|
+
s = s || {}, s.cache = s.cache || {};
|
|
3261
|
+
var f = r.checkActionAccess(
|
|
3253
3262
|
a,
|
|
3254
|
-
|
|
3263
|
+
n,
|
|
3255
3264
|
"listany",
|
|
3256
3265
|
"listown",
|
|
3257
|
-
|
|
3266
|
+
s
|
|
3258
3267
|
);
|
|
3259
|
-
if (
|
|
3268
|
+
if (f)
|
|
3260
3269
|
return !0;
|
|
3261
|
-
var
|
|
3262
|
-
return !!
|
|
3263
|
-
}, r.canViewItem = function(a,
|
|
3264
|
-
|
|
3265
|
-
var
|
|
3270
|
+
var c = r.canViewItem(a, n, s);
|
|
3271
|
+
return !!c;
|
|
3272
|
+
}, r.canViewItem = function(a, n, s) {
|
|
3273
|
+
s = s || {}, s.cache = s.cache || {};
|
|
3274
|
+
var f = r.checkActionAccess(
|
|
3266
3275
|
a,
|
|
3267
|
-
|
|
3276
|
+
n,
|
|
3268
3277
|
"viewany",
|
|
3269
3278
|
"viewOwn",
|
|
3270
|
-
|
|
3279
|
+
s
|
|
3271
3280
|
);
|
|
3272
|
-
if (
|
|
3281
|
+
if (f)
|
|
3273
3282
|
return !0;
|
|
3274
|
-
var
|
|
3275
|
-
return !!
|
|
3276
|
-
}, r.canEditItem = function(a,
|
|
3277
|
-
|
|
3278
|
-
var
|
|
3283
|
+
var c = r.canEditItem(a, n, s);
|
|
3284
|
+
return !!c;
|
|
3285
|
+
}, r.canEditItem = function(a, n, s) {
|
|
3286
|
+
s = s || {}, s.cache = s.cache || {};
|
|
3287
|
+
var f = r.checkActionAccess(
|
|
3279
3288
|
a,
|
|
3280
|
-
|
|
3289
|
+
n,
|
|
3281
3290
|
"editany",
|
|
3282
3291
|
"editown",
|
|
3283
|
-
|
|
3292
|
+
s
|
|
3284
3293
|
);
|
|
3285
|
-
return
|
|
3286
|
-
}, r.canDeleteItem = function(a,
|
|
3287
|
-
return
|
|
3294
|
+
return f;
|
|
3295
|
+
}, r.canDeleteItem = function(a, n, s) {
|
|
3296
|
+
return s = s || {}, s.cache = s.cache || {}, r.checkActionAccess(
|
|
3288
3297
|
a,
|
|
3289
|
-
|
|
3298
|
+
n,
|
|
3290
3299
|
"deleteany",
|
|
3291
3300
|
"deleteown",
|
|
3292
|
-
|
|
3301
|
+
s
|
|
3293
3302
|
);
|
|
3294
|
-
}, r.canRestoreItem = function(a,
|
|
3295
|
-
return
|
|
3303
|
+
}, r.canRestoreItem = function(a, n, s) {
|
|
3304
|
+
return s = s || {}, s.cache = s.cache || {}, r.checkActionAccess(
|
|
3296
3305
|
a,
|
|
3297
|
-
|
|
3306
|
+
n,
|
|
3298
3307
|
"restoreany",
|
|
3299
3308
|
"restoreown",
|
|
3300
|
-
|
|
3309
|
+
s
|
|
3301
3310
|
);
|
|
3302
|
-
}, r.canEraseItem = function(a,
|
|
3303
|
-
return
|
|
3311
|
+
}, r.canEraseItem = function(a, n, s) {
|
|
3312
|
+
return s = s || {}, s.cache = s.cache || {}, r.checkActionAccess(
|
|
3304
3313
|
a,
|
|
3305
|
-
|
|
3314
|
+
n,
|
|
3306
3315
|
"eraseany",
|
|
3307
3316
|
"eraseown",
|
|
3308
|
-
|
|
3317
|
+
s
|
|
3309
3318
|
);
|
|
3310
3319
|
}, r;
|
|
3311
3320
|
};
|
|
@@ -3316,142 +3325,142 @@ function It(e) {
|
|
|
3316
3325
|
debug: !1,
|
|
3317
3326
|
loadingGlossary: !1
|
|
3318
3327
|
};
|
|
3319
|
-
const
|
|
3328
|
+
const i = {};
|
|
3320
3329
|
let t;
|
|
3321
3330
|
r.variables = async function(u, o) {
|
|
3322
3331
|
o = o || {}, u = u || [];
|
|
3323
|
-
var
|
|
3324
|
-
if (
|
|
3332
|
+
var m = o.refresh || o.reload || !i.data;
|
|
3333
|
+
if (m) {
|
|
3325
3334
|
if (!t) {
|
|
3326
|
-
let
|
|
3335
|
+
let d = function() {
|
|
3327
3336
|
t = null;
|
|
3328
3337
|
};
|
|
3329
|
-
t = e.api.post("/variables", { keys: u }), t.then(
|
|
3338
|
+
t = e.api.post("/variables", { keys: u }), t.then(d, d);
|
|
3330
3339
|
}
|
|
3331
|
-
const { data:
|
|
3332
|
-
|
|
3340
|
+
const { data: h } = await t;
|
|
3341
|
+
i.data = h, e.dispatch("variables", h);
|
|
3333
3342
|
}
|
|
3334
|
-
return
|
|
3343
|
+
return i.data;
|
|
3335
3344
|
};
|
|
3336
|
-
const
|
|
3337
|
-
let
|
|
3338
|
-
function
|
|
3345
|
+
const a = e.cache.get("user:glossary");
|
|
3346
|
+
let n;
|
|
3347
|
+
function s() {
|
|
3339
3348
|
return new Promise((u) => {
|
|
3340
3349
|
typeof requestIdleCallback == "function" ? requestIdleCallback(u, { timeout: 50 }) : setTimeout(u, 0);
|
|
3341
3350
|
});
|
|
3342
3351
|
}
|
|
3343
|
-
async function
|
|
3344
|
-
function
|
|
3345
|
-
if (typeof
|
|
3346
|
-
return u[parseInt(
|
|
3347
|
-
if (Array.isArray(
|
|
3348
|
-
if (
|
|
3352
|
+
async function f({ _s: u, _k: o, types: m }) {
|
|
3353
|
+
function h(v) {
|
|
3354
|
+
if (typeof v == "string" && v[0] === "~")
|
|
3355
|
+
return u[parseInt(v.slice(1))];
|
|
3356
|
+
if (Array.isArray(v)) return v.map(h);
|
|
3357
|
+
if (v && typeof v == "object") {
|
|
3349
3358
|
const S = {};
|
|
3350
|
-
for (const [
|
|
3351
|
-
S[o[
|
|
3359
|
+
for (const [O, x] of Object.entries(v))
|
|
3360
|
+
S[o[O] || O] = h(x);
|
|
3352
3361
|
return S;
|
|
3353
3362
|
}
|
|
3354
|
-
return
|
|
3363
|
+
return v;
|
|
3355
3364
|
}
|
|
3356
|
-
const
|
|
3357
|
-
for (let
|
|
3358
|
-
const S =
|
|
3359
|
-
|
|
3365
|
+
const d = 50, l = [];
|
|
3366
|
+
for (let v = 0; v < m.length; v += d) {
|
|
3367
|
+
const S = m.slice(v, v + d);
|
|
3368
|
+
l.push(...S.map(h)), v + d < m.length && await s();
|
|
3360
3369
|
}
|
|
3361
|
-
return
|
|
3370
|
+
return l;
|
|
3362
3371
|
}
|
|
3363
3372
|
r.glossary = async function(u) {
|
|
3364
3373
|
u = u || {};
|
|
3365
|
-
let o =
|
|
3366
|
-
var
|
|
3367
|
-
if (
|
|
3368
|
-
if (!
|
|
3374
|
+
let o = a.get("glossary"), h = !!!u.uncompressed;
|
|
3375
|
+
var d = u.refresh || u.reload || !o;
|
|
3376
|
+
if (d) {
|
|
3377
|
+
if (!n) {
|
|
3369
3378
|
let x = function() {
|
|
3370
|
-
|
|
3379
|
+
n = null, r.loadingGlossary = !1;
|
|
3371
3380
|
};
|
|
3372
3381
|
r.loadingGlossary = !0;
|
|
3373
|
-
const
|
|
3374
|
-
|
|
3382
|
+
const O = h ? "/glossary/compressed" : "/glossary";
|
|
3383
|
+
n = e.api.get(O, { cache: !1 }), n.then(x, x);
|
|
3375
3384
|
}
|
|
3376
|
-
const { data:
|
|
3377
|
-
|
|
3385
|
+
const { data: v } = await n, S = v._s && v._k && v.types ? await f(v) : v;
|
|
3386
|
+
a.set("glossary", S), o = S, e.dispatch("glossary", S);
|
|
3378
3387
|
}
|
|
3379
3388
|
if (u.hash) {
|
|
3380
|
-
var
|
|
3381
|
-
return
|
|
3389
|
+
var l = e.utils.hash(o, "key");
|
|
3390
|
+
return l;
|
|
3382
3391
|
}
|
|
3383
3392
|
if (u.hex) {
|
|
3384
|
-
var
|
|
3385
|
-
return
|
|
3393
|
+
var l = e.utils.hash(o, "hex");
|
|
3394
|
+
return l;
|
|
3386
3395
|
}
|
|
3387
3396
|
return o;
|
|
3388
3397
|
};
|
|
3389
|
-
const
|
|
3390
|
-
let
|
|
3398
|
+
const c = {};
|
|
3399
|
+
let p;
|
|
3391
3400
|
r.scopeGlossary = async function(u) {
|
|
3392
3401
|
u = u || {};
|
|
3393
|
-
var o = u.refresh || u.reload || !
|
|
3402
|
+
var o = u.refresh || u.reload || !c.data;
|
|
3394
3403
|
if (o) {
|
|
3395
|
-
if (!
|
|
3396
|
-
let
|
|
3397
|
-
|
|
3404
|
+
if (!p) {
|
|
3405
|
+
let d = function() {
|
|
3406
|
+
p = null;
|
|
3398
3407
|
};
|
|
3399
|
-
|
|
3408
|
+
p = e.api.get("/scope/glossary", {
|
|
3400
3409
|
cache: !1
|
|
3401
|
-
}),
|
|
3410
|
+
}), p.then(d, d);
|
|
3402
3411
|
}
|
|
3403
|
-
const { data:
|
|
3404
|
-
|
|
3412
|
+
const { data: h } = await p;
|
|
3413
|
+
c.data = h;
|
|
3405
3414
|
}
|
|
3406
3415
|
if (u.hash) {
|
|
3407
|
-
var
|
|
3408
|
-
return
|
|
3416
|
+
var m = e.utils.hash(c.data, "_id");
|
|
3417
|
+
return m;
|
|
3409
3418
|
}
|
|
3410
|
-
return
|
|
3419
|
+
return c.data;
|
|
3411
3420
|
};
|
|
3412
3421
|
const w = {};
|
|
3413
3422
|
r.comparators = async function(u) {
|
|
3414
3423
|
u = u || {};
|
|
3415
3424
|
var o = u.reload || u.refresh || !w.data;
|
|
3416
3425
|
if (o) {
|
|
3417
|
-
const { data:
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
return
|
|
3426
|
+
const { data: m } = await e.api.get("/system/comparators");
|
|
3427
|
+
m.available = {}, Object.entries(m.types).forEach(([h, d]) => {
|
|
3428
|
+
m.available[h] = d.map(function(l) {
|
|
3429
|
+
return m.hash[l];
|
|
3421
3430
|
});
|
|
3422
|
-
}), w.data =
|
|
3431
|
+
}), w.data = m;
|
|
3423
3432
|
}
|
|
3424
3433
|
return w.data;
|
|
3425
3434
|
};
|
|
3426
|
-
function
|
|
3427
|
-
var { minimum: o, maximum:
|
|
3428
|
-
return o = e.utils.parseInt(o), o = Math.max(o, 0),
|
|
3429
|
-
}
|
|
3430
|
-
return r.meetsValidationRequirements = function(u, o,
|
|
3431
|
-
if (
|
|
3432
|
-
var
|
|
3433
|
-
if (
|
|
3434
|
-
return `Must be at least ${
|
|
3435
|
+
function A(u) {
|
|
3436
|
+
var { minimum: o, maximum: m } = u;
|
|
3437
|
+
return o = e.utils.parseInt(o), o = Math.max(o, 0), m = e.utils.parseInt(m), m = Math.max(m, 0), m == 0 || (m = Math.max(m, o)), { minimum: o, maximum: m };
|
|
3438
|
+
}
|
|
3439
|
+
return r.meetsValidationRequirements = function(u, o, m) {
|
|
3440
|
+
if (m.minLength) {
|
|
3441
|
+
var h = String(u).length;
|
|
3442
|
+
if (h < m.minLength)
|
|
3443
|
+
return `Must be at least ${m.minLength} characters`;
|
|
3435
3444
|
}
|
|
3436
|
-
if (
|
|
3437
|
-
var
|
|
3438
|
-
if (
|
|
3439
|
-
return `Can be no more than ${
|
|
3445
|
+
if (m.maxLength) {
|
|
3446
|
+
var h = String(u).length;
|
|
3447
|
+
if (h > m.maxLength)
|
|
3448
|
+
return `Can be no more than ${m.maxLength} characters`;
|
|
3440
3449
|
}
|
|
3441
|
-
if (
|
|
3442
|
-
var
|
|
3443
|
-
if (
|
|
3444
|
-
return `Must be at least ${
|
|
3450
|
+
if (m.minValue && u !== void 0) {
|
|
3451
|
+
var d = Number(u);
|
|
3452
|
+
if (d < m.minValue)
|
|
3453
|
+
return `Must be at least ${m.minValue}`;
|
|
3445
3454
|
}
|
|
3446
|
-
if (
|
|
3447
|
-
var
|
|
3448
|
-
if (
|
|
3449
|
-
return `Can be no greater than ${
|
|
3455
|
+
if (m.maxValue && u !== void 0) {
|
|
3456
|
+
var d = Number(u);
|
|
3457
|
+
if (d > m.maxValue)
|
|
3458
|
+
return `Can be no greater than ${m.maxValue}`;
|
|
3450
3459
|
}
|
|
3451
|
-
}, r.validateField = function(u, o,
|
|
3452
|
-
|
|
3453
|
-
var
|
|
3454
|
-
if (o.type === "boolean" && u !== !0 && (x = !1),
|
|
3460
|
+
}, r.validateField = function(u, o, m) {
|
|
3461
|
+
m = m || {};
|
|
3462
|
+
var h = o.type || "string", { minimum: d, maximum: l } = A(o), v = o.type == "group" && o.asObject, S = v ? d === l && l === 1 : l === 1, O = !S, x = e.utils.exists(u);
|
|
3463
|
+
if (o.type === "boolean" && u !== !0 && (x = !1), d) {
|
|
3455
3464
|
if (!x)
|
|
3456
3465
|
return {
|
|
3457
3466
|
valid: !1,
|
|
@@ -3462,11 +3471,11 @@ function It(e) {
|
|
|
3462
3471
|
return {
|
|
3463
3472
|
valid: !0
|
|
3464
3473
|
};
|
|
3465
|
-
if (
|
|
3474
|
+
if (O) {
|
|
3466
3475
|
if (!Array.isArray(u))
|
|
3467
|
-
return
|
|
3476
|
+
return d ? {
|
|
3468
3477
|
valid: !1,
|
|
3469
|
-
message: `${o.title} requires at least ${
|
|
3478
|
+
message: `${o.title} requires at least ${d} values`,
|
|
3470
3479
|
status: 400
|
|
3471
3480
|
} : (console.log("NOT PROVIDED AS ARRAY", o.title, u), {
|
|
3472
3481
|
valid: !1,
|
|
@@ -3474,42 +3483,42 @@ function It(e) {
|
|
|
3474
3483
|
status: 400
|
|
3475
3484
|
});
|
|
3476
3485
|
var T = u;
|
|
3477
|
-
if (T = T.filter(function(
|
|
3478
|
-
var
|
|
3479
|
-
return !
|
|
3480
|
-
}),
|
|
3486
|
+
if (T = T.filter(function(k) {
|
|
3487
|
+
var R = k == null || k === "";
|
|
3488
|
+
return !R;
|
|
3489
|
+
}), d == l && d && T.length != d)
|
|
3481
3490
|
return {
|
|
3482
3491
|
valid: !1,
|
|
3483
|
-
message: `${o.title} requires exactly ${
|
|
3492
|
+
message: `${o.title} requires exactly ${l} values`,
|
|
3484
3493
|
status: 400
|
|
3485
3494
|
};
|
|
3486
|
-
if (
|
|
3495
|
+
if (l && T.length > l)
|
|
3487
3496
|
return {
|
|
3488
3497
|
valid: !1,
|
|
3489
|
-
message: `${o.title} requires less than ${
|
|
3498
|
+
message: `${o.title} requires less than ${l + 1} values`,
|
|
3490
3499
|
status: 400
|
|
3491
3500
|
};
|
|
3492
|
-
if (T.length <
|
|
3501
|
+
if (T.length < d)
|
|
3493
3502
|
return {
|
|
3494
3503
|
valid: !1,
|
|
3495
|
-
message: `${o.title} requires at least ${
|
|
3504
|
+
message: `${o.title} requires at least ${d} values`,
|
|
3496
3505
|
status: 400
|
|
3497
3506
|
};
|
|
3498
3507
|
var N;
|
|
3499
|
-
if (T.find(function(
|
|
3500
|
-
var
|
|
3501
|
-
o.type === "group" && (
|
|
3508
|
+
if (T.find(function(k) {
|
|
3509
|
+
var R = h;
|
|
3510
|
+
o.type === "group" && (R = "object"), o.type === "reference" && o.widget === "form" && (R = "object");
|
|
3502
3511
|
var U = e.utils.isValidValue(
|
|
3503
|
-
R,
|
|
3504
3512
|
k,
|
|
3505
|
-
|
|
3513
|
+
R,
|
|
3514
|
+
m.strict
|
|
3506
3515
|
);
|
|
3507
3516
|
if (!U)
|
|
3508
3517
|
return N = !0, !0;
|
|
3509
3518
|
if (o.validation) {
|
|
3510
3519
|
var z = r.meetsValidationRequirements(
|
|
3511
|
-
|
|
3512
|
-
|
|
3520
|
+
k,
|
|
3521
|
+
h,
|
|
3513
3522
|
o.validation
|
|
3514
3523
|
);
|
|
3515
3524
|
if (z)
|
|
@@ -3522,12 +3531,12 @@ function It(e) {
|
|
|
3522
3531
|
status: 400
|
|
3523
3532
|
};
|
|
3524
3533
|
} else {
|
|
3525
|
-
var M =
|
|
3534
|
+
var M = h, V = o.widget;
|
|
3526
3535
|
M === "group" && (M = "object"), M === "reference" && V === "form" && (M = "object");
|
|
3527
|
-
var $ = r.getCleanedValue(u, M,
|
|
3536
|
+
var $ = r.getCleanedValue(u, M, m), L = e.utils.isValidValue(
|
|
3528
3537
|
$,
|
|
3529
3538
|
M,
|
|
3530
|
-
|
|
3539
|
+
m.strict
|
|
3531
3540
|
);
|
|
3532
3541
|
if (!L)
|
|
3533
3542
|
return {
|
|
@@ -3536,22 +3545,22 @@ function It(e) {
|
|
|
3536
3545
|
criteria: {
|
|
3537
3546
|
isValidValue: L,
|
|
3538
3547
|
cleanedValue: $,
|
|
3539
|
-
fieldType:
|
|
3540
|
-
options:
|
|
3548
|
+
fieldType: h,
|
|
3549
|
+
options: m
|
|
3541
3550
|
},
|
|
3542
3551
|
status: 400
|
|
3543
3552
|
};
|
|
3544
|
-
let
|
|
3545
|
-
const
|
|
3546
|
-
if (String(o.minValue) && (
|
|
3553
|
+
let k = !1;
|
|
3554
|
+
const R = {};
|
|
3555
|
+
if (String(o.minValue) && (R.minValue = parseInt(o.minValue), k = !0), String(o.maxValue) && (R.maxValue = parseInt(o.maxValue), k = !0), String(o.minLength) && (R.minLength = parseInt(o.minLength), k = !0), String(o.maxLength) && (R.maxLength = parseInt(o.maxLength), k = !0), k) {
|
|
3547
3556
|
const U = Object.assign(
|
|
3548
3557
|
{},
|
|
3549
|
-
|
|
3558
|
+
R,
|
|
3550
3559
|
o.validation || {}
|
|
3551
3560
|
);
|
|
3552
3561
|
var F = r.meetsValidationRequirements(
|
|
3553
3562
|
u,
|
|
3554
|
-
|
|
3563
|
+
h,
|
|
3555
3564
|
U
|
|
3556
3565
|
);
|
|
3557
3566
|
if (F)
|
|
@@ -3565,7 +3574,7 @@ function It(e) {
|
|
|
3565
3574
|
return {
|
|
3566
3575
|
valid: !0
|
|
3567
3576
|
};
|
|
3568
|
-
}, r.getCleanedValue = function(u, o,
|
|
3577
|
+
}, r.getCleanedValue = function(u, o, m) {
|
|
3569
3578
|
switch (o) {
|
|
3570
3579
|
case "number":
|
|
3571
3580
|
case "float":
|
|
@@ -3576,105 +3585,105 @@ function It(e) {
|
|
|
3576
3585
|
case "boolean":
|
|
3577
3586
|
return e.utils.exists(u) ? e.utils.parseBoolean(u) : void 0;
|
|
3578
3587
|
case "email":
|
|
3579
|
-
return
|
|
3588
|
+
return m.strict ? u : String(u).toLowerCase();
|
|
3580
3589
|
case "reference":
|
|
3581
|
-
return
|
|
3590
|
+
return m.strict ? u : e.utils.id(u);
|
|
3582
3591
|
default:
|
|
3583
|
-
return
|
|
3592
|
+
return m.strict ? u : e.utils.cleanValue(u, o, m);
|
|
3584
3593
|
}
|
|
3585
3594
|
return u;
|
|
3586
|
-
}, r.list = async function(u, o,
|
|
3587
|
-
|
|
3588
|
-
const
|
|
3589
|
-
if (
|
|
3590
|
-
|
|
3591
|
-
const
|
|
3592
|
-
return
|
|
3593
|
-
promise: e.api.post(
|
|
3595
|
+
}, r.list = async function(u, o, m) {
|
|
3596
|
+
m || (m = {});
|
|
3597
|
+
const h = m.remoteURL || `/content/${u}/list`;
|
|
3598
|
+
if (m.cancellable) {
|
|
3599
|
+
m.config || (m.config = {});
|
|
3600
|
+
const l = e.api.CancelToken.source();
|
|
3601
|
+
return m.config.cancelToken = l.token, {
|
|
3602
|
+
promise: e.api.post(h, o, m.config),
|
|
3594
3603
|
cancel(S) {
|
|
3595
|
-
|
|
3604
|
+
l.cancel(S || "Operation canceled by the user.");
|
|
3596
3605
|
}
|
|
3597
3606
|
};
|
|
3598
3607
|
} else {
|
|
3599
|
-
const { data:
|
|
3600
|
-
return
|
|
3608
|
+
const { data: d } = await e.api.post(h, o, m.config);
|
|
3609
|
+
return d;
|
|
3601
3610
|
}
|
|
3602
3611
|
}, r.create = async function(u, o) {
|
|
3603
|
-
const
|
|
3604
|
-
|
|
3605
|
-
const { data:
|
|
3606
|
-
return
|
|
3612
|
+
const m = { ...o };
|
|
3613
|
+
m.meta?.scopes && (m.meta.scopes = e.utils.ids(m.meta.scopes));
|
|
3614
|
+
const { data: h } = await e.api.post(`/content/${u}/create`, m);
|
|
3615
|
+
return h;
|
|
3607
3616
|
}, r.update = async function(u, o) {
|
|
3608
3617
|
u = e.utils.id(u);
|
|
3609
|
-
const
|
|
3610
|
-
|
|
3611
|
-
const { data:
|
|
3612
|
-
return
|
|
3618
|
+
const m = { ...o };
|
|
3619
|
+
m.meta?.scopes && (m.meta.scopes = e.utils.ids(m.meta.scopes));
|
|
3620
|
+
const { data: h } = await e.api.put(`/content/${u}`, m);
|
|
3621
|
+
return h;
|
|
3613
3622
|
}, r.patch = async function(u, o) {
|
|
3614
3623
|
u = e.utils.id(u);
|
|
3615
|
-
const
|
|
3616
|
-
|
|
3617
|
-
const { data:
|
|
3618
|
-
return
|
|
3624
|
+
const m = { ...o };
|
|
3625
|
+
m.meta?.scopes && (m.meta.scopes = e.utils.ids(m.meta.scopes));
|
|
3626
|
+
const { data: h } = await e.api.patch(`/content/${u}`, m);
|
|
3627
|
+
return h;
|
|
3619
3628
|
}, r.get = async function(u, o) {
|
|
3620
3629
|
u = e.utils.id(u), o = o || {};
|
|
3621
|
-
const { data:
|
|
3622
|
-
return
|
|
3630
|
+
const { data: m } = await e.api.get(`/content/${u}`, o);
|
|
3631
|
+
return m;
|
|
3623
3632
|
}, r.getFromID = async function(u) {
|
|
3624
3633
|
return r.get(u);
|
|
3625
3634
|
}, r.delete = async function(u, o) {
|
|
3626
3635
|
u = e.utils.id(u);
|
|
3627
|
-
const { data:
|
|
3628
|
-
return
|
|
3636
|
+
const { data: m } = await e.api.delete(`/content/${u}`, o);
|
|
3637
|
+
return m;
|
|
3629
3638
|
}, r.restore = async function(u, o) {
|
|
3630
3639
|
u = e.utils.id(u);
|
|
3631
|
-
const { data:
|
|
3632
|
-
return
|
|
3640
|
+
const { data: m } = await e.api.get(`/content/${u}/restore`, o);
|
|
3641
|
+
return m;
|
|
3633
3642
|
}, r.getFromSlug = async function(u) {
|
|
3634
3643
|
const { data: o } = await e.api.get(`/content/slug/${u}`);
|
|
3635
3644
|
return o;
|
|
3636
3645
|
}, r;
|
|
3637
3646
|
}
|
|
3638
3647
|
function Tt(e) {
|
|
3639
|
-
var r = {},
|
|
3648
|
+
var r = {}, i;
|
|
3640
3649
|
return r.countries = async function() {
|
|
3641
|
-
return
|
|
3642
|
-
e.api.get("/system/countries").then(function(
|
|
3643
|
-
return t(
|
|
3644
|
-
}).catch(
|
|
3645
|
-
})),
|
|
3650
|
+
return i || (i = new Promise(async function(t, a) {
|
|
3651
|
+
e.api.get("/system/countries").then(function(n) {
|
|
3652
|
+
return t(n.data);
|
|
3653
|
+
}).catch(a);
|
|
3654
|
+
})), i;
|
|
3646
3655
|
}, r;
|
|
3647
3656
|
}
|
|
3648
|
-
function
|
|
3657
|
+
function kt(e) {
|
|
3649
3658
|
var r = {};
|
|
3650
|
-
function
|
|
3659
|
+
function i() {
|
|
3651
3660
|
return !(typeof window > "u" || !window.navigator || !window.navigator.geolocation);
|
|
3652
3661
|
}
|
|
3653
|
-
return r.distance = function({ lat: t, lon:
|
|
3654
|
-
function
|
|
3655
|
-
return
|
|
3662
|
+
return r.distance = function({ lat: t, lon: a }, { lat: n, lon: s }) {
|
|
3663
|
+
function f(m) {
|
|
3664
|
+
return m * (Math.PI / 180);
|
|
3656
3665
|
}
|
|
3657
|
-
var
|
|
3666
|
+
var c = 6371e3, p = f(n - t), w = f(s - a), A = Math.sin(p / 2) * Math.sin(p / 2) + Math.cos(f(t)) * Math.cos(f(n)) * Math.sin(w / 2) * Math.sin(w / 2), u = 2 * Math.atan2(Math.sqrt(A), Math.sqrt(1 - A)), o = c * u;
|
|
3658
3667
|
return o;
|
|
3659
3668
|
}, r.getPosition = async function() {
|
|
3660
|
-
return
|
|
3661
|
-
navigator.geolocation.getCurrentPosition(t,
|
|
3669
|
+
return i() ? (console.log("qik:geo: getting location"), new Promise(function(t, a) {
|
|
3670
|
+
navigator.geolocation.getCurrentPosition(t, a);
|
|
3662
3671
|
})) : Promise.reject({ message: "Geolocation is not enabled" });
|
|
3663
3672
|
}, r.watchPosition = async function(t) {
|
|
3664
|
-
return
|
|
3665
|
-
const
|
|
3666
|
-
|
|
3667
|
-
id:
|
|
3673
|
+
return i() ? (console.log("qik:geo: watching location"), new Promise(function(a, n) {
|
|
3674
|
+
const s = navigator.geolocation.watchPosition(t, n);
|
|
3675
|
+
a({
|
|
3676
|
+
id: s
|
|
3668
3677
|
});
|
|
3669
3678
|
})) : Promise.reject({ message: "Geolocation is not enabled" });
|
|
3670
3679
|
}, r.stopWatchPosition = async function(t) {
|
|
3671
|
-
return
|
|
3680
|
+
return i() ? (console.log("qik:geo: watch stopped"), navigator.geolocation.clearWatch(this.watchID), !0) : Promise.reject({ message: "Geolocation is not enabled" });
|
|
3672
3681
|
}, r.getDefaultTimezone = function() {
|
|
3673
3682
|
const { session: t } = e.auth.getCurrentUser();
|
|
3674
3683
|
if (t) {
|
|
3675
|
-
const
|
|
3676
|
-
if (
|
|
3677
|
-
return
|
|
3684
|
+
const a = t?.organisation?.timezone;
|
|
3685
|
+
if (a)
|
|
3686
|
+
return a;
|
|
3678
3687
|
}
|
|
3679
3688
|
if (!(typeof window > "u") && window.Intl)
|
|
3680
3689
|
return window.Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
@@ -4377,117 +4386,117 @@ function Rt(e) {
|
|
|
4377
4386
|
], r.getDefaultCountry = function() {
|
|
4378
4387
|
const { session: t } = e.auth.getCurrentUser();
|
|
4379
4388
|
if (t) {
|
|
4380
|
-
const
|
|
4381
|
-
if (
|
|
4382
|
-
const
|
|
4389
|
+
const a = t?.organisation?.countryCode;
|
|
4390
|
+
if (a) {
|
|
4391
|
+
const n = r.countryLookup[a];
|
|
4383
4392
|
return {
|
|
4384
|
-
code:
|
|
4385
|
-
name:
|
|
4393
|
+
code: a,
|
|
4394
|
+
name: n
|
|
4386
4395
|
};
|
|
4387
4396
|
}
|
|
4388
4397
|
}
|
|
4389
4398
|
}, r;
|
|
4390
4399
|
}
|
|
4391
|
-
const
|
|
4400
|
+
const Rt = function(e, r) {
|
|
4392
4401
|
if (r = r || "production", !e.auth)
|
|
4393
4402
|
throw new Error("Can't Instantiate QikSocket before QikAuth exists");
|
|
4394
|
-
const
|
|
4403
|
+
const i = e.utils.guid();
|
|
4395
4404
|
let t = {
|
|
4396
4405
|
debug: !1,
|
|
4397
4406
|
url: `wss://iqtm6zjz3l.execute-api.ap-southeast-2.amazonaws.com/${r}`,
|
|
4398
4407
|
connected: !1,
|
|
4399
|
-
windowID:
|
|
4408
|
+
windowID: i,
|
|
4400
4409
|
autoreconnect: !0
|
|
4401
|
-
},
|
|
4402
|
-
const
|
|
4403
|
-
|
|
4404
|
-
if (
|
|
4405
|
-
return
|
|
4406
|
-
const
|
|
4407
|
-
function
|
|
4408
|
-
|
|
4410
|
+
}, a, n = {};
|
|
4411
|
+
const s = {}, f = new De();
|
|
4412
|
+
f.bootstrap(t), t.channel = async function(h) {
|
|
4413
|
+
if (n[h])
|
|
4414
|
+
return n[h];
|
|
4415
|
+
const d = new De();
|
|
4416
|
+
function l(v) {
|
|
4417
|
+
d.dispatch("message", v);
|
|
4409
4418
|
}
|
|
4410
|
-
return
|
|
4411
|
-
t.removeEventListener(
|
|
4412
|
-
},
|
|
4419
|
+
return d.destroy = function() {
|
|
4420
|
+
t.removeEventListener(h, l), t.unsubscribe(h), d.removeAllListeners(), delete n[h];
|
|
4421
|
+
}, n[h] = d, t.connected || await t.connect(), t.subscribe(h), t.addEventListener(h, l), n[h];
|
|
4413
4422
|
};
|
|
4414
|
-
function
|
|
4415
|
-
t.debug && console.log("[socket] Connection open",
|
|
4423
|
+
function c(h) {
|
|
4424
|
+
t.debug && console.log("[socket] Connection open", h), t.connected = !0, f.dispatch("connected", h), Object.keys(s).forEach(function(d) {
|
|
4416
4425
|
u({
|
|
4417
4426
|
action: "subscribe",
|
|
4418
|
-
channel:
|
|
4427
|
+
channel: d
|
|
4419
4428
|
});
|
|
4420
4429
|
});
|
|
4421
4430
|
}
|
|
4422
|
-
async function
|
|
4423
|
-
|
|
4431
|
+
async function p(h) {
|
|
4432
|
+
h.wasClean ? t.debug && console.log(`[socket] Connection closed cleanly, code=${h.code} reason=${h.reason}`) : t.debug && console.log("[socket] - connection closed due to error", h), t.connected = !1, f.dispatch("disconnected", h), a = null, t.autoreconnect && t.reconnect();
|
|
4424
4433
|
}
|
|
4425
|
-
function w(
|
|
4426
|
-
console.log("[event] socketError", event), t.debug && console.log("[socket] Error",
|
|
4434
|
+
function w(h) {
|
|
4435
|
+
console.log("[event] socketError", event), t.debug && console.log("[socket] Error", h), f.dispatch("error", h);
|
|
4427
4436
|
}
|
|
4428
|
-
function
|
|
4429
|
-
const
|
|
4430
|
-
t.debug && console.log("[socket] message received",
|
|
4437
|
+
function A(h) {
|
|
4438
|
+
const d = JSON.parse(h.data);
|
|
4439
|
+
t.debug && console.log("[socket] message received", d), f.dispatch("message", d), d.channel && f.dispatch(d.channel, d);
|
|
4431
4440
|
}
|
|
4432
|
-
async function u(
|
|
4433
|
-
if (!
|
|
4434
|
-
t.debug && console.log("[socket] - frame dropped, socket not open",
|
|
4441
|
+
async function u(h) {
|
|
4442
|
+
if (!a || a.readyState !== WebSocket.OPEN) {
|
|
4443
|
+
t.debug && console.log("[socket] - frame dropped, socket not open", h);
|
|
4435
4444
|
return;
|
|
4436
4445
|
}
|
|
4437
|
-
|
|
4446
|
+
a.send(JSON.stringify(h));
|
|
4438
4447
|
}
|
|
4439
4448
|
function o() {
|
|
4440
|
-
return new Promise(function(
|
|
4441
|
-
function
|
|
4449
|
+
return new Promise(function(h) {
|
|
4450
|
+
function d() {
|
|
4442
4451
|
if (t.connected)
|
|
4443
|
-
return
|
|
4444
|
-
setTimeout(
|
|
4452
|
+
return h(a);
|
|
4453
|
+
setTimeout(d, 1e3);
|
|
4445
4454
|
}
|
|
4446
|
-
|
|
4455
|
+
d();
|
|
4447
4456
|
});
|
|
4448
4457
|
}
|
|
4449
4458
|
t.connect = async function() {
|
|
4450
|
-
if (
|
|
4451
|
-
return
|
|
4452
|
-
const
|
|
4453
|
-
if (!
|
|
4459
|
+
if (a)
|
|
4460
|
+
return a.connected ? (console.log("[socket] - Socket is already connected"), a) : o();
|
|
4461
|
+
const h = e.auth.getCurrentToken();
|
|
4462
|
+
if (!h) {
|
|
4454
4463
|
t.debug && console.log("[socket] - Must be authenticated to connect to socket");
|
|
4455
4464
|
return;
|
|
4456
4465
|
}
|
|
4457
|
-
return
|
|
4466
|
+
return a = new WebSocket(`${t.url}?access_token=${h}&windowid=${i}`), a.addEventListener("close", p), a.addEventListener("error", w), a.addEventListener("open", c), a.addEventListener("message", A), t.debug && console.log("[socket] - Connected with event listeners"), o();
|
|
4458
4467
|
}, t.reconnect = async function() {
|
|
4459
4468
|
if (!t.connected)
|
|
4460
4469
|
return t.debug && console.log("[socket] reconnecting..."), await t.connect();
|
|
4461
4470
|
}, t.close = async function() {
|
|
4462
|
-
if (!
|
|
4471
|
+
if (!a) {
|
|
4463
4472
|
console.log("[socket] - Socket is not connected");
|
|
4464
4473
|
return;
|
|
4465
4474
|
}
|
|
4466
|
-
const
|
|
4467
|
-
t.autoreconnect = !1,
|
|
4468
|
-
}, t.disconnect = t.close, t.subscribe = async function(
|
|
4469
|
-
if (!
|
|
4475
|
+
const h = t.autoreconnect;
|
|
4476
|
+
t.autoreconnect = !1, a.close(), a.removeEventListener("close", p), a.removeEventListener("error", w), a.removeEventListener("open", c), a.removeEventListener("message", A), a = null, p({ wasClean: !0 }), t.autoreconnect = h;
|
|
4477
|
+
}, t.disconnect = t.close, t.subscribe = async function(h) {
|
|
4478
|
+
if (!a) {
|
|
4470
4479
|
console.log("[socket] - Can't subscribe to channel as socket is not connected");
|
|
4471
4480
|
return;
|
|
4472
4481
|
}
|
|
4473
4482
|
u({
|
|
4474
4483
|
action: "subscribe",
|
|
4475
|
-
channel:
|
|
4476
|
-
}),
|
|
4477
|
-
}, t.unsubscribe = async function(
|
|
4478
|
-
if (!
|
|
4484
|
+
channel: h
|
|
4485
|
+
}), s[h] = !0, f.dispatch("subscribe", h), t.debug && console.log(`[socket] - subscribed to ${h}`);
|
|
4486
|
+
}, t.unsubscribe = async function(h) {
|
|
4487
|
+
if (!a) {
|
|
4479
4488
|
console.log("[socket] - Can't unsubscribe from channel as socket is not connected");
|
|
4480
4489
|
return;
|
|
4481
4490
|
}
|
|
4482
4491
|
u({
|
|
4483
4492
|
action: "unsubscribe",
|
|
4484
|
-
channel:
|
|
4485
|
-
}), delete
|
|
4493
|
+
channel: h
|
|
4494
|
+
}), delete s[h], f.dispatch("unsubscribe", h), t.debug && console.log(`[socket] - unsubscribed from ${h}`);
|
|
4486
4495
|
};
|
|
4487
|
-
let
|
|
4488
|
-
return e.auth.addEventListener("change", async function(
|
|
4489
|
-
const
|
|
4490
|
-
|
|
4496
|
+
let m = e.utils.id(e.auth.getCurrentUser()?.organisation);
|
|
4497
|
+
return e.auth.addEventListener("change", async function(h) {
|
|
4498
|
+
const d = e.utils.id(h?.organisation);
|
|
4499
|
+
d !== m && (m = d, a && (t.debug && console.log("[socket] - organisation changed, reconnecting"), await t.close(), await t.reconnect()));
|
|
4491
4500
|
}), t;
|
|
4492
4501
|
};
|
|
4493
4502
|
function Ft(e) {
|
|
@@ -4522,28 +4531,28 @@ function Ft(e) {
|
|
|
4522
4531
|
value: q,
|
|
4523
4532
|
writable: !1
|
|
4524
4533
|
});
|
|
4525
|
-
const
|
|
4534
|
+
const n = new Ot(r);
|
|
4526
4535
|
Object.defineProperty(r, "files", {
|
|
4527
|
-
value:
|
|
4536
|
+
value: n,
|
|
4528
4537
|
writable: !1
|
|
4529
|
-
}), new De().bootstrap(r), r.error = function(
|
|
4530
|
-
return r.dispatch("error", t.errorMessage(
|
|
4531
|
-
}, r.notify = function(
|
|
4532
|
-
return r.dispatch("notification", { message:
|
|
4538
|
+
}), new De().bootstrap(r), r.error = function(m) {
|
|
4539
|
+
return r.dispatch("error", t.errorMessage(m));
|
|
4540
|
+
}, r.notify = function(m, h) {
|
|
4541
|
+
return r.dispatch("notification", { message: m, options: h });
|
|
4533
4542
|
};
|
|
4534
|
-
const
|
|
4543
|
+
const f = new mt(r);
|
|
4535
4544
|
Object.defineProperty(r, "api", {
|
|
4536
|
-
value:
|
|
4545
|
+
value: f,
|
|
4537
4546
|
writable: !1
|
|
4538
4547
|
});
|
|
4539
|
-
const
|
|
4548
|
+
const c = new Pt(r);
|
|
4540
4549
|
Object.defineProperty(r, "auth", {
|
|
4541
|
-
value:
|
|
4550
|
+
value: c,
|
|
4542
4551
|
writable: !1
|
|
4543
4552
|
});
|
|
4544
|
-
const
|
|
4553
|
+
const p = new Rt(r);
|
|
4545
4554
|
Object.defineProperty(r, "socket", {
|
|
4546
|
-
value:
|
|
4555
|
+
value: p,
|
|
4547
4556
|
writable: !1
|
|
4548
4557
|
});
|
|
4549
4558
|
const w = new Mt(r);
|
|
@@ -4551,12 +4560,12 @@ function Ft(e) {
|
|
|
4551
4560
|
value: w,
|
|
4552
4561
|
writable: !1
|
|
4553
4562
|
});
|
|
4554
|
-
const
|
|
4563
|
+
const A = new Tt(r);
|
|
4555
4564
|
Object.defineProperty(r, "system", {
|
|
4556
|
-
value:
|
|
4565
|
+
value: A,
|
|
4557
4566
|
writable: !1
|
|
4558
4567
|
});
|
|
4559
|
-
const u = new
|
|
4568
|
+
const u = new kt(r);
|
|
4560
4569
|
Object.defineProperty(r, "geo", {
|
|
4561
4570
|
value: u,
|
|
4562
4571
|
writable: !1
|