bt-core-app 1.4.62 → 1.4.63

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.
@@ -2,7 +2,7 @@ import { ref as Y, shallowRef as Re, computed as te, toValue as K, watch as _e,
2
2
  import { watchArray as pr, useStorage as Jt, useEventListener as he, toValue as Ae, useParentElement as jt, useResizeObserver as Kt, useArrayUnique as Qt, useArrayDifference as Wr, watchDebounced as Xt, tryOnMounted as Ot } from "@vueuse/core";
3
3
  import { defineStore as et } from "pinia";
4
4
  import { DateTime as de } from "luxon";
5
- import { useRouter as Nr, useRoute as rt } from "vue-router";
5
+ import { useRouter as Mr, useRoute as rt } from "vue-router";
6
6
  function pt(e) {
7
7
  return (e || "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx").replace(/[xy]/g, en);
8
8
  }
@@ -11,11 +11,11 @@ function en(e) {
11
11
  return (e == "x" ? t : t & 3 | 8).toString(16);
12
12
  }
13
13
  function rn(e) {
14
- const t = Y([]), l = Re(), A = Re(), s = Re(), g = te(() => l.value != null);
14
+ const t = Y([]), l = Re(), b = Re(), s = Re(), g = te(() => l.value != null);
15
15
  function x(d) {
16
16
  t.value = t.value.filter((h) => h.id != d);
17
17
  }
18
- function C(d) {
18
+ function P(d) {
19
19
  const h = {
20
20
  id: pt(),
21
21
  msg: d ?? "Loading"
@@ -23,22 +23,22 @@ function rn(e) {
23
23
  return t.value.push(h), h.id;
24
24
  }
25
25
  function T(d) {
26
- d != null && (A.value = d.toString());
26
+ d != null && (b.value = d.toString());
27
27
  }
28
- function P() {
29
- A.value = void 0;
28
+ function N() {
29
+ b.value = void 0;
30
30
  }
31
31
  async function $(d, h) {
32
32
  const u = { ...h };
33
33
  u.completionMsg ?? (u.completionMsg = e == null ? void 0 : e.completionMsg), u.confirmationMsg ?? (u.confirmationMsg = e == null ? void 0 : e.confirmationMsg), u.errorMsg ?? (u.errorMsg = e == null ? void 0 : e.errorMsg), u.loadingMsg ?? (u.loadingMsg = (e == null ? void 0 : e.loadingMsg) ?? "Loading"), u.requireConfirmation ?? (u.requireConfirmation = e == null ? void 0 : e.requireConfirmation);
34
- const r = C(u.loadingMsg);
34
+ const r = P(u.loadingMsg);
35
35
  let y = null;
36
36
  try {
37
37
  return u.requireConfirmation || u.confirmationMsg, y = await d(), u.completionMsg != null && (s.value = u.completionMsg), y;
38
- } catch (E) {
38
+ } catch (I) {
39
39
  if (u.throwError == !0)
40
40
  return y;
41
- T(u.errorMsg ?? E ?? "error");
41
+ T(u.errorMsg ?? I ?? "error");
42
42
  } finally {
43
43
  x(r);
44
44
  }
@@ -46,10 +46,10 @@ function rn(e) {
46
46
  return pr(t, (d) => {
47
47
  l.value = d.length > 0 ? d[0].msg : void 0;
48
48
  }, { deep: !0 }), {
49
- actionErrorMsg: A,
49
+ actionErrorMsg: b,
50
50
  actionLoadingMsg: l,
51
51
  actionCompleteMsg: s,
52
- clearErrors: P,
52
+ clearErrors: N,
53
53
  doAction: $,
54
54
  isLoading: g,
55
55
  logError: T
@@ -59,7 +59,7 @@ var Qe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
59
59
  function tn(e) {
60
60
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
61
61
  }
62
- var Ge = function() {
62
+ var Be = function() {
63
63
  function e(s) {
64
64
  return s;
65
65
  }
@@ -74,11 +74,11 @@ var Ge = function() {
74
74
  };
75
75
  }
76
76
  if (s.length === 1) {
77
- var C = s, T = g.ignoreCase ? t : e, P = g.cmp || function(d, h) {
77
+ var P = s, T = g.ignoreCase ? t : e, N = g.cmp || function(d, h) {
78
78
  return d < h ? -1 : d > h ? 1 : 0;
79
79
  };
80
80
  s = function(d, h) {
81
- return P(T(C(d)), T(C(h)));
81
+ return N(T(P(d)), T(P(h)));
82
82
  };
83
83
  }
84
84
  const $ = { "-1": "", desc: "" };
@@ -86,25 +86,25 @@ var Ge = function() {
86
86
  return -s(d, h);
87
87
  } : s;
88
88
  }
89
- function A(s, g) {
90
- var x = typeof this == "function" && !this.firstBy ? this : !1, C = l(s, g), T = x ? function(P, $) {
91
- return x(P, $) || C(P, $);
92
- } : C;
93
- return T.thenBy = A, T;
89
+ function b(s, g) {
90
+ var x = typeof this == "function" && !this.firstBy ? this : !1, P = l(s, g), T = x ? function(N, $) {
91
+ return x(N, $) || P(N, $);
92
+ } : P;
93
+ return T.thenBy = b, T;
94
94
  }
95
- return A.firstBy = A, A;
95
+ return b.firstBy = b, b;
96
96
  }();
97
97
  function Ue(e, t) {
98
- let l = e ?? "", A = t ?? "";
98
+ let l = e ?? "", b = t ?? "";
99
99
  if (l.endsWith("/"))
100
100
  do
101
101
  l = l.slice(0, l.length - 1);
102
102
  while (l.endsWith("/"));
103
- if (A.startsWith("/"))
103
+ if (b.startsWith("/"))
104
104
  do
105
- A = A.slice(1, A.length);
106
- while (A.startsWith("/"));
107
- return `${l}/${A}`;
105
+ b = b.slice(1, b.length);
106
+ while (b.startsWith("/"));
107
+ return `${l}/${b}`;
108
108
  }
109
109
  function Jn(e) {
110
110
  return e == null || !Array.isArray(e) ? e : [...new Set(e.map((t) => t))];
@@ -155,13 +155,13 @@ function tt(e, t = !1) {
155
155
  }
156
156
  function pn(e, t, l) {
157
157
  if (e) {
158
- var A = new Image();
159
- A.onload = t, A.onerror = l, A.src = e;
158
+ var b = new Image();
159
+ b.onload = t, b.onerror = l, b.src = e;
160
160
  }
161
161
  }
162
162
  async function ea(e, t = !0) {
163
- return new Promise((l, A) => {
164
- e == null && A("no url given");
163
+ return new Promise((l, b) => {
164
+ e == null && b("no url given");
165
165
  var s = new Image();
166
166
  s.setAttribute("crossOrigin", "anonymous"), s.onload = function() {
167
167
  var g = document.createElement("canvas");
@@ -169,7 +169,7 @@ async function ea(e, t = !0) {
169
169
  var x = g.getContext("2d");
170
170
  x == null || x.drawImage(this, 0, 0), l(g.toDataURL("image/png"));
171
171
  }, s.onerror = function() {
172
- console.log("errr"), t ? A("image could not be loaded for some reason") : l(null);
172
+ console.log("errr"), t ? b("image could not be loaded for some reason") : l(null);
173
173
  }, e != null && (s.src = e);
174
174
  });
175
175
  }
@@ -198,19 +198,19 @@ const Ze = [
198
198
  function ta(e) {
199
199
  if (e == null)
200
200
  return 0;
201
- const t = e.replaceAll(" ", "").split(",").map((A) => A.toLowerCase()), l = Ze.filter((A) => A.values.some((s) => t.some((g) => s == g))).map((A) => A.value);
201
+ const t = e.replaceAll(" ", "").split(",").map((b) => b.toLowerCase()), l = Ze.filter((b) => b.values.some((s) => t.some((g) => s == g))).map((b) => b.value);
202
202
  return l.length == 0 ? 8 : Math.min(...l);
203
203
  }
204
204
  function na(e) {
205
205
  return e == null ? e : e.toLowerCase().replaceAll(" ", "").split(",").map((t) => {
206
- let l = Ze.find((A) => A.values.some((s) => s == t));
206
+ let l = Ze.find((b) => b.values.some((s) => s == t));
207
207
  return l != null ? l.short : "";
208
208
  }).filter((t) => t != null && t.length > 0).toString();
209
209
  }
210
210
  function aa(e, t) {
211
211
  if (e == null || t == null)
212
212
  return !0;
213
- const l = e.replaceAll(" ", "").split(",").map((g) => g.toLowerCase()), A = t.replaceAll(" ", "").toLowerCase(), s = Ze.find((g) => g.values.some((x) => x == A));
213
+ const l = e.replaceAll(" ", "").split(",").map((g) => g.toLowerCase()), b = t.replaceAll(" ", "").toLowerCase(), s = Ze.find((g) => g.values.some((x) => x == b));
214
214
  return s != null && l.some((g) => g == s.short || s.values.some((x) => x == g));
215
215
  }
216
216
  function la(e, t) {
@@ -218,16 +218,16 @@ function la(e, t) {
218
218
  return e;
219
219
  let l = e ?? "";
220
220
  l = `${l},${t}`;
221
- let A = [...new Set(l.replaceAll(" ", "").toLowerCase().split(",").map((s) => Ze.find((g) => g.values.some((x) => x == s))).filter((s) => s != null).sort(Ge.firstBy((s) => (s == null ? void 0 : s.value) ?? 0)).map((s) => s == null ? void 0 : s.short))].toString();
222
- return A.length > 0 ? A : void 0;
221
+ let b = [...new Set(l.replaceAll(" ", "").toLowerCase().split(",").map((s) => Ze.find((g) => g.values.some((x) => x == s))).filter((s) => s != null).sort(Be.firstBy((s) => (s == null ? void 0 : s.value) ?? 0)).map((s) => s == null ? void 0 : s.short))].toString();
222
+ return b.length > 0 ? b : void 0;
223
223
  }
224
224
  function ua(e, t) {
225
225
  if (t == null || e == null)
226
226
  return e;
227
- let l = e ?? "", A = t.replaceAll(" ", "").toLowerCase(), s = [...new Set(l.replaceAll(" ", "").toLowerCase().split(",").map((g) => Ze.find((x) => x.values.some((C) => C == g && C != A))).filter((g) => g != null).sort(Ge.firstBy((g) => (g == null ? void 0 : g.value) ?? 0)).map((g) => g == null ? void 0 : g.short))].toString();
227
+ let l = e ?? "", b = t.replaceAll(" ", "").toLowerCase(), s = [...new Set(l.replaceAll(" ", "").toLowerCase().split(",").map((g) => Ze.find((x) => x.values.some((P) => P == g && P != b))).filter((g) => g != null).sort(Be.firstBy((g) => (g == null ? void 0 : g.value) ?? 0)).map((g) => g == null ? void 0 : g.short))].toString();
228
228
  return s.length > 0 ? s : void 0;
229
229
  }
230
- function ca(e, t) {
230
+ function ia(e, t) {
231
231
  return e != null && Array.isArray(e) && e.length == t;
232
232
  }
233
233
  function Te(e, t = 0) {
@@ -236,45 +236,45 @@ function Te(e, t = 0) {
236
236
  function ln(e) {
237
237
  return e == "0001-01-01T00:00:00Z";
238
238
  }
239
- function ia() {
239
+ function ca() {
240
240
  return (/* @__PURE__ */ new Date("0001-01-01T00:00:00Z")).getTime();
241
241
  }
242
242
  function un() {
243
243
  return "0001-01-01T00:00:00Z";
244
244
  }
245
245
  function fa(e, t) {
246
- let l = "1", A = 0;
247
- if (A < t)
246
+ let l = "1", b = 0;
247
+ if (b < t)
248
248
  do
249
- l = l + "0", A += 1;
250
- while (A < t);
249
+ l = l + "0", b += 1;
250
+ while (b < t);
251
251
  let s = Number.parseInt(l);
252
252
  return Math.round(e * s) / s;
253
253
  }
254
254
  function sa(e, t) {
255
255
  let l = e ?? "";
256
- return t != null && (cn(l, t) ? l = l.split(",").filter((A) => A != t).toString() : l != null ? l = `${l},${t}` : l = t), l != null && l.length > 0 ? l : null;
256
+ return t != null && (cn(l, t) ? l = l.split(",").filter((b) => b != t).toString() : l != null ? l = `${l},${t}` : l = t), l != null && l.length > 0 ? l : null;
257
257
  }
258
258
  function cn(e, t) {
259
259
  if (e == null || e.length == 0)
260
260
  return !1;
261
261
  if (!t)
262
262
  return !0;
263
- var l = e.split(","), A = t.split(",");
264
- return l.some((s) => A.some((g) => g == s));
263
+ var l = e.split(","), b = t.split(",");
264
+ return l.some((s) => b.some((g) => g == s));
265
265
  }
266
266
  function Lr(e) {
267
267
  if (!e)
268
268
  return e;
269
269
  let t, l = Array.isArray(e) ? [] : {};
270
- for (const A in e)
271
- t = e[A], l[A] = typeof t == "object" ? Lr(t) : t;
270
+ for (const b in e)
271
+ t = e[b], l[b] = typeof t == "object" ? Lr(t) : t;
272
272
  return l;
273
273
  }
274
274
  function fn(e) {
275
275
  return e && Object.keys(e).sort().reduce(function(t, l) {
276
- let A = e[l];
277
- return t[l] = typeof A == "object" && A !== null ? fn(A) : A, t;
276
+ let b = e[l];
277
+ return t[l] = typeof b == "object" && b !== null ? fn(b) : b, t;
278
278
  }, Array.isArray(e) ? [] : {});
279
279
  }
280
280
  function sn(e, t) {
@@ -284,17 +284,17 @@ function nt(e, t = (l) => l) {
284
284
  if (e == null)
285
285
  return [];
286
286
  const l = Array.isArray(e) ? e : t(e);
287
- return Te(l) ? [...l.reduce((A, s) => {
288
- A.push(s);
287
+ return Te(l) ? [...l.reduce((b, s) => {
288
+ b.push(s);
289
289
  const g = nt(s, t);
290
- return Te(g) && A.push(...g), A;
290
+ return Te(g) && b.push(...g), b;
291
291
  }, [])] : [];
292
292
  }
293
293
  function oa(e) {
294
- const t = e.split(","), l = t[0].indexOf("base64") >= 0 ? atob(t[1]) : decodeURI(t[1]), A = t[0].split(":")[1].split(";")[0], s = new Uint8Array(l.length);
294
+ const t = e.split(","), l = t[0].indexOf("base64") >= 0 ? atob(t[1]) : decodeURI(t[1]), b = t[0].split(":")[1].split(";")[0], s = new Uint8Array(l.length);
295
295
  for (let g = 0; g < l.length; g++)
296
296
  s[g] = l.charCodeAt(g);
297
- return new Blob([s], { type: A });
297
+ return new Blob([s], { type: b });
298
298
  }
299
299
  function on(e) {
300
300
  var t = "";
@@ -320,8 +320,8 @@ function hn(e, t, l) {
320
320
  return !1;
321
321
  for (let s = 0; s < l.length; s++) {
322
322
  const g = l[s];
323
- var A = Sr(e, g);
324
- if (A != null && typeof A == "string" && sn(A, t))
323
+ var b = Sr(e, g);
324
+ if (b != null && typeof b == "string" && sn(b, t))
325
325
  return !0;
326
326
  }
327
327
  return !1;
@@ -338,8 +338,8 @@ function Sr(e, t) {
338
338
  if (e == null || e == null || !t)
339
339
  return null;
340
340
  var l = t.split(".");
341
- let A = l.length;
342
- for (var s = e, g = 0; g < A; g++)
341
+ let b = l.length;
342
+ for (var s = e, g = 0; g < b; g++)
343
343
  if (s = s[l[g]], s == null)
344
344
  return null;
345
345
  return s;
@@ -364,74 +364,74 @@ var at = { exports: {} };
364
364
  (function(l) {
365
365
  e.exports = l();
366
366
  })(function() {
367
- return function l(A, s, g) {
368
- function x(P, $) {
369
- if (!s[P]) {
370
- if (!A[P]) {
367
+ return function l(b, s, g) {
368
+ function x(N, $) {
369
+ if (!s[N]) {
370
+ if (!b[N]) {
371
371
  var d = typeof Xe == "function" && Xe;
372
372
  if (!$ && d)
373
- return d(P, !0);
374
- if (C)
375
- return C(P, !0);
376
- var h = new Error("Cannot find module '" + P + "'");
373
+ return d(N, !0);
374
+ if (P)
375
+ return P(N, !0);
376
+ var h = new Error("Cannot find module '" + N + "'");
377
377
  throw h.code = "MODULE_NOT_FOUND", h;
378
378
  }
379
- var u = s[P] = { exports: {} };
380
- A[P][0].call(u.exports, function(r) {
381
- var y = A[P][1][r];
379
+ var u = s[N] = { exports: {} };
380
+ b[N][0].call(u.exports, function(r) {
381
+ var y = b[N][1][r];
382
382
  return x(y || r);
383
- }, u, u.exports, l, A, s, g);
383
+ }, u, u.exports, l, b, s, g);
384
384
  }
385
- return s[P].exports;
385
+ return s[N].exports;
386
386
  }
387
- for (var C = typeof Xe == "function" && Xe, T = 0; T < g.length; T++)
387
+ for (var P = typeof Xe == "function" && Xe, T = 0; T < g.length; T++)
388
388
  x(g[T]);
389
389
  return x;
390
- }({ 1: [function(l, A, s) {
390
+ }({ 1: [function(l, b, s) {
391
391
  (function(g) {
392
- var x = g.MutationObserver || g.WebKitMutationObserver, C;
392
+ var x = g.MutationObserver || g.WebKitMutationObserver, P;
393
393
  if (x) {
394
- var T = 0, P = new x(r), $ = g.document.createTextNode("");
395
- P.observe($, {
394
+ var T = 0, N = new x(r), $ = g.document.createTextNode("");
395
+ N.observe($, {
396
396
  characterData: !0
397
- }), C = function() {
397
+ }), P = function() {
398
398
  $.data = T = ++T % 2;
399
399
  };
400
400
  } else if (!g.setImmediate && typeof g.MessageChannel < "u") {
401
401
  var d = new g.MessageChannel();
402
- d.port1.onmessage = r, C = function() {
402
+ d.port1.onmessage = r, P = function() {
403
403
  d.port2.postMessage(0);
404
404
  };
405
405
  } else
406
- "document" in g && "onreadystatechange" in g.document.createElement("script") ? C = function() {
407
- var E = g.document.createElement("script");
408
- E.onreadystatechange = function() {
409
- r(), E.onreadystatechange = null, E.parentNode.removeChild(E), E = null;
410
- }, g.document.documentElement.appendChild(E);
411
- } : C = function() {
406
+ "document" in g && "onreadystatechange" in g.document.createElement("script") ? P = function() {
407
+ var I = g.document.createElement("script");
408
+ I.onreadystatechange = function() {
409
+ r(), I.onreadystatechange = null, I.parentNode.removeChild(I), I = null;
410
+ }, g.document.documentElement.appendChild(I);
411
+ } : P = function() {
412
412
  setTimeout(r, 0);
413
413
  };
414
414
  var h, u = [];
415
415
  function r() {
416
416
  h = !0;
417
- for (var E, i, S = u.length; S; ) {
418
- for (i = u, u = [], E = -1; ++E < S; )
419
- i[E]();
417
+ for (var I, c, S = u.length; S; ) {
418
+ for (c = u, u = [], I = -1; ++I < S; )
419
+ c[I]();
420
420
  S = u.length;
421
421
  }
422
422
  h = !1;
423
423
  }
424
- A.exports = y;
425
- function y(E) {
426
- u.push(E) === 1 && !h && C();
424
+ b.exports = y;
425
+ function y(I) {
426
+ u.push(I) === 1 && !h && P();
427
427
  }
428
428
  }).call(this, typeof Qe < "u" ? Qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
429
- }, {}], 2: [function(l, A, s) {
429
+ }, {}], 2: [function(l, b, s) {
430
430
  var g = l(1);
431
431
  function x() {
432
432
  }
433
- var C = {}, T = ["REJECTED"], P = ["FULFILLED"], $ = ["PENDING"];
434
- A.exports = d;
433
+ var P = {}, T = ["REJECTED"], N = ["FULFILLED"], $ = ["PENDING"];
434
+ b.exports = d;
435
435
  function d(w) {
436
436
  if (typeof w != "function")
437
437
  throw new TypeError("resolver must be a function");
@@ -440,12 +440,12 @@ var at = { exports: {} };
440
440
  d.prototype.catch = function(w) {
441
441
  return this.then(null, w);
442
442
  }, d.prototype.then = function(w, _) {
443
- if (typeof w != "function" && this.state === P || typeof _ != "function" && this.state === T)
443
+ if (typeof w != "function" && this.state === N || typeof _ != "function" && this.state === T)
444
444
  return this;
445
445
  var D = new this.constructor(x);
446
446
  if (this.state !== $) {
447
- var N = this.state === P ? w : _;
448
- u(D, N, this.outcome);
447
+ var M = this.state === N ? w : _;
448
+ u(D, M, this.outcome);
449
449
  } else
450
450
  this.queue.push(new h(D, w, _));
451
451
  return D;
@@ -454,41 +454,41 @@ var at = { exports: {} };
454
454
  this.promise = w, typeof _ == "function" && (this.onFulfilled = _, this.callFulfilled = this.otherCallFulfilled), typeof D == "function" && (this.onRejected = D, this.callRejected = this.otherCallRejected);
455
455
  }
456
456
  h.prototype.callFulfilled = function(w) {
457
- C.resolve(this.promise, w);
457
+ P.resolve(this.promise, w);
458
458
  }, h.prototype.otherCallFulfilled = function(w) {
459
459
  u(this.promise, this.onFulfilled, w);
460
460
  }, h.prototype.callRejected = function(w) {
461
- C.reject(this.promise, w);
461
+ P.reject(this.promise, w);
462
462
  }, h.prototype.otherCallRejected = function(w) {
463
463
  u(this.promise, this.onRejected, w);
464
464
  };
465
465
  function u(w, _, D) {
466
466
  g(function() {
467
- var N;
467
+ var M;
468
468
  try {
469
- N = _(D);
469
+ M = _(D);
470
470
  } catch (f) {
471
- return C.reject(w, f);
471
+ return P.reject(w, f);
472
472
  }
473
- N === w ? C.reject(w, new TypeError("Cannot resolve promise with itself")) : C.resolve(w, N);
473
+ M === w ? P.reject(w, new TypeError("Cannot resolve promise with itself")) : P.resolve(w, M);
474
474
  });
475
475
  }
476
- C.resolve = function(w, _) {
477
- var D = E(r, _);
476
+ P.resolve = function(w, _) {
477
+ var D = I(r, _);
478
478
  if (D.status === "error")
479
- return C.reject(w, D.value);
480
- var N = D.value;
481
- if (N)
482
- y(w, N);
479
+ return P.reject(w, D.value);
480
+ var M = D.value;
481
+ if (M)
482
+ y(w, M);
483
483
  else {
484
- w.state = P, w.outcome = _;
485
- for (var f = -1, b = w.queue.length; ++f < b; )
484
+ w.state = N, w.outcome = _;
485
+ for (var f = -1, A = w.queue.length; ++f < A; )
486
486
  w.queue[f].callFulfilled(_);
487
487
  }
488
488
  return w;
489
- }, C.reject = function(w, _) {
489
+ }, P.reject = function(w, _) {
490
490
  w.state = T, w.outcome = _;
491
- for (var D = -1, N = w.queue.length; ++D < N; )
491
+ for (var D = -1, M = w.queue.length; ++D < M; )
492
492
  w.queue[D].callRejected(_);
493
493
  return w;
494
494
  };
@@ -501,53 +501,53 @@ var at = { exports: {} };
501
501
  }
502
502
  function y(w, _) {
503
503
  var D = !1;
504
- function N(Q) {
505
- D || (D = !0, C.reject(w, Q));
504
+ function M(Q) {
505
+ D || (D = !0, P.reject(w, Q));
506
506
  }
507
507
  function f(Q) {
508
- D || (D = !0, C.resolve(w, Q));
508
+ D || (D = !0, P.resolve(w, Q));
509
509
  }
510
- function b() {
511
- _(f, N);
510
+ function A() {
511
+ _(f, M);
512
512
  }
513
- var J = E(b);
514
- J.status === "error" && N(J.value);
513
+ var J = I(A);
514
+ J.status === "error" && M(J.value);
515
515
  }
516
- function E(w, _) {
516
+ function I(w, _) {
517
517
  var D = {};
518
518
  try {
519
519
  D.value = w(_), D.status = "success";
520
- } catch (N) {
521
- D.status = "error", D.value = N;
520
+ } catch (M) {
521
+ D.status = "error", D.value = M;
522
522
  }
523
523
  return D;
524
524
  }
525
- d.resolve = i;
526
- function i(w) {
527
- return w instanceof this ? w : C.resolve(new this(x), w);
525
+ d.resolve = c;
526
+ function c(w) {
527
+ return w instanceof this ? w : P.resolve(new this(x), w);
528
528
  }
529
529
  d.reject = S;
530
530
  function S(w) {
531
531
  var _ = new this(x);
532
- return C.reject(_, w);
532
+ return P.reject(_, w);
533
533
  }
534
- d.all = I;
535
- function I(w) {
534
+ d.all = E;
535
+ function E(w) {
536
536
  var _ = this;
537
537
  if (Object.prototype.toString.call(w) !== "[object Array]")
538
538
  return this.reject(new TypeError("must be an array"));
539
- var D = w.length, N = !1;
539
+ var D = w.length, M = !1;
540
540
  if (!D)
541
541
  return this.resolve([]);
542
- for (var f = new Array(D), b = 0, J = -1, Q = new this(x); ++J < D; )
542
+ for (var f = new Array(D), A = 0, J = -1, Q = new this(x); ++J < D; )
543
543
  ee(w[J], J);
544
544
  return Q;
545
- function ee(ce, we) {
546
- _.resolve(ce).then(W, function(Z) {
547
- N || (N = !0, C.reject(Q, Z));
545
+ function ee(ie, we) {
546
+ _.resolve(ie).then(W, function(Z) {
547
+ M || (M = !0, P.reject(Q, Z));
548
548
  });
549
549
  function W(Z) {
550
- f[we] = Z, ++b === D && !N && (N = !0, C.resolve(Q, f));
550
+ f[we] = Z, ++A === D && !M && (M = !0, P.resolve(Q, f));
551
551
  }
552
552
  }
553
553
  }
@@ -556,35 +556,35 @@ var at = { exports: {} };
556
556
  var _ = this;
557
557
  if (Object.prototype.toString.call(w) !== "[object Array]")
558
558
  return this.reject(new TypeError("must be an array"));
559
- var D = w.length, N = !1;
559
+ var D = w.length, M = !1;
560
560
  if (!D)
561
561
  return this.resolve([]);
562
- for (var f = -1, b = new this(x); ++f < D; )
562
+ for (var f = -1, A = new this(x); ++f < D; )
563
563
  J(w[f]);
564
- return b;
564
+ return A;
565
565
  function J(Q) {
566
566
  _.resolve(Q).then(function(ee) {
567
- N || (N = !0, C.resolve(b, ee));
567
+ M || (M = !0, P.resolve(A, ee));
568
568
  }, function(ee) {
569
- N || (N = !0, C.reject(b, ee));
569
+ M || (M = !0, P.reject(A, ee));
570
570
  });
571
571
  }
572
572
  }
573
- }, { 1: 1 }], 3: [function(l, A, s) {
573
+ }, { 1: 1 }], 3: [function(l, b, s) {
574
574
  (function(g) {
575
575
  typeof g.Promise != "function" && (g.Promise = l(2));
576
576
  }).call(this, typeof Qe < "u" ? Qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
577
- }, { 2: 2 }], 4: [function(l, A, s) {
577
+ }, { 2: 2 }], 4: [function(l, b, s) {
578
578
  var g = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
579
579
  return typeof n;
580
580
  } : function(n) {
581
581
  return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
582
582
  };
583
- function x(n, c) {
584
- if (!(n instanceof c))
583
+ function x(n, i) {
584
+ if (!(n instanceof i))
585
585
  throw new TypeError("Cannot call a class as a function");
586
586
  }
587
- function C() {
587
+ function P() {
588
588
  try {
589
589
  if (typeof indexedDB < "u")
590
590
  return indexedDB;
@@ -600,13 +600,13 @@ var at = { exports: {} };
600
600
  return;
601
601
  }
602
602
  }
603
- var T = C();
604
- function P() {
603
+ var T = P();
604
+ function N() {
605
605
  try {
606
606
  if (!T || !T.open)
607
607
  return !1;
608
- var n = typeof openDatabase < "u" && /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform), c = typeof fetch == "function" && fetch.toString().indexOf("[native code") !== -1;
609
- return (!n || c) && typeof indexedDB < "u" && // some outdated implementations of IDB that appear on Samsung
608
+ var n = typeof openDatabase < "u" && /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform), i = typeof fetch == "function" && fetch.toString().indexOf("[native code") !== -1;
609
+ return (!n || i) && typeof indexedDB < "u" && // some outdated implementations of IDB that appear on Samsung
610
610
  // and HTC Android devices <4.4 are missing IDBKeyRange
611
611
  // See: https://github.com/mozilla/localForage/issues/128
612
612
  // See: https://github.com/mozilla/localForage/issues/272
@@ -615,29 +615,29 @@ var at = { exports: {} };
615
615
  return !1;
616
616
  }
617
617
  }
618
- function $(n, c) {
619
- n = n || [], c = c || {};
618
+ function $(n, i) {
619
+ n = n || [], i = i || {};
620
620
  try {
621
- return new Blob(n, c);
621
+ return new Blob(n, i);
622
622
  } catch (o) {
623
623
  if (o.name !== "TypeError")
624
624
  throw o;
625
625
  for (var a = typeof BlobBuilder < "u" ? BlobBuilder : typeof MSBlobBuilder < "u" ? MSBlobBuilder : typeof MozBlobBuilder < "u" ? MozBlobBuilder : WebKitBlobBuilder, m = new a(), v = 0; v < n.length; v += 1)
626
626
  m.append(n[v]);
627
- return m.getBlob(c.type);
627
+ return m.getBlob(i.type);
628
628
  }
629
629
  }
630
630
  typeof Promise > "u" && l(3);
631
631
  var d = Promise;
632
- function h(n, c) {
633
- c && n.then(function(a) {
634
- c(null, a);
632
+ function h(n, i) {
633
+ i && n.then(function(a) {
634
+ i(null, a);
635
635
  }, function(a) {
636
- c(a);
636
+ i(a);
637
637
  });
638
638
  }
639
- function u(n, c, a) {
640
- typeof c == "function" && n.then(c), typeof a == "function" && n.catch(a);
639
+ function u(n, i, a) {
640
+ typeof i == "function" && n.then(i), typeof a == "function" && n.catch(a);
641
641
  }
642
642
  function r(n) {
643
643
  return typeof n != "string" && (console.warn(n + " used as a key, but it is not a string."), n = String(n)), n;
@@ -646,89 +646,89 @@ var at = { exports: {} };
646
646
  if (arguments.length && typeof arguments[arguments.length - 1] == "function")
647
647
  return arguments[arguments.length - 1];
648
648
  }
649
- var E = "local-forage-detect-blob-support", i = void 0, S = {}, I = Object.prototype.toString, L = "readonly", w = "readwrite";
649
+ var I = "local-forage-detect-blob-support", c = void 0, S = {}, E = Object.prototype.toString, L = "readonly", w = "readwrite";
650
650
  function _(n) {
651
- for (var c = n.length, a = new ArrayBuffer(c), m = new Uint8Array(a), v = 0; v < c; v++)
651
+ for (var i = n.length, a = new ArrayBuffer(i), m = new Uint8Array(a), v = 0; v < i; v++)
652
652
  m[v] = n.charCodeAt(v);
653
653
  return a;
654
654
  }
655
655
  function D(n) {
656
- return new d(function(c) {
657
- var a = n.transaction(E, w), m = $([""]);
658
- a.objectStore(E).put(m, "key"), a.onabort = function(v) {
659
- v.preventDefault(), v.stopPropagation(), c(!1);
656
+ return new d(function(i) {
657
+ var a = n.transaction(I, w), m = $([""]);
658
+ a.objectStore(I).put(m, "key"), a.onabort = function(v) {
659
+ v.preventDefault(), v.stopPropagation(), i(!1);
660
660
  }, a.oncomplete = function() {
661
661
  var v = navigator.userAgent.match(/Chrome\/(\d+)/), o = navigator.userAgent.match(/Edge\//);
662
- c(o || !v || parseInt(v[1], 10) >= 43);
662
+ i(o || !v || parseInt(v[1], 10) >= 43);
663
663
  };
664
664
  }).catch(function() {
665
665
  return !1;
666
666
  });
667
667
  }
668
- function N(n) {
669
- return typeof i == "boolean" ? d.resolve(i) : D(n).then(function(c) {
670
- return i = c, i;
668
+ function M(n) {
669
+ return typeof c == "boolean" ? d.resolve(c) : D(n).then(function(i) {
670
+ return c = i, c;
671
671
  });
672
672
  }
673
673
  function f(n) {
674
- var c = S[n.name], a = {};
674
+ var i = S[n.name], a = {};
675
675
  a.promise = new d(function(m, v) {
676
676
  a.resolve = m, a.reject = v;
677
- }), c.deferredOperations.push(a), c.dbReady ? c.dbReady = c.dbReady.then(function() {
677
+ }), i.deferredOperations.push(a), i.dbReady ? i.dbReady = i.dbReady.then(function() {
678
678
  return a.promise;
679
- }) : c.dbReady = a.promise;
679
+ }) : i.dbReady = a.promise;
680
680
  }
681
- function b(n) {
682
- var c = S[n.name], a = c.deferredOperations.pop();
681
+ function A(n) {
682
+ var i = S[n.name], a = i.deferredOperations.pop();
683
683
  if (a)
684
684
  return a.resolve(), a.promise;
685
685
  }
686
- function J(n, c) {
686
+ function J(n, i) {
687
687
  var a = S[n.name], m = a.deferredOperations.pop();
688
688
  if (m)
689
- return m.reject(c), m.promise;
689
+ return m.reject(i), m.promise;
690
690
  }
691
- function Q(n, c) {
691
+ function Q(n, i) {
692
692
  return new d(function(a, m) {
693
693
  if (S[n.name] = S[n.name] || ne(), n.db)
694
- if (c)
694
+ if (i)
695
695
  f(n), n.db.close();
696
696
  else
697
697
  return a(n.db);
698
698
  var v = [n.name];
699
- c && v.push(n.version);
699
+ i && v.push(n.version);
700
700
  var o = T.open.apply(T, v);
701
- c && (o.onupgradeneeded = function(M) {
701
+ i && (o.onupgradeneeded = function(C) {
702
702
  var R = o.result;
703
703
  try {
704
- R.createObjectStore(n.storeName), M.oldVersion <= 1 && R.createObjectStore(E);
705
- } catch (B) {
706
- if (B.name === "ConstraintError")
707
- console.warn('The database "' + n.name + '" has been upgraded from version ' + M.oldVersion + " to version " + M.newVersion + ', but the storage "' + n.storeName + '" already exists.');
704
+ R.createObjectStore(n.storeName), C.oldVersion <= 1 && R.createObjectStore(I);
705
+ } catch (U) {
706
+ if (U.name === "ConstraintError")
707
+ console.warn('The database "' + n.name + '" has been upgraded from version ' + C.oldVersion + " to version " + C.newVersion + ', but the storage "' + n.storeName + '" already exists.');
708
708
  else
709
- throw B;
709
+ throw U;
710
710
  }
711
- }), o.onerror = function(M) {
712
- M.preventDefault(), m(o.error);
711
+ }), o.onerror = function(C) {
712
+ C.preventDefault(), m(o.error);
713
713
  }, o.onsuccess = function() {
714
- var M = o.result;
715
- M.onversionchange = function(R) {
714
+ var C = o.result;
715
+ C.onversionchange = function(R) {
716
716
  R.target.close();
717
- }, a(M), b(n);
717
+ }, a(C), A(n);
718
718
  };
719
719
  });
720
720
  }
721
721
  function ee(n) {
722
722
  return Q(n, !1);
723
723
  }
724
- function ce(n) {
724
+ function ie(n) {
725
725
  return Q(n, !0);
726
726
  }
727
- function we(n, c) {
727
+ function we(n, i) {
728
728
  if (!n.db)
729
729
  return !0;
730
730
  var a = !n.db.objectStoreNames.contains(n.storeName), m = n.version < n.db.version, v = n.version > n.db.version;
731
- if (m && (n.version !== c && console.warn('The database "' + n.name + `" can't be downgraded from version ` + n.db.version + " to version " + n.version + "."), n.version = n.db.version), v || a) {
731
+ if (m && (n.version !== i && console.warn('The database "' + n.name + `" can't be downgraded from version ` + n.db.version + " to version " + n.version + "."), n.version = n.db.version), v || a) {
732
732
  if (a) {
733
733
  var o = n.db.version + 1;
734
734
  o > n.version && (n.version = o);
@@ -738,11 +738,11 @@ var at = { exports: {} };
738
738
  return !1;
739
739
  }
740
740
  function W(n) {
741
- return new d(function(c, a) {
741
+ return new d(function(i, a) {
742
742
  var m = new FileReader();
743
743
  m.onerror = a, m.onloadend = function(v) {
744
744
  var o = btoa(v.target.result || "");
745
- c({
745
+ i({
746
746
  __local_forage_encoded_blob: !0,
747
747
  data: o,
748
748
  type: n.type
@@ -751,15 +751,15 @@ var at = { exports: {} };
751
751
  });
752
752
  }
753
753
  function Z(n) {
754
- var c = _(atob(n.data));
755
- return $([c], { type: n.type });
754
+ var i = _(atob(n.data));
755
+ return $([i], { type: n.type });
756
756
  }
757
757
  function V(n) {
758
758
  return n && n.__local_forage_encoded_blob;
759
759
  }
760
760
  function ae(n) {
761
- var c = this, a = c._initReady().then(function() {
762
- var m = S[c._dbInfo.name];
761
+ var i = this, a = i._initReady().then(function() {
762
+ var m = S[i._dbInfo.name];
763
763
  if (m && m.dbReady)
764
764
  return m.dbReady;
765
765
  });
@@ -767,33 +767,33 @@ var at = { exports: {} };
767
767
  }
768
768
  function G(n) {
769
769
  f(n);
770
- for (var c = S[n.name], a = c.forages, m = 0; m < a.length; m++) {
770
+ for (var i = S[n.name], a = i.forages, m = 0; m < a.length; m++) {
771
771
  var v = a[m];
772
772
  v._dbInfo.db && (v._dbInfo.db.close(), v._dbInfo.db = null);
773
773
  }
774
774
  return n.db = null, ee(n).then(function(o) {
775
- return n.db = o, we(n) ? ce(n) : o;
775
+ return n.db = o, we(n) ? ie(n) : o;
776
776
  }).then(function(o) {
777
- n.db = c.db = o;
778
- for (var M = 0; M < a.length; M++)
779
- a[M]._dbInfo.db = o;
777
+ n.db = i.db = o;
778
+ for (var C = 0; C < a.length; C++)
779
+ a[C]._dbInfo.db = o;
780
780
  }).catch(function(o) {
781
781
  throw J(n, o), o;
782
782
  });
783
783
  }
784
- function X(n, c, a, m) {
784
+ function X(n, i, a, m) {
785
785
  m === void 0 && (m = 1);
786
786
  try {
787
- var v = n.db.transaction(n.storeName, c);
787
+ var v = n.db.transaction(n.storeName, i);
788
788
  a(null, v);
789
789
  } catch (o) {
790
790
  if (m > 0 && (!n.db || o.name === "InvalidStateError" || o.name === "NotFoundError"))
791
791
  return d.resolve().then(function() {
792
792
  if (!n.db || o.name === "NotFoundError" && !n.db.objectStoreNames.contains(n.storeName) && n.version <= n.db.version)
793
- return n.db && (n.version = n.db.version + 1), ce(n);
793
+ return n.db && (n.version = n.db.version + 1), ie(n);
794
794
  }).then(function() {
795
795
  return G(n).then(function() {
796
- X(n, c, a, m - 1);
796
+ X(n, i, a, m - 1);
797
797
  });
798
798
  }).catch(a);
799
799
  a(o);
@@ -812,45 +812,45 @@ var at = { exports: {} };
812
812
  };
813
813
  }
814
814
  function fe(n) {
815
- var c = this, a = {
815
+ var i = this, a = {
816
816
  db: null
817
817
  };
818
818
  if (n)
819
819
  for (var m in n)
820
820
  a[m] = n[m];
821
821
  var v = S[a.name];
822
- v || (v = ne(), S[a.name] = v), v.forages.push(c), c._initReady || (c._initReady = c.ready, c.ready = ae);
822
+ v || (v = ne(), S[a.name] = v), v.forages.push(i), i._initReady || (i._initReady = i.ready, i.ready = ae);
823
823
  var o = [];
824
- function M() {
824
+ function C() {
825
825
  return d.resolve();
826
826
  }
827
827
  for (var R = 0; R < v.forages.length; R++) {
828
- var B = v.forages[R];
829
- B !== c && o.push(B._initReady().catch(M));
828
+ var U = v.forages[R];
829
+ U !== i && o.push(U._initReady().catch(C));
830
830
  }
831
831
  var F = v.forages.slice(0);
832
832
  return d.all(o).then(function() {
833
833
  return a.db = v.db, ee(a);
834
834
  }).then(function(k) {
835
- return a.db = k, we(a, c._defaultConfig.version) ? ce(a) : k;
835
+ return a.db = k, we(a, i._defaultConfig.version) ? ie(a) : k;
836
836
  }).then(function(k) {
837
- a.db = v.db = k, c._dbInfo = a;
837
+ a.db = v.db = k, i._dbInfo = a;
838
838
  for (var q = 0; q < F.length; q++) {
839
839
  var z = F[q];
840
- z !== c && (z._dbInfo.db = a.db, z._dbInfo.version = a.version);
840
+ z !== i && (z._dbInfo.db = a.db, z._dbInfo.version = a.version);
841
841
  }
842
842
  });
843
843
  }
844
- function ie(n, c) {
844
+ function ce(n, i) {
845
845
  var a = this;
846
846
  n = r(n);
847
847
  var m = new d(function(v, o) {
848
848
  a.ready().then(function() {
849
- X(a._dbInfo, L, function(M, R) {
850
- if (M)
851
- return o(M);
849
+ X(a._dbInfo, L, function(C, R) {
850
+ if (C)
851
+ return o(C);
852
852
  try {
853
- var B = R.objectStore(a._dbInfo.storeName), F = B.get(n);
853
+ var U = R.objectStore(a._dbInfo.storeName), F = U.get(n);
854
854
  F.onsuccess = function() {
855
855
  var k = F.result;
856
856
  k === void 0 && (k = null), V(k) && (k = Z(k)), v(k);
@@ -863,16 +863,16 @@ var at = { exports: {} };
863
863
  });
864
864
  }).catch(o);
865
865
  });
866
- return h(m, c), m;
866
+ return h(m, i), m;
867
867
  }
868
- function Ee(n, c) {
868
+ function Ee(n, i) {
869
869
  var a = this, m = new d(function(v, o) {
870
870
  a.ready().then(function() {
871
- X(a._dbInfo, L, function(M, R) {
872
- if (M)
873
- return o(M);
871
+ X(a._dbInfo, L, function(C, R) {
872
+ if (C)
873
+ return o(C);
874
874
  try {
875
- var B = R.objectStore(a._dbInfo.storeName), F = B.openCursor(), k = 1;
875
+ var U = R.objectStore(a._dbInfo.storeName), F = U.openCursor(), k = 1;
876
876
  F.onsuccess = function() {
877
877
  var q = F.result;
878
878
  if (q) {
@@ -891,49 +891,49 @@ var at = { exports: {} };
891
891
  });
892
892
  }).catch(o);
893
893
  });
894
- return h(m, c), m;
894
+ return h(m, i), m;
895
895
  }
896
- function Be(n, c, a) {
896
+ function $e(n, i, a) {
897
897
  var m = this;
898
898
  n = r(n);
899
- var v = new d(function(o, M) {
899
+ var v = new d(function(o, C) {
900
900
  var R;
901
901
  m.ready().then(function() {
902
- return R = m._dbInfo, I.call(c) === "[object Blob]" ? N(R.db).then(function(B) {
903
- return B ? c : W(c);
904
- }) : c;
905
- }).then(function(B) {
902
+ return R = m._dbInfo, E.call(i) === "[object Blob]" ? M(R.db).then(function(U) {
903
+ return U ? i : W(i);
904
+ }) : i;
905
+ }).then(function(U) {
906
906
  X(m._dbInfo, w, function(F, k) {
907
907
  if (F)
908
- return M(F);
908
+ return C(F);
909
909
  try {
910
910
  var q = k.objectStore(m._dbInfo.storeName);
911
- B === null && (B = void 0);
912
- var z = q.put(B, n);
911
+ U === null && (U = void 0);
912
+ var z = q.put(U, n);
913
913
  k.oncomplete = function() {
914
- B === void 0 && (B = null), o(B);
914
+ U === void 0 && (U = null), o(U);
915
915
  }, k.onabort = k.onerror = function() {
916
916
  var p = z.error ? z.error : z.transaction.error;
917
- M(p);
917
+ C(p);
918
918
  };
919
919
  } catch (p) {
920
- M(p);
920
+ C(p);
921
921
  }
922
922
  });
923
- }).catch(M);
923
+ }).catch(C);
924
924
  });
925
925
  return h(v, a), v;
926
926
  }
927
- function Me(n, c) {
927
+ function Ce(n, i) {
928
928
  var a = this;
929
929
  n = r(n);
930
930
  var m = new d(function(v, o) {
931
931
  a.ready().then(function() {
932
- X(a._dbInfo, w, function(M, R) {
933
- if (M)
934
- return o(M);
932
+ X(a._dbInfo, w, function(C, R) {
933
+ if (C)
934
+ return o(C);
935
935
  try {
936
- var B = R.objectStore(a._dbInfo.storeName), F = B.delete(n);
936
+ var U = R.objectStore(a._dbInfo.storeName), F = U.delete(n);
937
937
  R.oncomplete = function() {
938
938
  v();
939
939
  }, R.onerror = function() {
@@ -948,20 +948,20 @@ var at = { exports: {} };
948
948
  });
949
949
  }).catch(o);
950
950
  });
951
- return h(m, c), m;
951
+ return h(m, i), m;
952
952
  }
953
953
  function rr(n) {
954
- var c = this, a = new d(function(m, v) {
955
- c.ready().then(function() {
956
- X(c._dbInfo, w, function(o, M) {
954
+ var i = this, a = new d(function(m, v) {
955
+ i.ready().then(function() {
956
+ X(i._dbInfo, w, function(o, C) {
957
957
  if (o)
958
958
  return v(o);
959
959
  try {
960
- var R = M.objectStore(c._dbInfo.storeName), B = R.clear();
961
- M.oncomplete = function() {
960
+ var R = C.objectStore(i._dbInfo.storeName), U = R.clear();
961
+ C.oncomplete = function() {
962
962
  m();
963
- }, M.onabort = M.onerror = function() {
964
- var F = B.error ? B.error : B.transaction.error;
963
+ }, C.onabort = C.onerror = function() {
964
+ var F = U.error ? U.error : U.transaction.error;
965
965
  v(F);
966
966
  };
967
967
  } catch (F) {
@@ -973,17 +973,17 @@ var at = { exports: {} };
973
973
  return h(a, n), a;
974
974
  }
975
975
  function tr(n) {
976
- var c = this, a = new d(function(m, v) {
977
- c.ready().then(function() {
978
- X(c._dbInfo, L, function(o, M) {
976
+ var i = this, a = new d(function(m, v) {
977
+ i.ready().then(function() {
978
+ X(i._dbInfo, L, function(o, C) {
979
979
  if (o)
980
980
  return v(o);
981
981
  try {
982
- var R = M.objectStore(c._dbInfo.storeName), B = R.count();
983
- B.onsuccess = function() {
984
- m(B.result);
985
- }, B.onerror = function() {
986
- v(B.error);
982
+ var R = C.objectStore(i._dbInfo.storeName), U = R.count();
983
+ U.onsuccess = function() {
984
+ m(U.result);
985
+ }, U.onerror = function() {
986
+ v(U.error);
987
987
  };
988
988
  } catch (F) {
989
989
  v(F);
@@ -993,18 +993,18 @@ var at = { exports: {} };
993
993
  });
994
994
  return h(a, n), a;
995
995
  }
996
- function nr(n, c) {
996
+ function nr(n, i) {
997
997
  var a = this, m = new d(function(v, o) {
998
998
  if (n < 0) {
999
999
  v(null);
1000
1000
  return;
1001
1001
  }
1002
1002
  a.ready().then(function() {
1003
- X(a._dbInfo, L, function(M, R) {
1004
- if (M)
1005
- return o(M);
1003
+ X(a._dbInfo, L, function(C, R) {
1004
+ if (C)
1005
+ return o(C);
1006
1006
  try {
1007
- var B = R.objectStore(a._dbInfo.storeName), F = !1, k = B.openKeyCursor();
1007
+ var U = R.objectStore(a._dbInfo.storeName), F = !1, k = U.openKeyCursor();
1008
1008
  k.onsuccess = function() {
1009
1009
  var q = k.result;
1010
1010
  if (!q) {
@@ -1021,25 +1021,25 @@ var at = { exports: {} };
1021
1021
  });
1022
1022
  }).catch(o);
1023
1023
  });
1024
- return h(m, c), m;
1024
+ return h(m, i), m;
1025
1025
  }
1026
- function Ce(n) {
1027
- var c = this, a = new d(function(m, v) {
1028
- c.ready().then(function() {
1029
- X(c._dbInfo, L, function(o, M) {
1026
+ function Pe(n) {
1027
+ var i = this, a = new d(function(m, v) {
1028
+ i.ready().then(function() {
1029
+ X(i._dbInfo, L, function(o, C) {
1030
1030
  if (o)
1031
1031
  return v(o);
1032
1032
  try {
1033
- var R = M.objectStore(c._dbInfo.storeName), B = R.openKeyCursor(), F = [];
1034
- B.onsuccess = function() {
1035
- var k = B.result;
1033
+ var R = C.objectStore(i._dbInfo.storeName), U = R.openKeyCursor(), F = [];
1034
+ U.onsuccess = function() {
1035
+ var k = U.result;
1036
1036
  if (!k) {
1037
1037
  m(F);
1038
1038
  return;
1039
1039
  }
1040
1040
  F.push(k.key), k.continue();
1041
- }, B.onerror = function() {
1042
- v(B.error);
1041
+ }, U.onerror = function() {
1042
+ v(U.error);
1043
1043
  };
1044
1044
  } catch (k) {
1045
1045
  v(k);
@@ -1049,33 +1049,33 @@ var at = { exports: {} };
1049
1049
  });
1050
1050
  return h(a, n), a;
1051
1051
  }
1052
- function ar(n, c) {
1053
- c = y.apply(this, arguments);
1052
+ function ar(n, i) {
1053
+ i = y.apply(this, arguments);
1054
1054
  var a = this.config();
1055
1055
  n = typeof n != "function" && n || {}, n.name || (n.name = n.name || a.name, n.storeName = n.storeName || a.storeName);
1056
1056
  var m = this, v;
1057
1057
  if (!n.name)
1058
1058
  v = d.reject("Invalid arguments");
1059
1059
  else {
1060
- var o = n.name === a.name && m._dbInfo.db, M = o ? d.resolve(m._dbInfo.db) : ee(n).then(function(R) {
1061
- var B = S[n.name], F = B.forages;
1062
- B.db = R;
1060
+ var o = n.name === a.name && m._dbInfo.db, C = o ? d.resolve(m._dbInfo.db) : ee(n).then(function(R) {
1061
+ var U = S[n.name], F = U.forages;
1062
+ U.db = R;
1063
1063
  for (var k = 0; k < F.length; k++)
1064
1064
  F[k]._dbInfo.db = R;
1065
1065
  return R;
1066
1066
  });
1067
- n.storeName ? v = M.then(function(R) {
1067
+ n.storeName ? v = C.then(function(R) {
1068
1068
  if (R.objectStoreNames.contains(n.storeName)) {
1069
- var B = R.version + 1;
1069
+ var U = R.version + 1;
1070
1070
  f(n);
1071
1071
  var F = S[n.name], k = F.forages;
1072
1072
  R.close();
1073
1073
  for (var q = 0; q < k.length; q++) {
1074
1074
  var z = k[q];
1075
- z._dbInfo.db = null, z._dbInfo.version = B;
1075
+ z._dbInfo.db = null, z._dbInfo.version = U;
1076
1076
  }
1077
1077
  var p = new d(function(re, ue) {
1078
- var le = T.open(n.name, B);
1078
+ var le = T.open(n.name, U);
1079
1079
  le.onerror = function(ge) {
1080
1080
  var Ye = le.result;
1081
1081
  Ye.close(), ue(ge);
@@ -1091,16 +1091,16 @@ var at = { exports: {} };
1091
1091
  F.db = re;
1092
1092
  for (var ue = 0; ue < k.length; ue++) {
1093
1093
  var le = k[ue];
1094
- le._dbInfo.db = re, b(le._dbInfo);
1094
+ le._dbInfo.db = re, A(le._dbInfo);
1095
1095
  }
1096
1096
  }).catch(function(re) {
1097
1097
  throw (J(n, re) || d.resolve()).catch(function() {
1098
1098
  }), re;
1099
1099
  });
1100
1100
  }
1101
- }) : v = M.then(function(R) {
1101
+ }) : v = C.then(function(R) {
1102
1102
  f(n);
1103
- var B = S[n.name], F = B.forages;
1103
+ var U = S[n.name], F = U.forages;
1104
1104
  R.close();
1105
1105
  for (var k = 0; k < F.length; k++) {
1106
1106
  var q = F[k];
@@ -1119,10 +1119,10 @@ var at = { exports: {} };
1119
1119
  };
1120
1120
  });
1121
1121
  return z.then(function(p) {
1122
- B.db = p;
1122
+ U.db = p;
1123
1123
  for (var re = 0; re < F.length; re++) {
1124
1124
  var ue = F[re];
1125
- b(ue._dbInfo);
1125
+ A(ue._dbInfo);
1126
1126
  }
1127
1127
  }).catch(function(p) {
1128
1128
  throw (J(n, p) || d.resolve()).catch(function() {
@@ -1130,67 +1130,67 @@ var at = { exports: {} };
1130
1130
  });
1131
1131
  });
1132
1132
  }
1133
- return h(v, c), v;
1133
+ return h(v, i), v;
1134
1134
  }
1135
1135
  var lr = {
1136
1136
  _driver: "asyncStorage",
1137
1137
  _initStorage: fe,
1138
- _support: P(),
1138
+ _support: N(),
1139
1139
  iterate: Ee,
1140
- getItem: ie,
1141
- setItem: Be,
1142
- removeItem: Me,
1140
+ getItem: ce,
1141
+ setItem: $e,
1142
+ removeItem: Ce,
1143
1143
  clear: rr,
1144
1144
  length: tr,
1145
1145
  key: nr,
1146
- keys: Ce,
1146
+ keys: Pe,
1147
1147
  dropInstance: ar
1148
1148
  };
1149
1149
  function ur() {
1150
1150
  return typeof openDatabase == "function";
1151
1151
  }
1152
- var be = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", cr = "~~local_forage_type~", ze = /^~~local_forage_type~([^~]+)~/, $e = "__lfsc__:", Pe = $e.length, We = "arbf", Ie = "blob", Je = "si08", je = "ui08", qe = "uic8", Ve = "si16", U = "si32", j = "ur16", H = "ui32", O = "fl32", oe = "fl64", ve = Pe + We.length, De = Object.prototype.toString;
1152
+ var be = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", ir = "~~local_forage_type~", ze = /^~~local_forage_type~([^~]+)~/, Fe = "__lfsc__:", Ne = Fe.length, We = "arbf", Ie = "blob", Je = "si08", je = "ui08", qe = "uic8", Ve = "si16", B = "si32", j = "ur16", H = "ui32", O = "fl32", oe = "fl64", ve = Ne + We.length, De = Object.prototype.toString;
1153
1153
  function Se(n) {
1154
- var c = n.length * 0.75, a = n.length, m, v = 0, o, M, R, B;
1155
- n[n.length - 1] === "=" && (c--, n[n.length - 2] === "=" && c--);
1156
- var F = new ArrayBuffer(c), k = new Uint8Array(F);
1154
+ var i = n.length * 0.75, a = n.length, m, v = 0, o, C, R, U;
1155
+ n[n.length - 1] === "=" && (i--, n[n.length - 2] === "=" && i--);
1156
+ var F = new ArrayBuffer(i), k = new Uint8Array(F);
1157
1157
  for (m = 0; m < a; m += 4)
1158
- o = be.indexOf(n[m]), M = be.indexOf(n[m + 1]), R = be.indexOf(n[m + 2]), B = be.indexOf(n[m + 3]), k[v++] = o << 2 | M >> 4, k[v++] = (M & 15) << 4 | R >> 2, k[v++] = (R & 3) << 6 | B & 63;
1158
+ o = be.indexOf(n[m]), C = be.indexOf(n[m + 1]), R = be.indexOf(n[m + 2]), U = be.indexOf(n[m + 3]), k[v++] = o << 2 | C >> 4, k[v++] = (C & 15) << 4 | R >> 2, k[v++] = (R & 3) << 6 | U & 63;
1159
1159
  return F;
1160
1160
  }
1161
1161
  function se(n) {
1162
- var c = new Uint8Array(n), a = "", m;
1163
- for (m = 0; m < c.length; m += 3)
1164
- a += be[c[m] >> 2], a += be[(c[m] & 3) << 4 | c[m + 1] >> 4], a += be[(c[m + 1] & 15) << 2 | c[m + 2] >> 6], a += be[c[m + 2] & 63];
1165
- return c.length % 3 === 2 ? a = a.substring(0, a.length - 1) + "=" : c.length % 3 === 1 && (a = a.substring(0, a.length - 2) + "=="), a;
1162
+ var i = new Uint8Array(n), a = "", m;
1163
+ for (m = 0; m < i.length; m += 3)
1164
+ a += be[i[m] >> 2], a += be[(i[m] & 3) << 4 | i[m + 1] >> 4], a += be[(i[m + 1] & 15) << 2 | i[m + 2] >> 6], a += be[i[m + 2] & 63];
1165
+ return i.length % 3 === 2 ? a = a.substring(0, a.length - 1) + "=" : i.length % 3 === 1 && (a = a.substring(0, a.length - 2) + "=="), a;
1166
1166
  }
1167
- function Ne(n, c) {
1167
+ function Me(n, i) {
1168
1168
  var a = "";
1169
1169
  if (n && (a = De.call(n)), n && (a === "[object ArrayBuffer]" || n.buffer && De.call(n.buffer) === "[object ArrayBuffer]")) {
1170
- var m, v = $e;
1171
- n instanceof ArrayBuffer ? (m = n, v += We) : (m = n.buffer, a === "[object Int8Array]" ? v += Je : a === "[object Uint8Array]" ? v += je : a === "[object Uint8ClampedArray]" ? v += qe : a === "[object Int16Array]" ? v += Ve : a === "[object Uint16Array]" ? v += j : a === "[object Int32Array]" ? v += U : a === "[object Uint32Array]" ? v += H : a === "[object Float32Array]" ? v += O : a === "[object Float64Array]" ? v += oe : c(new Error("Failed to get type for BinaryArray"))), c(v + se(m));
1170
+ var m, v = Fe;
1171
+ n instanceof ArrayBuffer ? (m = n, v += We) : (m = n.buffer, a === "[object Int8Array]" ? v += Je : a === "[object Uint8Array]" ? v += je : a === "[object Uint8ClampedArray]" ? v += qe : a === "[object Int16Array]" ? v += Ve : a === "[object Uint16Array]" ? v += j : a === "[object Int32Array]" ? v += B : a === "[object Uint32Array]" ? v += H : a === "[object Float32Array]" ? v += O : a === "[object Float64Array]" ? v += oe : i(new Error("Failed to get type for BinaryArray"))), i(v + se(m));
1172
1172
  } else if (a === "[object Blob]") {
1173
1173
  var o = new FileReader();
1174
1174
  o.onload = function() {
1175
- var M = cr + n.type + "~" + se(this.result);
1176
- c($e + Ie + M);
1175
+ var C = ir + n.type + "~" + se(this.result);
1176
+ i(Fe + Ie + C);
1177
1177
  }, o.readAsArrayBuffer(n);
1178
1178
  } else
1179
1179
  try {
1180
- c(JSON.stringify(n));
1181
- } catch (M) {
1182
- console.error("Couldn't convert value into a JSON string: ", n), c(null, M);
1180
+ i(JSON.stringify(n));
1181
+ } catch (C) {
1182
+ console.error("Couldn't convert value into a JSON string: ", n), i(null, C);
1183
1183
  }
1184
1184
  }
1185
1185
  function ft(n) {
1186
- if (n.substring(0, Pe) !== $e)
1186
+ if (n.substring(0, Ne) !== Fe)
1187
1187
  return JSON.parse(n);
1188
- var c = n.substring(ve), a = n.substring(Pe, ve), m;
1189
- if (a === Ie && ze.test(c)) {
1190
- var v = c.match(ze);
1191
- m = v[1], c = c.substring(v[0].length);
1188
+ var i = n.substring(ve), a = n.substring(Ne, ve), m;
1189
+ if (a === Ie && ze.test(i)) {
1190
+ var v = i.match(ze);
1191
+ m = v[1], i = i.substring(v[0].length);
1192
1192
  }
1193
- var o = Se(c);
1193
+ var o = Se(i);
1194
1194
  switch (a) {
1195
1195
  case We:
1196
1196
  return o;
@@ -1206,7 +1206,7 @@ var at = { exports: {} };
1206
1206
  return new Int16Array(o);
1207
1207
  case j:
1208
1208
  return new Uint16Array(o);
1209
- case U:
1209
+ case B:
1210
1210
  return new Int32Array(o);
1211
1211
  case H:
1212
1212
  return new Uint32Array(o);
@@ -1218,105 +1218,105 @@ var at = { exports: {} };
1218
1218
  throw new Error("Unkown type: " + a);
1219
1219
  }
1220
1220
  }
1221
- var ir = {
1222
- serialize: Ne,
1221
+ var cr = {
1222
+ serialize: Me,
1223
1223
  deserialize: ft,
1224
1224
  stringToBuffer: Se,
1225
1225
  bufferToString: se
1226
1226
  };
1227
- function Ur(n, c, a, m) {
1228
- n.executeSql("CREATE TABLE IF NOT EXISTS " + c.storeName + " (id INTEGER PRIMARY KEY, key unique, value)", [], a, m);
1227
+ function Br(n, i, a, m) {
1228
+ n.executeSql("CREATE TABLE IF NOT EXISTS " + i.storeName + " (id INTEGER PRIMARY KEY, key unique, value)", [], a, m);
1229
1229
  }
1230
1230
  function st(n) {
1231
- var c = this, a = {
1231
+ var i = this, a = {
1232
1232
  db: null
1233
1233
  };
1234
1234
  if (n)
1235
1235
  for (var m in n)
1236
1236
  a[m] = typeof n[m] != "string" ? n[m].toString() : n[m];
1237
- var v = new d(function(o, M) {
1237
+ var v = new d(function(o, C) {
1238
1238
  try {
1239
1239
  a.db = openDatabase(a.name, String(a.version), a.description, a.size);
1240
1240
  } catch (R) {
1241
- return M(R);
1241
+ return C(R);
1242
1242
  }
1243
1243
  a.db.transaction(function(R) {
1244
- Ur(R, a, function() {
1245
- c._dbInfo = a, o();
1246
- }, function(B, F) {
1247
- M(F);
1244
+ Br(R, a, function() {
1245
+ i._dbInfo = a, o();
1246
+ }, function(U, F) {
1247
+ C(F);
1248
1248
  });
1249
- }, M);
1249
+ }, C);
1250
1250
  });
1251
- return a.serializer = ir, v;
1251
+ return a.serializer = cr, v;
1252
1252
  }
1253
- function xe(n, c, a, m, v, o) {
1254
- n.executeSql(a, m, v, function(M, R) {
1255
- R.code === R.SYNTAX_ERR ? M.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?", [c.storeName], function(B, F) {
1256
- F.rows.length ? o(B, R) : Ur(B, c, function() {
1257
- B.executeSql(a, m, v, o);
1253
+ function xe(n, i, a, m, v, o) {
1254
+ n.executeSql(a, m, v, function(C, R) {
1255
+ R.code === R.SYNTAX_ERR ? C.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?", [i.storeName], function(U, F) {
1256
+ F.rows.length ? o(U, R) : Br(U, i, function() {
1257
+ U.executeSql(a, m, v, o);
1258
1258
  }, o);
1259
- }, o) : o(M, R);
1259
+ }, o) : o(C, R);
1260
1260
  }, o);
1261
1261
  }
1262
- function ot(n, c) {
1262
+ function ot(n, i) {
1263
1263
  var a = this;
1264
1264
  n = r(n);
1265
1265
  var m = new d(function(v, o) {
1266
1266
  a.ready().then(function() {
1267
- var M = a._dbInfo;
1268
- M.db.transaction(function(R) {
1269
- xe(R, M, "SELECT * FROM " + M.storeName + " WHERE key = ? LIMIT 1", [n], function(B, F) {
1267
+ var C = a._dbInfo;
1268
+ C.db.transaction(function(R) {
1269
+ xe(R, C, "SELECT * FROM " + C.storeName + " WHERE key = ? LIMIT 1", [n], function(U, F) {
1270
1270
  var k = F.rows.length ? F.rows.item(0).value : null;
1271
- k && (k = M.serializer.deserialize(k)), v(k);
1272
- }, function(B, F) {
1271
+ k && (k = C.serializer.deserialize(k)), v(k);
1272
+ }, function(U, F) {
1273
1273
  o(F);
1274
1274
  });
1275
1275
  });
1276
1276
  }).catch(o);
1277
1277
  });
1278
- return h(m, c), m;
1278
+ return h(m, i), m;
1279
1279
  }
1280
- function dt(n, c) {
1280
+ function dt(n, i) {
1281
1281
  var a = this, m = new d(function(v, o) {
1282
1282
  a.ready().then(function() {
1283
- var M = a._dbInfo;
1284
- M.db.transaction(function(R) {
1285
- xe(R, M, "SELECT * FROM " + M.storeName, [], function(B, F) {
1283
+ var C = a._dbInfo;
1284
+ C.db.transaction(function(R) {
1285
+ xe(R, C, "SELECT * FROM " + C.storeName, [], function(U, F) {
1286
1286
  for (var k = F.rows, q = k.length, z = 0; z < q; z++) {
1287
1287
  var p = k.item(z), re = p.value;
1288
- if (re && (re = M.serializer.deserialize(re)), re = n(re, p.key, z + 1), re !== void 0) {
1288
+ if (re && (re = C.serializer.deserialize(re)), re = n(re, p.key, z + 1), re !== void 0) {
1289
1289
  v(re);
1290
1290
  return;
1291
1291
  }
1292
1292
  }
1293
1293
  v();
1294
- }, function(B, F) {
1294
+ }, function(U, F) {
1295
1295
  o(F);
1296
1296
  });
1297
1297
  });
1298
1298
  }).catch(o);
1299
1299
  });
1300
- return h(m, c), m;
1300
+ return h(m, i), m;
1301
1301
  }
1302
- function Br(n, c, a, m) {
1302
+ function Ur(n, i, a, m) {
1303
1303
  var v = this;
1304
1304
  n = r(n);
1305
- var o = new d(function(M, R) {
1305
+ var o = new d(function(C, R) {
1306
1306
  v.ready().then(function() {
1307
- c === void 0 && (c = null);
1308
- var B = c, F = v._dbInfo;
1309
- F.serializer.serialize(c, function(k, q) {
1307
+ i === void 0 && (i = null);
1308
+ var U = i, F = v._dbInfo;
1309
+ F.serializer.serialize(i, function(k, q) {
1310
1310
  q ? R(q) : F.db.transaction(function(z) {
1311
1311
  xe(z, F, "INSERT OR REPLACE INTO " + F.storeName + " (key, value) VALUES (?, ?)", [n, k], function() {
1312
- M(B);
1312
+ C(U);
1313
1313
  }, function(p, re) {
1314
1314
  R(re);
1315
1315
  });
1316
1316
  }, function(z) {
1317
1317
  if (z.code === z.QUOTA_ERR) {
1318
1318
  if (m > 0) {
1319
- M(Br.apply(v, [n, B, a, m - 1]));
1319
+ C(Ur.apply(v, [n, U, a, m - 1]));
1320
1320
  return;
1321
1321
  }
1322
1322
  R(z);
@@ -1327,35 +1327,35 @@ var at = { exports: {} };
1327
1327
  });
1328
1328
  return h(o, a), o;
1329
1329
  }
1330
- function ht(n, c, a) {
1331
- return Br.apply(this, [n, c, a, 1]);
1330
+ function ht(n, i, a) {
1331
+ return Ur.apply(this, [n, i, a, 1]);
1332
1332
  }
1333
- function mt(n, c) {
1333
+ function mt(n, i) {
1334
1334
  var a = this;
1335
1335
  n = r(n);
1336
1336
  var m = new d(function(v, o) {
1337
1337
  a.ready().then(function() {
1338
- var M = a._dbInfo;
1339
- M.db.transaction(function(R) {
1340
- xe(R, M, "DELETE FROM " + M.storeName + " WHERE key = ?", [n], function() {
1338
+ var C = a._dbInfo;
1339
+ C.db.transaction(function(R) {
1340
+ xe(R, C, "DELETE FROM " + C.storeName + " WHERE key = ?", [n], function() {
1341
1341
  v();
1342
- }, function(B, F) {
1342
+ }, function(U, F) {
1343
1343
  o(F);
1344
1344
  });
1345
1345
  });
1346
1346
  }).catch(o);
1347
1347
  });
1348
- return h(m, c), m;
1348
+ return h(m, i), m;
1349
1349
  }
1350
1350
  function vt(n) {
1351
- var c = this, a = new d(function(m, v) {
1352
- c.ready().then(function() {
1353
- var o = c._dbInfo;
1354
- o.db.transaction(function(M) {
1355
- xe(M, o, "DELETE FROM " + o.storeName, [], function() {
1351
+ var i = this, a = new d(function(m, v) {
1352
+ i.ready().then(function() {
1353
+ var o = i._dbInfo;
1354
+ o.db.transaction(function(C) {
1355
+ xe(C, o, "DELETE FROM " + o.storeName, [], function() {
1356
1356
  m();
1357
- }, function(R, B) {
1358
- v(B);
1357
+ }, function(R, U) {
1358
+ v(U);
1359
1359
  });
1360
1360
  });
1361
1361
  }).catch(v);
@@ -1363,48 +1363,48 @@ var at = { exports: {} };
1363
1363
  return h(a, n), a;
1364
1364
  }
1365
1365
  function gt(n) {
1366
- var c = this, a = new d(function(m, v) {
1367
- c.ready().then(function() {
1368
- var o = c._dbInfo;
1369
- o.db.transaction(function(M) {
1370
- xe(M, o, "SELECT COUNT(key) as c FROM " + o.storeName, [], function(R, B) {
1371
- var F = B.rows.item(0).c;
1366
+ var i = this, a = new d(function(m, v) {
1367
+ i.ready().then(function() {
1368
+ var o = i._dbInfo;
1369
+ o.db.transaction(function(C) {
1370
+ xe(C, o, "SELECT COUNT(key) as c FROM " + o.storeName, [], function(R, U) {
1371
+ var F = U.rows.item(0).c;
1372
1372
  m(F);
1373
- }, function(R, B) {
1374
- v(B);
1373
+ }, function(R, U) {
1374
+ v(U);
1375
1375
  });
1376
1376
  });
1377
1377
  }).catch(v);
1378
1378
  });
1379
1379
  return h(a, n), a;
1380
1380
  }
1381
- function yt(n, c) {
1381
+ function yt(n, i) {
1382
1382
  var a = this, m = new d(function(v, o) {
1383
1383
  a.ready().then(function() {
1384
- var M = a._dbInfo;
1385
- M.db.transaction(function(R) {
1386
- xe(R, M, "SELECT key FROM " + M.storeName + " WHERE id = ? LIMIT 1", [n + 1], function(B, F) {
1384
+ var C = a._dbInfo;
1385
+ C.db.transaction(function(R) {
1386
+ xe(R, C, "SELECT key FROM " + C.storeName + " WHERE id = ? LIMIT 1", [n + 1], function(U, F) {
1387
1387
  var k = F.rows.length ? F.rows.item(0).key : null;
1388
1388
  v(k);
1389
- }, function(B, F) {
1389
+ }, function(U, F) {
1390
1390
  o(F);
1391
1391
  });
1392
1392
  });
1393
1393
  }).catch(o);
1394
1394
  });
1395
- return h(m, c), m;
1395
+ return h(m, i), m;
1396
1396
  }
1397
1397
  function wt(n) {
1398
- var c = this, a = new d(function(m, v) {
1399
- c.ready().then(function() {
1400
- var o = c._dbInfo;
1401
- o.db.transaction(function(M) {
1402
- xe(M, o, "SELECT key FROM " + o.storeName, [], function(R, B) {
1403
- for (var F = [], k = 0; k < B.rows.length; k++)
1404
- F.push(B.rows.item(k).key);
1398
+ var i = this, a = new d(function(m, v) {
1399
+ i.ready().then(function() {
1400
+ var o = i._dbInfo;
1401
+ o.db.transaction(function(C) {
1402
+ xe(C, o, "SELECT key FROM " + o.storeName, [], function(R, U) {
1403
+ for (var F = [], k = 0; k < U.rows.length; k++)
1404
+ F.push(U.rows.item(k).key);
1405
1405
  m(F);
1406
- }, function(R, B) {
1407
- v(B);
1406
+ }, function(R, U) {
1407
+ v(U);
1408
1408
  });
1409
1409
  });
1410
1410
  }).catch(v);
@@ -1412,14 +1412,14 @@ var at = { exports: {} };
1412
1412
  return h(a, n), a;
1413
1413
  }
1414
1414
  function bt(n) {
1415
- return new d(function(c, a) {
1415
+ return new d(function(i, a) {
1416
1416
  n.transaction(function(m) {
1417
1417
  m.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'", [], function(v, o) {
1418
- for (var M = [], R = 0; R < o.rows.length; R++)
1419
- M.push(o.rows.item(R).name);
1420
- c({
1418
+ for (var C = [], R = 0; R < o.rows.length; R++)
1419
+ C.push(o.rows.item(R).name);
1420
+ i({
1421
1421
  db: n,
1422
- storeNames: M
1422
+ storeNames: C
1423
1423
  });
1424
1424
  }, function(v, o) {
1425
1425
  a(o);
@@ -1429,23 +1429,23 @@ var at = { exports: {} };
1429
1429
  });
1430
1430
  });
1431
1431
  }
1432
- function St(n, c) {
1433
- c = y.apply(this, arguments);
1432
+ function St(n, i) {
1433
+ i = y.apply(this, arguments);
1434
1434
  var a = this.config();
1435
1435
  n = typeof n != "function" && n || {}, n.name || (n.name = n.name || a.name, n.storeName = n.storeName || a.storeName);
1436
1436
  var m = this, v;
1437
1437
  return n.name ? v = new d(function(o) {
1438
- var M;
1439
- n.name === a.name ? M = m._dbInfo.db : M = openDatabase(n.name, "", "", 0), n.storeName ? o({
1440
- db: M,
1438
+ var C;
1439
+ n.name === a.name ? C = m._dbInfo.db : C = openDatabase(n.name, "", "", 0), n.storeName ? o({
1440
+ db: C,
1441
1441
  storeNames: [n.storeName]
1442
- }) : o(bt(M));
1442
+ }) : o(bt(C));
1443
1443
  }).then(function(o) {
1444
- return new d(function(M, R) {
1445
- o.db.transaction(function(B) {
1444
+ return new d(function(C, R) {
1445
+ o.db.transaction(function(U) {
1446
1446
  function F(p) {
1447
1447
  return new d(function(re, ue) {
1448
- B.executeSql("DROP TABLE IF EXISTS " + p, [], function() {
1448
+ U.executeSql("DROP TABLE IF EXISTS " + p, [], function() {
1449
1449
  re();
1450
1450
  }, function(le, ge) {
1451
1451
  ue(ge);
@@ -1455,15 +1455,15 @@ var at = { exports: {} };
1455
1455
  for (var k = [], q = 0, z = o.storeNames.length; q < z; q++)
1456
1456
  k.push(F(o.storeNames[q]));
1457
1457
  d.all(k).then(function() {
1458
- M();
1458
+ C();
1459
1459
  }).catch(function(p) {
1460
1460
  R(p);
1461
1461
  });
1462
- }, function(B) {
1463
- R(B);
1462
+ }, function(U) {
1463
+ R(U);
1464
1464
  });
1465
1465
  });
1466
- }) : v = d.reject("Invalid arguments"), h(v, c), v;
1466
+ }) : v = d.reject("Invalid arguments"), h(v, i), v;
1467
1467
  }
1468
1468
  var At = {
1469
1469
  _driver: "webSQLStorage",
@@ -1487,9 +1487,9 @@ var at = { exports: {} };
1487
1487
  return !1;
1488
1488
  }
1489
1489
  }
1490
- function $r(n, c) {
1490
+ function $r(n, i) {
1491
1491
  var a = n.name + "/";
1492
- return n.storeName !== c.storeName && (a += n.storeName + "/"), a;
1492
+ return n.storeName !== i.storeName && (a += n.storeName + "/"), a;
1493
1493
  }
1494
1494
  function It() {
1495
1495
  var n = "_localforage_support_test";
@@ -1503,44 +1503,44 @@ var at = { exports: {} };
1503
1503
  return !It() || localStorage.length > 0;
1504
1504
  }
1505
1505
  function xt(n) {
1506
- var c = this, a = {};
1506
+ var i = this, a = {};
1507
1507
  if (n)
1508
1508
  for (var m in n)
1509
1509
  a[m] = n[m];
1510
- return a.keyPrefix = $r(n, c._defaultConfig), Dt() ? (c._dbInfo = a, a.serializer = ir, d.resolve()) : d.reject();
1510
+ return a.keyPrefix = $r(n, i._defaultConfig), Dt() ? (i._dbInfo = a, a.serializer = cr, d.resolve()) : d.reject();
1511
1511
  }
1512
1512
  function _t(n) {
1513
- var c = this, a = c.ready().then(function() {
1514
- for (var m = c._dbInfo.keyPrefix, v = localStorage.length - 1; v >= 0; v--) {
1513
+ var i = this, a = i.ready().then(function() {
1514
+ for (var m = i._dbInfo.keyPrefix, v = localStorage.length - 1; v >= 0; v--) {
1515
1515
  var o = localStorage.key(v);
1516
1516
  o.indexOf(m) === 0 && localStorage.removeItem(o);
1517
1517
  }
1518
1518
  });
1519
1519
  return h(a, n), a;
1520
1520
  }
1521
- function Tt(n, c) {
1521
+ function Tt(n, i) {
1522
1522
  var a = this;
1523
1523
  n = r(n);
1524
1524
  var m = a.ready().then(function() {
1525
1525
  var v = a._dbInfo, o = localStorage.getItem(v.keyPrefix + n);
1526
1526
  return o && (o = v.serializer.deserialize(o)), o;
1527
1527
  });
1528
- return h(m, c), m;
1528
+ return h(m, i), m;
1529
1529
  }
1530
- function Mt(n, c) {
1530
+ function Ct(n, i) {
1531
1531
  var a = this, m = a.ready().then(function() {
1532
- for (var v = a._dbInfo, o = v.keyPrefix, M = o.length, R = localStorage.length, B = 1, F = 0; F < R; F++) {
1532
+ for (var v = a._dbInfo, o = v.keyPrefix, C = o.length, R = localStorage.length, U = 1, F = 0; F < R; F++) {
1533
1533
  var k = localStorage.key(F);
1534
1534
  if (k.indexOf(o) === 0) {
1535
1535
  var q = localStorage.getItem(k);
1536
- if (q && (q = v.serializer.deserialize(q)), q = n(q, k.substring(M), B++), q !== void 0)
1536
+ if (q && (q = v.serializer.deserialize(q)), q = n(q, k.substring(C), U++), q !== void 0)
1537
1537
  return q;
1538
1538
  }
1539
1539
  }
1540
1540
  });
1541
- return h(m, c), m;
1541
+ return h(m, i), m;
1542
1542
  }
1543
- function Ct(n, c) {
1543
+ function Pt(n, i) {
1544
1544
  var a = this, m = a.ready().then(function() {
1545
1545
  var v = a._dbInfo, o;
1546
1546
  try {
@@ -1550,47 +1550,47 @@ var at = { exports: {} };
1550
1550
  }
1551
1551
  return o && (o = o.substring(v.keyPrefix.length)), o;
1552
1552
  });
1553
- return h(m, c), m;
1553
+ return h(m, i), m;
1554
1554
  }
1555
- function Pt(n) {
1556
- var c = this, a = c.ready().then(function() {
1557
- for (var m = c._dbInfo, v = localStorage.length, o = [], M = 0; M < v; M++) {
1558
- var R = localStorage.key(M);
1555
+ function Nt(n) {
1556
+ var i = this, a = i.ready().then(function() {
1557
+ for (var m = i._dbInfo, v = localStorage.length, o = [], C = 0; C < v; C++) {
1558
+ var R = localStorage.key(C);
1559
1559
  R.indexOf(m.keyPrefix) === 0 && o.push(R.substring(m.keyPrefix.length));
1560
1560
  }
1561
1561
  return o;
1562
1562
  });
1563
1563
  return h(a, n), a;
1564
1564
  }
1565
- function Nt(n) {
1566
- var c = this, a = c.keys().then(function(m) {
1565
+ function Mt(n) {
1566
+ var i = this, a = i.keys().then(function(m) {
1567
1567
  return m.length;
1568
1568
  });
1569
1569
  return h(a, n), a;
1570
1570
  }
1571
- function Lt(n, c) {
1571
+ function Lt(n, i) {
1572
1572
  var a = this;
1573
1573
  n = r(n);
1574
1574
  var m = a.ready().then(function() {
1575
1575
  var v = a._dbInfo;
1576
1576
  localStorage.removeItem(v.keyPrefix + n);
1577
1577
  });
1578
- return h(m, c), m;
1578
+ return h(m, i), m;
1579
1579
  }
1580
- function Rt(n, c, a) {
1580
+ function Rt(n, i, a) {
1581
1581
  var m = this;
1582
1582
  n = r(n);
1583
1583
  var v = m.ready().then(function() {
1584
- c === void 0 && (c = null);
1585
- var o = c;
1586
- return new d(function(M, R) {
1587
- var B = m._dbInfo;
1588
- B.serializer.serialize(c, function(F, k) {
1584
+ i === void 0 && (i = null);
1585
+ var o = i;
1586
+ return new d(function(C, R) {
1587
+ var U = m._dbInfo;
1588
+ U.serializer.serialize(i, function(F, k) {
1589
1589
  if (k)
1590
1590
  R(k);
1591
1591
  else
1592
1592
  try {
1593
- localStorage.setItem(B.keyPrefix + n, F), M(o);
1593
+ localStorage.setItem(U.keyPrefix + n, F), C(o);
1594
1594
  } catch (q) {
1595
1595
  (q.name === "QuotaExceededError" || q.name === "NS_ERROR_DOM_QUOTA_REACHED") && R(q), R(q);
1596
1596
  }
@@ -1599,8 +1599,8 @@ var at = { exports: {} };
1599
1599
  });
1600
1600
  return h(v, a), v;
1601
1601
  }
1602
- function Ut(n, c) {
1603
- if (c = y.apply(this, arguments), n = typeof n != "function" && n || {}, !n.name) {
1602
+ function Bt(n, i) {
1603
+ if (i = y.apply(this, arguments), n = typeof n != "function" && n || {}, !n.name) {
1604
1604
  var a = this.config();
1605
1605
  n.name = n.name || a.name, n.storeName = n.storeName || a.storeName;
1606
1606
  }
@@ -1608,41 +1608,41 @@ var at = { exports: {} };
1608
1608
  return n.name ? v = new d(function(o) {
1609
1609
  n.storeName ? o($r(n, m._defaultConfig)) : o(n.name + "/");
1610
1610
  }).then(function(o) {
1611
- for (var M = localStorage.length - 1; M >= 0; M--) {
1612
- var R = localStorage.key(M);
1611
+ for (var C = localStorage.length - 1; C >= 0; C--) {
1612
+ var R = localStorage.key(C);
1613
1613
  R.indexOf(o) === 0 && localStorage.removeItem(R);
1614
1614
  }
1615
- }) : v = d.reject("Invalid arguments"), h(v, c), v;
1615
+ }) : v = d.reject("Invalid arguments"), h(v, i), v;
1616
1616
  }
1617
- var Bt = {
1617
+ var Ut = {
1618
1618
  _driver: "localStorageWrapper",
1619
1619
  _initStorage: xt,
1620
1620
  _support: Et(),
1621
- iterate: Mt,
1621
+ iterate: Ct,
1622
1622
  getItem: Tt,
1623
1623
  setItem: Rt,
1624
1624
  removeItem: Lt,
1625
1625
  clear: _t,
1626
- length: Nt,
1627
- key: Ct,
1628
- keys: Pt,
1629
- dropInstance: Ut
1630
- }, $t = function(c, a) {
1631
- return c === a || typeof c == "number" && typeof a == "number" && isNaN(c) && isNaN(a);
1632
- }, Ft = function(c, a) {
1633
- for (var m = c.length, v = 0; v < m; ) {
1634
- if ($t(c[v], a))
1626
+ length: Mt,
1627
+ key: Pt,
1628
+ keys: Nt,
1629
+ dropInstance: Bt
1630
+ }, $t = function(i, a) {
1631
+ return i === a || typeof i == "number" && typeof a == "number" && isNaN(i) && isNaN(a);
1632
+ }, Ft = function(i, a) {
1633
+ for (var m = i.length, v = 0; v < m; ) {
1634
+ if ($t(i[v], a))
1635
1635
  return !0;
1636
1636
  v++;
1637
1637
  }
1638
1638
  return !1;
1639
1639
  }, Fr = Array.isArray || function(n) {
1640
1640
  return Object.prototype.toString.call(n) === "[object Array]";
1641
- }, He = {}, kr = {}, Fe = {
1641
+ }, He = {}, kr = {}, ke = {
1642
1642
  INDEXEDDB: lr,
1643
1643
  WEBSQL: At,
1644
- LOCALSTORAGE: Bt
1645
- }, kt = [Fe.INDEXEDDB._driver, Fe.WEBSQL._driver, Fe.LOCALSTORAGE._driver], Ke = ["dropInstance"], fr = ["clear", "getItem", "iterate", "key", "keys", "length", "removeItem", "setItem"].concat(Ke), Gt = {
1644
+ LOCALSTORAGE: Ut
1645
+ }, kt = [ke.INDEXEDDB._driver, ke.WEBSQL._driver, ke.LOCALSTORAGE._driver], Ke = ["dropInstance"], fr = ["clear", "getItem", "iterate", "key", "keys", "length", "removeItem", "setItem"].concat(Ke), Gt = {
1646
1646
  description: "",
1647
1647
  driver: kt.slice(),
1648
1648
  name: "localforage",
@@ -1652,32 +1652,32 @@ var at = { exports: {} };
1652
1652
  storeName: "keyvaluepairs",
1653
1653
  version: 1
1654
1654
  };
1655
- function Wt(n, c) {
1656
- n[c] = function() {
1655
+ function Wt(n, i) {
1656
+ n[i] = function() {
1657
1657
  var a = arguments;
1658
1658
  return n.ready().then(function() {
1659
- return n[c].apply(n, a);
1659
+ return n[i].apply(n, a);
1660
1660
  });
1661
1661
  };
1662
1662
  }
1663
1663
  function sr() {
1664
1664
  for (var n = 1; n < arguments.length; n++) {
1665
- var c = arguments[n];
1666
- if (c)
1667
- for (var a in c)
1668
- c.hasOwnProperty(a) && (Fr(c[a]) ? arguments[0][a] = c[a].slice() : arguments[0][a] = c[a]);
1665
+ var i = arguments[n];
1666
+ if (i)
1667
+ for (var a in i)
1668
+ i.hasOwnProperty(a) && (Fr(i[a]) ? arguments[0][a] = i[a].slice() : arguments[0][a] = i[a]);
1669
1669
  }
1670
1670
  return arguments[0];
1671
1671
  }
1672
1672
  var qt = function() {
1673
- function n(c) {
1673
+ function n(i) {
1674
1674
  x(this, n);
1675
- for (var a in Fe)
1676
- if (Fe.hasOwnProperty(a)) {
1677
- var m = Fe[a], v = m._driver;
1675
+ for (var a in ke)
1676
+ if (ke.hasOwnProperty(a)) {
1677
+ var m = ke[a], v = m._driver;
1678
1678
  this[a] = v, He[v] || this.defineDriver(m);
1679
1679
  }
1680
- this._defaultConfig = sr({}, Gt), this._config = sr({}, this._defaultConfig, c), this._driverSet = null, this._initDriver = null, this._ready = !1, this._dbInfo = null, this._wrapLibraryMethodsWithReady(), this.setDriver(this._config.driver).catch(function() {
1680
+ this._defaultConfig = sr({}, Gt), this._config = sr({}, this._defaultConfig, i), this._driverSet = null, this._initDriver = null, this._ready = !1, this._dbInfo = null, this._wrapLibraryMethodsWithReady(), this.setDriver(this._config.driver).catch(function() {
1681
1681
  });
1682
1682
  }
1683
1683
  return n.prototype.config = function(a) {
@@ -1693,9 +1693,9 @@ var at = { exports: {} };
1693
1693
  } else
1694
1694
  return typeof a == "string" ? this._config[a] : this._config;
1695
1695
  }, n.prototype.defineDriver = function(a, m, v) {
1696
- var o = new d(function(M, R) {
1696
+ var o = new d(function(C, R) {
1697
1697
  try {
1698
- var B = a._driver, F = new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");
1698
+ var U = a._driver, F = new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");
1699
1699
  if (!a._driver) {
1700
1700
  R(F);
1701
1701
  return;
@@ -1720,7 +1720,7 @@ var at = { exports: {} };
1720
1720
  };
1721
1721
  ue();
1722
1722
  var le = function(Ye) {
1723
- He[B] && console.info("Redefining LocalForage driver: " + B), He[B] = a, kr[B] = Ye, M();
1723
+ He[U] && console.info("Redefining LocalForage driver: " + U), He[U] = a, kr[U] = Ye, C();
1724
1724
  };
1725
1725
  "_support" in a ? a._support && typeof a._support == "function" ? a._support().then(le, R) : le(!!a._support) : le(!0);
1726
1726
  } catch (ge) {
@@ -1734,7 +1734,7 @@ var at = { exports: {} };
1734
1734
  var o = He[a] ? d.resolve(He[a]) : d.reject(new Error("Driver not found."));
1735
1735
  return u(o, m, v), o;
1736
1736
  }, n.prototype.getSerializer = function(a) {
1737
- var m = d.resolve(ir);
1737
+ var m = d.resolve(cr);
1738
1738
  return u(m, a), m;
1739
1739
  }, n.prototype.ready = function(a) {
1740
1740
  var m = this, v = m._driverSet.then(function() {
@@ -1744,11 +1744,11 @@ var at = { exports: {} };
1744
1744
  }, n.prototype.setDriver = function(a, m, v) {
1745
1745
  var o = this;
1746
1746
  Fr(a) || (a = [a]);
1747
- var M = this._getSupportedDrivers(a);
1747
+ var C = this._getSupportedDrivers(a);
1748
1748
  function R() {
1749
1749
  o._config.driver = o.driver();
1750
1750
  }
1751
- function B(q) {
1751
+ function U(q) {
1752
1752
  return o._extend(q), R(), o._ready = o._initStorage(o._config), o._ready;
1753
1753
  }
1754
1754
  function F(q) {
@@ -1757,7 +1757,7 @@ var at = { exports: {} };
1757
1757
  function p() {
1758
1758
  for (; z < q.length; ) {
1759
1759
  var re = q[z];
1760
- return z++, o._dbInfo = null, o._ready = null, o.getDriver(re).then(B).catch(p);
1760
+ return z++, o._dbInfo = null, o._ready = null, o.getDriver(re).then(U).catch(p);
1761
1761
  }
1762
1762
  R();
1763
1763
  var ue = new Error("No available storage method found.");
@@ -1770,9 +1770,9 @@ var at = { exports: {} };
1770
1770
  return d.resolve();
1771
1771
  }) : d.resolve();
1772
1772
  return this._driverSet = k.then(function() {
1773
- var q = M[0];
1773
+ var q = C[0];
1774
1774
  return o._dbInfo = null, o._ready = null, o.getDriver(q).then(function(z) {
1775
- o._driver = z._driver, R(), o._wrapLibraryMethodsWithReady(), o._initDriver = F(M);
1775
+ o._driver = z._driver, R(), o._wrapLibraryMethodsWithReady(), o._initDriver = F(C);
1776
1776
  });
1777
1777
  }).catch(function() {
1778
1778
  R();
@@ -1785,8 +1785,8 @@ var at = { exports: {} };
1785
1785
  sr(this, a);
1786
1786
  }, n.prototype._getSupportedDrivers = function(a) {
1787
1787
  for (var m = [], v = 0, o = a.length; v < o; v++) {
1788
- var M = a[v];
1789
- this.supports(M) && m.push(M);
1788
+ var C = a[v];
1789
+ this.supports(C) && m.push(C);
1790
1790
  }
1791
1791
  return m;
1792
1792
  }, n.prototype._wrapLibraryMethodsWithReady = function() {
@@ -1796,7 +1796,7 @@ var at = { exports: {} };
1796
1796
  return new n(a);
1797
1797
  }, n;
1798
1798
  }(), Vt = new qt();
1799
- A.exports = Vt;
1799
+ b.exports = Vt;
1800
1800
  }, { 3: 3 }] }, {}, [4])(4);
1801
1801
  });
1802
1802
  })(at);
@@ -1846,14 +1846,14 @@ function va() {
1846
1846
  async function l(s) {
1847
1847
  return await me().removeItem(s);
1848
1848
  }
1849
- async function A(s, g) {
1849
+ async function b(s, g) {
1850
1850
  await me().setItem(g, s);
1851
1851
  }
1852
1852
  return {
1853
1853
  clearAsync: e,
1854
1854
  getAsync: t,
1855
1855
  removeAsync: l,
1856
- saveAsync: A
1856
+ saveAsync: b
1857
1857
  };
1858
1858
  }
1859
1859
  let er;
@@ -1870,11 +1870,8 @@ function bn(e) {
1870
1870
  }), er;
1871
1871
  }
1872
1872
  function Sn(e) {
1873
- if (console.log("getting store definition"), e.storeMode == null && e.nav != null && e.navigation != null) {
1874
- const t = e.navigation.findItem(e.nav);
1875
- e.storeMode = t == null ? void 0 : t.storeMode, e.storeName ?? (e.storeName = e.navigation.findStoreName(e.nav));
1876
- }
1877
- if (e.storeMode ?? (e.storeMode = "session"), e.storeName ?? (e.storeName = e.nav), e.storeName == null)
1873
+ var t, l, b, s, g;
1874
+ if (e.storeMode ?? (e.storeMode = ((l = (t = e.navigation) == null ? void 0 : t.findItem(e.nav)) == null ? void 0 : l.storeMode) ?? "session"), e.storageMode ?? (e.storageMode = ((s = (b = e.navigation) == null ? void 0 : b.findItem(e.nav)) == null ? void 0 : s.storageMode) ?? "local-cache"), e.storeName ?? (e.storeName = ((g = e.navigation) == null ? void 0 : g.findStoreName(e.nav)) ?? e.nav), e.storeName == null)
1878
1875
  throw new Error("no store name provided");
1879
1876
  if (e.storeMode == "whole-last-updated") {
1880
1877
  if (e.api == null)
@@ -1892,7 +1889,7 @@ const An = (e) => {
1892
1889
  if (e.additionalUrl != null && (t == null ? t = e.additionalUrl : t = Ue(t, e.additionalUrl)), e.id != null && (t != null && t.includes("{id}") ? t = t.replaceAll("{id}", e.id) : t = Ue(t, e.id)), e.params != null) {
1893
1890
  t ?? (t = "");
1894
1891
  let l = new URLSearchParams();
1895
- Object.entries(e.params).sort(Ge.firstBy((s) => s[0])).forEach((s) => {
1892
+ Object.entries(e.params).sort(Be.firstBy((s) => s[0])).forEach((s) => {
1896
1893
  s[1] != null && l.append(s[0], s[1].toString());
1897
1894
  }), t = `${t}?${l.toString()}`;
1898
1895
  }
@@ -1901,26 +1898,28 @@ const An = (e) => {
1901
1898
  function En(e) {
1902
1899
  return et(e.storeName, () => {
1903
1900
  var u;
1904
- const t = de.utc().toSeconds() / 86400, l = Y({}), A = Y({}), s = e.storageMode == "local-cache", g = e.buildUrl ?? ((u = e.api) == null ? void 0 : u.buildUrl) ?? An;
1901
+ const t = de.utc().toSeconds() / 86400, l = Y({}), b = Y({}), s = e.storageMode == "local-cache", g = e.buildUrl ?? ((u = e.api) == null ? void 0 : u.buildUrl) ?? An;
1905
1902
  function x(r) {
1906
- var y, E;
1907
- return `${e.storeName ?? "base"}_${((y = e.auth) == null ? void 0 : y.credentials.value.userID) ?? "no-user-id"}_${r.id ?? ((E = r.data) == null ? void 0 : E.id) ?? "no-item-id"}_${r.params ?? "no-params"}`;
1903
+ var c, S;
1904
+ let y = "";
1905
+ const I = r.params ?? {};
1906
+ return I != null && (y = Object.entries(I).sort(Be.firstBy((E) => E[0])).map((E) => `${E[0]}=${JSON.stringify(E[1])}`).join("&")), `${e.storeName ?? "base"}_${((c = e.auth) == null ? void 0 : c.credentials.value.userID) ?? "no-user-id"}_${r.id ?? ((S = r.data) == null ? void 0 : S.id) ?? "no-item-id"}_${y ?? "no-params"}`;
1908
1907
  }
1909
- async function C(r) {
1908
+ async function P(r) {
1910
1909
  r.additionalUrl ?? (r.additionalUrl = "/getAll"), g(r);
1911
- const y = x(r), E = r.refresh;
1912
- if (!E && l.value[y] !== void 0)
1910
+ const y = x(r), I = r.refresh;
1911
+ if (!I && l.value[y] !== void 0)
1913
1912
  return l.value[y];
1914
- if (!E && s == !0) {
1915
- const i = await me().getItem(y);
1916
- if (i != null && (e.api == null || parseFloat(i.meta.storedOn) > t - 7))
1917
- return l.value[y] = i, i;
1913
+ if (!I && s == !0) {
1914
+ const c = await me().getItem(y);
1915
+ if (c != null && (e.api == null || parseFloat(c.meta.storedOn) > t - 7))
1916
+ return l.value[y] = c, c;
1918
1917
  }
1919
1918
  if (e.api == null)
1920
1919
  return l.value[y];
1921
1920
  try {
1922
- let i = A.value[y];
1923
- i == null && (i = new Promise(async (I, L) => {
1921
+ let c = b.value[y];
1922
+ c == null && (c = new Promise(async (E, L) => {
1924
1923
  var w;
1925
1924
  try {
1926
1925
  const _ = await ((w = e.api) == null ? void 0 : w.getAll(r)), D = {
@@ -1929,39 +1928,39 @@ function En(e) {
1929
1928
  count: _ == null ? void 0 : _.count,
1930
1929
  filters: (_ == null ? void 0 : _.filters) ?? []
1931
1930
  };
1932
- s == !0 && await me().setItem(y, D), I(D);
1931
+ s == !0 && await me().setItem(y, D), E(D);
1933
1932
  } catch (_) {
1934
1933
  L(_);
1935
1934
  } finally {
1936
- delete A.value[y];
1935
+ delete b.value[y];
1937
1936
  }
1938
- }), A.value[y] = i);
1939
- const S = await i;
1937
+ }), b.value[y] = c);
1938
+ const S = await c;
1940
1939
  return l.value[y] = S, {
1941
1940
  data: S == null ? void 0 : S.data,
1942
1941
  filters: S == null ? void 0 : S.filters,
1943
1942
  count: S == null ? void 0 : S.count
1944
1943
  };
1945
- } catch (i) {
1946
- let S = i;
1944
+ } catch (c) {
1945
+ let S = c;
1947
1946
  throw new Error(S.message ?? "Problem");
1948
1947
  }
1949
1948
  }
1950
1949
  async function T(r) {
1951
1950
  r.additionalUrl ?? (r.additionalUrl = "/get"), g(r);
1952
- const y = x(r), E = r.refresh;
1953
- if (!E && l.value[y] !== void 0)
1951
+ const y = x(r), I = r.refresh;
1952
+ if (!I && l.value[y] !== void 0)
1954
1953
  return l.value[y];
1955
- if (!E && s == !0) {
1956
- const i = await me().getItem(y);
1957
- if (i != null && (e.api == null || parseFloat(i.meta.storedOn) > t - 7))
1958
- return l.value[y] = i, { data: i.data };
1954
+ if (!I && s == !0) {
1955
+ const c = await me().getItem(y);
1956
+ if (c != null && (e.api == null || parseFloat(c.meta.storedOn) > t - 7))
1957
+ return l.value[y] = c, { data: c.data };
1959
1958
  }
1960
1959
  if (e.api == null)
1961
1960
  return l.value[y];
1962
1961
  try {
1963
- let i = A.value[y];
1964
- i == null && (i = new Promise(async (I, L) => {
1962
+ let c = b.value[y];
1963
+ c == null && (c = new Promise(async (E, L) => {
1965
1964
  var w;
1966
1965
  try {
1967
1966
  let _ = await ((w = e.api) == null ? void 0 : w.get(r));
@@ -1969,77 +1968,77 @@ function En(e) {
1969
1968
  meta: { storedOn: t.toString() },
1970
1969
  data: _ == null ? void 0 : _.data
1971
1970
  };
1972
- s == !0 && await me().setItem(y, D), I(D);
1971
+ s == !0 && await me().setItem(y, D), E(D);
1973
1972
  } catch (_) {
1974
1973
  L(_);
1975
1974
  } finally {
1976
- delete A.value[y];
1975
+ delete b.value[y];
1977
1976
  }
1978
- }), A.value[y] = i);
1979
- const S = await i;
1977
+ }), b.value[y] = c);
1978
+ const S = await c;
1980
1979
  return l.value[y] = S, { data: S.data };
1981
- } catch (i) {
1982
- let S = i;
1980
+ } catch (c) {
1981
+ let S = c;
1983
1982
  throw new Error(S.message ?? "Problem");
1984
1983
  }
1985
1984
  }
1986
- async function P(r) {
1987
- var i;
1985
+ async function N(r) {
1986
+ var c;
1988
1987
  r.additionalUrl ?? (r.additionalUrl = "/patch"), g(r);
1989
1988
  const y = x(r);
1990
- let E;
1989
+ let I;
1991
1990
  if (e.api != null)
1992
1991
  try {
1993
1992
  let S = await e.api.patch(r);
1994
- E = S == null ? void 0 : S.data;
1993
+ I = S == null ? void 0 : S.data;
1995
1994
  } catch (S) {
1996
- let I = S;
1997
- throw new Error(I.message ?? "Patch Problem");
1995
+ let E = S;
1996
+ throw new Error(E.message ?? "Patch Problem");
1998
1997
  }
1999
1998
  else
2000
- E = r.data;
2001
- if (E != null) {
1999
+ I = r.data;
2000
+ if (I != null) {
2002
2001
  let S = {
2003
2002
  meta: { storedOn: t.toString() },
2004
- data: { ...(i = l.value[y]) == null ? void 0 : i.data, ...E }
2003
+ data: { ...(c = l.value[y]) == null ? void 0 : c.data, ...I }
2005
2004
  };
2006
- return l.value[y] = S, s == !0 && await me().setItem(y, S), E.id != null && E.rowVersion != null && Object.entries(l.value).forEach((L) => {
2005
+ return l.value[y] = S, s == !0 && await me().setItem(y, S), I.id != null && I.rowVersion != null && Object.entries(l.value).forEach((L) => {
2007
2006
  const w = L[1].data;
2008
2007
  if (w != null)
2009
2008
  if (Array.isArray(w))
2010
2009
  for (let _ = 0; _ < w.length; _++)
2011
- w[_].id == E.id && w.splice(_, 1, S.data);
2010
+ w[_].id == I.id && w.splice(_, 1, S.data);
2012
2011
  else
2013
- w.id == E.id && (l.value[L[0]] = S);
2012
+ w.id == I.id && (l.value[L[0]] = S);
2014
2013
  }), S.data;
2015
2014
  }
2016
- return E;
2015
+ return I;
2017
2016
  }
2018
2017
  async function $(r) {
2019
2018
  r.additionalUrl ?? (r.additionalUrl = "/post"), g(r);
2020
2019
  const y = x(r);
2021
- let E;
2020
+ let I;
2022
2021
  if (e.api != null)
2023
2022
  try {
2024
- let i = await e.api.post(r);
2025
- E = i == null ? void 0 : i.data;
2026
- } catch (i) {
2027
- let S = i;
2023
+ let c = await e.api.post(r);
2024
+ I = c == null ? void 0 : c.data;
2025
+ } catch (c) {
2026
+ let S = c;
2028
2027
  throw new Error(S.message ?? "Patch Problem");
2029
2028
  }
2030
2029
  else
2031
- E = r.data;
2032
- if (E != null) {
2033
- let i = {
2030
+ I = r.data;
2031
+ if (I != null) {
2032
+ let c = {
2034
2033
  meta: { storedOn: t.toString() },
2035
- data: E
2034
+ data: I
2036
2035
  };
2037
- return s == !0 && await me().setItem(y, i), l.value[y] = i, i.data;
2036
+ return s == !0 && await me().setItem(y, c), l.value[y] = c, c.data;
2038
2037
  }
2039
- return E;
2038
+ return I;
2040
2039
  }
2041
2040
  async function d(r) {
2042
- var i;
2041
+ var c;
2043
2042
  r.additionalUrl ?? (r.additionalUrl = "/delete"), g(r);
2044
2043
  const y = x(r);
2045
2044
  if (e.api != null)
@@ -2048,19 +2047,19 @@ function En(e) {
2048
2047
  if (S != null)
2049
2048
  return S;
2050
2049
  } catch (S) {
2051
- let I = S;
2052
- throw new Error(I.message ?? "Patch Problem");
2050
+ let E = S;
2051
+ throw new Error(E.message ?? "Patch Problem");
2053
2052
  }
2054
2053
  delete l.value[y];
2055
- const E = ((i = r.data) == null ? void 0 : i.id) ?? r.id;
2056
- E != null && Object.entries(l.value).forEach((I) => {
2057
- const L = I[1].data;
2054
+ const I = ((c = r.data) == null ? void 0 : c.id) ?? r.id;
2055
+ I != null && Object.entries(l.value).forEach((E) => {
2056
+ const L = E[1].data;
2058
2057
  if (L != null)
2059
2058
  if (Array.isArray(L))
2060
2059
  for (let w = 0; w < L.length; w++)
2061
- L[w].id == E && L.splice(w, 1);
2060
+ L[w].id == I && L.splice(w, 1);
2062
2061
  else
2063
- delete l.value[I[0]];
2062
+ delete l.value[E[0]];
2064
2063
  }), s == !0 && await me().removeItem(y);
2065
2064
  }
2066
2065
  async function h(r) {
@@ -2069,15 +2068,15 @@ function En(e) {
2069
2068
  let y = await e.api.patch(r);
2070
2069
  return y == null ? void 0 : y.data;
2071
2070
  } catch (y) {
2072
- let E = y;
2073
- throw new Error(E.message ?? "Patch Problem");
2071
+ let I = y;
2072
+ throw new Error(I.message ?? "Patch Problem");
2074
2073
  }
2075
2074
  }
2076
2075
  return {
2077
2076
  deleteItem: d,
2078
2077
  get: T,
2079
- getAll: C,
2080
- patch: P,
2078
+ getAll: P,
2079
+ patch: N,
2081
2080
  post: $,
2082
2081
  restore: h,
2083
2082
  searchMemory: l
@@ -2087,39 +2086,39 @@ function En(e) {
2087
2086
  }
2088
2087
  function Vr(e) {
2089
2088
  return et(e.storeName, () => {
2090
- const t = Y(), l = Y(0), A = de.utc().toSeconds() / 3600, s = Y(), g = Y(), x = Y({}), C = e.storageMode == "local-cache";
2089
+ const t = Y(), l = Y(0), b = de.utc().toSeconds() / 3600, s = Y(), g = Y(), x = Y({}), P = e.storageMode == "local-cache";
2091
2090
  function T() {
2092
- var i;
2093
- return `${e.storeName}_${((i = e.auth) == null ? void 0 : i.credentials.value.userID) ?? "no-user-id"}`;
2091
+ var c;
2092
+ return `${e.storeName}_${((c = e.auth) == null ? void 0 : c.credentials.value.userID) ?? "no-user-id"}`;
2094
2093
  }
2095
- async function P() {
2096
- C == !0 && await me().setItem(T(), {
2094
+ async function N() {
2095
+ P == !0 && await me().setItem(T(), {
2097
2096
  meta: g.value,
2098
2097
  data: t.value,
2099
2098
  count: l.value,
2100
2099
  filters: []
2101
2100
  });
2102
2101
  }
2103
- function $(i) {
2102
+ function $(c) {
2104
2103
  const S = T();
2105
- return x.value[S] || (x.value[S] = new Promise(async (I, L) => {
2104
+ return x.value[S] || (x.value[S] = new Promise(async (E, L) => {
2106
2105
  var w, _;
2107
2106
  try {
2108
2107
  let D = await ((_ = e.api) == null ? void 0 : _.getAll({
2109
2108
  additionalUrl: "/getAll",
2110
- nav: i.nav,
2109
+ nav: c.nav,
2111
2110
  params: {
2112
2111
  lastUpdate: ((w = g.value) == null ? void 0 : w.lastUpdate) ?? un()
2113
2112
  }
2114
2113
  }));
2115
- D == null ? L(D) : (t.value ?? (t.value = []), D.data.forEach((N) => {
2116
- var b, J;
2117
- const f = t.value.findIndex((Q) => Q.id == N.id);
2118
- f >= 0 ? (b = t.value) == null || b.splice(f, 1, N) : (J = t.value) == null || J.push(N);
2114
+ D == null ? L(D) : (t.value ?? (t.value = []), D.data.forEach((M) => {
2115
+ var A, J;
2116
+ const f = t.value.findIndex((Q) => Q.id == M.id);
2117
+ f >= 0 ? (A = t.value) == null || A.splice(f, 1, M) : (J = t.value) == null || J.push(M);
2119
2118
  }), l.value = t.value.length, g.value = {
2120
2119
  lastUpdate: de.utc().toString(),
2121
- storedOn: A.toString()
2122
- }, await P(), I(D));
2120
+ storedOn: b.toString()
2121
+ }, await N(), E(D));
2123
2122
  } catch (D) {
2124
2123
  L(D);
2125
2124
  } finally {
@@ -2127,18 +2126,18 @@ function Vr(e) {
2127
2126
  }
2128
2127
  })), x.value[S];
2129
2128
  }
2130
- async function d(i) {
2129
+ async function d(c) {
2131
2130
  var L, w, _;
2132
- const S = T(), I = i.refresh;
2133
- if (!I && t.value != null)
2131
+ const S = T(), E = c.refresh;
2132
+ if (!E && t.value != null)
2134
2133
  return {
2135
2134
  count: (L = t.value) == null ? void 0 : L.length,
2136
2135
  data: t.value,
2137
2136
  filters: []
2138
2137
  };
2139
- if (!I && C == !0) {
2138
+ if (!E && P == !0) {
2140
2139
  const D = await me().getItem(S);
2141
- if (D != null && parseFloat(D.meta.storedOn) > A - 7)
2140
+ if (D != null && parseFloat(D.meta.storedOn) > b - 7)
2142
2141
  return t.value = D.data, l.value = D.data.length, s.value = D.filters ?? [], g.value = D.meta, {
2143
2142
  count: (w = t.value) == null ? void 0 : w.length,
2144
2143
  data: t.value ?? [],
@@ -2153,113 +2152,113 @@ function Vr(e) {
2153
2152
  };
2154
2153
  t.value ?? (t.value = []);
2155
2154
  try {
2156
- return await $(i);
2155
+ return await $(c);
2157
2156
  } catch (D) {
2158
- let N = D;
2159
- throw new Error(N.message ?? "Problem");
2157
+ let M = D;
2158
+ throw new Error(M.message ?? "Problem");
2160
2159
  }
2161
2160
  }
2162
- async function h(i) {
2163
- var w, _, D, N;
2164
- const S = T(), I = i.id ?? ((w = i.data) == null ? void 0 : w.id);
2165
- if (I == null)
2161
+ async function h(c) {
2162
+ var w, _, D, M;
2163
+ const S = T(), E = c.id ?? ((w = c.data) == null ? void 0 : w.id);
2164
+ if (E == null)
2166
2165
  throw new Error("no id provided");
2167
- let L = i.refresh;
2166
+ let L = c.refresh;
2168
2167
  if (!L && t.value != null) {
2169
- const f = t.value.find((b) => b.id == I);
2168
+ const f = t.value.find((A) => A.id == E);
2170
2169
  if (f != null)
2171
2170
  return { data: f };
2172
2171
  }
2173
- if (!L && C == !0) {
2172
+ if (!L && P == !0) {
2174
2173
  const f = await me().getItem(S);
2175
- if (f != null && parseFloat(f.meta.storedOn) > A - 12) {
2174
+ if (f != null && parseFloat(f.meta.storedOn) > b - 12) {
2176
2175
  t.value = f.data, l.value = f.data.length, s.value = f.filters ?? [], g.value = f.meta;
2177
- let b = (_ = t.value) == null ? void 0 : _.find((J) => J.id == i.id);
2178
- if (b != null)
2179
- return { data: b };
2176
+ let A = (_ = t.value) == null ? void 0 : _.find((J) => J.id == c.id);
2177
+ if (A != null)
2178
+ return { data: A };
2180
2179
  }
2181
2180
  }
2182
2181
  if (e.api == null)
2183
2182
  return {
2184
- data: (D = t.value) == null ? void 0 : D.find((f) => f.id == i.id)
2183
+ data: (D = t.value) == null ? void 0 : D.find((f) => f.id == c.id)
2185
2184
  };
2186
2185
  t.value ?? (t.value = []);
2187
2186
  try {
2188
- return await $(i), { data: (N = t.value) == null ? void 0 : N.find((f) => f.id == i.id) };
2187
+ return await $(c), { data: (M = t.value) == null ? void 0 : M.find((f) => f.id == c.id) };
2189
2188
  } catch (f) {
2190
- let b = f;
2191
- throw new Error(b.message ?? "Problem");
2189
+ let A = f;
2190
+ throw new Error(A.message ?? "Problem");
2192
2191
  }
2193
2192
  }
2194
- async function u(i) {
2195
- var I, L, w;
2196
- i.additionalUrl ?? (i.additionalUrl = "/patch");
2193
+ async function u(c) {
2194
+ var E, L, w;
2195
+ c.additionalUrl ?? (c.additionalUrl = "/patch");
2197
2196
  let S;
2198
2197
  if (e.api != null)
2199
2198
  try {
2200
- let _ = await e.api.patch(i);
2201
- S = { ...i.data, ..._ == null ? void 0 : _.data };
2199
+ let _ = await e.api.patch(c);
2200
+ S = { ...c.data, ..._ == null ? void 0 : _.data };
2202
2201
  } catch (_) {
2203
2202
  let D = _;
2204
2203
  throw new Error(D.message ?? "Patch Problem");
2205
2204
  }
2206
2205
  else
2207
- S = i.data;
2206
+ S = c.data;
2208
2207
  if (S != null) {
2209
- let _ = (I = t.value) == null ? void 0 : I.findIndex((D) => D.id == S.id);
2210
- _ != null && _ >= 0 && (t.value ?? (t.value = []), (L = t.value) == null || L.splice(_, 1, S), await P());
2208
+ let _ = (E = t.value) == null ? void 0 : E.findIndex((D) => D.id == S.id);
2209
+ _ != null && _ >= 0 && (t.value ?? (t.value = []), (L = t.value) == null || L.splice(_, 1, S), await N());
2211
2210
  }
2212
- return (w = t.value) == null ? void 0 : w.find((_) => _.id == (i.id ?? i.data.id));
2211
+ return (w = t.value) == null ? void 0 : w.find((_) => _.id == (c.id ?? c.data.id));
2213
2212
  }
2214
- async function r(i) {
2215
- var I, L;
2216
- i.additionalUrl ?? (i.additionalUrl = "/post");
2213
+ async function r(c) {
2214
+ var E, L;
2215
+ c.additionalUrl ?? (c.additionalUrl = "/post");
2217
2216
  let S;
2218
2217
  if (e.api != null)
2219
2218
  try {
2220
- let w = await e.api.post(i);
2219
+ let w = await e.api.post(c);
2221
2220
  S = w == null ? void 0 : w.data;
2222
2221
  } catch (w) {
2223
2222
  let _ = w;
2224
2223
  throw new Error(_.message ?? "Patch Problem");
2225
2224
  }
2226
2225
  else
2227
- S = i.data;
2228
- return S != null && (t.value ?? (t.value = []), (I = t.value) == null || I.unshift(S), l.value += 1, await P()), (L = t.value) == null ? void 0 : L.find((w) => w.id == (i.id ?? i.data.id));
2226
+ S = c.data;
2227
+ return S != null && (t.value ?? (t.value = []), (E = t.value) == null || E.unshift(S), l.value += 1, await N()), (L = t.value) == null ? void 0 : L.find((w) => w.id == (c.id ?? c.data.id));
2229
2228
  }
2230
- async function y(i) {
2231
- var I, L;
2232
- if (i.additionalUrl ?? (i.additionalUrl = "/delete"), e.api != null)
2229
+ async function y(c) {
2230
+ var E, L;
2231
+ if (c.additionalUrl ?? (c.additionalUrl = "/delete"), e.api != null)
2233
2232
  try {
2234
- let w = await e.api.deleteItem(i);
2233
+ let w = await e.api.deleteItem(c);
2235
2234
  if (w != null)
2236
2235
  return w;
2237
2236
  } catch (w) {
2238
2237
  let _ = w;
2239
2238
  throw new Error(_.message ?? "Patch Problem");
2240
2239
  }
2241
- const S = i.id ?? i.data.id;
2240
+ const S = c.id ?? c.data.id;
2242
2241
  if (S != null) {
2243
- let w = (I = t.value) == null ? void 0 : I.findIndex((_) => _.id == S);
2244
- w != null && w >= 0 && (t.value ?? (t.value = []), (L = t.value) == null || L.splice(w, 1), await P());
2242
+ let w = (E = t.value) == null ? void 0 : E.findIndex((_) => _.id == S);
2243
+ w != null && w >= 0 && (t.value ?? (t.value = []), (L = t.value) == null || L.splice(w, 1), await N());
2245
2244
  }
2246
2245
  }
2247
- async function E(i) {
2246
+ async function I(c) {
2248
2247
  var S;
2249
- if (i.additionalUrl ?? (i.additionalUrl = `/patch/restore?id=${i.data.id}`), e.api != null)
2248
+ if (c.additionalUrl ?? (c.additionalUrl = `/patch/restore?id=${c.data.id}`), e.api != null)
2250
2249
  try {
2251
- await e.api.patch(i);
2252
- } catch (I) {
2253
- let L = I;
2250
+ await e.api.patch(c);
2251
+ } catch (E) {
2252
+ let L = E;
2254
2253
  throw new Error(L.message ?? "Patch Problem");
2255
2254
  }
2256
2255
  try {
2257
- i.additionalUrl = "/getAll", await $(i);
2258
- } catch (I) {
2259
- let L = I;
2256
+ c.additionalUrl = "/getAll", await $(c);
2257
+ } catch (E) {
2258
+ let L = E;
2260
2259
  throw new Error(L.message ?? "Problem");
2261
2260
  }
2262
- return (S = t.value) == null ? void 0 : S.find((I) => I.id == (i.id ?? i.data.id));
2261
+ return (S = t.value) == null ? void 0 : S.find((E) => E.id == (c.id ?? c.data.id));
2263
2262
  }
2264
2263
  return {
2265
2264
  deleteItem: y,
@@ -2267,7 +2266,7 @@ function Vr(e) {
2267
2266
  getAll: d,
2268
2267
  patch: u,
2269
2268
  post: r,
2270
- restore: E
2269
+ restore: I
2271
2270
  };
2272
2271
  });
2273
2272
  }
@@ -2276,7 +2275,7 @@ function Er() {
2276
2275
  return Ar;
2277
2276
  }
2278
2277
  function In(e) {
2279
- const t = (e == null ? void 0 : e.buildHeaders) ?? C, l = (e == null ? void 0 : e.buildQuery) ?? g, A = (e == null ? void 0 : e.buildUrl) ?? x, s = e == null ? void 0 : e.demo;
2278
+ const t = (e == null ? void 0 : e.buildHeaders) ?? P, l = (e == null ? void 0 : e.buildQuery) ?? g, b = (e == null ? void 0 : e.buildUrl) ?? x, s = e == null ? void 0 : e.demo;
2280
2279
  function g(u) {
2281
2280
  let r = new URLSearchParams();
2282
2281
  return Object.entries(u).forEach((y) => {
@@ -2289,182 +2288,178 @@ function In(e) {
2289
2288
  let r = K(u.url) ?? void 0, y = K(u.id);
2290
2289
  return r == null && (e == null ? void 0 : e.findPath) != null && (r = e.findPath(u.nav)), u.additionalUrl != null && (r == null ? r = u.additionalUrl : r = Ue(r, u.additionalUrl)), y != null && (r != null && r.includes("{id}") ? r = r.replaceAll("{id}", y) : r = Ue(r, y)), u.params != null && (r = `${r}?${l(u.params)}`), u.finalUrl = r, u.finalUrl ?? "";
2291
2290
  }
2292
- function C(u) {
2293
- var y, E;
2291
+ function P(u) {
2292
+ var y, I;
2294
2293
  let r = { ...u.headers };
2295
- return u.proxyID && (r.ManagedCompanyAccountID ?? (r.ManagedCompanyAccountID = u.proxyID)), (e == null ? void 0 : e.useBearerToken) != !1 && ((y = e == null ? void 0 : e.auth) == null ? void 0 : y.isLoggedIn.value) == !0 && (r.authorization ?? (r.authorization = `bearer ${(E = e == null ? void 0 : e.auth) == null ? void 0 : E.credentials.value.token}`)), r["Content-Type"] ?? (r["Content-Type"] = u.contentType ?? (e == null ? void 0 : e.defaultContentType) ?? "application/json"), r;
2294
+ return u.proxyID && (r.ManagedCompanyAccountID ?? (r.ManagedCompanyAccountID = u.proxyID)), (e == null ? void 0 : e.useBearerToken) != !1 && ((y = e == null ? void 0 : e.auth) == null ? void 0 : y.isLoggedIn.value) == !0 && (r.authorization ?? (r.authorization = `bearer ${(I = e == null ? void 0 : e.auth) == null ? void 0 : I.credentials.value.token}`)), r["Content-Type"] ?? (r["Content-Type"] = u.contentType ?? (e == null ? void 0 : e.defaultContentType) ?? "application/json"), r;
2296
2295
  }
2297
2296
  async function T(u) {
2298
- const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, E = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2299
- let i = u.finalUrl, S = u.headers;
2300
- if (i == null && (i = A(u)), u.overrideHeaders !== !0 && (S = t(u)), s != null && s.isDemoing.value)
2301
- return console.log(`DEMO: Get from ${i}`), s.get(u);
2302
- console.log(`Get from ${i}`);
2303
- let I;
2297
+ const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, I = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2298
+ let c = u.finalUrl, S = u.headers;
2299
+ if (c == null && (c = b(u)), u.overrideHeaders !== !0 && (S = t(u)), s != null && s.isDemoing.value)
2300
+ return console.log(`DEMO: Get from ${c}`), s.get(u);
2301
+ console.log(`Get from ${c}`);
2302
+ let E;
2304
2303
  try {
2305
- if (I = await fetch(i, {
2304
+ if (E = await fetch(c, {
2306
2305
  method: "GET",
2307
2306
  mode: "cors",
2308
2307
  cache: "no-cache",
2309
2308
  headers: S
2310
- }), !I.ok) {
2311
- let L = await I.text();
2312
- throw new Error(L ?? I.statusText ?? "Get error");
2309
+ }), !E.ok) {
2310
+ let L = await E.text();
2311
+ throw new Error(L ?? E.statusText ?? "Get error");
2313
2312
  }
2314
- if (E)
2315
- return await I.text();
2313
+ if (I)
2314
+ return await E.text();
2316
2315
  if (y)
2317
- return await I.json();
2316
+ return await E.json();
2318
2317
  throw new Error();
2319
2318
  } catch (L) {
2320
- const w = `${(I == null ? void 0 : I.status) ?? ""} ${(I == null ? void 0 : I.statusText) ?? ""} ${L.message}`;
2319
+ const w = `${(E == null ? void 0 : E.status) ?? ""} ${(E == null ? void 0 : E.statusText) ?? ""} ${L.message}`;
2321
2320
  if (!r)
2322
2321
  return;
2323
2322
  throw new Error(w);
2324
2323
  }
2325
2324
  }
2326
- async function P(u) {
2327
- const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, E = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2328
- let i = u.finalUrl, S = u.headers;
2329
- if (i == null && (i = A(u)), u.overrideHeaders !== !0 && (S = t(u)), s != null && s.isDemoing.value)
2330
- return console.log(`DEMO: Get all from ${i}`), s.getAll(u);
2331
- console.log(`Get all from ${i}`);
2332
- let I;
2325
+ async function N(u) {
2326
+ const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, I = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2327
+ let c = u.finalUrl, S = u.headers;
2328
+ if (c == null && (c = b(u)), u.overrideHeaders !== !0 && (S = t(u)), s != null && s.isDemoing.value)
2329
+ return console.log(`DEMO: Get all from ${c}`), s.getAll(u);
2330
+ console.log(`Get all from ${c}`);
2331
+ let E;
2333
2332
  try {
2334
- if (I = await fetch(i, {
2333
+ if (E = await fetch(c, {
2335
2334
  method: "GET",
2336
2335
  mode: "cors",
2337
2336
  cache: "no-cache",
2338
2337
  headers: S
2339
- }), !I.ok) {
2340
- let L = await I.text();
2341
- throw new Error(L ?? I.statusText ?? "Get all error");
2338
+ }), !E.ok) {
2339
+ let L = await E.text();
2340
+ throw new Error(L ?? E.statusText ?? "Get all error");
2342
2341
  }
2343
- if (E)
2344
- return await I.text();
2342
+ if (I)
2343
+ return await E.text();
2345
2344
  if (y)
2346
- return await I.json();
2345
+ return await E.json();
2347
2346
  throw new Error();
2348
2347
  } catch (L) {
2349
- const w = `${(I == null ? void 0 : I.status) ?? ""} ${(I == null ? void 0 : I.statusText) ?? ""} ${L.message}`;
2348
+ const w = `${(E == null ? void 0 : E.status) ?? ""} ${(E == null ? void 0 : E.statusText) ?? ""} ${L.message}`;
2350
2349
  if (!r)
2351
2350
  return;
2352
2351
  throw new Error(w);
2353
2352
  }
2354
2353
  }
2355
2354
  async function $(u) {
2356
- const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, E = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2357
- let i = u.finalUrl, S = u.headers;
2358
- if (i == null && (i = A(u)), u.overrideHeaders !== !0 && (S = t(u)), s != null && s.isDemoing.value)
2359
- return console.log(`DEMO: Post to ${i}`), s.post(u);
2360
- console.log(`Post to ${i}`);
2361
- let I;
2355
+ const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, I = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2356
+ let c = u.finalUrl, S = u.headers;
2357
+ if (c == null && (c = b(u)), u.overrideHeaders !== !0 && (S = t(u)), s != null && s.isDemoing.value)
2358
+ return console.log(`DEMO: Post to ${c}`), s.post(u);
2359
+ console.log(`Post to ${c}`);
2360
+ let E;
2362
2361
  try {
2363
- if (I = await fetch(i, {
2362
+ if (E = await fetch(c, {
2364
2363
  method: "POST",
2365
2364
  mode: "cors",
2366
2365
  cache: "no-cache",
2367
2366
  headers: S,
2368
2367
  body: JSON.stringify(u.data)
2369
- }), !I.ok) {
2370
- let L = await I.text();
2371
- throw new Error(L ?? I.statusText ?? "Post error!");
2368
+ }), !E.ok) {
2369
+ let L = await E.text();
2370
+ throw new Error(L ?? E.statusText ?? "Post error!");
2372
2371
  }
2373
- if (E)
2374
- return await I.text();
2372
+ if (I)
2373
+ return await E.text();
2375
2374
  if (y)
2376
- return await I.json();
2375
+ return await E.json();
2377
2376
  throw new Error();
2378
2377
  } catch (L) {
2379
- if (I.status == 200 || !r)
2378
+ if (E.status == 200 || !r)
2380
2379
  return;
2381
- const w = `${(I == null ? void 0 : I.status) ?? ""} ${(I == null ? void 0 : I.statusText) ?? ""} ${L.message}`;
2380
+ const w = `${(E == null ? void 0 : E.status) ?? ""} ${(E == null ? void 0 : E.statusText) ?? ""} ${L.message}`;
2382
2381
  throw new Error(w);
2383
2382
  }
2384
2383
  }
2385
2384
  async function d(u) {
2386
- const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, E = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2387
- let i = u.finalUrl, S = u.headers;
2388
- if (i == null && (i = A(u)), u.overrideHeaders !== !0 && (S = t(u)), s != null && s.isDemoing.value)
2389
- return console.log(`DEMO: Patch to ${i}`), s.patch(u);
2390
- console.log(`Patch to ${i}`);
2391
- let I;
2385
+ const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, I = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
2386
+ let c = u.finalUrl, S = u.headers;
2387
+ if (c == null && (c = b(u)), u.overrideHeaders !== !0 && (S = t(u)), s != null && s.isDemoing.value)
2388
+ return console.log(`DEMO: Patch to ${c}`), s.patch(u);
2389
+ console.log(`Patch to ${c}`);
2390
+ let E;
2392
2391
  try {
2393
- if (I = await fetch(i, {
2392
+ if (E = await fetch(c, {
2394
2393
  method: "PATCH",
2395
2394
  mode: "cors",
2396
2395
  cache: "no-cache",
2397
2396
  headers: S,
2398
2397
  body: JSON.stringify(u.data)
2399
- }), !I.ok) {
2400
- let L = await I.text();
2401
- throw new Error(L ?? I.statusText ?? "Patch error!");
2398
+ }), !E.ok) {
2399
+ let L = await E.text();
2400
+ throw new Error(L ?? E.statusText ?? "Patch error!");
2402
2401
  }
2403
- if (E)
2404
- return await I.text();
2402
+ if (I)
2403
+ return await E.text();
2405
2404
  if (y)
2406
- return await I.json();
2405
+ return await E.json();
2407
2406
  throw new Error();
2408
2407
  } catch (L) {
2409
- if (I.status == 200 || !r)
2408
+ if (E.status == 200 || !r)
2410
2409
  return;
2411
- const w = `${(I == null ? void 0 : I.status) ?? ""} ${(I == null ? void 0 : I.statusText) ?? ""} ${L.message}`;
2410
+ const w = `${(E == null ? void 0 : E.status) ?? ""} ${(E == null ? void 0 : E.statusText) ?? ""} ${L.message}`;
2412
2411
  throw new Error(w);
2413
2412
  }
2414
2413
  }
2415
2414
  async function h(u) {
2416
2415
  const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0;
2417
- let y = u.finalUrl, E = u.headers;
2418
- if (y == null && (y = A(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
2416
+ let y = u.finalUrl, I = u.headers;
2417
+ if (y == null && (y = b(u)), u.overrideHeaders !== !0 && (I = t(u)), s != null && s.isDemoing.value)
2419
2418
  return console.log(`DEMO: Delete ${y}`), s.deleteItem(u);
2420
2419
  console.log(`Delete ${y}`);
2421
- let i;
2420
+ let c;
2422
2421
  try {
2423
- return i = await fetch(y, {
2422
+ return c = await fetch(y, {
2424
2423
  method: "DELETE",
2425
2424
  mode: "cors",
2426
2425
  cache: "no-cache",
2427
- headers: E,
2426
+ headers: I,
2428
2427
  body: JSON.stringify(u.data)
2429
- }), i.status == 200 ? void 0 : i.statusText;
2428
+ }), c.status == 200 ? void 0 : c.statusText;
2430
2429
  } catch (S) {
2431
- const I = `${(i == null ? void 0 : i.status) ?? ""} ${(i == null ? void 0 : i.statusText) ?? ""} ${S.message}`;
2430
+ const E = `${(c == null ? void 0 : c.status) ?? ""} ${(c == null ? void 0 : c.statusText) ?? ""} ${S.message}`;
2432
2431
  if (!r)
2433
- return I;
2434
- throw new Error(`${i.status} ${i.statusText} ${S.message}`);
2432
+ return E;
2433
+ throw new Error(`${c.status} ${c.statusText} ${S.message}`);
2435
2434
  }
2436
2435
  }
2437
2436
  return Ar = {
2438
2437
  buildHeaders: t,
2439
2438
  buildQuery: l,
2440
- buildUrl: A,
2439
+ buildUrl: b,
2441
2440
  deleteItem: h,
2442
2441
  get: T,
2443
- getAll: P,
2442
+ getAll: N,
2444
2443
  patch: d,
2445
2444
  post: $
2446
2445
  }, Ar;
2447
2446
  }
2448
- function ct(e) {
2449
- const { actionErrorMsg: t, actionLoadingMsg: l, clearErrors: A, isLoading: s, doAction: g, logError: x } = rn(e);
2450
- function C(r) {
2451
- r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.refresh ?? (r.refresh = e == null ? void 0 : e.refresh), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), r.confirmationMsg ?? (r.confirmationMsg = r.requireConfirmation === !0 ? "Are you sure you want to delete this item?" : void 0), r.store ?? (r.store = e == null ? void 0 : e.store);
2447
+ function it(e) {
2448
+ const { actionErrorMsg: t, actionLoadingMsg: l, clearErrors: b, isLoading: s, doAction: g, logError: x } = rn(e);
2449
+ function P(r) {
2450
+ r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.refresh ?? (r.refresh = e == null ? void 0 : e.refresh), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), r.confirmationMsg ?? (r.confirmationMsg = r.requireConfirmation === !0 ? "Are you sure you want to delete this item?" : void 0);
2452
2451
  let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2453
- const E = (e == null ? void 0 : e.items) ?? [];
2454
- return y == null && r.nav != null && (y = Le({
2455
- storeMode: r.storeMode ?? (e == null ? void 0 : e.storeMode) ?? "session",
2456
- storageMode: r.storageMode ?? (e == null ? void 0 : e.storageMode) ?? "local-cache",
2457
- nav: r.nav ?? (e == null ? void 0 : e.nav)
2458
- })), y != null ? r.onDeleteAsync ?? (r.onDeleteAsync = () => y().deleteItem(r)) : r.onDeleteAsync ?? (r.onDeleteAsync = () => {
2459
- var I;
2460
- const i = r.id ?? ((I = r.data) == null ? void 0 : I.id);
2461
- if (i == null)
2452
+ const I = (e == null ? void 0 : e.items) ?? [];
2453
+ return y == null && r.nav != null && (y = Le({ nav: r.nav })), y != null ? r.onDeleteAsync ?? (r.onDeleteAsync = () => y().deleteItem(r)) : r.onDeleteAsync ?? (r.onDeleteAsync = () => {
2454
+ var E;
2455
+ const c = r.id ?? ((E = r.data) == null ? void 0 : E.id);
2456
+ if (c == null)
2462
2457
  return Promise.resolve("No id found in delete action");
2463
- const S = E.findIndex((L) => L.id == i);
2464
- return S >= 0 && E.splice(S, 1), Promise.resolve(void 0);
2458
+ const S = I.findIndex((L) => L.id == c);
2459
+ return S >= 0 && I.splice(S, 1), Promise.resolve(void 0);
2465
2460
  }), g(async () => {
2466
- let i;
2467
- r.onCanDeleteAsync != null && (i = await r.onCanDeleteAsync(r.data)), i == null && r.onDeleteAsync != null && (i = await r.onDeleteAsync(r.data)), i == null && r.onDeleteSuccessAsync != null && await r.onDeleteSuccessAsync(r.data), x(i);
2461
+ let c;
2462
+ r.onCanDeleteAsync != null && (c = await r.onCanDeleteAsync(r.data)), c == null && r.onDeleteAsync != null && (c = await r.onDeleteAsync(r.data)), c == null && r.onDeleteSuccessAsync != null && await r.onDeleteSuccessAsync(r.data), x(c);
2468
2463
  }, {
2469
2464
  completionMsg: r.completionMsg ?? (e == null ? void 0 : e.completionMsg),
2470
2465
  confirmationMsg: r.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
@@ -2477,18 +2472,14 @@ function ct(e) {
2477
2472
  function T(r) {
2478
2473
  r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.refresh ?? (r.refresh = e == null ? void 0 : e.refresh), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), r.confirmationMsg ?? (r.confirmationMsg = r.requireConfirmation === !0 ? "Are you sure you want to get this item?" : void 0);
2479
2474
  let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2480
- const E = (e == null ? void 0 : e.items) ?? [];
2481
- return y == null && r.nav != null && (y = Le({
2482
- storeMode: r.storeMode ?? (e == null ? void 0 : e.storeMode) ?? "session",
2483
- storageMode: r.storageMode ?? (e == null ? void 0 : e.storageMode) ?? "local-cache",
2484
- nav: r.nav ?? (e == null ? void 0 : e.nav)
2485
- })), y != null ? r.onGetAsync ?? (r.onGetAsync = async () => (await y().get(r)).data) : r.onGetAsync ?? (r.onGetAsync = () => {
2475
+ const I = (e == null ? void 0 : e.items) ?? [];
2476
+ return y == null && r.nav != null && (y = Le({ nav: r.nav })), y != null ? r.onGetAsync ?? (r.onGetAsync = async () => (await y().get(r)).data) : r.onGetAsync ?? (r.onGetAsync = () => {
2486
2477
  var S;
2487
- const i = r.id ?? ((S = r.data) == null ? void 0 : S.id);
2488
- return i == null ? Promise.resolve(void 0) : Promise.resolve(E.find((I) => I.id == i));
2478
+ const c = r.id ?? ((S = r.data) == null ? void 0 : S.id);
2479
+ return c == null ? Promise.resolve(void 0) : Promise.resolve(I.find((E) => E.id == c));
2489
2480
  }), g(async () => {
2490
- let i;
2491
- return r.onGetAsync != null && (i = await r.onGetAsync(r)), r.onGetSuccessAsync != null && (i = await r.onGetSuccessAsync(i, r)), i;
2481
+ let c;
2482
+ return r.onGetAsync != null && (c = await r.onGetAsync(r)), r.onGetSuccessAsync != null && (c = await r.onGetSuccessAsync(c, r)), c;
2492
2483
  }, {
2493
2484
  completionMsg: r.completionMsg ?? (e == null ? void 0 : e.completionMsg),
2494
2485
  confirmationMsg: r.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
@@ -2498,17 +2489,13 @@ function ct(e) {
2498
2489
  throwError: r.throwError ?? (e == null ? void 0 : e.throwError)
2499
2490
  });
2500
2491
  }
2501
- function P(r) {
2492
+ function N(r) {
2502
2493
  r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.refresh ?? (r.refresh = e == null ? void 0 : e.refresh), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), r.confirmationMsg ?? (r.confirmationMsg = r.requireConfirmation === !0 ? "Are you sure you want to get these items?" : void 0);
2503
2494
  let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2504
- const E = (e == null ? void 0 : e.items) ?? [];
2505
- return y == null && r.nav != null && (y = Le({
2506
- storeMode: r.storeMode ?? (e == null ? void 0 : e.storeMode) ?? "session",
2507
- storageMode: r.storageMode ?? (e == null ? void 0 : e.storageMode) ?? "local-cache",
2508
- nav: r.nav ?? (e == null ? void 0 : e.nav)
2509
- })), y != null ? r.onGetAsync ?? (r.onGetAsync = () => y().getAll(r)) : r.onGetAsync ?? (r.onGetAsync = () => Promise.resolve(E)), g(async () => {
2510
- let i;
2511
- return r.onGetAsync != null && (i = await r.onGetAsync(r)), r.onGetSuccessAsync != null && (i = await r.onGetSuccessAsync(i, r)), i;
2495
+ const I = (e == null ? void 0 : e.items) ?? [];
2496
+ return y == null && r.nav != null && (y = Le({ nav: r.nav })), y != null ? r.onGetAsync ?? (r.onGetAsync = () => y().getAll(r)) : r.onGetAsync ?? (r.onGetAsync = () => Promise.resolve(I)), g(async () => {
2497
+ let c;
2498
+ return r.onGetAsync != null && (c = await r.onGetAsync(r)), r.onGetSuccessAsync != null && (c = await r.onGetSuccessAsync(c, r)), c;
2512
2499
  }, {
2513
2500
  completionMsg: r.completionMsg ?? (e == null ? void 0 : e.completionMsg),
2514
2501
  confirmationMsg: r.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
@@ -2521,13 +2508,9 @@ function ct(e) {
2521
2508
  function $(r) {
2522
2509
  r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.refresh ?? (r.refresh = e == null ? void 0 : e.refresh), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), r.confirmationMsg ?? (r.confirmationMsg = r.requireConfirmation === !0 ? "Are you sure you want to restore this item?" : void 0);
2523
2510
  let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2524
- return y == null && r.nav != null && (y = Le({
2525
- storeMode: r.storeMode ?? (e == null ? void 0 : e.storeMode) ?? "session",
2526
- storageMode: r.storageMode ?? (e == null ? void 0 : e.storageMode) ?? "local-cache",
2527
- nav: r.nav ?? (e == null ? void 0 : e.nav)
2528
- })), y != null && (r.onRestoreAsync ?? (r.onRestoreAsync = () => y().restore(r))), g(async () => {
2529
- let E, i;
2530
- return r.onCanRestoreAsync != null && (E = await r.onCanRestoreAsync(r.data)), E == null && r.onRestoreAsync != null && (i = await r.onRestoreAsync(r.data)), i != null && r.onRestoreSuccessAsync != null && await r.onRestoreSuccessAsync(i), x(E), i;
2511
+ return y == null && r.nav != null && (y = Le({ nav: r.nav })), y != null && (r.onRestoreAsync ?? (r.onRestoreAsync = () => y().restore(r))), g(async () => {
2512
+ let I, c;
2513
+ return r.onCanRestoreAsync != null && (I = await r.onCanRestoreAsync(r.data)), I == null && r.onRestoreAsync != null && (c = await r.onRestoreAsync(r.data)), c != null && r.onRestoreSuccessAsync != null && await r.onRestoreSuccessAsync(c), x(I), c;
2531
2514
  }, {
2532
2515
  completionMsg: r.completionMsg ?? (e == null ? void 0 : e.completionMsg),
2533
2516
  confirmationMsg: r.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
@@ -2540,28 +2523,24 @@ function ct(e) {
2540
2523
  function d(r) {
2541
2524
  r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.refresh ?? (r.refresh = e == null ? void 0 : e.refresh), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), r.confirmationMsg ?? (r.confirmationMsg = r.requireConfirmation === !0 ? "Are you sure you want to save this item?" : void 0);
2542
2525
  let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
2543
- const E = (e == null ? void 0 : e.items) ?? [];
2544
- return r.onGetSaveAsync ?? (r.onGetSaveAsync = (i) => i), r.onCanSaveAsync ?? (r.onCanSaveAsync = () => Promise.resolve(void 0)), y == null && r.nav != null && (y = Le({
2545
- storeMode: r.storeMode ?? (e == null ? void 0 : e.storeMode) ?? "session",
2546
- storageMode: r.storageMode ?? (e == null ? void 0 : e.storageMode) ?? "local-cache",
2547
- nav: r.nav ?? (e == null ? void 0 : e.nav)
2548
- })), y != null ? r.onSaveAsync ?? (r.onSaveAsync = async () => {
2549
- var i;
2550
- return r.mode ?? (r.mode = ((i = r.data) == null ? void 0 : i.id) == null ? "new" : "edit"), r.mode == "new" ? await y().post(r) : await y().patch(r);
2551
- }) : r.onSaveAsync ?? (r.onSaveAsync = (i) => {
2552
- const S = E.findIndex((I) => I.id == i.id);
2553
- return S >= 0 ? E.splice(S, 1, i) : E.push(i), Promise.resolve(i);
2526
+ const I = (e == null ? void 0 : e.items) ?? [];
2527
+ return r.onGetSaveAsync ?? (r.onGetSaveAsync = (c) => c), r.onCanSaveAsync ?? (r.onCanSaveAsync = () => Promise.resolve(void 0)), y == null && r.nav != null && (y = Le({ nav: r.nav })), y != null ? r.onSaveAsync ?? (r.onSaveAsync = async () => {
2528
+ var c;
2529
+ return r.mode ?? (r.mode = ((c = r.data) == null ? void 0 : c.id) == null ? "new" : "edit"), r.mode == "new" ? await y().post(r) : await y().patch(r);
2530
+ }) : r.onSaveAsync ?? (r.onSaveAsync = (c) => {
2531
+ const S = I.findIndex((E) => E.id == c.id);
2532
+ return S >= 0 ? I.splice(S, 1, c) : I.push(c), Promise.resolve(c);
2554
2533
  }), g(async () => {
2555
- let i;
2556
- if (r.onGetSaveAsync != null && (i = await r.onGetSaveAsync(r.data)), i == null)
2534
+ let c;
2535
+ if (r.onGetSaveAsync != null && (c = await r.onGetSaveAsync(r.data)), c == null)
2557
2536
  return;
2558
2537
  if (r.onCanSaveAsync != null) {
2559
- let I = await r.onCanSaveAsync(i);
2560
- if (x(I), I != null)
2538
+ let E = await r.onCanSaveAsync(c);
2539
+ if (x(E), E != null)
2561
2540
  return;
2562
2541
  }
2563
2542
  let S;
2564
- return r.onSaveAsync != null && (S = await r.onSaveAsync(i), S = S.data != null ? S.data : S), r.onSaveSuccessAsync != null && (S = await r.onSaveSuccessAsync(S)), S;
2543
+ return r.onSaveAsync != null && (S = await r.onSaveAsync(c), S = S.data != null ? S.data : S), r.onSaveSuccessAsync != null && (S = await r.onSaveSuccessAsync(S)), S;
2565
2544
  }, {
2566
2545
  completionMsg: r.completionMsg ?? (e == null ? void 0 : e.completionMsg),
2567
2546
  confirmationMsg: r.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
@@ -2582,10 +2561,10 @@ function ct(e) {
2582
2561
  actionErrorMsg: t,
2583
2562
  apiGet: h,
2584
2563
  apiPost: u,
2585
- clearErrors: A,
2586
- deleteItem: C,
2564
+ clearErrors: b,
2565
+ deleteItem: P,
2587
2566
  doAction: g,
2588
- getAllItems: P,
2567
+ getAllItems: N,
2589
2568
  getItem: T,
2590
2569
  isLoading: s,
2591
2570
  logError: x,
@@ -2601,149 +2580,149 @@ function Dn() {
2601
2580
  function xn(e) {
2602
2581
  const t = e.expiryTokenFormat ?? "d/MM/yyyy h:mm:ss a";
2603
2582
  let l = Y(localStorage.getItem(Hr) ?? "");
2604
- l.value.length == 0 && A();
2605
- function A() {
2583
+ l.value.length == 0 && b();
2584
+ function b() {
2606
2585
  l.value = Math.random().toString(36).substring(4, 19) + Math.random().toString(12).substring(1, 11), localStorage.setItem(Hr, l.value);
2607
2586
  }
2608
2587
  const s = Jt("auth-credentials", {});
2609
2588
  function g(D) {
2610
2589
  if (D == null)
2611
2590
  return !0;
2612
- var N = e.getAuthItem != null ? e.getAuthItem(D) : null;
2613
- if (N == null)
2591
+ var M = e.getAuthItem != null ? e.getAuthItem(D) : null;
2592
+ if (M == null)
2614
2593
  return !1;
2615
- if (N.requiresAuth === !1)
2594
+ if (M.requiresAuth === !1)
2616
2595
  return !0;
2617
2596
  const f = K(s);
2618
- if (f.isSuspended && N.ignoreSuspension !== !0)
2597
+ if (f.isSuspended && M.ignoreSuspension !== !0)
2619
2598
  return !1;
2620
2599
  if (f.isGlobalAdmin)
2621
2600
  return !0;
2622
- if (N.permissions != null) {
2623
- for (var b = 0; b < N.permissions.length; b++)
2624
- if (!x(N.permissions[b]))
2601
+ if (M.permissions != null) {
2602
+ for (var A = 0; A < M.permissions.length; A++)
2603
+ if (!x(M.permissions[A]))
2625
2604
  return !1;
2626
2605
  }
2627
2606
  return !0;
2628
2607
  }
2629
2608
  function x(D) {
2630
- const N = K(s);
2631
- if (N.userPermissions != null)
2632
- for (var f = 0; f < N.userPermissions.length; f++) {
2633
- var b = N.userPermissions[f].split(".");
2634
- if (N.userPermissions[f] == "everything.edit" || D == b[0] && b.length > 1 && b[1] == "edit")
2609
+ const M = K(s);
2610
+ if (M.userPermissions != null)
2611
+ for (var f = 0; f < M.userPermissions.length; f++) {
2612
+ var A = M.userPermissions[f].split(".");
2613
+ if (M.userPermissions[f] == "everything.edit" || D == A[0] && A.length > 1 && A[1] == "edit")
2635
2614
  return !0;
2636
2615
  }
2637
2616
  return !1;
2638
2617
  }
2639
- function C(D) {
2618
+ function P(D) {
2640
2619
  if (D == null)
2641
2620
  return !0;
2642
- var N = e.getAuthItem != null ? e.getAuthItem(D) : null;
2643
- if (N == null)
2621
+ var M = e.getAuthItem != null ? e.getAuthItem(D) : null;
2622
+ if (M == null)
2644
2623
  return !1;
2645
- if (N.requiresAuth === !1)
2624
+ if (M.requiresAuth === !1)
2646
2625
  return !0;
2647
2626
  const f = K(s);
2648
- if (f.isSuspended && N.ignoreSuspension !== !0)
2627
+ if (f.isSuspended && M.ignoreSuspension !== !0)
2649
2628
  return !1;
2650
2629
  if (f.isGlobalAdmin)
2651
2630
  return !0;
2652
- if (N.permissions != null) {
2653
- for (var b = 0; b < N.permissions.length; b++)
2654
- if (!T(N.permissions[b]))
2631
+ if (M.permissions != null) {
2632
+ for (var A = 0; A < M.permissions.length; A++)
2633
+ if (!T(M.permissions[A]))
2655
2634
  return !1;
2656
2635
  }
2657
2636
  return !0;
2658
2637
  }
2659
2638
  function T(D) {
2660
- const N = K(s);
2661
- if (N.userPermissions != null)
2662
- for (var f = 0; f < N.userPermissions.length; f++) {
2663
- var b = N.userPermissions[f].split(".");
2664
- if (D == b[0] || D == "everything" || N.userPermissions[f] == "everything.view" || N.userPermissions[f] == "everything.edit")
2639
+ const M = K(s);
2640
+ if (M.userPermissions != null)
2641
+ for (var f = 0; f < M.userPermissions.length; f++) {
2642
+ var A = M.userPermissions[f].split(".");
2643
+ if (D == A[0] || D == "everything" || M.userPermissions[f] == "everything.view" || M.userPermissions[f] == "everything.edit")
2665
2644
  return !0;
2666
2645
  }
2667
2646
  return !1;
2668
2647
  }
2669
- function P(D, N, f) {
2670
- let b = !0;
2671
- return K(s).isGlobalAdmin ? !0 : (N != null && N.length > 0 && N.forEach((Q) => {
2672
- f == "edit" ? x(Q) || (b = !1) : T(Q) || (b = !1);
2673
- }), D != null && D.length > 0 && (D.some((Q) => u(Q)) || (b = !1)), b);
2648
+ function N(D, M, f) {
2649
+ let A = !0;
2650
+ return K(s).isGlobalAdmin ? !0 : (M != null && M.length > 0 && M.forEach((Q) => {
2651
+ f == "edit" ? x(Q) || (A = !1) : T(Q) || (A = !1);
2652
+ }), D != null && D.length > 0 && (D.some((Q) => u(Q)) || (A = !1)), A);
2674
2653
  }
2675
- function $(D, N = !1) {
2654
+ function $(D, M = !1) {
2676
2655
  var f = e.getAuthItem != null ? e.getAuthItem(D) : null;
2677
- let b = !1;
2656
+ let A = !1;
2678
2657
  if (f == null)
2679
2658
  return !1;
2680
- let J = f.subscriptions ?? [], Q = f.permissions ?? [], ee = P(J, Q, "view");
2681
- return ee || !N || !Te(f.children) ? ee : ((f == null ? void 0 : f.children) != null && f.children.forEach((ce) => {
2682
- $(ce, !0) && (b = !0);
2683
- }), b);
2659
+ let J = f.subscriptions ?? [], Q = f.permissions ?? [], ee = N(J, Q, "view");
2660
+ return ee || !M || !Te(f.children) ? ee : ((f == null ? void 0 : f.children) != null && f.children.forEach((ie) => {
2661
+ $(ie, !0) && (A = !0);
2662
+ }), A);
2684
2663
  }
2685
2664
  function d(D) {
2686
- return e.getAuthorizeUrl ?? (e.getAuthorizeUrl = (N, f) => {
2687
- const b = Ue(qr(), `authorize?response_type=code&client_id=${e.oauthClientID}&redirect_uri=${window.location.origin}/authentication&state=${f}`);
2688
- return N ? `${b}&redirect_path=${N}` : b;
2665
+ return e.getAuthorizeUrl ?? (e.getAuthorizeUrl = (M, f) => {
2666
+ const A = Ue(qr(), `authorize?response_type=code&client_id=${e.oauthClientID}&redirect_uri=${window.location.origin}/authentication&state=${f}`);
2667
+ return M ? `${A}&redirect_path=${M}` : A;
2689
2668
  }), e.getAuthorizeUrl != null ? e.getAuthorizeUrl(D, l.value) ?? "" : "";
2690
2669
  }
2691
2670
  function h(D) {
2692
2671
  var f;
2693
- return D == null ? 0 : ((f = (e.subscriptionOptions ?? []).find((b) => b.code == D)) == null ? void 0 : f.value) ?? 0;
2672
+ return D == null ? 0 : ((f = (e.subscriptionOptions ?? []).find((A) => A.code == D)) == null ? void 0 : f.value) ?? 0;
2694
2673
  }
2695
2674
  function u(D) {
2696
- const N = K(s);
2697
- if (N.subscriptionCode == null)
2675
+ const M = K(s);
2676
+ if (M.subscriptionCode == null)
2698
2677
  return !1;
2699
- if (N.subscriptionCode == D)
2678
+ if (M.subscriptionCode == D)
2700
2679
  return !0;
2701
- const f = h(D), b = h(N.subscriptionCode);
2702
- return f <= b;
2680
+ const f = h(D), A = h(M.subscriptionCode);
2681
+ return f <= A;
2703
2682
  }
2704
2683
  function r(D) {
2705
- const f = D.split(".")[1].replace(/-/g, "+").replace(/_/g, "/"), b = decodeURIComponent(
2684
+ const f = D.split(".")[1].replace(/-/g, "+").replace(/_/g, "/"), A = decodeURIComponent(
2706
2685
  atob(f).split("").map(function(J) {
2707
2686
  return "%" + ("00" + J.charCodeAt(0).toString(16)).slice(-2);
2708
2687
  }).join("")
2709
2688
  );
2710
- return JSON.parse(b);
2689
+ return JSON.parse(A);
2711
2690
  }
2712
- function y(D, N) {
2713
- s.value = void 0, L(), D != null && N != null && N.currentRoute.value.path != D && N.push({ path: D });
2691
+ function y(D, M) {
2692
+ s.value = void 0, L(), D != null && M != null && M.currentRoute.value.path != D && M.push({ path: D });
2714
2693
  }
2715
- function E(D) {
2694
+ function I(D) {
2716
2695
  var f;
2717
2696
  K(s).isLoggedIn || ((f = e.demo) == null || f.endDemo(), _() && (y(), window.location.href = d(D)));
2718
2697
  }
2719
- async function i(D, N) {
2698
+ async function c(D, M) {
2720
2699
  return e.getToken ?? (e.getToken = async () => {
2721
- let f = D, b = N, J = e.oauthGrantType ?? "authorization_token", Q = e.oauthClientID ?? "";
2722
- if (f == null || b == null)
2700
+ let f = D, A = M, J = e.oauthGrantType ?? "authorization_token", Q = e.oauthClientID ?? "";
2701
+ if (f == null || A == null)
2723
2702
  throw new Error("Code and State required in OAuth token process");
2724
- if (b != l.value)
2703
+ if (A != l.value)
2725
2704
  throw new Error("state does not match");
2726
2705
  let ee = "";
2727
2706
  e.getTokenUrl ?? (e.getTokenUrl = () => Ue(qr(), "token")), ee = e.getTokenUrl(f, `${window.location.origin}/authentication`, J, Q);
2728
- const ce = {};
2729
- ce.grant_type = J, ce.code = f, ce.redirect_uri = `${window.location.origin}/authentication`, ce.client_id = Q;
2707
+ const ie = {};
2708
+ ie.grant_type = J, ie.code = f, ie.redirect_uri = `${window.location.origin}/authentication`, ie.client_id = Q;
2730
2709
  const W = await Er().post({
2731
2710
  additionalUrl: ee,
2732
- data: ce
2711
+ data: ie
2733
2712
  });
2734
2713
  S(W.access_token);
2735
- }), await e.getToken(D, N);
2714
+ }), await e.getToken(D, M);
2736
2715
  }
2737
2716
  function S(D) {
2738
2717
  if (D != null && (e.demo == null || !e.demo.isDemoing.value)) {
2739
- const N = r(D);
2740
- I(N, D), e.processTokenPayload != null && e.processTokenPayload(s, N);
2718
+ const M = r(D);
2719
+ E(M, D), e.processTokenPayload != null && e.processTokenPayload(s, M);
2741
2720
  }
2742
2721
  }
2743
- function I(D, N) {
2744
- var b;
2722
+ function E(D, M) {
2723
+ var A;
2745
2724
  const f = s.value;
2746
- f.expiresOn = D.ExpiresOn, f.isGlobalAdmin = D.IsGlobalAdmin == "True", f.isLoggedIn = !0, f.permissions = D.Permissions, f.subscriptionCode = D.Subscription, f.timeZone ?? (f.timeZone = e.defaultTimeZone ?? hr), f.token = N, f.userID = D.UserLoginID, f.userPermissions = ((b = D.Permissions) == null ? void 0 : b.split(",")) ?? [];
2725
+ f.expiresOn = D.ExpiresOn, f.isGlobalAdmin = D.IsGlobalAdmin == "True", f.isLoggedIn = !0, f.permissions = D.Permissions, f.subscriptionCode = D.Subscription, f.timeZone ?? (f.timeZone = e.defaultTimeZone ?? hr), f.token = M, f.userID = D.UserLoginID, f.userPermissions = ((A = D.Permissions) == null ? void 0 : A.split(",")) ?? [];
2747
2726
  }
2748
2727
  function L() {
2749
2728
  var D;
@@ -2757,24 +2736,24 @@ function xn(e) {
2757
2736
  const D = K(s);
2758
2737
  if (D == null || D.expiresOn == null)
2759
2738
  return !0;
2760
- const N = de.fromFormat(D.expiresOn, t), f = de.utc();
2761
- return N <= f;
2739
+ const M = de.fromFormat(D.expiresOn, t), f = de.utc();
2740
+ return M <= f;
2762
2741
  }
2763
2742
  return L(), Ir = {
2764
2743
  authState: l,
2765
2744
  canEdit: g,
2766
2745
  canEditPermit: x,
2767
- canView: C,
2746
+ canView: P,
2768
2747
  canViewPermit: T,
2769
2748
  credentials: s,
2770
- doShow: P,
2749
+ doShow: N,
2771
2750
  doShowByNav: $,
2772
2751
  getAuthorizeUrl: d,
2773
- getToken: i,
2752
+ getToken: c,
2774
2753
  isLoggedIn: te(() => s.value.isLoggedIn === !0),
2775
- login: E,
2754
+ login: I,
2776
2755
  logout: y,
2777
- resetAuthState: A,
2756
+ resetAuthState: b,
2778
2757
  setAuth: S,
2779
2758
  timeZone: te(() => s.value.timeZone ?? e.defaultTimeZone ?? hr),
2780
2759
  tryLogin: w
@@ -2782,43 +2761,43 @@ function xn(e) {
2782
2761
  }
2783
2762
  function _n(e, t, l = {}) {
2784
2763
  const {
2785
- preventDefault: A = !1,
2764
+ preventDefault: b = !1,
2786
2765
  stopPropagation: s = !1,
2787
2766
  axis: g = "both"
2788
2767
  } = l, x = { capture: l.capture ?? !0 };
2789
- let C = { x: 0, y: 0 }, T = { x: 0, y: 0 }, P = { x: 0, y: 0 }, $ = [], d = [], h = Y(!1);
2768
+ let P = { x: 0, y: 0 }, T = { x: 0, y: 0 }, N = { x: 0, y: 0 }, $ = [], d = [], h = Y(!1);
2790
2769
  function u(L) {
2791
- K(A) && L.preventDefault(), K(s) && L.stopPropagation();
2770
+ K(b) && L.preventDefault(), K(s) && L.stopPropagation();
2792
2771
  }
2793
2772
  function r(L) {
2794
2773
  var f;
2795
2774
  const w = K(e);
2796
2775
  if (!w)
2797
2776
  return;
2798
- const _ = w.$el, N = L.type === "touchstart" && L.touches.length > 0 ? L.touches[0] : L;
2799
- P = { x: N.clientX, y: N.clientY }, T = {
2777
+ const _ = w.$el, M = L.type === "touchstart" && L.touches.length > 0 ? L.touches[0] : L;
2778
+ N = { x: M.clientX, y: M.clientY }, T = {
2800
2779
  x: _.offsetLeft,
2801
2780
  y: _.offsetTop
2802
- }, C = {
2781
+ }, P = {
2803
2782
  x: _.offsetLeft,
2804
2783
  y: _.offsetTop
2805
- }, ((f = l.onStart) == null ? void 0 : f.call(l, P, L)) !== !1 && (d.push(he("mousemove", y)), d.push(he("touchmove", y)), d.push(he("mouseup", E)), d.push(he("touchend", E)), u(L));
2784
+ }, ((f = l.onStart) == null ? void 0 : f.call(l, N, L)) !== !1 && (d.push(he("mousemove", y)), d.push(he("touchmove", y)), d.push(he("mouseup", I)), d.push(he("touchend", I)), u(L));
2806
2785
  }
2807
2786
  function y(L) {
2808
- var b;
2809
- if (!P || !K(e))
2787
+ var A;
2788
+ if (!N || !K(e))
2810
2789
  return;
2811
2790
  const D = L.type === "touchmove" && L.touches.length > 0 ? L.touches[0] : L;
2812
- let N = D.clientX - P.x, f = D.clientY - P.y;
2813
- (g === "x" || g === "both") && (C.x = T.x + N), (g === "y" || g === "both") && (C.y = T.y + f), (b = l.onMove) == null || b.call(l, C, L), u(L), i(C);
2791
+ let M = D.clientX - N.x, f = D.clientY - N.y;
2792
+ (g === "x" || g === "both") && (P.x = T.x + M), (g === "y" || g === "both") && (P.y = T.y + f), (A = l.onMove) == null || A.call(l, P, L), u(L), c(P);
2814
2793
  }
2815
- function E(L) {
2794
+ function I(L) {
2816
2795
  var w;
2817
2796
  document.documentElement.style.cursor = "", d.forEach((_) => {
2818
2797
  _();
2819
- }), d.length = 0, (w = l.onEnd) == null || w.call(l, C, L), u(L);
2798
+ }), d.length = 0, (w = l.onEnd) == null || w.call(l, P, L), u(L);
2820
2799
  }
2821
- function i(L) {
2800
+ function c(L) {
2822
2801
  const w = K(e);
2823
2802
  if (!w)
2824
2803
  return;
@@ -2834,7 +2813,7 @@ function _n(e, t, l = {}) {
2834
2813
  const w = L.$el;
2835
2814
  w.style.cursor = "move", $.push(he(w, "mousedown", r, x)), $.push(he(w, "touchstart", r, x)), h.value = !0;
2836
2815
  }
2837
- function I() {
2816
+ function E() {
2838
2817
  if (!K(h))
2839
2818
  return;
2840
2819
  const L = K(t);
@@ -2847,19 +2826,19 @@ function _n(e, t, l = {}) {
2847
2826
  }
2848
2827
  return {
2849
2828
  draggingIsOn: h,
2850
- turnDraggableOff: I,
2829
+ turnDraggableOff: E,
2851
2830
  turnDraggableOn: S
2852
2831
  };
2853
2832
  }
2854
2833
  const Tn = ["t", "r", "b", "l", "tr", "br", "bl", "tl"];
2855
- function Mn(e, t = {}) {
2856
- let l, A = t.handleWidth ?? 12, s = t.handleZIndex ?? 100, g = t.minWidth ?? 0, x = t.maxWidth ?? Number.MAX_SAFE_INTEGER, C = t.minHeight ?? 0, T = t.maxHeight ?? Number.MAX_SAFE_INTEGER, P = t.preventDefault ?? !1, $ = t.stopPropagation ?? !1, d, h = [];
2834
+ function Cn(e, t = {}) {
2835
+ let l, b = t.handleWidth ?? 12, s = t.handleZIndex ?? 100, g = t.minWidth ?? 0, x = t.maxWidth ?? Number.MAX_SAFE_INTEGER, P = t.minHeight ?? 0, T = t.maxHeight ?? Number.MAX_SAFE_INTEGER, N = t.preventDefault ?? !1, $ = t.stopPropagation ?? !1, d, h = [];
2857
2836
  const u = Y(!1);
2858
2837
  let r = [], y = [];
2859
- const E = Y(!1), i = Y({ x: 0, y: 0 });
2860
- let S = { left: 0, top: 0, height: 0, width: 0, position: "absolute" }, I = {};
2838
+ const I = Y(!1), c = Y({ x: 0, y: 0 });
2839
+ let S = { left: 0, top: 0, height: 0, width: 0, position: "absolute" }, E = {};
2861
2840
  function L(W) {
2862
- Ae(P) && W.preventDefault(), Ae($) && W.stopPropagation();
2841
+ Ae(N) && W.preventDefault(), Ae($) && W.stopPropagation();
2863
2842
  }
2864
2843
  function w(W, Z) {
2865
2844
  h = Z.map(D), h.forEach((V) => W.$el.appendChild(V));
@@ -2868,10 +2847,10 @@ function Mn(e, t = {}) {
2868
2847
  h.forEach((Z) => W.$el.removeChild(Z));
2869
2848
  }
2870
2849
  function D(W) {
2871
- const Z = A + "px", V = -A / 2 + "px", ae = s + 1, G = document.createElement("div");
2850
+ const Z = b + "px", V = -b / 2 + "px", ae = s + 1, G = document.createElement("div");
2872
2851
  return G.dataset.handle = W, G.style.position = "absolute", G.style.touchAction = "none", G.style.userSelect = "none", G.style.zIndex = (W.length === 1 ? s : ae).toString(), G.style.cursor = J(W), W.includes("t") && (G.style.top = V, G.style.height = Z, W === "t" && (G.style.left = "0", G.style.width = "100%")), W.includes("b") && (G.style.bottom = V, G.style.height = Z, W === "b" && (G.style.left = "0", G.style.width = "100%")), W.includes("r") && (G.style.right = V, G.style.width = Z, W === "r" && (G.style.top = "0", G.style.height = "100%")), W.includes("l") && (G.style.left = V, G.style.width = Z, W === "l" && (G.style.top = "0", G.style.height = "100%")), G;
2873
2852
  }
2874
- function N(W) {
2853
+ function M(W) {
2875
2854
  var ne;
2876
2855
  if (!h.some((fe) => fe == W.target))
2877
2856
  return;
@@ -2879,42 +2858,42 @@ function Mn(e, t = {}) {
2879
2858
  if (!Z)
2880
2859
  return;
2881
2860
  const V = Z.$el, G = W.type === "touchstart" && W.touches.length > 0 ? W.touches[0] : W;
2882
- if (i.value.x = G.clientX, i.value.y = G.clientY, S = {
2861
+ if (c.value.x = G.clientX, c.value.y = G.clientY, S = {
2883
2862
  left: V.offsetLeft,
2884
2863
  top: V.offsetTop,
2885
2864
  height: parseInt(window.getComputedStyle(V).getPropertyValue("height")),
2886
2865
  width: parseInt(window.getComputedStyle(V).getPropertyValue("width"))
2887
- }, I = Lr(S), ((ne = t.onStart) == null ? void 0 : ne.call(t, i.value, W)) === !1)
2866
+ }, E = Lr(S), ((ne = t.onStart) == null ? void 0 : ne.call(t, c.value, W)) === !1)
2888
2867
  return;
2889
2868
  let X = W.target;
2890
- document.documentElement.style.cursor = J(X.dataset.handle), d = X.dataset.handle, y.push(he("mousemove", f)), y.push(he("mouseup", b)), y.push(he("touchmove", f)), y.push(he("touchend", b)), L(W);
2869
+ document.documentElement.style.cursor = J(X.dataset.handle), d = X.dataset.handle, y.push(he("mousemove", f)), y.push(he("mouseup", A)), y.push(he("touchmove", f)), y.push(he("touchend", A)), L(W);
2891
2870
  }
2892
2871
  function f(W) {
2893
2872
  const Z = Ae(e);
2894
2873
  if (!Z)
2895
2874
  return;
2896
2875
  const V = Z.$el, G = W.type === "touchmove" && W.touches.length > 0 ? W.touches[0] : W;
2897
- let X = G.clientX - i.value.x, ne = G.clientY - i.value.y;
2876
+ let X = G.clientX - c.value.x, ne = G.clientY - c.value.y;
2898
2877
  const fe = Ae(S);
2899
2878
  if (d.includes("t")) {
2900
- const ie = Math.min(T, Math.max(C, (fe.height ?? 0) - ne));
2901
- I.height = ie, I.top = (fe.top ?? 0) + ne;
2879
+ const ce = Math.min(T, Math.max(P, (fe.height ?? 0) - ne));
2880
+ E.height = ce, E.top = (fe.top ?? 0) + ne;
2902
2881
  }
2903
2882
  if (d.includes("b")) {
2904
- const ie = Math.min(T, Math.max(C, (fe.height ?? 0) + ne));
2905
- I.height = ie;
2883
+ const ce = Math.min(T, Math.max(P, (fe.height ?? 0) + ne));
2884
+ E.height = ce;
2906
2885
  }
2907
2886
  if (d.includes("l")) {
2908
- const ie = Math.min(x, Math.max(g, (fe.width ?? 0) - X));
2909
- I.width = ie, I.left = (fe.left ?? 0) + X;
2887
+ const ce = Math.min(x, Math.max(g, (fe.width ?? 0) - X));
2888
+ E.width = ce, E.left = (fe.left ?? 0) + X;
2910
2889
  }
2911
2890
  if (d.includes("r")) {
2912
- const ie = Math.min(x, Math.max(g, (fe.width ?? 0) + X));
2913
- I.width = ie;
2891
+ const ce = Math.min(x, Math.max(g, (fe.width ?? 0) + X));
2892
+ E.width = ce;
2914
2893
  }
2915
- V.dispatchEvent(new CustomEvent("resize")), L(W), ee(I);
2894
+ V.dispatchEvent(new CustomEvent("resize")), L(W), ee(E);
2916
2895
  }
2917
- function b() {
2896
+ function A() {
2918
2897
  document.documentElement.style.cursor = "", d = null, y.forEach((W) => {
2919
2898
  W();
2920
2899
  }), y.length = 0;
@@ -2958,19 +2937,19 @@ function Mn(e, t = {}) {
2958
2937
  position: "absolute"
2959
2938
  }, ee(S), V.offsetHeight;
2960
2939
  const ae = S;
2961
- W == "freestyle" ? I = {
2940
+ W == "freestyle" ? E = {
2962
2941
  height: ae.height,
2963
2942
  width: (ae.width ?? 100) / 2,
2964
2943
  top: (ae.top ?? 0) + 2,
2965
2944
  left: (ae.left ?? 0) + 2,
2966
2945
  position: "absolute"
2967
- } : W == "blade" && (I = {
2946
+ } : W == "blade" && (E = {
2968
2947
  height: ae.height,
2969
2948
  width: (ae.width ?? 100) / 2,
2970
2949
  top: (ae.top ?? 0) + 2,
2971
2950
  left: (ae.left ?? 0) + 2,
2972
2951
  position: "absolute"
2973
- }), ee(I), he(V, "transitionend", () => {
2952
+ }), ee(E), he(V, "transitionend", () => {
2974
2953
  V.style.transition = "", u.value = !1;
2975
2954
  }, { once: !0 });
2976
2955
  }
@@ -2982,37 +2961,37 @@ function Mn(e, t = {}) {
2982
2961
  const V = Z.$el;
2983
2962
  W.top ? V.style.top = `${W.top}px` : V.style.top = void 0, W.left ? V.style.left = `${W.left}px` : V.style.left = void 0, W.height ? V.style.height = `${W.height}px` : V.style.height = void 0, W.width ? V.style.width = `${W.width}px` : V.style.width = void 0, W.position ? V.style.position = `${W.position}` : V.style.position = void 0, console.log(V.style.position);
2984
2963
  }
2985
- function ce(W, Z) {
2986
- if (E.value)
2964
+ function ie(W, Z) {
2965
+ if (I.value)
2987
2966
  return;
2988
2967
  const V = Ae(e);
2989
- V && (w(V, W ?? Tn), Q(Z), r.push(he(V.$el, "mousedown", N)), r.push(he(V.$el, "touchstart", N)), E.value = !0, l = Z);
2968
+ V && (w(V, W ?? Tn), Q(Z), r.push(he(V.$el, "mousedown", M)), r.push(he(V.$el, "touchstart", M)), I.value = !0, l = Z);
2990
2969
  }
2991
2970
  function we(W) {
2992
- if (!E.value)
2971
+ if (!I.value)
2993
2972
  return;
2994
2973
  const Z = Ae(e);
2995
2974
  Z && (_(Z), Q(W), r.forEach((V) => {
2996
2975
  V();
2997
- }), r.length = 0, E.value = !1);
2976
+ }), r.length = 0, I.value = !1);
2998
2977
  }
2999
2978
  return {
3000
- resizingIsOn: E,
3001
- turnResizingOn: ce,
2979
+ resizingIsOn: I,
2980
+ turnResizingOn: ie,
3002
2981
  turnResizingOff: we
3003
2982
  };
3004
2983
  }
3005
- function Cn(e) {
3006
- const t = (e == null ? void 0 : e.blade) ?? Y(null), l = (e == null ? void 0 : e.handle) ?? Y(null), A = Y(!1), s = (e == null ? void 0 : e.mobileBreakpoint) ?? 500, g = Y((e == null ? void 0 : e.defaultVariant) ?? "page"), x = Y({}), { turnResizingOff: C, turnResizingOn: T } = Mn(t), { turnDraggableOff: P, turnDraggableOn: $ } = _n(t, l);
2984
+ function Pn(e) {
2985
+ const t = (e == null ? void 0 : e.blade) ?? Y(null), l = (e == null ? void 0 : e.handle) ?? Y(null), b = Y(!1), s = (e == null ? void 0 : e.mobileBreakpoint) ?? 500, g = Y((e == null ? void 0 : e.defaultVariant) ?? "page"), x = Y({}), { turnResizingOff: P, turnResizingOn: T } = Cn(t), { turnDraggableOff: N, turnDraggableOn: $ } = _n(t, l);
3007
2986
  Kt(t, (h) => {
3008
2987
  const u = h[0], { width: r } = u.contentRect;
3009
- A.value = r < s;
2988
+ b.value = r < s;
3010
2989
  });
3011
2990
  function d(h) {
3012
- P(), h == "page" ? C(h) : h == "blade" ? T(["l", "r"], h) : h == "freestyle" ? (C(), T(void 0, h), $()) : h == "inline" && C();
2991
+ N(), h == "page" ? P(h) : h == "blade" ? T(["l", "r"], h) : h == "freestyle" ? (P(), T(void 0, h), $()) : h == "inline" && P();
3013
2992
  }
3014
2993
  return d(g.value), _e(g, (h) => d(h)), {
3015
- isMobile: A,
2994
+ isMobile: b,
3016
2995
  variant: g,
3017
2996
  bladeData: x
3018
2997
  };
@@ -3053,10 +3032,10 @@ function wa(e) {
3053
3032
  }
3054
3033
  };
3055
3034
  }
3056
- function Pn(e) {
3035
+ function Nn(e) {
3057
3036
  const t = Y({});
3058
3037
  let l = e.vuetifyInstance;
3059
- function A() {
3038
+ function b() {
3060
3039
  const d = localStorage.getItem("cosmetics");
3061
3040
  d != null && d.length > 0 ? t.value = JSON.parse(d) : t.value = {
3062
3041
  theme: e.defaultTheme ?? "light",
@@ -3091,13 +3070,13 @@ function Pn(e) {
3091
3070
  u.colors.primary = d, r.colors.primary = d, (h = document.querySelector('meta[name="theme-color"]')) == null || h.setAttribute("content", d);
3092
3071
  }
3093
3072
  }
3094
- function C() {
3073
+ function P() {
3095
3074
  t.value.drawer = !t.value.drawer;
3096
3075
  }
3097
3076
  function T() {
3098
3077
  t.value.drawerStick = !t.value.drawerStick;
3099
3078
  }
3100
- function P() {
3079
+ function N() {
3101
3080
  t.value.theme = t.value.theme == "dark" ? "light" : "dark", l != null && (l.global.name.value = t.value.theme);
3102
3081
  }
3103
3082
  function $() {
@@ -3107,57 +3086,57 @@ function Pn(e) {
3107
3086
  h.colors.primary = (t.value.dark ?? { ...vr, ...e.defaultDarkTheme }).primary, u.colors.primary = (t.value.light ?? { ...mr, ...e.defaultLightTheme }).primary, (d = document.querySelector('meta[name="theme-color"]')) == null || d.setAttribute("content", "");
3108
3087
  }
3109
3088
  }
3110
- return A(), _e(t, () => {
3089
+ return b(), _e(t, () => {
3111
3090
  s();
3112
3091
  }), Dr = {
3113
3092
  state: t,
3114
3093
  resetCosmetics: g,
3115
3094
  setTemporaryColor: x,
3116
- toggleDrawer: C,
3095
+ toggleDrawer: P,
3117
3096
  toggleDrawerStick: T,
3118
- toggleLightDark: P,
3097
+ toggleLightDark: N,
3119
3098
  undoTemporaryColor: $
3120
3099
  }, Dr;
3121
3100
  }
3122
3101
  const ba = {
3123
3102
  canExportCSV: !1
3124
3103
  };
3125
- function Nn() {
3104
+ function Mn() {
3126
3105
  function e(t) {
3127
3106
  const {
3128
3107
  items: l,
3129
- headers: A,
3108
+ headers: b,
3130
3109
  fileName: s = "data.csv",
3131
3110
  format: g = "file"
3132
3111
  } = t;
3133
3112
  if (!Te(l))
3134
3113
  return;
3135
3114
  let x = [];
3136
- A != null ? x = A == null ? void 0 : A.filter((E) => (E.csv ?? E.csvText ?? E.csvFilter ?? E.csvArray) != null).map((E) => ({
3137
- header: E.title ?? E.value ?? "",
3138
- itemText: E.itemText,
3139
- value: E.value
3140
- })) : x = Object.keys(l[0]).map((E) => ({ header: nn(E) ?? "", value: E })), x = x.filter((E) => E.header.length > 0);
3141
- var C = [];
3142
- for (let E = 0; E < l.length; E++) {
3143
- const i = l[E];
3144
- var T = {}, P = [];
3115
+ b != null ? x = b == null ? void 0 : b.filter((I) => (I.csv ?? I.csvText ?? I.csvFilter ?? I.csvArray) != null).map((I) => ({
3116
+ header: I.title ?? I.value ?? "",
3117
+ itemText: I.itemText,
3118
+ value: I.value
3119
+ })) : x = Object.keys(l[0]).map((I) => ({ header: nn(I) ?? "", value: I })), x = x.filter((I) => I.header.length > 0);
3120
+ var P = [];
3121
+ for (let I = 0; I < l.length; I++) {
3122
+ const c = l[I];
3123
+ var T = {}, N = [];
3145
3124
  for (let S = 0; S < x.length; S++) {
3146
- const I = x[S];
3125
+ const E = x[S];
3147
3126
  var $ = null;
3148
- typeof I.value == "function" ? $ = I.value(i) : typeof I.value == "string" && ($ = Sr(i, I.value)), I.itemText != null ? T[I.header] = Sr($, I.itemText) : T[I.header] = $;
3127
+ typeof E.value == "function" ? $ = E.value(c) : typeof E.value == "string" && ($ = Sr(c, E.value)), E.itemText != null ? T[E.header] = Sr($, E.itemText) : T[E.header] = $;
3149
3128
  }
3150
- C.push(T), Te(P) && P.forEach((S) => {
3151
- C.push(S);
3152
- }), P = [];
3129
+ P.push(T), Te(N) && N.forEach((S) => {
3130
+ P.push(S);
3131
+ }), N = [];
3153
3132
  }
3154
3133
  var d = [];
3155
- if (d.push(x.map((E) => E.header).toString()), C.forEach((E) => {
3156
- let i = [];
3134
+ if (d.push(x.map((I) => I.header).toString()), P.forEach((I) => {
3135
+ let c = [];
3157
3136
  x.forEach(function(S) {
3158
- var I = E[S.header];
3159
- i.push(I ?? "");
3160
- }), d.push(i.join(","));
3137
+ var E = I[S.header];
3138
+ c.push(E ?? "");
3139
+ }), d.push(c.join(","));
3161
3140
  }), g == "array")
3162
3141
  return d;
3163
3142
  var h = d.join(`
@@ -3184,40 +3163,40 @@ function Ln(e) {
3184
3163
  function l() {
3185
3164
  return s().startOf("day").toUTC().toString() ?? "";
3186
3165
  }
3187
- function A() {
3166
+ function b() {
3188
3167
  return s().startOf("day").plus({ day: 1 }).toUTC().toString() ?? "";
3189
3168
  }
3190
- function s(T, P) {
3191
- return T == null ? t().setZone(e.getTimeZone()) : P ? de.fromFormat(T, P, { zone: e.getTimeZone() }) : de.fromISO(T, { zone: e.getTimeZone() });
3169
+ function s(T, N) {
3170
+ return T == null ? t().setZone(e.getTimeZone()) : N ? de.fromFormat(T, N, { zone: e.getTimeZone() }) : de.fromISO(T, { zone: e.getTimeZone() });
3192
3171
  }
3193
- function g(T, P, $) {
3172
+ function g(T, N, $) {
3194
3173
  if (T == null) {
3195
3174
  const h = t().setZone(e.getTimeZone());
3196
- return P ? h.toFormat(P) : h.toString();
3175
+ return N ? h.toFormat(N) : h.toString();
3197
3176
  }
3198
3177
  if (T == "Invalid DateTime")
3199
3178
  return "";
3200
3179
  const d = $ ? de.fromFormat(T, $, { zone: e.getTimeZone() }) : de.fromISO(T, { zone: e.getTimeZone() });
3201
- return P ? d.toFormat(P) : d == null ? void 0 : d.toString();
3180
+ return N ? d.toFormat(N) : d == null ? void 0 : d.toString();
3202
3181
  }
3203
- function x(T, P) {
3204
- return T == null ? t() : P ? de.fromFormat(T, P) : de.fromISO(T);
3182
+ function x(T, N) {
3183
+ return T == null ? t() : N ? de.fromFormat(T, N) : de.fromISO(T);
3205
3184
  }
3206
- function C(T, P, $) {
3185
+ function P(T, N, $) {
3207
3186
  if (T == null)
3208
- return P ? t().toFormat(P) : t().toString();
3187
+ return N ? t().toFormat(N) : t().toString();
3209
3188
  {
3210
3189
  const d = $ ? de.fromFormat(T, $) : de.fromISO(T);
3211
- return P ? d.toFormat(P) : d.toString();
3190
+ return N ? d.toFormat(N) : d.toString();
3212
3191
  }
3213
3192
  }
3214
3193
  return xr = {
3215
3194
  getToday: l,
3216
- getTomorrow: A,
3195
+ getTomorrow: b,
3217
3196
  tzDate: s,
3218
3197
  tzString: g,
3219
3198
  utcDate: x,
3220
- utcString: C
3199
+ utcString: P
3221
3200
  }, xr;
3222
3201
  }
3223
3202
  let _r;
@@ -3226,7 +3205,7 @@ function Aa() {
3226
3205
  }
3227
3206
  function Rn(e) {
3228
3207
  const t = Y(!1), l = (e == null ? void 0 : e.apis) ?? [];
3229
- function A() {
3208
+ function b() {
3230
3209
  t.value = !0;
3231
3210
  }
3232
3211
  function s() {
@@ -3246,7 +3225,7 @@ function Rn(e) {
3246
3225
  return Promise.resolve("no demo data available for this api");
3247
3226
  const h = d.id ?? ((r = d.data) == null ? void 0 : r.id), u = g(d);
3248
3227
  if (h != null && (u == null ? void 0 : u.data) != null) {
3249
- const y = u.data.findIndex((E) => E.id == h);
3228
+ const y = u.data.findIndex((I) => I.id == h);
3250
3229
  y >= 0 && u.data.splice(y, 1);
3251
3230
  }
3252
3231
  return new Promise(function(y) {
@@ -3255,13 +3234,13 @@ function Rn(e) {
3255
3234
  }, 200);
3256
3235
  });
3257
3236
  }
3258
- function C(d) {
3259
- var y, E, i;
3237
+ function P(d) {
3238
+ var y, I, c;
3260
3239
  if (l == null)
3261
3240
  throw new Error("no demo data available for this api");
3262
3241
  const h = d.id ?? ((y = d.data) == null ? void 0 : y.id), u = g(d);
3263
3242
  let r;
3264
- return u != null && (u.data ?? (u.data = []), u.getAction != null ? r = u.getAction(u.data, h) : h != null ? r = (E = u.data) == null ? void 0 : E.find((S) => S.id == h) : u.path != null && ((i = u.data) == null ? void 0 : i.length) == 1 && (r = u.data[0])), r == null ? Promise.resolve(void 0) : new Promise((S) => {
3243
+ return u != null && (u.data ?? (u.data = []), u.getAction != null ? r = u.getAction(u.data, h) : h != null ? r = (I = u.data) == null ? void 0 : I.find((S) => S.id == h) : u.path != null && ((c = u.data) == null ? void 0 : c.length) == 1 && (r = u.data[0])), r == null ? Promise.resolve(void 0) : new Promise((S) => {
3265
3244
  setTimeout(() => {
3266
3245
  S({
3267
3246
  data: r
@@ -3284,15 +3263,15 @@ function Rn(e) {
3284
3263
  });
3285
3264
  });
3286
3265
  }
3287
- function P(d) {
3266
+ function N(d) {
3288
3267
  var r, y;
3289
3268
  if (l == null)
3290
3269
  throw new Error("no demo data available for this api");
3291
3270
  const h = g(d);
3292
3271
  let u;
3293
- return h != null && (h.data ?? (h.data = []), h.postAction != null ? u = h.postAction(h.data, d.data) : d.data != null && (d.data.id == null && (d.data.id = ((((r = h.data) == null ? void 0 : r.length) ?? 0) + 1).toString()), u = d.data, (y = h.data) == null || y.push(u))), u == null ? Promise.resolve(void 0) : new Promise((E) => {
3272
+ return h != null && (h.data ?? (h.data = []), h.postAction != null ? u = h.postAction(h.data, d.data) : d.data != null && (d.data.id == null && (d.data.id = ((((r = h.data) == null ? void 0 : r.length) ?? 0) + 1).toString()), u = d.data, (y = h.data) == null || y.push(u))), u == null ? Promise.resolve(void 0) : new Promise((I) => {
3294
3273
  setTimeout(() => {
3295
- E({
3274
+ I({
3296
3275
  data: u
3297
3276
  });
3298
3277
  });
@@ -3308,13 +3287,13 @@ function Rn(e) {
3308
3287
  if (h.data ?? (h.data = []), h.patchAction != null)
3309
3288
  u = h.patchAction(h.data, d.data);
3310
3289
  else if (d.data.id != null) {
3311
- const E = (r = h.data) == null ? void 0 : r.findIndex((i) => i.id == d.data.id);
3312
- E != null && E > -1 && ((y = h.data) == null || y.splice(E, 1, d.data)), u = d.data;
3290
+ const I = (r = h.data) == null ? void 0 : r.findIndex((c) => c.id == d.data.id);
3291
+ I != null && I > -1 && ((y = h.data) == null || y.splice(I, 1, d.data)), u = d.data;
3313
3292
  }
3314
3293
  }
3315
- return u == null ? Promise.resolve(void 0) : new Promise((E) => {
3294
+ return u == null ? Promise.resolve(void 0) : new Promise((I) => {
3316
3295
  setTimeout(() => {
3317
- E({
3296
+ I({
3318
3297
  data: u
3319
3298
  });
3320
3299
  });
@@ -3323,24 +3302,24 @@ function Rn(e) {
3323
3302
  return _r = {
3324
3303
  endDemo: s,
3325
3304
  isDemoing: t,
3326
- startDemo: A,
3305
+ startDemo: b,
3327
3306
  data: l,
3328
3307
  deleteItem: x,
3329
- get: C,
3308
+ get: P,
3330
3309
  getAll: T,
3331
- post: P,
3310
+ post: N,
3332
3311
  patch: $
3333
3312
  }, _r;
3334
3313
  }
3335
- var Un = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
3314
+ var Bn = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
3336
3315
  function Ea(e) {
3337
3316
  function t(l) {
3338
3317
  var s;
3339
- const A = l.matched.slice().reverse().find((g) => g.meta && g.meta.title);
3340
- if (A)
3341
- document.title = A.meta.title;
3318
+ const b = l.matched.slice().reverse().find((g) => g.meta && g.meta.title);
3319
+ if (b)
3320
+ document.title = b.meta.title;
3342
3321
  else {
3343
- const g = Un.NODE_ENV;
3322
+ const g = Bn.NODE_ENV;
3344
3323
  let x = "";
3345
3324
  g == "development" ? x = "BWeb Dev" : g == "staging" ? x = "BlitzIt Sandpit" : x = "BlitzIt Web | Cloud-Based Wholesale Logistics Platform", ((s = e == null ? void 0 : e.demo) == null ? void 0 : s.isDemoing.value) == !0 && (x = `Training: ${x}`), document.title = x;
3346
3325
  }
@@ -3353,44 +3332,44 @@ let Tr;
3353
3332
  function Ia() {
3354
3333
  return Tr;
3355
3334
  }
3356
- function Bn(e) {
3357
- function t(f, b, J) {
3358
- return f ? ln(f) ? J ?? "" : e.dates.tzString(f, b) : J ?? f ?? "";
3335
+ function Un(e) {
3336
+ function t(f, A, J) {
3337
+ return f ? ln(f) ? J ?? "" : e.dates.tzString(f, A) : J ?? f ?? "";
3359
3338
  }
3360
3339
  function l(f) {
3361
3340
  if (!f)
3362
3341
  return "";
3363
3342
  if (typeof f != "object")
3364
3343
  return f;
3365
- var b = "";
3366
- return f.companyAccount != null && (b = f.companyAccount.companyName + " | "), f.addressLineOne != null && (b = b + f.addressLineOne + " "), f.streetNumber != null && (b = b + f.streetNumber + " "), f.streetName != null && (b = b + f.streetName + ", "), f.suburb != null && (b = b + f.suburb + " "), f.state != null && (b = b + f.state + " "), f.postcode != null && (b = b + f.postcode), b;
3344
+ var A = "";
3345
+ return f.companyAccount != null && (A = f.companyAccount.companyName + " | "), f.addressLineOne != null && (A = A + f.addressLineOne + " "), f.streetNumber != null && (A = A + f.streetNumber + " "), f.streetName != null && (A = A + f.streetName + ", "), f.suburb != null && (A = A + f.suburb + " "), f.state != null && (A = A + f.state + " "), f.postcode != null && (A = A + f.postcode), A;
3367
3346
  }
3368
- function A(f) {
3347
+ function b(f) {
3369
3348
  if (typeof f != "number")
3370
3349
  return f;
3371
- var b = new Intl.NumberFormat("en-US", {
3350
+ var A = new Intl.NumberFormat("en-US", {
3372
3351
  style: "currency",
3373
3352
  currency: "AUD",
3374
3353
  minimumFractionDigits: 2
3375
3354
  });
3376
- return b.format(f);
3355
+ return A.format(f);
3377
3356
  }
3378
- function s(f, b) {
3379
- return t(f, "ccc | d LLL", b);
3357
+ function s(f, A) {
3358
+ return t(f, "ccc | d LLL", A);
3380
3359
  }
3381
- function g(f, b) {
3382
- return t(f, "d LLL", b);
3360
+ function g(f, A) {
3361
+ return t(f, "d LLL", A);
3383
3362
  }
3384
- function x(f, b) {
3385
- return t(f, "ccc", b);
3363
+ function x(f, A) {
3364
+ return t(f, "ccc", A);
3386
3365
  }
3387
- function C(f, b) {
3388
- return t(f, "ccc dd LLL yyyy", b);
3366
+ function P(f, A) {
3367
+ return t(f, "ccc dd LLL yyyy", A);
3389
3368
  }
3390
- function T(f, b) {
3391
- return t(f, "ccc dd LLL @ hh:mm a", b);
3369
+ function T(f, A) {
3370
+ return t(f, "ccc dd LLL @ hh:mm a", A);
3392
3371
  }
3393
- function P(f) {
3372
+ function N(f) {
3394
3373
  return new Intl.NumberFormat().format(f);
3395
3374
  }
3396
3375
  function $(f) {
@@ -3399,11 +3378,11 @@ function Bn(e) {
3399
3378
  function d(f) {
3400
3379
  if (f == 0)
3401
3380
  return "";
3402
- var b = new Intl.NumberFormat().format(f);
3403
- return f > 0 ? "+" + b : b;
3381
+ var A = new Intl.NumberFormat().format(f);
3382
+ return f > 0 ? "+" + A : A;
3404
3383
  }
3405
- function h(f, b) {
3406
- return e.dates.utcString(f, b);
3384
+ function h(f, A) {
3385
+ return e.dates.utcString(f, A);
3407
3386
  }
3408
3387
  function u(f) {
3409
3388
  return tt(f, !1);
@@ -3413,92 +3392,92 @@ function Bn(e) {
3413
3392
  return "";
3414
3393
  if (typeof f != "object")
3415
3394
  return f;
3416
- var b = "";
3417
- return f.addressLineOne != null && (b = f.addressLineOne + " "), f.streetNumber != null && (b = b + f.streetNumber + " "), f.streetName != null && (b = b + f.streetName + " "), f.suburb != null && (b = b + f.suburb + " "), f.state != null && (b = b + f.state + " "), f.postcode != null && (b = b + f.postcode), b = b.replaceAll(",", " "), b;
3395
+ var A = "";
3396
+ return f.addressLineOne != null && (A = f.addressLineOne + " "), f.streetNumber != null && (A = A + f.streetNumber + " "), f.streetName != null && (A = A + f.streetName + " "), f.suburb != null && (A = A + f.suburb + " "), f.state != null && (A = A + f.state + " "), f.postcode != null && (A = A + f.postcode), A = A.replaceAll(",", " "), A;
3418
3397
  }
3419
- function y(f, b) {
3420
- return t(f, "ddd DD MMM YYYY", b);
3398
+ function y(f, A) {
3399
+ return t(f, "ddd DD MMM YYYY", A);
3421
3400
  }
3422
- function E(f, b) {
3423
- return t(f, "ccc dd LLL yyyy hh:mm a", b);
3401
+ function I(f, A) {
3402
+ return t(f, "ccc dd LLL yyyy hh:mm a", A);
3424
3403
  }
3425
- function i(f) {
3426
- var b = new Intl.NumberFormat("en-US", {
3404
+ function c(f) {
3405
+ var A = new Intl.NumberFormat("en-US", {
3427
3406
  style: "percent",
3428
3407
  minimumFractionDigits: 2
3429
3408
  });
3430
- return b.format(f);
3409
+ return A.format(f);
3431
3410
  }
3432
3411
  function S(f) {
3433
3412
  return f.replaceAll(",", " ");
3434
3413
  }
3435
- function I(f, b) {
3436
- return t(f, "dd LLL yyyy", b);
3414
+ function E(f, A) {
3415
+ return t(f, "dd LLL yyyy", A);
3437
3416
  }
3438
- function L(f, b) {
3439
- return t(f, "dd LLL yyyy hh:mm a", b);
3417
+ function L(f, A) {
3418
+ return t(f, "dd LLL yyyy hh:mm a", A);
3440
3419
  }
3441
- function w(f, b) {
3442
- return t(f, "hh:mm a", b);
3420
+ function w(f, A) {
3421
+ return t(f, "hh:mm a", A);
3443
3422
  }
3444
3423
  function _(f) {
3445
3424
  return f == null ? "" : typeof f == "number" ? e.dates.tzDate().startOf("day").plus({ minutes: f }).toFormat("T") : typeof f == "string" ? e.dates.tzString(f, "t") : "unknown";
3446
3425
  }
3447
3426
  const D = {
3448
3427
  toCompanyNameAndLocationLine: l,
3449
- toCurrency: A,
3428
+ toCurrency: b,
3450
3429
  toDayDate: s,
3451
3430
  toDayMonth: g,
3452
3431
  toDayOfWeek: x,
3453
- toDayShortDate: C,
3432
+ toDayShortDate: P,
3454
3433
  toDayShortDateAndTime: T,
3455
- toDisplayNumber: P,
3434
+ toDisplayNumber: N,
3456
3435
  toDisplayNumberOver: $,
3457
3436
  toDisplayNumberSigned: d,
3458
3437
  toFormat: h,
3459
3438
  toLocationLine: u,
3460
3439
  toLocationLineNoCommas: r,
3461
3440
  toLongDate: y,
3462
- toLongDateAndTime: E,
3463
- toPercent: i,
3441
+ toLongDateAndTime: I,
3442
+ toPercent: c,
3464
3443
  toPrettyCSV: S,
3465
- toShortDate: I,
3444
+ toShortDate: E,
3466
3445
  toShortDateAndTime: L,
3467
3446
  toTime: w,
3468
3447
  toTimeOfDay: _
3469
3448
  };
3470
- function N(f) {
3449
+ function M(f) {
3471
3450
  if (f != null) {
3472
- let b = f;
3473
- if (b != null && D[b] != null)
3474
- return D[b];
3451
+ let A = f;
3452
+ if (A != null && D[A] != null)
3453
+ return D[A];
3475
3454
  }
3476
- return (b) => b;
3455
+ return (A) => A;
3477
3456
  }
3478
3457
  return Tr = {
3479
- findFilter: N,
3458
+ findFilter: M,
3480
3459
  ...D
3481
3460
  }, Tr;
3482
3461
  }
3483
3462
  function $n(e, t) {
3484
- const l = Y(!1), A = zt(e);
3463
+ const l = Y(!1), b = zt(e);
3485
3464
  let s = g(K(e));
3486
- (t == null ? void 0 : t.useTracker) !== !1 && _e(A, (C) => {
3487
- l.value = g(C) != s;
3465
+ (t == null ? void 0 : t.useTracker) !== !1 && _e(b, (P) => {
3466
+ l.value = g(P) != s;
3488
3467
  }, { deep: !0 });
3489
- function g(C) {
3490
- const T = Lr(C);
3491
- return t != null && (t.propsToIgnore != null ? t.propsToIgnore.forEach((P) => {
3492
- delete T[P];
3493
- }) : t.propsToTrack != null && Object.keys(C).forEach(($) => {
3468
+ function g(P) {
3469
+ const T = Lr(P);
3470
+ return t != null && (t.propsToIgnore != null ? t.propsToIgnore.forEach((N) => {
3471
+ delete T[N];
3472
+ }) : t.propsToTrack != null && Object.keys(P).forEach(($) => {
3494
3473
  t.propsToTrack.some((d) => d == $) || delete T[$];
3495
3474
  })), JSON.stringify(T);
3496
3475
  }
3497
3476
  function x() {
3498
- s = g(K(A)), l.value = !1;
3477
+ s = g(K(b)), l.value = !1;
3499
3478
  }
3500
3479
  return {
3501
- asyncItem: A,
3480
+ asyncItem: b,
3502
3481
  isChanged: l,
3503
3482
  restartTracker: x
3504
3483
  };
@@ -3508,18 +3487,18 @@ function Da(e, t) {
3508
3487
  const {
3509
3488
  // useBladeSrc = true,
3510
3489
  useRouteSrc: l = !0
3511
- } = t ?? {}, A = e.storeMode ?? (t == null ? void 0 : t.storeMode) ?? "session", s = e.storageMode ?? (t == null ? void 0 : t.storageMode) ?? "local-cache", g = e.nav ?? e.bladeName ?? "basic", x = Nr(), C = rt(), T = K(e.proxyQueryKey), P = te(() => {
3490
+ } = t ?? {}, b = e.storeMode ?? (t == null ? void 0 : t.storeMode), s = e.storageMode ?? (t == null ? void 0 : t.storageMode), g = e.nav ?? e.bladeName ?? "basic", x = Mr(), P = rt(), T = K(e.proxyQueryKey), N = te(() => {
3512
3491
  var G;
3513
- return K(e.proxyID) ?? (T != null ? (G = C == null ? void 0 : C.query) == null ? void 0 : G[T] : void 0);
3514
- }), $ = Y(void 0), { actionErrorMsg: d, actionLoadingMsg: h, deleteItem: u, getItem: r, getAllItems: y, restoreItem: E, saveItem: i } = ct({
3492
+ return K(e.proxyID) ?? (T != null ? (G = P == null ? void 0 : P.query) == null ? void 0 : G[T] : void 0);
3493
+ }), $ = Y(void 0), { actionErrorMsg: d, actionLoadingMsg: h, deleteItem: u, getItem: r, getAllItems: y, restoreItem: I, saveItem: c } = it({
3515
3494
  nav: g,
3516
- proxyID: P.value,
3495
+ proxyID: N.value,
3517
3496
  store: Le({
3518
- storeMode: A,
3497
+ storeMode: b,
3519
3498
  storageMode: s,
3520
3499
  nav: g
3521
3500
  })
3522
- }), S = te(() => e.errorMsg ?? d.value), I = te(() => e.loadingMsg ?? h.value), L = te(() => I.value != null), w = Y(e.itemID ?? (l ? (ae = C == null ? void 0 : C.params) == null ? void 0 : ae.id : void 0)), _ = Y(w.value == "new" ? "new" : e.startEditing ? "edit" : "view"), D = Re(!1), N = te(() => {
3501
+ }), S = te(() => e.errorMsg ?? d.value), E = te(() => e.loadingMsg ?? h.value), L = te(() => E.value != null), w = Y(e.itemID ?? (l ? (ae = P == null ? void 0 : P.params) == null ? void 0 : ae.id : void 0)), _ = Y(w.value == "new" ? "new" : e.startEditing ? "edit" : "view"), D = Re(!1), M = te(() => {
3523
3502
  if (_.value == "new")
3524
3503
  return !1;
3525
3504
  const G = K($);
@@ -3529,7 +3508,7 @@ function Da(e, t) {
3529
3508
  return !1;
3530
3509
  const G = K($);
3531
3510
  return e.onCanEdit != null ? e.onCanEdit(G) : !0;
3532
- }), b = te(() => {
3511
+ }), A = te(() => {
3533
3512
  if (_.value == "new")
3534
3513
  return !1;
3535
3514
  const G = K($);
@@ -3542,12 +3521,12 @@ function Da(e, t) {
3542
3521
  propsToIgnore: e.trackIgnoreProps,
3543
3522
  propsToTrack: e.trackProps
3544
3523
  });
3545
- function ce(G) {
3524
+ function ie(G) {
3546
3525
  const {
3547
3526
  additionalUrl: X,
3548
3527
  onDeleteAsync: ne,
3549
3528
  onDeleteSuccessAsync: fe = () => (x.back(), Promise.resolve(void 0)),
3550
- proxyID: ie
3529
+ proxyID: ce
3551
3530
  } = { ...e };
3552
3531
  u({
3553
3532
  additionalUrl: X,
@@ -3555,7 +3534,7 @@ function Da(e, t) {
3555
3534
  nav: g,
3556
3535
  onDeleteAsync: ne,
3557
3536
  onDeleteSuccessAsync: fe,
3558
- proxyID: ie
3537
+ proxyID: ce
3559
3538
  // ...params.getOptions(),
3560
3539
  //...(useBladeSrc ? bladeData.value : {}),
3561
3540
  //requireConfirmation: true
@@ -3566,15 +3545,15 @@ function Da(e, t) {
3566
3545
  additionalUrl: X,
3567
3546
  onRestoreAsync: ne,
3568
3547
  onRestoreSuccessAsync: fe,
3569
- proxyID: ie
3548
+ proxyID: ce
3570
3549
  } = { ...e };
3571
- E({
3550
+ I({
3572
3551
  additionalUrl: X,
3573
3552
  data: G,
3574
3553
  nav: g,
3575
3554
  onRestoreAsync: ne,
3576
3555
  onRestoreSuccessAsync: fe,
3577
- proxyID: ie
3556
+ proxyID: ce
3578
3557
  // ...params.getOptions(),
3579
3558
  // ...(useBladeSrc ? bladeData.value : {}),
3580
3559
  });
@@ -3587,7 +3566,7 @@ function Da(e, t) {
3587
3566
  additionalUrl: e.additionalUrl,
3588
3567
  id: w.value,
3589
3568
  nav: g,
3590
- proxyID: P.value,
3569
+ proxyID: N.value,
3591
3570
  params: e.params,
3592
3571
  // ...(useBladeSrc ? bladeData.value : {}),
3593
3572
  refresh: (G == null ? void 0 : G.deepRefresh) ?? !1,
@@ -3607,19 +3586,19 @@ function Da(e, t) {
3607
3586
  const {
3608
3587
  additionalUrl: ne,
3609
3588
  onCanSaveAsync: fe,
3610
- onGetSaveAsync: ie,
3589
+ onGetSaveAsync: ce,
3611
3590
  onSaveAsync: Ee,
3612
- onSaveSuccessAsync: Be = (Me) => ((X == null ? void 0 : X.navBack) === !0 ? x.back() : (G.rowVersion != null && Me.rowVersion != null && (G.rowVersion = Me.rowVersion), ee(), _.value = "view"), Promise.resolve(void 0))
3591
+ onSaveSuccessAsync: $e = (Ce) => ((X == null ? void 0 : X.navBack) === !0 ? x.back() : (G.rowVersion != null && Ce.rowVersion != null && (G.rowVersion = Ce.rowVersion), ee(), _.value = "view"), Promise.resolve(void 0))
3613
3592
  } = { ...e };
3614
- i({
3593
+ c({
3615
3594
  additionalUrl: ne,
3616
3595
  data: G,
3617
3596
  nav: g,
3618
3597
  onCanSaveAsync: fe,
3619
- onGetSaveAsync: ie,
3598
+ onGetSaveAsync: ce,
3620
3599
  onSaveAsync: Ee,
3621
- onSaveSuccessAsync: Be,
3622
- proxyID: P.value,
3600
+ onSaveSuccessAsync: $e,
3601
+ proxyID: N.value,
3623
3602
  // ...params.getOptions(),
3624
3603
  // ...(useBladeSrc ? bladeData.value : {}),
3625
3604
  mode: _.value
@@ -3635,20 +3614,20 @@ function Da(e, t) {
3635
3614
  W({ deepRefresh: !0 });
3636
3615
  }), Or(async () => {
3637
3616
  var G;
3638
- e.eager == !0 && await W({ deepRefresh: ((G = C == null ? void 0 : C.params) == null ? void 0 : G.refresh) == "true" });
3617
+ e.eager == !0 && await W({ deepRefresh: ((G = P == null ? void 0 : P.params) == null ? void 0 : G.refresh) == "true" });
3639
3618
  }), {
3640
3619
  asyncItem: $,
3641
- deleteItem: ce,
3620
+ deleteItem: ie,
3642
3621
  errorMsg: S,
3643
3622
  isChanged: Q,
3644
- isDeletable: N,
3623
+ isDeletable: M,
3645
3624
  isEditing: te(() => _.value == "new" || _.value == "edit"),
3646
3625
  isEditable: f,
3647
3626
  isLoading: L,
3648
3627
  isNew: te(() => _.value == "new"),
3649
- isRestorable: b,
3628
+ isRestorable: A,
3650
3629
  isSaveable: J,
3651
- loadingMsg: I,
3630
+ loadingMsg: E,
3652
3631
  mode: _,
3653
3632
  refresh: W,
3654
3633
  restoreItem: we,
@@ -3658,9 +3637,9 @@ function Da(e, t) {
3658
3637
  };
3659
3638
  }
3660
3639
  const Yr = Y(!0), Zr = Y(!1), zr = Y(), gr = Y(!1);
3661
- let yr = null, Mr;
3662
- function it() {
3663
- return Mr;
3640
+ let yr = null, Cr;
3641
+ function ct() {
3642
+ return Cr;
3664
3643
  }
3665
3644
  function Fn(e) {
3666
3645
  const t = e.defaultCacheExpiryHours ?? 7;
@@ -3674,37 +3653,37 @@ function Fn(e) {
3674
3653
  displayName: h.displayName ?? e.getDisplayName(h),
3675
3654
  ...h
3676
3655
  }));
3677
- function A(h) {
3656
+ function b(h) {
3678
3657
  var u;
3679
- return (u = C(h)) == null ? void 0 : u.archiveName;
3658
+ return (u = P(h)) == null ? void 0 : u.archiveName;
3680
3659
  }
3681
3660
  function s(h) {
3682
3661
  var u;
3683
- return ((u = C(h)) == null ? void 0 : u.cacheExpiryHours) ?? t;
3662
+ return ((u = P(h)) == null ? void 0 : u.cacheExpiryHours) ?? t;
3684
3663
  }
3685
3664
  function g(h) {
3686
3665
  var u;
3687
- return (u = C(h)) == null ? void 0 : u.displayName;
3666
+ return (u = P(h)) == null ? void 0 : u.displayName;
3688
3667
  }
3689
3668
  function x(h) {
3690
3669
  var u;
3691
- return (u = C(h)) == null ? void 0 : u.icon;
3670
+ return (u = P(h)) == null ? void 0 : u.icon;
3692
3671
  }
3693
- function C(h) {
3672
+ function P(h) {
3694
3673
  return h == null ? null : typeof h != "string" ? h : nt(l, (r) => r.children).find((r) => {
3695
3674
  var y;
3696
- return r.name == h || r.singleName == h || ((y = r.aliases) == null ? void 0 : y.some((E) => E == h));
3675
+ return r.name == h || r.singleName == h || ((y = r.aliases) == null ? void 0 : y.some((I) => I == h));
3697
3676
  }) ?? null;
3698
3677
  }
3699
3678
  function T(h) {
3700
- const u = C(h);
3679
+ const u = P(h);
3701
3680
  if (u == null)
3702
3681
  return;
3703
3682
  let r = yn(u.microservice ?? "default") ?? "";
3704
3683
  return u.path != null && (r = Ue(r, u.path)), r != null && r.endsWith("/") && (r = r.slice(0, r.length - 1)), r;
3705
3684
  }
3706
- function P(h) {
3707
- const u = C(h);
3685
+ function N(h) {
3686
+ const u = P(h);
3708
3687
  if ((u == null ? void 0 : u.singleName) != null)
3709
3688
  return u.singleName;
3710
3689
  const r = u == null ? void 0 : u.displayName;
@@ -3712,51 +3691,51 @@ function Fn(e) {
3712
3691
  return vn(r);
3713
3692
  }
3714
3693
  function $(h) {
3715
- const u = C(h);
3694
+ const u = P(h);
3716
3695
  return (u == null ? void 0 : u.name) ?? (u == null ? void 0 : u.singleName);
3717
3696
  }
3718
3697
  function d(h) {
3719
3698
  if (h == null)
3720
3699
  return;
3721
- const u = typeof h == "string" ? C(h) : h;
3700
+ const u = typeof h == "string" ? P(h) : h;
3722
3701
  zr.value = u == null ? void 0 : u.background, Zr.value = (u == null ? void 0 : u.hideNavigation) !== !0, Yr.value = (u == null ? void 0 : u.hideAppBar) !== !0, yr != null && yr(), gr.value = (u == null ? void 0 : u.hesitate) === !0, gr.value && (yr = window.addEventListener("beforeunload", (r) => {
3723
3702
  r.preventDefault();
3724
3703
  }));
3725
3704
  }
3726
- return Mr = {
3705
+ return Cr = {
3727
3706
  showAppBar: Yr,
3728
3707
  showAppNavigation: Zr,
3729
3708
  backgroundName: zr,
3730
3709
  hesitate: gr,
3731
3710
  navigationItems: l,
3732
- findArchiveName: A,
3711
+ findArchiveName: b,
3733
3712
  findCacheHours: s,
3734
3713
  findDisplay: g,
3735
3714
  findIcon: x,
3736
- findItem: C,
3715
+ findItem: P,
3737
3716
  findStoreName: $,
3738
3717
  findPath: T,
3739
- findSingleDisplay: P,
3718
+ findSingleDisplay: N,
3740
3719
  updateNavigationProperties: d
3741
- }, Mr;
3720
+ }, Cr;
3742
3721
  }
3743
3722
  function xa(e, t, l) {
3744
3723
  var qe, Ve;
3745
- const A = Nn(), s = it(), g = Nr(), x = rt(), { bladeData: C } = Cn({}), T = e.useBladeSrc ?? !0, P = e.useRouteSrc ?? !0, $ = e.nav ?? e.bladeName ?? e.itemBladeName ?? "basic", d = e.storeMode ?? ((qe = s.findItem($)) == null ? void 0 : qe.storeMode) ?? "session", h = e.storageMode ?? ((Ve = s.findItem($)) == null ? void 0 : Ve.storageMode) ?? "local-cache", u = K(e.customFilters) ?? [], r = Y([]), y = te(() => Qt([
3746
- ...u.filter((U) => U.name != null).map((U) => U.name),
3724
+ const b = Mn(), s = ct(), g = Mr(), x = rt(), { bladeData: P } = Pn({}), T = e.useBladeSrc ?? !0, N = e.useRouteSrc ?? !0, $ = e.nav ?? e.bladeName ?? e.itemBladeName ?? "basic", d = e.storeMode ?? ((qe = s.findItem($)) == null ? void 0 : qe.storeMode), h = e.storageMode ?? ((Ve = s.findItem($)) == null ? void 0 : Ve.storageMode), u = K(e.customFilters) ?? [], r = Y([]), y = te(() => Qt([
3725
+ ...u.filter((B) => B.name != null).map((B) => B.name),
3747
3726
  ...e.defaultFilters ?? [],
3748
3727
  ...r.value
3749
- ]).value), E = Y((e.defaultFilters ?? []).map((U) => y.value.indexOf(U)));
3750
- let i = Y([...E.value]);
3751
- const S = te(() => Wr(i, E).value.length > 0 || Wr(E, i).value.length > 0), I = Y(L());
3728
+ ]).value), I = Y((e.defaultFilters ?? []).map((B) => y.value.indexOf(B)));
3729
+ let c = Y([...I.value]);
3730
+ const S = te(() => Wr(c, I).value.length > 0 || Wr(I, c).value.length > 0), E = Y(L());
3752
3731
  function L() {
3753
- var U, j;
3732
+ var B, j;
3754
3733
  if (T) {
3755
- const H = (U = C.value) == null ? void 0 : U.page;
3734
+ const H = (B = P.value) == null ? void 0 : B.page;
3756
3735
  if (H != null)
3757
3736
  return Number.parseInt(H);
3758
3737
  }
3759
- if (P) {
3738
+ if (N) {
3760
3739
  const H = (j = x == null ? void 0 : x.query) == null ? void 0 : j.page;
3761
3740
  if (H != null)
3762
3741
  return Number.parseInt(typeof H == "string" ? H : H.toString());
@@ -3764,13 +3743,13 @@ function xa(e, t, l) {
3764
3743
  return 1;
3765
3744
  }
3766
3745
  const w = te(() => {
3767
- var U, j;
3746
+ var B, j;
3768
3747
  if (T) {
3769
- const H = (U = C.value) == null ? void 0 : U.proxyID;
3748
+ const H = (B = P.value) == null ? void 0 : B.proxyID;
3770
3749
  if (H != null)
3771
3750
  return H;
3772
3751
  }
3773
- if (P) {
3752
+ if (N) {
3774
3753
  const H = (j = x == null ? void 0 : x.query) == null ? void 0 : j.query;
3775
3754
  if (H != null)
3776
3755
  return H;
@@ -3778,24 +3757,24 @@ function xa(e, t, l) {
3778
3757
  return e.proxyID;
3779
3758
  }), _ = Y(D());
3780
3759
  function D() {
3781
- var U, j;
3760
+ var B, j;
3782
3761
  if (T) {
3783
- const H = (U = C.value) == null ? void 0 : U.search;
3762
+ const H = (B = P.value) == null ? void 0 : B.search;
3784
3763
  if (H != null)
3785
3764
  return H;
3786
3765
  }
3787
- if (P) {
3766
+ if (N) {
3788
3767
  const H = (j = x == null ? void 0 : x.query) == null ? void 0 : j.search;
3789
3768
  if (H != null)
3790
3769
  return H;
3791
3770
  }
3792
3771
  }
3793
- const N = Y(K(e.startShowingInactive) ?? !1), f = te(() => [
3772
+ const M = Y(K(e.startShowingInactive) ?? !1), f = te(() => [
3794
3773
  ...e.searchProps ?? [],
3795
- ...(e.headers ?? []).filter((U) => U.searchable != null && U.value != null).map((U) => U.value ?? "")
3796
- ]), b = Y([]), J = Re([]), Q = Y([]);
3774
+ ...(e.headers ?? []).filter((B) => B.searchable != null && B.value != null).map((B) => B.value ?? "")
3775
+ ]), A = Y([]), J = Re([]), Q = Y([]);
3797
3776
  let ee;
3798
- const { actionErrorMsg: ce, actionLoadingMsg: we, deleteItem: W, doAction: Z, getItem: V, getAllItems: ae, restoreItem: G } = ct({
3777
+ const { actionErrorMsg: ie, actionLoadingMsg: we, deleteItem: W, doAction: Z, getItem: V, getAllItems: ae, restoreItem: G } = it({
3799
3778
  nav: $,
3800
3779
  proxyID: w.value,
3801
3780
  store: Le({
@@ -3803,60 +3782,60 @@ function xa(e, t, l) {
3803
3782
  storageMode: h,
3804
3783
  nav: $
3805
3784
  })
3806
- }), X = te(() => e.errorMsg ?? ce.value), ne = te(() => e.loadingMsg ?? we.value), fe = te(() => ne.value != null), ie = Re(!1), Ee = Re(e.showSearch ?? !0), Be = Y(0), Me = te(() => {
3807
- let U, j = [];
3808
- E.value.forEach((O) => {
3785
+ }), X = te(() => e.errorMsg ?? ie.value), ne = te(() => e.loadingMsg ?? we.value), fe = te(() => ne.value != null), ce = Re(!1), Ee = Re(e.showSearch ?? !0), $e = Y(0), Ce = te(() => {
3786
+ let B, j = [];
3787
+ I.value.forEach((O) => {
3809
3788
  const oe = y.value[O], ve = u.find((De) => De.name == oe);
3810
- ve != null ? U = U != null ? `${U}ANDALSO${ve.filterFunction()}` : ve.filterFunction() : j.push(oe);
3789
+ ve != null ? B = B != null ? `${B}ANDALSO${ve.filterFunction()}` : ve.filterFunction() : j.push(oe);
3811
3790
  });
3812
3791
  const H = {};
3813
- return Te(j) && (H.filterBy = j.toString()), U != null && (H.query = U), H;
3792
+ return Te(j) && (H.filterBy = j.toString()), B != null && (H.query = B), H;
3814
3793
  }), rr = te(() => {
3815
3794
  var j;
3816
- let U = e.params != null ? { ...e.params } : {};
3817
- return e.useServerPagination && e.itemsPerPage != null && (U.includeCount = !0, U.takeAmount = e.itemsPerPage, U.takeFrom = (I.value - 1) * e.itemsPerPage), Me.value != null && (U = { ...U, ...Me.value }), N.value && (U.includeInactive = !0), Te(e.selectProps) && (U.properties = (j = e.selectProps) == null ? void 0 : j.toString()), _.value != null && (U.searchString = _.value), U;
3818
- }), tr = te(() => (U) => e.onCanDelete != null ? e.onCanDelete(U) : !(U != null && U.isInactive === !0)), nr = te(() => (U) => N.value ? e.onCanRestore != null ? e.onCanRestore(U) : (U == null ? void 0 : U.isInactive) === !0 : !1), Ce = te(() => Q.value.filter((U) => !U.hide)), ar = te(() => {
3819
- let U = new Array();
3820
- return Ce.value.filter((H) => H.sublevel != null).forEach((H) => {
3821
- let O = U.find((oe) => oe.position == H.sublevel);
3822
- O == null ? U.push({ position: H.sublevel ?? 0, values: [H] }) : O.values.push(H);
3823
- }), U.sort(Ge.firstBy((H) => H.position));
3795
+ let B = e.params != null ? { ...e.params } : {};
3796
+ return e.useServerPagination && e.itemsPerPage != null && (B.includeCount = !0, B.takeAmount = e.itemsPerPage, B.takeFrom = (E.value - 1) * e.itemsPerPage), Ce.value != null && (B = { ...B, ...Ce.value }), M.value && (B.includeInactive = !0), Te(e.selectProps) && (B.properties = (j = e.selectProps) == null ? void 0 : j.toString()), _.value != null && (B.searchString = _.value), B;
3797
+ }), tr = te(() => (B) => e.onCanDelete != null ? e.onCanDelete(B) : !(B != null && B.isInactive === !0)), nr = te(() => (B) => M.value ? e.onCanRestore != null ? e.onCanRestore(B) : (B == null ? void 0 : B.isInactive) === !0 : !1), Pe = te(() => Q.value.filter((B) => !B.hide)), ar = te(() => {
3798
+ let B = new Array();
3799
+ return Pe.value.filter((H) => H.sublevel != null).forEach((H) => {
3800
+ let O = B.find((oe) => oe.position == H.sublevel);
3801
+ O == null ? B.push({ position: H.sublevel ?? 0, values: [H] }) : O.values.push(H);
3802
+ }), B.sort(Be.firstBy((H) => H.position));
3824
3803
  }), lr = te(() => {
3825
- let U = new Array();
3826
- return Ce.value.filter((H) => H.level != null).forEach((H) => {
3827
- let O = U.find((oe) => oe.position == H.level);
3828
- O == null ? U.push({ position: H.level ?? 0, values: [H] }) : O.values.push(H);
3829
- }), U.sort(Ge.firstBy((H) => H.position));
3830
- }), ur = te(() => Ce.value.filter((U) => U.nav != null && U.itemText != null || U.textFilter != null || U.display != null || U.bool != null));
3831
- function be(U) {
3804
+ let B = new Array();
3805
+ return Pe.value.filter((H) => H.level != null).forEach((H) => {
3806
+ let O = B.find((oe) => oe.position == H.level);
3807
+ O == null ? B.push({ position: H.level ?? 0, values: [H] }) : O.values.push(H);
3808
+ }), B.sort(Be.firstBy((H) => H.position));
3809
+ }), ur = te(() => Pe.value.filter((B) => B.nav != null && B.itemText != null || B.textFilter != null || B.display != null || B.bool != null));
3810
+ function be(B) {
3832
3811
  if (e.itemBladeName != null) {
3833
3812
  let j = {
3834
3813
  bladeName: e.itemBladeName,
3835
3814
  id: "new",
3836
3815
  nav: $
3837
3816
  };
3838
- U == "page" && g.push({
3817
+ B == "page" && g.push({
3839
3818
  name: j.bladeName,
3840
3819
  params: { id: "new" }
3841
3820
  });
3842
3821
  }
3843
3822
  }
3844
- function cr(U) {
3823
+ function ir(B) {
3845
3824
  const {
3846
3825
  additionalUrl: j,
3847
3826
  onDeleteAsync: H
3848
- } = { ...e }, O = K(U), oe = O.id, ve = (De) => {
3827
+ } = { ...e }, O = K(B), oe = O.id, ve = (De) => {
3849
3828
  if (De != null) {
3850
- let Se = b.value.findIndex((se) => se.id == De);
3851
- if (Se > -1 && b.value.splice(Se, 1), e.items != null) {
3852
- let se = e.items.findIndex((Ne) => Ne.id == De);
3829
+ let Se = A.value.findIndex((se) => se.id == De);
3830
+ if (Se > -1 && A.value.splice(Se, 1), e.items != null) {
3831
+ let se = e.items.findIndex((Me) => Me.id == De);
3853
3832
  se > -1 && e.items.splice(se, 1);
3854
3833
  }
3855
3834
  } else {
3856
- let Se = b.value.findIndex((se) => se === O);
3857
- if (Se == -1 && (Se = b.value.findIndex((se) => se == O)), Se > -1 && b.value.splice(Se, 1), e.items != null) {
3858
- let se = e.items.findIndex((Ne) => Ne === O);
3859
- se == -1 && (se = e.items.findIndex((Ne) => Ne == O)), se > -1 && e.items.splice(se, 1);
3835
+ let Se = A.value.findIndex((se) => se === O);
3836
+ if (Se == -1 && (Se = A.value.findIndex((se) => se == O)), Se > -1 && A.value.splice(Se, 1), e.items != null) {
3837
+ let se = e.items.findIndex((Me) => Me === O);
3838
+ se == -1 && (se = e.items.findIndex((Me) => Me == O)), se > -1 && e.items.splice(se, 1);
3860
3839
  }
3861
3840
  }
3862
3841
  };
@@ -3870,11 +3849,11 @@ function xa(e, t, l) {
3870
3849
  proxyID: w.value,
3871
3850
  // ...(useBladeSrc ? bladeData.value : {}),
3872
3851
  requireConfirmation: !0
3873
- }), t && t("deleted", U);
3852
+ }), t && t("deleted", B);
3874
3853
  }
3875
- function ze(U) {
3854
+ function ze(B) {
3876
3855
  G({
3877
- data: K(U),
3856
+ data: K(B),
3878
3857
  additionalUrl: e.additionalUrl,
3879
3858
  nav: $,
3880
3859
  onCanRestoreAsync: e.onCanRestoreAsync,
@@ -3884,26 +3863,26 @@ function xa(e, t, l) {
3884
3863
  // ...(useBladeSrc ? bladeData.value : {})
3885
3864
  });
3886
3865
  }
3887
- function $e() {
3866
+ function Fe() {
3888
3867
  Z(() => {
3889
- A.exportToCSV(Ce.value, J.value);
3868
+ b.exportToCSV(Pe.value, J.value);
3890
3869
  }, { loadingMsg: "Exporting to CSV" });
3891
3870
  }
3892
- function Pe() {
3893
- let U = K(b);
3894
- if (U = e.onFilter ? e.onFilter(U) : U, _.value != null && _.value.length > 0) {
3871
+ function Ne() {
3872
+ let B = K(A);
3873
+ if (B = e.onFilter ? e.onFilter(B) : B, _.value != null && _.value.length > 0) {
3895
3874
  let j = [...f.value];
3896
- e.itemText && j.push(e.itemText), Te(j) && (U = U.filter((H) => hn(H, _.value, j)));
3875
+ e.itemText && j.push(e.itemText), Te(j) && (B = B.filter((H) => hn(H, _.value, j)));
3897
3876
  }
3898
- J.value = U;
3877
+ J.value = B;
3899
3878
  }
3900
3879
  function We() {
3901
- const U = (l == null ? void 0 : l.hideActions) ?? e.hideActions;
3902
- e.headers != null && (Q.value = [...e.headers], U || Q.value.push({ title: "Actions", value: "itemActions", align: "end" }));
3880
+ const B = (l == null ? void 0 : l.hideActions) ?? e.hideActions;
3881
+ e.headers != null && (Q.value = [...e.headers], B || Q.value.push({ title: "Actions", value: "itemActions", align: "end" }));
3903
3882
  }
3904
- async function Ie(U) {
3905
- if (ie.value = !1, (U == null ? void 0 : U.resetSearch) === !0 && (Ee.value = e.showSearch ?? !1, _.value = void 0), e.items != null) {
3906
- b.value = e.onGetSuccessAsync != null ? await e.onGetSuccessAsync(e.items) : e.items;
3883
+ async function Ie(B) {
3884
+ if (ce.value = !1, (B == null ? void 0 : B.resetSearch) === !0 && (Ee.value = e.showSearch ?? !1, _.value = void 0), e.items != null) {
3885
+ A.value = e.onGetSuccessAsync != null ? await e.onGetSuccessAsync(e.items) : e.items;
3907
3886
  return;
3908
3887
  }
3909
3888
  const j = {
@@ -3916,26 +3895,26 @@ function xa(e, t, l) {
3916
3895
  proxyID: w.value,
3917
3896
  // ...(useBladeSrc ? bladeData.value : {}),
3918
3897
  // ...(props.useInterEvents ? eventData : {}),
3919
- refresh: (U == null ? void 0 : U.deepRefresh) ?? !1,
3898
+ refresh: (B == null ? void 0 : B.deepRefresh) ?? !1,
3920
3899
  onGetAsync: e.onGetAsync,
3921
3900
  onGetSuccessAsync: e.onGetSuccessAsync
3922
3901
  };
3923
3902
  if (e.isSingle === !0)
3924
- j.id === "new" ? b.value = [] : b.value = await V(j);
3903
+ j.id === "new" ? A.value = [] : A.value = await V(j);
3925
3904
  else {
3926
3905
  let H = await ae({
3927
3906
  ...j,
3928
3907
  onGetSuccessAsync: async (O, oe) => {
3929
3908
  let ve = O == null ? void 0 : O.data;
3930
- return r.value = (O == null ? void 0 : O.filters) ?? [], e.useServerPagination === !0 && e.itemsPerPage && O.count && (Be.value = Math.ceil(O.count / e.itemsPerPage)), e.onGetSuccessAsync != null && (ve = await e.onGetSuccessAsync(ve, oe)), ve;
3909
+ return r.value = (O == null ? void 0 : O.filters) ?? [], e.useServerPagination === !0 && e.itemsPerPage && O.count && ($e.value = Math.ceil(O.count / e.itemsPerPage)), e.onGetSuccessAsync != null && (ve = await e.onGetSuccessAsync(ve, oe)), ve;
3931
3910
  }
3932
3911
  });
3933
- b.value = H;
3912
+ A.value = H;
3934
3913
  }
3935
- Pe();
3914
+ Ne();
3936
3915
  }
3937
- function Je(U, j) {
3938
- const H = K(U);
3916
+ function Je(B, j) {
3917
+ const H = K(B);
3939
3918
  if (H != null && H === ee && e.canUnselect ? ee = null : ee = H, t != null && t("select", ee), !(!e.canSelect || e.onCanSelectItem != null && !e.onCanSelectItem(H)))
3940
3919
  if (e.onSelectItem != null)
3941
3920
  e.onSelectItem(ee);
@@ -3955,26 +3934,26 @@ function xa(e, t, l) {
3955
3934
  Ee.value ? (Ee.value = e.showSearch ?? !1, _.value = void 0, Ie()) : Ee.value = e.showSearch ?? !0;
3956
3935
  }
3957
3936
  return We(), Xt([_], () => {
3958
- Pe();
3959
- }, { debounce: 500, maxWait: 500 }), _e([N, I], async () => {
3937
+ Ne();
3938
+ }, { debounce: 500, maxWait: 500 }), _e([M, E], async () => {
3960
3939
  await Ie();
3961
- }), _e([X, () => e.errorMsg], ([U, j]) => {
3962
- ie.value = U != null || j != null;
3940
+ }), _e([X, () => e.errorMsg], ([B, j]) => {
3941
+ ce.value = B != null || j != null;
3963
3942
  }), _e(() => e.refreshToggle, () => {
3964
3943
  Ie({ deepRefresh: !0 });
3965
- }), pr([b, () => e.items], () => {
3966
- Pe();
3944
+ }), pr([A, () => e.items], () => {
3945
+ Ne();
3967
3946
  }), Or(async () => {
3968
- var U;
3969
- e.eager == !0 && await Ie({ deepRefresh: ((U = x == null ? void 0 : x.params) == null ? void 0 : U.refresh) == "true" });
3947
+ var B;
3948
+ e.eager == !0 && await Ie({ deepRefresh: ((B = x == null ? void 0 : x.params) == null ? void 0 : B.refresh) == "true" });
3970
3949
  }), {
3971
3950
  add: be,
3972
- asyncItems: b,
3973
- currentPage: I,
3974
- deleteItem: cr,
3951
+ asyncItems: A,
3952
+ currentPage: E,
3953
+ deleteItem: ir,
3975
3954
  displayHeaders: ur,
3976
3955
  errorMsg: X,
3977
- exportToCSV: $e,
3956
+ exportToCSV: Fe,
3978
3957
  filteredItems: J,
3979
3958
  filters: y,
3980
3959
  filtersChanged: S,
@@ -3986,81 +3965,82 @@ function xa(e, t, l) {
3986
3965
  refresh: Ie,
3987
3966
  restoreItem: ze,
3988
3967
  searchString: _,
3989
- selectedFilters: E,
3968
+ selectedFilters: I,
3990
3969
  selectItem: Je,
3991
3970
  // serverFilters,
3992
- showError: ie,
3993
- showInactive: N,
3971
+ showError: ce,
3972
+ showInactive: M,
3994
3973
  showSearch: Ee,
3995
3974
  subtitleOptions: ar,
3996
- tableHeaders: Ce,
3975
+ tableHeaders: Pe,
3997
3976
  titleOptions: lr,
3998
3977
  toggleSearch: je,
3999
- totalPages: Be
3978
+ totalPages: $e
4000
3979
  };
4001
3980
  }
4002
- let ke;
3981
+ let Ge;
4003
3982
  function kn(e) {
4004
3983
  const t = Y((e == null ? void 0 : e.default) ?? "Admin"), l = Y((e == null ? void 0 : e.groups) ?? []);
4005
- return ke = {
3984
+ return Ge = {
4006
3985
  currentGroup: t,
4007
3986
  groupOptions: l,
4008
3987
  useRoutes: e == null ? void 0 : e.useRoutes
4009
- }, ke;
3988
+ }, Ge;
4010
3989
  }
4011
3990
  function _a() {
4012
- const e = Nr(), t = it(), l = Dn();
3991
+ const e = Mr(), t = ct(), l = Dn();
3992
+ let b = e.getRoutes();
4013
3993
  return {
4014
- ...ke,
3994
+ ...Ge,
4015
3995
  sidebarNavItems: te(() => {
4016
3996
  var g;
4017
- let A = e.getRoutes().filter((x) => x.meta != null && x.meta.menuGroup != null);
3997
+ b = b.filter((x) => x.meta != null && x.meta.menuGroup != null);
4018
3998
  const s = [];
4019
- return A.forEach((x) => {
3999
+ return b.forEach((x) => {
4020
4000
  var d;
4021
- const C = ke.groupOptions.value.find((h) => h.displayName == x.meta.menuGroup), T = t.findItem(x.meta.nav), P = x.meta;
4022
- let $ = s.find((h) => h.displayName == P.menuGroup);
4001
+ const P = Ge.groupOptions.value.find((h) => h.displayName == x.meta.menuGroup), T = t.findItem(x.meta.nav), N = x.meta;
4002
+ let $ = s.find((h) => h.displayName == N.menuGroup);
4023
4003
  $ == null && ($ = {
4024
- displayName: P.menuGroup,
4025
- icon: (C == null ? void 0 : C.icon) ?? (P == null ? void 0 : P.icon) ?? (T == null ? void 0 : T.icon),
4004
+ displayName: N.menuGroup,
4005
+ icon: (P == null ? void 0 : P.icon) ?? (N == null ? void 0 : N.icon) ?? (T == null ? void 0 : T.icon),
4026
4006
  isGroup: !0,
4027
4007
  items: []
4028
4008
  }, s.push($)), (d = $.items) == null || d.push({
4029
- displayName: (P == null ? void 0 : P.displayName) ?? t.findDisplay(T ?? void 0),
4030
- icon: (P == null ? void 0 : P.icon) ?? t.findIcon(T ?? void 0),
4031
- permissions: (P == null ? void 0 : P.permissions) ?? (T == null ? void 0 : T.permissions) ?? [],
4032
- requiresAuth: (P == null ? void 0 : P.requiresAuth) !== !1,
4033
- subscriptions: (P == null ? void 0 : P.subscriptions) ?? (T == null ? void 0 : T.subscriptions) ?? [],
4034
- subFilters: (P == null ? void 0 : P.subFilters) ?? (T == null ? void 0 : T.subFilters) ?? [],
4009
+ displayName: (N == null ? void 0 : N.displayName) ?? t.findDisplay(T ?? void 0),
4010
+ icon: (N == null ? void 0 : N.icon) ?? t.findIcon(T ?? void 0),
4011
+ permissions: (N == null ? void 0 : N.permissions) ?? (T == null ? void 0 : T.permissions) ?? [],
4012
+ requiresAuth: (N == null ? void 0 : N.requiresAuth) !== !1,
4013
+ subscriptions: (N == null ? void 0 : N.subscriptions) ?? (T == null ? void 0 : T.subscriptions) ?? [],
4014
+ subFilters: (N == null ? void 0 : N.subFilters) ?? (T == null ? void 0 : T.subFilters) ?? [],
4035
4015
  routeName: x.name
4036
4016
  });
4037
4017
  }), s.forEach((x) => {
4038
- var C;
4039
- x.items = (C = x.items) == null ? void 0 : C.filter((T) => !T.requiresAuth || l.doShow(T.subscriptions, T.permissions, "view")).sort(Ge.firstBy((T) => T.displayName));
4040
- }), ke.currentGroup.value != null ? ((g = s.find((x) => x.displayName == ke.currentGroup.value)) == null ? void 0 : g.items) ?? [] : s.filter((x) => !x.requiresAuth || l.doShow(x.subscriptions, x.permissions, "view"));
4018
+ var P;
4019
+ x.items = (P = x.items) == null ? void 0 : P.filter((T) => !T.requiresAuth || l.doShow(T.subscriptions, T.permissions, "view")).sort(Be.firstBy((T) => T.displayName));
4020
+ }), Ge.currentGroup.value != null ? ((g = s.find((x) => x.displayName == Ge.currentGroup.value)) == null ? void 0 : g.items) ?? [] : s.filter((x) => !x.requiresAuth || l.doShow(x.subscriptions, x.permissions, "view"));
4041
4021
  })
4042
4022
  };
4043
4023
  }
4044
- let Cr;
4024
+ let Pr;
4045
4025
  function Ta(e) {
4046
- return Cr.usePresets(e);
4026
+ return Pr.usePresets(e);
4047
4027
  }
4048
4028
  function Gn(e) {
4049
4029
  function t(l) {
4050
4030
  if (!l)
4051
4031
  return {};
4052
- let A = l;
4053
- return e.presets[A] ?? {};
4032
+ let b = l;
4033
+ return e.presets[b] ?? {};
4054
4034
  }
4055
- return Cr = {
4035
+ return Pr = {
4056
4036
  usePresets: t
4057
- }, Cr;
4037
+ }, Pr;
4058
4038
  }
4059
4039
  let Jr, jr, Kr, Qr = !1;
4060
4040
  const wr = Y(!1), br = Y(!1), Xr = Y(), pe = Y();
4061
- let Pr;
4062
- function Ma() {
4063
- return Pr;
4041
+ let Nr;
4042
+ function Ca() {
4043
+ return Nr;
4064
4044
  }
4065
4045
  function Wn() {
4066
4046
  function e(x) {
@@ -4073,7 +4053,7 @@ function Wn() {
4073
4053
  var x;
4074
4054
  (x = Xr.value) == null || x.prompt(), wr.value = !1;
4075
4055
  }
4076
- function A() {
4056
+ function b() {
4077
4057
  return !!window.matchMedia("(display-mode: standalone)").matches;
4078
4058
  }
4079
4059
  function s(x) {
@@ -4084,36 +4064,36 @@ function Wn() {
4084
4064
  }
4085
4065
  return Ot(() => {
4086
4066
  Jr == null && (Jr = document.addEventListener("swUpdated", e, { once: !0 })), jr == null && (jr = navigator.serviceWorker.addEventListener("controllerchange", t)), Kr == null && (Kr = window.addEventListener("beforeinstallprompt", s));
4087
- }), Pr = {
4067
+ }), Nr = {
4088
4068
  canInstallApp: wr,
4089
4069
  canUpdateApp: br,
4090
4070
  installApp: l,
4091
- isInstalled: A,
4071
+ isInstalled: b,
4092
4072
  updateApp: g
4093
- }, Pr;
4073
+ }, Nr;
4094
4074
  }
4095
- function Ca(e) {
4075
+ function Pa(e) {
4096
4076
  const t = [];
4097
4077
  return (e == null ? void 0 : e.required) == !0 && t.push((l) => !!l || "Field is required"), (e == null ? void 0 : e.otherRules) != null && (Array.isArray(e == null ? void 0 : e.otherRules) ? t.push(...e.otherRules) : t.push(e.otherRules)), (e == null ? void 0 : e.forPassword) == !0 && (t.push((l) => !!l || "Password is required"), t.push((l) => l != null && l.length > 9 || "Password must be 10 or more characters"), t.push((l) => /^(.*[a-z].*)$/.test(l) || "Password must contain a lowercase letter"), t.push((l) => /^(.*[A-Z].*)$/.test(l) || "Password must contain an uppercase letter"), t.push((l) => /^(.*\d.*)$/.test(l) || "Password must contain a number")), (e == null ? void 0 : e.forEmail) == !0 && (t.push((l) => !!l || "Email is required"), t.push((l) => mn(l) || "Email must be valid")), t;
4098
4078
  }
4099
- function Pa(e) {
4079
+ function Na(e) {
4100
4080
  return {
4101
4081
  install(t, l) {
4102
4082
  var T;
4103
- console.log(t), e.vuetifyInstance ?? (e.vuetifyInstance = l.vuetifyInstance), Pn(e);
4104
- const A = Rn(), s = Fn(e);
4105
- Gn(e), (T = e.auth).demo ?? (T.demo = A), e.auth.getAuthItem = s.findItem;
4083
+ console.log(t), e.vuetifyInstance ?? (e.vuetifyInstance = l.vuetifyInstance), Nn(e);
4084
+ const b = Rn(), s = Fn(e);
4085
+ Gn(e), (T = e.auth).demo ?? (T.demo = b), e.auth.getAuthItem = s.findItem;
4106
4086
  const g = xn(e.auth);
4107
4087
  kn(e.menu);
4108
4088
  const x = In({
4109
4089
  auth: g,
4110
4090
  findPath: s.findPath,
4111
4091
  useBearerToken: !0
4112
- }), C = Ln({
4092
+ }), P = Ln({
4113
4093
  getTimeZone: () => g.timeZone.value
4114
4094
  });
4115
- Bn({
4116
- dates: C
4095
+ Un({
4096
+ dates: P
4117
4097
  }), Wn(), bn({
4118
4098
  api: x,
4119
4099
  auth: g,
@@ -4134,11 +4114,11 @@ export {
4134
4114
  fn as copyItemByAlphabet,
4135
4115
  In as createApi,
4136
4116
  xn as createAuth,
4137
- Pa as createCore,
4138
- Pn as createCosmetics,
4117
+ Na as createCore,
4118
+ Nn as createCosmetics,
4139
4119
  Ln as createDates,
4140
4120
  Rn as createDemo,
4141
- Bn as createFilters,
4121
+ Un as createFilters,
4142
4122
  kn as createMenu,
4143
4123
  Fn as createNavigation,
4144
4124
  Wn as createPWA,
@@ -4160,11 +4140,11 @@ export {
4160
4140
  On as getGoogleMapsLocationLine,
4161
4141
  ea as getImageData,
4162
4142
  tt as getLocationLine,
4163
- ia as getMinDate,
4143
+ ca as getMinDate,
4164
4144
  un as getMinDateString,
4165
4145
  dn as getRandomColor,
4166
4146
  hn as hasSearch,
4167
- ca as isArrayOfLength,
4147
+ ia as isArrayOfLength,
4168
4148
  Te as isLengthyArray,
4169
4149
  ln as isMinDate,
4170
4150
  Sr as nestedValue,
@@ -4175,13 +4155,13 @@ export {
4175
4155
  da as toCompareString,
4176
4156
  sa as toggleCSV,
4177
4157
  ha as twiddleThumbs,
4178
- ct as useActions,
4158
+ it as useActions,
4179
4159
  rn as useActionsTracker,
4180
4160
  Er as useApi,
4181
4161
  Dn as useAuth,
4182
4162
  qr as useAuthUrl,
4183
- Cn as useBlade,
4184
- Nn as useCSV,
4163
+ Pn as useBlade,
4164
+ Mn as useCSV,
4185
4165
  ya as useCosmetics,
4186
4166
  yn as useDataUrl,
4187
4167
  Sa as useDates,
@@ -4197,11 +4177,11 @@ export {
4197
4177
  wa as useLocalCosmetics,
4198
4178
  me as useLocalDb,
4199
4179
  _a as useMenu,
4200
- it as useNavigation,
4201
- Ma as usePWA,
4180
+ ct as useNavigation,
4181
+ Ca as usePWA,
4202
4182
  Ta as usePresets,
4203
- Mn as useResizable,
4204
- Ca as useRules,
4183
+ Cn as useResizable,
4184
+ Pa as useRules,
4205
4185
  ga as useStore,
4206
4186
  Le as useStoreDefinition,
4207
4187
  $n as useTracker,