@qikdev/sdk 0.1.210 → 0.1.211

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 CHANGED
@@ -9,18 +9,18 @@ function Zr(e) {
9
9
  var r = e.default;
10
10
  if (typeof r == "function") {
11
11
  var a = function t() {
12
- var i = !1;
12
+ var n = !1;
13
13
  try {
14
- i = this instanceof t;
14
+ n = this instanceof t;
15
15
  } catch {
16
16
  }
17
- return i ? Reflect.construct(r, arguments, this.constructor) : r.apply(this, arguments);
17
+ return n ? Reflect.construct(r, arguments, this.constructor) : r.apply(this, arguments);
18
18
  };
19
19
  a.prototype = r.prototype;
20
20
  } else a = {};
21
21
  return Object.defineProperty(a, "__esModule", { value: !0 }), Object.keys(e).forEach(function(t) {
22
- var i = Object.getOwnPropertyDescriptor(e, t);
23
- Object.defineProperty(a, t, i.get ? i : {
22
+ var n = Object.getOwnPropertyDescriptor(e, t);
23
+ Object.defineProperty(a, t, n.get ? n : {
24
24
  enumerable: !0,
25
25
  get: function() {
26
26
  return e[t];
@@ -38,18 +38,18 @@ function Qr() {
38
38
  var r = {}, a = Symbol("test"), t = Object(a);
39
39
  if (typeof a == "string" || Object.prototype.toString.call(a) !== "[object Symbol]" || Object.prototype.toString.call(t) !== "[object Symbol]")
40
40
  return !1;
41
- var i = 42;
42
- r[a] = i;
41
+ var n = 42;
42
+ r[a] = n;
43
43
  for (a in r)
44
44
  return !1;
45
45
  if (typeof Object.keys == "function" && Object.keys(r).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(r).length !== 0)
46
46
  return !1;
47
- var s = Object.getOwnPropertySymbols(r);
48
- if (s.length !== 1 || s[0] !== a || !Object.prototype.propertyIsEnumerable.call(r, a))
47
+ var o = Object.getOwnPropertySymbols(r);
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 f = Object.getOwnPropertyDescriptor(r, a);
52
- if (f.value !== i || f.enumerable !== !0)
51
+ var p = Object.getOwnPropertyDescriptor(r, a);
52
+ if (p.value !== n || p.enumerable !== !0)
53
53
  return !1;
54
54
  }
55
55
  return !0;
@@ -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]", i = function(d, m) {
72
- for (var S = [], A = 0; A < d.length; A += 1)
73
- S[A] = d[A];
74
- for (var P = 0; P < m.length; P += 1)
75
- S[P + d.length] = m[P];
71
+ var e = "Function.prototype.bind called on incompatible ", r = Object.prototype.toString, a = Math.max, t = "[object Function]", n = function(m, y) {
72
+ for (var S = [], b = 0; b < m.length; b += 1)
73
+ S[b] = m[b];
74
+ for (var E = 0; E < y.length; E += 1)
75
+ S[E + m.length] = y[E];
76
76
  return S;
77
- }, s = function(d, m) {
78
- for (var S = [], A = m, P = 0; A < d.length; A += 1, P += 1)
79
- S[P] = d[A];
77
+ }, o = function(m, y) {
78
+ for (var S = [], b = y, E = 0; b < m.length; b += 1, E += 1)
79
+ S[E] = m[b];
80
80
  return S;
81
- }, f = function(u, d) {
82
- for (var m = "", S = 0; S < u.length; S += 1)
83
- m += u[S], S + 1 < u.length && (m += d);
84
- return m;
81
+ }, p = function(l, m) {
82
+ for (var y = "", S = 0; S < l.length; S += 1)
83
+ y += l[S], S + 1 < l.length && (y += m);
84
+ return y;
85
85
  };
86
- return Ye = function(d) {
87
- var m = this;
88
- if (typeof m != "function" || r.apply(m) !== t)
89
- throw new TypeError(e + m);
90
- for (var S = s(arguments, 1), A, P = function() {
91
- if (this instanceof A) {
92
- var n = m.apply(
86
+ return Ye = function(m) {
87
+ var y = this;
88
+ if (typeof y != "function" || r.apply(y) !== t)
89
+ throw new TypeError(e + y);
90
+ for (var S = o(arguments, 1), b, E = function() {
91
+ if (this instanceof b) {
92
+ var u = y.apply(
93
93
  this,
94
- i(S, arguments)
94
+ n(S, arguments)
95
95
  );
96
- return Object(n) === n ? n : this;
96
+ return Object(u) === u ? u : this;
97
97
  }
98
- return m.apply(
99
- d,
100
- i(S, arguments)
98
+ return y.apply(
99
+ m,
100
+ n(S, arguments)
101
101
  );
102
- }, v = a(0, m.length - S.length), g = [], x = 0; x < v; x++)
103
- g[x] = "$" + x;
104
- if (A = Function("binder", "return function (" + f(g, ",") + "){ return binder.apply(this,arguments); }")(P), m.prototype) {
105
- var o = function() {
102
+ }, i = a(0, y.length - S.length), s = [], f = 0; f < i; f++)
103
+ s[f] = "$" + f;
104
+ if (b = Function("binder", "return function (" + p(s, ",") + "){ return binder.apply(this,arguments); }")(E), y.prototype) {
105
+ var c = function() {
106
106
  };
107
- o.prototype = m.prototype, A.prototype = new o(), o.prototype = null;
107
+ c.prototype = y.prototype, b.prototype = new c(), c.prototype = null;
108
108
  }
109
- return A;
109
+ return b;
110
110
  }, Ye;
111
111
  }
112
112
  var Xe, Mr;
@@ -116,48 +116,48 @@ function yr() {
116
116
  var e = Xr();
117
117
  return Xe = Function.prototype.bind || e, Xe;
118
118
  }
119
- var er, kr;
119
+ var er, Ir;
120
120
  function et() {
121
- if (kr) return er;
122
- kr = 1;
121
+ if (Ir) return er;
122
+ Ir = 1;
123
123
  var e = yr();
124
124
  return er = e.call(Function.call, Object.prototype.hasOwnProperty), er;
125
125
  }
126
- var rr, Ir;
126
+ var rr, kr;
127
127
  function hr() {
128
- if (Ir) return rr;
129
- Ir = 1;
130
- var e, r = SyntaxError, a = Function, t = TypeError, i = function(F) {
128
+ if (kr) return rr;
129
+ kr = 1;
130
+ var e, r = SyntaxError, a = Function, t = TypeError, n = function(B) {
131
131
  try {
132
- return a('"use strict"; return (' + F + ").constructor;")();
132
+ return a('"use strict"; return (' + B + ").constructor;")();
133
133
  } catch {
134
134
  }
135
- }, s = Object.getOwnPropertyDescriptor;
136
- if (s)
135
+ }, o = Object.getOwnPropertyDescriptor;
136
+ if (o)
137
137
  try {
138
- s({}, "");
138
+ o({}, "");
139
139
  } catch {
140
- s = null;
140
+ o = null;
141
141
  }
142
- var f = function() {
142
+ var p = function() {
143
143
  throw new t();
144
- }, u = s ? (function() {
144
+ }, l = o ? (function() {
145
145
  try {
146
- return arguments.callee, f;
146
+ return arguments.callee, p;
147
147
  } catch {
148
148
  try {
149
- return s(arguments, "callee").get;
149
+ return o(arguments, "callee").get;
150
150
  } catch {
151
- return f;
151
+ return p;
152
152
  }
153
153
  }
154
- })() : f, d = Yr()(), m = Object.getPrototypeOf || function(F) {
155
- return F.__proto__;
156
- }, S = {}, A = typeof Uint8Array > "u" ? e : m(Uint8Array), P = {
154
+ })() : p, m = Yr()(), y = Object.getPrototypeOf || function(B) {
155
+ return B.__proto__;
156
+ }, S = {}, b = typeof Uint8Array > "u" ? e : y(Uint8Array), E = {
157
157
  "%AggregateError%": typeof AggregateError > "u" ? e : AggregateError,
158
158
  "%Array%": Array,
159
159
  "%ArrayBuffer%": typeof ArrayBuffer > "u" ? e : ArrayBuffer,
160
- "%ArrayIteratorPrototype%": d ? m([][Symbol.iterator]()) : e,
160
+ "%ArrayIteratorPrototype%": m ? y([][Symbol.iterator]()) : e,
161
161
  "%AsyncFromSyncIteratorPrototype%": e,
162
162
  "%AsyncFunction%": S,
163
163
  "%AsyncGenerator%": S,
@@ -186,10 +186,10 @@ function hr() {
186
186
  "%Int32Array%": typeof Int32Array > "u" ? e : Int32Array,
187
187
  "%isFinite%": isFinite,
188
188
  "%isNaN%": isNaN,
189
- "%IteratorPrototype%": d ? m(m([][Symbol.iterator]())) : e,
189
+ "%IteratorPrototype%": m ? 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" || !d ? e : m((/* @__PURE__ */ new Map())[Symbol.iterator]()),
192
+ "%MapIteratorPrototype%": typeof Map > "u" || !m ? 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" || !d ? e : m((/* @__PURE__ */ new Set())[Symbol.iterator]()),
205
+ "%SetIteratorPrototype%": typeof Set > "u" || !m ? e : y((/* @__PURE__ */ new Set())[Symbol.iterator]()),
206
206
  "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? e : SharedArrayBuffer,
207
207
  "%String%": String,
208
- "%StringIteratorPrototype%": d ? m(""[Symbol.iterator]()) : e,
209
- "%Symbol%": d ? Symbol : e,
208
+ "%StringIteratorPrototype%": m ? y(""[Symbol.iterator]()) : e,
209
+ "%Symbol%": m ? Symbol : e,
210
210
  "%SyntaxError%": r,
211
- "%ThrowTypeError%": u,
212
- "%TypedArray%": A,
211
+ "%ThrowTypeError%": l,
212
+ "%TypedArray%": b,
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
- }, v = function F(N) {
223
- var _;
224
- if (N === "%AsyncFunction%")
225
- _ = i("async function () {}");
226
- else if (N === "%GeneratorFunction%")
227
- _ = i("function* () {}");
228
- else if (N === "%AsyncGeneratorFunction%")
229
- _ = i("async function* () {}");
230
- else if (N === "%AsyncGenerator%") {
231
- var L = F("%AsyncGeneratorFunction%");
232
- L && (_ = L.prototype);
233
- } else if (N === "%AsyncIteratorPrototype%") {
234
- var B = F("%AsyncGenerator%");
235
- B && (_ = m(B.prototype));
222
+ }, i = function B(F) {
223
+ var $;
224
+ if (F === "%AsyncFunction%")
225
+ $ = n("async function () {}");
226
+ else if (F === "%GeneratorFunction%")
227
+ $ = n("function* () {}");
228
+ else if (F === "%AsyncGeneratorFunction%")
229
+ $ = n("async function* () {}");
230
+ else if (F === "%AsyncGenerator%") {
231
+ var L = B("%AsyncGeneratorFunction%");
232
+ L && ($ = L.prototype);
233
+ } else if (F === "%AsyncIteratorPrototype%") {
234
+ var R = B("%AsyncGenerator%");
235
+ R && ($ = y(R.prototype));
236
236
  }
237
- return P[N] = _, _;
238
- }, g = {
237
+ return E[F] = $, $;
238
+ }, s = {
239
239
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
240
240
  "%ArrayPrototype%": ["Array", "prototype"],
241
241
  "%ArrayProto_entries%": ["Array", "prototype", "entries"],
@@ -287,88 +287,88 @@ function hr() {
287
287
  "%URIErrorPrototype%": ["URIError", "prototype"],
288
288
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
289
289
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
290
- }, x = yr(), o = et(), n = x.call(Function.call, Array.prototype.concat), c = x.call(Function.apply, Array.prototype.splice), y = x.call(Function.call, String.prototype.replace), b = x.call(Function.call, String.prototype.slice), E = x.call(Function.call, RegExp.prototype.exec), I = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, R = /\\(\\)?/g, k = function(N) {
291
- var _ = b(N, 0, 1), L = b(N, -1);
292
- if (_ === "%" && L !== "%")
290
+ }, f = yr(), c = et(), u = f.call(Function.call, Array.prototype.concat), v = f.call(Function.apply, Array.prototype.splice), g = f.call(Function.call, String.prototype.replace), P = f.call(Function.call, String.prototype.slice), x = f.call(Function.call, RegExp.prototype.exec), I = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, k = /\\(\\)?/g, O = function(F) {
291
+ var $ = P(F, 0, 1), L = P(F, -1);
292
+ if ($ === "%" && L !== "%")
293
293
  throw new r("invalid intrinsic syntax, expected closing `%`");
294
- if (L === "%" && _ !== "%")
294
+ if (L === "%" && $ !== "%")
295
295
  throw new r("invalid intrinsic syntax, expected opening `%`");
296
- var B = [];
297
- return y(N, I, function($, W, T, z) {
298
- B[B.length] = T ? y(z, R, "$1") : W || $;
299
- }), B;
300
- }, j = function(N, _) {
301
- var L = N, B;
302
- if (o(g, L) && (B = g[L], L = "%" + B[0] + "%"), o(P, L)) {
303
- var $ = P[L];
304
- if ($ === S && ($ = v(L)), typeof $ > "u" && !_)
305
- throw new t("intrinsic " + N + " exists, but is not available. Please file an issue!");
296
+ var R = [];
297
+ return g(F, I, function(_, z, N, Z) {
298
+ R[R.length] = N ? g(Z, k, "$1") : z || _;
299
+ }), R;
300
+ }, G = function(F, $) {
301
+ var L = F, R;
302
+ if (c(s, L) && (R = s[L], L = "%" + R[0] + "%"), c(E, L)) {
303
+ var _ = E[L];
304
+ if (_ === S && (_ = i(L)), typeof _ > "u" && !$)
305
+ throw new t("intrinsic " + F + " exists, but is not available. Please file an issue!");
306
306
  return {
307
- alias: B,
307
+ alias: R,
308
308
  name: L,
309
- value: $
309
+ value: _
310
310
  };
311
311
  }
312
- throw new r("intrinsic " + N + " does not exist!");
312
+ throw new r("intrinsic " + F + " does not exist!");
313
313
  };
314
- return rr = function(N, _) {
315
- if (typeof N != "string" || N.length === 0)
314
+ return rr = function(F, $) {
315
+ if (typeof F != "string" || F.length === 0)
316
316
  throw new t("intrinsic name must be a non-empty string");
317
- if (arguments.length > 1 && typeof _ != "boolean")
317
+ if (arguments.length > 1 && typeof $ != "boolean")
318
318
  throw new t('"allowMissing" argument must be a boolean');
319
- if (E(/^%?[^%]*%?$/, N) === null)
319
+ if (x(/^%?[^%]*%?$/, F) === null)
320
320
  throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
321
- var L = k(N), B = L.length > 0 ? L[0] : "", $ = j("%" + B + "%", _), W = $.name, T = $.value, z = !1, H = $.alias;
322
- H && (B = H[0], c(L, n([0, 1], H)));
323
- for (var X = 1, ee = !0; X < L.length; X += 1) {
324
- var K = L[X], ie = b(K, 0, 1), te = b(K, -1);
325
- if ((ie === '"' || ie === "'" || ie === "`" || te === '"' || te === "'" || te === "`") && ie !== te)
321
+ var L = O(F), R = L.length > 0 ? L[0] : "", _ = G("%" + R + "%", $), z = _.name, N = _.value, Z = !1, Q = _.alias;
322
+ Q && (R = Q[0], v(L, u([0, 1], Q)));
323
+ for (var ne = 1, X = !0; ne < L.length; ne += 1) {
324
+ var W = L[ne], ie = P(W, 0, 1), re = P(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 ((K === "constructor" || !ee) && (z = !0), B += "." + K, W = "%" + B + "%", o(P, W))
328
- T = P[W];
329
- else if (T != null) {
330
- if (!(K in T)) {
331
- if (!_)
332
- throw new t("base intrinsic for " + N + " exists, but the property is not available.");
327
+ if ((W === "constructor" || !X) && (Z = !0), R += "." + W, z = "%" + R + "%", c(E, z))
328
+ N = E[z];
329
+ else if (N != null) {
330
+ if (!(W in N)) {
331
+ if (!$)
332
+ throw new t("base intrinsic for " + F + " exists, but the property is not available.");
333
333
  return;
334
334
  }
335
- if (s && X + 1 >= L.length) {
336
- var ae = s(T, K);
337
- ee = !!ae, ee && "get" in ae && !("originalValue" in ae.get) ? T = ae.get : T = T[K];
335
+ if (o && ne + 1 >= L.length) {
336
+ var te = o(N, W);
337
+ X = !!te, X && "get" in te && !("originalValue" in te.get) ? N = te.get : N = N[W];
338
338
  } else
339
- ee = o(T, K), T = T[K];
340
- ee && !z && (P[W] = T);
339
+ X = c(N, W), N = N[W];
340
+ X && !Z && (E[z] = N);
341
341
  }
342
342
  }
343
- return T;
343
+ return N;
344
344
  }, rr;
345
345
  }
346
346
  var tr = { exports: {} }, Tr;
347
347
  function rt() {
348
348
  return Tr || (Tr = 1, (function(e) {
349
- var r = yr(), a = hr(), t = a("%Function.prototype.apply%"), i = a("%Function.prototype.call%"), s = a("%Reflect.apply%", !0) || r.call(i, t), f = a("%Object.getOwnPropertyDescriptor%", !0), u = a("%Object.defineProperty%", !0), d = a("%Math.max%");
350
- if (u)
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), p = a("%Object.getOwnPropertyDescriptor%", !0), l = a("%Object.defineProperty%", !0), m = a("%Math.max%");
350
+ if (l)
351
351
  try {
352
- u({}, "a", { value: 1 });
352
+ l({}, "a", { value: 1 });
353
353
  } catch {
354
- u = null;
354
+ l = null;
355
355
  }
356
- e.exports = function(A) {
357
- var P = s(r, i, arguments);
358
- if (f && u) {
359
- var v = f(P, "length");
360
- v.configurable && u(
361
- P,
356
+ e.exports = function(b) {
357
+ var E = o(r, n, arguments);
358
+ if (p && l) {
359
+ var i = p(E, "length");
360
+ i.configurable && l(
361
+ E,
362
362
  "length",
363
- { value: 1 + d(0, A.length - (arguments.length - 1)) }
363
+ { value: 1 + m(0, b.length - (arguments.length - 1)) }
364
364
  );
365
365
  }
366
- return P;
366
+ return E;
367
367
  };
368
- var m = function() {
369
- return s(r, t, arguments);
368
+ var y = function() {
369
+ return o(r, t, arguments);
370
370
  };
371
- u ? u(e.exports, "apply", { value: m }) : e.exports.apply = m;
371
+ l ? l(e.exports, "apply", { value: y }) : e.exports.apply = y;
372
372
  })(tr)), tr.exports;
373
373
  }
374
374
  var ar, Rr;
@@ -376,9 +376,9 @@ function tt() {
376
376
  if (Rr) return ar;
377
377
  Rr = 1;
378
378
  var e = hr(), r = rt(), a = r(e("String.prototype.indexOf"));
379
- return ar = function(i, s) {
380
- var f = e(i, !!s);
381
- return typeof f == "function" && a(i, ".prototype.") > -1 ? r(f) : f;
379
+ return ar = function(n, o) {
380
+ var p = e(n, !!o);
381
+ return typeof p == "function" && a(n, ".prototype.") > -1 ? r(p) : p;
382
382
  }, ar;
383
383
  }
384
384
  const at = {}, nt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -389,353 +389,353 @@ var nr, _r;
389
389
  function ot() {
390
390
  if (_r) return nr;
391
391
  _r = 1;
392
- var e = typeof Map == "function" && Map.prototype, r = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, a = e && r && typeof r.get == "function" ? r.get : null, t = e && Map.prototype.forEach, i = typeof Set == "function" && Set.prototype, s = Object.getOwnPropertyDescriptor && i ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, f = i && s && typeof s.get == "function" ? s.get : null, u = i && Set.prototype.forEach, d = typeof WeakMap == "function" && WeakMap.prototype, m = d ? WeakMap.prototype.has : null, S = typeof WeakSet == "function" && WeakSet.prototype, A = S ? WeakSet.prototype.has : null, P = typeof WeakRef == "function" && WeakRef.prototype, v = P ? WeakRef.prototype.deref : null, g = Boolean.prototype.valueOf, x = Object.prototype.toString, o = Function.prototype.toString, n = String.prototype.match, c = String.prototype.slice, y = String.prototype.replace, b = String.prototype.toUpperCase, E = String.prototype.toLowerCase, I = RegExp.prototype.test, R = Array.prototype.concat, k = Array.prototype.join, j = Array.prototype.slice, F = Math.floor, N = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, _ = Object.getOwnPropertySymbols, L = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, B = typeof Symbol == "function" && typeof Symbol.iterator == "object", $ = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === B || !0) ? Symbol.toStringTag : null, W = Object.prototype.propertyIsEnumerable, T = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(p) {
393
- return p.__proto__;
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, p = n && o && typeof o.get == "function" ? o.get : null, l = n && Set.prototype.forEach, m = typeof WeakMap == "function" && WeakMap.prototype, y = m ? WeakMap.prototype.has : null, S = typeof WeakSet == "function" && WeakSet.prototype, b = S ? WeakSet.prototype.has : null, E = typeof WeakRef == "function" && WeakRef.prototype, i = E ? WeakRef.prototype.deref : null, s = Boolean.prototype.valueOf, f = Object.prototype.toString, c = Function.prototype.toString, u = String.prototype.match, v = String.prototype.slice, g = String.prototype.replace, P = String.prototype.toUpperCase, x = String.prototype.toLowerCase, I = RegExp.prototype.test, k = Array.prototype.concat, O = Array.prototype.join, G = Array.prototype.slice, B = Math.floor, F = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, $ = Object.getOwnPropertySymbols, L = 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, N = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(h) {
393
+ return h.__proto__;
394
394
  } : null);
395
- function z(p, h) {
396
- if (p === 1 / 0 || p === -1 / 0 || p !== p || p && p > -1e3 && p < 1e3 || I.call(/e/, h))
397
- return h;
398
- var D = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
399
- if (typeof p == "number") {
400
- var l = p < 0 ? -F(-p) : F(p);
401
- if (l !== p) {
402
- var w = String(l), C = c.call(h, w.length + 1);
403
- return y.call(w, D, "$&_") + "." + y.call(y.call(C, /([0-9]{3})/g, "$&_"), /_$/, "");
395
+ function Z(h, A) {
396
+ if (h === 1 / 0 || h === -1 / 0 || h !== h || h && h > -1e3 && h < 1e3 || I.call(/e/, A))
397
+ return A;
398
+ var j = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
399
+ if (typeof h == "number") {
400
+ var d = h < 0 ? -B(-h) : B(h);
401
+ if (d !== h) {
402
+ var w = String(d), C = v.call(A, w.length + 1);
403
+ return g.call(w, j, "$&_") + "." + g.call(g.call(C, /([0-9]{3})/g, "$&_"), /_$/, "");
404
404
  }
405
405
  }
406
- return y.call(h, D, "$&_");
406
+ return g.call(A, j, "$&_");
407
407
  }
408
- var H = it, X = H.custom, ee = se(X) ? X : null;
409
- nr = function p(h, D, l, w) {
410
- var C = D || {};
411
- if (Z(C, "quoteStyle") && C.quoteStyle !== "single" && C.quoteStyle !== "double")
408
+ var Q = it, ne = Q.custom, X = se(ne) ? ne : null;
409
+ nr = function h(A, j, d, w) {
410
+ var C = j || {};
411
+ if (J(C, "quoteStyle") && C.quoteStyle !== "single" && C.quoteStyle !== "double")
412
412
  throw new TypeError('option "quoteStyle" must be "single" or "double"');
413
- if (Z(C, "maxStringLength") && (typeof C.maxStringLength == "number" ? C.maxStringLength < 0 && C.maxStringLength !== 1 / 0 : C.maxStringLength !== null))
413
+ if (J(C, "maxStringLength") && (typeof C.maxStringLength == "number" ? C.maxStringLength < 0 && C.maxStringLength !== 1 / 0 : C.maxStringLength !== null))
414
414
  throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
415
- var G = Z(C, "customInspect") ? C.customInspect : !0;
416
- if (typeof G != "boolean" && G !== "symbol")
415
+ var D = J(C, "customInspect") ? C.customInspect : !0;
416
+ if (typeof D != "boolean" && D !== "symbol")
417
417
  throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
418
- if (Z(C, "indent") && C.indent !== null && C.indent !== " " && !(parseInt(C.indent, 10) === C.indent && C.indent > 0))
418
+ if (J(C, "indent") && C.indent !== null && C.indent !== " " && !(parseInt(C.indent, 10) === C.indent && C.indent > 0))
419
419
  throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
420
- if (Z(C, "numericSeparator") && typeof C.numericSeparator != "boolean")
420
+ if (J(C, "numericSeparator") && typeof C.numericSeparator != "boolean")
421
421
  throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
422
- var ne = C.numericSeparator;
423
- if (typeof h > "u")
422
+ var ae = C.numericSeparator;
423
+ if (typeof A > "u")
424
424
  return "undefined";
425
- if (h === null)
425
+ if (A === null)
426
426
  return "null";
427
- if (typeof h == "boolean")
428
- return h ? "true" : "false";
429
- if (typeof h == "string")
430
- return Ce(h, C);
431
- if (typeof h == "number") {
432
- if (h === 0)
433
- return 1 / 0 / h > 0 ? "0" : "-0";
434
- var J = String(h);
435
- return ne ? z(h, J) : J;
427
+ if (typeof A == "boolean")
428
+ return A ? "true" : "false";
429
+ if (typeof A == "string")
430
+ return Ce(A, C);
431
+ if (typeof A == "number") {
432
+ if (A === 0)
433
+ return 1 / 0 / A > 0 ? "0" : "-0";
434
+ var K = String(A);
435
+ return ae ? Z(A, K) : K;
436
436
  }
437
- if (typeof h == "bigint") {
438
- var O = String(h) + "n";
439
- return ne ? z(h, O) : O;
437
+ if (typeof A == "bigint") {
438
+ var M = String(A) + "n";
439
+ return ae ? Z(A, M) : M;
440
440
  }
441
441
  var U = typeof C.depth > "u" ? 5 : C.depth;
442
- if (typeof l > "u" && (l = 0), l >= U && U > 0 && typeof h == "object")
443
- return te(h) ? "[Array]" : "[Object]";
444
- var V = Le(C, l);
442
+ if (typeof d > "u" && (d = 0), d >= U && U > 0 && typeof A == "object")
443
+ return re(A) ? "[Array]" : "[Object]";
444
+ var V = Le(C, d);
445
445
  if (typeof w > "u")
446
446
  w = [];
447
- else if (Pe(w, h) >= 0)
447
+ else if (Pe(w, A) >= 0)
448
448
  return "[Circular]";
449
- function q(Me, Ge, Jr) {
450
- if (Ge && (w = j.call(w), w.push(Ge)), Jr) {
449
+ function H(Me, Ge, Jr) {
450
+ if (Ge && (w = G.call(w), w.push(Ge)), Jr) {
451
451
  var Pr = {
452
452
  depth: C.depth
453
453
  };
454
- return Z(C, "quoteStyle") && (Pr.quoteStyle = C.quoteStyle), p(Me, Pr, l + 1, w);
454
+ return J(C, "quoteStyle") && (Pr.quoteStyle = C.quoteStyle), h(Me, Pr, d + 1, w);
455
455
  }
456
- return p(Me, C, l + 1, w);
456
+ return h(Me, C, d + 1, w);
457
457
  }
458
- if (typeof h == "function" && !ce(h)) {
459
- var Y = ke(h), we = ge(h, q);
460
- return "[Function" + (Y ? ": " + Y : " (anonymous)") + "]" + (we.length > 0 ? " { " + k.call(we, ", ") + " }" : "");
458
+ if (typeof A == "function" && !ce(A)) {
459
+ var Y = Ie(A), we = ge(A, H);
460
+ return "[Function" + (Y ? ": " + Y : " (anonymous)") + "]" + (we.length > 0 ? " { " + O.call(we, ", ") + " }" : "");
461
461
  }
462
- if (se(h)) {
463
- var Ar = B ? y.call(String(h), /^(Symbol\(.*\))_[^)]*$/, "$1") : L.call(h);
464
- return typeof h == "object" && !B ? le(Ar) : Ar;
462
+ if (se(A)) {
463
+ var Ar = R ? g.call(String(A), /^(Symbol\(.*\))_[^)]*$/, "$1") : L.call(A);
464
+ return typeof A == "object" && !R ? le(Ar) : Ar;
465
465
  }
466
- if (_e(h)) {
467
- for (var Fe = "<" + E.call(String(h.nodeName)), ze = h.attributes || [], Be = 0; Be < ze.length; Be++)
468
- Fe += " " + ze[Be].name + "=" + K(ie(ze[Be].value), "double", C);
469
- return Fe += ">", h.childNodes && h.childNodes.length && (Fe += "..."), Fe += "</" + E.call(String(h.nodeName)) + ">", Fe;
466
+ if (_e(A)) {
467
+ for (var Fe = "<" + x.call(String(A.nodeName)), ze = A.attributes || [], Be = 0; Be < ze.length; Be++)
468
+ Fe += " " + ze[Be].name + "=" + W(ie(ze[Be].value), "double", C);
469
+ return Fe += ">", A.childNodes && A.childNodes.length && (Fe += "..."), Fe += "</" + x.call(String(A.nodeName)) + ">", Fe;
470
470
  }
471
- if (te(h)) {
472
- if (h.length === 0)
471
+ if (re(A)) {
472
+ if (A.length === 0)
473
473
  return "[]";
474
- var We = ge(h, q);
475
- return V && !Oe(We) ? "[" + he(We, V) + "]" : "[ " + k.call(We, ", ") + " ]";
474
+ var We = ge(A, H);
475
+ return V && !Oe(We) ? "[" + he(We, V) + "]" : "[ " + O.call(We, ", ") + " ]";
476
476
  }
477
- if (ue(h)) {
478
- var Ke = ge(h, q);
479
- return !("cause" in Error.prototype) && "cause" in h && !W.call(h, "cause") ? "{ [" + String(h) + "] " + k.call(R.call("[cause]: " + q(h.cause), Ke), ", ") + " }" : Ke.length === 0 ? "[" + String(h) + "]" : "{ [" + String(h) + "] " + k.call(Ke, ", ") + " }";
477
+ if (ue(A)) {
478
+ var Ke = ge(A, H);
479
+ return !("cause" in Error.prototype) && "cause" in A && !z.call(A, "cause") ? "{ [" + String(A) + "] " + O.call(k.call("[cause]: " + H(A.cause), Ke), ", ") + " }" : Ke.length === 0 ? "[" + String(A) + "]" : "{ [" + String(A) + "] " + O.call(Ke, ", ") + " }";
480
480
  }
481
- if (typeof h == "object" && G) {
482
- if (ee && typeof h[ee] == "function" && H)
483
- return H(h, { depth: U - l });
484
- if (G !== "symbol" && typeof h.inspect == "function")
485
- return h.inspect();
481
+ if (typeof A == "object" && D) {
482
+ if (X && typeof A[X] == "function" && Q)
483
+ return Q(A, { depth: U - d });
484
+ if (D !== "symbol" && typeof A.inspect == "function")
485
+ return A.inspect();
486
486
  }
487
- if (Ie(h)) {
487
+ if (ke(A)) {
488
488
  var br = [];
489
- return t.call(h, function(Me, Ge) {
490
- br.push(q(Ge, h, !0) + " => " + q(Me, h));
491
- }), Se("Map", a.call(h), br, V);
489
+ return t.call(A, function(Me, Ge) {
490
+ br.push(H(Ge, A, !0) + " => " + H(Me, A));
491
+ }), Se("Map", a.call(A), br, V);
492
492
  }
493
- if (Te(h)) {
493
+ if (Te(A)) {
494
494
  var Sr = [];
495
- return u.call(h, function(Me) {
496
- Sr.push(q(Me, h));
497
- }), Se("Set", f.call(h), Sr, V);
495
+ return l.call(A, function(Me) {
496
+ Sr.push(H(Me, A));
497
+ }), Se("Set", p.call(A), Sr, V);
498
498
  }
499
- if (me(h))
499
+ if (me(A))
500
500
  return fe("WeakMap");
501
- if (Re(h))
501
+ if (Re(A))
502
502
  return fe("WeakSet");
503
- if (xe(h))
503
+ if (xe(A))
504
504
  return fe("WeakRef");
505
- if (de(h))
506
- return le(q(Number(h)));
507
- if (ye(h))
508
- return le(q(N.call(h)));
509
- if (pe(h))
510
- return le(g.call(h));
511
- if (oe(h))
512
- return le(q(String(h)));
513
- if (!ae(h) && !ce(h)) {
514
- var He = ge(h, q), wr = T ? T(h) === Object.prototype : h instanceof Object || h.constructor === Object, Je = h instanceof Object ? "" : "null prototype", Er = !wr && $ && Object(h) === h && $ in h ? c.call(re(h), 8, -1) : Je ? "Object" : "", Hr = wr || typeof h.constructor != "function" ? "" : h.constructor.name ? h.constructor.name + " " : "", qe = Hr + (Er || Je ? "[" + k.call(R.call([], Er || [], Je || []), ": ") + "] " : "");
515
- return He.length === 0 ? qe + "{}" : V ? qe + "{" + he(He, V) + "}" : qe + "{ " + k.call(He, ", ") + " }";
505
+ if (de(A))
506
+ return le(H(Number(A)));
507
+ if (ye(A))
508
+ return le(H(F.call(A)));
509
+ if (pe(A))
510
+ return le(s.call(A));
511
+ if (oe(A))
512
+ return le(H(String(A)));
513
+ if (!te(A) && !ce(A)) {
514
+ var He = ge(A, H), wr = N ? N(A) === Object.prototype : A instanceof Object || A.constructor === Object, Je = A instanceof Object ? "" : "null prototype", Er = !wr && _ && Object(A) === A && _ in A ? v.call(ee(A), 8, -1) : Je ? "Object" : "", Hr = wr || typeof A.constructor != "function" ? "" : A.constructor.name ? A.constructor.name + " " : "", qe = Hr + (Er || Je ? "[" + O.call(k.call([], Er || [], Je || []), ": ") + "] " : "");
515
+ return He.length === 0 ? qe + "{}" : V ? qe + "{" + he(He, V) + "}" : qe + "{ " + O.call(He, ", ") + " }";
516
516
  }
517
- return String(h);
517
+ return String(A);
518
518
  };
519
- function K(p, h, D) {
520
- var l = (D.quoteStyle || h) === "double" ? '"' : "'";
521
- return l + p + l;
519
+ function W(h, A, j) {
520
+ var d = (j.quoteStyle || A) === "double" ? '"' : "'";
521
+ return d + h + d;
522
522
  }
523
- function ie(p) {
524
- return y.call(String(p), /"/g, "&quot;");
523
+ function ie(h) {
524
+ return g.call(String(h), /"/g, "&quot;");
525
525
  }
526
- function te(p) {
527
- return re(p) === "[object Array]" && (!$ || !(typeof p == "object" && $ in p));
526
+ function re(h) {
527
+ return ee(h) === "[object Array]" && (!_ || !(typeof h == "object" && _ in h));
528
528
  }
529
- function ae(p) {
530
- return re(p) === "[object Date]" && (!$ || !(typeof p == "object" && $ in p));
529
+ function te(h) {
530
+ return ee(h) === "[object Date]" && (!_ || !(typeof h == "object" && _ in h));
531
531
  }
532
- function ce(p) {
533
- return re(p) === "[object RegExp]" && (!$ || !(typeof p == "object" && $ in p));
532
+ function ce(h) {
533
+ return ee(h) === "[object RegExp]" && (!_ || !(typeof h == "object" && _ in h));
534
534
  }
535
- function ue(p) {
536
- return re(p) === "[object Error]" && (!$ || !(typeof p == "object" && $ in p));
535
+ function ue(h) {
536
+ return ee(h) === "[object Error]" && (!_ || !(typeof h == "object" && _ in h));
537
537
  }
538
- function oe(p) {
539
- return re(p) === "[object String]" && (!$ || !(typeof p == "object" && $ in p));
538
+ function oe(h) {
539
+ return ee(h) === "[object String]" && (!_ || !(typeof h == "object" && _ in h));
540
540
  }
541
- function de(p) {
542
- return re(p) === "[object Number]" && (!$ || !(typeof p == "object" && $ in p));
541
+ function de(h) {
542
+ return ee(h) === "[object Number]" && (!_ || !(typeof h == "object" && _ in h));
543
543
  }
544
- function pe(p) {
545
- return re(p) === "[object Boolean]" && (!$ || !(typeof p == "object" && $ in p));
544
+ function pe(h) {
545
+ return ee(h) === "[object Boolean]" && (!_ || !(typeof h == "object" && _ in h));
546
546
  }
547
- function se(p) {
548
- if (B)
549
- return p && typeof p == "object" && p instanceof Symbol;
550
- if (typeof p == "symbol")
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 (!p || typeof p != "object" || !L)
552
+ if (!h || typeof h != "object" || !L)
553
553
  return !1;
554
554
  try {
555
- return L.call(p), !0;
555
+ return L.call(h), !0;
556
556
  } catch {
557
557
  }
558
558
  return !1;
559
559
  }
560
- function ye(p) {
561
- if (!p || typeof p != "object" || !N)
560
+ function ye(h) {
561
+ if (!h || typeof h != "object" || !F)
562
562
  return !1;
563
563
  try {
564
- return N.call(p), !0;
564
+ return F.call(h), !0;
565
565
  } catch {
566
566
  }
567
567
  return !1;
568
568
  }
569
- var be = Object.prototype.hasOwnProperty || function(p) {
570
- return p in this;
569
+ var be = Object.prototype.hasOwnProperty || function(h) {
570
+ return h in this;
571
571
  };
572
- function Z(p, h) {
573
- return be.call(p, h);
574
- }
575
- function re(p) {
576
- return x.call(p);
577
- }
578
- function ke(p) {
579
- if (p.name)
580
- return p.name;
581
- var h = n.call(o.call(p), /^function\s*([\w$]+)/);
582
- return h ? h[1] : null;
583
- }
584
- function Pe(p, h) {
585
- if (p.indexOf)
586
- return p.indexOf(h);
587
- for (var D = 0, l = p.length; D < l; D++)
588
- if (p[D] === h)
589
- return D;
572
+ function J(h, A) {
573
+ return be.call(h, A);
574
+ }
575
+ function ee(h) {
576
+ return f.call(h);
577
+ }
578
+ function Ie(h) {
579
+ if (h.name)
580
+ return h.name;
581
+ var A = u.call(c.call(h), /^function\s*([\w$]+)/);
582
+ return A ? A[1] : null;
583
+ }
584
+ function Pe(h, A) {
585
+ if (h.indexOf)
586
+ return h.indexOf(A);
587
+ for (var j = 0, d = h.length; j < d; j++)
588
+ if (h[j] === A)
589
+ return j;
590
590
  return -1;
591
591
  }
592
- function Ie(p) {
593
- if (!a || !p || typeof p != "object")
592
+ function ke(h) {
593
+ if (!a || !h || typeof h != "object")
594
594
  return !1;
595
595
  try {
596
- a.call(p);
596
+ a.call(h);
597
597
  try {
598
- f.call(p);
598
+ p.call(h);
599
599
  } catch {
600
600
  return !0;
601
601
  }
602
- return p instanceof Map;
602
+ return h instanceof Map;
603
603
  } catch {
604
604
  }
605
605
  return !1;
606
606
  }
607
- function me(p) {
608
- if (!m || !p || typeof p != "object")
607
+ function me(h) {
608
+ if (!y || !h || typeof h != "object")
609
609
  return !1;
610
610
  try {
611
- m.call(p, m);
611
+ y.call(h, y);
612
612
  try {
613
- A.call(p, A);
613
+ b.call(h, b);
614
614
  } catch {
615
615
  return !0;
616
616
  }
617
- return p instanceof WeakMap;
617
+ return h instanceof WeakMap;
618
618
  } catch {
619
619
  }
620
620
  return !1;
621
621
  }
622
- function xe(p) {
623
- if (!v || !p || typeof p != "object")
622
+ function xe(h) {
623
+ if (!i || !h || typeof h != "object")
624
624
  return !1;
625
625
  try {
626
- return v.call(p), !0;
626
+ return i.call(h), !0;
627
627
  } catch {
628
628
  }
629
629
  return !1;
630
630
  }
631
- function Te(p) {
632
- if (!f || !p || typeof p != "object")
631
+ function Te(h) {
632
+ if (!p || !h || typeof h != "object")
633
633
  return !1;
634
634
  try {
635
- f.call(p);
635
+ p.call(h);
636
636
  try {
637
- a.call(p);
637
+ a.call(h);
638
638
  } catch {
639
639
  return !0;
640
640
  }
641
- return p instanceof Set;
641
+ return h instanceof Set;
642
642
  } catch {
643
643
  }
644
644
  return !1;
645
645
  }
646
- function Re(p) {
647
- if (!A || !p || typeof p != "object")
646
+ function Re(h) {
647
+ if (!b || !h || typeof h != "object")
648
648
  return !1;
649
649
  try {
650
- A.call(p, A);
650
+ b.call(h, b);
651
651
  try {
652
- m.call(p, m);
652
+ y.call(h, y);
653
653
  } catch {
654
654
  return !0;
655
655
  }
656
- return p instanceof WeakSet;
656
+ return h instanceof WeakSet;
657
657
  } catch {
658
658
  }
659
659
  return !1;
660
660
  }
661
- function _e(p) {
662
- return !p || typeof p != "object" ? !1 : typeof HTMLElement < "u" && p instanceof HTMLElement ? !0 : typeof p.nodeName == "string" && typeof p.getAttribute == "function";
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(p, h) {
665
- if (p.length > h.maxStringLength) {
666
- var D = p.length - h.maxStringLength, l = "... " + D + " more character" + (D > 1 ? "s" : "");
667
- return Ce(c.call(p, 0, h.maxStringLength), h) + l;
664
+ function Ce(h, A) {
665
+ if (h.length > A.maxStringLength) {
666
+ var j = h.length - A.maxStringLength, d = "... " + j + " more character" + (j > 1 ? "s" : "");
667
+ return Ce(v.call(h, 0, A.maxStringLength), A) + d;
668
668
  }
669
- var w = y.call(y.call(p, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Ne);
670
- return K(w, "single", h);
669
+ var w = g.call(g.call(h, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Ne);
670
+ return W(w, "single", A);
671
671
  }
672
- function Ne(p) {
673
- var h = p.charCodeAt(0), D = {
672
+ function Ne(h) {
673
+ var A = h.charCodeAt(0), j = {
674
674
  8: "b",
675
675
  9: "t",
676
676
  10: "n",
677
677
  12: "f",
678
678
  13: "r"
679
- }[h];
680
- return D ? "\\" + D : "\\x" + (h < 16 ? "0" : "") + b.call(h.toString(16));
679
+ }[A];
680
+ return j ? "\\" + j : "\\x" + (A < 16 ? "0" : "") + P.call(A.toString(16));
681
681
  }
682
- function le(p) {
683
- return "Object(" + p + ")";
682
+ function le(h) {
683
+ return "Object(" + h + ")";
684
684
  }
685
- function fe(p) {
686
- return p + " { ? }";
685
+ function fe(h) {
686
+ return h + " { ? }";
687
687
  }
688
- function Se(p, h, D, l) {
689
- var w = l ? he(D, l) : k.call(D, ", ");
690
- return p + " (" + h + ") {" + w + "}";
688
+ function Se(h, A, j, d) {
689
+ var w = d ? he(j, d) : O.call(j, ", ");
690
+ return h + " (" + A + ") {" + w + "}";
691
691
  }
692
- function Oe(p) {
693
- for (var h = 0; h < p.length; h++)
694
- if (Pe(p[h], `
692
+ function Oe(h) {
693
+ for (var A = 0; A < h.length; A++)
694
+ if (Pe(h[A], `
695
695
  `) >= 0)
696
696
  return !1;
697
697
  return !0;
698
698
  }
699
- function Le(p, h) {
700
- var D;
701
- if (p.indent === " ")
702
- D = " ";
703
- else if (typeof p.indent == "number" && p.indent > 0)
704
- D = k.call(Array(p.indent + 1), " ");
699
+ function Le(h, A) {
700
+ var j;
701
+ if (h.indent === " ")
702
+ j = " ";
703
+ else if (typeof h.indent == "number" && h.indent > 0)
704
+ j = O.call(Array(h.indent + 1), " ");
705
705
  else
706
706
  return null;
707
707
  return {
708
- base: D,
709
- prev: k.call(Array(h + 1), D)
708
+ base: j,
709
+ prev: O.call(Array(A + 1), j)
710
710
  };
711
711
  }
712
- function he(p, h) {
713
- if (p.length === 0)
712
+ function he(h, A) {
713
+ if (h.length === 0)
714
714
  return "";
715
- var D = `
716
- ` + h.prev + h.base;
717
- return D + k.call(p, "," + D) + `
718
- ` + h.prev;
719
- }
720
- function ge(p, h) {
721
- var D = te(p), l = [];
722
- if (D) {
723
- l.length = p.length;
724
- for (var w = 0; w < p.length; w++)
725
- l[w] = Z(p, w) ? h(p[w], p) : "";
715
+ var j = `
716
+ ` + A.prev + A.base;
717
+ return j + O.call(h, "," + j) + `
718
+ ` + A.prev;
719
+ }
720
+ function ge(h, A) {
721
+ var j = re(h), d = [];
722
+ if (j) {
723
+ d.length = h.length;
724
+ for (var w = 0; w < h.length; w++)
725
+ d[w] = J(h, w) ? A(h[w], h) : "";
726
726
  }
727
- var C = typeof _ == "function" ? _(p) : [], G;
728
- if (B) {
729
- G = {};
730
- for (var ne = 0; ne < C.length; ne++)
731
- G["$" + C[ne]] = C[ne];
727
+ var C = typeof $ == "function" ? $(h) : [], D;
728
+ if (R) {
729
+ D = {};
730
+ for (var ae = 0; ae < C.length; ae++)
731
+ D["$" + C[ae]] = C[ae];
732
732
  }
733
- for (var J in p)
734
- Z(p, J) && (D && String(Number(J)) === J && J < p.length || B && G["$" + J] instanceof Symbol || (I.call(/[^\w$]/, J) ? l.push(h(J, p) + ": " + h(p[J], p)) : l.push(J + ": " + h(p[J], p))));
735
- if (typeof _ == "function")
736
- for (var O = 0; O < C.length; O++)
737
- W.call(p, C[O]) && l.push("[" + h(C[O]) + "]: " + h(p[C[O]], p));
738
- return l;
733
+ for (var K in h)
734
+ J(h, K) && (j && String(Number(K)) === K && K < h.length || R && D["$" + K] instanceof Symbol || (I.call(/[^\w$]/, K) ? d.push(A(K, h) + ": " + A(h[K], h)) : d.push(K + ": " + A(h[K], h))));
735
+ if (typeof $ == "function")
736
+ for (var M = 0; M < C.length; M++)
737
+ z.call(h, C[M]) && d.push("[" + A(C[M]) + "]: " + A(h[C[M]], 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%"), i = e("%WeakMap%", !0), s = e("%Map%", !0), f = r("WeakMap.prototype.get", !0), u = r("WeakMap.prototype.set", !0), d = r("WeakMap.prototype.has", !0), m = r("Map.prototype.get", !0), S = r("Map.prototype.set", !0), A = r("Map.prototype.has", !0), P = function(o, n) {
747
- for (var c = o, y; (y = c.next) !== null; c = y)
748
- if (y.key === n)
749
- return c.next = y.next, y.next = o.next, o.next = y, y;
750
- }, v = function(o, n) {
751
- var c = P(o, n);
752
- return c && c.value;
753
- }, g = function(o, n, c) {
754
- var y = P(o, n);
755
- y ? y.value = c : o.next = {
746
+ var e = hr(), r = tt(), a = /* @__PURE__ */ ot(), t = e("%TypeError%"), n = e("%WeakMap%", !0), o = e("%Map%", !0), p = r("WeakMap.prototype.get", !0), l = r("WeakMap.prototype.set", !0), m = r("WeakMap.prototype.has", !0), y = r("Map.prototype.get", !0), S = r("Map.prototype.set", !0), b = r("Map.prototype.has", !0), E = function(c, u) {
747
+ for (var v = c, g; (g = v.next) !== null; v = g)
748
+ if (g.key === u)
749
+ return v.next = g.next, g.next = c.next, c.next = g, g;
750
+ }, i = function(c, u) {
751
+ var v = E(c, u);
752
+ return v && v.value;
753
+ }, s = function(c, u, v) {
754
+ var g = E(c, u);
755
+ g ? g.value = v : c.next = {
756
756
  // eslint-disable-line no-param-reassign
757
- key: n,
758
- next: o.next,
759
- value: c
757
+ key: u,
758
+ next: c.next,
759
+ value: v
760
760
  };
761
- }, x = function(o, n) {
762
- return !!P(o, n);
761
+ }, f = function(c, u) {
762
+ return !!E(c, u);
763
763
  };
764
764
  return ir = function() {
765
- var n, c, y, b = {
766
- assert: function(E) {
767
- if (!b.has(E))
768
- throw new t("Side channel does not contain " + a(E));
765
+ var u, v, g, P = {
766
+ assert: function(x) {
767
+ if (!P.has(x))
768
+ throw new t("Side channel does not contain " + a(x));
769
769
  },
770
- get: function(E) {
771
- if (i && E && (typeof E == "object" || typeof E == "function")) {
772
- if (n)
773
- return f(n, E);
774
- } else if (s) {
775
- if (c)
776
- return m(c, E);
777
- } else if (y)
778
- return v(y, E);
770
+ get: function(x) {
771
+ if (n && x && (typeof x == "object" || typeof x == "function")) {
772
+ if (u)
773
+ return p(u, x);
774
+ } else if (o) {
775
+ if (v)
776
+ return y(v, x);
777
+ } else if (g)
778
+ return i(g, x);
779
779
  },
780
- has: function(E) {
781
- if (i && E && (typeof E == "object" || typeof E == "function")) {
782
- if (n)
783
- return d(n, E);
784
- } else if (s) {
785
- if (c)
786
- return A(c, E);
787
- } else if (y)
788
- return x(y, E);
780
+ has: function(x) {
781
+ if (n && x && (typeof x == "object" || typeof x == "function")) {
782
+ if (u)
783
+ return m(u, x);
784
+ } else if (o) {
785
+ if (v)
786
+ return b(v, x);
787
+ } else if (g)
788
+ return f(g, x);
789
789
  return !1;
790
790
  },
791
- set: function(E, I) {
792
- i && E && (typeof E == "object" || typeof E == "function") ? (n || (n = new i()), u(n, E, I)) : s ? (c || (c = new s()), S(c, E, I)) : (y || (y = { key: {}, next: null }), g(y, E, I));
791
+ set: function(x, I) {
792
+ n && x && (typeof x == "object" || typeof x == "function") ? (u || (u = new n()), l(u, x, I)) : o ? (v || (v = new o()), S(v, x, I)) : (g || (g = { key: {}, next: null }), s(g, x, I));
793
793
  }
794
794
  };
795
- return b;
795
+ return P;
796
796
  }, ir;
797
797
  }
798
798
  var or, Lr;
@@ -822,141 +822,141 @@ 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 x = [], o = 0; o < 256; ++o)
826
- x.push("%" + ((o < 16 ? "0" : "") + o.toString(16)).toUpperCase());
827
- return x;
828
- })(), i = function(o) {
829
- for (; o.length > 1; ) {
830
- var n = o.pop(), c = n.obj[n.prop];
831
- if (a(c)) {
832
- for (var y = [], b = 0; b < c.length; ++b)
833
- typeof c[b] < "u" && y.push(c[b]);
834
- n.obj[n.prop] = y;
825
+ for (var f = [], c = 0; c < 256; ++c)
826
+ f.push("%" + ((c < 16 ? "0" : "") + c.toString(16)).toUpperCase());
827
+ return f;
828
+ })(), n = function(c) {
829
+ for (; c.length > 1; ) {
830
+ var u = c.pop(), v = u.obj[u.prop];
831
+ if (a(v)) {
832
+ for (var g = [], P = 0; P < v.length; ++P)
833
+ typeof v[P] < "u" && g.push(v[P]);
834
+ u.obj[u.prop] = g;
835
835
  }
836
836
  }
837
- }, s = function(o, n) {
838
- for (var c = n && n.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, y = 0; y < o.length; ++y)
839
- typeof o[y] < "u" && (c[y] = o[y]);
840
- return c;
841
- }, f = function x(o, n, c) {
842
- if (!n)
843
- return o;
844
- if (typeof n != "object") {
845
- if (a(o))
846
- o.push(n);
847
- else if (o && typeof o == "object")
848
- (c && (c.plainObjects || c.allowPrototypes) || !r.call(Object.prototype, n)) && (o[n] = !0);
837
+ }, o = function(c, u) {
838
+ for (var v = u && u.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, g = 0; g < c.length; ++g)
839
+ typeof c[g] < "u" && (v[g] = c[g]);
840
+ return v;
841
+ }, p = function f(c, u, v) {
842
+ if (!u)
843
+ return c;
844
+ if (typeof u != "object") {
845
+ if (a(c))
846
+ c.push(u);
847
+ else if (c && typeof c == "object")
848
+ (v && (v.plainObjects || v.allowPrototypes) || !r.call(Object.prototype, u)) && (c[u] = !0);
849
849
  else
850
- return [o, n];
851
- return o;
850
+ return [c, u];
851
+ return c;
852
852
  }
853
- if (!o || typeof o != "object")
854
- return [o].concat(n);
855
- var y = o;
856
- return a(o) && !a(n) && (y = s(o, c)), a(o) && a(n) ? (n.forEach(function(b, E) {
857
- if (r.call(o, E)) {
858
- var I = o[E];
859
- I && typeof I == "object" && b && typeof b == "object" ? o[E] = x(I, b, c) : o.push(b);
853
+ if (!c || typeof c != "object")
854
+ return [c].concat(u);
855
+ var g = c;
856
+ return a(c) && !a(u) && (g = o(c, v)), a(c) && a(u) ? (u.forEach(function(P, x) {
857
+ if (r.call(c, x)) {
858
+ var I = c[x];
859
+ I && typeof I == "object" && P && typeof P == "object" ? c[x] = f(I, P, v) : c.push(P);
860
860
  } else
861
- o[E] = b;
862
- }), o) : Object.keys(n).reduce(function(b, E) {
863
- var I = n[E];
864
- return r.call(b, E) ? b[E] = x(b[E], I, c) : b[E] = I, b;
865
- }, y);
866
- }, u = function(o, n) {
867
- return Object.keys(n).reduce(function(c, y) {
868
- return c[y] = n[y], c;
869
- }, o);
870
- }, d = function(x, o, n) {
871
- var c = x.replace(/\+/g, " ");
872
- if (n === "iso-8859-1")
873
- return c.replace(/%[0-9a-f]{2}/gi, unescape);
861
+ c[x] = P;
862
+ }), c) : Object.keys(u).reduce(function(P, x) {
863
+ var I = u[x];
864
+ return r.call(P, x) ? P[x] = f(P[x], I, v) : P[x] = I, P;
865
+ }, g);
866
+ }, l = function(c, u) {
867
+ return Object.keys(u).reduce(function(v, g) {
868
+ return v[g] = u[g], v;
869
+ }, c);
870
+ }, m = function(f, c, u) {
871
+ var v = f.replace(/\+/g, " ");
872
+ if (u === "iso-8859-1")
873
+ return v.replace(/%[0-9a-f]{2}/gi, unescape);
874
874
  try {
875
- return decodeURIComponent(c);
875
+ return decodeURIComponent(v);
876
876
  } catch {
877
- return c;
877
+ return v;
878
878
  }
879
- }, m = function(o, n, c, y, b) {
880
- if (o.length === 0)
881
- return o;
882
- var E = o;
883
- if (typeof o == "symbol" ? E = Symbol.prototype.toString.call(o) : typeof o != "string" && (E = String(o)), c === "iso-8859-1")
884
- return escape(E).replace(/%u[0-9a-f]{4}/gi, function(j) {
885
- return "%26%23" + parseInt(j.slice(2), 16) + "%3B";
879
+ }, y = function(c, u, v, g, P) {
880
+ if (c.length === 0)
881
+ return c;
882
+ var x = c;
883
+ if (typeof c == "symbol" ? x = Symbol.prototype.toString.call(c) : typeof c != "string" && (x = String(c)), v === "iso-8859-1")
884
+ return escape(x).replace(/%u[0-9a-f]{4}/gi, function(G) {
885
+ return "%26%23" + parseInt(G.slice(2), 16) + "%3B";
886
886
  });
887
- for (var I = "", R = 0; R < E.length; ++R) {
888
- var k = E.charCodeAt(R);
889
- if (k === 45 || k === 46 || k === 95 || k === 126 || k >= 48 && k <= 57 || k >= 65 && k <= 90 || k >= 97 && k <= 122 || b === e.RFC1738 && (k === 40 || k === 41)) {
890
- I += E.charAt(R);
887
+ for (var I = "", k = 0; k < x.length; ++k) {
888
+ var O = x.charCodeAt(k);
889
+ if (O === 45 || O === 46 || O === 95 || O === 126 || O >= 48 && O <= 57 || O >= 65 && O <= 90 || O >= 97 && O <= 122 || P === e.RFC1738 && (O === 40 || O === 41)) {
890
+ I += x.charAt(k);
891
891
  continue;
892
892
  }
893
- if (k < 128) {
894
- I = I + t[k];
893
+ if (O < 128) {
894
+ I = I + t[O];
895
895
  continue;
896
896
  }
897
- if (k < 2048) {
898
- I = I + (t[192 | k >> 6] + t[128 | k & 63]);
897
+ if (O < 2048) {
898
+ I = I + (t[192 | O >> 6] + t[128 | O & 63]);
899
899
  continue;
900
900
  }
901
- if (k < 55296 || k >= 57344) {
902
- I = I + (t[224 | k >> 12] + t[128 | k >> 6 & 63] + t[128 | k & 63]);
901
+ if (O < 55296 || O >= 57344) {
902
+ I = I + (t[224 | O >> 12] + t[128 | O >> 6 & 63] + t[128 | O & 63]);
903
903
  continue;
904
904
  }
905
- R += 1, k = 65536 + ((k & 1023) << 10 | E.charCodeAt(R) & 1023), I += t[240 | k >> 18] + t[128 | k >> 12 & 63] + t[128 | k >> 6 & 63] + t[128 | k & 63];
905
+ k += 1, O = 65536 + ((O & 1023) << 10 | x.charCodeAt(k) & 1023), I += t[240 | O >> 18] + t[128 | O >> 12 & 63] + t[128 | O >> 6 & 63] + t[128 | O & 63];
906
906
  }
907
907
  return I;
908
- }, S = function(o) {
909
- for (var n = [{ obj: { o }, prop: "o" }], c = [], y = 0; y < n.length; ++y)
910
- for (var b = n[y], E = b.obj[b.prop], I = Object.keys(E), R = 0; R < I.length; ++R) {
911
- var k = I[R], j = E[k];
912
- typeof j == "object" && j !== null && c.indexOf(j) === -1 && (n.push({ obj: E, prop: k }), c.push(j));
908
+ }, S = function(c) {
909
+ for (var u = [{ obj: { o: c }, prop: "o" }], v = [], g = 0; g < u.length; ++g)
910
+ for (var P = u[g], x = P.obj[P.prop], I = Object.keys(x), k = 0; k < I.length; ++k) {
911
+ var O = I[k], G = x[O];
912
+ typeof G == "object" && G !== null && v.indexOf(G) === -1 && (u.push({ obj: x, prop: O }), v.push(G));
913
913
  }
914
- return i(n), o;
915
- }, A = function(o) {
916
- return Object.prototype.toString.call(o) === "[object RegExp]";
917
- }, P = function(o) {
918
- return !o || typeof o != "object" ? !1 : !!(o.constructor && o.constructor.isBuffer && o.constructor.isBuffer(o));
919
- }, v = function(o, n) {
920
- return [].concat(o, n);
921
- }, g = function(o, n) {
922
- if (a(o)) {
923
- for (var c = [], y = 0; y < o.length; y += 1)
924
- c.push(n(o[y]));
925
- return c;
914
+ return n(u), c;
915
+ }, b = function(c) {
916
+ return Object.prototype.toString.call(c) === "[object RegExp]";
917
+ }, E = function(c) {
918
+ return !c || typeof c != "object" ? !1 : !!(c.constructor && c.constructor.isBuffer && c.constructor.isBuffer(c));
919
+ }, i = function(c, u) {
920
+ return [].concat(c, u);
921
+ }, s = function(c, u) {
922
+ if (a(c)) {
923
+ for (var v = [], g = 0; g < c.length; g += 1)
924
+ v.push(u(c[g]));
925
+ return v;
926
926
  }
927
- return n(o);
927
+ return u(c);
928
928
  };
929
929
  return sr = {
930
- arrayToObject: s,
931
- assign: u,
932
- combine: v,
930
+ arrayToObject: o,
931
+ assign: l,
932
+ combine: i,
933
933
  compact: S,
934
- decode: d,
935
- encode: m,
936
- isBuffer: P,
937
- isRegExp: A,
938
- maybeMap: g,
939
- merge: f
934
+ decode: m,
935
+ encode: y,
936
+ isBuffer: E,
937
+ isRegExp: b,
938
+ maybeMap: s,
939
+ merge: p
940
940
  }, sr;
941
941
  }
942
942
  var ur, $r;
943
943
  function ut() {
944
944
  if ($r) return ur;
945
945
  $r = 1;
946
- var e = st(), r = Wr(), a = gr(), t = Object.prototype.hasOwnProperty, i = {
947
- brackets: function(n) {
948
- return n + "[]";
946
+ var e = st(), r = Wr(), a = gr(), t = Object.prototype.hasOwnProperty, n = {
947
+ brackets: function(u) {
948
+ return u + "[]";
949
949
  },
950
950
  comma: "comma",
951
- indices: function(n, c) {
952
- return n + "[" + c + "]";
951
+ indices: function(u, v) {
952
+ return u + "[" + v + "]";
953
953
  },
954
- repeat: function(n) {
955
- return n;
954
+ repeat: function(u) {
955
+ return u;
956
956
  }
957
- }, s = Array.isArray, f = String.prototype.split, u = Array.prototype.push, d = function(o, n) {
958
- u.apply(o, s(n) ? n : [n]);
959
- }, m = Date.prototype.toISOString, S = a.default, A = {
957
+ }, o = Array.isArray, p = String.prototype.split, l = Array.prototype.push, m = function(c, u) {
958
+ l.apply(c, o(u) ? u : [u]);
959
+ }, y = Date.prototype.toISOString, S = a.default, b = {
960
960
  addQueryPrefix: !1,
961
961
  allowDots: !1,
962
962
  charset: "utf-8",
@@ -969,150 +969,150 @@ function ut() {
969
969
  formatter: a.formatters[S],
970
970
  // deprecated
971
971
  indices: !1,
972
- serializeDate: function(n) {
973
- return m.call(n);
972
+ serializeDate: function(u) {
973
+ return y.call(u);
974
974
  },
975
975
  skipNulls: !1,
976
976
  strictNullHandling: !1
977
- }, P = function(n) {
978
- return typeof n == "string" || typeof n == "number" || typeof n == "boolean" || typeof n == "symbol" || typeof n == "bigint";
979
- }, v = {}, g = function o(n, c, y, b, E, I, R, k, j, F, N, _, L, B, $, W) {
980
- for (var T = n, z = W, H = 0, X = !1; (z = z.get(v)) !== void 0 && !X; ) {
981
- var ee = z.get(n);
982
- if (H += 1, typeof ee < "u") {
983
- if (ee === H)
977
+ }, E = function(u) {
978
+ return typeof u == "string" || typeof u == "number" || typeof u == "boolean" || typeof u == "symbol" || typeof u == "bigint";
979
+ }, i = {}, s = function c(u, v, g, P, x, I, k, O, G, B, F, $, L, R, _, z) {
980
+ for (var N = u, Z = z, Q = 0, ne = !1; (Z = Z.get(i)) !== void 0 && !ne; ) {
981
+ var X = Z.get(u);
982
+ if (Q += 1, typeof X < "u") {
983
+ if (X === Q)
984
984
  throw new RangeError("Cyclic object value");
985
- X = !0;
985
+ ne = !0;
986
986
  }
987
- typeof z.get(v) > "u" && (H = 0);
987
+ typeof Z.get(i) > "u" && (Q = 0);
988
988
  }
989
- if (typeof k == "function" ? T = k(c, T) : T instanceof Date ? T = N(T) : y === "comma" && s(T) && (T = r.maybeMap(T, function(re) {
990
- return re instanceof Date ? N(re) : re;
991
- })), T === null) {
992
- if (E)
993
- return R && !B ? R(c, A.encoder, $, "key", _) : c;
994
- T = "";
989
+ if (typeof O == "function" ? N = O(v, N) : N instanceof Date ? N = F(N) : g === "comma" && o(N) && (N = r.maybeMap(N, function(ee) {
990
+ return ee instanceof Date ? F(ee) : ee;
991
+ })), N === null) {
992
+ if (x)
993
+ return k && !R ? k(v, b.encoder, _, "key", $) : v;
994
+ N = "";
995
995
  }
996
- if (P(T) || r.isBuffer(T)) {
997
- if (R) {
998
- var K = B ? c : R(c, A.encoder, $, "key", _);
999
- if (y === "comma" && B) {
1000
- for (var ie = f.call(String(T), ","), te = "", ae = 0; ae < ie.length; ++ae)
1001
- te += (ae === 0 ? "" : ",") + L(R(ie[ae], A.encoder, $, "value", _));
1002
- return [L(K) + (b && s(T) && ie.length === 1 ? "[]" : "") + "=" + te];
996
+ if (E(N) || r.isBuffer(N)) {
997
+ if (k) {
998
+ var W = R ? v : k(v, b.encoder, _, "key", $);
999
+ if (g === "comma" && R) {
1000
+ for (var ie = p.call(String(N), ","), re = "", te = 0; te < ie.length; ++te)
1001
+ re += (te === 0 ? "" : ",") + L(k(ie[te], b.encoder, _, "value", $));
1002
+ return [L(W) + (P && o(N) && ie.length === 1 ? "[]" : "") + "=" + re];
1003
1003
  }
1004
- return [L(K) + "=" + L(R(T, A.encoder, $, "value", _))];
1004
+ return [L(W) + "=" + L(k(N, b.encoder, _, "value", $))];
1005
1005
  }
1006
- return [L(c) + "=" + L(String(T))];
1006
+ return [L(v) + "=" + L(String(N))];
1007
1007
  }
1008
1008
  var ce = [];
1009
- if (typeof T > "u")
1009
+ if (typeof N > "u")
1010
1010
  return ce;
1011
1011
  var ue;
1012
- if (y === "comma" && s(T))
1013
- ue = [{ value: T.length > 0 ? T.join(",") || null : void 0 }];
1014
- else if (s(k))
1015
- ue = k;
1012
+ if (g === "comma" && o(N))
1013
+ ue = [{ value: N.length > 0 ? N.join(",") || null : void 0 }];
1014
+ else if (o(O))
1015
+ ue = O;
1016
1016
  else {
1017
- var oe = Object.keys(T);
1018
- ue = j ? oe.sort(j) : oe;
1017
+ var oe = Object.keys(N);
1018
+ ue = G ? oe.sort(G) : oe;
1019
1019
  }
1020
- for (var de = b && s(T) && T.length === 1 ? c + "[]" : c, pe = 0; pe < ue.length; ++pe) {
1021
- var se = ue[pe], ye = typeof se == "object" && typeof se.value < "u" ? se.value : T[se];
1020
+ for (var de = P && o(N) && N.length === 1 ? v + "[]" : v, pe = 0; pe < ue.length; ++pe) {
1021
+ var se = ue[pe], ye = typeof se == "object" && typeof se.value < "u" ? se.value : N[se];
1022
1022
  if (!(I && ye === null)) {
1023
- var be = s(T) ? typeof y == "function" ? y(de, se) : de : de + (F ? "." + se : "[" + se + "]");
1024
- W.set(n, H);
1025
- var Z = e();
1026
- Z.set(v, W), d(ce, o(
1023
+ var be = o(N) ? typeof g == "function" ? g(de, se) : de : de + (B ? "." + se : "[" + se + "]");
1024
+ z.set(u, Q);
1025
+ var J = e();
1026
+ J.set(i, z), m(ce, c(
1027
1027
  ye,
1028
1028
  be,
1029
- y,
1030
- b,
1031
- E,
1029
+ g,
1030
+ P,
1031
+ x,
1032
1032
  I,
1033
- R,
1034
1033
  k,
1035
- j,
1036
- F,
1037
- N,
1038
- _,
1039
- L,
1034
+ O,
1035
+ G,
1040
1036
  B,
1037
+ F,
1041
1038
  $,
1042
- Z
1039
+ L,
1040
+ R,
1041
+ _,
1042
+ J
1043
1043
  ));
1044
1044
  }
1045
1045
  }
1046
1046
  return ce;
1047
- }, x = function(n) {
1048
- if (!n)
1049
- return A;
1050
- if (n.encoder !== null && typeof n.encoder < "u" && typeof n.encoder != "function")
1047
+ }, f = function(u) {
1048
+ if (!u)
1049
+ return b;
1050
+ if (u.encoder !== null && typeof u.encoder < "u" && typeof u.encoder != "function")
1051
1051
  throw new TypeError("Encoder has to be a function.");
1052
- var c = n.charset || A.charset;
1053
- if (typeof n.charset < "u" && n.charset !== "utf-8" && n.charset !== "iso-8859-1")
1052
+ var v = u.charset || b.charset;
1053
+ if (typeof u.charset < "u" && u.charset !== "utf-8" && u.charset !== "iso-8859-1")
1054
1054
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1055
- var y = a.default;
1056
- if (typeof n.format < "u") {
1057
- if (!t.call(a.formatters, n.format))
1055
+ var g = a.default;
1056
+ if (typeof u.format < "u") {
1057
+ if (!t.call(a.formatters, u.format))
1058
1058
  throw new TypeError("Unknown format option provided.");
1059
- y = n.format;
1059
+ g = u.format;
1060
1060
  }
1061
- var b = a.formatters[y], E = A.filter;
1062
- return (typeof n.filter == "function" || s(n.filter)) && (E = n.filter), {
1063
- addQueryPrefix: typeof n.addQueryPrefix == "boolean" ? n.addQueryPrefix : A.addQueryPrefix,
1064
- allowDots: typeof n.allowDots > "u" ? A.allowDots : !!n.allowDots,
1065
- charset: c,
1066
- charsetSentinel: typeof n.charsetSentinel == "boolean" ? n.charsetSentinel : A.charsetSentinel,
1067
- delimiter: typeof n.delimiter > "u" ? A.delimiter : n.delimiter,
1068
- encode: typeof n.encode == "boolean" ? n.encode : A.encode,
1069
- encoder: typeof n.encoder == "function" ? n.encoder : A.encoder,
1070
- encodeValuesOnly: typeof n.encodeValuesOnly == "boolean" ? n.encodeValuesOnly : A.encodeValuesOnly,
1071
- filter: E,
1072
- format: y,
1073
- formatter: b,
1074
- serializeDate: typeof n.serializeDate == "function" ? n.serializeDate : A.serializeDate,
1075
- skipNulls: typeof n.skipNulls == "boolean" ? n.skipNulls : A.skipNulls,
1076
- sort: typeof n.sort == "function" ? n.sort : null,
1077
- strictNullHandling: typeof n.strictNullHandling == "boolean" ? n.strictNullHandling : A.strictNullHandling
1061
+ var P = a.formatters[g], x = b.filter;
1062
+ return (typeof u.filter == "function" || o(u.filter)) && (x = u.filter), {
1063
+ addQueryPrefix: typeof u.addQueryPrefix == "boolean" ? u.addQueryPrefix : b.addQueryPrefix,
1064
+ allowDots: typeof u.allowDots > "u" ? b.allowDots : !!u.allowDots,
1065
+ charset: v,
1066
+ charsetSentinel: typeof u.charsetSentinel == "boolean" ? u.charsetSentinel : b.charsetSentinel,
1067
+ delimiter: typeof u.delimiter > "u" ? b.delimiter : u.delimiter,
1068
+ encode: typeof u.encode == "boolean" ? u.encode : b.encode,
1069
+ encoder: typeof u.encoder == "function" ? u.encoder : b.encoder,
1070
+ encodeValuesOnly: typeof u.encodeValuesOnly == "boolean" ? u.encodeValuesOnly : b.encodeValuesOnly,
1071
+ filter: x,
1072
+ format: g,
1073
+ formatter: P,
1074
+ serializeDate: typeof u.serializeDate == "function" ? u.serializeDate : b.serializeDate,
1075
+ skipNulls: typeof u.skipNulls == "boolean" ? u.skipNulls : b.skipNulls,
1076
+ sort: typeof u.sort == "function" ? u.sort : null,
1077
+ strictNullHandling: typeof u.strictNullHandling == "boolean" ? u.strictNullHandling : b.strictNullHandling
1078
1078
  };
1079
1079
  };
1080
- return ur = function(o, n) {
1081
- var c = o, y = x(n), b, E;
1082
- typeof y.filter == "function" ? (E = y.filter, c = E("", c)) : s(y.filter) && (E = y.filter, b = E);
1080
+ return ur = function(c, u) {
1081
+ var v = c, g = f(u), P, x;
1082
+ typeof g.filter == "function" ? (x = g.filter, v = x("", v)) : o(g.filter) && (x = g.filter, P = x);
1083
1083
  var I = [];
1084
- if (typeof c != "object" || c === null)
1084
+ if (typeof v != "object" || v === null)
1085
1085
  return "";
1086
- var R;
1087
- n && n.arrayFormat in i ? R = n.arrayFormat : n && "indices" in n ? R = n.indices ? "indices" : "repeat" : R = "indices";
1088
- var k = i[R];
1089
- if (n && "commaRoundTrip" in n && typeof n.commaRoundTrip != "boolean")
1086
+ var k;
1087
+ u && u.arrayFormat in n ? k = u.arrayFormat : u && "indices" in u ? k = u.indices ? "indices" : "repeat" : k = "indices";
1088
+ var O = n[k];
1089
+ if (u && "commaRoundTrip" in u && typeof u.commaRoundTrip != "boolean")
1090
1090
  throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
1091
- var j = k === "comma" && n && n.commaRoundTrip;
1092
- b || (b = Object.keys(c)), y.sort && b.sort(y.sort);
1093
- for (var F = e(), N = 0; N < b.length; ++N) {
1094
- var _ = b[N];
1095
- y.skipNulls && c[_] === null || d(I, g(
1096
- c[_],
1097
- _,
1098
- k,
1099
- j,
1100
- y.strictNullHandling,
1101
- y.skipNulls,
1102
- y.encode ? y.encoder : null,
1103
- y.filter,
1104
- y.sort,
1105
- y.allowDots,
1106
- y.serializeDate,
1107
- y.format,
1108
- y.formatter,
1109
- y.encodeValuesOnly,
1110
- y.charset,
1111
- F
1091
+ var G = O === "comma" && u && u.commaRoundTrip;
1092
+ P || (P = Object.keys(v)), g.sort && P.sort(g.sort);
1093
+ for (var B = e(), F = 0; F < P.length; ++F) {
1094
+ var $ = P[F];
1095
+ g.skipNulls && v[$] === null || m(I, s(
1096
+ v[$],
1097
+ $,
1098
+ O,
1099
+ G,
1100
+ g.strictNullHandling,
1101
+ g.skipNulls,
1102
+ g.encode ? g.encoder : null,
1103
+ g.filter,
1104
+ g.sort,
1105
+ g.allowDots,
1106
+ g.serializeDate,
1107
+ g.format,
1108
+ g.formatter,
1109
+ g.encodeValuesOnly,
1110
+ g.charset,
1111
+ B
1112
1112
  ));
1113
1113
  }
1114
- var L = I.join(y.delimiter), B = y.addQueryPrefix === !0 ? "?" : "";
1115
- return y.charsetSentinel && (y.charset === "iso-8859-1" ? B += "utf8=%26%2310003%3B&" : B += "utf8=%E2%9C%93&"), L.length > 0 ? B + L : "";
1114
+ var L = I.join(g.delimiter), R = g.addQueryPrefix === !0 ? "?" : "";
1115
+ return g.charsetSentinel && (g.charset === "iso-8859-1" ? R += "utf8=%26%2310003%3B&" : R += "utf8=%E2%9C%93&"), L.length > 0 ? R + L : "";
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
- }, i = function(P) {
1140
- return P.replace(/&#(\d+);/g, function(v, g) {
1141
- return String.fromCharCode(parseInt(g, 10));
1139
+ }, n = function(E) {
1140
+ return E.replace(/&#(\d+);/g, function(i, s) {
1141
+ return String.fromCharCode(parseInt(s, 10));
1142
1142
  });
1143
- }, s = function(P, v) {
1144
- return P && typeof P == "string" && v.comma && P.indexOf(",") > -1 ? P.split(",") : P;
1145
- }, f = "utf8=%26%2310003%3B", u = "utf8=%E2%9C%93", d = function(v, g) {
1146
- var x = {}, o = g.ignoreQueryPrefix ? v.replace(/^\?/, "") : v, n = g.parameterLimit === 1 / 0 ? void 0 : g.parameterLimit, c = o.split(g.delimiter, n), y = -1, b, E = g.charset;
1147
- if (g.charsetSentinel)
1148
- for (b = 0; b < c.length; ++b)
1149
- c[b].indexOf("utf8=") === 0 && (c[b] === u ? E = "utf-8" : c[b] === f && (E = "iso-8859-1"), y = b, b = c.length);
1150
- for (b = 0; b < c.length; ++b)
1151
- if (b !== y) {
1152
- var I = c[b], R = I.indexOf("]="), k = R === -1 ? I.indexOf("=") : R + 1, j, F;
1153
- k === -1 ? (j = g.decoder(I, t.decoder, E, "key"), F = g.strictNullHandling ? null : "") : (j = g.decoder(I.slice(0, k), t.decoder, E, "key"), F = e.maybeMap(
1154
- s(I.slice(k + 1), g),
1155
- function(N) {
1156
- return g.decoder(N, t.decoder, E, "value");
1143
+ }, o = function(E, i) {
1144
+ return E && typeof E == "string" && i.comma && E.indexOf(",") > -1 ? E.split(",") : E;
1145
+ }, p = "utf8=%26%2310003%3B", l = "utf8=%E2%9C%93", m = function(i, s) {
1146
+ var f = {}, c = s.ignoreQueryPrefix ? i.replace(/^\?/, "") : i, u = s.parameterLimit === 1 / 0 ? void 0 : s.parameterLimit, v = c.split(s.delimiter, u), g = -1, P, x = s.charset;
1147
+ if (s.charsetSentinel)
1148
+ for (P = 0; P < v.length; ++P)
1149
+ v[P].indexOf("utf8=") === 0 && (v[P] === l ? x = "utf-8" : v[P] === p && (x = "iso-8859-1"), g = P, P = v.length);
1150
+ for (P = 0; P < v.length; ++P)
1151
+ if (P !== g) {
1152
+ var I = v[P], k = I.indexOf("]="), O = k === -1 ? I.indexOf("=") : k + 1, G, B;
1153
+ O === -1 ? (G = s.decoder(I, t.decoder, x, "key"), B = s.strictNullHandling ? null : "") : (G = s.decoder(I.slice(0, O), t.decoder, x, "key"), B = e.maybeMap(
1154
+ o(I.slice(O + 1), s),
1155
+ function(F) {
1156
+ return s.decoder(F, t.decoder, x, "value");
1157
1157
  }
1158
- )), F && g.interpretNumericEntities && E === "iso-8859-1" && (F = i(F)), I.indexOf("[]=") > -1 && (F = a(F) ? [F] : F), r.call(x, j) ? x[j] = e.combine(x[j], F) : x[j] = F;
1158
+ )), B && s.interpretNumericEntities && x === "iso-8859-1" && (B = n(B)), I.indexOf("[]=") > -1 && (B = a(B) ? [B] : B), r.call(f, G) ? f[G] = e.combine(f[G], B) : f[G] = B;
1159
1159
  }
1160
- return x;
1161
- }, m = function(P, v, g, x) {
1162
- for (var o = x ? v : s(v, g), n = P.length - 1; n >= 0; --n) {
1163
- var c, y = P[n];
1164
- if (y === "[]" && g.parseArrays)
1165
- c = [].concat(o);
1160
+ return f;
1161
+ }, y = function(E, i, s, f) {
1162
+ for (var c = f ? i : o(i, s), u = E.length - 1; u >= 0; --u) {
1163
+ var v, g = E[u];
1164
+ if (g === "[]" && s.parseArrays)
1165
+ v = [].concat(c);
1166
1166
  else {
1167
- c = g.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
1168
- var b = y.charAt(0) === "[" && y.charAt(y.length - 1) === "]" ? y.slice(1, -1) : y, E = parseInt(b, 10);
1169
- !g.parseArrays && b === "" ? c = { 0: o } : !isNaN(E) && y !== b && String(E) === b && E >= 0 && g.parseArrays && E <= g.arrayLimit ? (c = [], c[E] = o) : b !== "__proto__" && (c[b] = o);
1167
+ v = s.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
1168
+ var P = g.charAt(0) === "[" && g.charAt(g.length - 1) === "]" ? g.slice(1, -1) : g, x = parseInt(P, 10);
1169
+ !s.parseArrays && P === "" ? v = { 0: c } : !isNaN(x) && g !== P && String(x) === P && x >= 0 && s.parseArrays && x <= s.arrayLimit ? (v = [], v[x] = c) : P !== "__proto__" && (v[P] = c);
1170
1170
  }
1171
- o = c;
1171
+ c = v;
1172
1172
  }
1173
- return o;
1174
- }, S = function(v, g, x, o) {
1175
- if (v) {
1176
- var n = x.allowDots ? v.replace(/\.([^.[]+)/g, "[$1]") : v, c = /(\[[^[\]]*])/, y = /(\[[^[\]]*])/g, b = x.depth > 0 && c.exec(n), E = b ? n.slice(0, b.index) : n, I = [];
1177
- if (E) {
1178
- if (!x.plainObjects && r.call(Object.prototype, E) && !x.allowPrototypes)
1173
+ return c;
1174
+ }, S = function(i, s, f, c) {
1175
+ if (i) {
1176
+ var u = f.allowDots ? i.replace(/\.([^.[]+)/g, "[$1]") : i, v = /(\[[^[\]]*])/, g = /(\[[^[\]]*])/g, P = f.depth > 0 && v.exec(u), x = P ? u.slice(0, P.index) : u, I = [];
1177
+ if (x) {
1178
+ if (!f.plainObjects && r.call(Object.prototype, x) && !f.allowPrototypes)
1179
1179
  return;
1180
- I.push(E);
1180
+ I.push(x);
1181
1181
  }
1182
- for (var R = 0; x.depth > 0 && (b = y.exec(n)) !== null && R < x.depth; ) {
1183
- if (R += 1, !x.plainObjects && r.call(Object.prototype, b[1].slice(1, -1)) && !x.allowPrototypes)
1182
+ for (var k = 0; f.depth > 0 && (P = g.exec(u)) !== null && k < f.depth; ) {
1183
+ if (k += 1, !f.plainObjects && r.call(Object.prototype, P[1].slice(1, -1)) && !f.allowPrototypes)
1184
1184
  return;
1185
- I.push(b[1]);
1185
+ I.push(P[1]);
1186
1186
  }
1187
- return b && I.push("[" + n.slice(b.index) + "]"), m(I, g, x, o);
1187
+ return P && I.push("[" + u.slice(P.index) + "]"), y(I, s, f, c);
1188
1188
  }
1189
- }, A = function(v) {
1190
- if (!v)
1189
+ }, b = function(i) {
1190
+ if (!i)
1191
1191
  return t;
1192
- if (v.decoder !== null && v.decoder !== void 0 && typeof v.decoder != "function")
1192
+ if (i.decoder !== null && i.decoder !== void 0 && typeof i.decoder != "function")
1193
1193
  throw new TypeError("Decoder has to be a function.");
1194
- if (typeof v.charset < "u" && v.charset !== "utf-8" && v.charset !== "iso-8859-1")
1194
+ if (typeof i.charset < "u" && i.charset !== "utf-8" && i.charset !== "iso-8859-1")
1195
1195
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1196
- var g = typeof v.charset > "u" ? t.charset : v.charset;
1196
+ var s = typeof i.charset > "u" ? t.charset : i.charset;
1197
1197
  return {
1198
- allowDots: typeof v.allowDots > "u" ? t.allowDots : !!v.allowDots,
1199
- allowPrototypes: typeof v.allowPrototypes == "boolean" ? v.allowPrototypes : t.allowPrototypes,
1200
- allowSparse: typeof v.allowSparse == "boolean" ? v.allowSparse : t.allowSparse,
1201
- arrayLimit: typeof v.arrayLimit == "number" ? v.arrayLimit : t.arrayLimit,
1202
- charset: g,
1203
- charsetSentinel: typeof v.charsetSentinel == "boolean" ? v.charsetSentinel : t.charsetSentinel,
1204
- comma: typeof v.comma == "boolean" ? v.comma : t.comma,
1205
- decoder: typeof v.decoder == "function" ? v.decoder : t.decoder,
1206
- delimiter: typeof v.delimiter == "string" || e.isRegExp(v.delimiter) ? v.delimiter : t.delimiter,
1198
+ allowDots: typeof i.allowDots > "u" ? t.allowDots : !!i.allowDots,
1199
+ allowPrototypes: typeof i.allowPrototypes == "boolean" ? i.allowPrototypes : t.allowPrototypes,
1200
+ allowSparse: typeof i.allowSparse == "boolean" ? i.allowSparse : t.allowSparse,
1201
+ arrayLimit: typeof i.arrayLimit == "number" ? i.arrayLimit : t.arrayLimit,
1202
+ charset: s,
1203
+ charsetSentinel: typeof i.charsetSentinel == "boolean" ? i.charsetSentinel : t.charsetSentinel,
1204
+ comma: typeof i.comma == "boolean" ? i.comma : t.comma,
1205
+ decoder: typeof i.decoder == "function" ? i.decoder : t.decoder,
1206
+ delimiter: typeof i.delimiter == "string" || e.isRegExp(i.delimiter) ? i.delimiter : t.delimiter,
1207
1207
  // eslint-disable-next-line no-implicit-coercion, no-extra-parens
1208
- depth: typeof v.depth == "number" || v.depth === !1 ? +v.depth : t.depth,
1209
- ignoreQueryPrefix: v.ignoreQueryPrefix === !0,
1210
- interpretNumericEntities: typeof v.interpretNumericEntities == "boolean" ? v.interpretNumericEntities : t.interpretNumericEntities,
1211
- parameterLimit: typeof v.parameterLimit == "number" ? v.parameterLimit : t.parameterLimit,
1212
- parseArrays: v.parseArrays !== !1,
1213
- plainObjects: typeof v.plainObjects == "boolean" ? v.plainObjects : t.plainObjects,
1214
- strictNullHandling: typeof v.strictNullHandling == "boolean" ? v.strictNullHandling : t.strictNullHandling
1208
+ depth: typeof i.depth == "number" || i.depth === !1 ? +i.depth : t.depth,
1209
+ ignoreQueryPrefix: i.ignoreQueryPrefix === !0,
1210
+ interpretNumericEntities: typeof i.interpretNumericEntities == "boolean" ? i.interpretNumericEntities : t.interpretNumericEntities,
1211
+ parameterLimit: typeof i.parameterLimit == "number" ? i.parameterLimit : t.parameterLimit,
1212
+ parseArrays: i.parseArrays !== !1,
1213
+ plainObjects: typeof i.plainObjects == "boolean" ? i.plainObjects : t.plainObjects,
1214
+ strictNullHandling: typeof i.strictNullHandling == "boolean" ? i.strictNullHandling : t.strictNullHandling
1215
1215
  };
1216
1216
  };
1217
- return cr = function(P, v) {
1218
- var g = A(v);
1219
- if (P === "" || P === null || typeof P > "u")
1220
- return g.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
1221
- for (var x = typeof P == "string" ? d(P, g) : P, o = g.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, n = Object.keys(x), c = 0; c < n.length; ++c) {
1222
- var y = n[c], b = S(y, x[y], g, typeof P == "string");
1223
- o = e.merge(o, b, g);
1217
+ return cr = function(E, i) {
1218
+ var s = b(i);
1219
+ if (E === "" || E === null || typeof E > "u")
1220
+ return s.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
1221
+ for (var f = typeof E == "string" ? m(E, s) : E, c = s.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, u = Object.keys(f), v = 0; v < u.length; ++v) {
1222
+ var g = u[v], P = S(g, f[g], s, typeof E == "string");
1223
+ c = e.merge(c, P, s);
1224
1224
  }
1225
- return g.allowSparse === !0 ? o : e.compact(o);
1225
+ return s.allowSparse === !0 ? c : e.compact(c);
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.1.210", pt = Ee.CancelToken;
1240
+ const dt = /* @__PURE__ */ mr(ft), vr = "0.1.211", 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(d) {
1246
- var m = [
1247
- d.method,
1248
- d.url,
1249
- d.headers?.Authorization,
1250
- d.headers.Accept,
1245
+ function t(m) {
1246
+ var y = [
1247
+ m.method,
1248
+ m.url,
1249
+ m.headers?.Authorization,
1250
+ m.headers.Accept,
1251
1251
  JSON.stringify({
1252
- params: d.params,
1253
- data: d.data
1252
+ params: m.params,
1253
+ data: m.data
1254
1254
  })
1255
1255
  ].filter(Boolean).join("-");
1256
- return m;
1256
+ return y;
1257
1257
  }
1258
- const i = {}, f = u(function(d) {
1259
- var m = t(d);
1260
- return i[m] || (i[m] = new Promise(function(S, A) {
1261
- var P, v;
1262
- switch (String(d.method).toLowerCase()) {
1258
+ const n = {}, p = l(function(m) {
1259
+ var y = t(m);
1260
+ return n[y] || (n[y] = new Promise(function(S, b) {
1261
+ var E, i;
1262
+ switch (String(m.method).toLowerCase()) {
1263
1263
  case "post":
1264
1264
  case "patch":
1265
1265
  case "put":
1266
1266
  case "delete":
1267
- d.cache || (d.cache = !1);
1267
+ m.cache || (m.cache = !1);
1268
1268
  break;
1269
1269
  }
1270
- return d.cache === !1 || (P = d.cache || r, P && (v = P.get(m))), v ? S(v) : (Object.assign(d, { adapter: a }), Ee.request(d).then(
1271
- function(g) {
1272
- delete i[m], S(g);
1270
+ return m.cache === !1 || (E = m.cache || r, E && (i = E.get(y))), i ? S(i) : (Object.assign(m, { adapter: a }), Ee.request(m).then(
1271
+ function(s) {
1272
+ delete n[y], S(s);
1273
1273
  },
1274
- function(g) {
1275
- delete i[m], A(g);
1274
+ function(s) {
1275
+ delete n[y], b(s);
1276
1276
  }
1277
1277
  ));
1278
- })), i[m];
1278
+ })), n[y];
1279
1279
  });
1280
- f.generateEndpointURL = function(d, m, S) {
1281
- S = S || {}, m = m || {};
1282
- var A;
1283
- const P = S.file && e.fileAPI || e.apiURL;
1284
- S.withoutToken || (delete m.access_token, A = e.auth.getCurrentToken()), d[0] == "/" && d.slice(1);
1285
- var v = e.utils.mapParameters(m);
1286
- A ? v = v ? `?access_token=${A}&${v}` : `?access_token=${A}` : v = v ? `?${v}` : "";
1287
- var g = `${P}${d}${v}`;
1288
- return g;
1289
- }, f.wasCancelled = function(d) {
1290
- return Ee.isCancel(d);
1280
+ p.generateEndpointURL = function(m, y, S) {
1281
+ S = S || {}, y = y || {};
1282
+ var b;
1283
+ const E = S.file && e.fileAPI || e.apiURL;
1284
+ S.withoutToken || (delete y.access_token, b = e.auth.getCurrentToken()), m[0] == "/" && m.slice(1);
1285
+ var i = e.utils.mapParameters(y);
1286
+ b ? i = i ? `?access_token=${b}&${i}` : `?access_token=${b}` : i = i ? `?${i}` : "";
1287
+ var s = `${E}${m}${i}`;
1288
+ return s;
1289
+ }, p.wasCancelled = function(m) {
1290
+ return Ee.isCancel(m);
1291
1291
  };
1292
- function u(d) {
1293
- var m = Ee.create({
1294
- paramsSerializer: (A) => dt.stringify(A, { arrayFormat: "repeat" }),
1295
- adapter: d
1292
+ function l(m) {
1293
+ var y = Ee.create({
1294
+ paramsSerializer: (b) => dt.stringify(b, { arrayFormat: "repeat" }),
1295
+ adapter: m
1296
1296
  });
1297
- m.defaults.baseURL = e.apiURL, m.defaults.headers.common.Accept = "application/json", m.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 v = Intl.DateTimeFormat().resolvedOptions().timeZone;
1302
- v && (A.headers["qik-request-timezone"] = v);
1297
+ y.defaults.baseURL = e.apiURL, y.defaults.headers.common.Accept = "application/json", y.interceptors.request.use(function(b) {
1298
+ if (t(b), b.withoutToken)
1299
+ return b;
1300
+ if (b.headers["qik-request-date"] = (/* @__PURE__ */ new Date()).getTime(), Intl) {
1301
+ const i = Intl.DateTimeFormat().resolvedOptions().timeZone;
1302
+ i && (b.headers["qik-request-timezone"] = i);
1303
1303
  }
1304
- A.headers["qik-api-version"] = vr, e?.socket?.windowID && (A.headers["qik-socket-window"] = e.socket.windowID);
1305
- var P = e.auth.getCurrentToken();
1306
- return P && (A.headers.Authorization = `Bearer ${P}`, A.params && A.params.access_token && delete A.params.access_token), A;
1304
+ b.headers["qik-api-version"] = vr, e?.socket?.windowID && (b.headers["qik-socket-window"] = e.socket.windowID);
1305
+ var E = e.auth.getCurrentToken();
1306
+ return E && (b.headers.Authorization = `Bearer ${E}`, b.params && b.params.access_token && delete b.params.access_token), b;
1307
1307
  });
1308
1308
  let S = 0;
1309
- return m.interceptors.response.use(
1310
- function(A) {
1311
- var P = A.config, v = A.status;
1312
- switch (v) {
1309
+ return y.interceptors.response.use(
1310
+ function(b) {
1311
+ var E = b.config, i = b.status;
1312
+ switch (i) {
1313
1313
  case 204:
1314
1314
  if (S < 5)
1315
- return S++, new Promise(function(g, x) {
1315
+ return S++, new Promise(function(s, f) {
1316
1316
  setTimeout(function() {
1317
- return m.request(P).then(g, x);
1317
+ return y.request(E).then(s, f);
1318
1318
  }, 800);
1319
1319
  });
1320
1320
  console.log("Failed after 5 retries"), S = 0;
1321
1321
  break;
1322
1322
  }
1323
- return A;
1323
+ return b;
1324
1324
  },
1325
- function(A) {
1326
- if (Ee.isCancel(A))
1327
- return Promise.reject(A);
1328
- var P = A?.response?.status || A.status;
1329
- switch (P) {
1325
+ function(b) {
1326
+ if (Ee.isCancel(b))
1327
+ return Promise.reject(b);
1328
+ var E = b?.response?.status || b.status;
1329
+ switch (E) {
1330
1330
  case 401:
1331
1331
  break;
1332
1332
  case 502:
1333
1333
  case 504:
1334
1334
  if (S < 5)
1335
- return S++, new Promise(function(v, g) {
1335
+ return S++, new Promise(function(i, s) {
1336
1336
  setTimeout(function() {
1337
- return m.request(A.config).then(v, g);
1337
+ return y.request(b.config).then(i, s);
1338
1338
  }, 800);
1339
1339
  });
1340
1340
  console.log("Failed after 5 retries"), S = 0;
1341
1341
  break;
1342
1342
  }
1343
- return Promise.reject(A);
1343
+ return Promise.reject(b);
1344
1344
  }
1345
- ), m;
1345
+ ), y;
1346
1346
  }
1347
- return f.CancelToken = pt, f.axios = Ee, f;
1347
+ return p.CancelToken = pt, p.axios = Ee, p;
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]", i = "[object Symbol]", s = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, f = /^\w*$/, u = /^\./, d = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, m = /[\\^$.*+?()[\]{}|]/g, S = /\\(\\)?/g, A = /^\[object .+?Constructor\]$/, P = typeof Ae == "object" && Ae && Ae.Object === Object && Ae, v = typeof self == "object" && self && self.Object === Object && self, g = P || v || Function("return this")();
1353
- function x(l, w) {
1354
- return l?.[w];
1352
+ var e = "Expected a function", r = "__lodash_hash_undefined__", a = "[object Function]", t = "[object GeneratorFunction]", n = "[object Symbol]", o = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, p = /^\w*$/, l = /^\./, m = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, y = /[\\^$.*+?()[\]{}|]/g, S = /\\(\\)?/g, b = /^\[object .+?Constructor\]$/, E = typeof Ae == "object" && Ae && Ae.Object === Object && Ae, i = typeof self == "object" && self && self.Object === Object && self, s = E || i || Function("return this")();
1353
+ function f(d, w) {
1354
+ return d?.[w];
1355
1355
  }
1356
- function o(l) {
1356
+ function c(d) {
1357
1357
  var w = !1;
1358
- if (l != null && typeof l.toString != "function")
1358
+ if (d != null && typeof d.toString != "function")
1359
1359
  try {
1360
- w = !!(l + "");
1360
+ w = !!(d + "");
1361
1361
  } catch {
1362
1362
  }
1363
1363
  return w;
1364
1364
  }
1365
- var n = Array.prototype, c = Function.prototype, y = Object.prototype, b = g["__core-js_shared__"], E = (function() {
1366
- var l = /[^.]+$/.exec(b && b.keys && b.keys.IE_PROTO || "");
1367
- return l ? "Symbol(src)_1." + l : "";
1368
- })(), I = c.toString, R = y.hasOwnProperty, k = y.toString, j = RegExp(
1369
- "^" + I.call(R).replace(m, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
1370
- ), F = g.Symbol, N = n.splice, _ = xe(g, "Map"), L = xe(Object, "create"), B = F ? F.prototype : void 0, $ = B ? B.toString : void 0;
1371
- function W(l) {
1372
- var w = -1, C = l ? l.length : 0;
1365
+ var u = Array.prototype, v = Function.prototype, g = Object.prototype, P = s["__core-js_shared__"], x = (function() {
1366
+ var d = /[^.]+$/.exec(P && P.keys && P.keys.IE_PROTO || "");
1367
+ return d ? "Symbol(src)_1." + d : "";
1368
+ })(), I = v.toString, k = g.hasOwnProperty, O = g.toString, G = RegExp(
1369
+ "^" + I.call(k).replace(y, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
1370
+ ), B = s.Symbol, F = u.splice, $ = xe(s, "Map"), L = xe(Object, "create"), R = B ? B.prototype : void 0, _ = R ? R.toString : void 0;
1371
+ function z(d) {
1372
+ var w = -1, C = d ? d.length : 0;
1373
1373
  for (this.clear(); ++w < C; ) {
1374
- var G = l[w];
1375
- this.set(G[0], G[1]);
1374
+ var D = d[w];
1375
+ this.set(D[0], D[1]);
1376
1376
  }
1377
1377
  }
1378
- function T() {
1378
+ function N() {
1379
1379
  this.__data__ = L ? L(null) : {};
1380
1380
  }
1381
- function z(l) {
1382
- return this.has(l) && delete this.__data__[l];
1381
+ function Z(d) {
1382
+ return this.has(d) && delete this.__data__[d];
1383
1383
  }
1384
- function H(l) {
1384
+ function Q(d) {
1385
1385
  var w = this.__data__;
1386
1386
  if (L) {
1387
- var C = w[l];
1387
+ var C = w[d];
1388
1388
  return C === r ? void 0 : C;
1389
1389
  }
1390
- return R.call(w, l) ? w[l] : void 0;
1390
+ return k.call(w, d) ? w[d] : void 0;
1391
1391
  }
1392
- function X(l) {
1392
+ function ne(d) {
1393
1393
  var w = this.__data__;
1394
- return L ? w[l] !== void 0 : R.call(w, l);
1394
+ return L ? w[d] !== void 0 : k.call(w, d);
1395
1395
  }
1396
- function ee(l, w) {
1396
+ function X(d, w) {
1397
1397
  var C = this.__data__;
1398
- return C[l] = L && w === void 0 ? r : w, this;
1398
+ return C[d] = L && w === void 0 ? r : w, this;
1399
1399
  }
1400
- W.prototype.clear = T, W.prototype.delete = z, W.prototype.get = H, W.prototype.has = X, W.prototype.set = ee;
1401
- function K(l) {
1402
- var w = -1, C = l ? l.length : 0;
1400
+ z.prototype.clear = N, z.prototype.delete = Z, z.prototype.get = Q, z.prototype.has = ne, z.prototype.set = X;
1401
+ function W(d) {
1402
+ var w = -1, C = d ? d.length : 0;
1403
1403
  for (this.clear(); ++w < C; ) {
1404
- var G = l[w];
1405
- this.set(G[0], G[1]);
1404
+ var D = d[w];
1405
+ this.set(D[0], D[1]);
1406
1406
  }
1407
1407
  }
1408
1408
  function ie() {
1409
1409
  this.__data__ = [];
1410
1410
  }
1411
- function te(l) {
1412
- var w = this.__data__, C = Z(w, l);
1411
+ function re(d) {
1412
+ var w = this.__data__, C = J(w, d);
1413
1413
  if (C < 0)
1414
1414
  return !1;
1415
- var G = w.length - 1;
1416
- return C == G ? w.pop() : N.call(w, C, 1), !0;
1415
+ var D = w.length - 1;
1416
+ return C == D ? w.pop() : F.call(w, C, 1), !0;
1417
1417
  }
1418
- function ae(l) {
1419
- var w = this.__data__, C = Z(w, l);
1418
+ function te(d) {
1419
+ var w = this.__data__, C = J(w, d);
1420
1420
  return C < 0 ? void 0 : w[C][1];
1421
1421
  }
1422
- function ce(l) {
1423
- return Z(this.__data__, l) > -1;
1422
+ function ce(d) {
1423
+ return J(this.__data__, d) > -1;
1424
1424
  }
1425
- function ue(l, w) {
1426
- var C = this.__data__, G = Z(C, l);
1427
- return G < 0 ? C.push([l, w]) : C[G][1] = w, this;
1425
+ function ue(d, w) {
1426
+ var C = this.__data__, D = J(C, d);
1427
+ return D < 0 ? C.push([d, w]) : C[D][1] = w, this;
1428
1428
  }
1429
- K.prototype.clear = ie, K.prototype.delete = te, K.prototype.get = ae, K.prototype.has = ce, K.prototype.set = ue;
1430
- function oe(l) {
1431
- var w = -1, C = l ? l.length : 0;
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 w = -1, C = d ? d.length : 0;
1432
1432
  for (this.clear(); ++w < C; ) {
1433
- var G = l[w];
1434
- this.set(G[0], G[1]);
1433
+ var D = d[w];
1434
+ this.set(D[0], D[1]);
1435
1435
  }
1436
1436
  }
1437
1437
  function de() {
1438
1438
  this.__data__ = {
1439
- hash: new W(),
1440
- map: new (_ || K)(),
1441
- string: new W()
1439
+ hash: new z(),
1440
+ map: new ($ || W)(),
1441
+ string: new z()
1442
1442
  };
1443
1443
  }
1444
- function pe(l) {
1445
- return me(this, l).delete(l);
1444
+ function pe(d) {
1445
+ return me(this, d).delete(d);
1446
1446
  }
1447
- function se(l) {
1448
- return me(this, l).get(l);
1447
+ function se(d) {
1448
+ return me(this, d).get(d);
1449
1449
  }
1450
- function ye(l) {
1451
- return me(this, l).has(l);
1450
+ function ye(d) {
1451
+ return me(this, d).has(d);
1452
1452
  }
1453
- function be(l, w) {
1454
- return me(this, l).set(l, w), this;
1453
+ function be(d, w) {
1454
+ return me(this, d).set(d, w), 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 Z(l, w) {
1458
- for (var C = l.length; C--; )
1459
- if (Se(l[C][0], w))
1457
+ function J(d, w) {
1458
+ for (var C = d.length; C--; )
1459
+ if (Se(d[C][0], w))
1460
1460
  return C;
1461
1461
  return -1;
1462
1462
  }
1463
- function re(l, w) {
1464
- w = Te(w, l) ? [w] : Ie(w);
1465
- for (var C = 0, G = w.length; l != null && C < G; )
1466
- l = l[Ne(w[C++])];
1467
- return C && C == G ? l : void 0;
1463
+ function ee(d, w) {
1464
+ w = Te(w, d) ? [w] : ke(w);
1465
+ for (var C = 0, D = w.length; d != null && C < D; )
1466
+ d = d[Ne(w[C++])];
1467
+ return C && C == D ? d : void 0;
1468
1468
  }
1469
- function ke(l) {
1470
- if (!he(l) || _e(l))
1469
+ function Ie(d) {
1470
+ if (!he(d) || _e(d))
1471
1471
  return !1;
1472
- var w = Le(l) || o(l) ? j : A;
1473
- return w.test(le(l));
1474
- }
1475
- function Pe(l) {
1476
- if (typeof l == "string")
1477
- return l;
1478
- if (p(l))
1479
- return $ ? $.call(l) : "";
1480
- var w = l + "";
1481
- return w == "0" && 1 / l == -1 / 0 ? "-0" : w;
1482
- }
1483
- function Ie(l) {
1484
- return Oe(l) ? l : Ce(l);
1485
- }
1486
- function me(l, w) {
1487
- var C = l.__data__;
1472
+ var w = Le(d) || c(d) ? G : b;
1473
+ return w.test(le(d));
1474
+ }
1475
+ function Pe(d) {
1476
+ if (typeof d == "string")
1477
+ return d;
1478
+ if (h(d))
1479
+ return _ ? _.call(d) : "";
1480
+ var w = d + "";
1481
+ return w == "0" && 1 / d == -1 / 0 ? "-0" : w;
1482
+ }
1483
+ function ke(d) {
1484
+ return Oe(d) ? d : Ce(d);
1485
+ }
1486
+ function me(d, w) {
1487
+ var C = d.__data__;
1488
1488
  return Re(w) ? C[typeof w == "string" ? "string" : "hash"] : C.map;
1489
1489
  }
1490
- function xe(l, w) {
1491
- var C = x(l, w);
1492
- return ke(C) ? C : void 0;
1490
+ function xe(d, w) {
1491
+ var C = f(d, w);
1492
+ return Ie(C) ? C : void 0;
1493
1493
  }
1494
- function Te(l, w) {
1495
- if (Oe(l))
1494
+ function Te(d, w) {
1495
+ if (Oe(d))
1496
1496
  return !1;
1497
- var C = typeof l;
1498
- return C == "number" || C == "symbol" || C == "boolean" || l == null || p(l) ? !0 : f.test(l) || !s.test(l) || w != null && l in Object(w);
1497
+ var C = typeof d;
1498
+ return C == "number" || C == "symbol" || C == "boolean" || d == null || h(d) ? !0 : p.test(d) || !o.test(d) || w != null && d in Object(w);
1499
1499
  }
1500
- function Re(l) {
1501
- var w = typeof l;
1502
- return w == "string" || w == "number" || w == "symbol" || w == "boolean" ? l !== "__proto__" : l === null;
1500
+ function Re(d) {
1501
+ var w = typeof d;
1502
+ return w == "string" || w == "number" || w == "symbol" || w == "boolean" ? d !== "__proto__" : d === null;
1503
1503
  }
1504
- function _e(l) {
1505
- return !!E && E in l;
1504
+ function _e(d) {
1505
+ return !!x && x in d;
1506
1506
  }
1507
- var Ce = fe(function(l) {
1508
- l = h(l);
1507
+ var Ce = fe(function(d) {
1508
+ d = A(d);
1509
1509
  var w = [];
1510
- return u.test(l) && w.push(""), l.replace(d, function(C, G, ne, J) {
1511
- w.push(ne ? J.replace(S, "$1") : G || C);
1510
+ return l.test(d) && w.push(""), d.replace(m, function(C, D, ae, K) {
1511
+ w.push(ae ? K.replace(S, "$1") : D || C);
1512
1512
  }), w;
1513
1513
  });
1514
- function Ne(l) {
1515
- if (typeof l == "string" || p(l))
1516
- return l;
1517
- var w = l + "";
1518
- return w == "0" && 1 / l == -1 / 0 ? "-0" : w;
1519
- }
1520
- function le(l) {
1521
- if (l != null) {
1514
+ function Ne(d) {
1515
+ if (typeof d == "string" || h(d))
1516
+ return d;
1517
+ var w = d + "";
1518
+ return w == "0" && 1 / d == -1 / 0 ? "-0" : w;
1519
+ }
1520
+ function le(d) {
1521
+ if (d != null) {
1522
1522
  try {
1523
- return I.call(l);
1523
+ return I.call(d);
1524
1524
  } catch {
1525
1525
  }
1526
1526
  try {
1527
- return l + "";
1527
+ return d + "";
1528
1528
  } catch {
1529
1529
  }
1530
1530
  }
1531
1531
  return "";
1532
1532
  }
1533
- function fe(l, w) {
1534
- if (typeof l != "function" || w && typeof w != "function")
1533
+ function fe(d, w) {
1534
+ if (typeof d != "function" || w && typeof w != "function")
1535
1535
  throw new TypeError(e);
1536
1536
  var C = function() {
1537
- var G = arguments, ne = w ? w.apply(this, G) : G[0], J = C.cache;
1538
- if (J.has(ne))
1539
- return J.get(ne);
1540
- var O = l.apply(this, G);
1541
- return C.cache = J.set(ne, O), O;
1537
+ var D = arguments, ae = w ? w.apply(this, D) : D[0], K = C.cache;
1538
+ if (K.has(ae))
1539
+ return K.get(ae);
1540
+ var M = d.apply(this, D);
1541
+ return C.cache = K.set(ae, M), M;
1542
1542
  };
1543
1543
  return C.cache = new (fe.Cache || oe)(), C;
1544
1544
  }
1545
1545
  fe.Cache = oe;
1546
- function Se(l, w) {
1547
- return l === w || l !== l && w !== w;
1546
+ function Se(d, w) {
1547
+ return d === w || d !== d && w !== w;
1548
1548
  }
1549
1549
  var Oe = Array.isArray;
1550
- function Le(l) {
1551
- var w = he(l) ? k.call(l) : "";
1550
+ function Le(d) {
1551
+ var w = he(d) ? O.call(d) : "";
1552
1552
  return w == a || w == t;
1553
1553
  }
1554
- function he(l) {
1555
- var w = typeof l;
1556
- return !!l && (w == "object" || w == "function");
1554
+ function he(d) {
1555
+ var w = typeof d;
1556
+ return !!d && (w == "object" || w == "function");
1557
1557
  }
1558
- function ge(l) {
1559
- return !!l && typeof l == "object";
1558
+ function ge(d) {
1559
+ return !!d && typeof d == "object";
1560
1560
  }
1561
- function p(l) {
1562
- return typeof l == "symbol" || ge(l) && k.call(l) == i;
1561
+ function h(d) {
1562
+ return typeof d == "symbol" || ge(d) && O.call(d) == n;
1563
1563
  }
1564
- function h(l) {
1565
- return l == null ? "" : Pe(l);
1564
+ function A(d) {
1565
+ return d == null ? "" : Pe(d);
1566
1566
  }
1567
- function D(l, w, C) {
1568
- var G = l == null ? void 0 : re(l, w);
1569
- return G === void 0 ? C : G;
1567
+ function j(d, w, C) {
1568
+ var D = d == null ? void 0 : ee(d, w);
1569
+ return D === void 0 ? C : D;
1570
1570
  }
1571
- return fr = D, fr;
1571
+ return fr = j, 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", i = "\\u0300-\\u036f\\ufe20-\\ufe23", s = "\\u20d0-\\u20f0", f = "\\u2700-\\u27bf", u = "a-z\\xdf-\\xf6\\xf8-\\xff", d = "\\xac\\xb1\\xd7\\xf7", m = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", S = "\\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", P = "A-Z\\xc0-\\xd6\\xd8-\\xde", v = "\\ufe0e\\ufe0f", g = d + m + S + A, x = "['’]", o = "[" + t + "]", n = "[" + g + "]", c = "[" + i + s + "]", y = "\\d+", b = "[" + f + "]", E = "[" + u + "]", I = "[^" + t + g + y + f + u + P + "]", R = "\\ud83c[\\udffb-\\udfff]", k = "(?:" + c + "|" + R + ")", j = "[^" + t + "]", F = "(?:\\ud83c[\\udde6-\\uddff]){2}", N = "[\\ud800-\\udbff][\\udc00-\\udfff]", _ = "[" + P + "]", L = "\\u200d", B = "(?:" + E + "|" + I + ")", $ = "(?:" + _ + "|" + I + ")", W = "(?:" + x + "(?:d|ll|m|re|s|t|ve))?", T = "(?:" + x + "(?:D|LL|M|RE|S|T|VE))?", z = k + "?", H = "[" + v + "]?", X = "(?:" + L + "(?:" + [j, F, N].join("|") + ")" + H + z + ")*", ee = H + z + X, K = "(?:" + [b, F, N].join("|") + ")" + ee, ie = "(?:" + [j + c + "?", c, F, N, o].join("|") + ")", te = RegExp(x, "g"), ae = RegExp(c, "g"), ce = RegExp(R + "(?=" + R + ")|" + ie + ee, "g"), ue = RegExp([
1580
- _ + "?" + E + "+" + W + "(?=" + [n, _, "$"].join("|") + ")",
1581
- $ + "+" + T + "(?=" + [n, _ + B, "$"].join("|") + ")",
1582
- _ + "?" + B + "+" + W,
1583
- _ + "+" + T,
1584
- y,
1585
- K
1586
- ].join("|"), "g"), oe = RegExp("[" + L + t + i + s + v + "]"), 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 = {
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", p = "\\u2700-\\u27bf", l = "a-z\\xdf-\\xf6\\xf8-\\xff", m = "\\xac\\xb1\\xd7\\xf7", y = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", S = "\\u2000-\\u206f", b = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", E = "A-Z\\xc0-\\xd6\\xd8-\\xde", i = "\\ufe0e\\ufe0f", s = m + y + S + b, f = "['’]", c = "[" + t + "]", u = "[" + s + "]", v = "[" + n + o + "]", g = "\\d+", P = "[" + p + "]", x = "[" + l + "]", I = "[^" + t + s + g + p + l + E + "]", k = "\\ud83c[\\udffb-\\udfff]", O = "(?:" + v + "|" + k + ")", G = "[^" + t + "]", B = "(?:\\ud83c[\\udde6-\\uddff]){2}", F = "[\\ud800-\\udbff][\\udc00-\\udfff]", $ = "[" + E + "]", L = "\\u200d", R = "(?:" + x + "|" + I + ")", _ = "(?:" + $ + "|" + I + ")", z = "(?:" + f + "(?:d|ll|m|re|s|t|ve))?", N = "(?:" + f + "(?:D|LL|M|RE|S|T|VE))?", Z = O + "?", Q = "[" + i + "]?", ne = "(?:" + L + "(?:" + [G, B, F].join("|") + ")" + Q + Z + ")*", X = Q + Z + ne, W = "(?:" + [P, B, F].join("|") + ")" + X, ie = "(?:" + [G + v + "?", v, B, F, c].join("|") + ")", re = RegExp(f, "g"), te = RegExp(v, "g"), ce = RegExp(k + "(?=" + k + ")|" + ie + X, "g"), ue = RegExp([
1580
+ $ + "?" + x + "+" + z + "(?=" + [u, $, "$"].join("|") + ")",
1581
+ _ + "+" + N + "(?=" + [u, $ + R, "$"].join("|") + ")",
1582
+ $ + "?" + R + "+" + z,
1583
+ $ + "+" + N,
1584
+ g,
1585
+ W
1586
+ ].join("|"), "g"), oe = RegExp("[" + L + t + n + o + i + "]"), 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,91 +1777,91 @@ 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 Z(O, U, V, q) {
1781
- for (var Y = -1, we = O ? O.length : 0; ++Y < we; )
1782
- V = U(V, O[Y], Y, O);
1780
+ function J(M, U, V, H) {
1781
+ for (var Y = -1, we = M ? M.length : 0; ++Y < we; )
1782
+ V = U(V, M[Y], Y, M);
1783
1783
  return V;
1784
1784
  }
1785
- function re(O) {
1786
- return O.split("");
1785
+ function ee(M) {
1786
+ return M.split("");
1787
1787
  }
1788
- function ke(O) {
1789
- return O.match(r) || [];
1788
+ function Ie(M) {
1789
+ return M.match(r) || [];
1790
1790
  }
1791
- function Pe(O) {
1791
+ function Pe(M) {
1792
1792
  return function(U) {
1793
- return O?.[U];
1793
+ return M?.[U];
1794
1794
  };
1795
1795
  }
1796
- var Ie = Pe(pe);
1797
- function me(O) {
1798
- return oe.test(O);
1796
+ var ke = Pe(pe);
1797
+ function me(M) {
1798
+ return oe.test(M);
1799
1799
  }
1800
- function xe(O) {
1801
- return de.test(O);
1800
+ function xe(M) {
1801
+ return de.test(M);
1802
1802
  }
1803
- function Te(O) {
1804
- return me(O) ? Re(O) : re(O);
1803
+ function Te(M) {
1804
+ return me(M) ? Re(M) : ee(M);
1805
1805
  }
1806
- function Re(O) {
1807
- return O.match(ce) || [];
1806
+ function Re(M) {
1807
+ return M.match(ce) || [];
1808
1808
  }
1809
- function _e(O) {
1810
- return O.match(ue) || [];
1809
+ function _e(M) {
1810
+ return M.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(O, U, V) {
1814
- var q = -1, Y = O.length;
1813
+ function Oe(M, U, V) {
1814
+ var H = -1, Y = M.length;
1815
1815
  U < 0 && (U = -U > Y ? 0 : Y + U), V = V > Y ? Y : V, V < 0 && (V += Y), Y = U > V ? 0 : V - U >>> 0, U >>>= 0;
1816
- for (var we = Array(Y); ++q < Y; )
1817
- we[q] = O[q + U];
1816
+ for (var we = Array(Y); ++H < Y; )
1817
+ we[H] = M[H + U];
1818
1818
  return we;
1819
1819
  }
1820
- function Le(O) {
1821
- if (typeof O == "string")
1822
- return O;
1823
- if (D(O))
1824
- return Se ? Se.call(O) : "";
1825
- var U = O + "";
1826
- return U == "0" && 1 / O == -1 / 0 ? "-0" : U;
1820
+ function Le(M) {
1821
+ if (typeof M == "string")
1822
+ return M;
1823
+ if (j(M))
1824
+ return Se ? Se.call(M) : "";
1825
+ var U = M + "";
1826
+ return U == "0" && 1 / M == -1 / 0 ? "-0" : U;
1827
1827
  }
1828
- function he(O, U, V) {
1829
- var q = O.length;
1830
- return V = V === void 0 ? q : V, !U && V >= q ? O : Oe(O, U, V);
1828
+ function he(M, U, V) {
1829
+ var H = M.length;
1830
+ return V = V === void 0 ? H : V, !U && V >= H ? M : Oe(M, U, V);
1831
1831
  }
1832
- function ge(O) {
1832
+ function ge(M) {
1833
1833
  return function(U) {
1834
- U = l(U);
1835
- var V = me(U) ? Te(U) : void 0, q = V ? V[0] : U.charAt(0), Y = V ? he(V, 1).join("") : U.slice(1);
1836
- return q[O]() + Y;
1834
+ U = d(U);
1835
+ var V = me(U) ? Te(U) : void 0, H = V ? V[0] : U.charAt(0), Y = V ? he(V, 1).join("") : U.slice(1);
1836
+ return H[M]() + Y;
1837
1837
  };
1838
1838
  }
1839
- function p(O) {
1839
+ function h(M) {
1840
1840
  return function(U) {
1841
- return Z(J(G(U).replace(te, "")), O, "");
1841
+ return J(K(D(U).replace(re, "")), M, "");
1842
1842
  };
1843
1843
  }
1844
- function h(O) {
1845
- return !!O && typeof O == "object";
1844
+ function A(M) {
1845
+ return !!M && typeof M == "object";
1846
1846
  }
1847
- function D(O) {
1848
- return typeof O == "symbol" || h(O) && Ne.call(O) == e;
1847
+ function j(M) {
1848
+ return typeof M == "symbol" || A(M) && Ne.call(M) == e;
1849
1849
  }
1850
- function l(O) {
1851
- return O == null ? "" : Le(O);
1850
+ function d(M) {
1851
+ return M == null ? "" : Le(M);
1852
1852
  }
1853
- var w = p(function(O, U, V) {
1854
- return U = U.toLowerCase(), O + (V ? C(U) : U);
1853
+ var w = h(function(M, U, V) {
1854
+ return U = U.toLowerCase(), M + (V ? C(U) : U);
1855
1855
  });
1856
- function C(O) {
1857
- return ne(l(O).toLowerCase());
1856
+ function C(M) {
1857
+ return ae(d(M).toLowerCase());
1858
1858
  }
1859
- function G(O) {
1860
- return O = l(O), O && O.replace(a, Ie).replace(ae, "");
1859
+ function D(M) {
1860
+ return M = d(M), M && M.replace(a, ke).replace(te, "");
1861
1861
  }
1862
- var ne = ge("toUpperCase");
1863
- function J(O, U, V) {
1864
- return O = l(O), U = U, U === void 0 ? xe(O) ? _e(O) : ke(O) : O.match(U) || [];
1862
+ var ae = ge("toUpperCase");
1863
+ function K(M, U, V) {
1864
+ return M = d(M), U = U, U === void 0 ? xe(M) ? _e(M) : Ie(M) : M.match(U) || [];
1865
1865
  }
1866
1866
  return dr = w, dr;
1867
1867
  }
@@ -1873,46 +1873,46 @@ 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(f) {
1877
- return typeof f;
1878
- } : function(f) {
1879
- return f && typeof Symbol == "function" && f.constructor === Symbol && f !== Symbol.prototype ? "symbol" : typeof f;
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", i = typeof window < "u" && window.name === "nodejs" || typeof navigator < "u" && (navigator.userAgent.includes("Node.js") || navigator.userAgent.includes("jsdom")), s = typeof Deno < "u" && typeof Deno.core < "u";
1881
- return ve.isBrowser = r, ve.isWebWorker = t, ve.isNode = a, ve.isJsDom = i, ve.isDeno = s, ve;
1876
+ var e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(p) {
1877
+ return typeof p;
1878
+ } : function(p) {
1879
+ return p && typeof Symbol == "function" && p.constructor === Symbol && p !== Symbol.prototype ? "symbol" : typeof p;
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
+ return ve.isBrowser = r, ve.isWebWorker = t, ve.isNode = a, ve.isJsDom = n, ve.isDeno = o, ve;
1882
1882
  }
1883
1883
  bt();
1884
- const M = {}, De = {};
1885
- M.loadExternalScript = function(e) {
1884
+ const T = {}, De = {};
1885
+ T.loadExternalScript = function(e) {
1886
1886
  if (De[e])
1887
1887
  return De[e];
1888
1888
  const r = De[e] = new Promise(a);
1889
- function a(t, i) {
1889
+ function a(t, n) {
1890
1890
  if (!document)
1891
- return delete De[e], i("document is undefined");
1892
- var s = document.createElement("script");
1893
- s.type = "text/javascript", s.async = !0, s.onload = function() {
1891
+ return delete De[e], n("document is undefined");
1892
+ var o = document.createElement("script");
1893
+ o.type = "text/javascript", o.async = !0, o.onload = function() {
1894
1894
  return console.log("Loaded external script", e), t(e);
1895
- }, s.src = e, document.head.appendChild(s);
1895
+ }, o.src = e, document.head.appendChild(o);
1896
1896
  }
1897
1897
  return r;
1898
1898
  };
1899
1899
  const Vr = {};
1900
- M.loadExternalStyle = function(e) {
1900
+ T.loadExternalStyle = function(e) {
1901
1901
  const r = new Promise(a);
1902
- function a(t, i) {
1902
+ function a(t, n) {
1903
1903
  if (!document)
1904
- return i("document is undefined");
1904
+ return n("document is undefined");
1905
1905
  if (Vr[e])
1906
1906
  return t(e);
1907
1907
  Vr[e] = !0;
1908
- var s = document.createElement("link");
1909
- s.setAttribute("rel", "stylesheet"), s.setAttribute("type", "text/css"), s.setAttribute("href", e), s.onload = function() {
1908
+ var o = document.createElement("link");
1909
+ o.setAttribute("rel", "stylesheet"), o.setAttribute("type", "text/css"), o.setAttribute("href", e), o.onload = function() {
1910
1910
  return console.log("Loaded external stylesheet", e), t(e);
1911
- }, document.head.appendChild(s);
1911
+ }, document.head.appendChild(o);
1912
1912
  }
1913
1913
  return r;
1914
1914
  };
1915
- M.exists = function(e) {
1915
+ T.exists = function(e) {
1916
1916
  var r;
1917
1917
  if (Array.isArray(e) || e === 0)
1918
1918
  return !0;
@@ -1934,7 +1934,7 @@ M.exists = function(e) {
1934
1934
  }
1935
1935
  return !r;
1936
1936
  };
1937
- M.parseDate = function(e) {
1937
+ T.parseDate = function(e) {
1938
1938
  if (e) {
1939
1939
  if (e instanceof Date)
1940
1940
  return e;
@@ -1943,88 +1943,88 @@ M.parseDate = function(e) {
1943
1943
  return r;
1944
1944
  }
1945
1945
  };
1946
- M.parseURL = function(e) {
1946
+ T.parseURL = function(e) {
1947
1947
  if (!e)
1948
1948
  return !1;
1949
1949
  if (e.startsWith("/") || e.startsWith("://") || e.startsWith("mailto:") || e.startsWith("tel:") || e.startsWith("sms:"))
1950
1950
  return e;
1951
- var a = M.parseEmail(e);
1951
+ var a = T.parseEmail(e);
1952
1952
  if (a && a === e)
1953
1953
  return `mailto:${a}`;
1954
- const t = (s) => /^https?:\/\//i.test(s) ? s : `http://${s}`;
1954
+ const t = (o) => /^https?:\/\//i.test(o) ? o : `http://${o}`;
1955
1955
  e = t(e), e = e.replace(/\s/g, "");
1956
- var i = RegExp(
1956
+ var n = RegExp(
1957
1957
  "(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+@]*)*(\\?[;&a-z\\d%_.~+=-@]*)?(\\#[-a-z\\d_@]*)?$",
1958
1958
  "i"
1959
1959
  ).test(e);
1960
- return i ? t(e) : !1;
1960
+ return n ? t(e) : !1;
1961
1961
  };
1962
- M.parseNumber = function(e, r) {
1962
+ T.parseNumber = function(e, r) {
1963
1963
  if (!e || (e = Number(e), isNaN(e)))
1964
1964
  return 0;
1965
1965
  if (r) {
1966
1966
  var a = e.toFixed(r);
1967
- e = M.parseNumber(a);
1967
+ e = T.parseNumber(a);
1968
1968
  }
1969
1969
  return e;
1970
1970
  };
1971
- M.isValidEmailAddress = function(e) {
1971
+ T.isValidEmailAddress = function(e) {
1972
1972
  var r = /^[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/;
1973
1973
  if (!e) return !1;
1974
1974
  var a = e.split("@");
1975
1975
  if (a.length !== 2) return !1;
1976
- var t = a[0], i = a[1];
1976
+ var t = a[0], n = a[1];
1977
1977
  if (t.length > 64) return !1;
1978
- if (i.length > 255) return !1;
1979
- var s = i.split(".");
1980
- return !(s.some(function(f) {
1981
- return f.length > 63;
1978
+ if (n.length > 255) return !1;
1979
+ var o = n.split(".");
1980
+ return !(o.some(function(p) {
1981
+ return p.length > 63;
1982
1982
  }) || !r.test(e));
1983
1983
  };
1984
- M.parseEmail = function(e) {
1984
+ T.parseEmail = function(e) {
1985
1985
  if (!e)
1986
1986
  return !1;
1987
- var r = String(e).toLowerCase(), a = M.isValidEmailAddress(r);
1987
+ var r = String(e).toLowerCase(), a = T.isValidEmailAddress(r);
1988
1988
  return a ? r : !1;
1989
1989
  };
1990
- M.parseInt = function(e) {
1990
+ T.parseInt = function(e) {
1991
1991
  return !e || (e = parseInt(e), isNaN(e)) ? 0 : e;
1992
1992
  };
1993
- M.cleanValue = function(e, r, a) {
1993
+ T.cleanValue = function(e, r, a) {
1994
1994
  a || (a = {});
1995
- var t = M.exists(e);
1995
+ var t = T.exists(e);
1996
1996
  if (a.strict && t && r != "boolean")
1997
1997
  return e;
1998
1998
  switch (r) {
1999
1999
  case "reference":
2000
- return M.id(e, !0);
2000
+ return T.id(e, !0);
2001
2001
  case "boolean":
2002
- return M.parseBoolean(e);
2002
+ return T.parseBoolean(e);
2003
2003
  case "url":
2004
- return M.parseURL(e);
2004
+ return T.parseURL(e);
2005
2005
  case "key":
2006
- return M.machineName(e);
2006
+ return T.machineName(e);
2007
2007
  case "email":
2008
- return M.parseEmail(e);
2008
+ return T.parseEmail(e);
2009
2009
  case "date":
2010
- var i = M.parseDate(e, a);
2011
- return i === void 0 ? void 0 : i;
2010
+ var n = T.parseDate(e, a);
2011
+ return n === void 0 ? void 0 : n;
2012
2012
  case "number":
2013
2013
  case "decimal":
2014
2014
  case "float":
2015
- var s = M.parseNumber(e);
2016
- return String(s) == String(Number(e)) ? s : void 0;
2015
+ var o = T.parseNumber(e);
2016
+ return String(o) == String(Number(e)) ? o : void 0;
2017
2017
  case "integer":
2018
- var s = M.parseInt(e);
2019
- return String(s) == String(parseInt(e)) ? s : void 0;
2018
+ var o = T.parseInt(e);
2019
+ return String(o) == String(parseInt(e)) ? o : void 0;
2020
2020
  case "group":
2021
2021
  return e;
2022
2022
  case "object":
2023
2023
  return typeof e == "object" && e !== null && !Array.isArray(e) ? e : void 0;
2024
2024
  case "string":
2025
- if (M.exists(e)) {
2026
- var f = String(e);
2027
- return f == "[object Object]" ? void 0 : f;
2025
+ if (T.exists(e)) {
2026
+ var p = String(e);
2027
+ return p == "[object Object]" ? void 0 : p;
2028
2028
  } else
2029
2029
  return;
2030
2030
  // if(!data) {
@@ -2042,59 +2042,59 @@ M.cleanValue = function(e, r, a) {
2042
2042
  return String(e);
2043
2043
  }
2044
2044
  };
2045
- M.isValidValue = function(e, r, a) {
2046
- var t = M.exists(e), i = typeof e == "number", s = !1;
2045
+ T.isValidValue = function(e, r, a) {
2046
+ var t = T.exists(e), n = typeof e == "number", o = !1;
2047
2047
  if (!t)
2048
2048
  return !1;
2049
2049
  switch (r) {
2050
2050
  case "url":
2051
- a ? s = e.startsWith("/") || e.startsWith("://") || e.startsWith("http://") || e.startsWith("https://") : s = String(e) === M.parseURL(e);
2051
+ a ? o = e.startsWith("/") || e.startsWith("://") || e.startsWith("http://") || e.startsWith("https://") : o = String(e) === T.parseURL(e);
2052
2052
  break;
2053
2053
  case "key":
2054
- s = String(e) === M.machineName(e);
2054
+ o = String(e) === T.machineName(e);
2055
2055
  break;
2056
2056
  case "date":
2057
2057
  if (a && (typeof e != "object" || !(e instanceof Date)))
2058
2058
  return !1;
2059
- var f = M.parseDate(e);
2060
- return f !== void 0;
2059
+ var p = T.parseDate(e);
2060
+ return p !== void 0;
2061
2061
  case "email":
2062
- a ? s = e === M.parseEmail(e) : s = String(e).toLowerCase() === M.parseEmail(e);
2062
+ a ? o = e === T.parseEmail(e) : o = String(e).toLowerCase() === T.parseEmail(e);
2063
2063
  break;
2064
2064
  case "number":
2065
2065
  case "decimal":
2066
2066
  case "float":
2067
- a ? s = i && Number(e) === M.parseNumber(e) : s = Number(e) === M.parseNumber(e);
2067
+ a ? o = n && Number(e) === T.parseNumber(e) : o = Number(e) === T.parseNumber(e);
2068
2068
  break;
2069
2069
  case "integer":
2070
- a ? s = i && Number(e) === M.parseInt(e) : s = Number(e) === M.parseInt(e);
2070
+ a ? o = n && Number(e) === T.parseInt(e) : o = Number(e) === T.parseInt(e);
2071
2071
  break;
2072
2072
  case "boolean":
2073
- var f = M.parseBoolean(e);
2074
- a ? (e === !0 || e === !1) && (s = e === f) : s = f === !0 || f === !1;
2073
+ var p = T.parseBoolean(e);
2074
+ a ? (e === !0 || e === !1) && (o = e === p) : o = p === !0 || p === !1;
2075
2075
  break;
2076
2076
  case "reference":
2077
- a ? s = String(e) === M.id(e) : s = !!M.id(e);
2077
+ a ? o = String(e) === T.id(e) : o = !!T.id(e);
2078
2078
  break;
2079
2079
  case "string":
2080
- var u = String(e);
2081
- if (a && typeof e != "string" || u == "[object Object]")
2080
+ var l = String(e);
2081
+ if (a && typeof e != "string" || l == "[object Object]")
2082
2082
  return !1;
2083
- s = !0;
2083
+ o = !0;
2084
2084
  break;
2085
2085
  // case 'group':
2086
2086
  // isValidEntry = _isObject(value);
2087
2087
  // break;
2088
2088
  case "object":
2089
- s = typeof e == "object" && e !== null && !Array.isArray(e);
2089
+ o = typeof e == "object" && e !== null && !Array.isArray(e);
2090
2090
  break;
2091
2091
  case "array":
2092
- s = Array.isArray(e);
2092
+ o = Array.isArray(e);
2093
2093
  break;
2094
2094
  }
2095
- return s;
2095
+ return o;
2096
2096
  };
2097
- M.parseBoolean = function(e) {
2097
+ T.parseBoolean = function(e) {
2098
2098
  switch (String(e).toLowerCase()) {
2099
2099
  case "true":
2100
2100
  case "y":
@@ -2117,47 +2117,47 @@ M.parseBoolean = function(e) {
2117
2117
  }
2118
2118
  return !!e;
2119
2119
  };
2120
- M.clone = function(e) {
2120
+ T.clone = function(e) {
2121
2121
  return JSON.parse(JSON.stringify(e));
2122
2122
  };
2123
- M.getAllFields = function(e) {
2123
+ T.getAllFields = function(e) {
2124
2124
  const r = e.definesType === "profile" || e.key === "profile", a = e.definesType === "submission";
2125
- var t = [...e.fields], i = e.definedFields || [];
2126
- if (i.length)
2125
+ var t = [...e.fields], n = e.definedFields || [];
2126
+ if (n.length)
2127
2127
  if (a) {
2128
- var s = {
2128
+ var o = {
2129
2129
  title: "Form Data",
2130
2130
  minimum: 1,
2131
2131
  maximum: 1,
2132
2132
  key: "formData",
2133
2133
  asObject: !0,
2134
2134
  type: "group",
2135
- fields: i
2135
+ fields: n
2136
2136
  };
2137
- t.push(s);
2138
- var f = {
2137
+ t.push(o);
2138
+ var p = {
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: i.map(function(m) {
2146
- return m.type === "reference" && (m = JSON.parse(JSON.stringify(m)), delete m.fields), m;
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(f);
2149
+ t.push(p);
2150
2150
  } else {
2151
- var f = {
2151
+ var p = {
2152
2152
  title: `${e.title}`,
2153
2153
  minimum: 1,
2154
2154
  maximum: 1,
2155
2155
  key: "data",
2156
2156
  asObject: !0,
2157
2157
  type: "group",
2158
- fields: i
2158
+ fields: n
2159
2159
  };
2160
- t.push(f);
2160
+ t.push(p);
2161
2161
  }
2162
2162
  r && (t.push({
2163
2163
  title: "Age",
@@ -2172,53 +2172,53 @@ M.getAllFields = function(e) {
2172
2172
  maximum: 1,
2173
2173
  type: "date"
2174
2174
  }));
2175
- var u = M.mapFields(t).filter(function(d) {
2176
- var m = d.type == "group" && d.asObject && d.minimum == 1 && d.maximum == 1;
2177
- return !m;
2178
- }).map(function(d) {
2179
- return d.title = d.filterTitle || d.titles.filter(Boolean).join(" › "), d;
2180
- }).sort(function(d, m) {
2181
- return d.title < m.title ? -1 : 1;
2175
+ var l = T.mapFields(t).filter(function(m) {
2176
+ var y = m.type == "group" && m.asObject && m.minimum == 1 && m.maximum == 1;
2177
+ return !y;
2178
+ }).map(function(m) {
2179
+ return m.title = m.filterTitle || m.titles.filter(Boolean).join(" › "), m;
2180
+ }).sort(function(m, y) {
2181
+ return m.title < y.title ? -1 : 1;
2182
2182
  });
2183
- return u;
2183
+ return l;
2184
2184
  };
2185
- M.mapFields = function(e, r) {
2185
+ T.mapFields = function(e, r) {
2186
2186
  r || (r = {});
2187
- var a = [], t = [], i = [], s = 1, f = r.depth, u = r.arrayDelimeter || "[]";
2188
- e.forEach(d);
2189
- function d(m, S) {
2190
- var A = m.key, P = m.type == "group", v = m.minimum === m.maximum && m.minimum === 1, g = m.asObject, x = P && !g, o = r.original ? m : M.clone(m);
2191
- o.trail = t.slice(), o.trail.push(A), o.path = o.trail.join("."), o.titles = i.slice(), o.titles.push(m.filterTitle || m.title || ""), (!x || r.includeLayout) && a.push(o);
2192
- var c = f && s >= f;
2193
- if (m.fields && m.fields.length)
2194
- if (x)
2195
- m.fields.forEach(d);
2187
+ var a = [], t = [], n = [], o = 1, p = r.depth, l = r.arrayDelimeter || "[]";
2188
+ e.forEach(m);
2189
+ function m(y, S) {
2190
+ var b = y.key, E = y.type == "group", i = y.minimum === y.maximum && y.minimum === 1, s = y.asObject, f = E && !s, c = r.original ? y : T.clone(y);
2191
+ c.trail = t.slice(), c.trail.push(b), c.path = c.trail.join("."), c.titles = n.slice(), c.titles.push(y.filterTitle || y.title || ""), (!f || r.includeLayout) && a.push(c);
2192
+ var v = p && o >= p;
2193
+ if (y.fields && y.fields.length)
2194
+ if (f)
2195
+ y.fields.forEach(m);
2196
2196
  else {
2197
- if (c)
2197
+ if (v)
2198
2198
  return;
2199
- s++;
2200
- let y = A;
2201
- r.includeArrayDelimeter && (v || (y = `${A}${u}`)), t.push(y), i.push(m.filterTitle || m.title), m.fields.forEach(d), s--, t.pop(), i.pop();
2199
+ o++;
2200
+ let g = b;
2201
+ r.includeArrayDelimeter && (i || (g = `${b}${l}`)), t.push(g), n.push(y.filterTitle || y.title), y.fields.forEach(m), o--, t.pop(), n.pop();
2202
2202
  }
2203
2203
  }
2204
2204
  return a;
2205
2205
  };
2206
- M.mapParameters = function(e) {
2206
+ T.mapParameters = function(e) {
2207
2207
  e = e || {};
2208
2208
  var r = [];
2209
2209
  return Object.entries(e).forEach(function([a, t]) {
2210
- t == null || t == !1 || (Array.isArray(t) ? t.forEach(function(i) {
2211
- r.push(`${a}=${encodeURIComponent(i)}`);
2210
+ t == null || t == !1 || (Array.isArray(t) ? t.forEach(function(n) {
2211
+ r.push(`${a}=${encodeURIComponent(n)}`);
2212
2212
  }) : r.push(encodeURIComponent(a) + "=" + encodeURIComponent(t)));
2213
2213
  }), r.join("&");
2214
2214
  };
2215
- M.formatCurrency = function(e, r, a) {
2215
+ T.formatCurrency = function(e, r, a) {
2216
2216
  (!e || isNaN(e)) && (e = 0), a = a || 2;
2217
- var t = M.currencySymbol(r);
2217
+ var t = T.currencySymbol(r);
2218
2218
  return `${t}${parseFloat(Number(e) / 100).toFixed(a)}`;
2219
2219
  };
2220
- M.getTypeFromID = function(e) {
2221
- if (e = M.id(e), !e)
2220
+ T.getTypeFromID = function(e) {
2221
+ if (e = T.id(e), !e)
2222
2222
  return;
2223
2223
  const r = {
2224
2224
  21: "organisation",
@@ -2280,7 +2280,7 @@ M.getTypeFromID = function(e) {
2280
2280
  var a = e.slice(8, 10);
2281
2281
  return r[a];
2282
2282
  };
2283
- M.currencySymbol = function(e) {
2283
+ T.currencySymbol = function(e) {
2284
2284
  switch (e = String(e).toLowerCase(), String(e).toLowerCase()) {
2285
2285
  case "gbp":
2286
2286
  return "£";
@@ -2290,138 +2290,138 @@ M.currencySymbol = function(e) {
2290
2290
  return "$";
2291
2291
  }
2292
2292
  };
2293
- M.getAvailableCurrencies = function(e) {
2293
+ T.getAvailableCurrencies = function(e) {
2294
2294
  var r = [];
2295
2295
  if (r.push({
2296
- name: `USD (${M.currencySymbol("usd")})`,
2296
+ name: `USD (${T.currencySymbol("usd")})`,
2297
2297
  value: "usd",
2298
2298
  countryCode: { US: !0 }
2299
2299
  }), r.push({
2300
- name: `GBP (${M.currencySymbol("gbp")})`,
2300
+ name: `GBP (${T.currencySymbol("gbp")})`,
2301
2301
  value: "gbp",
2302
2302
  countryCode: { GB: !0, UK: !0 }
2303
2303
  }), r.push({
2304
- name: `CAD (${M.currencySymbol("cad")})`,
2304
+ name: `CAD (${T.currencySymbol("cad")})`,
2305
2305
  value: "cad",
2306
2306
  countryCode: { CA: !0 }
2307
2307
  }), r.push({
2308
- name: `AUD (${M.currencySymbol("aud")})`,
2308
+ name: `AUD (${T.currencySymbol("aud")})`,
2309
2309
  value: "aud",
2310
2310
  countryCode: { AU: !0 }
2311
2311
  }), r.push({
2312
- name: `NZD (${M.currencySymbol("nzd")})`,
2312
+ name: `NZD (${T.currencySymbol("nzd")})`,
2313
2313
  value: "nzd",
2314
2314
  countryCode: { NZ: !0 }
2315
2315
  }), r.push({
2316
- name: `SGD (${M.currencySymbol("sgd")})`,
2316
+ name: `SGD (${T.currencySymbol("sgd")})`,
2317
2317
  value: "sgd",
2318
2318
  countryCode: { SG: !0 }
2319
2319
  }), e) {
2320
- var a = r.findIndex(function(i) {
2321
- return i.countryCode[e];
2320
+ var a = r.findIndex(function(n) {
2321
+ return n.countryCode[e];
2322
2322
  });
2323
- const t = (i, s, f) => {
2324
- const u = [...i];
2325
- return u.splice(f, 0, ...u.splice(s, 1)), u;
2323
+ const t = (n, o, p) => {
2324
+ const l = [...n];
2325
+ return l.splice(p, 0, ...l.splice(o, 1)), l;
2326
2326
  };
2327
2327
  a != -1 && (r = t(r, a, 0));
2328
2328
  }
2329
2329
  return r;
2330
2330
  };
2331
- M.hash = function(e, r) {
2331
+ T.hash = function(e, r) {
2332
2332
  return e = Array.isArray(e) ? e : [], e.reduce(function(a, t) {
2333
- const i = r ? Ue(t, r) : t;
2334
- return a[i] = t, a;
2333
+ const n = r ? Ue(t, r) : t;
2334
+ return a[n] = t, a;
2335
2335
  }, {});
2336
2336
  };
2337
- M.extractFromArray = function(e, r, a, t, i, s, f) {
2338
- f = f || {}, a && (f.sum = a), t && (f.flatten = !0), i && (f.unique = !0), s && (f.excludeNull = !0);
2339
- var u = e.reduce(function(d, m) {
2340
- var S = Ue(m, r), A = !S && S !== !1 && S !== 0;
2341
- return f.excludeNull && A || d.push(S), d;
2337
+ T.extractFromArray = function(e, r, a, t, n, o, p) {
2338
+ p = p || {}, a && (p.sum = a), t && (p.flatten = !0), n && (p.unique = !0), o && (p.excludeNull = !0);
2339
+ var l = e.reduce(function(m, y) {
2340
+ var S = Ue(y, r), b = !S && S !== !1 && S !== 0;
2341
+ return p.excludeNull && b || m.push(S), m;
2342
2342
  }, []);
2343
- return f.flatten && (u = u.flat()), f.unique && (u = [...new Set(u)]), f.sum && (u = u.reduce(function(d, m) {
2344
- return d + m;
2345
- }, 0)), u;
2343
+ return p.flatten && (l = l.flat()), p.unique && (l = [...new Set(l)]), p.sum && (l = l.reduce(function(m, y) {
2344
+ return m + y;
2345
+ }, 0)), l;
2346
2346
  };
2347
- M.matchInArray = function(e, r, a, t) {
2348
- var i = e.filter(function(s) {
2349
- var f = Ue(s, r), u;
2347
+ T.matchInArray = function(e, r, a, t) {
2348
+ var n = e.filter(function(o) {
2349
+ var p = Ue(o, r), l;
2350
2350
  switch (t) {
2351
2351
  case "in":
2352
- u = f.includes(a);
2352
+ l = p.includes(a);
2353
2353
  break;
2354
2354
  case ">=":
2355
- u = f >= a;
2355
+ l = p >= a;
2356
2356
  break;
2357
2357
  case "<=":
2358
- u = f <= a;
2358
+ l = p <= a;
2359
2359
  break;
2360
2360
  case "<":
2361
- u = f < a;
2361
+ l = p < a;
2362
2362
  break;
2363
2363
  case ">":
2364
- u = f > a;
2364
+ l = p > a;
2365
2365
  break;
2366
2366
  case "==":
2367
2367
  default:
2368
- a === void 0 ? u = f : u = f == a;
2368
+ a === void 0 ? l = p : l = p == a;
2369
2369
  break;
2370
2370
  }
2371
- return u;
2371
+ return l;
2372
2372
  });
2373
- return i;
2373
+ return n;
2374
2374
  };
2375
- M.comma = function(e, r, a) {
2375
+ T.comma = function(e, r, a) {
2376
2376
  return a && (e = e.slice(0, a)), e.filter(function(t) {
2377
2377
  return t != null && t !== void 0 && t !== "";
2378
2378
  }).map(function(t) {
2379
2379
  return r && r.length ? Ue(t, r) : t;
2380
2380
  }).join(", ");
2381
2381
  };
2382
- M.id = function(e) {
2382
+ T.id = function(e) {
2383
2383
  if (e) {
2384
2384
  var r;
2385
2385
  e._id ? r = String(e._id) : r = String(e);
2386
- var a = M.isValidID(r);
2386
+ var a = T.isValidID(r);
2387
2387
  if (a)
2388
2388
  return r;
2389
2389
  }
2390
2390
  };
2391
- M.ids = function(e) {
2391
+ T.ids = function(e) {
2392
2392
  if (!e)
2393
2393
  return [];
2394
2394
  var r = Object.keys(
2395
2395
  e.reduce(function(a, t) {
2396
2396
  if (!t)
2397
2397
  return a;
2398
- var i = M.id(t);
2399
- return i && (a[i] = 1), a;
2398
+ var n = T.id(t);
2399
+ return n && (a[n] = 1), a;
2400
2400
  }, {})
2401
2401
  );
2402
2402
  return r;
2403
2403
  };
2404
- M.isValidID = function(e) {
2404
+ T.isValidID = function(e) {
2405
2405
  var r = new RegExp("^[0-9a-fA-F]{24}$");
2406
2406
  return r.test(String(e));
2407
2407
  };
2408
- M.errorMessage = function(e) {
2408
+ T.errorMessage = function(e) {
2409
2409
  if (e) {
2410
2410
  Array.isArray(e) && (e = e[0]);
2411
2411
  var r = ["response.data.message", "response.data", "message"], a;
2412
2412
  return r.forEach(function(t) {
2413
2413
  if (!a) {
2414
- var i = Ue(e, t);
2415
- i && (a = i);
2414
+ var n = Ue(e, t);
2415
+ n && (a = n);
2416
2416
  }
2417
2417
  }), Array.isArray(a) && (a = a[0]), a = a || JSON.stringify(e), a;
2418
2418
  }
2419
2419
  };
2420
- M.guid = function() {
2420
+ T.guid = function() {
2421
2421
  var e = (/* @__PURE__ */ new Date()).getTime().toString(16) + Math.random().toString(16).substring(2) + "0".repeat(16);
2422
2422
  return e.substr(0, 8) + "-" + e.substr(8, 4) + "-4000-8" + e.substr(12, 3) + "-" + e.substr(15, 12);
2423
2423
  };
2424
- M.machineName = function(e) {
2424
+ T.machineName = function(e) {
2425
2425
  if (!(!e || !e.length)) {
2426
2426
  var r = /[^a-zA-Z0-9-_]+/g;
2427
2427
  return String(e).replace(r, " ").split("_").map((a) => At(a)).join("_");
@@ -2432,21 +2432,21 @@ function je() {
2432
2432
  return r.removeAllListeners = function() {
2433
2433
  e = {};
2434
2434
  }, r.dispatch = function(a, t) {
2435
- e[a] && e[a].forEach(function(i) {
2436
- return i(t);
2435
+ e[a] && e[a].forEach(function(n) {
2436
+ return n(t);
2437
2437
  });
2438
2438
  }, r.addEventListener = function(a, t) {
2439
2439
  e[a] || (e[a] = []);
2440
- const i = typeof t;
2441
- if (i !== "function")
2440
+ const n = typeof t;
2441
+ if (n !== "function")
2442
2442
  throw new Error(
2443
- `addEventListener() requires a function but ${i} was added`
2443
+ `addEventListener() requires a function but ${n} was added`
2444
2444
  );
2445
2445
  e[a].indexOf(t) == -1 && e[a].push(t);
2446
2446
  }, r.removeEventListener = function(a, t) {
2447
2447
  e[a] || (e[a] = []);
2448
- var i = e[a].indexOf(t);
2449
- i != -1 && e[a].splice(i, 1);
2448
+ var n = e[a].indexOf(t);
2449
+ n != -1 && e[a].splice(n, 1);
2450
2450
  }, r.bootstrap = function(a) {
2451
2451
  a && (a.dispatch = r.dispatch, a.addEventListener = r.addEventListener, a.removeEventListener = r.removeEventListener, a.removeAllListeners = r.removeAllListeners);
2452
2452
  }, r;
@@ -2568,9 +2568,9 @@ class St extends Ve {
2568
2568
  */
2569
2569
  _setCookie(r, a, t = {}) {
2570
2570
  if (typeof document > "u") return;
2571
- const i = { ...this.options, ...t };
2572
- let s = `${r}=${a}`;
2573
- i.domain && (s += `; Domain=${i.domain}`), i.secure && (s += "; Secure"), i.sameSite && (s += `; SameSite=${i.sameSite}`), i.maxAge && (s += `; Max-Age=${i.maxAge}`), document.cookie = s;
2571
+ const n = { ...this.options, ...t };
2572
+ let o = `${r}=${a}`;
2573
+ n.domain && (o += `; Domain=${n.domain}`), n.secure && (o += "; Secure"), n.sameSite && (o += `; SameSite=${n.sameSite}`), n.maxAge && (o += `; Max-Age=${n.maxAge}`), document.cookie = o;
2574
2574
  }
2575
2575
  /**
2576
2576
  * Delete a cookie
@@ -2650,259 +2650,259 @@ var Et = function(e) {
2650
2650
  },
2651
2651
  enumerable: !0
2652
2652
  });
2653
- const i = new je();
2654
- i.bootstrap(t);
2655
- function s(u) {
2656
- var d = r.getUser();
2657
- t.onChange && t.onChange(d), i.dispatch("change", d, u);
2653
+ const n = new je();
2654
+ n.bootstrap(t);
2655
+ function o(l) {
2656
+ var m = r.getUser();
2657
+ t.onChange && t.onChange(m), n.dispatch("change", m, l);
2658
2658
  }
2659
- t.set = function(u, d, m) {
2659
+ t.set = function(l, m, y) {
2660
2660
  const S = r.getUser();
2661
- if (JSON.stringify(S) != JSON.stringify(u) && (r.setUser(u), !m))
2662
- return s(d);
2661
+ if (JSON.stringify(S) != JSON.stringify(l) && (r.setUser(l), !y))
2662
+ return o(m);
2663
2663
  }, t.logout = function() {
2664
- return r.clearUser(), e.cache.reset(), s();
2665
- }, t.changeOrganisation = function(u, d) {
2666
- u = e.utils.id(u), d || (d = {});
2667
- var m = !0;
2668
- return d.disableAutoAuthentication && (m = !1), new Promise(function(S, A) {
2669
- e.api.post(`/user/switch/${u}`).then(function(P) {
2670
- m && (e.cache.reset(), t.set(P.data)), S(P.data);
2671
- }).catch(A);
2664
+ return r.clearUser(), e.cache.reset(), o();
2665
+ }, t.changeOrganisation = function(l, m) {
2666
+ l = e.utils.id(l), m || (m = {});
2667
+ var y = !0;
2668
+ return m.disableAutoAuthentication && (y = !1), new Promise(function(S, b) {
2669
+ e.api.post(`/user/switch/${l}`).then(function(E) {
2670
+ y && (e.cache.reset(), t.set(E.data)), S(E.data);
2671
+ }).catch(b);
2672
2672
  });
2673
- }, t.impersonate = function(u, d) {
2674
- u = e.utils.id(u), d || (d = {});
2675
- var m = !0;
2676
- d.disableAutoAuthentication && (m = !1);
2677
- var S = e.api.post(`/user/impersonate/${u}`);
2678
- return S.then(function(A) {
2679
- m && (e.cache.reset(), t.set(A.data));
2680
- }, function(A) {
2673
+ }, t.impersonate = function(l, m) {
2674
+ l = e.utils.id(l), m || (m = {});
2675
+ var y = !0;
2676
+ m.disableAutoAuthentication && (y = !1);
2677
+ var S = e.api.post(`/user/impersonate/${l}`);
2678
+ return S.then(function(b) {
2679
+ y && (e.cache.reset(), t.set(b.data));
2680
+ }, function(b) {
2681
2681
  }), S;
2682
- }, t.login = async function(u, d) {
2683
- d || (d = {});
2684
- var m = !0;
2685
- d.disableAutoAuthentication && (m = !1);
2686
- var S = new Promise(A);
2687
- function A(P, v) {
2688
- if (!u)
2689
- return v({
2682
+ }, t.login = async function(l, m) {
2683
+ m || (m = {});
2684
+ var y = !0;
2685
+ m.disableAutoAuthentication && (y = !1);
2686
+ var S = new Promise(b);
2687
+ function b(E, i) {
2688
+ if (!l)
2689
+ return i({
2690
2690
  message: "Missing credentials!"
2691
2691
  });
2692
- if (!u.email || !u.email.length)
2693
- return v({
2692
+ if (!l.email || !l.email.length)
2693
+ return i({
2694
2694
  message: "Username was not provided"
2695
2695
  });
2696
- if (!u.password || !u.password.length)
2697
- return v({
2696
+ if (!l.password || !l.password.length)
2697
+ return i({
2698
2698
  message: "Password was not provided"
2699
2699
  });
2700
- var g = {
2700
+ var s = {
2701
2701
  bypassInterceptor: !0
2702
2702
  };
2703
- r.isCookieMode && r.isCookieMode() && (u.useCookies = !0, g.withCredentials = !0);
2704
- var o = `${e.apiURL}/user/login`;
2705
- d.url && (o = d.url), e.api.post(o, u, g).then(function(n) {
2706
- m && t.set(n.data), P(n);
2707
- }, v);
2703
+ r.isCookieMode && r.isCookieMode() && (l.useCookies = !0, s.withCredentials = !0);
2704
+ var c = `${e.apiURL}/user/login`;
2705
+ m.url && (c = m.url), e.api.post(c, l, s).then(function(u) {
2706
+ y && t.set(u.data), E(u);
2707
+ }, i);
2708
2708
  }
2709
2709
  return S;
2710
- }, t.signup = async function(u, d) {
2711
- d || (d = {});
2712
- var m = !0;
2713
- d.disableAutoAuthentication && (m = !1);
2714
- var S = new Promise(A);
2715
- function A(P, v) {
2716
- if (!u)
2717
- return v({
2710
+ }, t.signup = async function(l, m) {
2711
+ m || (m = {});
2712
+ var y = !0;
2713
+ m.disableAutoAuthentication && (y = !1);
2714
+ var S = new Promise(b);
2715
+ function b(E, i) {
2716
+ if (!l)
2717
+ return i({
2718
2718
  message: "No details provided"
2719
2719
  });
2720
- if (!u.firstName || !u.firstName.length)
2721
- return v({
2720
+ if (!l.firstName || !l.firstName.length)
2721
+ return i({
2722
2722
  message: "First Name was not provided"
2723
2723
  });
2724
- if (!u.lastName || !u.lastName.length)
2725
- return v({
2724
+ if (!l.lastName || !l.lastName.length)
2725
+ return i({
2726
2726
  message: "Last Name was not provided"
2727
2727
  });
2728
- if (!u.email || !u.email.length)
2729
- return v({
2728
+ if (!l.email || !l.email.length)
2729
+ return i({
2730
2730
  message: "Email/Username was not provided"
2731
2731
  });
2732
- if (!u.password || !u.password.length)
2733
- return v({
2732
+ if (!l.password || !l.password.length)
2733
+ return i({
2734
2734
  message: "Password was not provided"
2735
2735
  });
2736
- if (!u.confirmPassword || !u.confirmPassword.length)
2737
- return v({
2736
+ if (!l.confirmPassword || !l.confirmPassword.length)
2737
+ return i({
2738
2738
  message: "Confirm Password was not provided"
2739
2739
  });
2740
- if (u.confirmPassword != u.password)
2741
- return v({
2740
+ if (l.confirmPassword != l.password)
2741
+ return i({
2742
2742
  message: "Your passwords do not match"
2743
2743
  });
2744
- var g = {
2744
+ var s = {
2745
2745
  bypassInterceptor: !0
2746
2746
  };
2747
- r.isCookieMode && r.isCookieMode() && (u.useCookies = !0, g.withCredentials = !0);
2748
- var o = `${e.apiURL}/user/signup`;
2749
- d.application && (o = `${e.domain || ""}/qik/application/signup`), d.url && (o = d.url), e.api.post(o, u, g).then(function(n) {
2750
- m && t.set(n.data), P(n);
2751
- }, v);
2747
+ r.isCookieMode && r.isCookieMode() && (l.useCookies = !0, s.withCredentials = !0);
2748
+ var c = `${e.apiURL}/user/signup`;
2749
+ m.application && (c = `${e.domain || ""}/qik/application/signup`), m.url && (c = m.url), e.api.post(c, l, s).then(function(u) {
2750
+ y && t.set(u.data), E(u);
2751
+ }, i);
2752
2752
  }
2753
2753
  return S;
2754
- }, t.retrieveUserFromResetToken = async function(u, d) {
2755
- d || (d = {});
2756
- var m = {
2754
+ }, t.retrieveUserFromResetToken = async function(l, m) {
2755
+ m || (m = {});
2756
+ var y = {
2757
2757
  bypassInterceptor: !0
2758
2758
  };
2759
- return new Promise(function(S, A) {
2760
- e.api.get(d.url || `${e.apiURL}/user/reset/${u}`, m).then(function(P) {
2761
- return S(P.data);
2762
- }, A);
2759
+ return new Promise(function(S, b) {
2760
+ e.api.get(m.url || `${e.apiURL}/user/reset/${l}`, y).then(function(E) {
2761
+ return S(E.data);
2762
+ }, b);
2763
2763
  });
2764
- }, t.updateUserWithToken = async function(u, d, m) {
2765
- m || (m = {});
2764
+ }, t.updateUserWithToken = async function(l, m, y) {
2765
+ y || (y = {});
2766
2766
  var S = !0;
2767
- return m.disableAutoAuthentication && (S = !1), new Promise(function(A, P) {
2768
- var v = {
2767
+ return y.disableAutoAuthentication && (S = !1), new Promise(function(b, E) {
2768
+ var i = {
2769
2769
  bypassInterceptor: !0
2770
2770
  };
2771
- e.api.post(m.url || `${e.apiURL}/user/reset/${u}`, d, v).then(function(g) {
2772
- return S && (e.cache.reset(), t.set(g.data)), A(g.data);
2773
- }, P);
2771
+ e.api.post(y.url || `${e.apiURL}/user/reset/${l}`, m, i).then(function(s) {
2772
+ return S && (e.cache.reset(), t.set(s.data)), b(s.data);
2773
+ }, E);
2774
2774
  });
2775
- }, t.sendResetPasswordRequest = function(u, d) {
2776
- return d || (d = {}), u ? !u.email || !u.email.length ? Promise.reject({
2775
+ }, t.sendResetPasswordRequest = function(l, m) {
2776
+ return m || (m = {}), l ? !l.email || !l.email.length ? Promise.reject({
2777
2777
  message: "Email is required but was not provided"
2778
- }) : new Promise(function(m, S) {
2779
- var A = {
2778
+ }) : new Promise(function(y, S) {
2779
+ var b = {
2780
2780
  bypassInterceptor: !0
2781
2781
  };
2782
- e.api.post(d.url || `${e.apiURL}/user/forgot`, u, A).then(m, S);
2782
+ e.api.post(m.url || `${e.apiURL}/user/forgot`, l, b).then(y, S);
2783
2783
  }) : Promise.reject({
2784
2784
  message: "No details were provided for password reset request"
2785
2785
  });
2786
- }, t.ensureValidToken = async function(u) {
2787
- var d = t.getCurrentUser();
2788
- if (!d)
2786
+ }, t.ensureValidToken = async function(l) {
2787
+ var m = t.getCurrentUser();
2788
+ if (!m)
2789
2789
  return Promise.reject("No user");
2790
2790
  if (r.isCookieMode && r.isCookieMode())
2791
- return u ? await t.refreshAccessToken() : "cookie_mode_token";
2792
- var { token: S } = d;
2791
+ return l ? await t.refreshAccessToken() : "cookie_mode_token";
2792
+ var { token: S } = m;
2793
2793
  if (!S)
2794
2794
  return Promise.reject("No token");
2795
- var A = /* @__PURE__ */ new Date();
2796
- A.setSeconds(A.getSeconds() + a);
2797
- var P = new Date(S.expires);
2798
- return u ? await t.refreshAccessToken(S.refreshToken) : A < P ? S : await t.refreshAccessToken(S.refreshToken);
2795
+ var b = /* @__PURE__ */ new Date();
2796
+ b.setSeconds(b.getSeconds() + a);
2797
+ var E = new Date(S.expires);
2798
+ return l ? await t.refreshAccessToken(S.refreshToken) : b < E ? S : await t.refreshAccessToken(S.refreshToken);
2799
2799
  };
2800
- const f = {};
2801
- return t.refreshAccessToken = async function(u) {
2802
- if (f.inflightRefreshRequest)
2803
- return f.inflightRefreshRequest;
2804
- const d = r.isCookieMode && r.isCookieMode();
2805
- return f.inflightRefreshRequest = new Promise(function(m, S) {
2806
- let A = {}, P = {
2800
+ const p = {};
2801
+ return t.refreshAccessToken = async function(l) {
2802
+ if (p.inflightRefreshRequest)
2803
+ return p.inflightRefreshRequest;
2804
+ const m = r.isCookieMode && r.isCookieMode();
2805
+ return p.inflightRefreshRequest = new Promise(function(y, S) {
2806
+ let b = {}, E = {
2807
2807
  bypassInterceptor: !0,
2808
2808
  withoutToken: !0
2809
2809
  };
2810
- if (d)
2811
- P.withCredentials = !0;
2810
+ if (m)
2811
+ E.withCredentials = !0;
2812
2812
  else {
2813
- if (!u)
2814
- return f.inflightRefreshRequest = null, S(new Error("No refresh token provided for localStorage mode"));
2815
- A.refreshToken = u;
2813
+ if (!l)
2814
+ return p.inflightRefreshRequest = null, S(new Error("No refresh token provided for localStorage mode"));
2815
+ b.refreshToken = l;
2816
2816
  }
2817
- e.api.post("/user/refresh", A, P).then(function(g) {
2818
- if (!g || !g.data)
2819
- return f.inflightRefreshRequest = null, S(new Error("Invalid refresh response"));
2820
- if (t.set(g.data), s(), d)
2821
- m("cookie_token_refreshed");
2817
+ e.api.post("/user/refresh", b, E).then(function(s) {
2818
+ if (!s || !s.data)
2819
+ return p.inflightRefreshRequest = null, S(new Error("Invalid refresh response"));
2820
+ if (t.set(s.data), o(), m)
2821
+ y("cookie_token_refreshed");
2822
2822
  else {
2823
- const x = g.data.token?.accessToken;
2824
- x ? m(x) : S(new Error("No access token in refresh response"));
2823
+ const f = s.data.token?.accessToken;
2824
+ f ? y(f) : S(new Error("No access token in refresh response"));
2825
2825
  }
2826
2826
  setTimeout(function() {
2827
- f.inflightRefreshRequest = null;
2827
+ p.inflightRefreshRequest = null;
2828
2828
  });
2829
- }).catch(function(v) {
2829
+ }).catch(function(i) {
2830
2830
  setTimeout(function() {
2831
- f.inflightRefreshRequest = null;
2832
- }), S(v);
2831
+ p.inflightRefreshRequest = null;
2832
+ }), S(i);
2833
2833
  });
2834
- }), f.inflightRefreshRequest;
2834
+ }), p.inflightRefreshRequest;
2835
2835
  }, t.sync = function() {
2836
- return e.api.get("/user").then(function(u) {
2837
- if (u.data) {
2838
- const d = r.getUser();
2839
- if (d) {
2840
- const m = { ...d };
2841
- m.session ? Object.assign(m.session, u.data) : m.session = u.data, t.set(m);
2836
+ return e.api.get("/user").then(function(l) {
2837
+ if (l.data) {
2838
+ const m = r.getUser();
2839
+ if (m) {
2840
+ const y = { ...m };
2841
+ y.session ? Object.assign(y.session, l.data) : y.session = l.data, t.set(y);
2842
2842
  } else
2843
- t.set(u.data);
2843
+ t.set(l.data);
2844
2844
  } else
2845
2845
  t.set(null);
2846
- s();
2847
- }).catch(function(u) {
2848
- t.set(null), s();
2846
+ o();
2847
+ }).catch(function(l) {
2848
+ t.set(null), o();
2849
2849
  });
2850
2850
  }, t.getCurrentUser = function() {
2851
2851
  return r.getUser();
2852
2852
  }, t.getCurrentToken = function() {
2853
- var u = r.getAccessToken();
2854
- if (u)
2855
- return u;
2856
- var d = t.getCurrentUser();
2857
- if (!d)
2853
+ var l = r.getAccessToken();
2854
+ if (l)
2855
+ return l;
2856
+ var m = t.getCurrentUser();
2857
+ if (!m)
2858
2858
  return e.applicationToken ? e.applicationToken : void 0;
2859
- var { token: m } = d;
2860
- if (m)
2861
- return m.accessToken;
2859
+ var { token: y } = m;
2860
+ if (y)
2861
+ return y.accessToken;
2862
2862
  }, e.api.interceptors.request.use(
2863
- async function(u) {
2864
- if (u.bypassInterceptor)
2865
- return u;
2866
- var d = u;
2863
+ async function(l) {
2864
+ if (l.bypassInterceptor)
2865
+ return l;
2866
+ var m = l;
2867
2867
  if (r.isCookieMode && r.isCookieMode())
2868
- return d.withCredentials || (d.withCredentials = !0), d;
2869
- var S = t.getCurrentUser(), A, P, v;
2868
+ return m.withCredentials || (m.withCredentials = !0), m;
2869
+ var S = t.getCurrentUser(), b, E, i;
2870
2870
  if (S) {
2871
- var { token: g } = S;
2872
- g && (A = g.accessToken, P = g.refreshToken, v = g.expires);
2871
+ var { token: s } = S;
2872
+ s && (b = s.accessToken, E = s.refreshToken, i = s.expires);
2873
2873
  }
2874
- if (A)
2875
- d.headers.Authorization = `Bearer ${A}`;
2874
+ if (b)
2875
+ m.headers.Authorization = `Bearer ${b}`;
2876
2876
  else
2877
- return d;
2878
- if (!P)
2879
- return d;
2880
- var x = /* @__PURE__ */ new Date();
2881
- x.setSeconds(x.getSeconds() + a);
2882
- var o = new Date(v);
2883
- return x < o ? d : new Promise(async function(n, c) {
2884
- await t.refreshAccessToken(P).then(function(y) {
2885
- return d.headers.Authorization = `Bearer ${y}`, n(d);
2886
- }).catch(function(y) {
2887
- return c(y);
2877
+ return m;
2878
+ if (!E)
2879
+ return m;
2880
+ var f = /* @__PURE__ */ new Date();
2881
+ f.setSeconds(f.getSeconds() + a);
2882
+ var c = new Date(i);
2883
+ return f < c ? m : new Promise(async function(u, v) {
2884
+ await t.refreshAccessToken(E).then(function(g) {
2885
+ return m.headers.Authorization = `Bearer ${g}`, u(m);
2886
+ }).catch(function(g) {
2887
+ return v(g);
2888
2888
  });
2889
2889
  });
2890
2890
  },
2891
- function(u) {
2892
- return Promise.reject(u);
2891
+ function(l) {
2892
+ return Promise.reject(l);
2893
2893
  }
2894
- ), e.api.interceptors.response.use(function(u) {
2895
- return u;
2896
- }, function(u) {
2897
- var d = u && u.response && u.response.status || u.status;
2898
- switch (d) {
2894
+ ), e.api.interceptors.response.use(function(l) {
2895
+ return l;
2896
+ }, function(l) {
2897
+ var m = l && l.response && l.response.status || l.status;
2898
+ switch (m) {
2899
2899
  case 401:
2900
2900
  t.logout();
2901
2901
  break;
2902
2902
  }
2903
- return Promise.reject(u);
2903
+ return Promise.reject(l);
2904
2904
  }), t;
2905
- }, Q = {};
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
- Q.cleanKey = function(e) {
2915
+ q.cleanKey = function(e) {
2916
2916
  return e = String(e).split("|")[0], e[0] == "." && (e = e.slice(1)), e;
2917
2917
  };
2918
- Q.isValidFilter = function(e) {
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(Q.isValidFilter);
2923
- var r = Q.cleanKey(e.key);
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 @@ Q.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
- Q.activeFilters = function(e) {
2944
+ q.activeFilters = function(e) {
2945
2945
  var r = [];
2946
2946
  return a(e, r), r;
2947
- function a(t, i) {
2947
+ function a(t, n) {
2948
2948
  if (t) {
2949
- var s = Q.isValidFilter(t);
2950
- s && i.push(t), t.filters && t.filters.length && t.filters.forEach(function(f) {
2951
- a(f, i);
2949
+ var o = q.isValidFilter(t);
2950
+ o && n.push(t), t.filters && t.filters.length && t.filters.forEach(function(p) {
2951
+ a(p, n);
2952
2952
  });
2953
2953
  }
2954
2954
  }
2955
2955
  };
2956
- Q.activeFilterKeys = function(e, r) {
2956
+ q.activeFilterKeys = function(e, r) {
2957
2957
  r = r || {};
2958
- var a = Q.activeFilters(e), t = a.filter(function(s) {
2959
- return !s.operator;
2960
- }).reduce(function(s, f) {
2961
- var u = Q.cleanKey(f.key);
2962
- return r.trimArrayDelimeters !== !1 && (u = u.split("[]").join("")), s[u] = !0, s;
2963
- }, {}), i = Object.keys(t);
2964
- return i;
2958
+ var a = q.activeFilters(e), t = a.filter(function(o) {
2959
+ return !o.operator;
2960
+ }).reduce(function(o, p) {
2961
+ var l = q.cleanKey(p.key);
2962
+ return r.trimArrayDelimeters !== !1 && (l = l.split("[]").join("")), o[l] = !0, o;
2963
+ }, {}), n = Object.keys(t);
2964
+ return n;
2965
2965
  };
2966
- Q.activeFilterComparators = function(e) {
2967
- var r = Q.activeFilters(e).filter(function(a) {
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
- Q.activeFilterOperators = function(e) {
2975
- var r = Q.activeFilters(e).filter(function(a) {
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
- Q.activeFilterValues = function(e, r) {
2983
- var a = Q.activeFilters(e);
2984
- function t(s) {
2985
- if (s)
2986
- return s._id || s.id || s.title || s.name || s;
2987
- }
2988
- var i = a.filter(function(s) {
2989
- return !s.operator;
2990
- }).reduce(function(s, f) {
2991
- return s = [...s, ...(f.values || []).map(t), t(f.value), t(f.value2)], s;
2982
+ q.activeFilterValues = function(e, r) {
2983
+ var a = q.activeFilters(e);
2984
+ function t(o) {
2985
+ if (o)
2986
+ return o._id || o.id || o.title || o.name || o;
2987
+ }
2988
+ var n = a.filter(function(o) {
2989
+ return !o.operator;
2990
+ }).reduce(function(o, p) {
2991
+ return o = [...o, ...(p.values || []).map(t), t(p.value), t(p.value2)], o;
2992
2992
  }, []).filter(Kr);
2993
- return i;
2993
+ return n;
2994
2994
  };
2995
- Q.filterChangeString = function(e) {
2996
- var r = Q.activeFilters(e);
2995
+ q.filterChangeString = function(e) {
2996
+ var r = q.activeFilters(e);
2997
2997
  return JSON.stringify(r);
2998
2998
  };
2999
2999
  function Pt(e) {
3000
3000
  var r = {};
3001
- return r.downloadUrl = function(a, t, i, s) {
3002
- return s = s || {}, i = i || {}, i.download = !0, t = e.utils.id(t), e.api.generateEndpointURL(`/${a}/${t}`, i, s);
3001
+ return r.downloadUrl = function(a, t, n, o) {
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), i = Math.floor(t / 3600), s = Math.floor(t % 3600 / 60), f = t % 60;
3005
- return i > 0 ? `${i}:${s.toString().padStart(2, "0")}:${f.toString().padStart(2, "0")}` : `${s}:${f.toString().padStart(2, "0")}`;
3006
- }, r.mediaUrl = function(a, t, i, s) {
3007
- s = s || {}, i = i || {}, t = e.utils.id(t);
3008
- let f = `/${a}/${t}`;
3009
- return s.extension?.length && (s.extension.includes(".") ? f = `${f}/${s.extension}` : f = `${f}/${a}.${s.extension}`), e.api.generateEndpointURL(f, i, s);
3004
+ const t = Math.round(a), n = Math.floor(t / 3600), o = Math.floor(t % 3600 / 60), p = t % 60;
3005
+ return n > 0 ? `${n}:${o.toString().padStart(2, "0")}:${p.toString().padStart(2, "0")}` : `${o}:${p.toString().padStart(2, "0")}`;
3006
+ }, r.mediaUrl = function(a, t, n, o) {
3007
+ o = o || {}, n = n || {}, t = e.utils.id(t);
3008
+ let p = `/${a}/${t}`;
3009
+ return o.extension?.length && (o.extension.includes(".") ? p = `${p}/${o.extension}` : p = `${p}/${a}.${o.extension}`), e.api.generateEndpointURL(p, n, o);
3010
3010
  }, r.filesize = function(a, t) {
3011
3011
  if (a == 0) return "0 Bytes";
3012
- var i = 1024, s = t || 2, f = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], u = Math.floor(Math.log(a) / Math.log(i));
3013
- return parseFloat((a / Math.pow(i, u)).toFixed(s)) + " " + f[u];
3012
+ var n = 1024, o = t || 2, p = ["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)) + " " + p[l];
3014
3014
  }, r.getBinaryTypeFromMime = function(a) {
3015
3015
  if (!a)
3016
3016
  return "file";
@@ -3109,133 +3109,133 @@ var $e = {}, xt = {
3109
3109
  }, r.featureIsIncludedInByteflag = function(a, t) {
3110
3110
  return (a & r.featureFlags[t]) === r.featureFlags[t];
3111
3111
  }, r.hasFeature = function(a, t) {
3112
- const i = a?.organisation || {}, s = i.features || {};
3113
- if (s.all || s[t])
3112
+ const n = a?.organisation || {}, o = n.features || {};
3113
+ if (o.all || o[t])
3114
3114
  return !0;
3115
- const f = i.ff;
3116
- return r.featureIsIncludedInByteflag(f, "all") ? !0 : r.featureIsIncludedInByteflag(f, t);
3115
+ const p = n.ff;
3116
+ return r.featureIsIncludedInByteflag(p, "all") ? !0 : r.featureIsIncludedInByteflag(p, 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
- i(a);
3122
- function i(s) {
3123
- var f = e.utils.id(s);
3124
- t.push(f), (s.children || []).forEach(function(u) {
3125
- i(u);
3121
+ n(a);
3122
+ function n(o) {
3123
+ var p = e.utils.id(o);
3124
+ t.push(p), (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
- for (var i in a?.permissions || {}) {
3132
- var s = a?.permissions[i], f = r.getAllDescendants(s);
3133
- (s.permissions || []).forEach(function(u) {
3134
- t[u] || (t[u] = []), t[u] = [
3135
- ...new Set(t[u].concat(f))
3131
+ for (var n in a?.permissions || {}) {
3132
+ var o = a?.permissions[n], p = r.getAllDescendants(o);
3133
+ (o.permissions || []).forEach(function(l) {
3134
+ t[l] || (t[l] = []), t[l] = [
3135
+ ...new Set(t[l].concat(p))
3136
3136
  ];
3137
3137
  });
3138
3138
  }
3139
3139
  return t;
3140
3140
  }, r.allUserScopes = function(a) {
3141
- var t = {}, i = a?.permissions || {};
3142
- function s(u) {
3143
- if (u) {
3144
- var d = e.utils.id(u);
3145
- d && (t[d] = 1, u.children && u.children.length && u.children.forEach(function(m) {
3146
- s(m);
3141
+ var t = {}, n = a?.permissions || {};
3142
+ function o(l) {
3143
+ if (l) {
3144
+ var m = e.utils.id(l);
3145
+ m && (t[m] = 1, l.children && l.children.length && l.children.forEach(function(y) {
3146
+ o(y);
3147
3147
  }));
3148
3148
  }
3149
3149
  }
3150
- for (var f in i)
3151
- s(i[f]);
3150
+ for (var p in n)
3151
+ o(n[p]);
3152
3152
  return Object.keys(t);
3153
- }, r.actionableScopes = function(a, t, i, s, f) {
3154
- f = f || {};
3155
- var u = [];
3153
+ }, r.actionableScopes = function(a, t, n, o, p) {
3154
+ p = p || {};
3155
+ var l = [];
3156
3156
  if (a?.userType == "administrator")
3157
- u = r.allUserScopes(a, f);
3157
+ l = r.allUserScopes(a, p);
3158
3158
  else {
3159
- var d = r.hashPermissions(a), m = i || s;
3160
- if (!m)
3161
- return u;
3162
- let S = i ? d[`${i}.${t}`] || [] : [], A = s ? d[`${s}.${t}`] || [] : [];
3163
- u = [...S, ...A];
3159
+ var m = r.hashPermissions(a), y = n || o;
3160
+ if (!y)
3161
+ return l;
3162
+ let S = n ? m[`${n}.${t}`] || [] : [], b = o ? m[`${o}.${t}`] || [] : [];
3163
+ l = [...S, ...b];
3164
3164
  }
3165
- return u || [];
3165
+ return l || [];
3166
3166
  }, r.isOwner = function(a, t) {
3167
- var i = e.utils.id(a), s = e.utils.id(a?.persona), f = t.meta;
3168
- if (!f)
3167
+ var n = e.utils.id(a), o = e.utils.id(a?.persona), p = t.meta;
3168
+ if (!p)
3169
3169
  return !1;
3170
- var u = f.userOwners || [], d = e.utils.ids([...u, f.userAuthor]), m = e.utils.hash(d);
3171
- if (m[i])
3170
+ var l = p.userOwners || [], m = e.utils.ids([...l, p.userAuthor]), y = e.utils.hash(m);
3171
+ if (y[n])
3172
3172
  return !0;
3173
- var S = f.personaOwners || [], A = e.utils.ids([
3173
+ var S = p.personaOwners || [], b = e.utils.ids([
3174
3174
  ...S,
3175
- f.personaAuthor
3176
- ]), P = e.utils.hash(A);
3177
- return P[s] ? !0 : r.isAssignee(a, t);
3175
+ p.personaAuthor
3176
+ ]), E = e.utils.hash(b);
3177
+ return E[o] ? !0 : r.isAssignee(a, t);
3178
3178
  }, r.isAssignee = function(a, t) {
3179
- const i = e.utils.ids(a?.profiles);
3180
- if (!i.length)
3179
+ const n = e.utils.ids(a?.profiles);
3180
+ if (!n.length)
3181
3181
  return !1;
3182
- const s = e.utils.ids(t.assignees);
3183
- if (!s.length)
3182
+ const o = e.utils.ids(t.assignees);
3183
+ if (!o.length)
3184
3184
  return !1;
3185
- const f = new Set(s);
3186
- return !!i.filter((m) => f.has(m)).length;
3185
+ const p = new Set(o);
3186
+ return !!n.filter((y) => p.has(y)).length;
3187
3187
  }, r.allPermissions = function(a) {
3188
- var t = Object.values(a?.permissions || {}).map(function(i) {
3189
- return i.permissions;
3188
+ var t = Object.values(a?.permissions || {}).map(function(n) {
3189
+ return n.permissions;
3190
3190
  }).flat();
3191
3191
  return t;
3192
3192
  }, r.allPermissionTypes = function(a, t) {
3193
- return t ? r.allPermissions(a).reduce(function(i, s) {
3194
- var f = s.split(".")[0];
3195
- return i[f] = !0, i;
3196
- }, {}) : r.allPermissions(a).map(function(i) {
3197
- return i.split(".")[0];
3193
+ return t ? r.allPermissions(a).reduce(function(n, o) {
3194
+ var p = o.split(".")[0];
3195
+ return n[p] = !0, n;
3196
+ }, {}) : r.allPermissions(a).map(function(n) {
3197
+ return n.split(".")[0];
3198
3198
  });
3199
- }, r.canKnowOf = function(a, t, i) {
3200
- return i = i || {}, i.cache = i.cache || {}, r.allPermissionTypes(a, !0)[t];
3201
- }, r.checkActionAccess = function(a, t, i, s, f) {
3202
- if (f = f || {}, f.cache = f.cache || {}, r.isAdministrator(a))
3199
+ }, r.canKnowOf = function(a, t, n) {
3200
+ return n = n || {}, n.cache = n.cache || {}, r.allPermissionTypes(a, !0)[t];
3201
+ }, r.checkActionAccess = function(a, t, n, o, p) {
3202
+ if (p = p || {}, p.cache = p.cache || {}, r.isAdministrator(a))
3203
3203
  return !0;
3204
- var u = t.meta?.type, d = t.meta?.definition || u;
3205
- if (!d)
3204
+ var l = t.meta?.type, m = t.meta?.definition || l;
3205
+ if (!m)
3206
3206
  return !1;
3207
- var m = e.utils.ids(t.meta.scopes || []), S, A = `access-${a?.cacheKey}-${i}-${d}-${u}`;
3208
- if (f.cache[A])
3209
- S = f.cache[A];
3207
+ var y = e.utils.ids(t.meta.scopes || []), S, b = `access-${a?.cacheKey}-${n}-${m}-${l}`;
3208
+ if (p.cache[b])
3209
+ S = p.cache[b];
3210
3210
  else {
3211
- var P = e.utils.ids(
3212
- r.actionableScopes(a, i, d, u, f)
3211
+ var E = e.utils.ids(
3212
+ r.actionableScopes(a, n, m, l, p)
3213
3213
  );
3214
- S = e.utils.hash(P), f.cache[A] = S;
3214
+ S = e.utils.hash(E), p.cache[b] = S;
3215
3215
  }
3216
3216
  if (S) {
3217
- var v = m.some(function(y) {
3218
- return S[y];
3217
+ var i = y.some(function(g) {
3218
+ return S[g];
3219
3219
  });
3220
- if (v)
3220
+ if (i)
3221
3221
  return !0;
3222
3222
  }
3223
- var g = r.isOwner(a, t);
3224
- if (g) {
3225
- var x, o = `access-${a?.cacheKey}-${s}-${d}-${u}`;
3226
- if (f.cache[o])
3227
- x = f.cache[o];
3223
+ var s = r.isOwner(a, t);
3224
+ if (s) {
3225
+ var f, c = `access-${a?.cacheKey}-${o}-${m}-${l}`;
3226
+ if (p.cache[c])
3227
+ f = p.cache[c];
3228
3228
  else {
3229
- var n = e.utils.ids(
3230
- r.actionableScopes(a, s, d, u, f)
3229
+ var u = e.utils.ids(
3230
+ r.actionableScopes(a, o, m, l, p)
3231
3231
  );
3232
- x = e.utils.hash(n), f.cache[o] = x;
3232
+ f = e.utils.hash(u), p.cache[c] = f;
3233
3233
  }
3234
- if (x) {
3235
- var c = m.some(function(y) {
3236
- return x[y];
3234
+ if (f) {
3235
+ var v = y.some(function(g) {
3236
+ return f[g];
3237
3237
  });
3238
- if (c)
3238
+ if (v)
3239
3239
  return !0;
3240
3240
  }
3241
3241
  }
@@ -3243,77 +3243,77 @@ var $e = {}, xt = {
3243
3243
  }, r.has = function(a, t) {
3244
3244
  if (r.isAdministrator(a))
3245
3245
  return !0;
3246
- var i = r.hashPermissions(a);
3247
- return i[t];
3248
- }, r.canCreate = function(a, t, i, s) {
3249
- if (s = s || {}, s.cache = s.cache || {}, r.isAdministrator(a))
3246
+ var n = r.hashPermissions(a);
3247
+ return n[t];
3248
+ }, r.canCreate = function(a, t, n, o) {
3249
+ if (o = o || {}, o.cache = o.cache || {}, r.isAdministrator(a))
3250
3250
  return !0;
3251
- var f = r.actionableScopes(
3251
+ var p = r.actionableScopes(
3252
3252
  a,
3253
3253
  "create",
3254
3254
  t,
3255
- i
3255
+ n
3256
3256
  );
3257
- return f.length;
3258
- }, r.canListItem = function(a, t, i) {
3259
- i = i || {}, i.cache = i.cache || {};
3260
- var s = r.checkActionAccess(
3257
+ return p.length;
3258
+ }, r.canListItem = function(a, t, n) {
3259
+ n = n || {}, n.cache = n.cache || {};
3260
+ var o = r.checkActionAccess(
3261
3261
  a,
3262
3262
  t,
3263
3263
  "listany",
3264
3264
  "listown",
3265
- i
3265
+ n
3266
3266
  );
3267
- if (s)
3267
+ if (o)
3268
3268
  return !0;
3269
- var f = r.canViewItem(a, t, i);
3270
- return !!f;
3271
- }, r.canViewItem = function(a, t, i) {
3272
- i = i || {}, i.cache = i.cache || {};
3273
- var s = r.checkActionAccess(
3269
+ var p = r.canViewItem(a, t, n);
3270
+ return !!p;
3271
+ }, r.canViewItem = function(a, t, n) {
3272
+ n = n || {}, n.cache = n.cache || {};
3273
+ var o = r.checkActionAccess(
3274
3274
  a,
3275
3275
  t,
3276
3276
  "viewany",
3277
3277
  "viewOwn",
3278
- i
3278
+ n
3279
3279
  );
3280
- if (s)
3280
+ if (o)
3281
3281
  return !0;
3282
- var f = r.canEditItem(a, t, i);
3283
- return !!f;
3284
- }, r.canEditItem = function(a, t, i) {
3285
- i = i || {}, i.cache = i.cache || {};
3286
- var s = r.checkActionAccess(
3282
+ var p = r.canEditItem(a, t, n);
3283
+ return !!p;
3284
+ }, r.canEditItem = function(a, t, n) {
3285
+ n = n || {}, n.cache = n.cache || {};
3286
+ var o = r.checkActionAccess(
3287
3287
  a,
3288
3288
  t,
3289
3289
  "editany",
3290
3290
  "editown",
3291
- i
3291
+ n
3292
3292
  );
3293
- return s;
3294
- }, r.canDeleteItem = function(a, t, i) {
3295
- return i = i || {}, i.cache = i.cache || {}, r.checkActionAccess(
3293
+ return o;
3294
+ }, r.canDeleteItem = function(a, t, n) {
3295
+ return n = n || {}, n.cache = n.cache || {}, r.checkActionAccess(
3296
3296
  a,
3297
3297
  t,
3298
3298
  "deleteany",
3299
3299
  "deleteown",
3300
- i
3300
+ n
3301
3301
  );
3302
- }, r.canRestoreItem = function(a, t, i) {
3303
- return i = i || {}, i.cache = i.cache || {}, r.checkActionAccess(
3302
+ }, r.canRestoreItem = function(a, t, n) {
3303
+ return n = n || {}, n.cache = n.cache || {}, r.checkActionAccess(
3304
3304
  a,
3305
3305
  t,
3306
3306
  "restoreany",
3307
3307
  "restoreown",
3308
- i
3308
+ n
3309
3309
  );
3310
- }, r.canEraseItem = function(a, t, i) {
3311
- return i = i || {}, i.cache = i.cache || {}, r.checkActionAccess(
3310
+ }, r.canEraseItem = function(a, t, n) {
3311
+ return n = n || {}, n.cache = n.cache || {}, r.checkActionAccess(
3312
3312
  a,
3313
3313
  t,
3314
3314
  "eraseany",
3315
3315
  "eraseown",
3316
- i
3316
+ n
3317
3317
  );
3318
3318
  }, r;
3319
3319
  };
@@ -3326,262 +3326,278 @@ function Ot(e) {
3326
3326
  };
3327
3327
  const a = {};
3328
3328
  let t;
3329
- r.variables = async function(o, n) {
3330
- n = n || {}, o = o || [];
3331
- var c = n.refresh || n.reload || !a.data;
3332
- if (c) {
3329
+ r.variables = async function(i, s) {
3330
+ s = s || {}, i = i || [];
3331
+ var f = s.refresh || s.reload || !a.data;
3332
+ if (f) {
3333
3333
  if (!t) {
3334
- let b = function() {
3334
+ let u = function() {
3335
3335
  t = null;
3336
3336
  };
3337
- t = e.api.post("/variables", { keys: o }), t.then(b, b);
3337
+ t = e.api.post("/variables", { keys: i }), t.then(u, u);
3338
3338
  }
3339
- const { data: y } = await t;
3340
- a.data = y, e.dispatch("variables", y);
3339
+ const { data: c } = await t;
3340
+ a.data = c, e.dispatch("variables", c);
3341
3341
  }
3342
3342
  return a.data;
3343
3343
  };
3344
- const i = e.cache.get("user:glossary");
3345
- let s, f = null, u = null;
3346
- async function d() {
3347
- return u || (u = import("./inflate-glossary.worker-CGZQmJtn.js"), u);
3348
- }
3349
- async function m() {
3350
- if (f) return f;
3351
- const o = await d();
3352
- return f = new o.default(), f;
3353
- }
3354
- function S({ _s: o, _k: n, types: c }) {
3355
- function y(b) {
3356
- if (typeof b == "string" && b[0] === "~")
3357
- return o[parseInt(b.slice(1))];
3358
- if (Array.isArray(b)) return b.map(y);
3359
- if (b && typeof b == "object") {
3360
- const E = {};
3361
- for (const [I, R] of Object.entries(b))
3362
- E[n[I] || I] = y(R);
3363
- return E;
3344
+ const n = e.cache.get("user:glossary");
3345
+ let o;
3346
+ function p(i, s) {
3347
+ return function f(c) {
3348
+ if (typeof c == "string" && c[0] === "~")
3349
+ return i[parseInt(c.slice(1))];
3350
+ if (Array.isArray(c)) return c.map(f);
3351
+ if (c && typeof c == "object") {
3352
+ const u = {};
3353
+ for (const [v, g] of Object.entries(c))
3354
+ u[s[v] || v] = f(g);
3355
+ return u;
3364
3356
  }
3365
- return b;
3366
- }
3367
- return c.map(y);
3357
+ return c;
3358
+ };
3368
3359
  }
3369
- async function A(o) {
3370
- if (typeof Worker > "u")
3371
- return S(o);
3372
- try {
3373
- const n = await m();
3374
- return new Promise((c) => {
3375
- const y = [], b = (I) => {
3376
- const { chunk: R, done: k } = I.data;
3377
- y.push(...R), k && (n.removeEventListener("message", b), n.removeEventListener("error", E), c(y));
3378
- }, E = () => {
3379
- n.removeEventListener("message", b), n.removeEventListener("error", E), c(S(o));
3380
- };
3381
- n.addEventListener("message", b), n.addEventListener("error", E), n.postMessage(o);
3382
- });
3383
- } catch {
3384
- return S(o);
3385
- }
3360
+ function l({ _s: i, _k: s, types: f }) {
3361
+ const c = p(i, s), u = new Array(f.length), v = new Array(f.length).fill(!1);
3362
+ return new Proxy(f, {
3363
+ get(g, P) {
3364
+ if (P === "length") return g.length;
3365
+ if (P === Symbol.iterator)
3366
+ return function* () {
3367
+ for (let I = 0; I < g.length; I++)
3368
+ v[I] || (u[I] = c(g[I]), v[I] = !0), yield u[I];
3369
+ };
3370
+ if (P === "map")
3371
+ return function(I) {
3372
+ const k = [];
3373
+ for (let O = 0; O < g.length; O++)
3374
+ v[O] || (u[O] = c(g[O]), v[O] = !0), k.push(I(u[O], O, this));
3375
+ return k;
3376
+ };
3377
+ if (P === "filter")
3378
+ return function(I) {
3379
+ const k = [];
3380
+ for (let O = 0; O < g.length; O++)
3381
+ v[O] || (u[O] = c(g[O]), v[O] = !0), I(u[O], O, this) && k.push(u[O]);
3382
+ return k;
3383
+ };
3384
+ if (P === "find")
3385
+ return function(I) {
3386
+ for (let k = 0; k < g.length; k++)
3387
+ if (v[k] || (u[k] = c(g[k]), v[k] = !0), I(u[k], k, this))
3388
+ return u[k];
3389
+ };
3390
+ if (P === "forEach")
3391
+ return function(I) {
3392
+ for (let k = 0; k < g.length; k++)
3393
+ v[k] || (u[k] = c(g[k]), v[k] = !0), I(u[k], k, this);
3394
+ };
3395
+ const x = typeof P == "string" ? parseInt(P, 10) : P;
3396
+ return Number.isInteger(x) && x >= 0 && x < g.length ? (v[x] || (u[x] = c(g[x]), v[x] = !0), u[x]) : Reflect.get(g, P);
3397
+ }
3398
+ });
3386
3399
  }
3387
- r.glossary = async function(o) {
3388
- o = o || {};
3389
- let n = i.get("glossary"), y = !!!o.uncompressed;
3390
- var b = o.refresh || o.reload || !n;
3391
- if (b) {
3392
- if (!s) {
3393
- let j = function() {
3394
- s = null, r.loadingGlossary = !1;
3400
+ function m(i) {
3401
+ return l(i);
3402
+ }
3403
+ r.glossary = async function(i) {
3404
+ i = i || {};
3405
+ let s = n.get("glossary"), c = !!!i.uncompressed;
3406
+ var u = i.refresh || i.reload || !s;
3407
+ if (u) {
3408
+ if (!o) {
3409
+ let I = function() {
3410
+ o = null, r.loadingGlossary = !1;
3395
3411
  };
3396
3412
  r.loadingGlossary = !0;
3397
- const k = y ? "/glossary/compressed" : "/glossary";
3398
- s = e.api.get(k, { cache: !1 }), s.then(j, j);
3413
+ const x = c ? "/glossary/compressed" : "/glossary";
3414
+ o = e.api.get(x, { cache: !1 }), o.then(I, I);
3399
3415
  }
3400
- const { data: I } = await s, R = I._s && I._k && I.types ? await A(I) : I;
3401
- i.set("glossary", R), n = R, e.dispatch("glossary", R);
3416
+ const { data: g } = await o, P = g._s && g._k && g.types ? m(g) : g;
3417
+ n.set("glossary", P), s = P, e.dispatch("glossary", P);
3402
3418
  }
3403
- if (o.hash) {
3404
- var E = e.utils.hash(n, "key");
3405
- return E;
3419
+ if (i.hash) {
3420
+ var v = e.utils.hash(s, "key");
3421
+ return v;
3406
3422
  }
3407
- if (o.hex) {
3408
- var E = e.utils.hash(n, "hex");
3409
- return E;
3423
+ if (i.hex) {
3424
+ var v = e.utils.hash(s, "hex");
3425
+ return v;
3410
3426
  }
3411
- return n;
3427
+ return s;
3412
3428
  };
3413
- const P = {};
3414
- let v;
3415
- r.scopeGlossary = async function(o) {
3416
- o = o || {};
3417
- var n = o.refresh || o.reload || !P.data;
3418
- if (n) {
3419
- if (!v) {
3420
- let b = function() {
3421
- v = null;
3429
+ const y = {};
3430
+ let S;
3431
+ r.scopeGlossary = async function(i) {
3432
+ i = i || {};
3433
+ var s = i.refresh || i.reload || !y.data;
3434
+ if (s) {
3435
+ if (!S) {
3436
+ let u = function() {
3437
+ S = null;
3422
3438
  };
3423
- v = e.api.get("/scope/glossary", {
3439
+ S = e.api.get("/scope/glossary", {
3424
3440
  cache: !1
3425
- }), v.then(b, b);
3441
+ }), S.then(u, u);
3426
3442
  }
3427
- const { data: y } = await v;
3428
- P.data = y;
3443
+ const { data: c } = await S;
3444
+ y.data = c;
3429
3445
  }
3430
- if (o.hash) {
3431
- var c = e.utils.hash(P.data, "_id");
3432
- return c;
3446
+ if (i.hash) {
3447
+ var f = e.utils.hash(y.data, "_id");
3448
+ return f;
3433
3449
  }
3434
- return P.data;
3450
+ return y.data;
3435
3451
  };
3436
- const g = {};
3437
- r.comparators = async function(o) {
3438
- o = o || {};
3439
- var n = o.reload || o.refresh || !g.data;
3440
- if (n) {
3441
- const { data: c } = await e.api.get("/system/comparators");
3442
- c.available = {}, Object.entries(c.types).forEach(([y, b]) => {
3443
- c.available[y] = b.map(function(E) {
3444
- return c.hash[E];
3452
+ const b = {};
3453
+ r.comparators = async function(i) {
3454
+ i = i || {};
3455
+ var s = i.reload || i.refresh || !b.data;
3456
+ if (s) {
3457
+ const { data: f } = await e.api.get("/system/comparators");
3458
+ f.available = {}, Object.entries(f.types).forEach(([c, u]) => {
3459
+ f.available[c] = u.map(function(v) {
3460
+ return f.hash[v];
3445
3461
  });
3446
- }), g.data = c;
3462
+ }), b.data = f;
3447
3463
  }
3448
- return g.data;
3464
+ return b.data;
3449
3465
  };
3450
- function x(o) {
3451
- var { minimum: n, maximum: c } = o;
3452
- return n = e.utils.parseInt(n), n = Math.max(n, 0), c = e.utils.parseInt(c), c = Math.max(c, 0), c == 0 || (c = Math.max(c, n)), { minimum: n, maximum: c };
3453
- }
3454
- return r.meetsValidationRequirements = function(o, n, c) {
3455
- if (c.minLength) {
3456
- var y = String(o).length;
3457
- if (y < c.minLength)
3458
- return `Must be at least ${c.minLength} characters`;
3466
+ function E(i) {
3467
+ var { minimum: s, maximum: f } = i;
3468
+ return s = e.utils.parseInt(s), s = Math.max(s, 0), f = e.utils.parseInt(f), f = Math.max(f, 0), f == 0 || (f = Math.max(f, s)), { minimum: s, maximum: f };
3469
+ }
3470
+ return r.meetsValidationRequirements = function(i, s, f) {
3471
+ if (f.minLength) {
3472
+ var c = String(i).length;
3473
+ if (c < f.minLength)
3474
+ return `Must be at least ${f.minLength} characters`;
3459
3475
  }
3460
- if (c.maxLength) {
3461
- var y = String(o).length;
3462
- if (y > c.maxLength)
3463
- return `Can be no more than ${c.maxLength} characters`;
3476
+ if (f.maxLength) {
3477
+ var c = String(i).length;
3478
+ if (c > f.maxLength)
3479
+ return `Can be no more than ${f.maxLength} characters`;
3464
3480
  }
3465
- if (c.minValue && o !== void 0) {
3466
- var b = Number(o);
3467
- if (b < c.minValue)
3468
- return `Must be at least ${c.minValue}`;
3481
+ if (f.minValue && i !== void 0) {
3482
+ var u = Number(i);
3483
+ if (u < f.minValue)
3484
+ return `Must be at least ${f.minValue}`;
3469
3485
  }
3470
- if (c.maxValue && o !== void 0) {
3471
- var b = Number(o);
3472
- if (b > c.maxValue)
3473
- return `Can be no greater than ${c.maxValue}`;
3486
+ if (f.maxValue && i !== void 0) {
3487
+ var u = Number(i);
3488
+ if (u > f.maxValue)
3489
+ return `Can be no greater than ${f.maxValue}`;
3474
3490
  }
3475
- }, r.validateField = function(o, n, c) {
3476
- c = c || {};
3477
- var y = n.type || "string", { minimum: b, maximum: E } = x(n), I = n.type == "group" && n.asObject, R = I ? b === E && E === 1 : E === 1, k = !R, j = e.utils.exists(o);
3478
- if (b) {
3479
- if (!j)
3491
+ }, r.validateField = function(i, s, f) {
3492
+ f = f || {};
3493
+ var c = s.type || "string", { minimum: u, maximum: v } = E(s), g = s.type == "group" && s.asObject, P = g ? u === v && v === 1 : v === 1, x = !P, I = e.utils.exists(i);
3494
+ if (u) {
3495
+ if (!I)
3480
3496
  return {
3481
3497
  valid: !1,
3482
- message: `${n.title} is a required field`,
3498
+ message: `${s.title} is a required field`,
3483
3499
  status: 400
3484
3500
  };
3485
- } else if (!j)
3501
+ } else if (!I)
3486
3502
  return {
3487
3503
  valid: !0
3488
3504
  };
3489
- if (k) {
3490
- if (!Array.isArray(o))
3491
- return b ? {
3505
+ if (x) {
3506
+ if (!Array.isArray(i))
3507
+ return u ? {
3492
3508
  valid: !1,
3493
- message: `${n.title} requires at least ${b} values`,
3509
+ message: `${s.title} requires at least ${u} values`,
3494
3510
  status: 400
3495
- } : (console.log("NOT PROVIDED AS ARRAY", n.title, o), {
3511
+ } : (console.log("NOT PROVIDED AS ARRAY", s.title, i), {
3496
3512
  valid: !1,
3497
- message: `${n.title} must be provided as an array`,
3513
+ message: `${s.title} must be provided as an array`,
3498
3514
  status: 400
3499
3515
  });
3500
- var F = o;
3501
- if (F = F.filter(function(T) {
3502
- var z = T == null || T === "";
3503
- return !z;
3504
- }), b == E && b && F.length != b)
3516
+ var k = i;
3517
+ if (k = k.filter(function(R) {
3518
+ var _ = R == null || R === "";
3519
+ return !_;
3520
+ }), u == v && u && k.length != u)
3505
3521
  return {
3506
3522
  valid: !1,
3507
- message: `${n.title} requires exactly ${E} values`,
3523
+ message: `${s.title} requires exactly ${v} values`,
3508
3524
  status: 400
3509
3525
  };
3510
- if (E && F.length > E)
3526
+ if (v && k.length > v)
3511
3527
  return {
3512
3528
  valid: !1,
3513
- message: `${n.title} requires less than ${E + 1} values`,
3529
+ message: `${s.title} requires less than ${v + 1} values`,
3514
3530
  status: 400
3515
3531
  };
3516
- if (F.length < b)
3532
+ if (k.length < u)
3517
3533
  return {
3518
3534
  valid: !1,
3519
- message: `${n.title} requires at least ${b} values`,
3535
+ message: `${s.title} requires at least ${u} values`,
3520
3536
  status: 400
3521
3537
  };
3522
- var N;
3523
- if (F.find(function(T) {
3524
- var z = y;
3525
- n.type === "group" && (z = "object"), n.type === "reference" && n.widget === "form" && (z = "object");
3526
- var H = e.utils.isValidValue(
3527
- T,
3528
- z,
3529
- c.strict
3538
+ var O;
3539
+ if (k.find(function(R) {
3540
+ var _ = c;
3541
+ s.type === "group" && (_ = "object"), s.type === "reference" && s.widget === "form" && (_ = "object");
3542
+ var z = e.utils.isValidValue(
3543
+ R,
3544
+ _,
3545
+ f.strict
3530
3546
  );
3531
- if (!H)
3532
- return N = !0, !0;
3533
- if (n.validation) {
3534
- var X = r.meetsValidationRequirements(
3535
- T,
3536
- y,
3537
- n.validation
3547
+ if (!z)
3548
+ return O = !0, !0;
3549
+ if (s.validation) {
3550
+ var N = r.meetsValidationRequirements(
3551
+ R,
3552
+ c,
3553
+ s.validation
3538
3554
  );
3539
- if (X)
3540
- return N = !0, !0;
3555
+ if (N)
3556
+ return O = !0, !0;
3541
3557
  }
3542
- }), N)
3558
+ }), O)
3543
3559
  return {
3544
3560
  valid: !1,
3545
- message: `Invalid input for ${n.title}`,
3561
+ message: `Invalid input for ${s.title}`,
3546
3562
  status: 400
3547
3563
  };
3548
3564
  } else {
3549
- var _ = y, L = n.widget;
3550
- _ === "group" && (_ = "object"), _ === "reference" && L === "form" && (_ = "object");
3551
- var B = r.getCleanedValue(o, _, c), $ = e.utils.isValidValue(
3552
- B,
3553
- _,
3554
- c.strict
3565
+ var G = c, B = s.widget;
3566
+ G === "group" && (G = "object"), G === "reference" && B === "form" && (G = "object");
3567
+ var F = r.getCleanedValue(i, G, f), $ = e.utils.isValidValue(
3568
+ F,
3569
+ G,
3570
+ f.strict
3555
3571
  );
3556
3572
  if (!$)
3557
3573
  return {
3558
3574
  valid: !1,
3559
- message: `Single value '${o}' is not a valid ${_} for ${n.title}`,
3575
+ message: `Single value '${i}' is not a valid ${G} for ${s.title}`,
3560
3576
  criteria: {
3561
3577
  isValidValue: $,
3562
- cleanedValue: B,
3563
- fieldType: y,
3564
- options: c
3578
+ cleanedValue: F,
3579
+ fieldType: c,
3580
+ options: f
3565
3581
  },
3566
3582
  status: 400
3567
3583
  };
3568
- let T = !1;
3569
- const z = {};
3570
- if (String(n.minValue) && (z.minValue = parseInt(n.minValue), T = !0), String(n.maxValue) && (z.maxValue = parseInt(n.maxValue), T = !0), String(n.minLength) && (z.minLength = parseInt(n.minLength), T = !0), String(n.maxLength) && (z.maxLength = parseInt(n.maxLength), T = !0), T) {
3571
- const H = Object.assign(
3584
+ let R = !1;
3585
+ const _ = {};
3586
+ if (String(s.minValue) && (_.minValue = parseInt(s.minValue), R = !0), String(s.maxValue) && (_.maxValue = parseInt(s.maxValue), R = !0), String(s.minLength) && (_.minLength = parseInt(s.minLength), R = !0), String(s.maxLength) && (_.maxLength = parseInt(s.maxLength), R = !0), R) {
3587
+ const z = Object.assign(
3572
3588
  {},
3573
- z,
3574
- n.validation || {}
3589
+ _,
3590
+ s.validation || {}
3575
3591
  );
3576
- var W = r.meetsValidationRequirements(
3577
- o,
3578
- y,
3579
- H
3592
+ var L = r.meetsValidationRequirements(
3593
+ i,
3594
+ c,
3595
+ z
3580
3596
  );
3581
- if (W)
3597
+ if (L)
3582
3598
  return {
3583
3599
  valid: !1,
3584
- message: W,
3600
+ message: L,
3585
3601
  status: 400
3586
3602
  };
3587
3603
  }
@@ -3589,106 +3605,106 @@ function Ot(e) {
3589
3605
  return {
3590
3606
  valid: !0
3591
3607
  };
3592
- }, r.getCleanedValue = function(o, n, c) {
3593
- switch (n) {
3608
+ }, r.getCleanedValue = function(i, s, f) {
3609
+ switch (s) {
3594
3610
  case "number":
3595
3611
  case "float":
3596
3612
  case "decimal":
3597
- return e.utils.exists(o) ? Number(o) : void 0;
3613
+ return e.utils.exists(i) ? Number(i) : void 0;
3598
3614
  case "integer":
3599
- return e.utils.exists(o) ? parseInt(o) : void 0;
3615
+ return e.utils.exists(i) ? parseInt(i) : void 0;
3600
3616
  case "boolean":
3601
- return e.utils.exists(o) ? e.utils.parseBoolean(o) : void 0;
3617
+ return e.utils.exists(i) ? e.utils.parseBoolean(i) : void 0;
3602
3618
  case "email":
3603
- return c.strict ? o : String(o).toLowerCase();
3619
+ return f.strict ? i : String(i).toLowerCase();
3604
3620
  case "reference":
3605
- return c.strict ? o : e.utils.id(o);
3621
+ return f.strict ? i : e.utils.id(i);
3606
3622
  default:
3607
- return c.strict ? o : e.utils.cleanValue(o, n, c);
3623
+ return f.strict ? i : e.utils.cleanValue(i, s, f);
3608
3624
  }
3609
- return o;
3610
- }, r.list = async function(o, n, c) {
3611
- c || (c = {});
3612
- const y = c.remoteURL || `/content/${o}/list`;
3613
- if (c.cancellable) {
3614
- c.config || (c.config = {});
3615
- const E = e.api.CancelToken.source();
3616
- return c.config.cancelToken = E.token, {
3617
- promise: e.api.post(y, n, c.config),
3618
- cancel(R) {
3619
- E.cancel(R || "Operation canceled by the user.");
3625
+ return i;
3626
+ }, r.list = async function(i, s, f) {
3627
+ f || (f = {});
3628
+ const c = f.remoteURL || `/content/${i}/list`;
3629
+ if (f.cancellable) {
3630
+ f.config || (f.config = {});
3631
+ const v = e.api.CancelToken.source();
3632
+ return f.config.cancelToken = v.token, {
3633
+ promise: e.api.post(c, s, f.config),
3634
+ cancel(P) {
3635
+ v.cancel(P || "Operation canceled by the user.");
3620
3636
  }
3621
3637
  };
3622
3638
  } else {
3623
- const { data: b } = await e.api.post(y, n, c.config);
3624
- return b;
3639
+ const { data: u } = await e.api.post(c, s, f.config);
3640
+ return u;
3625
3641
  }
3626
- }, r.create = async function(o, n) {
3627
- const c = { ...n };
3628
- c.meta?.scopes && (c.meta.scopes = e.utils.ids(c.meta.scopes));
3629
- const { data: y } = await e.api.post(`/content/${o}/create`, c);
3630
- return y;
3631
- }, r.update = async function(o, n) {
3632
- o = e.utils.id(o);
3633
- const c = { ...n };
3634
- c.meta?.scopes && (c.meta.scopes = e.utils.ids(c.meta.scopes));
3635
- const { data: y } = await e.api.put(`/content/${o}`, c);
3636
- return y;
3637
- }, r.patch = async function(o, n) {
3638
- o = e.utils.id(o);
3639
- const c = { ...n };
3640
- c.meta?.scopes && (c.meta.scopes = e.utils.ids(c.meta.scopes));
3641
- const { data: y } = await e.api.patch(`/content/${o}`, c);
3642
- return y;
3643
- }, r.get = async function(o, n) {
3644
- o = e.utils.id(o), n = n || {};
3645
- const { data: c } = await e.api.get(`/content/${o}`, n);
3642
+ }, r.create = async function(i, s) {
3643
+ const f = { ...s };
3644
+ f.meta?.scopes && (f.meta.scopes = e.utils.ids(f.meta.scopes));
3645
+ const { data: c } = await e.api.post(`/content/${i}/create`, f);
3646
3646
  return c;
3647
- }, r.getFromID = async function(o) {
3648
- return r.get(o);
3649
- }, r.delete = async function(o, n) {
3650
- o = e.utils.id(o);
3651
- const { data: c } = await e.api.delete(`/content/${o}`, n);
3647
+ }, r.update = async function(i, s) {
3648
+ i = e.utils.id(i);
3649
+ const f = { ...s };
3650
+ f.meta?.scopes && (f.meta.scopes = e.utils.ids(f.meta.scopes));
3651
+ const { data: c } = await e.api.put(`/content/${i}`, f);
3652
3652
  return c;
3653
- }, r.restore = async function(o, n) {
3654
- o = e.utils.id(o);
3655
- const { data: c } = await e.api.get(`/content/${o}/restore`, n);
3653
+ }, r.patch = async function(i, s) {
3654
+ i = e.utils.id(i);
3655
+ const f = { ...s };
3656
+ f.meta?.scopes && (f.meta.scopes = e.utils.ids(f.meta.scopes));
3657
+ const { data: c } = await e.api.patch(`/content/${i}`, f);
3656
3658
  return c;
3657
- }, r.getFromSlug = async function(o) {
3658
- const { data: n } = await e.api.get(`/content/slug/${o}`);
3659
- return n;
3659
+ }, r.get = async function(i, s) {
3660
+ i = e.utils.id(i), s = s || {};
3661
+ const { data: f } = await e.api.get(`/content/${i}`, s);
3662
+ return f;
3663
+ }, r.getFromID = async function(i) {
3664
+ return r.get(i);
3665
+ }, r.delete = async function(i, s) {
3666
+ i = e.utils.id(i);
3667
+ const { data: f } = await e.api.delete(`/content/${i}`, s);
3668
+ return f;
3669
+ }, r.restore = async function(i, s) {
3670
+ i = e.utils.id(i);
3671
+ const { data: f } = await e.api.get(`/content/${i}/restore`, s);
3672
+ return f;
3673
+ }, r.getFromSlug = async function(i) {
3674
+ const { data: s } = await e.api.get(`/content/slug/${i}`);
3675
+ return s;
3660
3676
  }, r;
3661
3677
  }
3662
3678
  function Mt(e) {
3663
3679
  var r = {}, a;
3664
3680
  return r.countries = async function() {
3665
- return a || (a = new Promise(async function(t, i) {
3666
- e.api.get("/system/countries").then(function(s) {
3667
- return t(s.data);
3668
- }).catch(i);
3681
+ return a || (a = new Promise(async function(t, n) {
3682
+ e.api.get("/system/countries").then(function(o) {
3683
+ return t(o.data);
3684
+ }).catch(n);
3669
3685
  })), a;
3670
3686
  }, r;
3671
3687
  }
3672
- function kt(e) {
3688
+ function It(e) {
3673
3689
  var r = {};
3674
3690
  function a() {
3675
3691
  return !(typeof window > "u" || !window.navigator || !window.navigator.geolocation);
3676
3692
  }
3677
- return r.distance = function({ lat: t, lon: i }, { lat: s, lon: f }) {
3678
- function u(g) {
3679
- return g * (Math.PI / 180);
3693
+ return r.distance = function({ lat: t, lon: n }, { lat: o, lon: p }) {
3694
+ function l(s) {
3695
+ return s * (Math.PI / 180);
3680
3696
  }
3681
- var d = 6371e3, m = u(s - t), S = u(f - i), A = Math.sin(m / 2) * Math.sin(m / 2) + Math.cos(u(t)) * Math.cos(u(s)) * Math.sin(S / 2) * Math.sin(S / 2), P = 2 * Math.atan2(Math.sqrt(A), Math.sqrt(1 - A)), v = d * P;
3682
- return v;
3697
+ var m = 6371e3, y = l(o - t), S = l(p - n), b = Math.sin(y / 2) * Math.sin(y / 2) + Math.cos(l(t)) * Math.cos(l(o)) * Math.sin(S / 2) * Math.sin(S / 2), E = 2 * Math.atan2(Math.sqrt(b), Math.sqrt(1 - b)), i = m * E;
3698
+ return i;
3683
3699
  }, r.getPosition = async function() {
3684
- return a() ? (console.log("qik:geo: getting location"), new Promise(function(t, i) {
3685
- navigator.geolocation.getCurrentPosition(t, i);
3700
+ return a() ? (console.log("qik:geo: getting location"), new Promise(function(t, n) {
3701
+ navigator.geolocation.getCurrentPosition(t, n);
3686
3702
  })) : Promise.reject({ message: "Geolocation is not enabled" });
3687
3703
  }, r.watchPosition = async function(t) {
3688
- return a() ? (console.log("qik:geo: watching location"), new Promise(function(i, s) {
3689
- const f = navigator.geolocation.watchPosition(t, s);
3690
- i({
3691
- id: f
3704
+ return a() ? (console.log("qik:geo: watching location"), new Promise(function(n, o) {
3705
+ const p = navigator.geolocation.watchPosition(t, o);
3706
+ n({
3707
+ id: p
3692
3708
  });
3693
3709
  })) : Promise.reject({ message: "Geolocation is not enabled" });
3694
3710
  }, r.stopWatchPosition = async function(t) {
@@ -3696,9 +3712,9 @@ function kt(e) {
3696
3712
  }, r.getDefaultTimezone = function() {
3697
3713
  const { session: t } = e.auth.getCurrentUser();
3698
3714
  if (t) {
3699
- const i = t?.organisation?.timezone;
3700
- if (i)
3701
- return i;
3715
+ const n = t?.organisation?.timezone;
3716
+ if (n)
3717
+ return n;
3702
3718
  }
3703
3719
  if (!(typeof window > "u") && window.Intl)
3704
3720
  return window.Intl.DateTimeFormat().resolvedOptions().timeZone;
@@ -4401,18 +4417,18 @@ function kt(e) {
4401
4417
  ], r.getDefaultCountry = function() {
4402
4418
  const { session: t } = e.auth.getCurrentUser();
4403
4419
  if (t) {
4404
- const i = t?.organisation?.countryCode;
4405
- if (i) {
4406
- const s = r.countryLookup[i];
4420
+ const n = t?.organisation?.countryCode;
4421
+ if (n) {
4422
+ const o = r.countryLookup[n];
4407
4423
  return {
4408
- code: i,
4409
- name: s
4424
+ code: n,
4425
+ name: o
4410
4426
  };
4411
4427
  }
4412
4428
  }
4413
4429
  }, r;
4414
4430
  }
4415
- const It = function(e, r) {
4431
+ const kt = function(e, r) {
4416
4432
  if (r = r || "production", !e.auth)
4417
4433
  throw new Error("Can't Instantiate QikSocket before QikAuth exists");
4418
4434
  const a = e.utils.guid();
@@ -4422,88 +4438,88 @@ const It = function(e, r) {
4422
4438
  connected: !1,
4423
4439
  windowID: a,
4424
4440
  autoreconnect: !0
4425
- }, i, s = {};
4426
- const f = {}, u = new je();
4427
- u.bootstrap(t), t.channel = async function(g) {
4428
- if (s[g])
4429
- return s[g];
4430
- const x = new je();
4431
- s[g] = x, t.connected || await t.connect(), t.subscribe(g), t.addEventListener(g, o);
4432
- function o(n) {
4433
- x.dispatch("message", n);
4441
+ }, n, o = {};
4442
+ const p = {}, l = new je();
4443
+ l.bootstrap(t), t.channel = async function(s) {
4444
+ if (o[s])
4445
+ return o[s];
4446
+ const f = new je();
4447
+ o[s] = f, t.connected || await t.connect(), t.subscribe(s), t.addEventListener(s, c);
4448
+ function c(u) {
4449
+ f.dispatch("message", u);
4434
4450
  }
4435
- return x.destroy = function() {
4436
- t.removeAllListeners(), s[g] = null;
4437
- }, s[g];
4451
+ return f.destroy = function() {
4452
+ t.removeAllListeners(), o[s] = null;
4453
+ }, o[s];
4438
4454
  };
4439
- function d(g) {
4440
- t.debug && console.log("[socket] Connection open", g), t.connected = !0, u.dispatch("connected", g);
4455
+ function m(s) {
4456
+ t.debug && console.log("[socket] Connection open", s), t.connected = !0, l.dispatch("connected", s);
4441
4457
  }
4442
- async function m(g) {
4443
- g.wasClean ? t.debug && console.log(`[socket] Connection closed cleanly, code=${g.code} reason=${g.reason}`) : t.debug && console.log("[socket] - connection closed due to error", g), t.connected = !1, u.dispatch("disconnected", g), i = null, t.autoreconnect && t.reconnect();
4458
+ async function y(s) {
4459
+ s.wasClean ? t.debug && console.log(`[socket] Connection closed cleanly, code=${s.code} reason=${s.reason}`) : t.debug && console.log("[socket] - connection closed due to error", s), t.connected = !1, l.dispatch("disconnected", s), n = null, t.autoreconnect && t.reconnect();
4444
4460
  }
4445
- function S(g) {
4446
- console.log("[event] socketError", event), t.debug && console.log("[socket] Error", g), u.dispatch("error", g);
4461
+ function S(s) {
4462
+ console.log("[event] socketError", event), t.debug && console.log("[socket] Error", s), l.dispatch("error", s);
4447
4463
  }
4448
- function A(g) {
4449
- const x = JSON.parse(g.data);
4450
- t.debug && console.log("[socket] message received", x), u.dispatch("message", x), x.channel && u.dispatch(x.channel, x);
4464
+ function b(s) {
4465
+ const f = JSON.parse(s.data);
4466
+ t.debug && console.log("[socket] message received", f), l.dispatch("message", f), f.channel && l.dispatch(f.channel, f);
4451
4467
  }
4452
- async function P(g) {
4453
- i.send(JSON.stringify(g));
4468
+ async function E(s) {
4469
+ n.send(JSON.stringify(s));
4454
4470
  }
4455
- function v() {
4456
- return new Promise(function(g) {
4457
- function x() {
4471
+ function i() {
4472
+ return new Promise(function(s) {
4473
+ function f() {
4458
4474
  if (t.connected)
4459
- return g(i);
4460
- setTimeout(x, 1e3);
4475
+ return s(n);
4476
+ setTimeout(f, 1e3);
4461
4477
  }
4462
- x();
4478
+ f();
4463
4479
  });
4464
4480
  }
4465
4481
  return t.connect = async function() {
4466
- if (i)
4467
- return i.connected ? (console.log("[socket] - Socket is already connected"), i) : v();
4468
- const g = e.auth.getCurrentToken();
4469
- if (!g) {
4482
+ if (n)
4483
+ return n.connected ? (console.log("[socket] - Socket is already connected"), n) : i();
4484
+ const s = e.auth.getCurrentToken();
4485
+ if (!s) {
4470
4486
  t.debug && console.log("[socket] - Must be authenticated to connect to socket");
4471
4487
  return;
4472
4488
  }
4473
- return i = new WebSocket(`${t.url}?access_token=${g}&windowid=${a}`), i.addEventListener("close", m), i.addEventListener("error", S), i.addEventListener("open", d), i.addEventListener("message", A), t.debug && console.log("[socket] - Connected with event listeners"), v();
4489
+ return n = new WebSocket(`${t.url}?access_token=${s}&windowid=${a}`), n.addEventListener("close", y), n.addEventListener("error", S), n.addEventListener("open", m), n.addEventListener("message", b), t.debug && console.log("[socket] - Connected with event listeners"), i();
4474
4490
  }, t.reconnect = async function() {
4475
4491
  if (t.connected)
4476
4492
  return;
4477
4493
  t.debug && console.log("[socket] reconnecting...");
4478
- const g = await t.connect();
4479
- return Object.keys(f).forEach(function(o) {
4480
- t.subscribe(o);
4481
- }), g;
4494
+ const s = await t.connect();
4495
+ return Object.keys(p).forEach(function(c) {
4496
+ t.subscribe(c);
4497
+ }), s;
4482
4498
  }, t.close = async function() {
4483
- if (!i) {
4499
+ if (!n) {
4484
4500
  console.log("[socket] - Socket is not connected");
4485
4501
  return;
4486
4502
  }
4487
- const g = t.autoreconnect;
4488
- t.autoreconnect = !1, i.close(), i.removeEventListener("close", m), i.removeEventListener("error", S), i.removeEventListener("open", d), i.removeEventListener("message", A), i = null, m({ wasClean: !0 }), t.autoreconnect = g;
4489
- }, t.disconnect = t.close, t.subscribe = async function(g) {
4490
- if (!i) {
4503
+ const s = t.autoreconnect;
4504
+ t.autoreconnect = !1, n.close(), n.removeEventListener("close", y), n.removeEventListener("error", S), n.removeEventListener("open", m), n.removeEventListener("message", b), n = null, y({ wasClean: !0 }), t.autoreconnect = s;
4505
+ }, t.disconnect = t.close, t.subscribe = async function(s) {
4506
+ if (!n) {
4491
4507
  console.log("[socket] - Can't subscribe to channel as socket is not connected");
4492
4508
  return;
4493
4509
  }
4494
- P({
4510
+ E({
4495
4511
  action: "subscribe",
4496
- channel: g
4497
- }), f[g] = !0, u.dispatch("subscribe", g), t.debug && console.log(`[socket] - subscribed to ${g}`);
4498
- }, t.unsubscribe = async function(g) {
4499
- if (!i) {
4512
+ channel: s
4513
+ }), p[s] = !0, l.dispatch("subscribe", s), t.debug && console.log(`[socket] - subscribed to ${s}`);
4514
+ }, t.unsubscribe = async function(s) {
4515
+ if (!n) {
4500
4516
  console.log("[socket] - Can't unsubscribe from channel as socket is not connected");
4501
4517
  return;
4502
4518
  }
4503
- P({
4519
+ E({
4504
4520
  action: "unsubscribe",
4505
- channel: g
4506
- }), delete f[g], u.dispatch("unsubscribe", g), t.debug && console.log(`[socket] - unsubscribed from ${g}`);
4521
+ channel: s
4522
+ }), delete p[s], l.dispatch("unsubscribe", s), t.debug && console.log(`[socket] - unsubscribed from ${s}`);
4507
4523
  }, t;
4508
4524
  };
4509
4525
  function Nt(e) {
@@ -4532,36 +4548,36 @@ function Nt(e) {
4532
4548
  value: xt,
4533
4549
  writable: !1
4534
4550
  });
4535
- const t = M;
4551
+ const t = T;
4536
4552
  Object.defineProperty(r, "utils", {
4537
4553
  value: t,
4538
4554
  writable: !1
4539
4555
  }), Object.defineProperty(r, "filter", {
4540
- value: Q,
4556
+ value: q,
4541
4557
  writable: !1
4542
4558
  });
4543
- const s = new Pt(r);
4559
+ const o = new Pt(r);
4544
4560
  Object.defineProperty(r, "files", {
4545
- value: s,
4561
+ value: o,
4546
4562
  writable: !1
4547
- }), new je().bootstrap(r), r.error = function(g) {
4548
- return r.dispatch("error", t.errorMessage(g));
4549
- }, r.notify = function(g, x) {
4550
- return r.dispatch("notification", { message: g, options: x });
4563
+ }), new je().bootstrap(r), r.error = function(s) {
4564
+ return r.dispatch("error", t.errorMessage(s));
4565
+ }, r.notify = function(s, f) {
4566
+ return r.dispatch("notification", { message: s, options: f });
4551
4567
  };
4552
- const u = new mt(r);
4568
+ const l = new mt(r);
4553
4569
  Object.defineProperty(r, "api", {
4554
- value: u,
4570
+ value: l,
4555
4571
  writable: !1
4556
4572
  });
4557
- const d = new Et(r);
4573
+ const m = new Et(r);
4558
4574
  Object.defineProperty(r, "auth", {
4559
- value: d,
4575
+ value: m,
4560
4576
  writable: !1
4561
4577
  });
4562
- const m = new It(r);
4578
+ const y = new kt(r);
4563
4579
  Object.defineProperty(r, "socket", {
4564
- value: m,
4580
+ value: y,
4565
4581
  writable: !1
4566
4582
  });
4567
4583
  const S = new Ct(r);
@@ -4569,19 +4585,19 @@ function Nt(e) {
4569
4585
  value: S,
4570
4586
  writable: !1
4571
4587
  });
4572
- const A = new Mt(r);
4588
+ const b = new Mt(r);
4573
4589
  Object.defineProperty(r, "system", {
4574
- value: A,
4590
+ value: b,
4575
4591
  writable: !1
4576
4592
  });
4577
- const P = new kt(r);
4593
+ const E = new It(r);
4578
4594
  Object.defineProperty(r, "geo", {
4579
- value: P,
4595
+ value: E,
4580
4596
  writable: !1
4581
4597
  });
4582
- const v = new Ot(r);
4598
+ const i = new Ot(r);
4583
4599
  return Object.defineProperty(r, "content", {
4584
- value: v,
4600
+ value: i,
4585
4601
  writable: !1
4586
4602
  }), r;
4587
4603
  }