@qikdev/sdk 0.1.214 → 0.2.2
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 +1576 -1660
- package/package.json +1 -1
- package/src/api/qik.content.js +28 -254
- package/src/api/qik.utils.js +6 -2
- package/src/version.js +1 -1
package/dist/main.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import Ee from "axios";
|
|
2
|
-
import { Cache as
|
|
2
|
+
import { Cache as qr } from "axios-extensions";
|
|
3
3
|
var Ae = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4
4
|
function mr(e) {
|
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
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") {
|
|
@@ -28,9 +28,9 @@ function qr(e) {
|
|
|
28
28
|
});
|
|
29
29
|
}), a;
|
|
30
30
|
}
|
|
31
|
-
var
|
|
31
|
+
var Ze, xr;
|
|
32
32
|
function Qr() {
|
|
33
|
-
return
|
|
33
|
+
return xr || (xr = 1, Ze = function() {
|
|
34
34
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
35
35
|
return !1;
|
|
36
36
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -48,12 +48,12 @@ function Qr() {
|
|
|
48
48
|
if (o.length !== 1 || o[0] !== a || !Object.prototype.propertyIsEnumerable.call(r, a))
|
|
49
49
|
return !1;
|
|
50
50
|
if (typeof Object.getOwnPropertyDescriptor == "function") {
|
|
51
|
-
var
|
|
52
|
-
if (
|
|
51
|
+
var m = Object.getOwnPropertyDescriptor(r, a);
|
|
52
|
+
if (m.value !== n || m.enumerable !== !0)
|
|
53
53
|
return !1;
|
|
54
54
|
}
|
|
55
55
|
return !0;
|
|
56
|
-
}),
|
|
56
|
+
}), Ze;
|
|
57
57
|
}
|
|
58
58
|
var Qe, Cr;
|
|
59
59
|
function Yr() {
|
|
@@ -68,45 +68,45 @@ var Ye, Or;
|
|
|
68
68
|
function Xr() {
|
|
69
69
|
if (Or) return Ye;
|
|
70
70
|
Or = 1;
|
|
71
|
-
var e = "Function.prototype.bind called on incompatible ", r = Object.prototype.toString, a = Math.max, t = "[object Function]", n = function(
|
|
72
|
-
for (var
|
|
73
|
-
|
|
74
|
-
for (var
|
|
75
|
-
|
|
76
|
-
return
|
|
77
|
-
}, o = function(
|
|
78
|
-
for (var
|
|
79
|
-
|
|
80
|
-
return
|
|
81
|
-
},
|
|
82
|
-
for (var
|
|
83
|
-
|
|
84
|
-
return
|
|
71
|
+
var e = "Function.prototype.bind called on incompatible ", r = Object.prototype.toString, a = Math.max, t = "[object Function]", n = function(p, y) {
|
|
72
|
+
for (var w = [], A = 0; A < p.length; A += 1)
|
|
73
|
+
w[A] = p[A];
|
|
74
|
+
for (var u = 0; u < y.length; u += 1)
|
|
75
|
+
w[u + p.length] = y[u];
|
|
76
|
+
return w;
|
|
77
|
+
}, o = function(p, y) {
|
|
78
|
+
for (var w = [], A = y, u = 0; A < p.length; A += 1, u += 1)
|
|
79
|
+
w[u] = p[A];
|
|
80
|
+
return w;
|
|
81
|
+
}, m = function(l, p) {
|
|
82
|
+
for (var y = "", w = 0; w < l.length; w += 1)
|
|
83
|
+
y += l[w], w + 1 < l.length && (y += p);
|
|
84
|
+
return y;
|
|
85
85
|
};
|
|
86
|
-
return Ye = function(
|
|
87
|
-
var
|
|
88
|
-
if (typeof
|
|
89
|
-
throw new TypeError(e +
|
|
90
|
-
for (var
|
|
91
|
-
if (this instanceof
|
|
92
|
-
var
|
|
86
|
+
return Ye = function(p) {
|
|
87
|
+
var y = this;
|
|
88
|
+
if (typeof y != "function" || r.apply(y) !== t)
|
|
89
|
+
throw new TypeError(e + y);
|
|
90
|
+
for (var w = o(arguments, 1), A, u = function() {
|
|
91
|
+
if (this instanceof A) {
|
|
92
|
+
var c = y.apply(
|
|
93
93
|
this,
|
|
94
|
-
n(
|
|
94
|
+
n(w, arguments)
|
|
95
95
|
);
|
|
96
|
-
return Object(
|
|
96
|
+
return Object(c) === c ? c : this;
|
|
97
97
|
}
|
|
98
|
-
return
|
|
99
|
-
|
|
100
|
-
n(
|
|
98
|
+
return y.apply(
|
|
99
|
+
p,
|
|
100
|
+
n(w, arguments)
|
|
101
101
|
);
|
|
102
|
-
},
|
|
103
|
-
|
|
104
|
-
if (
|
|
105
|
-
var
|
|
102
|
+
}, s = a(0, y.length - w.length), i = [], S = 0; S < s; S++)
|
|
103
|
+
i[S] = "$" + S;
|
|
104
|
+
if (A = Function("binder", "return function (" + m(i, ",") + "){ return binder.apply(this,arguments); }")(u), y.prototype) {
|
|
105
|
+
var f = function() {
|
|
106
106
|
};
|
|
107
|
-
|
|
107
|
+
f.prototype = y.prototype, A.prototype = new f(), f.prototype = null;
|
|
108
108
|
}
|
|
109
|
-
return
|
|
109
|
+
return A;
|
|
110
110
|
}, Ye;
|
|
111
111
|
}
|
|
112
112
|
var Xe, Mr;
|
|
@@ -116,20 +116,20 @@ function yr() {
|
|
|
116
116
|
var e = Xr();
|
|
117
117
|
return Xe = Function.prototype.bind || e, Xe;
|
|
118
118
|
}
|
|
119
|
-
var er,
|
|
119
|
+
var er, kr;
|
|
120
120
|
function et() {
|
|
121
|
-
if (
|
|
122
|
-
|
|
121
|
+
if (kr) return er;
|
|
122
|
+
kr = 1;
|
|
123
123
|
var e = yr();
|
|
124
124
|
return er = e.call(Function.call, Object.prototype.hasOwnProperty), er;
|
|
125
125
|
}
|
|
126
|
-
var rr,
|
|
126
|
+
var rr, Ir;
|
|
127
127
|
function hr() {
|
|
128
|
-
if (
|
|
129
|
-
|
|
130
|
-
var e, r = SyntaxError, a = Function, t = TypeError, n = function(
|
|
128
|
+
if (Ir) return rr;
|
|
129
|
+
Ir = 1;
|
|
130
|
+
var e, r = SyntaxError, a = Function, t = TypeError, n = function(U) {
|
|
131
131
|
try {
|
|
132
|
-
return a('"use strict"; return (' +
|
|
132
|
+
return a('"use strict"; return (' + U + ").constructor;")();
|
|
133
133
|
} catch {
|
|
134
134
|
}
|
|
135
135
|
}, o = Object.getOwnPropertyDescriptor;
|
|
@@ -139,30 +139,30 @@ function hr() {
|
|
|
139
139
|
} catch {
|
|
140
140
|
o = null;
|
|
141
141
|
}
|
|
142
|
-
var
|
|
142
|
+
var m = function() {
|
|
143
143
|
throw new t();
|
|
144
|
-
},
|
|
144
|
+
}, l = o ? (function() {
|
|
145
145
|
try {
|
|
146
|
-
return arguments.callee,
|
|
146
|
+
return arguments.callee, m;
|
|
147
147
|
} catch {
|
|
148
148
|
try {
|
|
149
149
|
return o(arguments, "callee").get;
|
|
150
150
|
} catch {
|
|
151
|
-
return
|
|
151
|
+
return m;
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
-
})() :
|
|
155
|
-
return
|
|
156
|
-
},
|
|
154
|
+
})() : m, p = Yr()(), y = Object.getPrototypeOf || function(U) {
|
|
155
|
+
return U.__proto__;
|
|
156
|
+
}, w = {}, A = typeof Uint8Array > "u" ? e : y(Uint8Array), u = {
|
|
157
157
|
"%AggregateError%": typeof AggregateError > "u" ? e : AggregateError,
|
|
158
158
|
"%Array%": Array,
|
|
159
159
|
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? e : ArrayBuffer,
|
|
160
|
-
"%ArrayIteratorPrototype%":
|
|
160
|
+
"%ArrayIteratorPrototype%": p ? y([][Symbol.iterator]()) : e,
|
|
161
161
|
"%AsyncFromSyncIteratorPrototype%": e,
|
|
162
|
-
"%AsyncFunction%":
|
|
163
|
-
"%AsyncGenerator%":
|
|
164
|
-
"%AsyncGeneratorFunction%":
|
|
165
|
-
"%AsyncIteratorPrototype%":
|
|
162
|
+
"%AsyncFunction%": w,
|
|
163
|
+
"%AsyncGenerator%": w,
|
|
164
|
+
"%AsyncGeneratorFunction%": w,
|
|
165
|
+
"%AsyncIteratorPrototype%": w,
|
|
166
166
|
"%Atomics%": typeof Atomics > "u" ? e : Atomics,
|
|
167
167
|
"%BigInt%": typeof BigInt > "u" ? e : BigInt,
|
|
168
168
|
"%Boolean%": Boolean,
|
|
@@ -180,16 +180,16 @@ function hr() {
|
|
|
180
180
|
"%Float64Array%": typeof Float64Array > "u" ? e : Float64Array,
|
|
181
181
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? e : FinalizationRegistry,
|
|
182
182
|
"%Function%": a,
|
|
183
|
-
"%GeneratorFunction%":
|
|
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%": p ? y(y([][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" || !p ? e : y((/* @__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" || !p ? e : y((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
206
206
|
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? e : SharedArrayBuffer,
|
|
207
207
|
"%String%": String,
|
|
208
|
-
"%StringIteratorPrototype%":
|
|
209
|
-
"%Symbol%":
|
|
208
|
+
"%StringIteratorPrototype%": p ? y(""[Symbol.iterator]()) : e,
|
|
209
|
+
"%Symbol%": p ? Symbol : e,
|
|
210
210
|
"%SyntaxError%": r,
|
|
211
|
-
"%ThrowTypeError%":
|
|
212
|
-
"%TypedArray%":
|
|
211
|
+
"%ThrowTypeError%": l,
|
|
212
|
+
"%TypedArray%": A,
|
|
213
213
|
"%TypeError%": t,
|
|
214
214
|
"%Uint8Array%": typeof Uint8Array > "u" ? e : Uint8Array,
|
|
215
215
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? e : Uint8ClampedArray,
|
|
@@ -219,23 +219,23 @@ function hr() {
|
|
|
219
219
|
"%WeakMap%": typeof WeakMap > "u" ? e : WeakMap,
|
|
220
220
|
"%WeakRef%": typeof WeakRef > "u" ? e : WeakRef,
|
|
221
221
|
"%WeakSet%": typeof WeakSet > "u" ? e : WeakSet
|
|
222
|
-
},
|
|
223
|
-
var
|
|
224
|
-
if (
|
|
225
|
-
|
|
226
|
-
else if (
|
|
227
|
-
|
|
228
|
-
else if (
|
|
229
|
-
|
|
230
|
-
else if (
|
|
231
|
-
var
|
|
232
|
-
|
|
233
|
-
} else if (
|
|
234
|
-
var
|
|
235
|
-
|
|
222
|
+
}, s = function U(L) {
|
|
223
|
+
var F;
|
|
224
|
+
if (L === "%AsyncFunction%")
|
|
225
|
+
F = n("async function () {}");
|
|
226
|
+
else if (L === "%GeneratorFunction%")
|
|
227
|
+
F = n("function* () {}");
|
|
228
|
+
else if (L === "%AsyncGeneratorFunction%")
|
|
229
|
+
F = n("async function* () {}");
|
|
230
|
+
else if (L === "%AsyncGenerator%") {
|
|
231
|
+
var T = U("%AsyncGeneratorFunction%");
|
|
232
|
+
T && (F = T.prototype);
|
|
233
|
+
} else if (L === "%AsyncIteratorPrototype%") {
|
|
234
|
+
var R = U("%AsyncGenerator%");
|
|
235
|
+
R && (F = y(R.prototype));
|
|
236
236
|
}
|
|
237
|
-
return
|
|
238
|
-
},
|
|
237
|
+
return u[L] = F, F;
|
|
238
|
+
}, i = {
|
|
239
239
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
240
240
|
"%ArrayPrototype%": ["Array", "prototype"],
|
|
241
241
|
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
|
|
@@ -287,139 +287,139 @@ function hr() {
|
|
|
287
287
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
288
288
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
289
289
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
290
|
-
},
|
|
291
|
-
var
|
|
292
|
-
if (
|
|
290
|
+
}, S = yr(), f = et(), c = S.call(Function.call, Array.prototype.concat), b = S.call(Function.apply, Array.prototype.splice), v = S.call(Function.call, String.prototype.replace), C = S.call(Function.call, String.prototype.slice), P = S.call(Function.call, RegExp.prototype.exec), I = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, N = /\\(\\)?/g, M = function(L) {
|
|
291
|
+
var F = C(L, 0, 1), T = C(L, -1);
|
|
292
|
+
if (F === "%" && T !== "%")
|
|
293
293
|
throw new r("invalid intrinsic syntax, expected closing `%`");
|
|
294
|
-
if (
|
|
294
|
+
if (T === "%" && F !== "%")
|
|
295
295
|
throw new r("invalid intrinsic syntax, expected opening `%`");
|
|
296
|
-
var
|
|
297
|
-
return
|
|
298
|
-
|
|
299
|
-
}),
|
|
300
|
-
},
|
|
301
|
-
var
|
|
302
|
-
if (
|
|
303
|
-
var
|
|
304
|
-
if (
|
|
305
|
-
throw new t("intrinsic " +
|
|
296
|
+
var R = [];
|
|
297
|
+
return v(L, I, function($, z, _, Z) {
|
|
298
|
+
R[R.length] = _ ? v(Z, N, "$1") : z || $;
|
|
299
|
+
}), R;
|
|
300
|
+
}, V = function(L, F) {
|
|
301
|
+
var T = L, R;
|
|
302
|
+
if (f(i, T) && (R = i[T], T = "%" + R[0] + "%"), f(u, T)) {
|
|
303
|
+
var $ = u[T];
|
|
304
|
+
if ($ === w && ($ = s(T)), typeof $ > "u" && !F)
|
|
305
|
+
throw new t("intrinsic " + L + " exists, but is not available. Please file an issue!");
|
|
306
306
|
return {
|
|
307
|
-
alias:
|
|
308
|
-
name:
|
|
309
|
-
value:
|
|
307
|
+
alias: R,
|
|
308
|
+
name: T,
|
|
309
|
+
value: $
|
|
310
310
|
};
|
|
311
311
|
}
|
|
312
|
-
throw new r("intrinsic " +
|
|
312
|
+
throw new r("intrinsic " + L + " does not exist!");
|
|
313
313
|
};
|
|
314
|
-
return rr = function(
|
|
315
|
-
if (typeof
|
|
314
|
+
return rr = function(L, F) {
|
|
315
|
+
if (typeof L != "string" || L.length === 0)
|
|
316
316
|
throw new t("intrinsic name must be a non-empty string");
|
|
317
|
-
if (arguments.length > 1 && typeof
|
|
317
|
+
if (arguments.length > 1 && typeof F != "boolean")
|
|
318
318
|
throw new t('"allowMissing" argument must be a boolean');
|
|
319
|
-
if (
|
|
319
|
+
if (P(/^%?[^%]*%?$/, 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
|
|
324
|
-
var
|
|
325
|
-
if ((
|
|
321
|
+
var T = M(L), R = T.length > 0 ? T[0] : "", $ = V("%" + R + "%", F), z = $.name, _ = $.value, Z = !1, Q = $.alias;
|
|
322
|
+
Q && (R = Q[0], b(T, c([0, 1], Q)));
|
|
323
|
+
for (var ne = 1, X = !0; ne < T.length; ne += 1) {
|
|
324
|
+
var W = T[ne], ie = C(W, 0, 1), re = C(W, -1);
|
|
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 ((
|
|
328
|
-
|
|
329
|
-
else if (
|
|
330
|
-
if (!(
|
|
331
|
-
if (!
|
|
332
|
-
throw new t("base intrinsic for " +
|
|
327
|
+
if ((W === "constructor" || !X) && (Z = !0), R += "." + W, z = "%" + R + "%", f(u, z))
|
|
328
|
+
_ = u[z];
|
|
329
|
+
else if (_ != null) {
|
|
330
|
+
if (!(W in _)) {
|
|
331
|
+
if (!F)
|
|
332
|
+
throw new t("base intrinsic for " + L + " exists, but the property is not available.");
|
|
333
333
|
return;
|
|
334
334
|
}
|
|
335
|
-
if (o &&
|
|
336
|
-
var
|
|
337
|
-
|
|
335
|
+
if (o && ne + 1 >= T.length) {
|
|
336
|
+
var te = o(_, W);
|
|
337
|
+
X = !!te, X && "get" in te && !("originalValue" in te.get) ? _ = te.get : _ = _[W];
|
|
338
338
|
} else
|
|
339
|
-
|
|
340
|
-
|
|
339
|
+
X = f(_, W), _ = _[W];
|
|
340
|
+
X && !Z && (u[z] = _);
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
|
-
return
|
|
343
|
+
return _;
|
|
344
344
|
}, rr;
|
|
345
345
|
}
|
|
346
|
-
var tr = { exports: {} },
|
|
346
|
+
var tr = { exports: {} }, Tr;
|
|
347
347
|
function rt() {
|
|
348
|
-
return
|
|
349
|
-
var r = yr(), a = hr(), t = a("%Function.prototype.apply%"), n = a("%Function.prototype.call%"), o = a("%Reflect.apply%", !0) || r.call(n, t),
|
|
350
|
-
if (
|
|
348
|
+
return Tr || (Tr = 1, (function(e) {
|
|
349
|
+
var r = yr(), a = hr(), t = a("%Function.prototype.apply%"), n = a("%Function.prototype.call%"), o = a("%Reflect.apply%", !0) || r.call(n, t), m = a("%Object.getOwnPropertyDescriptor%", !0), l = a("%Object.defineProperty%", !0), p = a("%Math.max%");
|
|
350
|
+
if (l)
|
|
351
351
|
try {
|
|
352
|
-
|
|
352
|
+
l({}, "a", { value: 1 });
|
|
353
353
|
} catch {
|
|
354
|
-
|
|
354
|
+
l = null;
|
|
355
355
|
}
|
|
356
|
-
e.exports = function(
|
|
357
|
-
var
|
|
358
|
-
if (
|
|
359
|
-
var
|
|
360
|
-
|
|
361
|
-
|
|
356
|
+
e.exports = function(A) {
|
|
357
|
+
var u = o(r, n, arguments);
|
|
358
|
+
if (m && l) {
|
|
359
|
+
var s = m(u, "length");
|
|
360
|
+
s.configurable && l(
|
|
361
|
+
u,
|
|
362
362
|
"length",
|
|
363
|
-
{ value: 1 +
|
|
363
|
+
{ value: 1 + p(0, A.length - (arguments.length - 1)) }
|
|
364
364
|
);
|
|
365
365
|
}
|
|
366
|
-
return
|
|
366
|
+
return u;
|
|
367
367
|
};
|
|
368
|
-
var
|
|
368
|
+
var y = function() {
|
|
369
369
|
return o(r, t, arguments);
|
|
370
370
|
};
|
|
371
|
-
|
|
371
|
+
l ? l(e.exports, "apply", { value: y }) : e.exports.apply = y;
|
|
372
372
|
})(tr)), tr.exports;
|
|
373
373
|
}
|
|
374
|
-
var ar,
|
|
374
|
+
var ar, Rr;
|
|
375
375
|
function tt() {
|
|
376
|
-
if (
|
|
377
|
-
|
|
376
|
+
if (Rr) return ar;
|
|
377
|
+
Rr = 1;
|
|
378
378
|
var e = hr(), r = rt(), a = r(e("String.prototype.indexOf"));
|
|
379
379
|
return ar = function(n, o) {
|
|
380
|
-
var
|
|
381
|
-
return typeof
|
|
380
|
+
var m = e(n, !!o);
|
|
381
|
+
return typeof m == "function" && a(n, ".prototype.") > -1 ? r(m) : m;
|
|
382
382
|
}, ar;
|
|
383
383
|
}
|
|
384
384
|
const at = {}, nt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
385
385
|
__proto__: null,
|
|
386
386
|
default: at
|
|
387
|
-
}, Symbol.toStringTag, { value: "Module" })), it = /* @__PURE__ */
|
|
387
|
+
}, Symbol.toStringTag, { value: "Module" })), it = /* @__PURE__ */ Zr(nt);
|
|
388
388
|
var nr, _r;
|
|
389
389
|
function ot() {
|
|
390
390
|
if (_r) return nr;
|
|
391
391
|
_r = 1;
|
|
392
|
-
var e = typeof Map == "function" && Map.prototype, r = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, a = e && r && typeof r.get == "function" ? r.get : null, t = e && Map.prototype.forEach, n = typeof Set == "function" && Set.prototype, o = Object.getOwnPropertyDescriptor && n ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null,
|
|
393
|
-
return
|
|
392
|
+
var e = typeof Map == "function" && Map.prototype, r = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, a = e && r && typeof r.get == "function" ? r.get : null, t = e && Map.prototype.forEach, n = typeof Set == "function" && Set.prototype, o = Object.getOwnPropertyDescriptor && n ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, m = n && o && typeof o.get == "function" ? o.get : null, l = n && Set.prototype.forEach, p = typeof WeakMap == "function" && WeakMap.prototype, y = p ? WeakMap.prototype.has : null, w = typeof WeakSet == "function" && WeakSet.prototype, A = w ? WeakSet.prototype.has : null, u = typeof WeakRef == "function" && WeakRef.prototype, s = u ? WeakRef.prototype.deref : null, i = Boolean.prototype.valueOf, S = Object.prototype.toString, f = Function.prototype.toString, c = String.prototype.match, b = String.prototype.slice, v = String.prototype.replace, C = String.prototype.toUpperCase, P = String.prototype.toLowerCase, I = RegExp.prototype.test, N = Array.prototype.concat, M = Array.prototype.join, V = Array.prototype.slice, U = Math.floor, L = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, F = Object.getOwnPropertySymbols, T = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, R = typeof Symbol == "function" && typeof Symbol.iterator == "object", $ = 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(h) {
|
|
393
|
+
return h.__proto__;
|
|
394
394
|
} : null);
|
|
395
|
-
function
|
|
396
|
-
if (
|
|
395
|
+
function Z(h, g) {
|
|
396
|
+
if (h === 1 / 0 || h === -1 / 0 || h !== h || h && h > -1e3 && h < 1e3 || I.call(/e/, g))
|
|
397
397
|
return g;
|
|
398
|
-
var
|
|
399
|
-
if (typeof
|
|
400
|
-
var
|
|
401
|
-
if (
|
|
402
|
-
var
|
|
403
|
-
return
|
|
398
|
+
var D = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
399
|
+
if (typeof h == "number") {
|
|
400
|
+
var d = h < 0 ? -U(-h) : U(h);
|
|
401
|
+
if (d !== h) {
|
|
402
|
+
var E = String(d), x = b.call(g, E.length + 1);
|
|
403
|
+
return v.call(E, D, "$&_") + "." + v.call(v.call(x, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
|
-
return
|
|
406
|
+
return v.call(g, D, "$&_");
|
|
407
407
|
}
|
|
408
|
-
var Q = it,
|
|
409
|
-
nr = function
|
|
410
|
-
var
|
|
411
|
-
if (
|
|
408
|
+
var Q = it, ne = Q.custom, X = se(ne) ? ne : null;
|
|
409
|
+
nr = function h(g, D, d, E) {
|
|
410
|
+
var x = D || {};
|
|
411
|
+
if (J(x, "quoteStyle") && x.quoteStyle !== "single" && x.quoteStyle !== "double")
|
|
412
412
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
413
|
-
if (
|
|
413
|
+
if (J(x, "maxStringLength") && (typeof x.maxStringLength == "number" ? x.maxStringLength < 0 && x.maxStringLength !== 1 / 0 : x.maxStringLength !== null))
|
|
414
414
|
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
415
|
-
var
|
|
416
|
-
if (typeof
|
|
415
|
+
var G = J(x, "customInspect") ? x.customInspect : !0;
|
|
416
|
+
if (typeof G != "boolean" && G !== "symbol")
|
|
417
417
|
throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
|
|
418
|
-
if (
|
|
418
|
+
if (J(x, "indent") && x.indent !== null && x.indent !== " " && !(parseInt(x.indent, 10) === x.indent && x.indent > 0))
|
|
419
419
|
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
420
|
-
if (
|
|
420
|
+
if (J(x, "numericSeparator") && typeof x.numericSeparator != "boolean")
|
|
421
421
|
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
422
|
-
var
|
|
422
|
+
var ae = x.numericSeparator;
|
|
423
423
|
if (typeof g > "u")
|
|
424
424
|
return "undefined";
|
|
425
425
|
if (g === null)
|
|
@@ -427,315 +427,315 @@ function ot() {
|
|
|
427
427
|
if (typeof g == "boolean")
|
|
428
428
|
return g ? "true" : "false";
|
|
429
429
|
if (typeof g == "string")
|
|
430
|
-
return Ce(g,
|
|
430
|
+
return Ce(g, x);
|
|
431
431
|
if (typeof g == "number") {
|
|
432
432
|
if (g === 0)
|
|
433
433
|
return 1 / 0 / g > 0 ? "0" : "-0";
|
|
434
|
-
var
|
|
435
|
-
return
|
|
434
|
+
var K = String(g);
|
|
435
|
+
return ae ? Z(g, K) : K;
|
|
436
436
|
}
|
|
437
437
|
if (typeof g == "bigint") {
|
|
438
|
-
var
|
|
439
|
-
return
|
|
438
|
+
var O = String(g) + "n";
|
|
439
|
+
return ae ? Z(g, O) : O;
|
|
440
440
|
}
|
|
441
|
-
var
|
|
442
|
-
if (typeof
|
|
443
|
-
return
|
|
444
|
-
var
|
|
445
|
-
if (typeof
|
|
446
|
-
|
|
447
|
-
else if (
|
|
441
|
+
var B = typeof x.depth > "u" ? 5 : x.depth;
|
|
442
|
+
if (typeof d > "u" && (d = 0), d >= B && B > 0 && typeof g == "object")
|
|
443
|
+
return re(g) ? "[Array]" : "[Object]";
|
|
444
|
+
var j = Le(x, d);
|
|
445
|
+
if (typeof E > "u")
|
|
446
|
+
E = [];
|
|
447
|
+
else if (Pe(E, g) >= 0)
|
|
448
448
|
return "[Circular]";
|
|
449
|
-
function
|
|
450
|
-
if (Ge && (
|
|
451
|
-
var
|
|
452
|
-
depth:
|
|
449
|
+
function H(Me, Ge, Jr) {
|
|
450
|
+
if (Ge && (E = V.call(E), E.push(Ge)), Jr) {
|
|
451
|
+
var Pr = {
|
|
452
|
+
depth: x.depth
|
|
453
453
|
};
|
|
454
|
-
return
|
|
454
|
+
return J(x, "quoteStyle") && (Pr.quoteStyle = x.quoteStyle), h(Me, Pr, d + 1, E);
|
|
455
455
|
}
|
|
456
|
-
return
|
|
456
|
+
return h(Me, x, d + 1, E);
|
|
457
457
|
}
|
|
458
458
|
if (typeof g == "function" && !ce(g)) {
|
|
459
|
-
var
|
|
460
|
-
return "[Function" + (
|
|
459
|
+
var Y = ke(g), we = ge(g, H);
|
|
460
|
+
return "[Function" + (Y ? ": " + Y : " (anonymous)") + "]" + (we.length > 0 ? " { " + M.call(we, ", ") + " }" : "");
|
|
461
461
|
}
|
|
462
462
|
if (se(g)) {
|
|
463
|
-
var Ar =
|
|
464
|
-
return typeof g == "object" && !
|
|
463
|
+
var Ar = R ? v.call(String(g), /^(Symbol\(.*\))_[^)]*$/, "$1") : T.call(g);
|
|
464
|
+
return typeof g == "object" && !R ? le(Ar) : Ar;
|
|
465
465
|
}
|
|
466
466
|
if (_e(g)) {
|
|
467
|
-
for (var Fe = "<" +
|
|
468
|
-
Fe += " " + ze[Be].name + "=" +
|
|
469
|
-
return Fe += ">", g.childNodes && g.childNodes.length && (Fe += "..."), Fe += "</" +
|
|
467
|
+
for (var Fe = "<" + P.call(String(g.nodeName)), ze = g.attributes || [], Be = 0; Be < ze.length; Be++)
|
|
468
|
+
Fe += " " + ze[Be].name + "=" + W(ie(ze[Be].value), "double", x);
|
|
469
|
+
return Fe += ">", g.childNodes && g.childNodes.length && (Fe += "..."), Fe += "</" + P.call(String(g.nodeName)) + ">", Fe;
|
|
470
470
|
}
|
|
471
|
-
if (
|
|
471
|
+
if (re(g)) {
|
|
472
472
|
if (g.length === 0)
|
|
473
473
|
return "[]";
|
|
474
|
-
var We = ge(g,
|
|
475
|
-
return
|
|
474
|
+
var We = ge(g, H);
|
|
475
|
+
return j && !Oe(We) ? "[" + he(We, j) + "]" : "[ " + M.call(We, ", ") + " ]";
|
|
476
476
|
}
|
|
477
477
|
if (ue(g)) {
|
|
478
|
-
var Ke = ge(g,
|
|
479
|
-
return !("cause" in Error.prototype) && "cause" in g && !
|
|
478
|
+
var Ke = ge(g, H);
|
|
479
|
+
return !("cause" in Error.prototype) && "cause" in g && !z.call(g, "cause") ? "{ [" + String(g) + "] " + M.call(N.call("[cause]: " + H(g.cause), Ke), ", ") + " }" : Ke.length === 0 ? "[" + String(g) + "]" : "{ [" + String(g) + "] " + M.call(Ke, ", ") + " }";
|
|
480
480
|
}
|
|
481
|
-
if (typeof g == "object" &&
|
|
482
|
-
if (
|
|
483
|
-
return Q(g, { depth:
|
|
484
|
-
if (
|
|
481
|
+
if (typeof g == "object" && G) {
|
|
482
|
+
if (X && typeof g[X] == "function" && Q)
|
|
483
|
+
return Q(g, { depth: B - d });
|
|
484
|
+
if (G !== "symbol" && typeof g.inspect == "function")
|
|
485
485
|
return g.inspect();
|
|
486
486
|
}
|
|
487
|
-
if (
|
|
487
|
+
if (Ie(g)) {
|
|
488
488
|
var br = [];
|
|
489
489
|
return t.call(g, function(Me, Ge) {
|
|
490
|
-
br.push(
|
|
491
|
-
}), Se("Map", a.call(g), br,
|
|
490
|
+
br.push(H(Ge, g, !0) + " => " + H(Me, g));
|
|
491
|
+
}), Se("Map", a.call(g), br, j);
|
|
492
492
|
}
|
|
493
|
-
if (
|
|
493
|
+
if (Te(g)) {
|
|
494
494
|
var Sr = [];
|
|
495
|
-
return
|
|
496
|
-
Sr.push(
|
|
497
|
-
}), Se("Set",
|
|
495
|
+
return l.call(g, function(Me) {
|
|
496
|
+
Sr.push(H(Me, g));
|
|
497
|
+
}), Se("Set", m.call(g), Sr, j);
|
|
498
498
|
}
|
|
499
499
|
if (me(g))
|
|
500
500
|
return fe("WeakMap");
|
|
501
|
-
if (
|
|
501
|
+
if (Re(g))
|
|
502
502
|
return fe("WeakSet");
|
|
503
|
-
if (
|
|
503
|
+
if (xe(g))
|
|
504
504
|
return fe("WeakRef");
|
|
505
505
|
if (de(g))
|
|
506
|
-
return le(
|
|
506
|
+
return le(H(Number(g)));
|
|
507
507
|
if (ye(g))
|
|
508
|
-
return le(
|
|
508
|
+
return le(H(L.call(g)));
|
|
509
509
|
if (pe(g))
|
|
510
|
-
return le(
|
|
510
|
+
return le(i.call(g));
|
|
511
511
|
if (oe(g))
|
|
512
|
-
return le(
|
|
513
|
-
if (!
|
|
514
|
-
var He = ge(g,
|
|
515
|
-
return He.length === 0 ?
|
|
512
|
+
return le(H(String(g)));
|
|
513
|
+
if (!te(g) && !ce(g)) {
|
|
514
|
+
var He = ge(g, H), wr = _ ? _(g) === Object.prototype : g instanceof Object || g.constructor === Object, Je = g instanceof Object ? "" : "null prototype", Er = !wr && $ && Object(g) === g && $ in g ? b.call(ee(g), 8, -1) : Je ? "Object" : "", Hr = wr || typeof g.constructor != "function" ? "" : g.constructor.name ? g.constructor.name + " " : "", qe = Hr + (Er || Je ? "[" + M.call(N.call([], Er || [], Je || []), ": ") + "] " : "");
|
|
515
|
+
return He.length === 0 ? qe + "{}" : j ? qe + "{" + he(He, j) + "}" : qe + "{ " + M.call(He, ", ") + " }";
|
|
516
516
|
}
|
|
517
517
|
return String(g);
|
|
518
518
|
};
|
|
519
|
-
function
|
|
520
|
-
var
|
|
521
|
-
return
|
|
519
|
+
function W(h, g, D) {
|
|
520
|
+
var d = (D.quoteStyle || g) === "double" ? '"' : "'";
|
|
521
|
+
return d + h + d;
|
|
522
522
|
}
|
|
523
|
-
function
|
|
524
|
-
return
|
|
523
|
+
function ie(h) {
|
|
524
|
+
return v.call(String(h), /"/g, """);
|
|
525
525
|
}
|
|
526
|
-
function
|
|
527
|
-
return
|
|
526
|
+
function re(h) {
|
|
527
|
+
return ee(h) === "[object Array]" && (!$ || !(typeof h == "object" && $ in h));
|
|
528
528
|
}
|
|
529
|
-
function
|
|
530
|
-
return
|
|
529
|
+
function te(h) {
|
|
530
|
+
return ee(h) === "[object Date]" && (!$ || !(typeof h == "object" && $ in h));
|
|
531
531
|
}
|
|
532
|
-
function ce(
|
|
533
|
-
return
|
|
532
|
+
function ce(h) {
|
|
533
|
+
return ee(h) === "[object RegExp]" && (!$ || !(typeof h == "object" && $ in h));
|
|
534
534
|
}
|
|
535
|
-
function ue(
|
|
536
|
-
return
|
|
535
|
+
function ue(h) {
|
|
536
|
+
return ee(h) === "[object Error]" && (!$ || !(typeof h == "object" && $ in h));
|
|
537
537
|
}
|
|
538
|
-
function oe(
|
|
539
|
-
return
|
|
538
|
+
function oe(h) {
|
|
539
|
+
return ee(h) === "[object String]" && (!$ || !(typeof h == "object" && $ in h));
|
|
540
540
|
}
|
|
541
|
-
function de(
|
|
542
|
-
return
|
|
541
|
+
function de(h) {
|
|
542
|
+
return ee(h) === "[object Number]" && (!$ || !(typeof h == "object" && $ in h));
|
|
543
543
|
}
|
|
544
|
-
function pe(
|
|
545
|
-
return
|
|
544
|
+
function pe(h) {
|
|
545
|
+
return ee(h) === "[object Boolean]" && (!$ || !(typeof h == "object" && $ in h));
|
|
546
546
|
}
|
|
547
|
-
function se(
|
|
548
|
-
if (
|
|
549
|
-
return
|
|
550
|
-
if (typeof
|
|
547
|
+
function se(h) {
|
|
548
|
+
if (R)
|
|
549
|
+
return h && typeof h == "object" && h instanceof Symbol;
|
|
550
|
+
if (typeof h == "symbol")
|
|
551
551
|
return !0;
|
|
552
|
-
if (!
|
|
552
|
+
if (!h || typeof h != "object" || !T)
|
|
553
553
|
return !1;
|
|
554
554
|
try {
|
|
555
|
-
return
|
|
555
|
+
return T.call(h), !0;
|
|
556
556
|
} catch {
|
|
557
557
|
}
|
|
558
558
|
return !1;
|
|
559
559
|
}
|
|
560
|
-
function ye(
|
|
561
|
-
if (!
|
|
560
|
+
function ye(h) {
|
|
561
|
+
if (!h || typeof h != "object" || !L)
|
|
562
562
|
return !1;
|
|
563
563
|
try {
|
|
564
|
-
return
|
|
564
|
+
return L.call(h), !0;
|
|
565
565
|
} catch {
|
|
566
566
|
}
|
|
567
567
|
return !1;
|
|
568
568
|
}
|
|
569
|
-
var be = Object.prototype.hasOwnProperty || function(
|
|
570
|
-
return
|
|
569
|
+
var be = Object.prototype.hasOwnProperty || function(h) {
|
|
570
|
+
return h in this;
|
|
571
571
|
};
|
|
572
|
-
function
|
|
573
|
-
return be.call(
|
|
572
|
+
function J(h, g) {
|
|
573
|
+
return be.call(h, g);
|
|
574
574
|
}
|
|
575
|
-
function
|
|
576
|
-
return
|
|
575
|
+
function ee(h) {
|
|
576
|
+
return S.call(h);
|
|
577
577
|
}
|
|
578
|
-
function
|
|
579
|
-
if (
|
|
580
|
-
return
|
|
581
|
-
var g =
|
|
578
|
+
function ke(h) {
|
|
579
|
+
if (h.name)
|
|
580
|
+
return h.name;
|
|
581
|
+
var g = c.call(f.call(h), /^function\s*([\w$]+)/);
|
|
582
582
|
return g ? g[1] : null;
|
|
583
583
|
}
|
|
584
|
-
function
|
|
585
|
-
if (
|
|
586
|
-
return
|
|
587
|
-
for (var
|
|
588
|
-
if (
|
|
589
|
-
return
|
|
584
|
+
function Pe(h, g) {
|
|
585
|
+
if (h.indexOf)
|
|
586
|
+
return h.indexOf(g);
|
|
587
|
+
for (var D = 0, d = h.length; D < d; D++)
|
|
588
|
+
if (h[D] === g)
|
|
589
|
+
return D;
|
|
590
590
|
return -1;
|
|
591
591
|
}
|
|
592
|
-
function
|
|
593
|
-
if (!a || !
|
|
592
|
+
function Ie(h) {
|
|
593
|
+
if (!a || !h || typeof h != "object")
|
|
594
594
|
return !1;
|
|
595
595
|
try {
|
|
596
|
-
a.call(
|
|
596
|
+
a.call(h);
|
|
597
597
|
try {
|
|
598
|
-
|
|
598
|
+
m.call(h);
|
|
599
599
|
} catch {
|
|
600
600
|
return !0;
|
|
601
601
|
}
|
|
602
|
-
return
|
|
602
|
+
return h instanceof Map;
|
|
603
603
|
} catch {
|
|
604
604
|
}
|
|
605
605
|
return !1;
|
|
606
606
|
}
|
|
607
|
-
function me(
|
|
608
|
-
if (!
|
|
607
|
+
function me(h) {
|
|
608
|
+
if (!y || !h || typeof h != "object")
|
|
609
609
|
return !1;
|
|
610
610
|
try {
|
|
611
|
-
|
|
611
|
+
y.call(h, y);
|
|
612
612
|
try {
|
|
613
|
-
|
|
613
|
+
A.call(h, A);
|
|
614
614
|
} catch {
|
|
615
615
|
return !0;
|
|
616
616
|
}
|
|
617
|
-
return
|
|
617
|
+
return h instanceof WeakMap;
|
|
618
618
|
} catch {
|
|
619
619
|
}
|
|
620
620
|
return !1;
|
|
621
621
|
}
|
|
622
|
-
function
|
|
623
|
-
if (!
|
|
622
|
+
function xe(h) {
|
|
623
|
+
if (!s || !h || typeof h != "object")
|
|
624
624
|
return !1;
|
|
625
625
|
try {
|
|
626
|
-
return
|
|
626
|
+
return s.call(h), !0;
|
|
627
627
|
} catch {
|
|
628
628
|
}
|
|
629
629
|
return !1;
|
|
630
630
|
}
|
|
631
|
-
function
|
|
632
|
-
if (!
|
|
631
|
+
function Te(h) {
|
|
632
|
+
if (!m || !h || typeof h != "object")
|
|
633
633
|
return !1;
|
|
634
634
|
try {
|
|
635
|
-
|
|
635
|
+
m.call(h);
|
|
636
636
|
try {
|
|
637
|
-
a.call(
|
|
637
|
+
a.call(h);
|
|
638
638
|
} catch {
|
|
639
639
|
return !0;
|
|
640
640
|
}
|
|
641
|
-
return
|
|
641
|
+
return h instanceof Set;
|
|
642
642
|
} catch {
|
|
643
643
|
}
|
|
644
644
|
return !1;
|
|
645
645
|
}
|
|
646
|
-
function
|
|
647
|
-
if (!
|
|
646
|
+
function Re(h) {
|
|
647
|
+
if (!A || !h || typeof h != "object")
|
|
648
648
|
return !1;
|
|
649
649
|
try {
|
|
650
|
-
|
|
650
|
+
A.call(h, A);
|
|
651
651
|
try {
|
|
652
|
-
|
|
652
|
+
y.call(h, y);
|
|
653
653
|
} catch {
|
|
654
654
|
return !0;
|
|
655
655
|
}
|
|
656
|
-
return
|
|
656
|
+
return h instanceof WeakSet;
|
|
657
657
|
} catch {
|
|
658
658
|
}
|
|
659
659
|
return !1;
|
|
660
660
|
}
|
|
661
|
-
function _e(
|
|
662
|
-
return !
|
|
661
|
+
function _e(h) {
|
|
662
|
+
return !h || typeof h != "object" ? !1 : typeof HTMLElement < "u" && h instanceof HTMLElement ? !0 : typeof h.nodeName == "string" && typeof h.getAttribute == "function";
|
|
663
663
|
}
|
|
664
|
-
function Ce(
|
|
665
|
-
if (
|
|
666
|
-
var
|
|
667
|
-
return Ce(
|
|
664
|
+
function Ce(h, g) {
|
|
665
|
+
if (h.length > g.maxStringLength) {
|
|
666
|
+
var D = h.length - g.maxStringLength, d = "... " + D + " more character" + (D > 1 ? "s" : "");
|
|
667
|
+
return Ce(b.call(h, 0, g.maxStringLength), g) + d;
|
|
668
668
|
}
|
|
669
|
-
var
|
|
670
|
-
return
|
|
669
|
+
var E = v.call(v.call(h, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Ne);
|
|
670
|
+
return W(E, "single", g);
|
|
671
671
|
}
|
|
672
|
-
function Ne(
|
|
673
|
-
var g =
|
|
672
|
+
function Ne(h) {
|
|
673
|
+
var g = h.charCodeAt(0), D = {
|
|
674
674
|
8: "b",
|
|
675
675
|
9: "t",
|
|
676
676
|
10: "n",
|
|
677
677
|
12: "f",
|
|
678
678
|
13: "r"
|
|
679
679
|
}[g];
|
|
680
|
-
return
|
|
680
|
+
return D ? "\\" + D : "\\x" + (g < 16 ? "0" : "") + C.call(g.toString(16));
|
|
681
681
|
}
|
|
682
|
-
function le(
|
|
683
|
-
return "Object(" +
|
|
682
|
+
function le(h) {
|
|
683
|
+
return "Object(" + h + ")";
|
|
684
684
|
}
|
|
685
|
-
function fe(
|
|
686
|
-
return
|
|
685
|
+
function fe(h) {
|
|
686
|
+
return h + " { ? }";
|
|
687
687
|
}
|
|
688
|
-
function Se(
|
|
689
|
-
var
|
|
690
|
-
return
|
|
688
|
+
function Se(h, g, D, d) {
|
|
689
|
+
var E = d ? he(D, d) : M.call(D, ", ");
|
|
690
|
+
return h + " (" + g + ") {" + E + "}";
|
|
691
691
|
}
|
|
692
|
-
function Oe(
|
|
693
|
-
for (var g = 0; g <
|
|
694
|
-
if (
|
|
692
|
+
function Oe(h) {
|
|
693
|
+
for (var g = 0; g < h.length; g++)
|
|
694
|
+
if (Pe(h[g], `
|
|
695
695
|
`) >= 0)
|
|
696
696
|
return !1;
|
|
697
697
|
return !0;
|
|
698
698
|
}
|
|
699
|
-
function Le(
|
|
700
|
-
var
|
|
701
|
-
if (
|
|
702
|
-
|
|
703
|
-
else if (typeof
|
|
704
|
-
|
|
699
|
+
function Le(h, g) {
|
|
700
|
+
var D;
|
|
701
|
+
if (h.indent === " ")
|
|
702
|
+
D = " ";
|
|
703
|
+
else if (typeof h.indent == "number" && h.indent > 0)
|
|
704
|
+
D = M.call(Array(h.indent + 1), " ");
|
|
705
705
|
else
|
|
706
706
|
return null;
|
|
707
707
|
return {
|
|
708
|
-
base:
|
|
709
|
-
prev:
|
|
708
|
+
base: D,
|
|
709
|
+
prev: M.call(Array(g + 1), D)
|
|
710
710
|
};
|
|
711
711
|
}
|
|
712
|
-
function he(
|
|
713
|
-
if (
|
|
712
|
+
function he(h, g) {
|
|
713
|
+
if (h.length === 0)
|
|
714
714
|
return "";
|
|
715
|
-
var
|
|
715
|
+
var D = `
|
|
716
716
|
` + g.prev + g.base;
|
|
717
|
-
return
|
|
717
|
+
return D + M.call(h, "," + D) + `
|
|
718
718
|
` + g.prev;
|
|
719
719
|
}
|
|
720
|
-
function ge(
|
|
721
|
-
var
|
|
722
|
-
if (
|
|
723
|
-
|
|
724
|
-
for (var
|
|
725
|
-
|
|
720
|
+
function ge(h, g) {
|
|
721
|
+
var D = re(h), d = [];
|
|
722
|
+
if (D) {
|
|
723
|
+
d.length = h.length;
|
|
724
|
+
for (var E = 0; E < h.length; E++)
|
|
725
|
+
d[E] = J(h, E) ? g(h[E], h) : "";
|
|
726
726
|
}
|
|
727
|
-
var
|
|
728
|
-
if (
|
|
729
|
-
|
|
730
|
-
for (var
|
|
731
|
-
|
|
727
|
+
var x = typeof F == "function" ? F(h) : [], G;
|
|
728
|
+
if (R) {
|
|
729
|
+
G = {};
|
|
730
|
+
for (var ae = 0; ae < x.length; ae++)
|
|
731
|
+
G["$" + x[ae]] = x[ae];
|
|
732
732
|
}
|
|
733
|
-
for (var
|
|
734
|
-
|
|
735
|
-
if (typeof
|
|
736
|
-
for (var
|
|
737
|
-
|
|
738
|
-
return
|
|
733
|
+
for (var K in h)
|
|
734
|
+
J(h, K) && (D && String(Number(K)) === K && K < h.length || R && G["$" + K] instanceof Symbol || (I.call(/[^\w$]/, K) ? d.push(g(K, h) + ": " + g(h[K], h)) : d.push(K + ": " + g(h[K], h))));
|
|
735
|
+
if (typeof F == "function")
|
|
736
|
+
for (var O = 0; O < x.length; O++)
|
|
737
|
+
z.call(h, x[O]) && d.push("[" + g(x[O]) + "]: " + g(h[x[O]], h));
|
|
738
|
+
return d;
|
|
739
739
|
}
|
|
740
740
|
return nr;
|
|
741
741
|
}
|
|
@@ -743,56 +743,56 @@ var ir, Nr;
|
|
|
743
743
|
function st() {
|
|
744
744
|
if (Nr) return ir;
|
|
745
745
|
Nr = 1;
|
|
746
|
-
var e = hr(), r = tt(), a = /* @__PURE__ */ ot(), t = e("%TypeError%"), n = e("%WeakMap%", !0), o = e("%Map%", !0),
|
|
747
|
-
for (var
|
|
748
|
-
if (
|
|
749
|
-
return
|
|
750
|
-
},
|
|
751
|
-
var
|
|
752
|
-
return
|
|
753
|
-
},
|
|
754
|
-
var
|
|
755
|
-
|
|
746
|
+
var e = hr(), r = tt(), a = /* @__PURE__ */ ot(), t = e("%TypeError%"), n = e("%WeakMap%", !0), o = e("%Map%", !0), m = r("WeakMap.prototype.get", !0), l = r("WeakMap.prototype.set", !0), p = r("WeakMap.prototype.has", !0), y = r("Map.prototype.get", !0), w = r("Map.prototype.set", !0), A = r("Map.prototype.has", !0), u = function(f, c) {
|
|
747
|
+
for (var b = f, v; (v = b.next) !== null; b = v)
|
|
748
|
+
if (v.key === c)
|
|
749
|
+
return b.next = v.next, v.next = f.next, f.next = v, v;
|
|
750
|
+
}, s = function(f, c) {
|
|
751
|
+
var b = u(f, c);
|
|
752
|
+
return b && b.value;
|
|
753
|
+
}, i = function(f, c, b) {
|
|
754
|
+
var v = u(f, c);
|
|
755
|
+
v ? v.value = b : f.next = {
|
|
756
756
|
// eslint-disable-line no-param-reassign
|
|
757
|
-
key:
|
|
758
|
-
next:
|
|
759
|
-
value:
|
|
757
|
+
key: c,
|
|
758
|
+
next: f.next,
|
|
759
|
+
value: b
|
|
760
760
|
};
|
|
761
|
-
},
|
|
762
|
-
return !!
|
|
761
|
+
}, S = function(f, c) {
|
|
762
|
+
return !!u(f, c);
|
|
763
763
|
};
|
|
764
764
|
return ir = function() {
|
|
765
|
-
var
|
|
766
|
-
assert: function(
|
|
767
|
-
if (!
|
|
768
|
-
throw new t("Side channel does not contain " + a(
|
|
765
|
+
var c, b, v, C = {
|
|
766
|
+
assert: function(P) {
|
|
767
|
+
if (!C.has(P))
|
|
768
|
+
throw new t("Side channel does not contain " + a(P));
|
|
769
769
|
},
|
|
770
|
-
get: function(
|
|
771
|
-
if (n &&
|
|
772
|
-
if (
|
|
773
|
-
return
|
|
770
|
+
get: function(P) {
|
|
771
|
+
if (n && P && (typeof P == "object" || typeof P == "function")) {
|
|
772
|
+
if (c)
|
|
773
|
+
return m(c, P);
|
|
774
774
|
} else if (o) {
|
|
775
|
-
if (
|
|
776
|
-
return
|
|
777
|
-
} else if (
|
|
778
|
-
return
|
|
775
|
+
if (b)
|
|
776
|
+
return y(b, P);
|
|
777
|
+
} else if (v)
|
|
778
|
+
return s(v, P);
|
|
779
779
|
},
|
|
780
|
-
has: function(
|
|
781
|
-
if (n &&
|
|
782
|
-
if (
|
|
783
|
-
return
|
|
780
|
+
has: function(P) {
|
|
781
|
+
if (n && P && (typeof P == "object" || typeof P == "function")) {
|
|
782
|
+
if (c)
|
|
783
|
+
return p(c, P);
|
|
784
784
|
} else if (o) {
|
|
785
|
-
if (
|
|
786
|
-
return
|
|
787
|
-
} else if (
|
|
788
|
-
return
|
|
785
|
+
if (b)
|
|
786
|
+
return A(b, P);
|
|
787
|
+
} else if (v)
|
|
788
|
+
return S(v, P);
|
|
789
789
|
return !1;
|
|
790
790
|
},
|
|
791
|
-
set: function(
|
|
792
|
-
n &&
|
|
791
|
+
set: function(P, I) {
|
|
792
|
+
n && P && (typeof P == "object" || typeof P == "function") ? (c || (c = new n()), l(c, P, I)) : o ? (b || (b = new o()), w(b, P, I)) : (v || (v = { key: {}, next: null }), i(v, P, I));
|
|
793
793
|
}
|
|
794
794
|
};
|
|
795
|
-
return
|
|
795
|
+
return C;
|
|
796
796
|
}, ir;
|
|
797
797
|
}
|
|
798
798
|
var or, Lr;
|
|
@@ -822,121 +822,121 @@ function Wr() {
|
|
|
822
822
|
if (Fr) return sr;
|
|
823
823
|
Fr = 1;
|
|
824
824
|
var e = gr(), r = Object.prototype.hasOwnProperty, a = Array.isArray, t = (function() {
|
|
825
|
-
for (var
|
|
826
|
-
|
|
827
|
-
return
|
|
828
|
-
})(), n = function(
|
|
829
|
-
for (;
|
|
830
|
-
var
|
|
831
|
-
if (a(
|
|
832
|
-
for (var
|
|
833
|
-
typeof
|
|
834
|
-
|
|
825
|
+
for (var S = [], f = 0; f < 256; ++f)
|
|
826
|
+
S.push("%" + ((f < 16 ? "0" : "") + f.toString(16)).toUpperCase());
|
|
827
|
+
return S;
|
|
828
|
+
})(), n = function(f) {
|
|
829
|
+
for (; f.length > 1; ) {
|
|
830
|
+
var c = f.pop(), b = c.obj[c.prop];
|
|
831
|
+
if (a(b)) {
|
|
832
|
+
for (var v = [], C = 0; C < b.length; ++C)
|
|
833
|
+
typeof b[C] < "u" && v.push(b[C]);
|
|
834
|
+
c.obj[c.prop] = v;
|
|
835
835
|
}
|
|
836
836
|
}
|
|
837
|
-
}, o = function(
|
|
838
|
-
for (var
|
|
839
|
-
typeof
|
|
840
|
-
return
|
|
841
|
-
},
|
|
842
|
-
if (!
|
|
843
|
-
return
|
|
844
|
-
if (typeof
|
|
845
|
-
if (a(
|
|
846
|
-
|
|
847
|
-
else if (
|
|
848
|
-
(
|
|
837
|
+
}, o = function(f, c) {
|
|
838
|
+
for (var b = c && c.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, v = 0; v < f.length; ++v)
|
|
839
|
+
typeof f[v] < "u" && (b[v] = f[v]);
|
|
840
|
+
return b;
|
|
841
|
+
}, m = function S(f, c, b) {
|
|
842
|
+
if (!c)
|
|
843
|
+
return f;
|
|
844
|
+
if (typeof c != "object") {
|
|
845
|
+
if (a(f))
|
|
846
|
+
f.push(c);
|
|
847
|
+
else if (f && typeof f == "object")
|
|
848
|
+
(b && (b.plainObjects || b.allowPrototypes) || !r.call(Object.prototype, c)) && (f[c] = !0);
|
|
849
849
|
else
|
|
850
|
-
return [
|
|
851
|
-
return
|
|
850
|
+
return [f, c];
|
|
851
|
+
return f;
|
|
852
852
|
}
|
|
853
|
-
if (!
|
|
854
|
-
return [
|
|
855
|
-
var
|
|
856
|
-
return a(
|
|
857
|
-
if (r.call(
|
|
858
|
-
var
|
|
859
|
-
|
|
853
|
+
if (!f || typeof f != "object")
|
|
854
|
+
return [f].concat(c);
|
|
855
|
+
var v = f;
|
|
856
|
+
return a(f) && !a(c) && (v = o(f, b)), a(f) && a(c) ? (c.forEach(function(C, P) {
|
|
857
|
+
if (r.call(f, P)) {
|
|
858
|
+
var I = f[P];
|
|
859
|
+
I && typeof I == "object" && C && typeof C == "object" ? f[P] = S(I, C, b) : f.push(C);
|
|
860
860
|
} else
|
|
861
|
-
|
|
862
|
-
}),
|
|
863
|
-
var
|
|
864
|
-
return r.call(
|
|
865
|
-
},
|
|
866
|
-
},
|
|
867
|
-
return Object.keys(
|
|
868
|
-
return
|
|
869
|
-
},
|
|
870
|
-
},
|
|
871
|
-
var
|
|
872
|
-
if (
|
|
873
|
-
return
|
|
861
|
+
f[P] = C;
|
|
862
|
+
}), f) : Object.keys(c).reduce(function(C, P) {
|
|
863
|
+
var I = c[P];
|
|
864
|
+
return r.call(C, P) ? C[P] = S(C[P], I, b) : C[P] = I, C;
|
|
865
|
+
}, v);
|
|
866
|
+
}, l = function(f, c) {
|
|
867
|
+
return Object.keys(c).reduce(function(b, v) {
|
|
868
|
+
return b[v] = c[v], b;
|
|
869
|
+
}, f);
|
|
870
|
+
}, p = function(S, f, c) {
|
|
871
|
+
var b = S.replace(/\+/g, " ");
|
|
872
|
+
if (c === "iso-8859-1")
|
|
873
|
+
return b.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
874
874
|
try {
|
|
875
|
-
return decodeURIComponent(
|
|
875
|
+
return decodeURIComponent(b);
|
|
876
876
|
} catch {
|
|
877
|
-
return
|
|
877
|
+
return b;
|
|
878
878
|
}
|
|
879
|
-
},
|
|
880
|
-
if (
|
|
881
|
-
return
|
|
882
|
-
var
|
|
883
|
-
if (typeof
|
|
884
|
-
return escape(
|
|
885
|
-
return "%26%23" + parseInt(
|
|
879
|
+
}, y = function(f, c, b, v, C) {
|
|
880
|
+
if (f.length === 0)
|
|
881
|
+
return f;
|
|
882
|
+
var P = f;
|
|
883
|
+
if (typeof f == "symbol" ? P = Symbol.prototype.toString.call(f) : typeof f != "string" && (P = String(f)), b === "iso-8859-1")
|
|
884
|
+
return escape(P).replace(/%u[0-9a-f]{4}/gi, function(V) {
|
|
885
|
+
return "%26%23" + parseInt(V.slice(2), 16) + "%3B";
|
|
886
886
|
});
|
|
887
|
-
for (var
|
|
888
|
-
var
|
|
889
|
-
if (
|
|
890
|
-
|
|
887
|
+
for (var I = "", N = 0; N < P.length; ++N) {
|
|
888
|
+
var M = P.charCodeAt(N);
|
|
889
|
+
if (M === 45 || M === 46 || M === 95 || M === 126 || M >= 48 && M <= 57 || M >= 65 && M <= 90 || M >= 97 && M <= 122 || C === e.RFC1738 && (M === 40 || M === 41)) {
|
|
890
|
+
I += P.charAt(N);
|
|
891
891
|
continue;
|
|
892
892
|
}
|
|
893
|
-
if (
|
|
894
|
-
|
|
893
|
+
if (M < 128) {
|
|
894
|
+
I = I + t[M];
|
|
895
895
|
continue;
|
|
896
896
|
}
|
|
897
|
-
if (
|
|
898
|
-
|
|
897
|
+
if (M < 2048) {
|
|
898
|
+
I = I + (t[192 | M >> 6] + t[128 | M & 63]);
|
|
899
899
|
continue;
|
|
900
900
|
}
|
|
901
|
-
if (
|
|
902
|
-
|
|
901
|
+
if (M < 55296 || M >= 57344) {
|
|
902
|
+
I = I + (t[224 | M >> 12] + t[128 | M >> 6 & 63] + t[128 | M & 63]);
|
|
903
903
|
continue;
|
|
904
904
|
}
|
|
905
|
-
|
|
905
|
+
N += 1, M = 65536 + ((M & 1023) << 10 | P.charCodeAt(N) & 1023), I += t[240 | M >> 18] + t[128 | M >> 12 & 63] + t[128 | M >> 6 & 63] + t[128 | M & 63];
|
|
906
906
|
}
|
|
907
|
-
return
|
|
908
|
-
},
|
|
909
|
-
for (var
|
|
910
|
-
for (var
|
|
911
|
-
var
|
|
912
|
-
typeof
|
|
907
|
+
return I;
|
|
908
|
+
}, w = function(f) {
|
|
909
|
+
for (var c = [{ obj: { o: f }, prop: "o" }], b = [], v = 0; v < c.length; ++v)
|
|
910
|
+
for (var C = c[v], P = C.obj[C.prop], I = Object.keys(P), N = 0; N < I.length; ++N) {
|
|
911
|
+
var M = I[N], V = P[M];
|
|
912
|
+
typeof V == "object" && V !== null && b.indexOf(V) === -1 && (c.push({ obj: P, prop: M }), b.push(V));
|
|
913
913
|
}
|
|
914
|
-
return n(
|
|
915
|
-
},
|
|
916
|
-
return Object.prototype.toString.call(
|
|
917
|
-
},
|
|
918
|
-
return !
|
|
919
|
-
},
|
|
920
|
-
return [].concat(
|
|
921
|
-
},
|
|
922
|
-
if (a(
|
|
923
|
-
for (var
|
|
924
|
-
|
|
925
|
-
return
|
|
914
|
+
return n(c), f;
|
|
915
|
+
}, A = function(f) {
|
|
916
|
+
return Object.prototype.toString.call(f) === "[object RegExp]";
|
|
917
|
+
}, u = function(f) {
|
|
918
|
+
return !f || typeof f != "object" ? !1 : !!(f.constructor && f.constructor.isBuffer && f.constructor.isBuffer(f));
|
|
919
|
+
}, s = function(f, c) {
|
|
920
|
+
return [].concat(f, c);
|
|
921
|
+
}, i = function(f, c) {
|
|
922
|
+
if (a(f)) {
|
|
923
|
+
for (var b = [], v = 0; v < f.length; v += 1)
|
|
924
|
+
b.push(c(f[v]));
|
|
925
|
+
return b;
|
|
926
926
|
}
|
|
927
|
-
return
|
|
927
|
+
return c(f);
|
|
928
928
|
};
|
|
929
929
|
return sr = {
|
|
930
930
|
arrayToObject: o,
|
|
931
|
-
assign:
|
|
932
|
-
combine:
|
|
933
|
-
compact:
|
|
934
|
-
decode:
|
|
935
|
-
encode:
|
|
936
|
-
isBuffer:
|
|
937
|
-
isRegExp:
|
|
938
|
-
maybeMap:
|
|
939
|
-
merge:
|
|
931
|
+
assign: l,
|
|
932
|
+
combine: s,
|
|
933
|
+
compact: w,
|
|
934
|
+
decode: p,
|
|
935
|
+
encode: y,
|
|
936
|
+
isBuffer: u,
|
|
937
|
+
isRegExp: A,
|
|
938
|
+
maybeMap: i,
|
|
939
|
+
merge: m
|
|
940
940
|
}, sr;
|
|
941
941
|
}
|
|
942
942
|
var ur, $r;
|
|
@@ -944,19 +944,19 @@ function ut() {
|
|
|
944
944
|
if ($r) return ur;
|
|
945
945
|
$r = 1;
|
|
946
946
|
var e = st(), r = Wr(), a = gr(), t = Object.prototype.hasOwnProperty, n = {
|
|
947
|
-
brackets: function(
|
|
948
|
-
return
|
|
947
|
+
brackets: function(c) {
|
|
948
|
+
return c + "[]";
|
|
949
949
|
},
|
|
950
950
|
comma: "comma",
|
|
951
|
-
indices: function(
|
|
952
|
-
return
|
|
951
|
+
indices: function(c, b) {
|
|
952
|
+
return c + "[" + b + "]";
|
|
953
953
|
},
|
|
954
|
-
repeat: function(
|
|
955
|
-
return
|
|
954
|
+
repeat: function(c) {
|
|
955
|
+
return c;
|
|
956
956
|
}
|
|
957
|
-
}, o = Array.isArray,
|
|
958
|
-
|
|
959
|
-
},
|
|
957
|
+
}, o = Array.isArray, m = String.prototype.split, l = Array.prototype.push, p = function(f, c) {
|
|
958
|
+
l.apply(f, o(c) ? c : [c]);
|
|
959
|
+
}, y = Date.prototype.toISOString, w = a.default, A = {
|
|
960
960
|
addQueryPrefix: !1,
|
|
961
961
|
allowDots: !1,
|
|
962
962
|
charset: "utf-8",
|
|
@@ -965,154 +965,154 @@ function ut() {
|
|
|
965
965
|
encode: !0,
|
|
966
966
|
encoder: r.encode,
|
|
967
967
|
encodeValuesOnly: !1,
|
|
968
|
-
format:
|
|
969
|
-
formatter: a.formatters[
|
|
968
|
+
format: w,
|
|
969
|
+
formatter: a.formatters[w],
|
|
970
970
|
// deprecated
|
|
971
971
|
indices: !1,
|
|
972
|
-
serializeDate: function(
|
|
973
|
-
return
|
|
972
|
+
serializeDate: function(c) {
|
|
973
|
+
return y.call(c);
|
|
974
974
|
},
|
|
975
975
|
skipNulls: !1,
|
|
976
976
|
strictNullHandling: !1
|
|
977
|
-
},
|
|
978
|
-
return typeof
|
|
979
|
-
},
|
|
980
|
-
for (var
|
|
981
|
-
var
|
|
982
|
-
if (Q += 1, typeof
|
|
983
|
-
if (
|
|
977
|
+
}, u = function(c) {
|
|
978
|
+
return typeof c == "string" || typeof c == "number" || typeof c == "boolean" || typeof c == "symbol" || typeof c == "bigint";
|
|
979
|
+
}, s = {}, i = function f(c, b, v, C, P, I, N, M, V, U, L, F, T, R, $, z) {
|
|
980
|
+
for (var _ = c, Z = z, Q = 0, ne = !1; (Z = Z.get(s)) !== void 0 && !ne; ) {
|
|
981
|
+
var X = Z.get(c);
|
|
982
|
+
if (Q += 1, typeof X < "u") {
|
|
983
|
+
if (X === Q)
|
|
984
984
|
throw new RangeError("Cyclic object value");
|
|
985
|
-
|
|
985
|
+
ne = !0;
|
|
986
986
|
}
|
|
987
|
-
typeof
|
|
987
|
+
typeof Z.get(s) > "u" && (Q = 0);
|
|
988
988
|
}
|
|
989
|
-
if (typeof
|
|
990
|
-
return
|
|
991
|
-
})),
|
|
992
|
-
if (
|
|
993
|
-
return
|
|
994
|
-
|
|
989
|
+
if (typeof M == "function" ? _ = M(b, _) : _ instanceof Date ? _ = L(_) : v === "comma" && o(_) && (_ = r.maybeMap(_, function(ee) {
|
|
990
|
+
return ee instanceof Date ? L(ee) : ee;
|
|
991
|
+
})), _ === null) {
|
|
992
|
+
if (P)
|
|
993
|
+
return N && !R ? N(b, A.encoder, $, "key", F) : b;
|
|
994
|
+
_ = "";
|
|
995
995
|
}
|
|
996
|
-
if (
|
|
997
|
-
if (
|
|
998
|
-
var
|
|
999
|
-
if (
|
|
1000
|
-
for (var
|
|
1001
|
-
|
|
1002
|
-
return [
|
|
996
|
+
if (u(_) || r.isBuffer(_)) {
|
|
997
|
+
if (N) {
|
|
998
|
+
var W = R ? b : N(b, A.encoder, $, "key", F);
|
|
999
|
+
if (v === "comma" && R) {
|
|
1000
|
+
for (var ie = m.call(String(_), ","), re = "", te = 0; te < ie.length; ++te)
|
|
1001
|
+
re += (te === 0 ? "" : ",") + T(N(ie[te], A.encoder, $, "value", F));
|
|
1002
|
+
return [T(W) + (C && o(_) && ie.length === 1 ? "[]" : "") + "=" + re];
|
|
1003
1003
|
}
|
|
1004
|
-
return [
|
|
1004
|
+
return [T(W) + "=" + T(N(_, A.encoder, $, "value", F))];
|
|
1005
1005
|
}
|
|
1006
|
-
return [
|
|
1006
|
+
return [T(b) + "=" + T(String(_))];
|
|
1007
1007
|
}
|
|
1008
1008
|
var ce = [];
|
|
1009
|
-
if (typeof
|
|
1009
|
+
if (typeof _ > "u")
|
|
1010
1010
|
return ce;
|
|
1011
1011
|
var ue;
|
|
1012
|
-
if (
|
|
1013
|
-
ue = [{ value:
|
|
1014
|
-
else if (o(
|
|
1015
|
-
ue =
|
|
1012
|
+
if (v === "comma" && o(_))
|
|
1013
|
+
ue = [{ value: _.length > 0 ? _.join(",") || null : void 0 }];
|
|
1014
|
+
else if (o(M))
|
|
1015
|
+
ue = M;
|
|
1016
1016
|
else {
|
|
1017
|
-
var oe = Object.keys(
|
|
1018
|
-
ue =
|
|
1017
|
+
var oe = Object.keys(_);
|
|
1018
|
+
ue = V ? oe.sort(V) : oe;
|
|
1019
1019
|
}
|
|
1020
|
-
for (var de =
|
|
1021
|
-
var se = ue[pe], ye = typeof se == "object" && typeof se.value < "u" ? se.value :
|
|
1022
|
-
if (!(
|
|
1023
|
-
var be = o(
|
|
1024
|
-
|
|
1025
|
-
var
|
|
1026
|
-
|
|
1020
|
+
for (var de = C && o(_) && _.length === 1 ? b + "[]" : b, pe = 0; pe < ue.length; ++pe) {
|
|
1021
|
+
var se = ue[pe], ye = typeof se == "object" && typeof se.value < "u" ? se.value : _[se];
|
|
1022
|
+
if (!(I && ye === null)) {
|
|
1023
|
+
var be = o(_) ? typeof v == "function" ? v(de, se) : de : de + (U ? "." + se : "[" + se + "]");
|
|
1024
|
+
z.set(c, Q);
|
|
1025
|
+
var J = e();
|
|
1026
|
+
J.set(s, z), p(ce, f(
|
|
1027
1027
|
ye,
|
|
1028
1028
|
be,
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
x,
|
|
1029
|
+
v,
|
|
1030
|
+
C,
|
|
1031
|
+
P,
|
|
1033
1032
|
I,
|
|
1034
|
-
|
|
1035
|
-
|
|
1033
|
+
N,
|
|
1034
|
+
M,
|
|
1035
|
+
V,
|
|
1036
|
+
U,
|
|
1036
1037
|
L,
|
|
1037
1038
|
F,
|
|
1038
|
-
|
|
1039
|
+
T,
|
|
1039
1040
|
R,
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
Y
|
|
1041
|
+
$,
|
|
1042
|
+
J
|
|
1043
1043
|
));
|
|
1044
1044
|
}
|
|
1045
1045
|
}
|
|
1046
1046
|
return ce;
|
|
1047
|
-
},
|
|
1048
|
-
if (!
|
|
1049
|
-
return
|
|
1050
|
-
if (
|
|
1047
|
+
}, S = function(c) {
|
|
1048
|
+
if (!c)
|
|
1049
|
+
return A;
|
|
1050
|
+
if (c.encoder !== null && typeof c.encoder < "u" && typeof c.encoder != "function")
|
|
1051
1051
|
throw new TypeError("Encoder has to be a function.");
|
|
1052
|
-
var
|
|
1053
|
-
if (typeof
|
|
1052
|
+
var b = c.charset || A.charset;
|
|
1053
|
+
if (typeof c.charset < "u" && c.charset !== "utf-8" && c.charset !== "iso-8859-1")
|
|
1054
1054
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
1055
|
-
var
|
|
1056
|
-
if (typeof
|
|
1057
|
-
if (!t.call(a.formatters,
|
|
1055
|
+
var v = a.default;
|
|
1056
|
+
if (typeof c.format < "u") {
|
|
1057
|
+
if (!t.call(a.formatters, c.format))
|
|
1058
1058
|
throw new TypeError("Unknown format option provided.");
|
|
1059
|
-
|
|
1059
|
+
v = c.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
|
|
1071
|
-
filter:
|
|
1072
|
-
format:
|
|
1073
|
-
formatter:
|
|
1074
|
-
serializeDate: typeof
|
|
1075
|
-
skipNulls: typeof
|
|
1076
|
-
sort: typeof
|
|
1077
|
-
strictNullHandling: typeof
|
|
1061
|
+
var C = a.formatters[v], P = A.filter;
|
|
1062
|
+
return (typeof c.filter == "function" || o(c.filter)) && (P = c.filter), {
|
|
1063
|
+
addQueryPrefix: typeof c.addQueryPrefix == "boolean" ? c.addQueryPrefix : A.addQueryPrefix,
|
|
1064
|
+
allowDots: typeof c.allowDots > "u" ? A.allowDots : !!c.allowDots,
|
|
1065
|
+
charset: b,
|
|
1066
|
+
charsetSentinel: typeof c.charsetSentinel == "boolean" ? c.charsetSentinel : A.charsetSentinel,
|
|
1067
|
+
delimiter: typeof c.delimiter > "u" ? A.delimiter : c.delimiter,
|
|
1068
|
+
encode: typeof c.encode == "boolean" ? c.encode : A.encode,
|
|
1069
|
+
encoder: typeof c.encoder == "function" ? c.encoder : A.encoder,
|
|
1070
|
+
encodeValuesOnly: typeof c.encodeValuesOnly == "boolean" ? c.encodeValuesOnly : A.encodeValuesOnly,
|
|
1071
|
+
filter: P,
|
|
1072
|
+
format: v,
|
|
1073
|
+
formatter: C,
|
|
1074
|
+
serializeDate: typeof c.serializeDate == "function" ? c.serializeDate : A.serializeDate,
|
|
1075
|
+
skipNulls: typeof c.skipNulls == "boolean" ? c.skipNulls : A.skipNulls,
|
|
1076
|
+
sort: typeof c.sort == "function" ? c.sort : null,
|
|
1077
|
+
strictNullHandling: typeof c.strictNullHandling == "boolean" ? c.strictNullHandling : A.strictNullHandling
|
|
1078
1078
|
};
|
|
1079
1079
|
};
|
|
1080
|
-
return ur = function(
|
|
1081
|
-
var
|
|
1082
|
-
typeof
|
|
1083
|
-
var
|
|
1084
|
-
if (typeof
|
|
1080
|
+
return ur = function(f, c) {
|
|
1081
|
+
var b = f, v = S(c), C, P;
|
|
1082
|
+
typeof v.filter == "function" ? (P = v.filter, b = P("", b)) : o(v.filter) && (P = v.filter, C = P);
|
|
1083
|
+
var I = [];
|
|
1084
|
+
if (typeof b != "object" || b === null)
|
|
1085
1085
|
return "";
|
|
1086
|
-
var
|
|
1087
|
-
|
|
1088
|
-
var
|
|
1089
|
-
if (
|
|
1086
|
+
var N;
|
|
1087
|
+
c && c.arrayFormat in n ? N = c.arrayFormat : c && "indices" in c ? N = c.indices ? "indices" : "repeat" : N = "indices";
|
|
1088
|
+
var M = n[N];
|
|
1089
|
+
if (c && "commaRoundTrip" in c && typeof c.commaRoundTrip != "boolean")
|
|
1090
1090
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
1091
|
-
var
|
|
1092
|
-
|
|
1093
|
-
for (var
|
|
1094
|
-
var
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1091
|
+
var V = M === "comma" && c && c.commaRoundTrip;
|
|
1092
|
+
C || (C = Object.keys(b)), v.sort && C.sort(v.sort);
|
|
1093
|
+
for (var U = e(), L = 0; L < C.length; ++L) {
|
|
1094
|
+
var F = C[L];
|
|
1095
|
+
v.skipNulls && b[F] === null || p(I, i(
|
|
1096
|
+
b[F],
|
|
1097
|
+
F,
|
|
1098
|
+
M,
|
|
1099
|
+
V,
|
|
1100
|
+
v.strictNullHandling,
|
|
1101
|
+
v.skipNulls,
|
|
1102
|
+
v.encode ? v.encoder : null,
|
|
1103
|
+
v.filter,
|
|
1104
|
+
v.sort,
|
|
1105
|
+
v.allowDots,
|
|
1106
|
+
v.serializeDate,
|
|
1107
|
+
v.format,
|
|
1108
|
+
v.formatter,
|
|
1109
|
+
v.encodeValuesOnly,
|
|
1110
|
+
v.charset,
|
|
1111
|
+
U
|
|
1112
1112
|
));
|
|
1113
1113
|
}
|
|
1114
|
-
var
|
|
1115
|
-
return
|
|
1114
|
+
var T = I.join(v.delimiter), R = v.addQueryPrefix === !0 ? "?" : "";
|
|
1115
|
+
return v.charsetSentinel && (v.charset === "iso-8859-1" ? R += "utf8=%26%2310003%3B&" : R += "utf8=%E2%9C%93&"), T.length > 0 ? R + T : "";
|
|
1116
1116
|
}, ur;
|
|
1117
1117
|
}
|
|
1118
1118
|
var cr, Ur;
|
|
@@ -1136,93 +1136,93 @@ function ct() {
|
|
|
1136
1136
|
parseArrays: !0,
|
|
1137
1137
|
plainObjects: !1,
|
|
1138
1138
|
strictNullHandling: !1
|
|
1139
|
-
}, n = function(
|
|
1140
|
-
return
|
|
1141
|
-
return String.fromCharCode(parseInt(
|
|
1139
|
+
}, n = function(u) {
|
|
1140
|
+
return u.replace(/&#(\d+);/g, function(s, i) {
|
|
1141
|
+
return String.fromCharCode(parseInt(i, 10));
|
|
1142
1142
|
});
|
|
1143
|
-
}, o = function(
|
|
1144
|
-
return
|
|
1145
|
-
},
|
|
1146
|
-
var
|
|
1147
|
-
if (
|
|
1148
|
-
for (
|
|
1149
|
-
|
|
1150
|
-
for (
|
|
1151
|
-
if (
|
|
1152
|
-
var
|
|
1153
|
-
|
|
1154
|
-
o(
|
|
1155
|
-
function(
|
|
1156
|
-
return
|
|
1143
|
+
}, o = function(u, s) {
|
|
1144
|
+
return u && typeof u == "string" && s.comma && u.indexOf(",") > -1 ? u.split(",") : u;
|
|
1145
|
+
}, m = "utf8=%26%2310003%3B", l = "utf8=%E2%9C%93", p = function(s, i) {
|
|
1146
|
+
var S = {}, f = i.ignoreQueryPrefix ? s.replace(/^\?/, "") : s, c = i.parameterLimit === 1 / 0 ? void 0 : i.parameterLimit, b = f.split(i.delimiter, c), v = -1, C, P = i.charset;
|
|
1147
|
+
if (i.charsetSentinel)
|
|
1148
|
+
for (C = 0; C < b.length; ++C)
|
|
1149
|
+
b[C].indexOf("utf8=") === 0 && (b[C] === l ? P = "utf-8" : b[C] === m && (P = "iso-8859-1"), v = C, C = b.length);
|
|
1150
|
+
for (C = 0; C < b.length; ++C)
|
|
1151
|
+
if (C !== v) {
|
|
1152
|
+
var I = b[C], N = I.indexOf("]="), M = N === -1 ? I.indexOf("=") : N + 1, V, U;
|
|
1153
|
+
M === -1 ? (V = i.decoder(I, t.decoder, P, "key"), U = i.strictNullHandling ? null : "") : (V = i.decoder(I.slice(0, M), t.decoder, P, "key"), U = e.maybeMap(
|
|
1154
|
+
o(I.slice(M + 1), i),
|
|
1155
|
+
function(L) {
|
|
1156
|
+
return i.decoder(L, t.decoder, P, "value");
|
|
1157
1157
|
}
|
|
1158
|
-
)),
|
|
1158
|
+
)), U && i.interpretNumericEntities && P === "iso-8859-1" && (U = n(U)), I.indexOf("[]=") > -1 && (U = a(U) ? [U] : U), r.call(S, V) ? S[V] = e.combine(S[V], U) : S[V] = U;
|
|
1159
1159
|
}
|
|
1160
|
-
return
|
|
1161
|
-
},
|
|
1162
|
-
for (var
|
|
1163
|
-
var
|
|
1164
|
-
if (
|
|
1165
|
-
|
|
1160
|
+
return S;
|
|
1161
|
+
}, y = function(u, s, i, S) {
|
|
1162
|
+
for (var f = S ? s : o(s, i), c = u.length - 1; c >= 0; --c) {
|
|
1163
|
+
var b, v = u[c];
|
|
1164
|
+
if (v === "[]" && i.parseArrays)
|
|
1165
|
+
b = [].concat(f);
|
|
1166
1166
|
else {
|
|
1167
|
-
|
|
1168
|
-
var
|
|
1169
|
-
!
|
|
1167
|
+
b = i.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
1168
|
+
var C = v.charAt(0) === "[" && v.charAt(v.length - 1) === "]" ? v.slice(1, -1) : v, P = parseInt(C, 10);
|
|
1169
|
+
!i.parseArrays && C === "" ? b = { 0: f } : !isNaN(P) && v !== C && String(P) === C && P >= 0 && i.parseArrays && P <= i.arrayLimit ? (b = [], b[P] = f) : C !== "__proto__" && (b[C] = f);
|
|
1170
1170
|
}
|
|
1171
|
-
|
|
1171
|
+
f = b;
|
|
1172
1172
|
}
|
|
1173
|
-
return
|
|
1174
|
-
},
|
|
1175
|
-
if (
|
|
1176
|
-
var
|
|
1177
|
-
if (
|
|
1178
|
-
if (!
|
|
1173
|
+
return f;
|
|
1174
|
+
}, w = function(s, i, S, f) {
|
|
1175
|
+
if (s) {
|
|
1176
|
+
var c = S.allowDots ? s.replace(/\.([^.[]+)/g, "[$1]") : s, b = /(\[[^[\]]*])/, v = /(\[[^[\]]*])/g, C = S.depth > 0 && b.exec(c), P = C ? c.slice(0, C.index) : c, I = [];
|
|
1177
|
+
if (P) {
|
|
1178
|
+
if (!S.plainObjects && r.call(Object.prototype, P) && !S.allowPrototypes)
|
|
1179
1179
|
return;
|
|
1180
|
-
|
|
1180
|
+
I.push(P);
|
|
1181
1181
|
}
|
|
1182
|
-
for (var
|
|
1183
|
-
if (
|
|
1182
|
+
for (var N = 0; S.depth > 0 && (C = v.exec(c)) !== null && N < S.depth; ) {
|
|
1183
|
+
if (N += 1, !S.plainObjects && r.call(Object.prototype, C[1].slice(1, -1)) && !S.allowPrototypes)
|
|
1184
1184
|
return;
|
|
1185
|
-
|
|
1185
|
+
I.push(C[1]);
|
|
1186
1186
|
}
|
|
1187
|
-
return
|
|
1187
|
+
return C && I.push("[" + c.slice(C.index) + "]"), y(I, i, S, f);
|
|
1188
1188
|
}
|
|
1189
|
-
},
|
|
1190
|
-
if (!
|
|
1189
|
+
}, A = function(s) {
|
|
1190
|
+
if (!s)
|
|
1191
1191
|
return t;
|
|
1192
|
-
if (
|
|
1192
|
+
if (s.decoder !== null && s.decoder !== void 0 && typeof s.decoder != "function")
|
|
1193
1193
|
throw new TypeError("Decoder has to be a function.");
|
|
1194
|
-
if (typeof
|
|
1194
|
+
if (typeof s.charset < "u" && s.charset !== "utf-8" && s.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 i = typeof s.charset > "u" ? t.charset : s.charset;
|
|
1197
1197
|
return {
|
|
1198
|
-
allowDots: typeof
|
|
1199
|
-
allowPrototypes: typeof
|
|
1200
|
-
allowSparse: typeof
|
|
1201
|
-
arrayLimit: typeof
|
|
1202
|
-
charset:
|
|
1203
|
-
charsetSentinel: typeof
|
|
1204
|
-
comma: typeof
|
|
1205
|
-
decoder: typeof
|
|
1206
|
-
delimiter: typeof
|
|
1198
|
+
allowDots: typeof s.allowDots > "u" ? t.allowDots : !!s.allowDots,
|
|
1199
|
+
allowPrototypes: typeof s.allowPrototypes == "boolean" ? s.allowPrototypes : t.allowPrototypes,
|
|
1200
|
+
allowSparse: typeof s.allowSparse == "boolean" ? s.allowSparse : t.allowSparse,
|
|
1201
|
+
arrayLimit: typeof s.arrayLimit == "number" ? s.arrayLimit : t.arrayLimit,
|
|
1202
|
+
charset: i,
|
|
1203
|
+
charsetSentinel: typeof s.charsetSentinel == "boolean" ? s.charsetSentinel : t.charsetSentinel,
|
|
1204
|
+
comma: typeof s.comma == "boolean" ? s.comma : t.comma,
|
|
1205
|
+
decoder: typeof s.decoder == "function" ? s.decoder : t.decoder,
|
|
1206
|
+
delimiter: typeof s.delimiter == "string" || e.isRegExp(s.delimiter) ? s.delimiter : t.delimiter,
|
|
1207
1207
|
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
1208
|
-
depth: typeof
|
|
1209
|
-
ignoreQueryPrefix:
|
|
1210
|
-
interpretNumericEntities: typeof
|
|
1211
|
-
parameterLimit: typeof
|
|
1212
|
-
parseArrays:
|
|
1213
|
-
plainObjects: typeof
|
|
1214
|
-
strictNullHandling: typeof
|
|
1208
|
+
depth: typeof s.depth == "number" || s.depth === !1 ? +s.depth : t.depth,
|
|
1209
|
+
ignoreQueryPrefix: s.ignoreQueryPrefix === !0,
|
|
1210
|
+
interpretNumericEntities: typeof s.interpretNumericEntities == "boolean" ? s.interpretNumericEntities : t.interpretNumericEntities,
|
|
1211
|
+
parameterLimit: typeof s.parameterLimit == "number" ? s.parameterLimit : t.parameterLimit,
|
|
1212
|
+
parseArrays: s.parseArrays !== !1,
|
|
1213
|
+
plainObjects: typeof s.plainObjects == "boolean" ? s.plainObjects : t.plainObjects,
|
|
1214
|
+
strictNullHandling: typeof s.strictNullHandling == "boolean" ? s.strictNullHandling : t.strictNullHandling
|
|
1215
1215
|
};
|
|
1216
1216
|
};
|
|
1217
|
-
return cr = function(
|
|
1218
|
-
var
|
|
1219
|
-
if (
|
|
1220
|
-
return
|
|
1221
|
-
for (var
|
|
1222
|
-
var
|
|
1223
|
-
|
|
1217
|
+
return cr = function(u, s) {
|
|
1218
|
+
var i = A(s);
|
|
1219
|
+
if (u === "" || u === null || typeof u > "u")
|
|
1220
|
+
return i.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
1221
|
+
for (var S = typeof u == "string" ? p(u, i) : u, f = i.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, c = Object.keys(S), b = 0; b < c.length; ++b) {
|
|
1222
|
+
var v = c[b], C = w(v, S[v], i, typeof u == "string");
|
|
1223
|
+
f = e.merge(f, C, i);
|
|
1224
1224
|
}
|
|
1225
|
-
return
|
|
1225
|
+
return i.allowSparse === !0 ? f : e.compact(f);
|
|
1226
1226
|
}, cr;
|
|
1227
1227
|
}
|
|
1228
1228
|
var lr, Br;
|
|
@@ -1237,338 +1237,338 @@ function lt() {
|
|
|
1237
1237
|
}, lr;
|
|
1238
1238
|
}
|
|
1239
1239
|
var ft = lt();
|
|
1240
|
-
const dt = /* @__PURE__ */ mr(ft), vr = "0.
|
|
1240
|
+
const dt = /* @__PURE__ */ mr(ft), vr = "0.2.2", pt = Ee.CancelToken;
|
|
1241
1241
|
var mt = function(e) {
|
|
1242
1242
|
var r;
|
|
1243
1243
|
typeof window < "u" && (r = e.cache.get("api"));
|
|
1244
1244
|
const a = Ee.defaults.adapter;
|
|
1245
|
-
function t(
|
|
1246
|
-
var
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1245
|
+
function t(p) {
|
|
1246
|
+
var y = [
|
|
1247
|
+
p.method,
|
|
1248
|
+
p.url,
|
|
1249
|
+
p.headers?.Authorization,
|
|
1250
|
+
p.headers.Accept,
|
|
1251
1251
|
JSON.stringify({
|
|
1252
|
-
params:
|
|
1253
|
-
data:
|
|
1252
|
+
params: p.params,
|
|
1253
|
+
data: p.data
|
|
1254
1254
|
})
|
|
1255
1255
|
].filter(Boolean).join("-");
|
|
1256
|
-
return
|
|
1256
|
+
return y;
|
|
1257
1257
|
}
|
|
1258
|
-
const n = {},
|
|
1259
|
-
var
|
|
1260
|
-
return n[
|
|
1261
|
-
var
|
|
1262
|
-
switch (String(
|
|
1258
|
+
const n = {}, m = l(function(p) {
|
|
1259
|
+
var y = t(p);
|
|
1260
|
+
return n[y] || (n[y] = new Promise(function(w, A) {
|
|
1261
|
+
var u, s;
|
|
1262
|
+
switch (String(p.method).toLowerCase()) {
|
|
1263
1263
|
case "post":
|
|
1264
1264
|
case "patch":
|
|
1265
1265
|
case "put":
|
|
1266
1266
|
case "delete":
|
|
1267
|
-
|
|
1267
|
+
p.cache || (p.cache = !1);
|
|
1268
1268
|
break;
|
|
1269
1269
|
}
|
|
1270
|
-
return
|
|
1271
|
-
function(
|
|
1272
|
-
delete n[
|
|
1270
|
+
return p.cache === !1 || (u = p.cache || r, u && (s = u.get(y))), s ? w(s) : (Object.assign(p, { adapter: a }), Ee.request(p).then(
|
|
1271
|
+
function(i) {
|
|
1272
|
+
delete n[y], w(i);
|
|
1273
1273
|
},
|
|
1274
|
-
function(
|
|
1275
|
-
delete n[
|
|
1274
|
+
function(i) {
|
|
1275
|
+
delete n[y], A(i);
|
|
1276
1276
|
}
|
|
1277
1277
|
));
|
|
1278
|
-
})), n[
|
|
1278
|
+
})), n[y];
|
|
1279
1279
|
});
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
var
|
|
1283
|
-
const
|
|
1284
|
-
|
|
1285
|
-
var
|
|
1286
|
-
|
|
1287
|
-
var
|
|
1288
|
-
return
|
|
1289
|
-
},
|
|
1290
|
-
return Ee.isCancel(
|
|
1280
|
+
m.generateEndpointURL = function(p, y, w) {
|
|
1281
|
+
w = w || {}, y = y || {};
|
|
1282
|
+
var A;
|
|
1283
|
+
const u = w.file && e.fileAPI || e.apiURL;
|
|
1284
|
+
w.withoutToken || (delete y.access_token, A = e.auth.getCurrentToken()), p[0] == "/" && p.slice(1);
|
|
1285
|
+
var s = e.utils.mapParameters(y);
|
|
1286
|
+
A ? s = s ? `?access_token=${A}&${s}` : `?access_token=${A}` : s = s ? `?${s}` : "";
|
|
1287
|
+
var i = `${u}${p}${s}`;
|
|
1288
|
+
return i;
|
|
1289
|
+
}, m.wasCancelled = function(p) {
|
|
1290
|
+
return Ee.isCancel(p);
|
|
1291
1291
|
};
|
|
1292
|
-
function
|
|
1293
|
-
var
|
|
1294
|
-
paramsSerializer: (
|
|
1295
|
-
adapter:
|
|
1292
|
+
function l(p) {
|
|
1293
|
+
var y = Ee.create({
|
|
1294
|
+
paramsSerializer: (A) => dt.stringify(A, { arrayFormat: "repeat" }),
|
|
1295
|
+
adapter: p
|
|
1296
1296
|
});
|
|
1297
|
-
|
|
1298
|
-
if (t(
|
|
1299
|
-
return
|
|
1300
|
-
if (
|
|
1301
|
-
const
|
|
1302
|
-
|
|
1297
|
+
y.defaults.baseURL = e.apiURL, y.defaults.headers.common.Accept = "application/json", y.interceptors.request.use(function(A) {
|
|
1298
|
+
if (t(A), A.withoutToken)
|
|
1299
|
+
return A;
|
|
1300
|
+
if (A.headers["qik-request-date"] = (/* @__PURE__ */ new Date()).getTime(), Intl) {
|
|
1301
|
+
const s = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
1302
|
+
s && (A.headers["qik-request-timezone"] = s);
|
|
1303
1303
|
}
|
|
1304
|
-
|
|
1305
|
-
var
|
|
1306
|
-
return
|
|
1304
|
+
A.headers["qik-api-version"] = vr, e?.socket?.windowID && (A.headers["qik-socket-window"] = e.socket.windowID);
|
|
1305
|
+
var u = e.auth.getCurrentToken();
|
|
1306
|
+
return u && (A.headers.Authorization = `Bearer ${u}`, A.params && A.params.access_token && delete A.params.access_token), A;
|
|
1307
1307
|
});
|
|
1308
|
-
let
|
|
1309
|
-
return
|
|
1310
|
-
function(
|
|
1311
|
-
var
|
|
1312
|
-
switch (
|
|
1308
|
+
let w = 0;
|
|
1309
|
+
return y.interceptors.response.use(
|
|
1310
|
+
function(A) {
|
|
1311
|
+
var u = A.config, s = A.status;
|
|
1312
|
+
switch (s) {
|
|
1313
1313
|
case 204:
|
|
1314
|
-
if (
|
|
1315
|
-
return
|
|
1314
|
+
if (w < 5)
|
|
1315
|
+
return w++, new Promise(function(i, S) {
|
|
1316
1316
|
setTimeout(function() {
|
|
1317
|
-
return
|
|
1317
|
+
return y.request(u).then(i, S);
|
|
1318
1318
|
}, 800);
|
|
1319
1319
|
});
|
|
1320
|
-
console.log("Failed after 5 retries"),
|
|
1320
|
+
console.log("Failed after 5 retries"), w = 0;
|
|
1321
1321
|
break;
|
|
1322
1322
|
}
|
|
1323
|
-
return
|
|
1323
|
+
return A;
|
|
1324
1324
|
},
|
|
1325
|
-
function(
|
|
1326
|
-
if (Ee.isCancel(
|
|
1327
|
-
return Promise.reject(
|
|
1328
|
-
var
|
|
1329
|
-
switch (
|
|
1325
|
+
function(A) {
|
|
1326
|
+
if (Ee.isCancel(A))
|
|
1327
|
+
return Promise.reject(A);
|
|
1328
|
+
var u = A?.response?.status || A.status;
|
|
1329
|
+
switch (u) {
|
|
1330
1330
|
case 401:
|
|
1331
1331
|
break;
|
|
1332
1332
|
case 502:
|
|
1333
1333
|
case 504:
|
|
1334
|
-
if (
|
|
1335
|
-
return
|
|
1334
|
+
if (w < 5)
|
|
1335
|
+
return w++, new Promise(function(s, i) {
|
|
1336
1336
|
setTimeout(function() {
|
|
1337
|
-
return
|
|
1337
|
+
return y.request(A.config).then(s, i);
|
|
1338
1338
|
}, 800);
|
|
1339
1339
|
});
|
|
1340
|
-
console.log("Failed after 5 retries"),
|
|
1340
|
+
console.log("Failed after 5 retries"), w = 0;
|
|
1341
1341
|
break;
|
|
1342
1342
|
}
|
|
1343
|
-
return Promise.reject(
|
|
1343
|
+
return Promise.reject(A);
|
|
1344
1344
|
}
|
|
1345
|
-
),
|
|
1345
|
+
), y;
|
|
1346
1346
|
}
|
|
1347
|
-
return
|
|
1347
|
+
return m.CancelToken = pt, m.axios = Ee, m;
|
|
1348
1348
|
}, fr, Gr;
|
|
1349
1349
|
function yt() {
|
|
1350
1350
|
if (Gr) return fr;
|
|
1351
1351
|
Gr = 1;
|
|
1352
|
-
var e = "Expected a function", r = "__lodash_hash_undefined__", a = "[object Function]", t = "[object GeneratorFunction]", n = "[object Symbol]", o = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
|
|
1353
|
-
function
|
|
1354
|
-
return
|
|
1352
|
+
var e = "Expected a function", r = "__lodash_hash_undefined__", a = "[object Function]", t = "[object GeneratorFunction]", n = "[object Symbol]", o = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, m = /^\w*$/, l = /^\./, p = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, y = /[\\^$.*+?()[\]{}|]/g, w = /\\(\\)?/g, A = /^\[object .+?Constructor\]$/, u = typeof Ae == "object" && Ae && Ae.Object === Object && Ae, s = typeof self == "object" && self && self.Object === Object && self, i = u || s || Function("return this")();
|
|
1353
|
+
function S(d, E) {
|
|
1354
|
+
return d?.[E];
|
|
1355
1355
|
}
|
|
1356
|
-
function
|
|
1357
|
-
var
|
|
1358
|
-
if (
|
|
1356
|
+
function f(d) {
|
|
1357
|
+
var E = !1;
|
|
1358
|
+
if (d != null && typeof d.toString != "function")
|
|
1359
1359
|
try {
|
|
1360
|
-
|
|
1360
|
+
E = !!(d + "");
|
|
1361
1361
|
} catch {
|
|
1362
1362
|
}
|
|
1363
|
-
return
|
|
1363
|
+
return E;
|
|
1364
1364
|
}
|
|
1365
|
-
var
|
|
1366
|
-
var
|
|
1367
|
-
return
|
|
1368
|
-
})(),
|
|
1369
|
-
"^" +
|
|
1370
|
-
),
|
|
1371
|
-
function
|
|
1372
|
-
var
|
|
1373
|
-
for (this.clear(); ++
|
|
1374
|
-
var
|
|
1375
|
-
this.set(
|
|
1365
|
+
var c = Array.prototype, b = Function.prototype, v = Object.prototype, C = i["__core-js_shared__"], P = (function() {
|
|
1366
|
+
var d = /[^.]+$/.exec(C && C.keys && C.keys.IE_PROTO || "");
|
|
1367
|
+
return d ? "Symbol(src)_1." + d : "";
|
|
1368
|
+
})(), I = b.toString, N = v.hasOwnProperty, M = v.toString, V = RegExp(
|
|
1369
|
+
"^" + I.call(N).replace(y, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1370
|
+
), U = i.Symbol, L = c.splice, F = xe(i, "Map"), T = xe(Object, "create"), R = U ? U.prototype : void 0, $ = R ? R.toString : void 0;
|
|
1371
|
+
function z(d) {
|
|
1372
|
+
var E = -1, x = d ? d.length : 0;
|
|
1373
|
+
for (this.clear(); ++E < x; ) {
|
|
1374
|
+
var G = d[E];
|
|
1375
|
+
this.set(G[0], G[1]);
|
|
1376
1376
|
}
|
|
1377
1377
|
}
|
|
1378
|
-
function
|
|
1379
|
-
this.__data__ =
|
|
1378
|
+
function _() {
|
|
1379
|
+
this.__data__ = T ? T(null) : {};
|
|
1380
1380
|
}
|
|
1381
|
-
function
|
|
1382
|
-
return this.has(
|
|
1381
|
+
function Z(d) {
|
|
1382
|
+
return this.has(d) && delete this.__data__[d];
|
|
1383
1383
|
}
|
|
1384
|
-
function Q(
|
|
1385
|
-
var
|
|
1386
|
-
if (
|
|
1387
|
-
var
|
|
1388
|
-
return
|
|
1384
|
+
function Q(d) {
|
|
1385
|
+
var E = this.__data__;
|
|
1386
|
+
if (T) {
|
|
1387
|
+
var x = E[d];
|
|
1388
|
+
return x === r ? void 0 : x;
|
|
1389
1389
|
}
|
|
1390
|
-
return
|
|
1391
|
-
}
|
|
1392
|
-
function
|
|
1393
|
-
var
|
|
1394
|
-
return
|
|
1395
|
-
}
|
|
1396
|
-
function
|
|
1397
|
-
var
|
|
1398
|
-
return
|
|
1399
|
-
}
|
|
1400
|
-
|
|
1401
|
-
function
|
|
1402
|
-
var
|
|
1403
|
-
for (this.clear(); ++
|
|
1404
|
-
var
|
|
1405
|
-
this.set(
|
|
1390
|
+
return N.call(E, d) ? E[d] : void 0;
|
|
1391
|
+
}
|
|
1392
|
+
function ne(d) {
|
|
1393
|
+
var E = this.__data__;
|
|
1394
|
+
return T ? E[d] !== void 0 : N.call(E, d);
|
|
1395
|
+
}
|
|
1396
|
+
function X(d, E) {
|
|
1397
|
+
var x = this.__data__;
|
|
1398
|
+
return x[d] = T && E === void 0 ? r : E, this;
|
|
1399
|
+
}
|
|
1400
|
+
z.prototype.clear = _, z.prototype.delete = Z, z.prototype.get = Q, z.prototype.has = ne, z.prototype.set = X;
|
|
1401
|
+
function W(d) {
|
|
1402
|
+
var E = -1, x = d ? d.length : 0;
|
|
1403
|
+
for (this.clear(); ++E < x; ) {
|
|
1404
|
+
var G = d[E];
|
|
1405
|
+
this.set(G[0], G[1]);
|
|
1406
1406
|
}
|
|
1407
1407
|
}
|
|
1408
|
-
function
|
|
1408
|
+
function ie() {
|
|
1409
1409
|
this.__data__ = [];
|
|
1410
1410
|
}
|
|
1411
|
-
function
|
|
1412
|
-
var
|
|
1413
|
-
if (
|
|
1411
|
+
function re(d) {
|
|
1412
|
+
var E = this.__data__, x = J(E, d);
|
|
1413
|
+
if (x < 0)
|
|
1414
1414
|
return !1;
|
|
1415
|
-
var
|
|
1416
|
-
return
|
|
1417
|
-
}
|
|
1418
|
-
function
|
|
1419
|
-
var
|
|
1420
|
-
return
|
|
1421
|
-
}
|
|
1422
|
-
function ce(
|
|
1423
|
-
return
|
|
1424
|
-
}
|
|
1425
|
-
function ue(
|
|
1426
|
-
var
|
|
1427
|
-
return
|
|
1428
|
-
}
|
|
1429
|
-
|
|
1430
|
-
function oe(
|
|
1431
|
-
var
|
|
1432
|
-
for (this.clear(); ++
|
|
1433
|
-
var
|
|
1434
|
-
this.set(
|
|
1415
|
+
var G = E.length - 1;
|
|
1416
|
+
return x == G ? E.pop() : L.call(E, x, 1), !0;
|
|
1417
|
+
}
|
|
1418
|
+
function te(d) {
|
|
1419
|
+
var E = this.__data__, x = J(E, d);
|
|
1420
|
+
return x < 0 ? void 0 : E[x][1];
|
|
1421
|
+
}
|
|
1422
|
+
function ce(d) {
|
|
1423
|
+
return J(this.__data__, d) > -1;
|
|
1424
|
+
}
|
|
1425
|
+
function ue(d, E) {
|
|
1426
|
+
var x = this.__data__, G = J(x, d);
|
|
1427
|
+
return G < 0 ? x.push([d, E]) : x[G][1] = E, this;
|
|
1428
|
+
}
|
|
1429
|
+
W.prototype.clear = ie, W.prototype.delete = re, W.prototype.get = te, W.prototype.has = ce, W.prototype.set = ue;
|
|
1430
|
+
function oe(d) {
|
|
1431
|
+
var E = -1, x = d ? d.length : 0;
|
|
1432
|
+
for (this.clear(); ++E < x; ) {
|
|
1433
|
+
var G = d[E];
|
|
1434
|
+
this.set(G[0], G[1]);
|
|
1435
1435
|
}
|
|
1436
1436
|
}
|
|
1437
1437
|
function de() {
|
|
1438
1438
|
this.__data__ = {
|
|
1439
|
-
hash: new
|
|
1440
|
-
map: new (
|
|
1441
|
-
string: new
|
|
1439
|
+
hash: new z(),
|
|
1440
|
+
map: new (F || W)(),
|
|
1441
|
+
string: new z()
|
|
1442
1442
|
};
|
|
1443
1443
|
}
|
|
1444
|
-
function pe(
|
|
1445
|
-
return me(this,
|
|
1444
|
+
function pe(d) {
|
|
1445
|
+
return me(this, d).delete(d);
|
|
1446
1446
|
}
|
|
1447
|
-
function se(
|
|
1448
|
-
return me(this,
|
|
1447
|
+
function se(d) {
|
|
1448
|
+
return me(this, d).get(d);
|
|
1449
1449
|
}
|
|
1450
|
-
function ye(
|
|
1451
|
-
return me(this,
|
|
1450
|
+
function ye(d) {
|
|
1451
|
+
return me(this, d).has(d);
|
|
1452
1452
|
}
|
|
1453
|
-
function be(
|
|
1454
|
-
return me(this,
|
|
1453
|
+
function be(d, E) {
|
|
1454
|
+
return me(this, d).set(d, E), this;
|
|
1455
1455
|
}
|
|
1456
1456
|
oe.prototype.clear = de, oe.prototype.delete = pe, oe.prototype.get = se, oe.prototype.has = ye, oe.prototype.set = be;
|
|
1457
|
-
function
|
|
1458
|
-
for (var
|
|
1459
|
-
if (Se(
|
|
1460
|
-
return
|
|
1457
|
+
function J(d, E) {
|
|
1458
|
+
for (var x = d.length; x--; )
|
|
1459
|
+
if (Se(d[x][0], E))
|
|
1460
|
+
return x;
|
|
1461
1461
|
return -1;
|
|
1462
1462
|
}
|
|
1463
|
-
function
|
|
1464
|
-
|
|
1465
|
-
for (var
|
|
1466
|
-
|
|
1467
|
-
return
|
|
1463
|
+
function ee(d, E) {
|
|
1464
|
+
E = Te(E, d) ? [E] : Ie(E);
|
|
1465
|
+
for (var x = 0, G = E.length; d != null && x < G; )
|
|
1466
|
+
d = d[Ne(E[x++])];
|
|
1467
|
+
return x && x == G ? d : void 0;
|
|
1468
1468
|
}
|
|
1469
|
-
function
|
|
1470
|
-
if (!he(
|
|
1469
|
+
function ke(d) {
|
|
1470
|
+
if (!he(d) || _e(d))
|
|
1471
1471
|
return !1;
|
|
1472
|
-
var
|
|
1473
|
-
return
|
|
1472
|
+
var E = Le(d) || f(d) ? V : A;
|
|
1473
|
+
return E.test(le(d));
|
|
1474
1474
|
}
|
|
1475
|
-
function
|
|
1476
|
-
if (typeof
|
|
1477
|
-
return
|
|
1478
|
-
if (
|
|
1479
|
-
return
|
|
1480
|
-
var
|
|
1481
|
-
return
|
|
1475
|
+
function Pe(d) {
|
|
1476
|
+
if (typeof d == "string")
|
|
1477
|
+
return d;
|
|
1478
|
+
if (h(d))
|
|
1479
|
+
return $ ? $.call(d) : "";
|
|
1480
|
+
var E = d + "";
|
|
1481
|
+
return E == "0" && 1 / d == -1 / 0 ? "-0" : E;
|
|
1482
1482
|
}
|
|
1483
|
-
function
|
|
1484
|
-
return Oe(
|
|
1483
|
+
function Ie(d) {
|
|
1484
|
+
return Oe(d) ? d : Ce(d);
|
|
1485
1485
|
}
|
|
1486
|
-
function me(
|
|
1487
|
-
var
|
|
1488
|
-
return
|
|
1486
|
+
function me(d, E) {
|
|
1487
|
+
var x = d.__data__;
|
|
1488
|
+
return Re(E) ? x[typeof E == "string" ? "string" : "hash"] : x.map;
|
|
1489
1489
|
}
|
|
1490
|
-
function
|
|
1491
|
-
var
|
|
1492
|
-
return
|
|
1490
|
+
function xe(d, E) {
|
|
1491
|
+
var x = S(d, E);
|
|
1492
|
+
return ke(x) ? x : void 0;
|
|
1493
1493
|
}
|
|
1494
|
-
function
|
|
1495
|
-
if (Oe(
|
|
1494
|
+
function Te(d, E) {
|
|
1495
|
+
if (Oe(d))
|
|
1496
1496
|
return !1;
|
|
1497
|
-
var
|
|
1498
|
-
return
|
|
1499
|
-
}
|
|
1500
|
-
function
|
|
1501
|
-
var
|
|
1502
|
-
return
|
|
1503
|
-
}
|
|
1504
|
-
function _e(
|
|
1505
|
-
return !!
|
|
1506
|
-
}
|
|
1507
|
-
var Ce = fe(function(
|
|
1508
|
-
|
|
1509
|
-
var
|
|
1510
|
-
return
|
|
1511
|
-
|
|
1512
|
-
}),
|
|
1497
|
+
var x = typeof d;
|
|
1498
|
+
return x == "number" || x == "symbol" || x == "boolean" || d == null || h(d) ? !0 : m.test(d) || !o.test(d) || E != null && d in Object(E);
|
|
1499
|
+
}
|
|
1500
|
+
function Re(d) {
|
|
1501
|
+
var E = typeof d;
|
|
1502
|
+
return E == "string" || E == "number" || E == "symbol" || E == "boolean" ? d !== "__proto__" : d === null;
|
|
1503
|
+
}
|
|
1504
|
+
function _e(d) {
|
|
1505
|
+
return !!P && P in d;
|
|
1506
|
+
}
|
|
1507
|
+
var Ce = fe(function(d) {
|
|
1508
|
+
d = g(d);
|
|
1509
|
+
var E = [];
|
|
1510
|
+
return l.test(d) && E.push(""), d.replace(p, function(x, G, ae, K) {
|
|
1511
|
+
E.push(ae ? K.replace(w, "$1") : G || x);
|
|
1512
|
+
}), E;
|
|
1513
1513
|
});
|
|
1514
|
-
function Ne(
|
|
1515
|
-
if (typeof
|
|
1516
|
-
return
|
|
1517
|
-
var
|
|
1518
|
-
return
|
|
1514
|
+
function Ne(d) {
|
|
1515
|
+
if (typeof d == "string" || h(d))
|
|
1516
|
+
return d;
|
|
1517
|
+
var E = d + "";
|
|
1518
|
+
return E == "0" && 1 / d == -1 / 0 ? "-0" : E;
|
|
1519
1519
|
}
|
|
1520
|
-
function le(
|
|
1521
|
-
if (
|
|
1520
|
+
function le(d) {
|
|
1521
|
+
if (d != null) {
|
|
1522
1522
|
try {
|
|
1523
|
-
return
|
|
1523
|
+
return I.call(d);
|
|
1524
1524
|
} catch {
|
|
1525
1525
|
}
|
|
1526
1526
|
try {
|
|
1527
|
-
return
|
|
1527
|
+
return d + "";
|
|
1528
1528
|
} catch {
|
|
1529
1529
|
}
|
|
1530
1530
|
}
|
|
1531
1531
|
return "";
|
|
1532
1532
|
}
|
|
1533
|
-
function fe(
|
|
1534
|
-
if (typeof
|
|
1533
|
+
function fe(d, E) {
|
|
1534
|
+
if (typeof d != "function" || E && typeof E != "function")
|
|
1535
1535
|
throw new TypeError(e);
|
|
1536
|
-
var
|
|
1537
|
-
var
|
|
1538
|
-
if (
|
|
1539
|
-
return
|
|
1540
|
-
var
|
|
1541
|
-
return
|
|
1536
|
+
var x = function() {
|
|
1537
|
+
var G = arguments, ae = E ? E.apply(this, G) : G[0], K = x.cache;
|
|
1538
|
+
if (K.has(ae))
|
|
1539
|
+
return K.get(ae);
|
|
1540
|
+
var O = d.apply(this, G);
|
|
1541
|
+
return x.cache = K.set(ae, O), O;
|
|
1542
1542
|
};
|
|
1543
|
-
return
|
|
1543
|
+
return x.cache = new (fe.Cache || oe)(), x;
|
|
1544
1544
|
}
|
|
1545
1545
|
fe.Cache = oe;
|
|
1546
|
-
function Se(
|
|
1547
|
-
return
|
|
1546
|
+
function Se(d, E) {
|
|
1547
|
+
return d === E || d !== d && E !== E;
|
|
1548
1548
|
}
|
|
1549
1549
|
var Oe = Array.isArray;
|
|
1550
|
-
function Le(
|
|
1551
|
-
var
|
|
1552
|
-
return
|
|
1550
|
+
function Le(d) {
|
|
1551
|
+
var E = he(d) ? M.call(d) : "";
|
|
1552
|
+
return E == a || E == t;
|
|
1553
1553
|
}
|
|
1554
|
-
function he(
|
|
1555
|
-
var
|
|
1556
|
-
return !!
|
|
1554
|
+
function he(d) {
|
|
1555
|
+
var E = typeof d;
|
|
1556
|
+
return !!d && (E == "object" || E == "function");
|
|
1557
1557
|
}
|
|
1558
|
-
function ge(
|
|
1559
|
-
return !!
|
|
1558
|
+
function ge(d) {
|
|
1559
|
+
return !!d && typeof d == "object";
|
|
1560
1560
|
}
|
|
1561
|
-
function
|
|
1562
|
-
return typeof
|
|
1561
|
+
function h(d) {
|
|
1562
|
+
return typeof d == "symbol" || ge(d) && M.call(d) == n;
|
|
1563
1563
|
}
|
|
1564
|
-
function g(
|
|
1565
|
-
return
|
|
1564
|
+
function g(d) {
|
|
1565
|
+
return d == null ? "" : Pe(d);
|
|
1566
1566
|
}
|
|
1567
|
-
function
|
|
1568
|
-
var
|
|
1569
|
-
return
|
|
1567
|
+
function D(d, E, x) {
|
|
1568
|
+
var G = d == null ? void 0 : ee(d, E);
|
|
1569
|
+
return G === void 0 ? x : G;
|
|
1570
1570
|
}
|
|
1571
|
-
return fr =
|
|
1571
|
+
return fr = D, fr;
|
|
1572
1572
|
}
|
|
1573
1573
|
var ht = yt();
|
|
1574
1574
|
const Ue = /* @__PURE__ */ mr(ht);
|
|
@@ -1576,14 +1576,14 @@ var dr, Dr;
|
|
|
1576
1576
|
function gt() {
|
|
1577
1577
|
if (Dr) return dr;
|
|
1578
1578
|
Dr = 1;
|
|
1579
|
-
var e = "[object Symbol]", r = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, a = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, t = "\\ud800-\\udfff", n = "\\u0300-\\u036f\\ufe20-\\ufe23", o = "\\u20d0-\\u20f0",
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
].join("|"), "g"), oe = RegExp("[" +
|
|
1579
|
+
var e = "[object Symbol]", r = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, a = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, t = "\\ud800-\\udfff", n = "\\u0300-\\u036f\\ufe20-\\ufe23", o = "\\u20d0-\\u20f0", m = "\\u2700-\\u27bf", l = "a-z\\xdf-\\xf6\\xf8-\\xff", p = "\\xac\\xb1\\xd7\\xf7", y = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", w = "\\u2000-\\u206f", 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", s = "\\ufe0e\\ufe0f", i = p + y + w + A, S = "['’]", f = "[" + t + "]", c = "[" + i + "]", b = "[" + n + o + "]", v = "\\d+", C = "[" + m + "]", P = "[" + l + "]", I = "[^" + t + i + v + m + l + u + "]", N = "\\ud83c[\\udffb-\\udfff]", M = "(?:" + b + "|" + N + ")", V = "[^" + t + "]", U = "(?:\\ud83c[\\udde6-\\uddff]){2}", L = "[\\ud800-\\udbff][\\udc00-\\udfff]", F = "[" + u + "]", T = "\\u200d", R = "(?:" + P + "|" + I + ")", $ = "(?:" + F + "|" + I + ")", z = "(?:" + S + "(?:d|ll|m|re|s|t|ve))?", _ = "(?:" + S + "(?:D|LL|M|RE|S|T|VE))?", Z = M + "?", Q = "[" + s + "]?", ne = "(?:" + T + "(?:" + [V, U, L].join("|") + ")" + Q + Z + ")*", X = Q + Z + ne, W = "(?:" + [C, U, L].join("|") + ")" + X, ie = "(?:" + [V + b + "?", b, U, L, f].join("|") + ")", re = RegExp(S, "g"), te = RegExp(b, "g"), ce = RegExp(N + "(?=" + N + ")|" + ie + X, "g"), ue = RegExp([
|
|
1580
|
+
F + "?" + P + "+" + z + "(?=" + [c, F, "$"].join("|") + ")",
|
|
1581
|
+
$ + "+" + _ + "(?=" + [c, F + R, "$"].join("|") + ")",
|
|
1582
|
+
F + "?" + R + "+" + z,
|
|
1583
|
+
F + "+" + _,
|
|
1584
|
+
v,
|
|
1585
|
+
W
|
|
1586
|
+
].join("|"), "g"), oe = RegExp("[" + T + t + n + o + s + "]"), de = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, pe = {
|
|
1587
1587
|
// Latin-1 Supplement block.
|
|
1588
1588
|
À: "A",
|
|
1589
1589
|
Á: "A",
|
|
@@ -1777,93 +1777,93 @@ function gt() {
|
|
|
1777
1777
|
ʼn: "'n",
|
|
1778
1778
|
ſ: "ss"
|
|
1779
1779
|
}, se = typeof Ae == "object" && Ae && Ae.Object === Object && Ae, ye = typeof self == "object" && self && self.Object === Object && self, be = se || ye || Function("return this")();
|
|
1780
|
-
function
|
|
1781
|
-
for (var
|
|
1782
|
-
|
|
1783
|
-
return
|
|
1780
|
+
function J(O, B, j, H) {
|
|
1781
|
+
for (var Y = -1, we = O ? O.length : 0; ++Y < we; )
|
|
1782
|
+
j = B(j, O[Y], Y, O);
|
|
1783
|
+
return j;
|
|
1784
1784
|
}
|
|
1785
|
-
function
|
|
1786
|
-
return
|
|
1785
|
+
function ee(O) {
|
|
1786
|
+
return O.split("");
|
|
1787
1787
|
}
|
|
1788
|
-
function
|
|
1789
|
-
return
|
|
1788
|
+
function ke(O) {
|
|
1789
|
+
return O.match(r) || [];
|
|
1790
1790
|
}
|
|
1791
|
-
function
|
|
1792
|
-
return function(
|
|
1793
|
-
return
|
|
1791
|
+
function Pe(O) {
|
|
1792
|
+
return function(B) {
|
|
1793
|
+
return O?.[B];
|
|
1794
1794
|
};
|
|
1795
1795
|
}
|
|
1796
|
-
var
|
|
1797
|
-
function me(
|
|
1798
|
-
return oe.test(
|
|
1796
|
+
var Ie = Pe(pe);
|
|
1797
|
+
function me(O) {
|
|
1798
|
+
return oe.test(O);
|
|
1799
1799
|
}
|
|
1800
|
-
function
|
|
1801
|
-
return de.test(
|
|
1800
|
+
function xe(O) {
|
|
1801
|
+
return de.test(O);
|
|
1802
1802
|
}
|
|
1803
|
-
function
|
|
1804
|
-
return me(
|
|
1803
|
+
function Te(O) {
|
|
1804
|
+
return me(O) ? Re(O) : ee(O);
|
|
1805
1805
|
}
|
|
1806
|
-
function
|
|
1807
|
-
return
|
|
1806
|
+
function Re(O) {
|
|
1807
|
+
return O.match(ce) || [];
|
|
1808
1808
|
}
|
|
1809
|
-
function _e(
|
|
1810
|
-
return
|
|
1809
|
+
function _e(O) {
|
|
1810
|
+
return O.match(ue) || [];
|
|
1811
1811
|
}
|
|
1812
1812
|
var Ce = Object.prototype, Ne = Ce.toString, le = be.Symbol, fe = le ? le.prototype : void 0, Se = fe ? fe.toString : void 0;
|
|
1813
|
-
function Oe(
|
|
1814
|
-
var
|
|
1815
|
-
|
|
1816
|
-
for (var we = Array(
|
|
1817
|
-
we[
|
|
1813
|
+
function Oe(O, B, j) {
|
|
1814
|
+
var H = -1, Y = O.length;
|
|
1815
|
+
B < 0 && (B = -B > Y ? 0 : Y + B), j = j > Y ? Y : j, j < 0 && (j += Y), Y = B > j ? 0 : j - B >>> 0, B >>>= 0;
|
|
1816
|
+
for (var we = Array(Y); ++H < Y; )
|
|
1817
|
+
we[H] = O[H + B];
|
|
1818
1818
|
return we;
|
|
1819
1819
|
}
|
|
1820
|
-
function Le(
|
|
1821
|
-
if (typeof
|
|
1822
|
-
return
|
|
1823
|
-
if (
|
|
1824
|
-
return Se ? Se.call(
|
|
1825
|
-
var
|
|
1826
|
-
return
|
|
1827
|
-
}
|
|
1828
|
-
function he(
|
|
1829
|
-
var
|
|
1830
|
-
return
|
|
1831
|
-
}
|
|
1832
|
-
function ge(
|
|
1833
|
-
return function(
|
|
1834
|
-
|
|
1835
|
-
var
|
|
1836
|
-
return
|
|
1820
|
+
function Le(O) {
|
|
1821
|
+
if (typeof O == "string")
|
|
1822
|
+
return O;
|
|
1823
|
+
if (D(O))
|
|
1824
|
+
return Se ? Se.call(O) : "";
|
|
1825
|
+
var B = O + "";
|
|
1826
|
+
return B == "0" && 1 / O == -1 / 0 ? "-0" : B;
|
|
1827
|
+
}
|
|
1828
|
+
function he(O, B, j) {
|
|
1829
|
+
var H = O.length;
|
|
1830
|
+
return j = j === void 0 ? H : j, !B && j >= H ? O : Oe(O, B, j);
|
|
1831
|
+
}
|
|
1832
|
+
function ge(O) {
|
|
1833
|
+
return function(B) {
|
|
1834
|
+
B = d(B);
|
|
1835
|
+
var j = me(B) ? Te(B) : void 0, H = j ? j[0] : B.charAt(0), Y = j ? he(j, 1).join("") : B.slice(1);
|
|
1836
|
+
return H[O]() + Y;
|
|
1837
1837
|
};
|
|
1838
1838
|
}
|
|
1839
|
-
function
|
|
1840
|
-
return function(
|
|
1841
|
-
return
|
|
1839
|
+
function h(O) {
|
|
1840
|
+
return function(B) {
|
|
1841
|
+
return J(K(G(B).replace(re, "")), O, "");
|
|
1842
1842
|
};
|
|
1843
1843
|
}
|
|
1844
|
-
function g(
|
|
1845
|
-
return !!
|
|
1844
|
+
function g(O) {
|
|
1845
|
+
return !!O && typeof O == "object";
|
|
1846
1846
|
}
|
|
1847
|
-
function
|
|
1848
|
-
return typeof
|
|
1847
|
+
function D(O) {
|
|
1848
|
+
return typeof O == "symbol" || g(O) && Ne.call(O) == e;
|
|
1849
1849
|
}
|
|
1850
|
-
function
|
|
1851
|
-
return
|
|
1850
|
+
function d(O) {
|
|
1851
|
+
return O == null ? "" : Le(O);
|
|
1852
1852
|
}
|
|
1853
|
-
var
|
|
1854
|
-
return
|
|
1853
|
+
var E = h(function(O, B, j) {
|
|
1854
|
+
return B = B.toLowerCase(), O + (j ? x(B) : B);
|
|
1855
1855
|
});
|
|
1856
|
-
function
|
|
1857
|
-
return
|
|
1856
|
+
function x(O) {
|
|
1857
|
+
return ae(d(O).toLowerCase());
|
|
1858
1858
|
}
|
|
1859
|
-
function
|
|
1860
|
-
return
|
|
1859
|
+
function G(O) {
|
|
1860
|
+
return O = d(O), O && O.replace(a, Ie).replace(te, "");
|
|
1861
1861
|
}
|
|
1862
|
-
var
|
|
1863
|
-
function
|
|
1864
|
-
return
|
|
1862
|
+
var ae = ge("toUpperCase");
|
|
1863
|
+
function K(O, B, j) {
|
|
1864
|
+
return O = d(O), B = B, B === void 0 ? xe(O) ? _e(O) : ke(O) : O.match(B) || [];
|
|
1865
1865
|
}
|
|
1866
|
-
return dr =
|
|
1866
|
+
return dr = E, dr;
|
|
1867
1867
|
}
|
|
1868
1868
|
var vt = gt();
|
|
1869
1869
|
const At = /* @__PURE__ */ mr(vt);
|
|
@@ -1873,10 +1873,10 @@ function bt() {
|
|
|
1873
1873
|
jr = 1, Object.defineProperty(ve, "__esModule", {
|
|
1874
1874
|
value: !0
|
|
1875
1875
|
});
|
|
1876
|
-
var e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(
|
|
1877
|
-
return typeof
|
|
1878
|
-
} : function(
|
|
1879
|
-
return
|
|
1876
|
+
var e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(m) {
|
|
1877
|
+
return typeof m;
|
|
1878
|
+
} : function(m) {
|
|
1879
|
+
return m && typeof Symbol == "function" && m.constructor === Symbol && m !== Symbol.prototype ? "symbol" : typeof m;
|
|
1880
1880
|
}, r = typeof window < "u" && typeof window.document < "u", a = typeof process < "u" && process.versions != null && process.versions.node != null, t = (typeof self > "u" ? "undefined" : e(self)) === "object" && self.constructor && self.constructor.name === "DedicatedWorkerGlobalScope", n = typeof window < "u" && window.name === "nodejs" || typeof navigator < "u" && (navigator.userAgent.includes("Node.js") || navigator.userAgent.includes("jsdom")), o = typeof Deno < "u" && typeof Deno.core < "u";
|
|
1881
1881
|
return ve.isBrowser = r, ve.isWebWorker = t, ve.isNode = a, ve.isJsDom = n, ve.isDeno = o, ve;
|
|
1882
1882
|
}
|
|
@@ -1977,8 +1977,8 @@ k.isValidEmailAddress = function(e) {
|
|
|
1977
1977
|
if (t.length > 64) return !1;
|
|
1978
1978
|
if (n.length > 255) return !1;
|
|
1979
1979
|
var o = n.split(".");
|
|
1980
|
-
return !(o.some(function(
|
|
1981
|
-
return
|
|
1980
|
+
return !(o.some(function(m) {
|
|
1981
|
+
return m.length > 63;
|
|
1982
1982
|
}) || !r.test(e));
|
|
1983
1983
|
};
|
|
1984
1984
|
k.parseEmail = function(e) {
|
|
@@ -2023,8 +2023,8 @@ k.cleanValue = function(e, r, a) {
|
|
|
2023
2023
|
return typeof e == "object" && e !== null && !Array.isArray(e) ? e : void 0;
|
|
2024
2024
|
case "string":
|
|
2025
2025
|
if (k.exists(e)) {
|
|
2026
|
-
var
|
|
2027
|
-
return
|
|
2026
|
+
var m = String(e);
|
|
2027
|
+
return m == "[object Object]" ? void 0 : m;
|
|
2028
2028
|
} else
|
|
2029
2029
|
return;
|
|
2030
2030
|
// if(!data) {
|
|
@@ -2056,8 +2056,8 @@ k.isValidValue = function(e, r, a) {
|
|
|
2056
2056
|
case "date":
|
|
2057
2057
|
if (a && (typeof e != "object" || !(e instanceof Date)))
|
|
2058
2058
|
return !1;
|
|
2059
|
-
var
|
|
2060
|
-
return
|
|
2059
|
+
var m = k.parseDate(e);
|
|
2060
|
+
return m !== void 0;
|
|
2061
2061
|
case "email":
|
|
2062
2062
|
a ? o = e === k.parseEmail(e) : o = String(e).toLowerCase() === k.parseEmail(e);
|
|
2063
2063
|
break;
|
|
@@ -2070,15 +2070,15 @@ k.isValidValue = function(e, r, a) {
|
|
|
2070
2070
|
a ? o = n && Number(e) === k.parseInt(e) : o = Number(e) === k.parseInt(e);
|
|
2071
2071
|
break;
|
|
2072
2072
|
case "boolean":
|
|
2073
|
-
var
|
|
2074
|
-
a ? (e === !0 || e === !1) && (o = e ===
|
|
2073
|
+
var m = k.parseBoolean(e);
|
|
2074
|
+
a ? (e === !0 || e === !1) && (o = e === m) : o = m === !0 || m === !1;
|
|
2075
2075
|
break;
|
|
2076
2076
|
case "reference":
|
|
2077
2077
|
a ? o = String(e) === k.id(e) : o = !!k.id(e);
|
|
2078
2078
|
break;
|
|
2079
2079
|
case "string":
|
|
2080
|
-
var
|
|
2081
|
-
if (a && typeof e != "string" ||
|
|
2080
|
+
var l = String(e);
|
|
2081
|
+
if (a && typeof e != "string" || l == "[object Object]")
|
|
2082
2082
|
return !1;
|
|
2083
2083
|
o = !0;
|
|
2084
2084
|
break;
|
|
@@ -2135,20 +2135,20 @@ k.getAllFields = function(e) {
|
|
|
2135
2135
|
fields: n
|
|
2136
2136
|
};
|
|
2137
2137
|
t.push(o);
|
|
2138
|
-
var
|
|
2138
|
+
var m = {
|
|
2139
2139
|
title: "Data",
|
|
2140
2140
|
minimum: 1,
|
|
2141
2141
|
maximum: 1,
|
|
2142
2142
|
key: "data",
|
|
2143
2143
|
asObject: !0,
|
|
2144
2144
|
type: "group",
|
|
2145
|
-
fields: n.map(function(
|
|
2146
|
-
return
|
|
2145
|
+
fields: n.map(function(y) {
|
|
2146
|
+
return y.type === "reference" && (y = JSON.parse(JSON.stringify(y)), delete y.fields), y;
|
|
2147
2147
|
})
|
|
2148
2148
|
};
|
|
2149
|
-
t.push(
|
|
2149
|
+
t.push(m);
|
|
2150
2150
|
} else {
|
|
2151
|
-
var
|
|
2151
|
+
var m = {
|
|
2152
2152
|
title: `${e.title}`,
|
|
2153
2153
|
minimum: 1,
|
|
2154
2154
|
maximum: 1,
|
|
@@ -2157,7 +2157,7 @@ k.getAllFields = function(e) {
|
|
|
2157
2157
|
type: "group",
|
|
2158
2158
|
fields: n
|
|
2159
2159
|
};
|
|
2160
|
-
t.push(
|
|
2160
|
+
t.push(m);
|
|
2161
2161
|
}
|
|
2162
2162
|
r && (t.push({
|
|
2163
2163
|
title: "Age",
|
|
@@ -2172,33 +2172,33 @@ k.getAllFields = function(e) {
|
|
|
2172
2172
|
maximum: 1,
|
|
2173
2173
|
type: "date"
|
|
2174
2174
|
}));
|
|
2175
|
-
var
|
|
2176
|
-
var
|
|
2177
|
-
return !
|
|
2178
|
-
}).map(function(
|
|
2179
|
-
return
|
|
2180
|
-
}).sort(function(
|
|
2181
|
-
return
|
|
2175
|
+
var l = k.mapFields(t).filter(function(p) {
|
|
2176
|
+
var y = p.type == "group" && p.asObject && p.minimum == 1 && p.maximum == 1;
|
|
2177
|
+
return !y;
|
|
2178
|
+
}).map(function(p) {
|
|
2179
|
+
return p.title = p.filterTitle || p.titles.filter(Boolean).join(" › "), p;
|
|
2180
|
+
}).sort(function(p, y) {
|
|
2181
|
+
return p.title < y.title ? -1 : 1;
|
|
2182
2182
|
});
|
|
2183
|
-
return
|
|
2183
|
+
return l;
|
|
2184
2184
|
};
|
|
2185
2185
|
k.mapFields = function(e, r) {
|
|
2186
2186
|
r || (r = {});
|
|
2187
|
-
var a = [], t = [], n = [], o = 1,
|
|
2188
|
-
e.forEach(
|
|
2189
|
-
function
|
|
2190
|
-
var
|
|
2191
|
-
|
|
2192
|
-
var
|
|
2193
|
-
if (
|
|
2194
|
-
if (
|
|
2195
|
-
|
|
2187
|
+
var a = [], t = [], n = [], o = 1, m = r.depth, l = r.arrayDelimeter || "[]";
|
|
2188
|
+
e.forEach(p);
|
|
2189
|
+
function p(y, w) {
|
|
2190
|
+
var A = y.key, u = y.type == "group", s = y.minimum === y.maximum && y.minimum === 1, i = y.asObject, S = u && !i, f = r.original ? y : k.clone(y);
|
|
2191
|
+
f.trail = t.slice(), f.trail.push(A), f.path = f.trail.join("."), y.titles && y.titles.length ? f.titles = y.titles.slice() : (f.titles = n.slice(), f.titles.push(y.filterTitle || y.title || "")), (!S || r.includeLayout) && a.push(f);
|
|
2192
|
+
var b = m && o >= m;
|
|
2193
|
+
if (y.fields && y.fields.length)
|
|
2194
|
+
if (S)
|
|
2195
|
+
y.fields.forEach(p);
|
|
2196
2196
|
else {
|
|
2197
|
-
if (
|
|
2197
|
+
if (b)
|
|
2198
2198
|
return;
|
|
2199
2199
|
o++;
|
|
2200
|
-
let
|
|
2201
|
-
r.includeArrayDelimeter && (
|
|
2200
|
+
let v = A;
|
|
2201
|
+
r.includeArrayDelimeter && (s || (v = `${A}${l}`)), t.push(v), n.push(y.filterTitle || y.title), y.fields.forEach(p), o--, t.pop(), n.pop();
|
|
2202
2202
|
}
|
|
2203
2203
|
}
|
|
2204
2204
|
return a;
|
|
@@ -2320,9 +2320,9 @@ k.getAvailableCurrencies = function(e) {
|
|
|
2320
2320
|
var a = r.findIndex(function(n) {
|
|
2321
2321
|
return n.countryCode[e];
|
|
2322
2322
|
});
|
|
2323
|
-
const t = (n, o,
|
|
2324
|
-
const
|
|
2325
|
-
return
|
|
2323
|
+
const t = (n, o, m) => {
|
|
2324
|
+
const l = [...n];
|
|
2325
|
+
return l.splice(m, 0, ...l.splice(o, 1)), l;
|
|
2326
2326
|
};
|
|
2327
2327
|
a != -1 && (r = t(r, a, 0));
|
|
2328
2328
|
}
|
|
@@ -2334,41 +2334,41 @@ k.hash = function(e, r) {
|
|
|
2334
2334
|
return a[n] = t, a;
|
|
2335
2335
|
}, {});
|
|
2336
2336
|
};
|
|
2337
|
-
k.extractFromArray = function(e, r, a, t, n, o,
|
|
2338
|
-
|
|
2339
|
-
var
|
|
2340
|
-
var
|
|
2341
|
-
return
|
|
2337
|
+
k.extractFromArray = function(e, r, a, t, n, o, m) {
|
|
2338
|
+
m = m || {}, a && (m.sum = a), t && (m.flatten = !0), n && (m.unique = !0), o && (m.excludeNull = !0);
|
|
2339
|
+
var l = e.reduce(function(p, y) {
|
|
2340
|
+
var w = Ue(y, r), A = !w && w !== !1 && w !== 0;
|
|
2341
|
+
return m.excludeNull && A || p.push(w), p;
|
|
2342
2342
|
}, []);
|
|
2343
|
-
return
|
|
2344
|
-
return
|
|
2345
|
-
}, 0)),
|
|
2343
|
+
return m.flatten && (l = l.flat()), m.unique && (l = [...new Set(l)]), m.sum && (l = l.reduce(function(p, y) {
|
|
2344
|
+
return p + y;
|
|
2345
|
+
}, 0)), l;
|
|
2346
2346
|
};
|
|
2347
2347
|
k.matchInArray = function(e, r, a, t) {
|
|
2348
2348
|
var n = e.filter(function(o) {
|
|
2349
|
-
var
|
|
2349
|
+
var m = Ue(o, r), l;
|
|
2350
2350
|
switch (t) {
|
|
2351
2351
|
case "in":
|
|
2352
|
-
|
|
2352
|
+
l = m.includes(a);
|
|
2353
2353
|
break;
|
|
2354
2354
|
case ">=":
|
|
2355
|
-
|
|
2355
|
+
l = m >= a;
|
|
2356
2356
|
break;
|
|
2357
2357
|
case "<=":
|
|
2358
|
-
|
|
2358
|
+
l = m <= a;
|
|
2359
2359
|
break;
|
|
2360
2360
|
case "<":
|
|
2361
|
-
|
|
2361
|
+
l = m < a;
|
|
2362
2362
|
break;
|
|
2363
2363
|
case ">":
|
|
2364
|
-
|
|
2364
|
+
l = m > a;
|
|
2365
2365
|
break;
|
|
2366
2366
|
case "==":
|
|
2367
2367
|
default:
|
|
2368
|
-
a === void 0 ?
|
|
2368
|
+
a === void 0 ? l = m : l = m == a;
|
|
2369
2369
|
break;
|
|
2370
2370
|
}
|
|
2371
|
-
return
|
|
2371
|
+
return l;
|
|
2372
2372
|
});
|
|
2373
2373
|
return n;
|
|
2374
2374
|
};
|
|
@@ -2652,257 +2652,257 @@ var Et = function(e) {
|
|
|
2652
2652
|
});
|
|
2653
2653
|
const n = new je();
|
|
2654
2654
|
n.bootstrap(t);
|
|
2655
|
-
function o(
|
|
2656
|
-
var
|
|
2657
|
-
t.onChange && t.onChange(
|
|
2658
|
-
}
|
|
2659
|
-
t.set = function(
|
|
2660
|
-
const
|
|
2661
|
-
if (JSON.stringify(
|
|
2662
|
-
return o(
|
|
2655
|
+
function o(l) {
|
|
2656
|
+
var p = r.getUser();
|
|
2657
|
+
t.onChange && t.onChange(p), n.dispatch("change", p, l);
|
|
2658
|
+
}
|
|
2659
|
+
t.set = function(l, p, y) {
|
|
2660
|
+
const w = r.getUser();
|
|
2661
|
+
if (JSON.stringify(w) != JSON.stringify(l) && (r.setUser(l), !y))
|
|
2662
|
+
return o(p);
|
|
2663
2663
|
}, t.logout = function() {
|
|
2664
2664
|
return r.clearUser(), e.cache.reset(), o();
|
|
2665
|
-
}, t.changeOrganisation = function(
|
|
2666
|
-
|
|
2667
|
-
var
|
|
2668
|
-
return
|
|
2669
|
-
e.api.post(`/user/switch/${
|
|
2670
|
-
|
|
2671
|
-
}).catch(
|
|
2665
|
+
}, t.changeOrganisation = function(l, p) {
|
|
2666
|
+
l = e.utils.id(l), p || (p = {});
|
|
2667
|
+
var y = !0;
|
|
2668
|
+
return p.disableAutoAuthentication && (y = !1), new Promise(function(w, A) {
|
|
2669
|
+
e.api.post(`/user/switch/${l}`).then(function(u) {
|
|
2670
|
+
y && (e.cache.reset(), t.set(u.data)), w(u.data);
|
|
2671
|
+
}).catch(A);
|
|
2672
2672
|
});
|
|
2673
|
-
}, t.impersonate = function(
|
|
2674
|
-
|
|
2675
|
-
var
|
|
2676
|
-
|
|
2677
|
-
var
|
|
2678
|
-
return
|
|
2679
|
-
|
|
2680
|
-
}, function(
|
|
2681
|
-
}),
|
|
2682
|
-
}, t.login = async function(
|
|
2683
|
-
|
|
2684
|
-
var
|
|
2685
|
-
|
|
2686
|
-
var
|
|
2687
|
-
function
|
|
2688
|
-
if (!
|
|
2689
|
-
return
|
|
2673
|
+
}, t.impersonate = function(l, p) {
|
|
2674
|
+
l = e.utils.id(l), p || (p = {});
|
|
2675
|
+
var y = !0;
|
|
2676
|
+
p.disableAutoAuthentication && (y = !1);
|
|
2677
|
+
var w = e.api.post(`/user/impersonate/${l}`);
|
|
2678
|
+
return w.then(function(A) {
|
|
2679
|
+
y && (e.cache.reset(), t.set(A.data));
|
|
2680
|
+
}, function(A) {
|
|
2681
|
+
}), w;
|
|
2682
|
+
}, t.login = async function(l, p) {
|
|
2683
|
+
p || (p = {});
|
|
2684
|
+
var y = !0;
|
|
2685
|
+
p.disableAutoAuthentication && (y = !1);
|
|
2686
|
+
var w = new Promise(A);
|
|
2687
|
+
function A(u, s) {
|
|
2688
|
+
if (!l)
|
|
2689
|
+
return s({
|
|
2690
2690
|
message: "Missing credentials!"
|
|
2691
2691
|
});
|
|
2692
|
-
if (!
|
|
2693
|
-
return
|
|
2692
|
+
if (!l.email || !l.email.length)
|
|
2693
|
+
return s({
|
|
2694
2694
|
message: "Username was not provided"
|
|
2695
2695
|
});
|
|
2696
|
-
if (!
|
|
2697
|
-
return
|
|
2696
|
+
if (!l.password || !l.password.length)
|
|
2697
|
+
return s({
|
|
2698
2698
|
message: "Password was not provided"
|
|
2699
2699
|
});
|
|
2700
|
-
var
|
|
2700
|
+
var i = {
|
|
2701
2701
|
bypassInterceptor: !0
|
|
2702
2702
|
};
|
|
2703
|
-
r.isCookieMode && r.isCookieMode() && (
|
|
2704
|
-
var
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
},
|
|
2703
|
+
r.isCookieMode && r.isCookieMode() && (l.useCookies = !0, i.withCredentials = !0);
|
|
2704
|
+
var f = `${e.apiURL}/user/login`;
|
|
2705
|
+
p.url && (f = p.url), e.api.post(f, l, i).then(function(c) {
|
|
2706
|
+
y && t.set(c.data), u(c);
|
|
2707
|
+
}, s);
|
|
2708
2708
|
}
|
|
2709
|
-
return
|
|
2710
|
-
}, t.signup = async function(
|
|
2711
|
-
|
|
2712
|
-
var
|
|
2713
|
-
|
|
2714
|
-
var
|
|
2715
|
-
function
|
|
2716
|
-
if (!
|
|
2717
|
-
return
|
|
2709
|
+
return w;
|
|
2710
|
+
}, t.signup = async function(l, p) {
|
|
2711
|
+
p || (p = {});
|
|
2712
|
+
var y = !0;
|
|
2713
|
+
p.disableAutoAuthentication && (y = !1);
|
|
2714
|
+
var w = new Promise(A);
|
|
2715
|
+
function A(u, s) {
|
|
2716
|
+
if (!l)
|
|
2717
|
+
return s({
|
|
2718
2718
|
message: "No details provided"
|
|
2719
2719
|
});
|
|
2720
|
-
if (!
|
|
2721
|
-
return
|
|
2720
|
+
if (!l.firstName || !l.firstName.length)
|
|
2721
|
+
return s({
|
|
2722
2722
|
message: "First Name was not provided"
|
|
2723
2723
|
});
|
|
2724
|
-
if (!
|
|
2725
|
-
return
|
|
2724
|
+
if (!l.lastName || !l.lastName.length)
|
|
2725
|
+
return s({
|
|
2726
2726
|
message: "Last Name was not provided"
|
|
2727
2727
|
});
|
|
2728
|
-
if (!
|
|
2729
|
-
return
|
|
2728
|
+
if (!l.email || !l.email.length)
|
|
2729
|
+
return s({
|
|
2730
2730
|
message: "Email/Username was not provided"
|
|
2731
2731
|
});
|
|
2732
|
-
if (!
|
|
2733
|
-
return
|
|
2732
|
+
if (!l.password || !l.password.length)
|
|
2733
|
+
return s({
|
|
2734
2734
|
message: "Password was not provided"
|
|
2735
2735
|
});
|
|
2736
|
-
if (!
|
|
2737
|
-
return
|
|
2736
|
+
if (!l.confirmPassword || !l.confirmPassword.length)
|
|
2737
|
+
return s({
|
|
2738
2738
|
message: "Confirm Password was not provided"
|
|
2739
2739
|
});
|
|
2740
|
-
if (
|
|
2741
|
-
return
|
|
2740
|
+
if (l.confirmPassword != l.password)
|
|
2741
|
+
return s({
|
|
2742
2742
|
message: "Your passwords do not match"
|
|
2743
2743
|
});
|
|
2744
|
-
var
|
|
2744
|
+
var i = {
|
|
2745
2745
|
bypassInterceptor: !0
|
|
2746
2746
|
};
|
|
2747
|
-
r.isCookieMode && r.isCookieMode() && (
|
|
2748
|
-
var
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
},
|
|
2747
|
+
r.isCookieMode && r.isCookieMode() && (l.useCookies = !0, i.withCredentials = !0);
|
|
2748
|
+
var f = `${e.apiURL}/user/signup`;
|
|
2749
|
+
p.application && (f = `${e.domain || ""}/qik/application/signup`), p.url && (f = p.url), e.api.post(f, l, i).then(function(c) {
|
|
2750
|
+
y && t.set(c.data), u(c);
|
|
2751
|
+
}, s);
|
|
2752
2752
|
}
|
|
2753
|
-
return
|
|
2754
|
-
}, t.retrieveUserFromResetToken = async function(
|
|
2755
|
-
|
|
2756
|
-
var
|
|
2753
|
+
return w;
|
|
2754
|
+
}, t.retrieveUserFromResetToken = async function(l, p) {
|
|
2755
|
+
p || (p = {});
|
|
2756
|
+
var y = {
|
|
2757
2757
|
bypassInterceptor: !0
|
|
2758
2758
|
};
|
|
2759
|
-
return new Promise(function(
|
|
2760
|
-
e.api.get(
|
|
2761
|
-
return
|
|
2762
|
-
},
|
|
2759
|
+
return new Promise(function(w, A) {
|
|
2760
|
+
e.api.get(p.url || `${e.apiURL}/user/reset/${l}`, y).then(function(u) {
|
|
2761
|
+
return w(u.data);
|
|
2762
|
+
}, A);
|
|
2763
2763
|
});
|
|
2764
|
-
}, t.updateUserWithToken = async function(
|
|
2765
|
-
|
|
2766
|
-
var
|
|
2767
|
-
return
|
|
2768
|
-
var
|
|
2764
|
+
}, t.updateUserWithToken = async function(l, p, y) {
|
|
2765
|
+
y || (y = {});
|
|
2766
|
+
var w = !0;
|
|
2767
|
+
return y.disableAutoAuthentication && (w = !1), new Promise(function(A, u) {
|
|
2768
|
+
var s = {
|
|
2769
2769
|
bypassInterceptor: !0
|
|
2770
2770
|
};
|
|
2771
|
-
e.api.post(
|
|
2772
|
-
return
|
|
2773
|
-
},
|
|
2771
|
+
e.api.post(y.url || `${e.apiURL}/user/reset/${l}`, p, s).then(function(i) {
|
|
2772
|
+
return w && (e.cache.reset(), t.set(i.data)), A(i.data);
|
|
2773
|
+
}, u);
|
|
2774
2774
|
});
|
|
2775
|
-
}, t.sendResetPasswordRequest = function(
|
|
2776
|
-
return
|
|
2775
|
+
}, t.sendResetPasswordRequest = function(l, p) {
|
|
2776
|
+
return p || (p = {}), l ? !l.email || !l.email.length ? Promise.reject({
|
|
2777
2777
|
message: "Email is required but was not provided"
|
|
2778
|
-
}) : new Promise(function(
|
|
2779
|
-
var
|
|
2778
|
+
}) : new Promise(function(y, w) {
|
|
2779
|
+
var A = {
|
|
2780
2780
|
bypassInterceptor: !0
|
|
2781
2781
|
};
|
|
2782
|
-
e.api.post(
|
|
2782
|
+
e.api.post(p.url || `${e.apiURL}/user/forgot`, l, A).then(y, w);
|
|
2783
2783
|
}) : Promise.reject({
|
|
2784
2784
|
message: "No details were provided for password reset request"
|
|
2785
2785
|
});
|
|
2786
|
-
}, t.ensureValidToken = async function(
|
|
2787
|
-
var
|
|
2788
|
-
if (!
|
|
2786
|
+
}, t.ensureValidToken = async function(l) {
|
|
2787
|
+
var p = t.getCurrentUser();
|
|
2788
|
+
if (!p)
|
|
2789
2789
|
return Promise.reject("No user");
|
|
2790
2790
|
if (r.isCookieMode && r.isCookieMode())
|
|
2791
|
-
return
|
|
2792
|
-
var { token:
|
|
2793
|
-
if (!
|
|
2791
|
+
return l ? await t.refreshAccessToken() : "cookie_mode_token";
|
|
2792
|
+
var { token: w } = p;
|
|
2793
|
+
if (!w)
|
|
2794
2794
|
return Promise.reject("No token");
|
|
2795
|
-
var
|
|
2796
|
-
|
|
2797
|
-
var
|
|
2798
|
-
return
|
|
2795
|
+
var A = /* @__PURE__ */ new Date();
|
|
2796
|
+
A.setSeconds(A.getSeconds() + a);
|
|
2797
|
+
var u = new Date(w.expires);
|
|
2798
|
+
return l ? await t.refreshAccessToken(w.refreshToken) : A < u ? w : await t.refreshAccessToken(w.refreshToken);
|
|
2799
2799
|
};
|
|
2800
|
-
const
|
|
2801
|
-
return t.refreshAccessToken = async function(
|
|
2802
|
-
if (
|
|
2803
|
-
return
|
|
2804
|
-
const
|
|
2805
|
-
return
|
|
2806
|
-
let
|
|
2800
|
+
const m = {};
|
|
2801
|
+
return t.refreshAccessToken = async function(l) {
|
|
2802
|
+
if (m.inflightRefreshRequest)
|
|
2803
|
+
return m.inflightRefreshRequest;
|
|
2804
|
+
const p = r.isCookieMode && r.isCookieMode();
|
|
2805
|
+
return m.inflightRefreshRequest = new Promise(function(y, w) {
|
|
2806
|
+
let A = {}, u = {
|
|
2807
2807
|
bypassInterceptor: !0,
|
|
2808
2808
|
withoutToken: !0
|
|
2809
2809
|
};
|
|
2810
|
-
if (
|
|
2811
|
-
|
|
2810
|
+
if (p)
|
|
2811
|
+
u.withCredentials = !0;
|
|
2812
2812
|
else {
|
|
2813
|
-
if (!
|
|
2814
|
-
return
|
|
2815
|
-
|
|
2813
|
+
if (!l)
|
|
2814
|
+
return m.inflightRefreshRequest = null, w(new Error("No refresh token provided for localStorage mode"));
|
|
2815
|
+
A.refreshToken = l;
|
|
2816
2816
|
}
|
|
2817
|
-
e.api.post("/user/refresh",
|
|
2818
|
-
if (!
|
|
2819
|
-
return
|
|
2820
|
-
if (t.set(
|
|
2821
|
-
|
|
2817
|
+
e.api.post("/user/refresh", A, u).then(function(i) {
|
|
2818
|
+
if (!i || !i.data)
|
|
2819
|
+
return m.inflightRefreshRequest = null, w(new Error("Invalid refresh response"));
|
|
2820
|
+
if (t.set(i.data), o(), p)
|
|
2821
|
+
y("cookie_token_refreshed");
|
|
2822
2822
|
else {
|
|
2823
|
-
const
|
|
2824
|
-
|
|
2823
|
+
const S = i.data.token?.accessToken;
|
|
2824
|
+
S ? y(S) : w(new Error("No access token in refresh response"));
|
|
2825
2825
|
}
|
|
2826
2826
|
setTimeout(function() {
|
|
2827
|
-
|
|
2827
|
+
m.inflightRefreshRequest = null;
|
|
2828
2828
|
});
|
|
2829
|
-
}).catch(function(
|
|
2829
|
+
}).catch(function(s) {
|
|
2830
2830
|
setTimeout(function() {
|
|
2831
|
-
|
|
2832
|
-
}),
|
|
2831
|
+
m.inflightRefreshRequest = null;
|
|
2832
|
+
}), w(s);
|
|
2833
2833
|
});
|
|
2834
|
-
}),
|
|
2834
|
+
}), m.inflightRefreshRequest;
|
|
2835
2835
|
}, t.sync = function() {
|
|
2836
|
-
return e.api.get("/user").then(function(
|
|
2837
|
-
if (
|
|
2838
|
-
const
|
|
2839
|
-
if (
|
|
2840
|
-
const
|
|
2841
|
-
|
|
2836
|
+
return e.api.get("/user").then(function(l) {
|
|
2837
|
+
if (l.data) {
|
|
2838
|
+
const p = r.getUser();
|
|
2839
|
+
if (p) {
|
|
2840
|
+
const y = { ...p };
|
|
2841
|
+
y.session ? Object.assign(y.session, l.data) : y.session = l.data, t.set(y);
|
|
2842
2842
|
} else
|
|
2843
|
-
t.set(
|
|
2843
|
+
t.set(l.data);
|
|
2844
2844
|
} else
|
|
2845
2845
|
t.set(null);
|
|
2846
2846
|
o();
|
|
2847
|
-
}).catch(function(
|
|
2847
|
+
}).catch(function(l) {
|
|
2848
2848
|
t.set(null), o();
|
|
2849
2849
|
});
|
|
2850
2850
|
}, t.getCurrentUser = function() {
|
|
2851
2851
|
return r.getUser();
|
|
2852
2852
|
}, t.getCurrentToken = function() {
|
|
2853
|
-
var
|
|
2854
|
-
if (
|
|
2855
|
-
return
|
|
2856
|
-
var
|
|
2857
|
-
if (!
|
|
2853
|
+
var l = r.getAccessToken();
|
|
2854
|
+
if (l)
|
|
2855
|
+
return l;
|
|
2856
|
+
var p = t.getCurrentUser();
|
|
2857
|
+
if (!p)
|
|
2858
2858
|
return e.applicationToken ? e.applicationToken : void 0;
|
|
2859
|
-
var { token:
|
|
2860
|
-
if (
|
|
2861
|
-
return
|
|
2859
|
+
var { token: y } = p;
|
|
2860
|
+
if (y)
|
|
2861
|
+
return y.accessToken;
|
|
2862
2862
|
}, e.api.interceptors.request.use(
|
|
2863
|
-
async function(
|
|
2864
|
-
if (
|
|
2865
|
-
return
|
|
2866
|
-
var
|
|
2863
|
+
async function(l) {
|
|
2864
|
+
if (l.bypassInterceptor)
|
|
2865
|
+
return l;
|
|
2866
|
+
var p = l;
|
|
2867
2867
|
if (r.isCookieMode && r.isCookieMode())
|
|
2868
|
-
return
|
|
2869
|
-
var
|
|
2870
|
-
if (
|
|
2871
|
-
var { token:
|
|
2872
|
-
|
|
2868
|
+
return p.withCredentials || (p.withCredentials = !0), p;
|
|
2869
|
+
var w = t.getCurrentUser(), A, u, s;
|
|
2870
|
+
if (w) {
|
|
2871
|
+
var { token: i } = w;
|
|
2872
|
+
i && (A = i.accessToken, u = i.refreshToken, s = i.expires);
|
|
2873
2873
|
}
|
|
2874
|
-
if (
|
|
2875
|
-
|
|
2874
|
+
if (A)
|
|
2875
|
+
p.headers.Authorization = `Bearer ${A}`;
|
|
2876
2876
|
else
|
|
2877
|
-
return
|
|
2878
|
-
if (!
|
|
2879
|
-
return
|
|
2880
|
-
var
|
|
2881
|
-
|
|
2882
|
-
var
|
|
2883
|
-
return
|
|
2884
|
-
await t.refreshAccessToken(
|
|
2885
|
-
return
|
|
2886
|
-
}).catch(function(
|
|
2887
|
-
return
|
|
2877
|
+
return p;
|
|
2878
|
+
if (!u)
|
|
2879
|
+
return p;
|
|
2880
|
+
var S = /* @__PURE__ */ new Date();
|
|
2881
|
+
S.setSeconds(S.getSeconds() + a);
|
|
2882
|
+
var f = new Date(s);
|
|
2883
|
+
return S < f ? p : new Promise(async function(c, b) {
|
|
2884
|
+
await t.refreshAccessToken(u).then(function(v) {
|
|
2885
|
+
return p.headers.Authorization = `Bearer ${v}`, c(p);
|
|
2886
|
+
}).catch(function(v) {
|
|
2887
|
+
return b(v);
|
|
2888
2888
|
});
|
|
2889
2889
|
});
|
|
2890
2890
|
},
|
|
2891
|
-
function(
|
|
2892
|
-
return Promise.reject(
|
|
2891
|
+
function(l) {
|
|
2892
|
+
return Promise.reject(l);
|
|
2893
2893
|
}
|
|
2894
|
-
), e.api.interceptors.response.use(function(
|
|
2895
|
-
return
|
|
2896
|
-
}, function(
|
|
2897
|
-
var
|
|
2898
|
-
switch (
|
|
2894
|
+
), e.api.interceptors.response.use(function(l) {
|
|
2895
|
+
return l;
|
|
2896
|
+
}, function(l) {
|
|
2897
|
+
var p = l && l.response && l.response.status || l.status;
|
|
2898
|
+
switch (p) {
|
|
2899
2899
|
case 401:
|
|
2900
2900
|
t.logout();
|
|
2901
2901
|
break;
|
|
2902
2902
|
}
|
|
2903
|
-
return Promise.reject(
|
|
2903
|
+
return Promise.reject(l);
|
|
2904
2904
|
}), t;
|
|
2905
|
-
},
|
|
2905
|
+
}, q = {};
|
|
2906
2906
|
function pr(e) {
|
|
2907
2907
|
if (e === 0)
|
|
2908
2908
|
return !1;
|
|
@@ -2912,15 +2912,15 @@ function pr(e) {
|
|
|
2912
2912
|
function Kr(e) {
|
|
2913
2913
|
return !pr(e);
|
|
2914
2914
|
}
|
|
2915
|
-
|
|
2915
|
+
q.cleanKey = function(e) {
|
|
2916
2916
|
return e = String(e).split("|")[0], e[0] == "." && (e = e.slice(1)), e;
|
|
2917
2917
|
};
|
|
2918
|
-
|
|
2918
|
+
q.isValidFilter = function(e) {
|
|
2919
2919
|
if (!e)
|
|
2920
2920
|
return !1;
|
|
2921
2921
|
if (e.operator)
|
|
2922
|
-
return !e.filters || !e.filters.length ? !1 : e.filters.some(
|
|
2923
|
-
var r =
|
|
2922
|
+
return !e.filters || !e.filters.length ? !1 : e.filters.some(q.isValidFilter);
|
|
2923
|
+
var r = q.cleanKey(e.key);
|
|
2924
2924
|
if (!r)
|
|
2925
2925
|
return !1;
|
|
2926
2926
|
switch (e.comparator) {
|
|
@@ -2941,76 +2941,76 @@ X.isValidFilter = function(e) {
|
|
|
2941
2941
|
var a = (e.values || []).filter(Kr);
|
|
2942
2942
|
return !pr(e.value) || !pr(e.value2) || a.length;
|
|
2943
2943
|
};
|
|
2944
|
-
|
|
2944
|
+
q.activeFilters = function(e) {
|
|
2945
2945
|
var r = [];
|
|
2946
2946
|
return a(e, r), r;
|
|
2947
2947
|
function a(t, n) {
|
|
2948
2948
|
if (t) {
|
|
2949
|
-
var o =
|
|
2950
|
-
o && n.push(t), t.filters && t.filters.length && t.filters.forEach(function(
|
|
2951
|
-
a(
|
|
2949
|
+
var o = q.isValidFilter(t);
|
|
2950
|
+
o && n.push(t), t.filters && t.filters.length && t.filters.forEach(function(m) {
|
|
2951
|
+
a(m, n);
|
|
2952
2952
|
});
|
|
2953
2953
|
}
|
|
2954
2954
|
}
|
|
2955
2955
|
};
|
|
2956
|
-
|
|
2956
|
+
q.activeFilterKeys = function(e, r) {
|
|
2957
2957
|
r = r || {};
|
|
2958
|
-
var a =
|
|
2958
|
+
var a = q.activeFilters(e), t = a.filter(function(o) {
|
|
2959
2959
|
return !o.operator;
|
|
2960
|
-
}).reduce(function(o,
|
|
2961
|
-
var
|
|
2962
|
-
return r.trimArrayDelimeters !== !1 && (
|
|
2960
|
+
}).reduce(function(o, m) {
|
|
2961
|
+
var l = q.cleanKey(m.key);
|
|
2962
|
+
return r.trimArrayDelimeters !== !1 && (l = l.split("[]").join("")), o[l] = !0, o;
|
|
2963
2963
|
}, {}), n = Object.keys(t);
|
|
2964
2964
|
return n;
|
|
2965
2965
|
};
|
|
2966
|
-
|
|
2967
|
-
var r =
|
|
2966
|
+
q.activeFilterComparators = function(e) {
|
|
2967
|
+
var r = q.activeFilters(e).filter(function(a) {
|
|
2968
2968
|
return !a.operator;
|
|
2969
2969
|
}).reduce(function(a, t) {
|
|
2970
2970
|
return a[t.comparator] = !0, a;
|
|
2971
2971
|
}, {});
|
|
2972
2972
|
return Object.keys(r);
|
|
2973
2973
|
};
|
|
2974
|
-
|
|
2975
|
-
var r =
|
|
2974
|
+
q.activeFilterOperators = function(e) {
|
|
2975
|
+
var r = q.activeFilters(e).filter(function(a) {
|
|
2976
2976
|
return a.operator;
|
|
2977
2977
|
}).reduce(function(a, t) {
|
|
2978
2978
|
return a[t.operator] = !0, a;
|
|
2979
2979
|
}, {});
|
|
2980
2980
|
return Object.keys(r);
|
|
2981
2981
|
};
|
|
2982
|
-
|
|
2983
|
-
var a =
|
|
2982
|
+
q.activeFilterValues = function(e, r) {
|
|
2983
|
+
var a = q.activeFilters(e);
|
|
2984
2984
|
function t(o) {
|
|
2985
2985
|
if (o)
|
|
2986
2986
|
return o._id || o.id || o.title || o.name || o;
|
|
2987
2987
|
}
|
|
2988
2988
|
var n = a.filter(function(o) {
|
|
2989
2989
|
return !o.operator;
|
|
2990
|
-
}).reduce(function(o,
|
|
2991
|
-
return o = [...o, ...(
|
|
2990
|
+
}).reduce(function(o, m) {
|
|
2991
|
+
return o = [...o, ...(m.values || []).map(t), t(m.value), t(m.value2)], o;
|
|
2992
2992
|
}, []).filter(Kr);
|
|
2993
2993
|
return n;
|
|
2994
2994
|
};
|
|
2995
|
-
|
|
2996
|
-
var r =
|
|
2995
|
+
q.filterChangeString = function(e) {
|
|
2996
|
+
var r = q.activeFilters(e);
|
|
2997
2997
|
return JSON.stringify(r);
|
|
2998
2998
|
};
|
|
2999
|
-
function
|
|
2999
|
+
function Pt(e) {
|
|
3000
3000
|
var r = {};
|
|
3001
3001
|
return r.downloadUrl = function(a, t, n, o) {
|
|
3002
3002
|
return o = o || {}, n = n || {}, n.download = !0, t = e.utils.id(t), e.api.generateEndpointURL(`/${a}/${t}`, n, o);
|
|
3003
3003
|
}, r.duration = function(a) {
|
|
3004
|
-
const t = Math.round(a), n = Math.floor(t / 3600), o = Math.floor(t % 3600 / 60),
|
|
3005
|
-
return n > 0 ? `${n}:${o.toString().padStart(2, "0")}:${
|
|
3004
|
+
const t = Math.round(a), n = Math.floor(t / 3600), o = Math.floor(t % 3600 / 60), m = t % 60;
|
|
3005
|
+
return n > 0 ? `${n}:${o.toString().padStart(2, "0")}:${m.toString().padStart(2, "0")}` : `${o}:${m.toString().padStart(2, "0")}`;
|
|
3006
3006
|
}, r.mediaUrl = function(a, t, n, o) {
|
|
3007
3007
|
o = o || {}, n = n || {}, t = e.utils.id(t);
|
|
3008
|
-
let
|
|
3009
|
-
return o.extension?.length && (o.extension.includes(".") ?
|
|
3008
|
+
let m = `/${a}/${t}`;
|
|
3009
|
+
return o.extension?.length && (o.extension.includes(".") ? m = `${m}/${o.extension}` : m = `${m}/${a}.${o.extension}`), e.api.generateEndpointURL(m, n, o);
|
|
3010
3010
|
}, r.filesize = function(a, t) {
|
|
3011
3011
|
if (a == 0) return "0 Bytes";
|
|
3012
|
-
var n = 1024, o = t || 2,
|
|
3013
|
-
return parseFloat((a / Math.pow(n,
|
|
3012
|
+
var n = 1024, o = t || 2, m = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], l = Math.floor(Math.log(a) / Math.log(n));
|
|
3013
|
+
return parseFloat((a / Math.pow(n, l)).toFixed(o)) + " " + m[l];
|
|
3014
3014
|
}, r.getBinaryTypeFromMime = function(a) {
|
|
3015
3015
|
if (!a)
|
|
3016
3016
|
return "file";
|
|
@@ -3050,7 +3050,7 @@ function xt(e) {
|
|
|
3050
3050
|
}
|
|
3051
3051
|
}, r;
|
|
3052
3052
|
}
|
|
3053
|
-
var $e = {},
|
|
3053
|
+
var $e = {}, xt = {
|
|
3054
3054
|
///////////////////////////////////////////////////
|
|
3055
3055
|
/**
|
|
3056
3056
|
* A helper function to reset all caches, useful if changing organisation or logging in or out as another user
|
|
@@ -3069,7 +3069,7 @@ var $e = {}, Pt = {
|
|
|
3069
3069
|
* @return {LRUCache} The cache store for the specified key
|
|
3070
3070
|
*/
|
|
3071
3071
|
get(e, r) {
|
|
3072
|
-
return r = r || { max: 5 }, $e[e] || ($e[e] = new
|
|
3072
|
+
return r = r || { max: 5 }, $e[e] || ($e[e] = new qr(r)), $e[e];
|
|
3073
3073
|
}
|
|
3074
3074
|
}, Ct = function(e) {
|
|
3075
3075
|
if (!e.auth)
|
|
@@ -3112,69 +3112,69 @@ var $e = {}, Pt = {
|
|
|
3112
3112
|
const n = a?.organisation || {}, o = n.features || {};
|
|
3113
3113
|
if (o.all || o[t])
|
|
3114
3114
|
return !0;
|
|
3115
|
-
const
|
|
3116
|
-
return r.featureIsIncludedInByteflag(
|
|
3115
|
+
const m = n.ff;
|
|
3116
|
+
return r.featureIsIncludedInByteflag(m, "all") ? !0 : r.featureIsIncludedInByteflag(m, t);
|
|
3117
3117
|
}, r.isAdministrator = function(a) {
|
|
3118
3118
|
return a && a?.userType == "administrator";
|
|
3119
3119
|
}, r.getAllDescendants = function(a) {
|
|
3120
3120
|
var t = [];
|
|
3121
3121
|
n(a);
|
|
3122
3122
|
function n(o) {
|
|
3123
|
-
var
|
|
3124
|
-
t.push(
|
|
3125
|
-
n(
|
|
3123
|
+
var m = e.utils.id(o);
|
|
3124
|
+
t.push(m), (o.children || []).forEach(function(l) {
|
|
3125
|
+
n(l);
|
|
3126
3126
|
});
|
|
3127
3127
|
}
|
|
3128
3128
|
return t;
|
|
3129
3129
|
}, r.hashPermissions = function(a) {
|
|
3130
3130
|
var t = {};
|
|
3131
3131
|
for (var n in a?.permissions || {}) {
|
|
3132
|
-
var o = a?.permissions[n],
|
|
3133
|
-
(o.permissions || []).forEach(function(
|
|
3134
|
-
t[
|
|
3135
|
-
...new Set(t[
|
|
3132
|
+
var o = a?.permissions[n], m = r.getAllDescendants(o);
|
|
3133
|
+
(o.permissions || []).forEach(function(l) {
|
|
3134
|
+
t[l] || (t[l] = []), t[l] = [
|
|
3135
|
+
...new Set(t[l].concat(m))
|
|
3136
3136
|
];
|
|
3137
3137
|
});
|
|
3138
3138
|
}
|
|
3139
3139
|
return t;
|
|
3140
3140
|
}, r.allUserScopes = function(a) {
|
|
3141
3141
|
var t = {}, n = a?.permissions || {};
|
|
3142
|
-
function o(
|
|
3143
|
-
if (
|
|
3144
|
-
var
|
|
3145
|
-
|
|
3146
|
-
o(
|
|
3142
|
+
function o(l) {
|
|
3143
|
+
if (l) {
|
|
3144
|
+
var p = e.utils.id(l);
|
|
3145
|
+
p && (t[p] = 1, l.children && l.children.length && l.children.forEach(function(y) {
|
|
3146
|
+
o(y);
|
|
3147
3147
|
}));
|
|
3148
3148
|
}
|
|
3149
3149
|
}
|
|
3150
|
-
for (var
|
|
3151
|
-
o(n[
|
|
3150
|
+
for (var m in n)
|
|
3151
|
+
o(n[m]);
|
|
3152
3152
|
return Object.keys(t);
|
|
3153
|
-
}, r.actionableScopes = function(a, t, n, o,
|
|
3154
|
-
|
|
3155
|
-
var
|
|
3153
|
+
}, r.actionableScopes = function(a, t, n, o, m) {
|
|
3154
|
+
m = m || {};
|
|
3155
|
+
var l = [];
|
|
3156
3156
|
if (a?.userType == "administrator")
|
|
3157
|
-
|
|
3157
|
+
l = r.allUserScopes(a, m);
|
|
3158
3158
|
else {
|
|
3159
|
-
var
|
|
3160
|
-
if (!
|
|
3161
|
-
return
|
|
3162
|
-
let
|
|
3163
|
-
|
|
3159
|
+
var p = r.hashPermissions(a), y = n || o;
|
|
3160
|
+
if (!y)
|
|
3161
|
+
return l;
|
|
3162
|
+
let w = n ? p[`${n}.${t}`] || [] : [], A = o ? p[`${o}.${t}`] || [] : [];
|
|
3163
|
+
l = [...w, ...A];
|
|
3164
3164
|
}
|
|
3165
|
-
return
|
|
3165
|
+
return l || [];
|
|
3166
3166
|
}, r.isOwner = function(a, t) {
|
|
3167
|
-
var n = e.utils.id(a), o = e.utils.id(a?.persona),
|
|
3168
|
-
if (!
|
|
3167
|
+
var n = e.utils.id(a), o = e.utils.id(a?.persona), m = t.meta;
|
|
3168
|
+
if (!m)
|
|
3169
3169
|
return !1;
|
|
3170
|
-
var
|
|
3171
|
-
if (
|
|
3170
|
+
var l = m.userOwners || [], p = e.utils.ids([...l, m.userAuthor]), y = e.utils.hash(p);
|
|
3171
|
+
if (y[n])
|
|
3172
3172
|
return !0;
|
|
3173
|
-
var
|
|
3174
|
-
...
|
|
3175
|
-
|
|
3176
|
-
]),
|
|
3177
|
-
return
|
|
3173
|
+
var w = m.personaOwners || [], A = e.utils.ids([
|
|
3174
|
+
...w,
|
|
3175
|
+
m.personaAuthor
|
|
3176
|
+
]), u = e.utils.hash(A);
|
|
3177
|
+
return u[o] ? !0 : r.isAssignee(a, t);
|
|
3178
3178
|
}, r.isAssignee = function(a, t) {
|
|
3179
3179
|
const n = e.utils.ids(a?.profiles);
|
|
3180
3180
|
if (!n.length)
|
|
@@ -3182,8 +3182,8 @@ var $e = {}, Pt = {
|
|
|
3182
3182
|
const o = e.utils.ids(t.assignees);
|
|
3183
3183
|
if (!o.length)
|
|
3184
3184
|
return !1;
|
|
3185
|
-
const
|
|
3186
|
-
return !!n.filter((
|
|
3185
|
+
const m = new Set(o);
|
|
3186
|
+
return !!n.filter((y) => m.has(y)).length;
|
|
3187
3187
|
}, r.allPermissions = function(a) {
|
|
3188
3188
|
var t = Object.values(a?.permissions || {}).map(function(n) {
|
|
3189
3189
|
return n.permissions;
|
|
@@ -3191,51 +3191,51 @@ var $e = {}, Pt = {
|
|
|
3191
3191
|
return t;
|
|
3192
3192
|
}, r.allPermissionTypes = function(a, t) {
|
|
3193
3193
|
return t ? r.allPermissions(a).reduce(function(n, o) {
|
|
3194
|
-
var
|
|
3195
|
-
return n[
|
|
3194
|
+
var m = o.split(".")[0];
|
|
3195
|
+
return n[m] = !0, n;
|
|
3196
3196
|
}, {}) : r.allPermissions(a).map(function(n) {
|
|
3197
3197
|
return n.split(".")[0];
|
|
3198
3198
|
});
|
|
3199
3199
|
}, r.canKnowOf = function(a, t, n) {
|
|
3200
3200
|
return n = n || {}, n.cache = n.cache || {}, r.allPermissionTypes(a, !0)[t];
|
|
3201
|
-
}, r.checkActionAccess = function(a, t, n, o,
|
|
3202
|
-
if (
|
|
3201
|
+
}, r.checkActionAccess = function(a, t, n, o, m) {
|
|
3202
|
+
if (m = m || {}, m.cache = m.cache || {}, r.isAdministrator(a))
|
|
3203
3203
|
return !0;
|
|
3204
|
-
var
|
|
3205
|
-
if (!
|
|
3204
|
+
var l = t.meta?.type, p = t.meta?.definition || l;
|
|
3205
|
+
if (!p)
|
|
3206
3206
|
return !1;
|
|
3207
|
-
var
|
|
3208
|
-
if (
|
|
3209
|
-
|
|
3207
|
+
var y = e.utils.ids(t.meta.scopes || []), w, A = `access-${a?.cacheKey}-${n}-${p}-${l}`;
|
|
3208
|
+
if (m.cache[A])
|
|
3209
|
+
w = m.cache[A];
|
|
3210
3210
|
else {
|
|
3211
|
-
var
|
|
3212
|
-
r.actionableScopes(a, n,
|
|
3211
|
+
var u = e.utils.ids(
|
|
3212
|
+
r.actionableScopes(a, n, p, l, m)
|
|
3213
3213
|
);
|
|
3214
|
-
|
|
3214
|
+
w = e.utils.hash(u), m.cache[A] = w;
|
|
3215
3215
|
}
|
|
3216
|
-
if (
|
|
3217
|
-
var
|
|
3218
|
-
return
|
|
3216
|
+
if (w) {
|
|
3217
|
+
var s = y.some(function(v) {
|
|
3218
|
+
return w[v];
|
|
3219
3219
|
});
|
|
3220
|
-
if (
|
|
3220
|
+
if (s)
|
|
3221
3221
|
return !0;
|
|
3222
3222
|
}
|
|
3223
|
-
var
|
|
3224
|
-
if (
|
|
3225
|
-
var
|
|
3226
|
-
if (
|
|
3227
|
-
|
|
3223
|
+
var i = r.isOwner(a, t);
|
|
3224
|
+
if (i) {
|
|
3225
|
+
var S, f = `access-${a?.cacheKey}-${o}-${p}-${l}`;
|
|
3226
|
+
if (m.cache[f])
|
|
3227
|
+
S = m.cache[f];
|
|
3228
3228
|
else {
|
|
3229
|
-
var
|
|
3230
|
-
r.actionableScopes(a, o,
|
|
3229
|
+
var c = e.utils.ids(
|
|
3230
|
+
r.actionableScopes(a, o, p, l, m)
|
|
3231
3231
|
);
|
|
3232
|
-
|
|
3232
|
+
S = e.utils.hash(c), m.cache[f] = S;
|
|
3233
3233
|
}
|
|
3234
|
-
if (
|
|
3235
|
-
var
|
|
3236
|
-
return
|
|
3234
|
+
if (S) {
|
|
3235
|
+
var b = y.some(function(v) {
|
|
3236
|
+
return S[v];
|
|
3237
3237
|
});
|
|
3238
|
-
if (
|
|
3238
|
+
if (b)
|
|
3239
3239
|
return !0;
|
|
3240
3240
|
}
|
|
3241
3241
|
}
|
|
@@ -3248,13 +3248,13 @@ var $e = {}, Pt = {
|
|
|
3248
3248
|
}, r.canCreate = function(a, t, n, o) {
|
|
3249
3249
|
if (o = o || {}, o.cache = o.cache || {}, r.isAdministrator(a))
|
|
3250
3250
|
return !0;
|
|
3251
|
-
var
|
|
3251
|
+
var m = r.actionableScopes(
|
|
3252
3252
|
a,
|
|
3253
3253
|
"create",
|
|
3254
3254
|
t,
|
|
3255
3255
|
n
|
|
3256
3256
|
);
|
|
3257
|
-
return
|
|
3257
|
+
return m.length;
|
|
3258
3258
|
}, r.canListItem = function(a, t, n) {
|
|
3259
3259
|
n = n || {}, n.cache = n.cache || {};
|
|
3260
3260
|
var o = r.checkActionAccess(
|
|
@@ -3266,8 +3266,8 @@ var $e = {}, Pt = {
|
|
|
3266
3266
|
);
|
|
3267
3267
|
if (o)
|
|
3268
3268
|
return !0;
|
|
3269
|
-
var
|
|
3270
|
-
return !!
|
|
3269
|
+
var m = r.canViewItem(a, t, n);
|
|
3270
|
+
return !!m;
|
|
3271
3271
|
}, r.canViewItem = function(a, t, n) {
|
|
3272
3272
|
n = n || {}, n.cache = n.cache || {};
|
|
3273
3273
|
var o = r.checkActionAccess(
|
|
@@ -3279,8 +3279,8 @@ var $e = {}, Pt = {
|
|
|
3279
3279
|
);
|
|
3280
3280
|
if (o)
|
|
3281
3281
|
return !0;
|
|
3282
|
-
var
|
|
3283
|
-
return !!
|
|
3282
|
+
var m = r.canEditItem(a, t, n);
|
|
3283
|
+
return !!m;
|
|
3284
3284
|
}, r.canEditItem = function(a, t, n) {
|
|
3285
3285
|
n = n || {}, n.cache = n.cache || {};
|
|
3286
3286
|
var o = r.checkActionAccess(
|
|
@@ -3326,330 +3326,246 @@ function Ot(e) {
|
|
|
3326
3326
|
};
|
|
3327
3327
|
const a = {};
|
|
3328
3328
|
let t;
|
|
3329
|
-
r.variables = async function(
|
|
3330
|
-
|
|
3331
|
-
var
|
|
3332
|
-
if (
|
|
3329
|
+
r.variables = async function(u, s) {
|
|
3330
|
+
s = s || {}, u = u || [];
|
|
3331
|
+
var i = s.refresh || s.reload || !a.data;
|
|
3332
|
+
if (i) {
|
|
3333
3333
|
if (!t) {
|
|
3334
|
-
let
|
|
3334
|
+
let f = function() {
|
|
3335
3335
|
t = null;
|
|
3336
3336
|
};
|
|
3337
|
-
t = e.api.post("/variables", { keys:
|
|
3337
|
+
t = e.api.post("/variables", { keys: u }), t.then(f, f);
|
|
3338
3338
|
}
|
|
3339
|
-
const { data:
|
|
3340
|
-
a.data =
|
|
3339
|
+
const { data: S } = await t;
|
|
3340
|
+
a.data = S, e.dispatch("variables", S);
|
|
3341
3341
|
}
|
|
3342
3342
|
return a.data;
|
|
3343
3343
|
};
|
|
3344
|
-
const n = e.cache.get("user:glossary")
|
|
3345
|
-
let
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
if (i.reload || i.refresh || !c) {
|
|
3350
|
-
f || (f = e.api.get("/glossary/index"), f.then(
|
|
3351
|
-
() => {
|
|
3352
|
-
f = null;
|
|
3353
|
-
},
|
|
3354
|
-
() => {
|
|
3355
|
-
f = null;
|
|
3356
|
-
}
|
|
3357
|
-
));
|
|
3358
|
-
const { data: x } = await f;
|
|
3359
|
-
o.set("index", x), c = x, e.dispatch("glossary:index", x);
|
|
3360
|
-
}
|
|
3361
|
-
return i.hash ? e.utils.hash(c, "key") : i.hex ? e.utils.hash(c, "hex") : c;
|
|
3362
|
-
}, r.getDefinition = async function(i, c) {
|
|
3363
|
-
c = c || {};
|
|
3364
|
-
let u = p.get(i);
|
|
3365
|
-
if (u && !c.reload && !c.refresh)
|
|
3366
|
-
return u;
|
|
3367
|
-
if (m[i])
|
|
3368
|
-
return await m[i], p.get(i);
|
|
3369
|
-
m[i] = e.api.get(`/glossary/index/${i}`);
|
|
3370
|
-
try {
|
|
3371
|
-
const { data: x } = await m[i];
|
|
3372
|
-
return p.set(i, x), e.dispatch("glossary:definition", { key: i, data: x }), x;
|
|
3373
|
-
} finally {
|
|
3374
|
-
m[i] = null;
|
|
3375
|
-
}
|
|
3376
|
-
};
|
|
3377
|
-
let S = {}, v = {};
|
|
3378
|
-
r.loadDefinitionsForType = async function(i, c) {
|
|
3379
|
-
if (c = c || {}, v[i] && !c.reload && !c.refresh) {
|
|
3380
|
-
const u = v[i];
|
|
3381
|
-
return c.hash ? e.utils.hash(u, "key") : u;
|
|
3382
|
-
}
|
|
3383
|
-
if (S[i]) {
|
|
3384
|
-
await S[i];
|
|
3385
|
-
const u = v[i];
|
|
3386
|
-
return c.hash ? e.utils.hash(u, "key") : u;
|
|
3387
|
-
}
|
|
3388
|
-
S[i] = e.api.get(`/glossary/index/${i}/all`);
|
|
3389
|
-
try {
|
|
3390
|
-
const { data: u } = await S[i];
|
|
3391
|
-
return v[i] = u, u.forEach((x) => {
|
|
3392
|
-
p.set(x.key, x);
|
|
3393
|
-
}), e.dispatch("glossary:type", { type: i, definitions: u }), c.hash ? e.utils.hash(u, "key") : u;
|
|
3394
|
-
} finally {
|
|
3395
|
-
S[i] = null;
|
|
3396
|
-
}
|
|
3397
|
-
};
|
|
3398
|
-
function P(i, c) {
|
|
3399
|
-
return function u(x) {
|
|
3400
|
-
if (typeof x == "string" && x[0] === "~")
|
|
3401
|
-
return i[parseInt(x.slice(1))];
|
|
3402
|
-
if (Array.isArray(x)) return x.map(u);
|
|
3403
|
-
if (x && typeof x == "object") {
|
|
3404
|
-
const I = {};
|
|
3405
|
-
for (const [O, $] of Object.entries(x))
|
|
3406
|
-
I[c[O] || O] = u($);
|
|
3407
|
-
return I;
|
|
3408
|
-
}
|
|
3409
|
-
return x;
|
|
3410
|
-
};
|
|
3411
|
-
}
|
|
3412
|
-
function b({ _s: i, _k: c, types: u }) {
|
|
3413
|
-
const x = P(i, c), I = new Array(u.length), O = new Array(u.length).fill(!1);
|
|
3414
|
-
return new Proxy(u, {
|
|
3415
|
-
get($, L) {
|
|
3416
|
-
if (L === "length") return $.length;
|
|
3417
|
-
if (L === Symbol.iterator)
|
|
3418
|
-
return function* () {
|
|
3419
|
-
for (let _ = 0; _ < $.length; _++)
|
|
3420
|
-
O[_] || (I[_] = x($[_]), O[_] = !0), yield I[_];
|
|
3421
|
-
};
|
|
3422
|
-
if (L === "map")
|
|
3423
|
-
return function(_) {
|
|
3424
|
-
const R = [];
|
|
3425
|
-
for (let N = 0; N < $.length; N++)
|
|
3426
|
-
O[N] || (I[N] = x($[N]), O[N] = !0), R.push(_(I[N], N, this));
|
|
3427
|
-
return R;
|
|
3428
|
-
};
|
|
3429
|
-
if (L === "filter")
|
|
3430
|
-
return function(_) {
|
|
3431
|
-
const R = [];
|
|
3432
|
-
for (let N = 0; N < $.length; N++)
|
|
3433
|
-
O[N] || (I[N] = x($[N]), O[N] = !0), _(I[N], N, this) && R.push(I[N]);
|
|
3434
|
-
return R;
|
|
3435
|
-
};
|
|
3436
|
-
if (L === "find")
|
|
3437
|
-
return function(_) {
|
|
3438
|
-
for (let R = 0; R < $.length; R++)
|
|
3439
|
-
if (O[R] || (I[R] = x($[R]), O[R] = !0), _(I[R], R, this))
|
|
3440
|
-
return I[R];
|
|
3441
|
-
};
|
|
3442
|
-
if (L === "forEach")
|
|
3443
|
-
return function(_) {
|
|
3444
|
-
for (let R = 0; R < $.length; R++)
|
|
3445
|
-
O[R] || (I[R] = x($[R]), O[R] = !0), _(I[R], R, this);
|
|
3446
|
-
};
|
|
3447
|
-
const F = typeof L == "string" ? parseInt(L, 10) : L;
|
|
3448
|
-
return Number.isInteger(F) && F >= 0 && F < $.length ? (O[F] || (I[F] = x($[F]), O[F] = !0), I[F]) : Reflect.get($, L);
|
|
3449
|
-
}
|
|
3344
|
+
const n = e.cache.get("user:glossary");
|
|
3345
|
+
let o;
|
|
3346
|
+
function m() {
|
|
3347
|
+
return new Promise((u) => {
|
|
3348
|
+
typeof requestIdleCallback == "function" ? requestIdleCallback(u, { timeout: 50 }) : setTimeout(u, 0);
|
|
3450
3349
|
});
|
|
3451
3350
|
}
|
|
3452
|
-
function
|
|
3453
|
-
|
|
3351
|
+
async function l({ _s: u, _k: s, types: i }) {
|
|
3352
|
+
function S(b) {
|
|
3353
|
+
if (typeof b == "string" && b[0] === "~")
|
|
3354
|
+
return u[parseInt(b.slice(1))];
|
|
3355
|
+
if (Array.isArray(b)) return b.map(S);
|
|
3356
|
+
if (b && typeof b == "object") {
|
|
3357
|
+
const v = {};
|
|
3358
|
+
for (const [C, P] of Object.entries(b))
|
|
3359
|
+
v[s[C] || C] = S(P);
|
|
3360
|
+
return v;
|
|
3361
|
+
}
|
|
3362
|
+
return b;
|
|
3363
|
+
}
|
|
3364
|
+
const f = 50, c = [];
|
|
3365
|
+
for (let b = 0; b < i.length; b += f) {
|
|
3366
|
+
const v = i.slice(b, b + f);
|
|
3367
|
+
c.push(...v.map(S)), b + f < i.length && await m();
|
|
3368
|
+
}
|
|
3369
|
+
return c;
|
|
3454
3370
|
}
|
|
3455
|
-
r.glossary = async function(
|
|
3456
|
-
|
|
3457
|
-
let
|
|
3458
|
-
var
|
|
3459
|
-
if (
|
|
3460
|
-
if (!
|
|
3461
|
-
let
|
|
3462
|
-
|
|
3371
|
+
r.glossary = async function(u) {
|
|
3372
|
+
u = u || {};
|
|
3373
|
+
let s = n.get("glossary"), S = !!!u.uncompressed;
|
|
3374
|
+
var f = u.refresh || u.reload || !s;
|
|
3375
|
+
if (f) {
|
|
3376
|
+
if (!o) {
|
|
3377
|
+
let P = function() {
|
|
3378
|
+
o = null, r.loadingGlossary = !1;
|
|
3463
3379
|
};
|
|
3464
3380
|
r.loadingGlossary = !0;
|
|
3465
|
-
const
|
|
3466
|
-
|
|
3381
|
+
const C = S ? "/glossary/compressed" : "/glossary";
|
|
3382
|
+
o = e.api.get(C, { cache: !1 }), o.then(P, P);
|
|
3467
3383
|
}
|
|
3468
|
-
const { data:
|
|
3469
|
-
n.set("glossary",
|
|
3384
|
+
const { data: b } = await o, v = b._s && b._k && b.types ? await l(b) : b;
|
|
3385
|
+
n.set("glossary", v), s = v, e.dispatch("glossary", v);
|
|
3470
3386
|
}
|
|
3471
|
-
if (
|
|
3472
|
-
var
|
|
3473
|
-
return
|
|
3387
|
+
if (u.hash) {
|
|
3388
|
+
var c = e.utils.hash(s, "key");
|
|
3389
|
+
return c;
|
|
3474
3390
|
}
|
|
3475
|
-
if (
|
|
3476
|
-
var
|
|
3477
|
-
return
|
|
3391
|
+
if (u.hex) {
|
|
3392
|
+
var c = e.utils.hash(s, "hex");
|
|
3393
|
+
return c;
|
|
3478
3394
|
}
|
|
3479
|
-
return
|
|
3395
|
+
return s;
|
|
3480
3396
|
};
|
|
3481
|
-
const
|
|
3482
|
-
let
|
|
3483
|
-
r.scopeGlossary = async function(
|
|
3484
|
-
|
|
3485
|
-
var
|
|
3486
|
-
if (
|
|
3487
|
-
if (!
|
|
3488
|
-
let
|
|
3489
|
-
|
|
3397
|
+
const p = {};
|
|
3398
|
+
let y;
|
|
3399
|
+
r.scopeGlossary = async function(u) {
|
|
3400
|
+
u = u || {};
|
|
3401
|
+
var s = u.refresh || u.reload || !p.data;
|
|
3402
|
+
if (s) {
|
|
3403
|
+
if (!y) {
|
|
3404
|
+
let f = function() {
|
|
3405
|
+
y = null;
|
|
3490
3406
|
};
|
|
3491
|
-
|
|
3407
|
+
y = e.api.get("/scope/glossary", {
|
|
3492
3408
|
cache: !1
|
|
3493
|
-
}),
|
|
3409
|
+
}), y.then(f, f);
|
|
3494
3410
|
}
|
|
3495
|
-
const { data:
|
|
3496
|
-
|
|
3411
|
+
const { data: S } = await y;
|
|
3412
|
+
p.data = S;
|
|
3497
3413
|
}
|
|
3498
|
-
if (
|
|
3499
|
-
var
|
|
3500
|
-
return
|
|
3414
|
+
if (u.hash) {
|
|
3415
|
+
var i = e.utils.hash(p.data, "_id");
|
|
3416
|
+
return i;
|
|
3501
3417
|
}
|
|
3502
|
-
return
|
|
3418
|
+
return p.data;
|
|
3503
3419
|
};
|
|
3504
|
-
const
|
|
3505
|
-
r.comparators = async function(
|
|
3506
|
-
|
|
3507
|
-
var
|
|
3508
|
-
if (
|
|
3509
|
-
const { data:
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
return
|
|
3420
|
+
const w = {};
|
|
3421
|
+
r.comparators = async function(u) {
|
|
3422
|
+
u = u || {};
|
|
3423
|
+
var s = u.reload || u.refresh || !w.data;
|
|
3424
|
+
if (s) {
|
|
3425
|
+
const { data: i } = await e.api.get("/system/comparators");
|
|
3426
|
+
i.available = {}, Object.entries(i.types).forEach(([S, f]) => {
|
|
3427
|
+
i.available[S] = f.map(function(c) {
|
|
3428
|
+
return i.hash[c];
|
|
3513
3429
|
});
|
|
3514
|
-
}),
|
|
3430
|
+
}), w.data = i;
|
|
3515
3431
|
}
|
|
3516
|
-
return
|
|
3432
|
+
return w.data;
|
|
3517
3433
|
};
|
|
3518
|
-
function
|
|
3519
|
-
var { minimum:
|
|
3520
|
-
return
|
|
3521
|
-
}
|
|
3522
|
-
return r.meetsValidationRequirements = function(
|
|
3523
|
-
if (
|
|
3524
|
-
var
|
|
3525
|
-
if (
|
|
3526
|
-
return `Must be at least ${
|
|
3434
|
+
function A(u) {
|
|
3435
|
+
var { minimum: s, maximum: i } = u;
|
|
3436
|
+
return s = e.utils.parseInt(s), s = Math.max(s, 0), i = e.utils.parseInt(i), i = Math.max(i, 0), i == 0 || (i = Math.max(i, s)), { minimum: s, maximum: i };
|
|
3437
|
+
}
|
|
3438
|
+
return r.meetsValidationRequirements = function(u, s, i) {
|
|
3439
|
+
if (i.minLength) {
|
|
3440
|
+
var S = String(u).length;
|
|
3441
|
+
if (S < i.minLength)
|
|
3442
|
+
return `Must be at least ${i.minLength} characters`;
|
|
3527
3443
|
}
|
|
3528
|
-
if (
|
|
3529
|
-
var
|
|
3530
|
-
if (
|
|
3531
|
-
return `Can be no more than ${
|
|
3444
|
+
if (i.maxLength) {
|
|
3445
|
+
var S = String(u).length;
|
|
3446
|
+
if (S > i.maxLength)
|
|
3447
|
+
return `Can be no more than ${i.maxLength} characters`;
|
|
3532
3448
|
}
|
|
3533
|
-
if (
|
|
3534
|
-
var
|
|
3535
|
-
if (
|
|
3536
|
-
return `Must be at least ${
|
|
3449
|
+
if (i.minValue && u !== void 0) {
|
|
3450
|
+
var f = Number(u);
|
|
3451
|
+
if (f < i.minValue)
|
|
3452
|
+
return `Must be at least ${i.minValue}`;
|
|
3537
3453
|
}
|
|
3538
|
-
if (
|
|
3539
|
-
var
|
|
3540
|
-
if (
|
|
3541
|
-
return `Can be no greater than ${
|
|
3454
|
+
if (i.maxValue && u !== void 0) {
|
|
3455
|
+
var f = Number(u);
|
|
3456
|
+
if (f > i.maxValue)
|
|
3457
|
+
return `Can be no greater than ${i.maxValue}`;
|
|
3542
3458
|
}
|
|
3543
|
-
}, r.validateField = function(
|
|
3544
|
-
|
|
3545
|
-
var
|
|
3546
|
-
if (
|
|
3547
|
-
if (!
|
|
3459
|
+
}, r.validateField = function(u, s, i) {
|
|
3460
|
+
i = i || {};
|
|
3461
|
+
var S = s.type || "string", { minimum: f, maximum: c } = A(s), b = s.type == "group" && s.asObject, v = b ? f === c && c === 1 : c === 1, C = !v, P = e.utils.exists(u);
|
|
3462
|
+
if (f) {
|
|
3463
|
+
if (!P)
|
|
3548
3464
|
return {
|
|
3549
3465
|
valid: !1,
|
|
3550
|
-
message: `${
|
|
3466
|
+
message: `${s.title} is a required field`,
|
|
3551
3467
|
status: 400
|
|
3552
3468
|
};
|
|
3553
|
-
} else if (!
|
|
3469
|
+
} else if (!P)
|
|
3554
3470
|
return {
|
|
3555
3471
|
valid: !0
|
|
3556
3472
|
};
|
|
3557
|
-
if (
|
|
3558
|
-
if (!Array.isArray(
|
|
3559
|
-
return
|
|
3473
|
+
if (C) {
|
|
3474
|
+
if (!Array.isArray(u))
|
|
3475
|
+
return f ? {
|
|
3560
3476
|
valid: !1,
|
|
3561
|
-
message: `${
|
|
3477
|
+
message: `${s.title} requires at least ${f} values`,
|
|
3562
3478
|
status: 400
|
|
3563
|
-
} : (console.log("NOT PROVIDED AS ARRAY",
|
|
3479
|
+
} : (console.log("NOT PROVIDED AS ARRAY", s.title, u), {
|
|
3564
3480
|
valid: !1,
|
|
3565
|
-
message: `${
|
|
3481
|
+
message: `${s.title} must be provided as an array`,
|
|
3566
3482
|
status: 400
|
|
3567
3483
|
});
|
|
3568
|
-
var
|
|
3569
|
-
if (
|
|
3570
|
-
var
|
|
3571
|
-
return !
|
|
3572
|
-
}),
|
|
3484
|
+
var I = u;
|
|
3485
|
+
if (I = I.filter(function(T) {
|
|
3486
|
+
var R = T == null || T === "";
|
|
3487
|
+
return !R;
|
|
3488
|
+
}), f == c && f && I.length != f)
|
|
3573
3489
|
return {
|
|
3574
3490
|
valid: !1,
|
|
3575
|
-
message: `${
|
|
3491
|
+
message: `${s.title} requires exactly ${c} values`,
|
|
3576
3492
|
status: 400
|
|
3577
3493
|
};
|
|
3578
|
-
if (
|
|
3494
|
+
if (c && I.length > c)
|
|
3579
3495
|
return {
|
|
3580
3496
|
valid: !1,
|
|
3581
|
-
message: `${
|
|
3497
|
+
message: `${s.title} requires less than ${c + 1} values`,
|
|
3582
3498
|
status: 400
|
|
3583
3499
|
};
|
|
3584
|
-
if (
|
|
3500
|
+
if (I.length < f)
|
|
3585
3501
|
return {
|
|
3586
3502
|
valid: !1,
|
|
3587
|
-
message: `${
|
|
3503
|
+
message: `${s.title} requires at least ${f} values`,
|
|
3588
3504
|
status: 400
|
|
3589
3505
|
};
|
|
3590
3506
|
var N;
|
|
3591
|
-
if (
|
|
3592
|
-
var
|
|
3593
|
-
|
|
3594
|
-
var
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3507
|
+
if (I.find(function(T) {
|
|
3508
|
+
var R = S;
|
|
3509
|
+
s.type === "group" && (R = "object"), s.type === "reference" && s.widget === "form" && (R = "object");
|
|
3510
|
+
var $ = e.utils.isValidValue(
|
|
3511
|
+
T,
|
|
3512
|
+
R,
|
|
3513
|
+
i.strict
|
|
3598
3514
|
);
|
|
3599
|
-
if (
|
|
3515
|
+
if (!$)
|
|
3600
3516
|
return N = !0, !0;
|
|
3601
|
-
if (
|
|
3602
|
-
var
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3517
|
+
if (s.validation) {
|
|
3518
|
+
var z = r.meetsValidationRequirements(
|
|
3519
|
+
T,
|
|
3520
|
+
S,
|
|
3521
|
+
s.validation
|
|
3606
3522
|
);
|
|
3607
|
-
if (
|
|
3523
|
+
if (z)
|
|
3608
3524
|
return N = !0, !0;
|
|
3609
3525
|
}
|
|
3610
3526
|
}), N)
|
|
3611
3527
|
return {
|
|
3612
3528
|
valid: !1,
|
|
3613
|
-
message: `Invalid input for ${
|
|
3529
|
+
message: `Invalid input for ${s.title}`,
|
|
3614
3530
|
status: 400
|
|
3615
3531
|
};
|
|
3616
3532
|
} else {
|
|
3617
|
-
var
|
|
3618
|
-
|
|
3619
|
-
var U = r.getCleanedValue(
|
|
3533
|
+
var M = S, V = s.widget;
|
|
3534
|
+
M === "group" && (M = "object"), M === "reference" && V === "form" && (M = "object");
|
|
3535
|
+
var U = r.getCleanedValue(u, M, i), L = e.utils.isValidValue(
|
|
3620
3536
|
U,
|
|
3621
|
-
|
|
3622
|
-
|
|
3537
|
+
M,
|
|
3538
|
+
i.strict
|
|
3623
3539
|
);
|
|
3624
|
-
if (!
|
|
3540
|
+
if (!L)
|
|
3625
3541
|
return {
|
|
3626
3542
|
valid: !1,
|
|
3627
|
-
message: `Single value '${
|
|
3543
|
+
message: `Single value '${u}' is not a valid ${M} for ${s.title}`,
|
|
3628
3544
|
criteria: {
|
|
3629
|
-
isValidValue:
|
|
3545
|
+
isValidValue: L,
|
|
3630
3546
|
cleanedValue: U,
|
|
3631
|
-
fieldType:
|
|
3632
|
-
options:
|
|
3547
|
+
fieldType: S,
|
|
3548
|
+
options: i
|
|
3633
3549
|
},
|
|
3634
3550
|
status: 400
|
|
3635
3551
|
};
|
|
3636
|
-
let
|
|
3637
|
-
const
|
|
3638
|
-
if (String(
|
|
3639
|
-
const
|
|
3552
|
+
let T = !1;
|
|
3553
|
+
const R = {};
|
|
3554
|
+
if (String(s.minValue) && (R.minValue = parseInt(s.minValue), T = !0), String(s.maxValue) && (R.maxValue = parseInt(s.maxValue), T = !0), String(s.minLength) && (R.minLength = parseInt(s.minLength), T = !0), String(s.maxLength) && (R.maxLength = parseInt(s.maxLength), T = !0), T) {
|
|
3555
|
+
const $ = Object.assign(
|
|
3640
3556
|
{},
|
|
3641
|
-
|
|
3642
|
-
|
|
3557
|
+
R,
|
|
3558
|
+
s.validation || {}
|
|
3643
3559
|
);
|
|
3644
|
-
var
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3560
|
+
var F = r.meetsValidationRequirements(
|
|
3561
|
+
u,
|
|
3562
|
+
S,
|
|
3563
|
+
$
|
|
3648
3564
|
);
|
|
3649
|
-
if (
|
|
3565
|
+
if (F)
|
|
3650
3566
|
return {
|
|
3651
3567
|
valid: !1,
|
|
3652
|
-
message:
|
|
3568
|
+
message: F,
|
|
3653
3569
|
status: 400
|
|
3654
3570
|
};
|
|
3655
3571
|
}
|
|
@@ -3657,74 +3573,74 @@ function Ot(e) {
|
|
|
3657
3573
|
return {
|
|
3658
3574
|
valid: !0
|
|
3659
3575
|
};
|
|
3660
|
-
}, r.getCleanedValue = function(
|
|
3661
|
-
switch (
|
|
3576
|
+
}, r.getCleanedValue = function(u, s, i) {
|
|
3577
|
+
switch (s) {
|
|
3662
3578
|
case "number":
|
|
3663
3579
|
case "float":
|
|
3664
3580
|
case "decimal":
|
|
3665
|
-
return e.utils.exists(
|
|
3581
|
+
return e.utils.exists(u) ? Number(u) : void 0;
|
|
3666
3582
|
case "integer":
|
|
3667
|
-
return e.utils.exists(
|
|
3583
|
+
return e.utils.exists(u) ? parseInt(u) : void 0;
|
|
3668
3584
|
case "boolean":
|
|
3669
|
-
return e.utils.exists(
|
|
3585
|
+
return e.utils.exists(u) ? e.utils.parseBoolean(u) : void 0;
|
|
3670
3586
|
case "email":
|
|
3671
|
-
return
|
|
3587
|
+
return i.strict ? u : String(u).toLowerCase();
|
|
3672
3588
|
case "reference":
|
|
3673
|
-
return
|
|
3589
|
+
return i.strict ? u : e.utils.id(u);
|
|
3674
3590
|
default:
|
|
3675
|
-
return
|
|
3591
|
+
return i.strict ? u : e.utils.cleanValue(u, s, i);
|
|
3676
3592
|
}
|
|
3677
|
-
return
|
|
3678
|
-
}, r.list = async function(
|
|
3679
|
-
|
|
3680
|
-
const
|
|
3681
|
-
if (
|
|
3682
|
-
|
|
3683
|
-
const
|
|
3684
|
-
return
|
|
3685
|
-
promise: e.api.post(
|
|
3686
|
-
cancel(
|
|
3687
|
-
|
|
3593
|
+
return u;
|
|
3594
|
+
}, r.list = async function(u, s, i) {
|
|
3595
|
+
i || (i = {});
|
|
3596
|
+
const S = i.remoteURL || `/content/${u}/list`;
|
|
3597
|
+
if (i.cancellable) {
|
|
3598
|
+
i.config || (i.config = {});
|
|
3599
|
+
const c = e.api.CancelToken.source();
|
|
3600
|
+
return i.config.cancelToken = c.token, {
|
|
3601
|
+
promise: e.api.post(S, s, i.config),
|
|
3602
|
+
cancel(v) {
|
|
3603
|
+
c.cancel(v || "Operation canceled by the user.");
|
|
3688
3604
|
}
|
|
3689
3605
|
};
|
|
3690
3606
|
} else {
|
|
3691
|
-
const { data:
|
|
3692
|
-
return
|
|
3607
|
+
const { data: f } = await e.api.post(S, s, i.config);
|
|
3608
|
+
return f;
|
|
3693
3609
|
}
|
|
3694
|
-
}, r.create = async function(
|
|
3695
|
-
const
|
|
3696
|
-
|
|
3697
|
-
const { data:
|
|
3698
|
-
return
|
|
3699
|
-
}, r.update = async function(
|
|
3700
|
-
|
|
3701
|
-
const
|
|
3702
|
-
|
|
3703
|
-
const { data:
|
|
3704
|
-
return
|
|
3705
|
-
}, r.patch = async function(
|
|
3706
|
-
|
|
3707
|
-
const
|
|
3708
|
-
|
|
3709
|
-
const { data:
|
|
3710
|
-
return
|
|
3711
|
-
}, r.get = async function(
|
|
3712
|
-
|
|
3713
|
-
const { data:
|
|
3714
|
-
return
|
|
3715
|
-
}, r.getFromID = async function(
|
|
3716
|
-
return r.get(
|
|
3717
|
-
}, r.delete = async function(
|
|
3718
|
-
|
|
3719
|
-
const { data:
|
|
3720
|
-
return
|
|
3721
|
-
}, r.restore = async function(
|
|
3722
|
-
|
|
3723
|
-
const { data:
|
|
3724
|
-
return
|
|
3725
|
-
}, r.getFromSlug = async function(
|
|
3726
|
-
const { data:
|
|
3727
|
-
return
|
|
3610
|
+
}, r.create = async function(u, s) {
|
|
3611
|
+
const i = { ...s };
|
|
3612
|
+
i.meta?.scopes && (i.meta.scopes = e.utils.ids(i.meta.scopes));
|
|
3613
|
+
const { data: S } = await e.api.post(`/content/${u}/create`, i);
|
|
3614
|
+
return S;
|
|
3615
|
+
}, r.update = async function(u, s) {
|
|
3616
|
+
u = e.utils.id(u);
|
|
3617
|
+
const i = { ...s };
|
|
3618
|
+
i.meta?.scopes && (i.meta.scopes = e.utils.ids(i.meta.scopes));
|
|
3619
|
+
const { data: S } = await e.api.put(`/content/${u}`, i);
|
|
3620
|
+
return S;
|
|
3621
|
+
}, r.patch = async function(u, s) {
|
|
3622
|
+
u = e.utils.id(u);
|
|
3623
|
+
const i = { ...s };
|
|
3624
|
+
i.meta?.scopes && (i.meta.scopes = e.utils.ids(i.meta.scopes));
|
|
3625
|
+
const { data: S } = await e.api.patch(`/content/${u}`, i);
|
|
3626
|
+
return S;
|
|
3627
|
+
}, r.get = async function(u, s) {
|
|
3628
|
+
u = e.utils.id(u), s = s || {};
|
|
3629
|
+
const { data: i } = await e.api.get(`/content/${u}`, s);
|
|
3630
|
+
return i;
|
|
3631
|
+
}, r.getFromID = async function(u) {
|
|
3632
|
+
return r.get(u);
|
|
3633
|
+
}, r.delete = async function(u, s) {
|
|
3634
|
+
u = e.utils.id(u);
|
|
3635
|
+
const { data: i } = await e.api.delete(`/content/${u}`, s);
|
|
3636
|
+
return i;
|
|
3637
|
+
}, r.restore = async function(u, s) {
|
|
3638
|
+
u = e.utils.id(u);
|
|
3639
|
+
const { data: i } = await e.api.get(`/content/${u}/restore`, s);
|
|
3640
|
+
return i;
|
|
3641
|
+
}, r.getFromSlug = async function(u) {
|
|
3642
|
+
const { data: s } = await e.api.get(`/content/slug/${u}`);
|
|
3643
|
+
return s;
|
|
3728
3644
|
}, r;
|
|
3729
3645
|
}
|
|
3730
3646
|
function Mt(e) {
|
|
@@ -3737,26 +3653,26 @@ function Mt(e) {
|
|
|
3737
3653
|
})), a;
|
|
3738
3654
|
}, r;
|
|
3739
3655
|
}
|
|
3740
|
-
function
|
|
3656
|
+
function kt(e) {
|
|
3741
3657
|
var r = {};
|
|
3742
3658
|
function a() {
|
|
3743
3659
|
return !(typeof window > "u" || !window.navigator || !window.navigator.geolocation);
|
|
3744
3660
|
}
|
|
3745
|
-
return r.distance = function({ lat: t, lon: n }, { lat: o, lon:
|
|
3746
|
-
function
|
|
3747
|
-
return
|
|
3661
|
+
return r.distance = function({ lat: t, lon: n }, { lat: o, lon: m }) {
|
|
3662
|
+
function l(i) {
|
|
3663
|
+
return i * (Math.PI / 180);
|
|
3748
3664
|
}
|
|
3749
|
-
var
|
|
3750
|
-
return
|
|
3665
|
+
var p = 6371e3, y = l(o - t), w = l(m - n), A = Math.sin(y / 2) * Math.sin(y / 2) + Math.cos(l(t)) * Math.cos(l(o)) * Math.sin(w / 2) * Math.sin(w / 2), u = 2 * Math.atan2(Math.sqrt(A), Math.sqrt(1 - A)), s = p * u;
|
|
3666
|
+
return s;
|
|
3751
3667
|
}, r.getPosition = async function() {
|
|
3752
3668
|
return a() ? (console.log("qik:geo: getting location"), new Promise(function(t, n) {
|
|
3753
3669
|
navigator.geolocation.getCurrentPosition(t, n);
|
|
3754
3670
|
})) : Promise.reject({ message: "Geolocation is not enabled" });
|
|
3755
3671
|
}, r.watchPosition = async function(t) {
|
|
3756
3672
|
return a() ? (console.log("qik:geo: watching location"), new Promise(function(n, o) {
|
|
3757
|
-
const
|
|
3673
|
+
const m = navigator.geolocation.watchPosition(t, o);
|
|
3758
3674
|
n({
|
|
3759
|
-
id:
|
|
3675
|
+
id: m
|
|
3760
3676
|
});
|
|
3761
3677
|
})) : Promise.reject({ message: "Geolocation is not enabled" });
|
|
3762
3678
|
}, r.stopWatchPosition = async function(t) {
|
|
@@ -4480,7 +4396,7 @@ function It(e) {
|
|
|
4480
4396
|
}
|
|
4481
4397
|
}, r;
|
|
4482
4398
|
}
|
|
4483
|
-
const
|
|
4399
|
+
const It = function(e, r) {
|
|
4484
4400
|
if (r = r || "production", !e.auth)
|
|
4485
4401
|
throw new Error("Can't Instantiate QikSocket before QikAuth exists");
|
|
4486
4402
|
const a = e.utils.guid();
|
|
@@ -4491,87 +4407,87 @@ const Tt = function(e, r) {
|
|
|
4491
4407
|
windowID: a,
|
|
4492
4408
|
autoreconnect: !0
|
|
4493
4409
|
}, n, o = {};
|
|
4494
|
-
const
|
|
4495
|
-
|
|
4496
|
-
if (o[
|
|
4497
|
-
return o[
|
|
4498
|
-
const
|
|
4499
|
-
o[
|
|
4500
|
-
function
|
|
4501
|
-
|
|
4410
|
+
const m = {}, l = new je();
|
|
4411
|
+
l.bootstrap(t), t.channel = async function(i) {
|
|
4412
|
+
if (o[i])
|
|
4413
|
+
return o[i];
|
|
4414
|
+
const S = new je();
|
|
4415
|
+
o[i] = S, t.connected || await t.connect(), t.subscribe(i), t.addEventListener(i, f);
|
|
4416
|
+
function f(c) {
|
|
4417
|
+
S.dispatch("message", c);
|
|
4502
4418
|
}
|
|
4503
|
-
return
|
|
4504
|
-
t.removeAllListeners(), o[
|
|
4505
|
-
}, o[
|
|
4419
|
+
return S.destroy = function() {
|
|
4420
|
+
t.removeAllListeners(), o[i] = null;
|
|
4421
|
+
}, o[i];
|
|
4506
4422
|
};
|
|
4507
|
-
function
|
|
4508
|
-
t.debug && console.log("[socket] Connection open",
|
|
4423
|
+
function p(i) {
|
|
4424
|
+
t.debug && console.log("[socket] Connection open", i), t.connected = !0, l.dispatch("connected", i);
|
|
4509
4425
|
}
|
|
4510
|
-
async function
|
|
4511
|
-
|
|
4426
|
+
async function y(i) {
|
|
4427
|
+
i.wasClean ? t.debug && console.log(`[socket] Connection closed cleanly, code=${i.code} reason=${i.reason}`) : t.debug && console.log("[socket] - connection closed due to error", i), t.connected = !1, l.dispatch("disconnected", i), n = null, t.autoreconnect && t.reconnect();
|
|
4512
4428
|
}
|
|
4513
|
-
function
|
|
4514
|
-
console.log("[event] socketError", event), t.debug && console.log("[socket] Error",
|
|
4429
|
+
function w(i) {
|
|
4430
|
+
console.log("[event] socketError", event), t.debug && console.log("[socket] Error", i), l.dispatch("error", i);
|
|
4515
4431
|
}
|
|
4516
|
-
function
|
|
4517
|
-
const
|
|
4518
|
-
t.debug && console.log("[socket] message received",
|
|
4432
|
+
function A(i) {
|
|
4433
|
+
const S = JSON.parse(i.data);
|
|
4434
|
+
t.debug && console.log("[socket] message received", S), l.dispatch("message", S), S.channel && l.dispatch(S.channel, S);
|
|
4519
4435
|
}
|
|
4520
|
-
async function
|
|
4521
|
-
n.send(JSON.stringify(
|
|
4436
|
+
async function u(i) {
|
|
4437
|
+
n.send(JSON.stringify(i));
|
|
4522
4438
|
}
|
|
4523
|
-
function
|
|
4524
|
-
return new Promise(function(
|
|
4525
|
-
function
|
|
4439
|
+
function s() {
|
|
4440
|
+
return new Promise(function(i) {
|
|
4441
|
+
function S() {
|
|
4526
4442
|
if (t.connected)
|
|
4527
|
-
return
|
|
4528
|
-
setTimeout(
|
|
4443
|
+
return i(n);
|
|
4444
|
+
setTimeout(S, 1e3);
|
|
4529
4445
|
}
|
|
4530
|
-
|
|
4446
|
+
S();
|
|
4531
4447
|
});
|
|
4532
4448
|
}
|
|
4533
4449
|
return t.connect = async function() {
|
|
4534
4450
|
if (n)
|
|
4535
|
-
return n.connected ? (console.log("[socket] - Socket is already connected"), n) :
|
|
4536
|
-
const
|
|
4537
|
-
if (!
|
|
4451
|
+
return n.connected ? (console.log("[socket] - Socket is already connected"), n) : s();
|
|
4452
|
+
const i = e.auth.getCurrentToken();
|
|
4453
|
+
if (!i) {
|
|
4538
4454
|
t.debug && console.log("[socket] - Must be authenticated to connect to socket");
|
|
4539
4455
|
return;
|
|
4540
4456
|
}
|
|
4541
|
-
return n = new WebSocket(`${t.url}?access_token=${
|
|
4457
|
+
return n = new WebSocket(`${t.url}?access_token=${i}&windowid=${a}`), n.addEventListener("close", y), n.addEventListener("error", w), n.addEventListener("open", p), n.addEventListener("message", A), t.debug && console.log("[socket] - Connected with event listeners"), s();
|
|
4542
4458
|
}, t.reconnect = async function() {
|
|
4543
4459
|
if (t.connected)
|
|
4544
4460
|
return;
|
|
4545
4461
|
t.debug && console.log("[socket] reconnecting...");
|
|
4546
|
-
const
|
|
4547
|
-
return Object.keys(
|
|
4548
|
-
t.subscribe(
|
|
4549
|
-
}),
|
|
4462
|
+
const i = await t.connect();
|
|
4463
|
+
return Object.keys(m).forEach(function(f) {
|
|
4464
|
+
t.subscribe(f);
|
|
4465
|
+
}), i;
|
|
4550
4466
|
}, t.close = async function() {
|
|
4551
4467
|
if (!n) {
|
|
4552
4468
|
console.log("[socket] - Socket is not connected");
|
|
4553
4469
|
return;
|
|
4554
4470
|
}
|
|
4555
|
-
const
|
|
4556
|
-
t.autoreconnect = !1, n.close(), n.removeEventListener("close",
|
|
4557
|
-
}, t.disconnect = t.close, t.subscribe = async function(
|
|
4471
|
+
const i = t.autoreconnect;
|
|
4472
|
+
t.autoreconnect = !1, n.close(), n.removeEventListener("close", y), n.removeEventListener("error", w), n.removeEventListener("open", p), n.removeEventListener("message", A), n = null, y({ wasClean: !0 }), t.autoreconnect = i;
|
|
4473
|
+
}, t.disconnect = t.close, t.subscribe = async function(i) {
|
|
4558
4474
|
if (!n) {
|
|
4559
4475
|
console.log("[socket] - Can't subscribe to channel as socket is not connected");
|
|
4560
4476
|
return;
|
|
4561
4477
|
}
|
|
4562
|
-
|
|
4478
|
+
u({
|
|
4563
4479
|
action: "subscribe",
|
|
4564
|
-
channel:
|
|
4565
|
-
}),
|
|
4566
|
-
}, t.unsubscribe = async function(
|
|
4480
|
+
channel: i
|
|
4481
|
+
}), m[i] = !0, l.dispatch("subscribe", i), t.debug && console.log(`[socket] - subscribed to ${i}`);
|
|
4482
|
+
}, t.unsubscribe = async function(i) {
|
|
4567
4483
|
if (!n) {
|
|
4568
4484
|
console.log("[socket] - Can't unsubscribe from channel as socket is not connected");
|
|
4569
4485
|
return;
|
|
4570
4486
|
}
|
|
4571
|
-
|
|
4487
|
+
u({
|
|
4572
4488
|
action: "unsubscribe",
|
|
4573
|
-
channel:
|
|
4574
|
-
}), delete
|
|
4489
|
+
channel: i
|
|
4490
|
+
}), delete m[i], l.dispatch("unsubscribe", i), t.debug && console.log(`[socket] - unsubscribed from ${i}`);
|
|
4575
4491
|
}, t;
|
|
4576
4492
|
};
|
|
4577
4493
|
function Nt(e) {
|
|
@@ -4597,7 +4513,7 @@ function Nt(e) {
|
|
|
4597
4513
|
global: {}
|
|
4598
4514
|
});
|
|
4599
4515
|
Object.defineProperty(r, "cache", {
|
|
4600
|
-
value:
|
|
4516
|
+
value: xt,
|
|
4601
4517
|
writable: !1
|
|
4602
4518
|
});
|
|
4603
4519
|
const t = k;
|
|
@@ -4605,56 +4521,56 @@ function Nt(e) {
|
|
|
4605
4521
|
value: t,
|
|
4606
4522
|
writable: !1
|
|
4607
4523
|
}), Object.defineProperty(r, "filter", {
|
|
4608
|
-
value:
|
|
4524
|
+
value: q,
|
|
4609
4525
|
writable: !1
|
|
4610
4526
|
});
|
|
4611
|
-
const o = new
|
|
4527
|
+
const o = new Pt(r);
|
|
4612
4528
|
Object.defineProperty(r, "files", {
|
|
4613
4529
|
value: o,
|
|
4614
4530
|
writable: !1
|
|
4615
|
-
}), new je().bootstrap(r), r.error = function(
|
|
4616
|
-
return r.dispatch("error", t.errorMessage(
|
|
4617
|
-
}, r.notify = function(
|
|
4618
|
-
return r.dispatch("notification", { message:
|
|
4531
|
+
}), new je().bootstrap(r), r.error = function(i) {
|
|
4532
|
+
return r.dispatch("error", t.errorMessage(i));
|
|
4533
|
+
}, r.notify = function(i, S) {
|
|
4534
|
+
return r.dispatch("notification", { message: i, options: S });
|
|
4619
4535
|
};
|
|
4620
|
-
const
|
|
4536
|
+
const l = new mt(r);
|
|
4621
4537
|
Object.defineProperty(r, "api", {
|
|
4622
|
-
value:
|
|
4538
|
+
value: l,
|
|
4623
4539
|
writable: !1
|
|
4624
4540
|
});
|
|
4625
|
-
const
|
|
4541
|
+
const p = new Et(r);
|
|
4626
4542
|
Object.defineProperty(r, "auth", {
|
|
4627
|
-
value:
|
|
4543
|
+
value: p,
|
|
4628
4544
|
writable: !1
|
|
4629
4545
|
});
|
|
4630
|
-
const
|
|
4546
|
+
const y = new It(r);
|
|
4631
4547
|
Object.defineProperty(r, "socket", {
|
|
4632
|
-
value:
|
|
4548
|
+
value: y,
|
|
4633
4549
|
writable: !1
|
|
4634
4550
|
});
|
|
4635
|
-
const
|
|
4551
|
+
const w = new Ct(r);
|
|
4636
4552
|
Object.defineProperty(r, "access", {
|
|
4637
|
-
value:
|
|
4553
|
+
value: w,
|
|
4638
4554
|
writable: !1
|
|
4639
4555
|
});
|
|
4640
|
-
const
|
|
4556
|
+
const A = new Mt(r);
|
|
4641
4557
|
Object.defineProperty(r, "system", {
|
|
4642
|
-
value:
|
|
4558
|
+
value: A,
|
|
4643
4559
|
writable: !1
|
|
4644
4560
|
});
|
|
4645
|
-
const
|
|
4561
|
+
const u = new kt(r);
|
|
4646
4562
|
Object.defineProperty(r, "geo", {
|
|
4647
|
-
value:
|
|
4563
|
+
value: u,
|
|
4648
4564
|
writable: !1
|
|
4649
4565
|
});
|
|
4650
|
-
const
|
|
4566
|
+
const s = new Ot(r);
|
|
4651
4567
|
return Object.defineProperty(r, "content", {
|
|
4652
|
-
value:
|
|
4568
|
+
value: s,
|
|
4653
4569
|
writable: !1
|
|
4654
4570
|
}), r;
|
|
4655
4571
|
}
|
|
4656
|
-
var
|
|
4657
|
-
console.log(
|
|
4572
|
+
var Tt = `qik ${vr}`;
|
|
4573
|
+
console.log(Tt);
|
|
4658
4574
|
export {
|
|
4659
4575
|
je as EventDispatcher,
|
|
4660
4576
|
Nt as default
|